chunk-a3b334c8.9f7b0766.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a3b334c8"],{"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",{directives:[{name:"permission",rawName:"v-permission",value:"appVersionInfo/add",expression:"'appVersionInfo/add'"}],staticClass:"newBand",on:{click:t.createEdi}},[t._v("新建")]),t._v(" "),n("el-form",{attrs:{inline:!0,model:t.searchForm}},[n("el-form-item",{attrs:{label:"客户端"}},[n("el-select",{attrs:{clearable:""},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search",e)},expression:"searchForm.search"}},t._l(t.sectionList,function(t,e){return n("el-option",{key:e,attrs:{value:t.value,label:t.label}})}),1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")])],1)],1),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",{directives:[{name:"permission",rawName:"v-permission",value:"appVersionInfo/update",expression:"'appVersionInfo/update'"}],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)],1),t._v(" "),n("el-dialog",{attrs:{title:"版本修改",width:"400px",visible:t.sectionVisible,"before-close":t.resetForm},on:{"update:visible":function(e){t.sectionVisible=e}}},[t.sectionVisible?n("el-form",{ref:"sectionForm",attrs:{model:t.sectionForm,rules:t.sectionRules,"label-position":"right","label-width":"80px",inline:!0}},[t.isNew?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._e(),t._v(" "),t.isNew?n("el-form-item",{attrs:{label:"版本号",prop:"version"}},[n("el-input",{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._e(),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)},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._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 t=this;this.searchForm.search?this.searchForm.search:this.searchForm.search=null,Object(o["b"])({search:this.searchForm.search}).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(o["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(o["C"])(this.sectionForm).then(function(e){200==e.code&&(t.$message.success("修改成功"),t.sectionVisible=!1,t.getList())})},resetForm: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?"历史":""}}},u=s,l=n("2877"),c=Object(l["a"])(u,r,a,!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 a(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,n){var i=o(),s=t-i,u=20,l=0;e="undefined"===typeof e?500:e;var c=function t(){l+=u;var o=Math.easeInOutQuad(l,i,s,e);a(o),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)},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(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(o["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,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);e["a"]=l.exports},"99b4":function(t,e,n){"use strict";n.d(e,"c",function(){return s}),n.d(e,"e",function(){return u}),n.d(e,"d",function(){return l}),n.d(e,"B",function(){return c}),n.d(e,"z",function(){return d}),n.d(e,"H",function(){return p}),n.d(e,"G",function(){return f}),n.d(e,"I",function(){return m}),n.d(e,"A",function(){return b}),n.d(e,"j",function(){return h}),n.d(e,"l",function(){return g}),n.d(e,"p",function(){return v}),n.d(e,"k",function(){return y}),n.d(e,"E",function(){return _}),n.d(e,"n",function(){return F}),n.d(e,"F",function(){return O}),n.d(e,"D",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,"r",function(){return $}),n.d(e,"s",function(){return z}),n.d(e,"u",function(){return C}),n.d(e,"t",function(){return E}),n.d(e,"o",function(){return x}),n.d(e,"x",function(){return V}),n.d(e,"v",function(){return L}),n.d(e,"y",function(){return U}),n.d(e,"w",function(){return I}),n.d(e,"m",function(){return N}),n.d(e,"b",function(){return P}),n.d(e,"a",function(){return B}),n.d(e,"C",function(){return R}),n.d(e,"q",function(){return T}),n.d(e,"J",function(){return M});var r=n("b775"),a=n("4328"),o=n.n(a),i="/api-web";function s(t){return Object(r["a"])({url:i+"/cooperationOrgan/add",method:"post",data:o.a.stringify(t)})}function u(t){return Object(r["a"])({url:i+"/cooperationOrgan/update",method:"put",data:o.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:o.a.stringify(t)})}function m(t){return Object(r["a"])({url:i+"/school/update",method:"post",data:o.a.stringify(t)})}function b(t){return Object(r["a"])({url:i+"/employee/queryEmployByOrganId",method:"get",params:t})}function h(t){return Object(r["a"])({url:i+"/employee/add",method:"post",data:t})}function g(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:o.a.stringify(t)})}function _(t){return Object(r["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function F(t){return Object(r["a"])({url:"/api-auth/role/".concat(t.id),method:"get"})}function O(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:o.a.stringify(t)})}function q(t){return Object(r["a"])({url:i+"/courseScheduleRewards/update",method:"post",data:o.a.stringify(t)})}function $(t){return Object(r["a"])({url:i+"/hotWordLabelManage/queryPage",method:"get",params:t})}function z(t){return Object(r["a"])({url:i+"/hotWordLabelManage/add",method:"post",data:o.a.stringify(t)})}function C(t){return Object(r["a"])({url:i+"/hotWordLabelManage/update",method:"post",data:o.a.stringify(t)})}function E(t){return Object(r["a"])({url:i+"/hotWordLabelManage/del/".concat(t),method:"post"})}function x(t){return Object(r["a"])({url:i+"/school/queryByOrganId",method:"get",params:t})}function V(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:o.a.stringify(t)})}function U(t){return Object(r["a"])({url:i+"/paymentConfig/update",method:"post",data:o.a.stringify(t)})}function I(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 P(t){return Object(r["a"])({url:i+"/appVersionInfo/list",method:"get",params:t})}function B(t){return Object(r["a"])({url:i+"/appVersionInfo/add",method:"post",data:o.a.stringify(t)})}function R(t){return Object(r["a"])({url:i+"/appVersionInfo/update",method:"post",data:o.a.stringify(t)})}function T(t){return Object(r["a"])({url:i+"/employee/hasCourseGroupRelation",method:"post",data:o.a.stringify(t)})}function M(t){return Object(r["a"])({url:i+"/employee/updateEducationTeacherId",method:"post",data:o.a.stringify(t)})}},c0b9:function(t,e,n){"use strict";var r=n("fa3b"),a=n.n(r);a.a},fa3b:function(t,e,n){}}]);