webpackJsonp([11],{RFq0:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("vLgD"),i={versionList:function(t,a){return n.a._post("/admin/port/versionList",t,a)},syncCodeTemplate:function(t,a){return n.a._post("/admin/port/codeTemplateList",t,a)}},s={components:{},data:function(){return{searchForm:{},tableData:[],pageSize:10,totalDataNumber:0,curPage:1,loading:!0,curModel:{},is_detail:!1}},created:function(){this.getData()},methods:{onSubmit:function(){this.curPage=1,this.getData()},getData:function(){var t=this,a=t.searchForm;a.page=t.curPage,a.list_rows=t.pageSize,t.loading=!0,i.versionList(a,!0).then(function(a){t.loading=!1,t.tableData=a.data.list.data,t.totalDataNumber=a.data.list.total}).catch(function(t){})},handleCurrentChange:function(t){this.curPage=t,this.getData()},handleSizeChange:function(t){this.curPage=1,this.pageSize=t,this.getData()},syncClick:function(){i.syncCodeTemplate({},!0).then(function(t){self.loading=!1,self.tableData=t.data.list.data,self.totalDataNumber=t.data.list.total,self.$message({type:"success",message:t.msg}),window.location.reload()}).catch(function(t){})}}},l={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"bargain-task"},[e("div",{staticClass:"common-seach-wrap"},[e("div",{staticClass:"mb18"},[e("el-button",{attrs:{size:"small",icon:"el-icon-plus",type:"primary"},on:{click:t.syncClick}},[t._v("同步代码版本")])],1)]),t._v(" "),e("div",{staticClass:"product-content"},[e("div",{staticClass:"table-wrap"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{size:"small",data:t.tableData,border:""}},[e("el-table-column",{attrs:{prop:"version_name",label:"版本名称"}}),t._v(" "),e("el-table-column",{attrs:{prop:"version_desc",label:"版本描述",width:"500"}}),t._v(" "),e("el-table-column",{attrs:{prop:"create_time",label:"创建时间",width:"140"}})],1)],1),t._v(" "),e("div",{staticClass:"pagination"},[e("el-pagination",{attrs:{background:"","current-page":t.curPage,"page-sizes":[2,10,20,50,100],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.totalDataNumber},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])])},staticRenderFns:[]};var o=e("VU/8")(s,l,!1,function(t){e("nJgi")},null,null);a.default=o.exports},nJgi:function(t,a){}});
//# sourceMappingURL=11.a6ef388a799c95dd57b0.js.map