1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d391e04"],{"0815":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("div",{staticClass:"newBand",on:{click:t.createEdi}},[t._v("新建")]),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"id",label:"编号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"platform",label:"客户端"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(t._f("editionFilter")(e.row.platform)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"version",label:"版本号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"isForceUpdate",label:"强制更新"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.isForceUpdate?"是":"否"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"status",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(t._f("statusFilter")(e.row.status)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"description",label:"描述"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"downloadUrl",label:"下载链接"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.resetEdit(e.row)}}},[t._v("修改")])],1)]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.getList}})],1)]),t._v(" "),n("el-dialog",{attrs:{title:"版本修改",width:"400px",visible:t.sectionVisible,"before-close":t.reserForm},on:{"update:visible":function(e){t.sectionVisible=e}}},[n("el-form",{ref:"sectionForm",attrs:{model:t.sectionForm,rules:t.sectionRules,"label-position":"right","label-width":"80px",inline:!0}},[n("el-form-item",{attrs:{label:"客户端",prop:"platform"}},[n("el-select",{attrs:{clearable:""},model:{value:t.sectionForm.platform,callback:function(e){t.$set(t.sectionForm,"platform",e)},expression:"sectionForm.platform"}},t._l(t.sectionList,(function(t,e){return n("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),t.isNew?n("el-form-item",{attrs:{label:"版本号",prop:"version"}},[n("el-input",{attrs:{type:"number"},nativeOn:{mousewheel:function(t){t.preventDefault()}},model:{value:t.sectionForm.version,callback:function(e){t.$set(t.sectionForm,"version","string"===typeof e?e.trim():e)},expression:"sectionForm.version"}})],1):t._e(),t._v(" "),n("el-form-item",{attrs:{label:"强制更新",prop:"isForceUpdate"}},[n("el-select",{attrs:{clearable:""},model:{value:t.sectionForm.isForceUpdate,callback:function(e){t.$set(t.sectionForm,"isForceUpdate",e)},expression:"sectionForm.isForceUpdate"}},[n("el-option",{attrs:{label:"是",value:!0}}),t._v(" "),n("el-option",{attrs:{label:"否",value:!1}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"状态",prop:"status"}},[n("el-select",{attrs:{clearable:""},model:{value:t.sectionForm.status,callback:function(e){t.$set(t.sectionForm,"status",e)},expression:"sectionForm.status"}},[n("el-option",{attrs:{label:"最新",value:"newest"}}),t._v(" "),n("el-option",{attrs:{label:"历史",value:"history"}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"下载链接",prop:"downloadUrl"}},[n("el-input",{attrs:{type:"textarea"},model:{value:t.sectionForm.downloadUrl,callback:function(e){t.$set(t.sectionForm,"downloadUrl","string"===typeof e?e.trim():e)},expression:"sectionForm.downloadUrl"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"描述",prop:"description"}},[n("el-input",{attrs:{type:"textarea"},model:{value:t.sectionForm.description,callback:function(e){t.$set(t.sectionForm,"description",e)},expression:"sectionForm.description"}})],1)],1),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.sectionVisible=!1}}},[t._v("取 消")]),t._v(" "),t.isNew?n("el-button",{attrs:{type:"primary"},on:{click:t.createEdition}},[t._v("确 定")]):t._e(),t._v(" "),t.isNew?t._e():n("el-button",{attrs:{type:"primary"},on:{click:t.resetEdition}},[t._v("确 定")])],1)],1)],1)},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("版本控制\n ")])}],a=n("99b4"),i=n("333d"),u={components:{pagination:i["a"]},data:function(){return{sectionVisible:!1,tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},sectionList:[{value:"ios-teacher",label:"苹果-老师端"},{value:"ios-student",label:"苹果-学生端"},{value:"ios-education",label:"苹果-教务端"},{value:"android-teacher",label:"安卓-老师端"},{value:"android-student",label:"安卓-学生端"},{value:"android-education",label:"安卓-教务端"}],sectionForm:{platform:"",version:"",isForceUpdate:"",downloadUrl:"",status:"",id:""},sectionRules:{platform:[{required:!0,message:"请选择客户端",trigger:"blur"}],version:[{required:!0,message:"请输入版本号",trigger:"blur"}],isForceUpdate:[{required:!0,message:"请选择是否强更",trigger:"blur"}],status:[{required:!0,message:"请选择版本状态",trigger:"blur"}]},isNew:!1}},activated:function(){this.init()},created:function(){this.init()},methods:{init:function(){this.getList()},getList:function(){var t=this;Object(a["b"])().then((function(e){200==e.code&&(t.tableList=e.data.rows,t.rules.total=e.data.total)}))},createEdi:function(){this.isNew=!0,this.sectionVisible=!0},createEdition:function(){var t=this;this.$refs.sectionForm.validate((function(e){e&&Object(a["a"])(t.sectionForm).then((function(e){200==e.code&&(t.$message.success("新增成功"),t.sectionVisible=!1,t.getList())}))}))},resetEdit:function(t){this.isNew=!1,this.sectionForm=t,this.sectionVisible=!0},resetEdition:function(){var t=this;Object(a["B"])(this.sectionForm).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.sectionVisible=!1,t.getList())}))},reserForm:function(){this.sectionForm={platform:"",version:"",isForceUpdate:"",downloadUrl:"",status:"",id:""},this.$refs.sectionForm.resetFields(),this.sectionVisible=!1}},filters:{statusFilter:function(t){return"newest"==t?"最新":"history"==t?"历史":""}}},s=u,l=n("2877"),c=Object(l["a"])(s,r,o,!1,null,null,null);e["default"]=c.exports},"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),Math.easeInOutQuad=function(t,e,n,r){return t/=r/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function o(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function a(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,n){var i=a(),u=t-i,s=20,l=0;e="undefined"===typeof e?500:e;var c=function t(){l+=s;var a=Math.easeInOutQuad(l,i,u,e);o(a),l<e?r(t):n&&"function"===typeof n&&n()};c()}},"333d":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[n("el-pagination",t._b({attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},o=[],a=(n("c5f6"),n("09f4")),i={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(a["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(a["a"])(0,800)}}},u=i,s=(n("c0b9"),n("2877")),l=Object(s["a"])(u,r,o,!1,null,"31cb099a",null);e["a"]=l.exports},"99b4":function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"A",(function(){return c})),n.d(e,"y",(function(){return d})),n.d(e,"G",(function(){return p})),n.d(e,"F",(function(){return f})),n.d(e,"H",(function(){return m})),n.d(e,"z",(function(){return b})),n.d(e,"j",(function(){return g})),n.d(e,"l",(function(){return h})),n.d(e,"p",(function(){return v})),n.d(e,"k",(function(){return y})),n.d(e,"D",(function(){return O})),n.d(e,"n",(function(){return _})),n.d(e,"E",(function(){return F})),n.d(e,"C",(function(){return w})),n.d(e,"f",(function(){return j})),n.d(e,"h",(function(){return k})),n.d(e,"g",(function(){return S})),n.d(e,"i",(function(){return q})),n.d(e,"q",(function(){return z})),n.d(e,"r",(function(){return $})),n.d(e,"t",(function(){return C})),n.d(e,"s",(function(){return E})),n.d(e,"o",(function(){return U})),n.d(e,"w",(function(){return x})),n.d(e,"u",(function(){return L})),n.d(e,"x",(function(){return P})),n.d(e,"v",(function(){return V})),n.d(e,"m",(function(){return N})),n.d(e,"b",(function(){return B})),n.d(e,"a",(function(){return I})),n.d(e,"B",(function(){return R}));var r=n("b775"),o=n("4328"),a=n.n(o),i="/api-web";function u(t){return Object(r["a"])({url:i+"/cooperationOrgan/add",method:"post",data:a.a.stringify(t)})}function s(t){return Object(r["a"])({url:i+"/cooperationOrgan/update",method:"put",data:a.a.stringify(t)})}function l(t){return Object(r["a"])({url:i+"/cooperationOrgan/del/".concat(t),method:"post"})}function c(t){return Object(r["a"])({url:i+"/cooperationOrgan/queryPage",method:"get",params:t})}function d(t){return Object(r["a"])({url:i+"/cooperationOrgan/queryByOrganId",method:"get",params:t})}function p(t){return Object(r["a"])({url:i+"/school/queryPage",method:"get",params:t})}function f(t){return Object(r["a"])({url:i+"/school/add",method:"post",data:a.a.stringify(t)})}function m(t){return Object(r["a"])({url:i+"/school/update",method:"post",data:a.a.stringify(t)})}function b(t){return Object(r["a"])({url:i+"/employee/queryEmployByOrganId",method:"get",params:t})}function g(t){return Object(r["a"])({url:i+"/employee/add",method:"post",data:t})}function h(t){return Object(r["a"])({url:i+"/employee/update",method:"post",data:t})}function v(t){return Object(r["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function y(t){return Object(r["a"])({url:i+"/employee/employeeOperate",method:"post",data:a.a.stringify(t)})}function O(t){return Object(r["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function _(t){return Object(r["a"])({url:"/api-auth/role/".concat(t.id),method:"get"})}function F(t){return Object(r["a"])({url:"/api-auth/role/update",method:"post",data:t})}function w(t){return Object(r["a"])({url:"/api-auth/role/add",method:"post",data:t})}function j(t){return Object(r["a"])({url:i+"/courseScheduleRewards/queryPage",method:"get",params:t})}function k(t){return Object(r["a"])({url:i+"/courseScheduleRewards/query",method:"get",params:t})}function S(t){return Object(r["a"])({url:i+"/courseScheduleRewards/add",method:"post",data:a.a.stringify(t)})}function q(t){return Object(r["a"])({url:i+"/courseScheduleRewards/update",method:"post",data:a.a.stringify(t)})}function z(t){return Object(r["a"])({url:i+"/hotWordLabelManage/queryPage",method:"get",params:t})}function $(t){return Object(r["a"])({url:i+"/hotWordLabelManage/add",method:"post",data:a.a.stringify(t)})}function C(t){return Object(r["a"])({url:i+"/hotWordLabelManage/update",method:"post",data:a.a.stringify(t)})}function E(t){return Object(r["a"])({url:i+"/hotWordLabelManage/del/".concat(t),method:"post"})}function U(t){return Object(r["a"])({url:i+"/school/queryByOrganId",method:"get",params:t})}function x(t){return Object(r["a"])({url:i+"/paymentConfig/queryPage",method:"get",params:t})}function L(t){return Object(r["a"])({url:i+"/paymentConfig/add",method:"post",data:a.a.stringify(t)})}function P(t){return Object(r["a"])({url:i+"/paymentConfig/update",method:"post",data:a.a.stringify(t)})}function V(t){return Object(r["a"])({url:i+"/paymentConfig/del/"+t.id,method:"post"})}function N(t){return Object(r["a"])({url:i+"/teacher/findTeacherByOrganId",method:"get",params:t})}function B(t){return Object(r["a"])({url:i+"/appVersionInfo/list",method:"get",params:t})}function I(t){return Object(r["a"])({url:i+"/appVersionInfo/add",method:"post",data:a.a.stringify(t)})}function R(t){return Object(r["a"])({url:i+"/appVersionInfo/update",method:"post",data:a.a.stringify(t)})}},c0b9:function(t,e,n){"use strict";var r=n("de4e"),o=n.n(r);o.a},de4e:function(t,e,n){}}]);
|