(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-07c136a1"],{"112f":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-list-content"},[a("cl-crud",{staticClass:"liu-crud-wrap",on:{load:e.onLoad},scopedSlots:e._u([{key:"slot-tabs",fn:function(t){t.scope;return[a("el-tabs",{staticClass:"liu-tabs",attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.tabIndex,callback:function(t){e.tabIndex=t},expression:"tabIndex"}},e._l(e.tabsData,(function(e,t){return a("el-tab-pane",{key:t,attrs:{label:e.text,name:e.key}})})),1)]}},{key:"table-column-submitTime",fn:function(t){var r=t.scope;return[a("span",[e._v(e._s(e._f("formatTime")(r.row.submitTime)))])]}},{key:"table-column-status",fn:function(t){var r=t.scope;return[a("span",[e._v(e._s(e._f("constantfilter")(r.row.status,"SASS_MINIAPP_STATUS")))])]}},{key:"slot-upgrade",fn:function(t){t.scope;return[a("div",{staticClass:"flex-center"},[a("div",{staticClass:"version-text"},[e._v("当前总版本"+e._s(e.data.version))]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.upgradeDialog=!0}}},[e._v("升级")])],1)]}}])}),a("el-dialog",{attrs:{title:"升级",visible:e.upgradeDialog,"close-on-click-modal":!1,width:"500px"},on:{"update:visible":function(t){e.upgradeDialog=t}}},[a("div",{staticClass:"ad-modal-content"},[a("el-form",{ref:"form",staticClass:"demo-form",attrs:{model:e.form,rules:e.rule,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"版本号",prop:"status"}},[a("el-input",{attrs:{placeholder:"请输入版本号",size:"small"},model:{value:e.form.version,callback:function(t){e.$set(e.form,"version",t)},expression:"form.version"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:e.resetForm}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.upgradeFn}},[e._v("确认")])],1)])],1)},s=[],n=(a("63ff"),a("e5af")),o={data:function(){return{app:null,tabIndex:"-1",tabsData:[{text:"全部",key:"-1"},{text:"待审核",key:"0"},{text:"审核通过",key:"1"},{text:"审核失败",key:"3"}],upgradeDialog:!1,form:{version:"",remark:""},rule:{},data:{}}},mounted:function(){},methods:{handleClick:function(e,t){this.app.refresh({status:this.tabIndex})},showModalFn:function(){this.upgradeDialog=!0},upgradeFn:function(){var e=this;this.$service.sassShop.upgradeUpdate(this.form).then((function(t){e.app.refresh({status:e.tabIndex}),e.$message.success("升级成功！"),e.resetForm()}))},resetForm:function(){this.$refs["form"].resetFields(),this.upgradeDialog=!1},onLoad:function(e){var t=this,a=e.ctx,r=e.app;this.app=r;var s=function(){return t.$service.sassShop.upgradeList()};a.service({page:s}).set("table",{columns:[{prop:"id",label:"ID",align:"center"},{prop:"miniName",label:"名称",align:"center"},{prop:"version",label:"版本号",align:"center"},{prop:"submitTime",label:"提交时间",align:"center"},{prop:"status",label:"状态",align:"center",emptyText:"无"},{prop:"checkReturn",label:"审核说明",align:"center",emptyText:"无"}],op:{visible:!1,props:{width:100,align:"center",fixed:"right",label:"操作"},layout:[]}}).set("layout",[["slot-tabs"],["slot-upgrade","flex1","refresh-btn"],["data-table"],["flex1","pagination"]]).on("refresh",function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(a,r){var s,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=r.next,r.render,e.next=3,s(a);case 3:n=e.sent,t.data=n;case 5:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}()).done(),r.refresh({status:this.tabIndex})}}},i=o,l=(a("1673"),a("5511")),c=Object(l["a"])(i,r,s,!1,null,"2dc408c4",null);t["default"]=c.exports},1673:function(e,t,a){"use strict";var r=a("b142"),s=a.n(r);s.a},b142:function(e,t,a){}}]);