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