webpackJsonp([19],{XdB0:function(t,e){},xKD1:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Xxa5"),s=a.n(i),n=a("exGp"),o=a.n(n),r=a("Dd8w"),l=a.n(r),c=a("mvHQ"),d=a.n(c),u={name:"",data:function(){return{tableHeader:[{label:"行号",prop:"rowNumber",min_width:"80px",fixed:!0},{label:"客户名称",prop:"customerName"},{label:"账套名称",prop:"name"},{label:"组织编号",prop:"orgCode"},{label:"组织名称",prop:"orgName"},{label:"总用户数",prop:"totalUserCount"},{label:"已分配用户数",prop:"assignUserCount"},{label:"已使用用户数",prop:"usedUserCount"},{label:"数据库大小",prop:"databaseSize"},{label:"日志大小",prop:"logSize"},{label:"创建时间",prop:"gmtCreate"},{label:"最后修改日期",prop:"gmtModified"}],tableData:[],tableHeight:0,pageIndex:1,pageSize:30,dataTotal:0,isShowDialog:!1,edite_list:[],edite_data:"",search_condition:{}}},computed:{},methods:{searchList:function(){var t=JSON.parse(d()(this.search_condition));"orgKey"in t&&(t.orgKey=t.orgKey.join(",")),this.get_list(t)},change_searchCondition:function(t){this.search_condition=l()({},this.search_condition,t)},comfirmEdite:function(){var t=this;return o()(s.a.mark(function e(){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.edite_data.assignUserCount=Number(t.edite_list[6].value),e.next=3,t.$common.Ajax(t,{url:"/account/list",params:t.edite_data});case 3:"200"===e.sent.status&&(t.$message.closeAll(),t.$message({message:"操作成功！",type:"success",showClose:!0}),t.get_list(),t.isShowDialog=!1);case 5:case"end":return e.stop()}},e,t)}))()},edit_data:function(t){this.edite_data=t,this.edite_list=this.tableHeader.reduce(function(e,a){var i={title:a.label,value:t[a.prop],key:a.prop};return e.push(i),e},[]),this.isShowDialog=!0},get_list:function(t){var e=this;return o()(s.a.mark(function a(){var i,n,o;return s.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i={current:e.pageIndex,size:e.pageSize},t&&(i=l()({},i,t)),a.next=4,e.$common.Ajax(e,{url:"/account/list",params:i});case 4:"200"===(n=a.sent).status&&(o=e,e.tableData=n.data.records.reduce(function(t,e,a){return e.rowNumber=(o.pageIndex-1)*o.pageSize+(a+1),t.push(e),t},[]),e.dataTotal=n.data.total);case 6:case"end":return a.stop()}},a,e)}))()}},mounted:function(){},created:function(){this.tableHeight=document.documentElement.clientHeight-150+"",this.get_list()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"erpAccountWrapper"},[a("v-header",{attrs:{title:"erp账套监控"},on:{search_list:t.searchList}},[a("div",{staticClass:"search_condition"},[a("v-organization",{attrs:{show_key:"name",value_key:"code",data_key:"orgKey"},on:{inputComponentSelect:t.change_searchCondition}}),t._v(" "),a("v-cominput",{attrs:{lable_title:"账套名称",data_key:"accountSetName"},on:{inputComponentSelect:t.change_searchCondition}})],1)]),t._v(" "),a("div",{staticClass:"table_wrapper"},[a("v-comtable",{attrs:{table_data:t.tableData,table_header:t.tableHeader,data_pageIndex:t.pageIndex,data_pageSize:t.pageSize,table_height:t.tableHeight,is_checkbox:!1,data_total:t.dataTotal}},[a("el-table-column",{attrs:{slot:"operate",fixed:"right",label:"操作",width:"120"},slot:"operate",scopedSlots:t._u([{key:"default",fn:function(e){return[a("i",{staticClass:"iconfont icon-bianji",on:{click:function(a){return t.edit_data(e.row)}}})]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{title:"编辑账套",visible:t.isShowDialog,width:"70vw"},on:{"update:visible":function(e){t.isShowDialog=e}}},[a("div",{staticClass:"dialog_body"},[a("div",{staticClass:"listWrapper"},t._l(t.edite_list,function(e,i){return a("div",{key:"L"+i,staticClass:"list_item"},[a("div",{staticClass:"listLable"},[t._v(t._s(e.title)+"：")]),t._v(" "),"assignUserCount"===e.key?a("div",{staticClass:"list_item_input"},[a("el-input",{attrs:{type:"number",size:"small"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}})],1):a("div",{staticClass:"list_item_content"},[t._v("\n                        "+t._s(e.value)+"\n                    ")])])}),0),t._v(" "),a("div",{staticClass:"dialog_footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(e){t.isShowDialog=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.comfirmEdite}},[t._v("确 定")])],1)])])],1)},staticRenderFns:[]};var _=a("VU/8")(u,p,!1,function(t){a("XdB0")},null,null);e.default=_.exports}});
//# sourceMappingURL=19.ba6c72d85cf2f2abc966.js.map