(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4cc8f534"],{
/***/7490:
/***/function(t,e,s){"use strict";
/* harmony import */s("c453");
/* harmony import */},
/***/7852:
/***/function(t,e,s){"use strict";
// ESM COMPAT FLAG
s.r(e);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"411544a2-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/account/settings/UserList.vue?vue&type=template&id=05a7f8e0&scoped=true
s("14d9"),s("b0c0"),s("d3b7");var o=s("93d6"),a={name:"UserAdd",i18n:s("89fe"),data:function(){return{pagination:{pageSize:15,showSizeChanger:!0},
// cropper
UserList:[],refIconLoading:!1,messageShowLoad:!1,columns:[{width:"7%",slotName:"dataModel.modelTableIndex",scopedSlots:{customRender:"serial",title:"dataModel.modelTableIndex"},dataIndex:"ID"},{width:"15%",slotName:"account.settings.basic.UserName",scopedSlots:{customRender:"serial",title:"account.settings.basic.UserName"},dataIndex:"Username"},{width:"15%",slotName:"account.settings.basic.name",scopedSlots:{customRender:"serial",title:"account.settings.basic.name"},dataIndex:"name"},{slotName:"account.settings.basic.position",width:"12%",scopedSlots:{customRender:"serial",title:"account.settings.basic.position"},dataIndex:"job"},{width:"12%",slotName:"account.settings.basic.phone",scopedSlots:{customRender:"serial",title:"account.settings.basic.phone"},dataIndex:"phone"},{width:"15%",slotName:"account.settings.basic.email",scopedSlots:{customRender:"serial",title:"account.settings.basic.email"},dataIndex:"email"},{width:"10%",slotName:"account.settings.basic.Role",scopedSlots:{customRender:"role",title:"account.settings.basic.Role"},dataIndex:"role"},{slotName:"dataModel.modelTableOpt",scopedSlots:{customRender:"action",title:"dataModel.modelTableOpt"}}]}},watch:{$route:function(){this.SystemUserList()}},created:function(){this.SystemUserList()},methods:{refresh:function(){this.refIconLoading=!0,this.SystemUserList()},SystemUserList:function(){var t=this;t.UserList=[],this.messageShowLoad=!0,Object(o.i)().then((function(e){0==e.data.code&&(t.UserList=e.data.List)})).finally((function(e){t.messageShowLoad=!1,t.refIconLoading=!1}))},UserAdd:function(){this.$router.push("/Setting/UserAdd")},UserDel:function(t){var e=this,s={id:t.ID,Name:t.name};e.messageShowLoad=!0,Object(o.h)(s).then((function(t){200==t.data.code&&e.SystemUserList()})).finally((function(t){e.messageShowLoad=!1,e.refIconLoading=!1}))}}},n=(s("7490"),s("2877")),i=Object(n.a)(a,(function(){var t=this,e=t._self._c;return e("a-card",[e("a-space",{staticClass:"operator"},[e("a-button",{attrs:{type:"primary",icon:"user-add"},on:{click:t.UserAdd}},[t._v(t._s(t.$t("dataModel.newModel")))]),e("a-button",{attrs:{type:"default",icon:"sync",loading:t.refIconLoading},on:{click:function(e){return t.refresh()}}},[t._v(t._s(t.$t("dataModel.refModel")))])],1),e("a-spin",{staticStyle:{padding:"1px"},attrs:{spinning:t.messageShowLoad,tip:"Loading..."}},[e("a-table",{attrs:{rowKey:"ID",pagination:t.pagination,columns:t.columns,"data-source":t.UserList},scopedSlots:t._u([{key:"role",fn:function(s){return e("div",{},["Operator"==s?e("span",[t._v(t._s(t.$t("account.settings.UserList.RoleOperator")))]):t._e(),"User"==s?e("span",[t._v(t._s(t.$t("account.settings.UserList.RoleUser")))]):t._e()])}},{key:"action",fn:function(s,o){return e("div",{},[e("a-popconfirm",{attrs:{title:t.$t("dataModel.deleteConfirm")},on:{confirm:function(e){return t.UserDel(o)}}},[e("a-icon",{staticStyle:{color:"red"},attrs:{slot:"icon",type:"question-circle-o"},slot:"icon"}),e("a-icon",{attrs:{type:"delete",theme:"twoTone","two-tone-color":"#eb2f96"}}),e("a",{staticStyle:{color:"#eb2f96"}},[t._v(t._s(t.$t("dataModel.delete")))])],1)],1)}}])},[t._l(t.columns,(function(s,o){return e("template",{slot:s.slotName},[e("span",{key:o},[t._v(t._s(t.$t(s.slotName)))])])}))],2)],1)],1)}),[],!1,null,"05a7f8e0",null)
/* harmony default export */;e.default=i.exports},
/***/c453:
/***/function(t,e,s){
// extracted by mini-css-extract-plugin
/***/}}]);