(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-19191467"],{"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)},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("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(a["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(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["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,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(),s=t-i,u=20,l=0;e="undefined"===typeof e?500:e;var c=function t(){l+=u;var a=Math.easeInOutQuad(l,i,s,e);o(a),l