Commit 6d7fabac by caoyanzhi

dist

parent 6aea6f15
.admin[data-v-5fd9847d]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;background-color:#fff;min-height:100%}.admin .role-list[data-v-5fd9847d]{-ms-flex-negative:0;flex-shrink:0;width:194px;border-right:1px solid #e4e7ed}.admin .role-list .add-role[data-v-5fd9847d]{padding:20px}.admin .role-list .add-role .el-button[data-v-5fd9847d]{width:100%;border-style:dashed}.admin .admin-list[data-v-5fd9847d]{padding:20px;width:calc(100% - 194px)}.admin .admin-list .admin-list-title[data-v-5fd9847d]{margin-bottom:20px;font-size:14px;font-weight:700;color:#303133;line-height:20px}
\ No newline at end of file
.admin[data-v-6b57c53f]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;background-color:#fff;min-height:100%}.admin .role-list[data-v-6b57c53f]{-ms-flex-negative:0;flex-shrink:0;width:194px;border-right:1px solid #e4e7ed}.admin .role-list .add-role[data-v-6b57c53f]{padding:20px}.admin .role-list .add-role .el-button[data-v-6b57c53f]{width:100%;border-style:dashed}.admin .admin-list[data-v-6b57c53f]{padding:20px;width:calc(100% - 194px)}.admin .admin-list .admin-list-title[data-v-6b57c53f]{margin-bottom:20px;font-size:14px;font-weight:700;color:#303133;line-height:20px}
\ No newline at end of file
.store-admin-list[data-v-4ff5a5cc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;min-height:100%;background-color:#fff}.store-admin-list .store-role-list[data-v-4ff5a5cc]{padding:17px 0;-ms-flex-negative:0;flex-shrink:0;width:194px;border-right:1px solid #e4e7ed}.store-admin-list .store-role-list .role-title[data-v-4ff5a5cc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 20px;margin-bottom:13px;font-size:14px;font-weight:700;color:#303133;line-height:20px}.store-admin-list .store-role-list .role-title .role-title-icon[data-v-4ff5a5cc]{margin-right:10px;font-size:14px;color:#303133}.store-admin-list .store-role-list .role-title .role-title-text[data-v-4ff5a5cc]{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-admin-list .store-role-list .no-data[data-v-4ff5a5cc]{padding-top:50px;text-align:center;color:#909399}.store-admin-list .admin-list[data-v-4ff5a5cc]{padding:20px;width:calc(100% - 194px)}.store-admin-list .admin-list .admin-list-title[data-v-4ff5a5cc]{margin-bottom:18px;font-size:14px;font-weight:700;color:#303133;line-height:20px}
\ No newline at end of file
.store-admin-list[data-v-6b3b2e66]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;min-height:100%;background-color:#fff}.store-admin-list .store-role-list[data-v-6b3b2e66]{padding:17px 0;-ms-flex-negative:0;flex-shrink:0;width:194px;border-right:1px solid #e4e7ed}.store-admin-list .store-role-list .role-title[data-v-6b3b2e66]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 20px;margin-bottom:13px;font-size:14px;font-weight:700;color:#303133;line-height:20px}.store-admin-list .store-role-list .role-title .role-title-icon[data-v-6b3b2e66]{margin-right:10px;font-size:14px;color:#303133}.store-admin-list .store-role-list .role-title .role-title-text[data-v-6b3b2e66]{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-admin-list .store-role-list .no-data[data-v-6b3b2e66]{padding-top:50px;text-align:center;color:#909399}.store-admin-list .admin-list[data-v-6b3b2e66]{padding:20px;width:calc(100% - 194px)}.store-admin-list .admin-list .admin-list-title[data-v-6b3b2e66]{margin-bottom:18px;font-size:14px;font-weight:700;color:#303133;line-height:20px}
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.44.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-02337d22.c3511e98.css rel=prefetch><link href=css/chunk-059d7328.97d73469.css rel=prefetch><link href=css/chunk-05b99257.c66d8dc1.css rel=prefetch><link href=css/chunk-098c5b49.a0f21c0b.css rel=prefetch><link href=css/chunk-1be1ad5b.e59eb0af.css rel=prefetch><link href=css/chunk-2081570d.0e25b1be.css rel=prefetch><link href=css/chunk-3014b5fc.0b525558.css rel=prefetch><link href=css/chunk-3b69947c.595ab618.css rel=prefetch><link href=css/chunk-41eafc3f.36fd93d4.css rel=prefetch><link href=css/chunk-41fa7443.8569c9f3.css rel=prefetch><link href=css/chunk-42de9b90.0983c7c0.css rel=prefetch><link href=css/chunk-449727b4.83c60b62.css rel=prefetch><link href=css/chunk-49f19f3e.91850a34.css rel=prefetch><link href=css/chunk-4b0249e0.c3511e98.css rel=prefetch><link href=css/chunk-4cc32f0b.0f66d6af.css rel=prefetch><link href=css/chunk-5290df5a.d59d2f67.css rel=prefetch><link href=css/chunk-5663c4ba.6ac2e676.css rel=prefetch><link href=css/chunk-5a08f917.bc672979.css rel=prefetch><link href=css/chunk-5c05fa37.f1d53231.css rel=prefetch><link href=css/chunk-5cd1bebc.a765471b.css rel=prefetch><link href=css/chunk-5dbd9204.bf9d8d20.css rel=prefetch><link href=css/chunk-698c8307.5a3d9211.css rel=prefetch><link href=css/chunk-766e8532.22f5aefb.css rel=prefetch><link href=css/chunk-8fadacf4.15a3b3e8.css rel=prefetch><link href=css/chunk-a3250bdc.01549a8d.css rel=prefetch><link href=css/chunk-ae3e4e02.5c66b877.css rel=prefetch><link href=css/chunk-bf70a854.1ce6a8cf.css rel=prefetch><link href=css/chunk-c862dc02.dcb1c6b1.css rel=prefetch><link href=css/chunk-d38cda90.9c94f004.css rel=prefetch><link href=css/chunk-e4855a06.668bf740.css rel=prefetch><link href=js/chunk-02337d22.af83e7fd.js rel=prefetch><link href=js/chunk-059d7328.824cf255.js rel=prefetch><link href=js/chunk-05b99257.823de32f.js rel=prefetch><link href=js/chunk-098c5b49.a75bc3e0.js rel=prefetch><link href=js/chunk-1be1ad5b.b82e67d0.js rel=prefetch><link href=js/chunk-2081570d.3fca9bf2.js rel=prefetch><link href=js/chunk-3014b5fc.f1d07e4d.js rel=prefetch><link href=js/chunk-3b69947c.554addeb.js rel=prefetch><link href=js/chunk-41eafc3f.02b74c11.js rel=prefetch><link href=js/chunk-41fa7443.7c6c3218.js rel=prefetch><link href=js/chunk-42de9b90.e5e103fa.js rel=prefetch><link href=js/chunk-449727b4.8edb158a.js rel=prefetch><link href=js/chunk-49f19f3e.71eee749.js rel=prefetch><link href=js/chunk-4b0249e0.0ae135a6.js rel=prefetch><link href=js/chunk-4cc32f0b.5548df67.js rel=prefetch><link href=js/chunk-5290df5a.c085a715.js rel=prefetch><link href=js/chunk-5663c4ba.15abf97e.js rel=prefetch><link href=js/chunk-5a08f917.84340873.js rel=prefetch><link href=js/chunk-5c05fa37.d1b5927d.js rel=prefetch><link href=js/chunk-5cd1bebc.03ac3174.js rel=prefetch><link href=js/chunk-5dbd9204.a2354856.js rel=prefetch><link href=js/chunk-698c8307.8e4d3d38.js rel=prefetch><link href=js/chunk-766e8532.b5fbe92f.js rel=prefetch><link href=js/chunk-8fadacf4.bbf73a80.js rel=prefetch><link href=js/chunk-a3250bdc.d1e37c80.js rel=prefetch><link href=js/chunk-ae3e4e02.42baa371.js rel=prefetch><link href=js/chunk-bf70a854.351b9b98.js rel=prefetch><link href=js/chunk-c862dc02.9f6c438e.js rel=prefetch><link href=js/chunk-d38cda90.b37e095a.js rel=prefetch><link href=js/chunk-e4855a06.e22e55d9.js rel=prefetch><link href=css/app.0c2ca535.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.80e61159.js rel=preload as=script><link href=js/chunk-vendors.a7a8ff89.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.0c2ca535.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=js/chunk-vendors.a7a8ff89.js></script><script src=js/app.80e61159.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.44.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-02337d22.c3511e98.css rel=prefetch><link href=css/chunk-059d7328.97d73469.css rel=prefetch><link href=css/chunk-05b99257.c66d8dc1.css rel=prefetch><link href=css/chunk-098c5b49.a0f21c0b.css rel=prefetch><link href=css/chunk-1be1ad5b.e59eb0af.css rel=prefetch><link href=css/chunk-2081570d.0e25b1be.css rel=prefetch><link href=css/chunk-2392c7ce.bd0e10c9.css rel=prefetch><link href=css/chunk-41eafc3f.36fd93d4.css rel=prefetch><link href=css/chunk-41fa7443.8569c9f3.css rel=prefetch><link href=css/chunk-42de9b90.0983c7c0.css rel=prefetch><link href=css/chunk-449727b4.83c60b62.css rel=prefetch><link href=css/chunk-49f19f3e.91850a34.css rel=prefetch><link href=css/chunk-4b0249e0.c3511e98.css rel=prefetch><link href=css/chunk-4cc32f0b.0f66d6af.css rel=prefetch><link href=css/chunk-5290df5a.d59d2f67.css rel=prefetch><link href=css/chunk-5663c4ba.6ac2e676.css rel=prefetch><link href=css/chunk-5a08f917.bc672979.css rel=prefetch><link href=css/chunk-5c05fa37.f1d53231.css rel=prefetch><link href=css/chunk-5cd1bebc.a765471b.css rel=prefetch><link href=css/chunk-5dbd9204.bf9d8d20.css rel=prefetch><link href=css/chunk-698c8307.5a3d9211.css rel=prefetch><link href=css/chunk-766e8532.22f5aefb.css rel=prefetch><link href=css/chunk-8fadacf4.15a3b3e8.css rel=prefetch><link href=css/chunk-a3250bdc.01549a8d.css rel=prefetch><link href=css/chunk-ae3e4e02.5c66b877.css rel=prefetch><link href=css/chunk-bc57eb3e.0d761883.css rel=prefetch><link href=css/chunk-bf70a854.1ce6a8cf.css rel=prefetch><link href=css/chunk-c862dc02.dcb1c6b1.css rel=prefetch><link href=css/chunk-d38cda90.9c94f004.css rel=prefetch><link href=css/chunk-e4855a06.668bf740.css rel=prefetch><link href=js/chunk-02337d22.af83e7fd.js rel=prefetch><link href=js/chunk-059d7328.824cf255.js rel=prefetch><link href=js/chunk-05b99257.823de32f.js rel=prefetch><link href=js/chunk-098c5b49.a75bc3e0.js rel=prefetch><link href=js/chunk-1be1ad5b.b82e67d0.js rel=prefetch><link href=js/chunk-2081570d.3fca9bf2.js rel=prefetch><link href=js/chunk-2392c7ce.5db3946a.js rel=prefetch><link href=js/chunk-41eafc3f.02b74c11.js rel=prefetch><link href=js/chunk-41fa7443.7c6c3218.js rel=prefetch><link href=js/chunk-42de9b90.e5e103fa.js rel=prefetch><link href=js/chunk-449727b4.8edb158a.js rel=prefetch><link href=js/chunk-49f19f3e.71eee749.js rel=prefetch><link href=js/chunk-4b0249e0.0ae135a6.js rel=prefetch><link href=js/chunk-4cc32f0b.5548df67.js rel=prefetch><link href=js/chunk-5290df5a.c085a715.js rel=prefetch><link href=js/chunk-5663c4ba.15abf97e.js rel=prefetch><link href=js/chunk-5a08f917.84340873.js rel=prefetch><link href=js/chunk-5c05fa37.d1b5927d.js rel=prefetch><link href=js/chunk-5cd1bebc.03ac3174.js rel=prefetch><link href=js/chunk-5dbd9204.a2354856.js rel=prefetch><link href=js/chunk-698c8307.8e4d3d38.js rel=prefetch><link href=js/chunk-766e8532.b5fbe92f.js rel=prefetch><link href=js/chunk-8fadacf4.bbf73a80.js rel=prefetch><link href=js/chunk-a3250bdc.d1e37c80.js rel=prefetch><link href=js/chunk-ae3e4e02.42baa371.js rel=prefetch><link href=js/chunk-bc57eb3e.f711697e.js rel=prefetch><link href=js/chunk-bf70a854.351b9b98.js rel=prefetch><link href=js/chunk-c862dc02.9f6c438e.js rel=prefetch><link href=js/chunk-d38cda90.b37e095a.js rel=prefetch><link href=js/chunk-e4855a06.e22e55d9.js rel=prefetch><link href=css/app.0c2ca535.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.64de9731.js rel=preload as=script><link href=js/chunk-vendors.a7a8ff89.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.0c2ca535.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=js/chunk-vendors.a7a8ff89.js></script><script src=js/app.64de9731.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2392c7ce"],{"8f3a":function(t,e,n){"use strict";var a=n("c8bd"),i=n.n(a);i.a},c8bd:function(t,e,n){},db80:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"admin"},[n("div",{staticClass:"role-list"},[n("div",{staticClass:"add-role"},[n("el-button",{on:{click:function(e){return t.onEditRole()}}},[n("i",{staticClass:"iconfont icontianjiajiahaowubiankuang"}),t._v(" 新建管理角色")])],1),n("role-list",{attrs:{"role-list":t.roleList,"active-role-id":t.activeRoleId,"show-del-role-button":""},on:{"del-role-succ":t.onDelRoleSucc,"edit-role":t.onEditRole,"change-role":t.onChangeRole}})],1),n("div",{staticClass:"admin-list"},[n("h3",{staticClass:"admin-list-title"},[t._v("管理员列表")]),n("el-input",{staticStyle:{width:"277px"},attrs:{placeholder:"请输入姓名/员工编号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:t.onSearch},model:{value:t.search,callback:function(e){t.search="string"===typeof e?e.trim():e},expression:"search"}}),n("el-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:t.toEditAdmin}},[t._v("添加管理员")]),n("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:t.adminList}},[n("el-table-column",{attrs:{label:"姓名",prop:"staffName",formatter:function(t,e,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"员工账号",prop:"nationCode",formatter:function(t,e,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber",formatter:function(t,e,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.toEditAdmin(a)}}},[t._v("管辖范围")]),n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onDelAdmin(a)}}},[t._v("删除")])]}}])})],1),t.pager.total>0?n("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:t.pager.total,"page-sizes":t.pager.pageSizes,"page-size":t.pager.pageSize,"current-page":t.pager.currentPage},on:{"size-change":t.onSizeChange,"current-change":t.onCurrentChange}}):t._e()],1)])},i=[],o=(n("386d"),n("0082")),r=n("f286"),l=r["a"].roleList,s=r["a"].roleAdminList,c=r["a"].delAdmin,u={name:"admin-list",components:{RoleList:o["default"]},data:function(){return{activeRoleId:"",roleList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},adminList:[]}},created:function(){this.$emit("showTab","2-1"),this.getRoleList()},methods:{getRoleList:function(){var t=this;l({roleType:2}).then((function(e){t.roleList=e.result||[],t.roleList.length>0&&!t.activeRoleId&&(t.activeRoleId=t.roleList[0].roleId,t.getAdminList())}))},onEditRole:function(t){var e=t||{},n=e.roleId;this.$router.push("/edit-role".concat(n?"?roleId=".concat(n):""))},onChangeRole:function(t){this.activeRoleId=t.roleId,this.getAdminList()},onDelRoleSucc:function(t){t&&(this.activeRoleId=""),this.getRoleList()},getAdminList:function(){var t=this,e=this.pager,n=e.currentPage,a=e.pageSize,i={roleId:this.activeRoleId,search:this.search,pageNum:n,pageSize:a};s(i).then((function(e){var n=e.result||{},a=n.totalCount,i=n.result;t.pager.total=a,t.adminList=i||[]}))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(t){this.pager.pageSize=t,this.onSearch()},onCurrentChange:function(t){this.pager.currentPage=t,this.getAdminList()},toEditAdmin:function(t){var e=t||{},n=e.staffId;this.$router.push("/edit-admin?roleId=".concat(this.activeRoleId).concat(n?"&staffId=".concat(n):""))},onDelAdmin:function(t){var e=this,n=t.staffName,a=t.staffId;this.$confirm("确定删除【 ".concat(n," 】吗?"),"提示",{type:"warning"}).then((function(){var t={staffId:a,roleId:e.activeRoleId};c(t).then((function(t){e.$message.success("删除成功!"),e.pager.currentPage>1&&1==e.adminList.length&&e.pager.currentPage--,e.getAdminList()}))}))}}},d=u,g=(n("8f3a"),n("2877")),h=Object(g["a"])(d,a,i,!1,null,"5fd9847d",null);e["default"]=h.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3014b5fc"],{"1dc4":function(e,t,i){},2058:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"store-admin-list"},[i("div",{staticClass:"store-role-list"},[0==e.roleList.length?i("p",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.roleList,(function(t){return i("div",{key:t.enterpriseId},[i("h3",{staticClass:"role-title"},[i("i",{staticClass:"iconfont iconshanghu role-title-icon"}),i("p",{staticClass:"role-title-text"},[e._v(e._s(t.enterpriseName))])]),i("role-list",{attrs:{"role-list":t.roleList,"active-role-id":e.activeRoleId},on:{"edit-role":e.onEditRole,"change-role":e.onChangeRole}})],1)}))],2),i("div",{staticClass:"admin-list"},[i("h3",{staticClass:"admin-list-title"},[e._v("门店成员列表")]),i("el-input",{staticStyle:{width:"238px"},attrs:{placeholder:"请输入姓名/员工编号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search,callback:function(t){e.search="string"===typeof t?t.trim():t},expression:"search"}}),i("el-alert",{staticStyle:{float:"right",width:"720px"},attrs:{type:"info",title:"拥有门店的权限,能进行一些门店日常业务,如打标签,完成话务等。必须是导购账号 ,不可添加删除门店成员。",closable:!1,"show-icon":""}}),i("el-table",{staticStyle:{"margin-top":"20px"}},[i("el-table-column",{attrs:{label:"姓名",prop:"staffName"}}),i("el-table-column",{attrs:{label:"员工代码",prop:"nationCode"}}),i("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber"}})],1),e.pager.total>0?i("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"current-change":e.onCurrentChange,"size-change":e.onSizeChange}}):e._e()],1)])},r=[],n=(i("386d"),i("5df3"),i("ac6a"),i("0082")),s=i("f286"),o=s["a"].enterpriseList,l=s["a"].roleList,c=s["a"].roleAdminList,p={name:"store-admin-list",components:{RoleList:n["default"]},data:function(){return{roleList:[],activeRoleId:"",adminList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1}}},created:function(){this.getRoleList()},methods:{getRoleList:function(){var e=this,t=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),i=t.wxEnterpriseId,a=[];i&&o({wxEnterpriseId:i}).then((function(t){var i=t.result||[];e.roleList=i.map((function(e){var t=e.enterpriseId,i=e.enterpriseName;return{enterpriseId:t,enterpriseName:i,roleList:[]}})),0!=e.roleList.length&&(e.roleList.forEach((function(e){a.push(l({enterpriseId:e.enterpriseId,roleType:1}).then((function(t){e.roleList=t.result||[]})))})),Promise.all(a).then((function(){e.activeRoleId||e.roleList.some((function(t){return t.roleList.length>0&&(e.activeRoleId=t.roleList[0].roleId),t.roleList.length>0})),e.activeRoleId&&e.getAdminList()})))}))},getAdminList:function(){var e=this,t={roleId:this.activeRoleId,search:this.search,pageNum:this.pager.currentPage,pageSize:this.pager.pageSize};c(t).then((function(t){var i=t.result||{},a=i.totalCount,r=i.result;e.pager.total=a||0,e.adminList=r||[]}))},onChangeRole:function(e){var t=e.roleId;this.activeRoleId=t},onEditRole:function(e){this.$router.push("/edit-store-role?roleId=".concat(e.roleId))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},onCurrentChange:function(e){this.pager.currentPage=e,this.getAdminList()}}},h=p,u=(i("ffd4"),i("2877")),d=Object(u["a"])(h,a,r,!1,null,"4ff5a5cc",null);t["default"]=d.exports},ffd4:function(e,t,i){"use strict";var a=i("1dc4"),r=i.n(a);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3b69947c"],{bb5b:function(t,e,n){"use strict";var a=n("fd31"),i=n.n(a);i.a},db80:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"admin"},[n("div",{staticClass:"role-list"},[n("div",{staticClass:"add-role"},[n("el-button",{on:{click:function(e){return t.onEditRole()}}},[n("i",{staticClass:"iconfont icontianjiajiahaowubiankuang"}),t._v(" 新建管理角色")])],1),n("role-list",{attrs:{"role-list":t.roleList,"active-role-id":t.activeRoleId,"show-del-role-button":""},on:{"del-role-succ":t.onDelRoleSucc,"edit-role":t.onEditRole,"change-role":t.onChangeRole}})],1),n("div",{staticClass:"admin-list"},[n("h3",{staticClass:"admin-list-title"},[t._v("管理员列表")]),n("el-input",{staticStyle:{width:"277px"},attrs:{placeholder:"请输入姓名/员工编号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:t.onSearch},model:{value:t.search,callback:function(e){t.search="string"===typeof e?e.trim():e},expression:"search"}}),n("el-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:t.toEditAdmin}},[t._v("添加管理员")]),n("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:t.adminList}},[n("el-table-column",{attrs:{label:"姓名",prop:"staffName",formatter:function(t,e,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"员工账号",prop:"nationCode",formatter:function(t,e,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber",formatter:function(t,e,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.toEditAdmin(a)}}},[t._v("管辖范围")]),n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onDelAdmin(a)}}},[t._v("删除")])]}}])})],1),t.pager.total>0?n("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:t.pager.total,"page-sizes":t.pager.pageSizes,"page-size":t.pager.pageSize,"current-page":t.pager.currentPage},on:{"size-change":t.onSizeChange,"current-change":t.onCurrentChange}}):t._e()],1)])},i=[],o=(n("386d"),n("0082")),r=n("f286"),l=r["a"].roleList,s=r["a"].roleAdminList,c=r["a"].delAdmin,u={name:"admin-list",components:{RoleList:o["default"]},data:function(){return{activeRoleId:"",roleList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},adminList:[]}},created:function(){this.getRoleList()},methods:{getRoleList:function(){var t=this;l({roleType:2}).then((function(e){t.roleList=e.result||[],t.roleList.length>0&&!t.activeRoleId&&(t.activeRoleId=t.roleList[0].roleId,t.getAdminList())}))},onEditRole:function(t){var e=t||{},n=e.roleId;this.$router.push("/edit-role".concat(n?"?roleId=".concat(n):""))},onChangeRole:function(t){this.activeRoleId=t.roleId,this.getAdminList()},onDelRoleSucc:function(t){t&&(this.activeRoleId=""),this.getRoleList()},getAdminList:function(){var t=this,e=this.pager,n=e.currentPage,a=e.pageSize,i={roleId:this.activeRoleId,search:this.search,pageNum:n,pageSize:a};s(i).then((function(e){var n=e.result||{},a=n.totalCount,i=n.result;t.pager.total=a,t.adminList=i||[]}))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(t){this.pager.pageSize=t,this.onSearch()},onCurrentChange:function(t){this.pager.currentPage=t,this.getAdminList()},toEditAdmin:function(t){var e=t||{},n=e.staffId;this.$router.push("/edit-admin?roleId=".concat(this.activeRoleId).concat(n?"&staffId=".concat(n):""))},onDelAdmin:function(t){var e=this,n=t.staffName,a=t.staffId;this.$confirm("确定删除【 ".concat(n," 】吗?"),"提示",{type:"warning"}).then((function(){var t={staffId:a,roleId:e.activeRoleId};c(t).then((function(t){e.$message.success("删除成功!"),e.pager.currentPage>1&&1==e.adminList.length&&e.pager.currentPage--,e.getAdminList()}))}))}}},d=u,g=(n("bb5b"),n("2877")),h=Object(g["a"])(d,a,i,!1,null,"6b57c53f",null);e["default"]=h.exports},fd31:function(t,e,n){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bc57eb3e"],{2058:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"store-admin-list"},[i("div",{staticClass:"store-role-list"},[0==e.roleList.length?i("p",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.roleList,(function(t){return i("div",{key:t.enterpriseId},[i("h3",{staticClass:"role-title"},[i("i",{staticClass:"iconfont iconshanghu role-title-icon"}),i("p",{staticClass:"role-title-text"},[e._v(e._s(t.enterpriseName))])]),i("role-list",{attrs:{"role-list":t.roleList,"active-role-id":e.activeRoleId},on:{"edit-role":e.onEditRole,"change-role":e.onChangeRole}})],1)}))],2),i("div",{staticClass:"admin-list"},[i("h3",{staticClass:"admin-list-title"},[e._v("门店成员列表")]),i("el-input",{staticStyle:{width:"238px"},attrs:{placeholder:"请输入姓名/员工编号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search,callback:function(t){e.search="string"===typeof t?t.trim():t},expression:"search"}}),i("el-alert",{staticStyle:{float:"right",width:"720px"},attrs:{type:"info",title:"拥有门店的权限,能进行一些门店日常业务,如打标签,完成话务等。必须是导购账号 ,不可添加删除门店成员。",closable:!1,"show-icon":""}}),i("el-table",{staticStyle:{"margin-top":"20px"}},[i("el-table-column",{attrs:{label:"姓名",prop:"staffName"}}),i("el-table-column",{attrs:{label:"员工代码",prop:"nationCode"}}),i("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber"}})],1),e.pager.total>0?i("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"current-change":e.onCurrentChange,"size-change":e.onSizeChange}}):e._e()],1)])},r=[],n=(i("386d"),i("5df3"),i("ac6a"),i("0082")),s=i("f286"),o=s["a"].enterpriseList,l=s["a"].roleList,c=s["a"].roleAdminList,p={name:"store-admin-list",components:{RoleList:n["default"]},data:function(){return{roleList:[],activeRoleId:"",adminList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1}}},created:function(){this.$emit("showTab","2-2"),this.getRoleList()},methods:{getRoleList:function(){var e=this,t=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),i=t.wxEnterpriseId,a=[];i&&o({wxEnterpriseId:i}).then((function(t){var i=t.result||[];e.roleList=i.map((function(e){var t=e.enterpriseId,i=e.enterpriseName;return{enterpriseId:t,enterpriseName:i,roleList:[]}})),0!=e.roleList.length&&(e.roleList.forEach((function(e){a.push(l({enterpriseId:e.enterpriseId,roleType:1}).then((function(t){e.roleList=t.result||[]})))})),Promise.all(a).then((function(){e.activeRoleId||e.roleList.some((function(t){return t.roleList.length>0&&(e.activeRoleId=t.roleList[0].roleId),t.roleList.length>0})),e.activeRoleId&&e.getAdminList()})))}))},getAdminList:function(){var e=this,t={roleId:this.activeRoleId,search:this.search,pageNum:this.pager.currentPage,pageSize:this.pager.pageSize};c(t).then((function(t){var i=t.result||{},a=i.totalCount,r=i.result;e.pager.total=a||0,e.adminList=r||[]}))},onChangeRole:function(e){var t=e.roleId;this.activeRoleId=t},onEditRole:function(e){this.$router.push("/edit-store-role?roleId=".concat(e.roleId))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},onCurrentChange:function(e){this.pager.currentPage=e,this.getAdminList()}}},h=p,u=(i("261b"),i("2877")),g=Object(u["a"])(h,a,r,!1,null,"6b3b2e66",null);t["default"]=g.exports},"261b":function(e,t,i){"use strict";var a=i("ef8e"),r=i.n(a);r.a},ef8e:function(e,t,i){}}]);
\ No newline at end of file
......@@ -90,6 +90,7 @@ export default {
}
},
created() {
this.$emit('showTab', '2-1');
this.getRoleList();
},
methods: {
......
......@@ -77,6 +77,7 @@ export default {
}
},
created() {
this.$emit('showTab', '2-2');
this.getRoleList();
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment