Commit f546883b by xiaohai

build for test

parents f75e44ea d09a25d7
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.8a375d62496a3c6542ed6ae159cfa799.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.04df447ff3b85aa94cba.js></script><script type=text/javascript src=./static/js/vendor.524761e5c779827c0dbf.js></script><script type=text/javascript src=./static/js/app.82af35a28ce4f8281aa6.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.61b9985aedce6798cf9511d8f0fedec6.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.e10c5913cc7df68cad4f.js></script><script type=text/javascript src=./static/js/vendor.524761e5c779827c0dbf.js></script><script type=text/javascript src=./static/js/app.4aeba69dbc69bc2064dd.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([15],{"27o1":function(e,r,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={name:"add-clerk-page",components:{clerkInfo:o("oncj").a},data:function(){return{}}},t={render:function(){var e=this.$createElement,r=this._self._c||e;return r("div",{staticClass:"add-clerk-page"},[r("clerk-info")],1)},staticRenderFns:[]};var a=o("VU/8")(n,t,!1,function(e){o("8nhi")},null,null);r.default=a.exports},"8nhi":function(e,r){},m1Jk:function(e,r){},oncj:function(e,r,o){"use strict";var n=o("Ie7z"),t=o("P9l9"),a={name:"clerk-info-form",components:{vueSelectStore:n.a},data:function(){return{rules:{name:[{required:!0,message:"请输入店员姓名",trigger:"blur"},{min:2,max:10,message:"长度在 2 到 10 个字符",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,r,o){if(!r)return o(new Error("请输入手机号"));return/^1[34578]\d{9}$/.test(r)?void 0:o(new Error("手机号格式不正确"))},trigger:"blur"}],storeName:[{required:!0,message:"请选择门店",trigger:"blur"}],code:[{required:!0,message:"请输入code",trigger:"blur"},{min:2,max:20,message:"长度在 2 到 20 个字符",trigger:"blur"}],positionName:[{required:!0,message:"请输入店员职位",trigger:"blur"}]},clerkInfo:{storeName:"",storeId:"",managerMode:!1}}},methods:{saveFn:function(e){var r=!0;this.$refs.clerk_info.validate(function(e){e||(r=!1)}),r&&this.addEmployee(this.clerkInfo,e)},callSelector:function(){this.$refs.storeSelector.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.clerkInfo.storeName=e[0].label,this.clerkInfo.storeId=e[0].id},addEmployee:function(e,r){var o=this,n={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code};console.log(e,n),Object(t.a)("/haoban-manage-web/emp/add",n).then(function(e){1==e.data.errorCode?(o.$message.success({message:"操作成功"}),1==r?o.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"",storeId:"",managerMode:!1,code:""}:window.history.go(-1)):o.$message.error({message:e.data.message})}).catch(function(e){o.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})}}},l={render:function(){var e=this,r=e.$createElement,o=e._self._c||r;return o("div",{staticClass:"form-container bdr-box"},[o("el-form",{ref:"clerk_info",staticClass:"add-clerk-form",attrs:{model:e.clerkInfo,rules:e.rules,"label-width":"80px"}},[o("el-form-item",{attrs:{label:"姓名",prop:"name"}},[o("el-input",{model:{value:e.clerkInfo.name,callback:function(r){e.$set(e.clerkInfo,"name",r)},expression:"clerkInfo.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[o("el-input",{model:{value:e.clerkInfo.phoneNumber,callback:function(r){e.$set(e.clerkInfo,"phoneNumber",r)},expression:"clerkInfo.phoneNumber"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"门店",prop:"storeName"}},[o("el-input",{on:{focus:e.callSelector},model:{value:e.clerkInfo.storeName,callback:function(r){e.$set(e.clerkInfo,"storeName",r)},expression:"clerkInfo.storeName"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"code",prop:"code"}},[o("el-input",{model:{value:e.clerkInfo.code,callback:function(r){e.$set(e.clerkInfo,"code",r)},expression:"clerkInfo.code"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[o("el-input",{model:{value:e.clerkInfo.positionName,callback:function(r){e.$set(e.clerkInfo,"positionName",r)},expression:"clerkInfo.positionName"}})],1)],1),e._v(" "),o("div",{staticClass:"btn-box"},[o("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保存")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(r){e.saveFn(1)}}},[e._v("保存并继续添加")]),e._v(" "),o("el-button",{on:{click:e.cancel}},[e._v("取消")])],1),e._v(" "),o("vue-select-store",{ref:"storeSelector",on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var s=o("VU/8")(a,l,!1,function(e){o("m1Jk")},null,null);r.a=s.exports}});
//# sourceMappingURL=15.e041c7ed9f836ff33a5d.js.map
\ No newline at end of file
webpackJsonp([16],{"27o1":function(e,r,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={name:"add-clerk-page",components:{clerkInfo:o("oncj").a},data:function(){return{}}},t={render:function(){var e=this.$createElement,r=this._self._c||e;return r("div",{staticClass:"add-clerk-page"},[r("clerk-info")],1)},staticRenderFns:[]};var a=o("VU/8")(n,t,!1,function(e){o("8nhi")},null,null);r.default=a.exports},"8nhi":function(e,r){},m1Jk:function(e,r){},oncj:function(e,r,o){"use strict";var n=o("Ie7z"),t=o("P9l9"),a={name:"clerk-info-form",components:{vueSelectStore:n.a},data:function(){return{rules:{name:[{required:!0,message:"请输入店员姓名",trigger:"blur"},{min:2,max:10,message:"长度在 2 到 10 个字符",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,r,o){if(!r)return o(new Error("请输入手机号"));return/^1[34578]\d{9}$/.test(r)?void 0:o(new Error("手机号格式不正确"))},trigger:"blur"}],storeName:[{required:!0,message:"请选择门店",trigger:"blur"}],code:[{required:!0,message:"请输入code",trigger:"blur"},{min:2,max:20,message:"长度在 2 到 20 个字符",trigger:"blur"}],positionName:[{required:!0,message:"请输入店员职位",trigger:"blur"}]},clerkInfo:{storeName:"",storeId:"",managerMode:!1}}},methods:{saveFn:function(e){var r=!0;this.$refs.clerk_info.validate(function(e){e||(r=!1)}),r&&this.addEmployee(this.clerkInfo,e)},callSelector:function(){this.$refs.storeSelector.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.clerkInfo.storeName=e[0].label,this.clerkInfo.storeId=e[0].id},addEmployee:function(e,r){var o=this,n={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code};console.log(e,n),Object(t.a)("/haoban-manage-web/emp/add",n).then(function(e){1==e.data.errorCode?(o.$message.success({message:"操作成功"}),1==r?o.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"",storeId:"",managerMode:!1,code:""}:window.history.go(-1)):o.$message.error({message:e.data.message})}).catch(function(e){o.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})}}},l={render:function(){var e=this,r=e.$createElement,o=e._self._c||r;return o("div",{staticClass:"form-container bdr-box"},[o("el-form",{ref:"clerk_info",staticClass:"add-clerk-form",attrs:{model:e.clerkInfo,rules:e.rules,"label-width":"80px"}},[o("el-form-item",{attrs:{label:"姓名",prop:"name"}},[o("el-input",{model:{value:e.clerkInfo.name,callback:function(r){e.$set(e.clerkInfo,"name",r)},expression:"clerkInfo.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[o("el-input",{model:{value:e.clerkInfo.phoneNumber,callback:function(r){e.$set(e.clerkInfo,"phoneNumber",r)},expression:"clerkInfo.phoneNumber"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"门店",prop:"storeName"}},[o("el-input",{on:{focus:e.callSelector},model:{value:e.clerkInfo.storeName,callback:function(r){e.$set(e.clerkInfo,"storeName",r)},expression:"clerkInfo.storeName"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"code",prop:"code"}},[o("el-input",{model:{value:e.clerkInfo.code,callback:function(r){e.$set(e.clerkInfo,"code",r)},expression:"clerkInfo.code"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[o("el-input",{model:{value:e.clerkInfo.positionName,callback:function(r){e.$set(e.clerkInfo,"positionName",r)},expression:"clerkInfo.positionName"}})],1)],1),e._v(" "),o("div",{staticClass:"btn-box"},[o("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保存")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(r){e.saveFn(1)}}},[e._v("保存并继续添加")]),e._v(" "),o("el-button",{on:{click:e.cancel}},[e._v("取消")])],1),e._v(" "),o("vue-select-store",{ref:"storeSelector",on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var s=o("VU/8")(a,l,!1,function(e){o("m1Jk")},null,null);r.a=s.exports}});
//# sourceMappingURL=16.18b9cdbb5f17195148ba.js.map
\ No newline at end of file
webpackJsonp([18],{"7k7j":function(e,t){},CbCS:function(e,t){},fZsz:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("mvHQ"),i=r.n(n),a=r("3Xzz"),l=r("l46T"),o=r("Mk6G"),u={name:"limittextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(e){console.log(e)},toInput:function(e){console.log(e);var t="";"word"==this.getByType?(t=o.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=o.a.getZhLen(this.itemValue)):(t=o.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=o.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=o.a.getZhLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=o.a.getZhLen(this.inputValue)}},h={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"input-line-cell",style:{width:e.inputWidth+"px"}},[r("el-input",{style:{width:e.inputWidth+"px"},attrs:{placeholder:e.holder,type:"textarea",rows:3},on:{focus:function(t){e.inputFocus()}},nativeOn:{keyup:function(t){return r=t,e.toInput(r);var r}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),r("span",{staticClass:"tip"},[r("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var s=r("VU/8")(u,h,!1,function(e){r("CbCS")},"data-v-61f16316",null).exports,c=r("3E4D"),m=r("Ch4/"),d=r("PI0u"),f=r("P9l9"),g={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"新增管理员角色",path:""}],showFlag:!1,ruleForm:{roleId:"",roleName:"企业管理员",remark:"角色说明",leftChecked:[],left:[],rightChecked:[],right:[],leftCheckedApp:[],leftApp:[],rightCheckedApp:[],rightApp:[]},rules:{roleName:[{required:!0,message:"请填写角色名称",trigger:"change"}],remark:[{required:!0,message:"请填写角色说明",trigger:"change"}],leftChecked:[{required:!0,message:"请选择菜单权限",trigger:"change"}]}}},computed:{},methods:{submitForm:Object(d.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(console.log(e),!e)return!1;var r=[];t.ruleForm.left.forEach(function(e,t){e.check&&(r.push({rightId:e.rightId}),e.children&&e.children.length&&e.children.forEach(function(e,t){e.check&&r.push({rightId:e.rightId})}))}),t.postSave(r)})},500),postSave:function(e){var t=this,r={data:i()(e),roleId:t.ruleForm.roleId,roleName:t.ruleForm.roleName,remark:t.ruleForm.remark};Object(f.c)("/haoban-manage-web/save-role",r).then(function(e){var r=e.data;if(1==r.errorCode)return c.a.showmsg("操作成功","success"),void t.$router.push("/setChildAdmin");m.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getMenuList:function(){var e=this;Object(f.c)("/haoban-manage-web/menu-list",{}).then(function(t){var r=t.data;if(1==r.errorCode)return r.result?(e.ruleForm.left=e.treeData(r.result),e.ruleForm.left.forEach(function(e,t){e.key=e.rightId,e.label=e.rightName,e.check=!1,e.children&&e.children.length&&e.children.forEach(function(e,t){e.key=e.rightId,e.label=e.rightName,e.check=!1})}),e.ruleForm.right=e.ruleForm.left[0].children?e.ruleForm.left[0].children:[],void(e.ruleForm.roleId&&e.getRoleDetail(e.ruleForm.roleId))):void e.$message.error({message:"菜单列表为空"});m.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){return e.filter(function(t){var r=e.filter(function(e){return t.haobanMenuRightId==e.parentRightId});return r.length>0&&(t.children=r),-1==t.parentRightId})},getRoleDetail:function(e){var t=this,r={roleId:e};Object(f.c)("/haoban-manage-web/role-detail",r).then(function(e){var r=e.data;if(1!=r.errorCode)m.a.errorMsg(r);else{if(t.ruleForm.roleId=r.result.role.roleId,t.ruleForm.roleName=r.result.role.roleName,t.ruleForm.roleCode=r.result.role.roleCode,t.ruleForm.remark=r.result.role.remark,t.ruleForm.right.length){var n=t.ruleForm.right.map(function(e){return e.rightId}),i=[];r.result.menuRightList.forEach(function(e,t){n.includes(e.rightId)&&i.push(e.rightId)}),t.ruleForm.rightChecked=i}var a=t.treeData(r.result.menuRightList);t.ruleForm.leftChecked=a.map(function(e){return e.rightId});var l=r.result.menuRightList.map(function(e){return e.rightId});t.ruleForm.left.forEach(function(e,t){l.includes(e.rightId)?e.check=!0:e.check=!1,e.children&&e.children.length&&e.children.forEach(function(e,t){l.includes(e.rightId)?e.check=!0:e.check=!1})})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},leftChange:function(e,t){var r=this;r.ruleForm.leftChecked=e;var n=e.includes(t[0]);function i(){r.ruleForm.right=[],r.ruleForm.left.forEach(function(e,i){e.rightId.includes(t[0])&&(e.check=!!n,e.children&&e.children.length&&e.children.forEach(function(e,t){r.ruleForm.right.push(e)}))})}e.includes(t[0]),i(),r.ruleForm.rightChecked=r.ruleForm.right.map(function(e){if(!0===e.check)return e.rightId})},rightChange:function(e,t){var r=e.includes(t[0]);this.ruleForm.rightChecked=e,this.ruleForm.left.forEach(function(e,n){e.children&&e.children.length&&e.children.forEach(function(e,n){e.rightId.includes(t[0])&&(e.check=!!r)})})},leftChangeApp:function(e,t){console.log(e,t)},rightChangeApp:function(e,t){console.log(e,t)}},mounted:function(){this.getMenuList(),this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId,this.navpath[3].name="管理员角色","show"===this.$route.query.type&&(this.showFlag=!0))},components:{navCrumb:a.a,limitInput:l.a,limitTextarea:s}},p={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.ruleForm.roleName,holder:"请输入角色名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"roleName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"角色说明",prop:"remark"}},[r("limitTextarea",{attrs:{inputWidth:500,inputValue:e.ruleForm.remark,holder:"请输入角色说明",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"remark",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"菜单权限",prop:"leftChecked"}},[r("el-transfer",{staticClass:"el-transfer-check",attrs:{titles:["一级权限","二级权限"],"left-default-checked":e.ruleForm.leftChecked,data:e.ruleForm.left},on:{"left-check-change":e.leftChange},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.option;return r("span",{},[e._v(e._s(n.label))])}}])}),e._v(" "),r("el-transfer",{staticClass:"el-transfer-check",attrs:{titles:["二级权限","二级权限"],"left-default-checked":e.ruleForm.rightChecked,data:e.ruleForm.right},on:{"left-check-change":e.rightChange},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.option;return r("span",{},[e._v(e._s(n.label))])}}])})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{disabled:!!e.showFlag,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var v=r("VU/8")(g,p,!1,function(e){r("7k7j")},"data-v-eff1bcf4",null);t.default=v.exports}});
//# sourceMappingURL=18.883dde6f28edff95cea1.js.map
\ No newline at end of file
webpackJsonp([19],{"/4Tr":function(t,s){},"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("2X9c"),a=i.n(e),n={name:"page500",data:function(){return{img_500:a.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("/4Tr")},"data-v-4bf06e19",null);s.default=c.exports}});
//# sourceMappingURL=19.fa30b19f8f6b906ab779.js.map
\ No newline at end of file
webpackJsonp([20],{"/4Tr":function(t,s){},"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("2X9c"),a=i.n(e),n={name:"page500",data:function(){return{img_500:a.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("/4Tr")},"data-v-4bf06e19",null);s.default=c.exports}});
//# sourceMappingURL=20.48c7dac836dc8f07b246.js.map
\ No newline at end of file
webpackJsonp([24],{CbCS:function(e,t){},YiVX:function(e,t){},fZsz:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("mvHQ"),i=r.n(n),a=r("3Xzz"),l=r("l46T"),o=r("Mk6G"),u={name:"limittextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(e){console.log(e)},toInput:function(e){console.log(e);var t="";"word"==this.getByType?(t=o.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=o.a.getZhLen(this.itemValue)):(t=o.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=o.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=o.a.getZhLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=o.a.getZhLen(this.inputValue)}},h={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"input-line-cell",style:{width:e.inputWidth+"px"}},[r("el-input",{style:{width:e.inputWidth+"px"},attrs:{placeholder:e.holder,type:"textarea",rows:3},on:{focus:function(t){e.inputFocus()}},nativeOn:{keyup:function(t){return r=t,e.toInput(r);var r}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),r("span",{staticClass:"tip"},[r("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var s=r("VU/8")(u,h,!1,function(e){r("CbCS")},"data-v-61f16316",null).exports,c=r("3E4D"),m=r("Ch4/"),d=r("PI0u"),f=r("P9l9"),g={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"新增管理员角色",path:""}],showFlag:!1,ruleForm:{roleId:"",roleName:"企业管理员",remark:"角色说明",leftChecked:[],left:[],rightChecked:[],right:[],leftCheckedApp:[],leftApp:[],rightCheckedApp:[],rightApp:[]},rules:{roleName:[{required:!0,message:"请填写角色名称",trigger:"change"}],remark:[{required:!0,message:"请填写角色说明",trigger:"change"}],leftChecked:[{required:!0,message:"请选择菜单权限",trigger:"change"}]}}},computed:{},methods:{submitForm:Object(d.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(console.log(e),!e)return!1;var r=[];t.ruleForm.left.forEach(function(e,t){e.check&&(r.push({rightId:e.rightId}),e.children&&e.children.length&&e.children.forEach(function(e,t){e.check&&r.push({rightId:e.rightId})}))}),console.log(t.ruleForm.left,r),t.postSave(r)})},500),postSave:function(e){var t=this,r={data:i()(e),roleId:t.ruleForm.roleId,roleName:t.ruleForm.roleName,remark:t.ruleForm.remark};Object(f.c)("/haoban-manage-web/save-role",r).then(function(e){var r=e.data;if(1==r.errorCode)return c.a.showmsg("操作成功","success"),void t.$router.push("/setChildAdmin");m.a.errorMsg(r)}).catch(function(e){console.log(e),t.$message.error({duration:1e3,message:e.message})})},getMenuList:function(){var e=this;Object(f.c)("/haoban-manage-web/menu-list",{}).then(function(t){var r=t.data;if(1==r.errorCode)return r.result?(e.ruleForm.left=e.treeData(r.result),e.ruleForm.left.forEach(function(e,t){e.key=e.rightId,e.label=e.rightName,e.check=!1,e.children&&e.children.length&&e.children.forEach(function(e,t){e.key=e.rightId,e.label=e.rightName,e.check=!1})}),e.ruleForm.right=e.ruleForm.left[0].children?e.ruleForm.left[0].children:[],void(e.ruleForm.roleId&&e.getRoleDetail(e.ruleForm.roleId))):void e.$message.error({message:"菜单列表为空"});m.a.errorMsg(r)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){return e.filter(function(t){var r=e.filter(function(e){return t.haobanMenuRightId==e.parentRightId});return r.length>0&&(t.children=r),-1==t.parentRightId})},getRoleDetail:function(e){var t=this,r={roleId:e};Object(f.c)("/haoban-manage-web/role-detail",r).then(function(e){var r=e.data;if(1!=r.errorCode)m.a.errorMsg(r);else{if(t.ruleForm.roleId=r.result.role.roleId,t.ruleForm.roleName=r.result.role.roleName,t.ruleForm.roleCode=r.result.role.roleCode,t.ruleForm.remark=r.result.role.remark,t.ruleForm.right.length){var n=t.ruleForm.right.map(function(e){return e.rightId}),i=[];r.result.menuRightList.forEach(function(e,t){n.includes(e.rightId)&&i.push(e.rightId)}),t.ruleForm.rightChecked=i}var a=t.treeData(r.result.menuRightList);t.ruleForm.leftChecked=a.map(function(e){return e.rightId});var l=r.result.menuRightList.map(function(e){return e.rightId});t.ruleForm.left.forEach(function(e,t){l.includes(e.rightId)?e.check=!0:e.check=!1,e.children&&e.children.length&&e.children.forEach(function(e,t){l.includes(e.rightId)?e.check=!0:e.check=!1})})}}).catch(function(e){console.log(e),t.$message.error({duration:1e3,message:e.message})})},leftChange:function(e,t){var r=this;r.ruleForm.leftChecked=e;var n=e.includes(t[0]);function i(){r.ruleForm.right=[],r.ruleForm.left.forEach(function(e,i){e.rightId.includes(t[0])&&(e.check=!!n,e.children&&e.children.length&&e.children.forEach(function(e,t){r.ruleForm.right.push(e)}))})}e.includes(t[0]),i(),r.ruleForm.rightChecked=r.ruleForm.right.map(function(e){if(!0===e.check)return e.rightId})},rightChange:function(e,t){console.log(e,t);var r=e.includes(t[0]);this.ruleForm.rightChecked=e,this.ruleForm.left.forEach(function(e,n){e.children&&e.children.length&&e.children.forEach(function(e,n){e.rightId.includes(t[0])&&(e.check=!!r)})})},leftChangeApp:function(e,t){console.log(e,t)},rightChangeApp:function(e,t){console.log(e,t)}},mounted:function(){console.log(this.$route.query),this.getMenuList(),this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId,this.navpath[3].name="管理员角色","show"===this.$route.query.type&&(this.showFlag=!0))},components:{navCrumb:a.a,limitInput:l.a,limitTextarea:s}},p={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.ruleForm.roleName,holder:"请输入角色名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"roleName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"角色说明",prop:"remark"}},[r("limitTextarea",{attrs:{inputWidth:500,inputValue:e.ruleForm.remark,holder:"请输入角色说明",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"remark",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"菜单权限",prop:"leftChecked"}},[r("el-transfer",{staticClass:"el-transfer-check",attrs:{titles:["一级权限","二级权限"],"left-default-checked":e.ruleForm.leftChecked,data:e.ruleForm.left},on:{"left-check-change":e.leftChange},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.option;return r("span",{},[e._v(e._s(n.label))])}}])}),e._v(" "),r("el-transfer",{staticClass:"el-transfer-check",attrs:{titles:["二级权限","二级权限"],"left-default-checked":e.ruleForm.rightChecked,data:e.ruleForm.right},on:{"left-check-change":e.rightChange},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.option;return r("span",{},[e._v(e._s(n.label))])}}])})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{disabled:!!e.showFlag,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var v=r("VU/8")(g,p,!1,function(e){r("YiVX")},"data-v-083350f8",null);t.default=v.exports}});
//# sourceMappingURL=24.5436864bdfd8dfdbef23.js.map
\ No newline at end of file
webpackJsonp([23],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){console.log(this.$route.path)}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(n,c,!1,function(t){i("dqqc")},"data-v-12e12bd8",null);s.default=r.exports},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"},dqqc:function(t,s){}});
//# sourceMappingURL=23.9f05cfc644dbcf58019a.js.map
\ No newline at end of file
webpackJsonp([24],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){console.log(this.$route.path)}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(n,c,!1,function(t){i("dqqc")},"data-v-12e12bd8",null);s.default=r.exports},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"},dqqc:function(t,s){}});
//# sourceMappingURL=24.a65971a02be425cfe7d7.js.map
\ No newline at end of file
webpackJsonp([29],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},a={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(o,a,!1,function(e){n("YBpt")},null,null);t.default=i.exports},YBpt:function(e,t){}});
//# sourceMappingURL=29.e36fff938ae088383d0e.js.map
\ No newline at end of file
webpackJsonp([28],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},a={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(o,a,!1,function(e){n("YBpt")},null,null);t.default=i.exports},YBpt:function(e,t){}});
//# sourceMappingURL=28.dbd9d86ae779ffab47d2.js.map
\ No newline at end of file
webpackJsonp([28],{RHxA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("elmV"),i=a("P9l9"),l={name:"employee-io",components:{uploadExcelComponent:s.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{type:"import",fileList:[],url:t+"/haoban-manage-web/store/upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(i.a)("/haoban-manage-web/error-log-page",e).then(function(e){console.log(e),1==e.data.errorCode?(console.log(e.data),t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},handleRemove:function(t,e){console.log(t,e)},handlePreview:function(t){console.log(t)},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){console.log(t,e),this.fileList=e}},beforeMount:function(){"note"==this.type&&this.getErrorNote()}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"io-container"},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-radio-button",{attrs:{label:"import"}},[t._v("导入门店")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改门店")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载门店导入模板,批量填写门店信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:"http://www.gicdev.com/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传填写好的门店信息\n "),a("div",{staticClass:"d-u-btn m-t-20"},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出门店\n "),a("a",{staticClass:"d-u-btn",attrs:{href:"http://www.gicdev.com/haoban-manage-web/store/export?storeGroupId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改门店信息\n ")]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传修改后的门店信息\n "),a("div",{staticClass:"d-u-btn m-t-20"},[a("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[t._m(1),t._v(" "),a("a",{attrs:{href:"http://www.gicdev.com/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),a("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],1),t._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area"},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"),a("a",{staticClass:"a-href"},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("如需更新已存在的门店及店员,可逐个进行修改,或请先导出,在导出表格里进行修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对门店信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip"},[this._v("\n 导入总条数:0条,成功导入0条,"),e("span",{staticClass:"red"},[this._v("错误导入0条")])])}]};var r=a("VU/8")(l,o,!1,function(t){a("sUgq")},null,null);e.default=r.exports},sUgq:function(t,e){}});
//# sourceMappingURL=28.ef5d4fe5d5da87f2ea93.js.map
\ No newline at end of file
webpackJsonp([31],{szBz:function(e,t){},ys9I:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3Xzz"),s=(r("Mk6G"),r("3E4D"),r("Ch4/"),r("PI0u")),n={name:"replaceAdmin",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"更换超级管理员",path:""}],subNavText:"更换超级管理员,需要先验证当前超级管理员身份",active:0,ruleForm:{name:"11",phone:1334444444,code:""},rules:{name:[{required:!0,message:"请输入当前绑定账号",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},disableBtn:!1,newFormLoad:!1,newRuleForm:{name:""},newRules:{name:[{required:!0,message:"请输入手机号/姓名",trigger:"blur"}]}}},computed:{},methods:{sendCode:Object(s.a)(function(e){this.disableBtn=!0},500),postSendCode:function(){},submitForm:Object(s.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.active++>2&&t.active})},500),newSubmitForm:Object(s.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.active++})},500),submitFormBack:function(){this.active&&this.active--},getCurrentUser:function(){var e=JSON.parse(localStorage.getItem("userInfo"));this.ruleForm.phone=e.phoneNumber}},mounted:function(){this.getCurrentUser()},components:{navCrumb:a.a}},l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"replaceAdmin-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("el-steps",{attrs:{active:e.active,"finish-status":"success","align-center":""}},[r("el-step",{attrs:{title:"获取验证码"}}),e._v(" "),r("el-step",{attrs:{title:"绑定新的超级管理员"}}),e._v(" "),r("el-step",{attrs:{title:"完成"}})],1),e._v(" "),r("div",{staticClass:"w-514 replaceAdmin-wrap-form m-t-45"},[0==e.active?r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"110px"}},[r("el-form-item",{attrs:{label:"当前绑定账号",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.phone,callback:function(t){e.$set(e.ruleForm,"phone",t)},expression:"ruleForm.phone"}}),r("el-button",{staticClass:"m-l-20 v-align-b",attrs:{type:"primary",disabled:e.disableBtn},on:{click:function(t){e.sendCode(e.ruleForm.phone)}}},[e._v("获取验证码")])],1),e._v(" "),r("el-form-item",{attrs:{label:"验证码",prop:"code"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入验证码"},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("下一步")])],1)],1):e._e(),e._v(" "),1==e.active?r("el-form",{ref:"newRuleForm",staticClass:"demo-ruleForm",attrs:{model:e.newRuleForm,rules:e.newRules,"label-width":"140px"}},[r("el-form-item",{attrs:{label:"新绑定超级管理员",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入手机号/姓名"},model:{value:e.newRuleForm.name,callback:function(t){e.$set(e.newRuleForm,"name",t)},expression:"newRuleForm.name"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",loading:e.newFormLoad},on:{click:function(t){e.newSubmitForm("newRuleForm")}}},[e._v("提交")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitFormBack}},[e._v("上一步")])],1)],1):e._e(),e._v(" "),2==e.active?r("div",{staticClass:"replaceAdmin-wrap-success"},[e._m(0),e._v(" "),r("p",[e._v("操作成功")])]):e._e()],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"icon-outer"},[t("i",{staticClass:"el-icon-success"})])}]};var o=r("VU/8")(n,l,!1,function(e){r("szBz")},"data-v-3ba906a9",null);t.default=o.exports}});
//# sourceMappingURL=31.f95acb2588f6ea83603e.js.map
\ No newline at end of file
webpackJsonp([29],{szBz:function(e,t){},ys9I:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3Xzz"),s=(r("Mk6G"),r("3E4D"),r("Ch4/"),r("PI0u")),n={name:"replaceAdmin",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"更换超级管理员",path:""}],subNavText:"更换超级管理员,需要先验证当前超级管理员身份",active:0,ruleForm:{name:"11",phone:1334444444,code:""},rules:{name:[{required:!0,message:"请输入当前绑定账号",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},disableBtn:!1,newFormLoad:!1,newRuleForm:{name:""},newRules:{name:[{required:!0,message:"请输入手机号/姓名",trigger:"blur"}]}}},computed:{},methods:{sendCode:Object(s.a)(function(e){this.disableBtn=!0},500),postSendCode:function(){},submitForm:Object(s.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.active++>2&&t.active})},500),newSubmitForm:Object(s.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.active++})},500),submitFormBack:function(){this.active&&this.active--},getCurrentUser:function(){var e=JSON.parse(localStorage.getItem("userInfo"));this.ruleForm.phone=e.phoneNumber}},mounted:function(){this.getCurrentUser()},components:{navCrumb:a.a}},l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"replaceAdmin-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("el-steps",{attrs:{active:e.active,"finish-status":"success","align-center":""}},[r("el-step",{attrs:{title:"获取验证码"}}),e._v(" "),r("el-step",{attrs:{title:"绑定新的超级管理员"}}),e._v(" "),r("el-step",{attrs:{title:"完成"}})],1),e._v(" "),r("div",{staticClass:"w-514 replaceAdmin-wrap-form m-t-45"},[0==e.active?r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"110px"}},[r("el-form-item",{attrs:{label:"当前绑定账号",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.phone,callback:function(t){e.$set(e.ruleForm,"phone",t)},expression:"ruleForm.phone"}}),r("el-button",{staticClass:"m-l-20 v-align-b",attrs:{type:"primary",disabled:e.disableBtn},on:{click:function(t){e.sendCode(e.ruleForm.phone)}}},[e._v("获取验证码")])],1),e._v(" "),r("el-form-item",{attrs:{label:"验证码",prop:"code"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入验证码"},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("下一步")])],1)],1):e._e(),e._v(" "),1==e.active?r("el-form",{ref:"newRuleForm",staticClass:"demo-ruleForm",attrs:{model:e.newRuleForm,rules:e.newRules,"label-width":"140px"}},[r("el-form-item",{attrs:{label:"新绑定超级管理员",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入手机号/姓名"},model:{value:e.newRuleForm.name,callback:function(t){e.$set(e.newRuleForm,"name",t)},expression:"newRuleForm.name"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",loading:e.newFormLoad},on:{click:function(t){e.newSubmitForm("newRuleForm")}}},[e._v("提交")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitFormBack}},[e._v("上一步")])],1)],1):e._e(),e._v(" "),2==e.active?r("div",{staticClass:"replaceAdmin-wrap-success"},[e._m(0),e._v(" "),r("p",[e._v("操作成功")])]):e._e()],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"icon-outer"},[t("i",{staticClass:"el-icon-success"})])}]};var o=r("VU/8")(n,l,!1,function(e){r("szBz")},"data-v-3ba906a9",null);t.default=o.exports}});
//# sourceMappingURL=29.0e3a1c8173246dac0cd3.js.map
\ No newline at end of file
webpackJsonp([32],{SKyE:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3Xzz"),n=(r("Mk6G"),r("3E4D"),r("Ch4/"),r("PI0u")),s=(r("P9l9"),{name:"companyAddress",data:function(){var e=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(t,r,a){e.ruleForm.switch&&""==r.replace(/\s/g)?a(new Error("请输入地址")):a()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(n.a)(function(e){this.$refs[e].validate(function(e){if(console.log(e),!e)return!1})},500),postSave:function(){}},mounted:function(){},components:{navCrumb:a.a}}),o={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("h2",[e._v("企业地址设置")]),e._v(" "),r("p",{staticClass:"m-t-24"},[e._v("开启后手机端通讯录将显示,反之则不显示")]),e._v(" "),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"企业地址",prop:"switch"}},[r("el-switch",{model:{value:e.ruleForm.switch,callback:function(t){e.$set(e.ruleForm,"switch",t)},expression:"ruleForm.switch"}})],1),e._v(" "),r("el-form-item",{attrs:{label:" ",prop:"name"}},[r("el-input",{staticClass:"w-380",attrs:{placeholder:"请输入地址"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var l=r("VU/8")(s,o,!1,function(e){r("VtMa")},"data-v-3972aa67",null);t.default=l.exports},VtMa:function(e,t){}});
//# sourceMappingURL=32.e231e76fe8401d4578c4.js.map
\ No newline at end of file
webpackJsonp([30],{SKyE:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3Xzz"),n=(r("Mk6G"),r("3E4D"),r("Ch4/"),r("PI0u")),s=(r("P9l9"),{name:"companyAddress",data:function(){var e=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(t,r,a){e.ruleForm.switch&&""==r.replace(/\s/g)?a(new Error("请输入地址")):a()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(n.a)(function(e){this.$refs[e].validate(function(e){if(console.log(e),!e)return!1})},500),postSave:function(){}},mounted:function(){},components:{navCrumb:a.a}}),o={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("h2",[e._v("企业地址设置")]),e._v(" "),r("p",{staticClass:"m-t-24"},[e._v("开启后手机端通讯录将显示,反之则不显示")]),e._v(" "),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"企业地址",prop:"switch"}},[r("el-switch",{model:{value:e.ruleForm.switch,callback:function(t){e.$set(e.ruleForm,"switch",t)},expression:"ruleForm.switch"}})],1),e._v(" "),r("el-form-item",{attrs:{label:" ",prop:"name"}},[r("el-input",{staticClass:"w-380",attrs:{placeholder:"请输入地址"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var l=r("VU/8")(s,o,!1,function(e){r("VtMa")},"data-v-3972aa67",null);t.default=l.exports},VtMa:function(e,t){}});
//# sourceMappingURL=30.cc7fd72ffc3cb0e4c4c4.js.map
\ No newline at end of file
webpackJsonp([31],{RHxA:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3Xzz"),i=e("elmV"),l=e("P9l9"),o={name:"employee-io",components:{navCrumb:s.a,uploadExcelComponent:i.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"storeFrame"},{name:"批量导入导出",path:""}],type:"import",fileList:[],url:t+"/haoban-manage-web/store/upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,a={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(l.a)("/haoban-manage-web/error-log-page",a).then(function(a){console.log(a),1==a.data.errorCode?(console.log(a.data),t.total=a.data.result.totalCount,t.logList=a.data.result.result,t.loading=!1):t.$message.error({message:a.data.message})}).catch(function(a){t.$message.error({message:a.message})})},handleRemove:function(t,a){console.log(t,a)},handlePreview:function(t){console.log(t)},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,a){console.log(t,a),this.fileList=a}},beforeMount:function(){"note"==this.type&&this.getErrorNote()}},r={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box"},[e("div",{staticClass:"io-container"},[t._m(0),t._v(" "),e("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(a){t.type=a},expression:"type"}},[e("el-radio-button",{attrs:{label:"import"}},[t._v("导入门店")]),t._v(" "),e("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改门店")]),t._v(" "),e("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?e("div",{staticClass:"handle-area import"},[e("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px"}},[e("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载门店导入模板,批量填写门店信息\n "),e("a",{staticClass:"d-u-btn",attrs:{href:"http://www.gicdev.com/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"}},[e("el-button",{attrs:{type:"primary"}},[t._v("下载"),e("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),e("div",{staticClass:"step-div"},[e("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传填写好的门店信息\n "),e("div",{staticClass:"d-u-btn m-t-20"},[e("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[e("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),e("div",{staticClass:"up-btn-div"},[e("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(a){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?e("div",{staticClass:"handle-area import"},[e("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px"}},[e("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出门店\n "),e("a",{staticClass:"d-u-btn",attrs:{href:"http://www.gicdev.com/haoban-manage-web/store/export?storeGroupId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[e("el-button",{attrs:{type:"primary"}},[t._v("下载"),e("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改门店信息\n ")]),t._v(" "),e("div",{staticClass:"step-div"},[e("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传修改后的门店信息\n "),e("div",{staticClass:"d-u-btn m-t-20"},[e("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[e("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),e("div",{staticClass:"up-btn-div"},[e("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(a){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):e("div",{staticClass:"error-log import"},[e("div",{staticClass:"title-area"},[t._m(1),t._v(" "),e("a",{attrs:{href:"http://www.gicdev.com/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[e("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[e("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),e("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),e("el-table-column",{attrs:{label:"姓名",prop:"name"}}),t._v(" "),e("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),e("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),e("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),e("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v("\n "+t._s(1==a.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],1),t._v(" "),e("div",{staticClass:"pagination"},[e("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)])])],1)},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ul",{staticClass:"tip-area"},[e("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"),e("a",{staticClass:"a-href"},[t._v("企业认证")])]),t._v(" "),e("li",{staticClass:"tip"},[t._v("如需更新已存在的门店及店员,可逐个进行修改,或请先导出,在导出表格里进行修改")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("不能在本excel表中对门店信息类别进行增加、删除、修改")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入")])])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"tip"},[this._v("\n 导入总条数:0条,成功导入0条,"),a("span",{staticClass:"red"},[this._v("错误导入0条")])])}]};var n=e("VU/8")(o,r,!1,function(t){e("bPjP")},null,null);a.default=n.exports},bPjP:function(t,a){}});
//# sourceMappingURL=31.3461b00cec4520ebdbb7.js.map
\ No newline at end of file
webpackJsonp([34],{mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),r=a("Ie7z"),o=a("P9l9"),s={name:"store-view-group-info",components:{navCrumb:n.a,vueSelectStore:r.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"添加子分组",path:""}],departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{handleSelectedList:function(e){var t=e[0];console.log(t),this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.label:""},callGroupSelector:function(){this.$refs.storeSelector.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var n=e,r={parentId:n.departInfo.parentId,name:n.departInfo.name},s="";n.isAddNew?s="/haoban-manage-web/dept/insert":(s="/haoban-manage-web/dept/update",r.groupId=n.$route.query.groupId),Object(o.a)(s,r).then(function(e){console.log(e),1==e.data.errorCode?(n.$message.success({duration:1e3,message:"操作成功!"}),console.log(t),"continue"==t?(n.departInfo={name:"",parentName:"",parentId:""},n.disabled=!0,n.getGroupData()):window.history.go(-1)):n.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(o.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId}:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}},beforeMount:function(){this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(s,i,!1,function(e){a("pth3")},null,null);t.default=d.exports},pth3:function(e,t){}});
//# sourceMappingURL=34.75342eb5950a24f5ba13.js.map
\ No newline at end of file
webpackJsonp([33],{mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),r=a("Ie7z"),o=a("P9l9"),s={name:"store-view-group-info",components:{navCrumb:n.a,vueSelectStore:r.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"添加子分组",path:""}],departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{handleSelectedList:function(e){var t=e[0];console.log(t),this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.label:""},callGroupSelector:function(){this.$refs.storeSelector.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var n=e,r={parentId:n.departInfo.parentId,name:n.departInfo.name},s="";n.isAddNew?s="/haoban-manage-web/dept/insert":(s="/haoban-manage-web/dept/update",r.groupId=n.$route.query.groupId),Object(o.a)(s,r).then(function(e){console.log(e),1==e.data.errorCode?(n.$message.success({duration:1e3,message:"操作成功!"}),console.log(t),"continue"==t?(n.departInfo={name:"",parentName:"",parentId:""},n.disabled=!0,n.getGroupData()):window.history.go(-1)):n.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(o.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId}:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}},beforeMount:function(){this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(s,i,!1,function(e){a("pth3")},null,null);t.default=d.exports},pth3:function(e,t){}});
//# sourceMappingURL=33.6895e9eb632169971ddb.js.map
\ No newline at end of file
webpackJsonp([30],{AdJp:function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=n("3Xzz"),o=n("WSbm"),s=n("P9l9"),r={name:"employeeDetail",components:{navCrumb:t.a,employeeInfo:o.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this.$refs.emmployInfo.info;console.log(a,"ssss"),this.isNew?this.addEmployee(a,e):this.saveEmployeeInfo(a)},addEmployee:function(e,a){var n=this,t={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode};console.log(e,t),Object(s.a)("/haoban-manage-web/emp/add",t).then(function(e){console.log(e,"add result"),1==e.data.errorCode?(n.$message.success({message:"操作成功"}),1==a?n.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1}:window.history.go(-1)):n.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error")})},saveEmployeeInfo:function(e){var a=this,n={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode};console.log(e,n),Object(s.a)("/haoban-manage-web/emp/update",n).then(function(e){console.log(e,"update result"),1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error"),a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}}},i={render:function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("div",{staticClass:"common-set-wrap"},[n("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box"},[n("div",{staticClass:"employee-detail"},[n("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),n("div",{staticClass:"btn-boxs"},[n("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")]),e._v(" "),e.isNew?n("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),n("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)],1)])])],1)},staticRenderFns:[]};var m=n("VU/8")(r,i,!1,function(e){n("i7zd")},null,null);a.default=m.exports},i7zd:function(e,a){}});
//# sourceMappingURL=30.ea63488f1ae74c53784d.js.map
\ No newline at end of file
webpackJsonp([34],{AdJp:function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=n("3Xzz"),o=n("WSbm"),s=n("P9l9"),r={name:"employeeDetail",components:{navCrumb:t.a,employeeInfo:o.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"添加员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this.$refs.emmployInfo.info;console.log(a,"ssss"),this.isNew?this.addEmployee(a,e):this.saveEmployeeInfo(a)},addEmployee:function(e,a){var n=this,t={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode};console.log(e,t),Object(s.a)("/haoban-manage-web/emp/add",t).then(function(e){console.log(e,"add result"),1==e.data.errorCode?(n.$message.success({message:"操作成功"}),1==a?n.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1}:window.history.go(-1)):n.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error")})},saveEmployeeInfo:function(e){var a=this,n={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode};console.log(e,n),Object(s.a)("/haoban-manage-web/emp/update",n).then(function(e){console.log(e,"update result"),1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error"),a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}}},m={render:function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("div",{staticClass:"common-set-wrap"},[n("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box"},[n("div",{staticClass:"employee-detail"},[n("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),n("div",{staticClass:"btn-boxs"},[n("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")]),e._v(" "),e.isNew?n("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),n("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(r,m,!1,function(e){n("U5If")},null,null);a.default=i.exports},U5If:function(e,a){}});
//# sourceMappingURL=34.2349d9830c9a4d627933.js.map
\ No newline at end of file
webpackJsonp([38],{"6q3/":function(e,t){},"rs/A":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("mvHQ"),s=a.n(r),o=a("3Xzz"),l=a("c4uw"),i=a("Ie7z"),n=(a("Mk6G"),a("3E4D")),c=a("Ch4/"),u=a("PI0u"),d=a("P9l9"),m={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"添加成员",path:""}],ruleForm:{roleId:"",roleName:"企业管理员",peopleList:[],departList:[],brandValue:[],brandOptions:[]},rules:{},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],onlyPerson:!1,selectType:"",storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},submitForm:Object(u.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(console.log(e,t.ruleForm.peopleList,t.ruleForm.brandValue),!e)return!1;var a=[];t.ruleForm.departList.forEach(function(e){a.push({groupId:e.groupId})}),t.ruleForm.brandValue.forEach(function(e){a.push({storeId:e.storeId})});var r=t.ruleForm.peopleList.map(function(e){return e.employeeClerkId}).join(",");t.postSave(a,r)})},500),postSave:function(e,t){var a=this,r={data:s()(e),roleId:a.ruleForm.roleId,clerkIds:t};Object(d.c)("/haoban-manage-web/save-clerk-role",r).then(function(e){var t=e.data;if(1==t.errorCode)return n.a.showmsg("添加成功","success"),void a.changeRoute("/setChildAdmin");c.a.errorMsg(t)}).catch(function(e){console.log(e),a.$message.error({duration:1e3,message:e.message})})},delField:function(e,t,a){this.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(t){t.value;a.splice(e,1)}).catch(function(){})},delDepart:function(e,t){t.splice(e,1)},showDialogLayer:function(e,t){console.log(e,t),this.selectType=e,"store"!==e?(this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1},"people"===e?(this.onlyPerson=!0,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):this.onlyPerson=!1,console.log(this.treeSet,this.onlyPerson),this.defaultSelection=t,this.treeData.hasOwnProperty("treeData")||this.getDepartData(t)):this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}},handleSelectedList:function(e){console.log(e);"people"===this.selectType?this.ruleForm.peopleList=e:"store"===this.selectType?this.ruleForm.brandValue=e:this.ruleForm.departList=e},getDepartData:function(e){var t=this;Object(d.c)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(a){var r=a.data;if(1!=r.errorCode)c.a.errorMsg(r);else if(r.result){var s=[],o=[];1==a.data.errorCode&&(s=a.data.result.departmentList||[],o=a.data.result.searchList||[]),t.treeData={treeData:s,personData:o},t.defaultSelection=e}else t.$message.error({duration:1e3,message:"暂无数据"})}).catch(function(e){console.log(e),t.$message.error({duration:1e3,message:e.message})})},getStoreData:function(){var e=this;Object(d.c)("/haoban-manage-web/dept/deptListForCompany",{}).then(function(t){var a=t.data;if(1!=a.errorCode)c.a.errorMsg(a);else if(a.result){var r=[],s=[];1==t.data.errorCode&&(r=t.data.result.departmentList||[],s=t.data.result.searchList||[]),e.treeData={treeData:r,personData:s},e.defaultSelection=selData}else e.$message.error({duration:1e3,message:"暂无数据"})}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},getBrandData:function(){var e=this;Object(d.c)("/haoban-manage-web/brand/list",{}).then(function(t){var a=t.data;1!=a.errorCode?c.a.errorMsg(a):a.result&&a.result.length?e.ruleForm.brandOptions=a.result:e.$message.error({duration:1e3,message:"暂无数据"})}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData(),this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId),this.$route.query.hasOwnProperty("roleCode")&&(this.ruleForm.roleCode=this.$route.query.roleCode,this.ruleForm.roleName="admin"===this.$route.query.roleCode?"企业管理员":"子管理员")},components:{navCrumb:o.a,vueSelectEmployee:l.a,vueSelectStore:i.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"companyAddress-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"管理员角色",prop:"roleName"}},[a("el-input",{staticClass:"w-380",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.roleName,callback:function(t){e.$set(e.ruleForm,"roleName",t)},expression:"ruleForm.roleName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"选择人员",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-wrap"},[e._l(e.ruleForm.peopleList,function(t,r){return[a("div",{staticClass:"people-cell"},[a("img",{attrs:{src:t.headPic}}),e._v(" "),a("p",[e._v(e._s(t.name))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),e.delField(r,t,e.ruleForm.peopleList)}}})])]}),e._v(" "),a("div",{staticClass:"people-cell"},[a("span",{staticClass:"add-icon",on:{click:function(t){t.stopPropagation(),e.showDialogLayer("people",e.ruleForm.peopleList)}}},[a("i",{staticClass:"el-icon-plus"})])])],2)]),e._v(" "),a("el-form-item",{staticClass:"m-b-0",attrs:{label:"选择管理范围",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-column item-cell-select"},[a("div",[e._v("行政架构")]),e._v(" "),a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(t){e.showDialogLayer("depart",e.ruleForm.departList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.ruleForm.departList,function(t,r){return[a("span",{key:r,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(r,e.ruleForm.departList)}}})])]})],2)])])]),e._v(" "),a("div",[e._v("门店架构")]),e._v(" "),"admin"==e.ruleForm.roleCode?a("div",{staticClass:"store-item-wrap"},[a("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:e.ruleForm.brandValue,callback:function(t){e.$set(e.ruleForm,"brandValue",t)},expression:"ruleForm.brandValue"}},e._l(e.ruleForm.brandOptions,function(e){return a("el-option",{key:e.brandId,attrs:{label:e.name,value:e.brandId}})}))],1):e._e(),e._v(" "),"child_admin"==e.ruleForm.roleCode?a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(t){e.showDialogLayer("store",e.ruleForm.brandValue)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.ruleForm.brandValue,function(t,r){return[a("span",{key:r,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(r,e.ruleForm.brandValue)}}})])]})],2)])])]):e._e()])]),e._v(" "),a("el-form-item",{staticClass:"m-t-24"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),a("vue-gic-footer"),e._v(" "),a("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.storeTreeSet},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var h=a("VU/8")(m,p,!1,function(e){a("6q3/")},"data-v-0f053ab0",null);t.default=h.exports}});
//# sourceMappingURL=38.15467158be1f31baef4e.js.map
\ No newline at end of file
webpackJsonp([39],{"7Bbo":function(t,e){},VlR1:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"setting",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1}},computed:{},methods:{toRouterView:function(t){console.log(t),this.$router.push({path:t.path})},collapseTag:function(t){console.log(t),this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.pathName=window.location.hash.split("/")[1],console.log("pathname:",this.pathName,this.$route.path),this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},n={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"setting-wrap"},[o("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),o("div",{staticClass:"setting-wrap__body"},[o("div",{staticClass:"content",attrs:{id:"content"}},[o("div",{staticClass:"content-body",style:{height:t.contentHeight}},[o("div",{staticClass:"left-menu",style:{height:t.contentHeight}},[o("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}})],1),t._v(" "),o("transition",{attrs:{name:"fade",mode:"out-in"}},[o("router-view")],1)],1)])])],1)},staticRenderFns:[]};var s=o("VU/8")(a,n,!1,function(t){o("7Bbo")},"data-v-096d8371",null);e.default=s.exports}});
//# sourceMappingURL=39.00cfbf48fe9fecf5c578.js.map
\ No newline at end of file
webpackJsonp([38],{"7Bbo":function(t,e){},VlR1:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"setting",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1}},computed:{},methods:{toRouterView:function(t){console.log(t),this.$router.push({path:t.path})},collapseTag:function(t){console.log(t),this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.pathName=window.location.hash.split("/")[1],console.log("pathname:",this.pathName,this.$route.path),this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},n={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"setting-wrap"},[o("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),o("div",{staticClass:"setting-wrap__body"},[o("div",{staticClass:"content",attrs:{id:"content"}},[o("div",{staticClass:"content-body",style:{height:t.contentHeight}},[o("div",{staticClass:"left-menu",style:{height:t.contentHeight}},[o("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}})],1),t._v(" "),o("transition",{attrs:{name:"fade",mode:"out-in"}},[o("router-view")],1)],1)])])],1)},staticRenderFns:[]};var s=o("VU/8")(a,n,!1,function(t){o("7Bbo")},"data-v-096d8371",null);e.default=s.exports}});
//# sourceMappingURL=38.d4cc702714768d377ace.js.map
\ No newline at end of file
webpackJsonp([39],{SvrV:function(e,t){},"rs/A":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("mvHQ"),s=a.n(r),l=a("3Xzz"),o=a("c4uw"),i=a("Ie7z"),n=(a("Mk6G"),a("3E4D")),c=a("Ch4/"),u=a("PI0u"),d=a("P9l9"),m={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"添加成员",path:""}],ruleForm:{roleId:"",roleName:"企业管理员",peopleList:[],departList:[],brandValue:[],brandOptions:[]},rules:{},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],onlyPerson:!1,selectType:"",storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},submitForm:Object(u.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var a=[];t.ruleForm.departList.forEach(function(e){a.push({groupId:e.groupId})}),t.ruleForm.brandValue.forEach(function(e){a.push({storeId:e.storeId})});var r=t.ruleForm.peopleList.map(function(e){return e.employeeClerkId}).join(",");t.postSave(a,r)})},500),postSave:function(e,t){var a=this,r={data:s()(e),roleId:a.ruleForm.roleId,clerkIds:t};Object(d.c)("/haoban-manage-web/save-clerk-role",r).then(function(e){var t=e.data;if(1==t.errorCode)return n.a.showmsg("添加成功","success"),void a.changeRoute("/setChildAdmin");c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},delField:function(e,t,a){this.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(t){t.value;a.splice(e,1)}).catch(function(){})},delDepart:function(e,t){t.splice(e,1)},showDialogLayer:function(e,t){this.selectType=e,"store"!==e?(this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1},"people"===e?(this.onlyPerson=!0,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):this.onlyPerson=!1,this.defaultSelection=t,this.treeData.hasOwnProperty("treeData")||this.getDepartData(t)):this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}},handleSelectedList:function(e){console.log(e);"people"===this.selectType?this.ruleForm.peopleList=e:"store"===this.selectType?this.ruleForm.brandValue=e:this.ruleForm.departList=e},getDepartData:function(e){var t=this;Object(d.c)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(a){var r=a.data;if(1!=r.errorCode)c.a.errorMsg(r);else if(r.result){var s=[],l=[];1==a.data.errorCode&&(s=a.data.result.departmentList||[],l=a.data.result.searchList||[]),t.treeData={treeData:s,personData:l},t.defaultSelection=e}else t.$message.error({duration:1e3,message:"暂无数据"})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getStoreData:function(){var e=this;Object(d.c)("/haoban-manage-web/dept/deptListForCompany",{}).then(function(t){var a=t.data;if(1!=a.errorCode)c.a.errorMsg(a);else if(a.result){var r=[],s=[];1==t.data.errorCode&&(r=t.data.result.departmentList||[],s=t.data.result.searchList||[]),e.treeData={treeData:r,personData:s},e.defaultSelection=selData}else e.$message.error({duration:1e3,message:"暂无数据"})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getBrandData:function(){var e=this;Object(d.c)("/haoban-manage-web/brand/list",{}).then(function(t){var a=t.data;1!=a.errorCode?c.a.errorMsg(a):a.result&&a.result.length?e.ruleForm.brandOptions=a.result:e.$message.error({duration:1e3,message:"暂无数据"})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData(),this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId),this.$route.query.hasOwnProperty("roleCode")&&(this.ruleForm.roleCode=this.$route.query.roleCode,this.ruleForm.roleName="admin"===this.$route.query.roleCode?"企业管理员":"子管理员")},components:{navCrumb:l.a,vueSelectEmployee:o.a,vueSelectStore:i.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"companyAddress-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"管理员角色",prop:"roleName"}},[a("el-input",{staticClass:"w-380",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.roleName,callback:function(t){e.$set(e.ruleForm,"roleName",t)},expression:"ruleForm.roleName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"选择人员",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-wrap"},[e._l(e.ruleForm.peopleList,function(t,r){return[a("div",{staticClass:"people-cell"},[a("img",{attrs:{src:t.headPic}}),e._v(" "),a("p",[e._v(e._s(t.name))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),e.delField(r,t,e.ruleForm.peopleList)}}})])]}),e._v(" "),a("div",{staticClass:"people-cell"},[a("span",{staticClass:"add-icon",on:{click:function(t){t.stopPropagation(),e.showDialogLayer("people",e.ruleForm.peopleList)}}},[a("i",{staticClass:"el-icon-plus"})])])],2)]),e._v(" "),a("el-form-item",{staticClass:"m-b-0",attrs:{label:"选择管理范围",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-column item-cell-select"},[a("div",[e._v("行政架构")]),e._v(" "),a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(t){e.showDialogLayer("depart",e.ruleForm.departList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.ruleForm.departList,function(t,r){return[a("span",{key:r,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(r,e.ruleForm.departList)}}})])]})],2)])])]),e._v(" "),a("div",[e._v("门店架构")]),e._v(" "),"admin"==e.ruleForm.roleCode?a("div",{staticClass:"store-item-wrap"},[a("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:e.ruleForm.brandValue,callback:function(t){e.$set(e.ruleForm,"brandValue",t)},expression:"ruleForm.brandValue"}},e._l(e.ruleForm.brandOptions,function(e){return a("el-option",{key:e.brandId,attrs:{label:e.name,value:e.brandId}})}))],1):e._e(),e._v(" "),"child_admin"==e.ruleForm.roleCode?a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(t){e.showDialogLayer("store",e.ruleForm.brandValue)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.ruleForm.brandValue,function(t,r){return[a("span",{key:r,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(r,e.ruleForm.brandValue)}}})])]})],2)])])]):e._e()])]),e._v(" "),a("el-form-item",{staticClass:"m-t-24"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),a("vue-gic-footer"),e._v(" "),a("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.storeTreeSet},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var h=a("VU/8")(m,p,!1,function(e){a("SvrV")},"data-v-00f1347c",null);t.default=h.exports}});
//# sourceMappingURL=39.49fa68a28383c75d8ac7.js.map
\ No newline at end of file
!function(e){var f=window.webpackJsonp;window.webpackJsonp=function(c,n,r){for(var t,o,b,i=0,u=[];i<c.length;i++)o=c[i],a[o]&&u.push(a[o][0]),a[o]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(f&&f(c,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=d(d.s=r[i]);return b};var c={},a={43:0};function d(f){if(c[f])return c[f].exports;var a=c[f]={i:f,l:!1,exports:{}};return e[f].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var f=a[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var c=new Promise(function(c,d){f=a[e]=[c,d]});f[2]=c;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"static/js/"+e+"."+{0:"d73f23dda4a4da2754f0",1:"26fc7c6e9b4ccca95f46",2:"fb678d9d21cb986ef9ab",3:"2d7bca6d638383d680f5",4:"0dccbeb384a458517ae8",5:"a56855b9301856f92e32",6:"1cfc190be082172b30c3",7:"baa1f65b93f6e2ad112b",8:"47e3369fb1f988741929",9:"926da949c22346f61e60",10:"5614d3673a92e370b9b1",11:"f6e7b64dec5aff9cee5e",12:"08b3df5c992e0c2bc3f4",13:"ebd6dd7ee23e5703e425",14:"dbe2d759dd74464a50d6",15:"e041c7ed9f836ff33a5d",16:"6f4ecf83128f405b243f",17:"a5b2012df380c5df06fc",18:"20ded4fcaee76d2ec5c0",19:"fa30b19f8f6b906ab779",20:"838bafd09be372f4cb24",21:"fd50f1522a0f2d33b0a8",22:"6975de4f62d536cfa2d6",23:"9f05cfc644dbcf58019a",24:"5436864bdfd8dfdbef23",25:"6cc97e6afe73c2b498f9",26:"47454b21c2e8bc230179",27:"e1dae8eea7cebb0399b2",28:"ef5d4fe5d5da87f2ea93",29:"e36fff938ae088383d0e",30:"ea63488f1ae74c53784d",31:"f95acb2588f6ea83603e",32:"e231e76fe8401d4578c4",33:"3ad556d147428ad00563",34:"75342eb5950a24f5ba13",35:"58d4c515235752f2886d",36:"0a78880adaedb759c3c1",37:"f0f5cfddc9cd88a9bdb3",38:"15467158be1f31baef4e",39:"00cfbf48fe9fecf5c578",42:"aba74eb87387aac73c65"}[e]+".js";var t=setTimeout(o,12e4);function o(){r.onerror=r.onload=null,clearTimeout(t);var f=a[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return r.onerror=r.onload=o,n.appendChild(r),c},d.m=e,d.c=c,d.d=function(e,f,c){d.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(f,"a",f),f},d.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.04df447ff3b85aa94cba.js.map
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,r,f){for(var t,b,o,i=0,u=[];i<a.length;i++)b=a[i],d[b]&&u.push(d[b][0]),d[b]=0;for(t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);for(c&&c(a,r,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)o=n(n.s=f[i]);return o};var a={},d={43:0};function n(c){if(a[c])return a[c].exports;var d=a[c]={i:c,l:!1,exports:{}};return e[c].call(d.exports,d,d.exports,n),d.l=!0,d.exports}n.e=function(e){var c=d[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,n){c=d[e]=[a,n]});c[2]=a;var r=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,n.nc&&f.setAttribute("nonce",n.nc),f.src=n.p+"static/js/"+e+"."+{0:"d73f23dda4a4da2754f0",1:"26fc7c6e9b4ccca95f46",2:"fb678d9d21cb986ef9ab",3:"6b50e8651aec22b535c5",4:"0dccbeb384a458517ae8",5:"5289f9d9d272d774f9a7",6:"1cfc190be082172b30c3",7:"baa1f65b93f6e2ad112b",8:"47e3369fb1f988741929",9:"926da949c22346f61e60",10:"5614d3673a92e370b9b1",11:"f6e7b64dec5aff9cee5e",12:"08b3df5c992e0c2bc3f4",13:"ebd6dd7ee23e5703e425",14:"dbe2d759dd74464a50d6",15:"2820a6071be7b560ff7d",16:"18b9cdbb5f17195148ba",17:"6028707d0deea461e86a",18:"883dde6f28edff95cea1",19:"39879d07beb4c6b71c52",20:"48c7dac836dc8f07b246",21:"0c95a879bf810ea693f0",22:"1e34bcb0dd0d10584a8a",23:"4271056c10cccd524b66",24:"a65971a02be425cfe7d7",25:"6cc97e6afe73c2b498f9",26:"47454b21c2e8bc230179",27:"e1dae8eea7cebb0399b2",28:"dbd9d86ae779ffab47d2",29:"0e3a1c8173246dac0cd3",30:"cc7fd72ffc3cb0e4c4c4",31:"3461b00cec4520ebdbb7",32:"b527bfac02836c524400",33:"6895e9eb632169971ddb",34:"2349d9830c9a4d627933",35:"58d4c515235752f2886d",36:"0a78880adaedb759c3c1",37:"f0f5cfddc9cd88a9bdb3",38:"d4cc702714768d377ace",39:"49fa68a28383c75d8ac7",42:"aba74eb87387aac73c65"}[e]+".js";var t=setTimeout(b,12e4);function b(){f.onerror=f.onload=null,clearTimeout(t);var c=d[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return f.onerror=f.onload=b,r.appendChild(f),a},n.m=e,n.c=a,n.d=function(e,c,a){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.e10c5913cc7df68cad4f.js.map
\ No newline at end of file
......@@ -41,7 +41,7 @@ export default {
path: '/fileSet'
},
{
name: '在职员工',
name: '添加员工',
path: ''
}
],
......
<template>
<div class="e-record-container">
<template v-if="!showExportSet">
<div class="common-set-wrap">
<nav-crumb :navpath="navpath"></nav-crumb>
<div class="right-content">
<div class="right-box">
<div class="e-record-container">
<template v-if="!showExportSet">
<div class="top-area">
<div class="top-title">
<span class="title-span">在职员工</span>
<a href="#/recordIo?importCode=record">
<el-button type="primary">导入员工档案<i class="el-icon-upload el-icon--right"></i></el-button>
</a>
</div>
<div class="e-type-num-title">
<div class="type-cell" v-for="(count, key) in countObj" :key="key" :class="key == 'onWorkCout' || key == 'noTypeWorkCount' ? 'with-bdr' : ''">
<p class="type-name">{{typeObj[key]}}</p>
<p class="num">{{count}}</p>
</div>
<div class="top-title">
<span class="title-span">在职员工</span>
<a href="#/recordIo?importCode=record">
<el-button type="primary">导入员工档案<i class="el-icon-upload el-icon--right"></i></el-button>
</a>
</div>
<div class="e-type-num-title">
<div class="type-cell" v-for="(count, key) in countObj" :key="key" :class="key == 'onWorkCout' || key == 'noTypeWorkCount' ? 'with-bdr' : ''">
<p class="type-name">{{typeObj[key]}}</p>
<p class="num">{{count}}</p>
</div>
</div>
</div>
<employee-list @showExportSetFn="showExportSetFn"></employee-list>
</template>
<template v-else>
</template>
<template v-else>
<export-set @cancelCho="cancelCho"></export-set>
</template>
</template>
</div>
</div>
</div>
</div>
</template>
<script>
import navCrumb from '@/components/nav/nav.vue';
import { getRequest, postRequest, postJsonRequest } from '@/api/api';
import exportSet from "components/employeeRecord/exportSet";
import employeeList from "components/employeeRecord/employeeList";
export default {
name: "employeeRecord",
components: {
employeeList,
exportSet
},
data() {
return {
typeObj: {
onWorkCout: "在职员工",
allWorkCount: "全职",
partTimeWorkCount: "兼职",
outWorkCount: "外包",
practiceWorkCount: "实习",
noTypeWorkCount: "无类型",
regularCount: "正式",
onTrialCount: "试用",
noStatusCount: "无状态"
},
countObj: {},
showExportSet: false
};
},
methods: {
cancelCho() {
this.showExportSet = false;
name: "employeeRecord",
components: {
navCrumb,
employeeList,
exportSet
},
data() {
return {
// 面包屑参数
navpath: [{
name: '首页',
path: '/index'
},
showExportSetFn() {
this.showExportSet = true;
{
name: '企业通讯录',
path: '/administrativeFrame'
},
getEmployeeCount() {
let ths = this;
getRequest("/haoban-manage-web/record/employee-count-detail", {})
.then(res => {
console.log(res, "res count");
if (res.data.errorCode == 1) {
ths.countObj = res.data.result;
} else {
ths.$message.error({
message: res.data.message
});
}
})
.catch(e => {
ths.$message.error({
message: e.message
});
});
{
name: '员工档案',
path: '/fileSet'
},
{
name: '编辑员工信息',
path: ''
}
],
typeObj: {
onWorkCout: "在职员工",
allWorkCount: "全职",
partTimeWorkCount: "兼职",
outWorkCount: "外包",
practiceWorkCount: "实习",
noTypeWorkCount: "无类型",
regularCount: "正式",
onTrialCount: "试用",
noStatusCount: "无状态"
},
countObj: {},
showExportSet: false
};
},
methods: {
cancelCho() {
this.showExportSet = false;
},
beforeMount() {
this.getEmployeeCount();
showExportSetFn() {
this.showExportSet = true;
},
getEmployeeCount() {
let ths = this;
getRequest("/haoban-manage-web/record/employee-count-detail", {})
.then(res => {
console.log(res, "res count");
if (res.data.errorCode == 1) {
ths.countObj = res.data.result;
} else {
ths.$message.error({
message: res.data.message
});
}
})
.catch(e => {
ths.$message.error({
message: e.message
});
});
}
},
beforeMount() {
this.getEmployeeCount();
}
};
</script>
<style lang="scss">
.top-area {
background: #fff;
padding: 10px 32px;
.top-title {
display: flex;
line-height: 32px;
font-size:20px;
font-weight:bolder;
color:rgba(48,49,51,1);
.title-span {
flex: 1;
}
background: #fff;
padding: 10px 32px;
.top-title {
display: flex;
line-height: 32px;
font-size: 20px;
font-weight: bolder;
color: rgba(48, 49, 51, 1);
.title-span {
flex: 1;
}
.e-type-num-title {
display: flex;
padding: 12px 0;
}
.e-type-num-title {
display: flex;
padding: 12px 0;
margin-top: 20px;
color: #606266;
font-size: 14px;
.type-cell {
box-sizing: border-box;
height: 70px;
flex: 1;
margin-right: 20px;
padding: 10px 0;
&.with-bdr {
border-right: 1px solid #DCDFE6;
padding-right: 50px;
}
.num {
font-size: 24px;
font-weight: 400;
color: rgba(48, 49, 51, 1);
margin-top: 20px;
color: #606266;
font-size: 14px;
.type-cell {
box-sizing: border-box;
height: 70px;
flex: 1;
margin-right: 20px;
padding: 10px 0;
&.with-bdr {
border-right: 1px solid #DCDFE6;
padding-right: 50px;
}
.num {
font-size:24px;
font-weight:400;
color:rgba(48,49,51,1);
margin-top: 20px;
}
}
}
}
}
}
</style>
</style>
......@@ -40,7 +40,6 @@
</span>
</div>
</div>
</div>
<div>门店架构</div>
<div class="store-item-wrap" v-if="ruleForm.roleCode == 'admin'">
......@@ -97,7 +96,6 @@
import navCrumb from '@/components/nav/nav.vue';
import vueSelectEmployee from '@/components/common/vueSelectEmployee.vue';
import vueSelectStore from "components/common/vueSelectStore";
import strLength from '@/common/js/strlen';
import showMsg from '@/common/js/showmsg';
import errMsg from '@/common/js/error';
......@@ -106,7 +104,6 @@ import { getRequest, postRequest, postJson, postForm } from '@/api/api';
export default {
name: "addAdminRole",
data() {
return {
// 面包屑参数
navpath: [
......@@ -127,7 +124,6 @@ export default {
path: ''
}
],
ruleForm: {
roleId: '',
roleName: '企业管理员',
......@@ -143,14 +139,6 @@ export default {
// id: '1',
// name: '张三张三',
// },
// {
// id: '2',
// name: '张三张三',
// },
// {
// id: '3',
// name: '张三张三',
// }
],
brandValue: [],
brandOptions: [
......@@ -163,7 +151,6 @@ export default {
rules: {
},
treeSet: {
isSelectPerson: false, // 控制只能选部门(false)
dialogVisible: false, // 控制显示/隐藏
......@@ -172,9 +159,7 @@ export default {
treeData: {},
defaultSelection: [],
onlyPerson: false, // 控制只能选人(true)
selectType: '',
storeTreeSet: {
isSelectPerson: false, // 控制只能选部门(false)
dialogVisible: false, // 控制显示/隐藏
......@@ -199,17 +184,15 @@ export default {
submitForm: _debounce(function(formName) {
const that = this;
that.$refs[formName].validate((valid) => {
console.log(valid,that.ruleForm.peopleList,that.ruleForm.brandValue)
if (valid) {
let data = [];
that.ruleForm.departList.forEach(function(item){
data.push({groupId: item.groupId})
data.push({groupId: item.groupId});
});
that.ruleForm.brandValue.forEach(function(item){
data.push({storeId: item.storeId})
data.push({storeId: item.storeId});
});
let clerks = (that.ruleForm.peopleList.map(item=>item.employeeClerkId)).join(',');
// console.log(data,clerks,that.ruleForm.brandValue)
that.postSave(data,clerks)
} else {
return false;
......@@ -227,23 +210,17 @@ export default {
roleId: that.ruleForm.roleId,
clerkIds: clerks
}
postRequest('/haoban-manage-web/save-clerk-role',para)
.then((res) => {
// console.log(res,res.data,res.data.errorCode)
var resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('添加成功','success')
that.changeRoute('/setChildAdmin')
return;
}
errMsg.errorMsg(resData)
errMsg.errorMsg(resData);
})
.catch(function (error) {
console.log(error);
that.$message.error({
duration: 1000,
message: error.message
......@@ -262,7 +239,6 @@ export default {
}).then(({ value }) => {
list.splice(index,1)
}).catch(() => {
});
},
......@@ -279,9 +255,7 @@ export default {
*/
showDialogLayer(type,selData) {
const that = this;
console.log(type,selData)
that.selectType = type;
if (type === 'store') {
that.storeTreeSet = {
dialogVisible: true,
......@@ -290,13 +264,11 @@ export default {
};
return;
}
that.treeSet = {
dialogVisible: true,
isSingle: false,
isSelectPerson: false
};
if (type === 'people') {
that.onlyPerson = true;
that.treeSet = {
......@@ -307,10 +279,6 @@ export default {
}else {
that.onlyPerson = false;
}
console.log(that.treeSet,that.onlyPerson)
that.defaultSelection = selData;
if (!!that.treeData.hasOwnProperty('treeData')) {
return;
......@@ -324,11 +292,10 @@ export default {
handleSelectedList(group) {
console.log(group);
const that = this;
if (that.selectType === 'people') {
that.ruleForm.peopleList = group;
}else if(that.selectType === 'store'){
that.ruleForm.brandValue = group
that.ruleForm.brandValue = group;
}else {
that.ruleForm.departList = group;
}
......@@ -344,23 +311,19 @@ export default {
}
postRequest('/haoban-manage-web/dept/deptListForCompany',para)
.then((res) => {
// console.log(res,res.data,res.data.errorCode)
let resData = res.data;
if (resData.errorCode == 1) {
// showMsg.showmsg('操作成功','success')
if (!!resData.result) {
let treeData = [];
let personData = [];
if (res.data.errorCode == 1) {
treeData = res.data.result.departmentList || [];
personData = res.data.result.searchList || []
treeData = res.data.result.departmentList || [];
personData = res.data.result.searchList || [];
}
// _this.formatGroupData(treeData, personData);
that.treeData = {
treeData,
personData
treeData,
personData
};
that.defaultSelection = selData;
}else {
that.$message.error({
......@@ -370,13 +333,9 @@ export default {
}
return;
}
errMsg.errorMsg(resData)
errMsg.errorMsg(resData);
})
.catch(function (error) {
console.log(error);
that.$message.error({
duration: 1000,
message: error.message
......@@ -391,23 +350,19 @@ export default {
const that = this
postRequest('/haoban-manage-web/dept/deptListForCompany',{})
.then((res) => {
// console.log(res,res.data,res.data.errorCode)
let resData = res.data;
if (resData.errorCode == 1) {
// showMsg.showmsg('操作成功','success')
if (!!resData.result) {
let treeData = [];
let personData = [];
if (res.data.errorCode == 1) {
treeData = res.data.result.departmentList || [];
personData = res.data.result.searchList || []
personData = res.data.result.searchList || [];
}
// _this.formatGroupData(treeData, personData);
that.treeData = {
treeData,
personData
};
that.defaultSelection = selData;
}else {
that.$message.error({
......@@ -417,13 +372,10 @@ export default {
}
return;
}
errMsg.errorMsg(resData)
errMsg.errorMsg(resData);
})
.catch(function (error) {
console.log(error);
that.$message.error({
duration: 1000,
message: error.message
......@@ -438,10 +390,8 @@ export default {
const that = this;
postRequest('/haoban-manage-web/brand/list',{})
.then((res) => {
// console.log(res,res.data,res.data.errorCode)
let resData = res.data;
if (resData.errorCode == 1) {
// showMsg.showmsg('操作成功','success')
if (!!resData.result && !!resData.result.length ) {
that.ruleForm.brandOptions = resData.result
}else {
......@@ -452,27 +402,21 @@ export default {
}
return;
}
errMsg.errorMsg(resData)
})
.catch(function (error) {
console.log(error);
that.$message.error({
duration: 1000,
message: error.message
})
});
}
},
mounted() {
const that = this;
that.getBrandData()
that.getBrandData();
if (!!that.$route.query.hasOwnProperty('roleId')) {
that.ruleForm.roleId = that.$route.query.roleId;
// that.getRoleDetail(that.ruleForm.roleId)
}
if (!!that.$route.query.hasOwnProperty('roleCode')) {
that.ruleForm.roleCode = that.$route.query.roleCode;
......
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