Commit 1d108147 by xiaohai

build for test

parents 1121d89e af148243
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.716c878bb854e5d925713697019a4efe.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.22e1d4d0dd7bc98f87e3.js></script><script type=text/javascript src=./static/js/vendor.dd9854601ee4f51e4325.js></script><script type=text/javascript src=./static/js/app.6f1cae6e9c43d227ea06.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.76cc1fb2dcc19b9e31f992e669914a72.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.460d951751e0de5c39d3.js></script><script type=text/javascript src=./static/js/vendor.dd9854601ee4f51e4325.js></script><script type=text/javascript src=./static/js/app.6f1cae6e9c43d227ea06.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([18],{M3ZM:function(e,t){},fZsz:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r("mvHQ"),a=r.n(i),n=r("3Xzz"),u=r("l46T"),l=r("Mk6G"),o={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){},toInput:function(e){var t="";"word"==this.getByType?(t=l.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=l.a.getZhLen(this.itemValue)):(t=l.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=l.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=l.a.getZhLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=l.a.getZhLen(this.inputValue)}},s={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 h=r("VU/8")(o,s,!1,function(e){r("u4M5")},"data-v-f5e27e6e",null).exports,m=r("3E4D"),d=r("Ch4/"),c=r("PI0u"),p=r("P9l9"),f={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"新增管理员角色",path:""}],showFlag:!1,ruleForm:{roleId:"",roleName:"",remark:"角色说明",leftChecked:[],menuTree:[],left:[],rightChecked:[],right:[],leftCheckedApp:[],leftApp:[],rightCheckedApp:[],rightApp:[]},rules:{roleName:[{required:!0,message:"请填写角色名称",trigger:"change"}],remark:[{required:!0,message:"请填写角色说明",trigger:"change"}]},defaultProps:{children:"children",label:"rightName"}}},computed:{},methods:{submitForm:Object(c.a)(function(e){var t=this,r=this;r.$refs[e].validate(function(e){if(!e)return!1;var i=[];t.$refs.tree.getCheckedKeys().concat(t.$refs.tree.getHalfCheckedKeys()).forEach(function(e,t){i.push({rightId:e})}),r.postSave(i)})},500),postSave:function(e){var t=this,r={data:a()(e),roleId:t.ruleForm.roleId,roleName:t.ruleForm.roleName,remark:t.ruleForm.remark,brandId:t.ruleForm.brandId};Object(p.c)("/haoban-manage-web/save-role",r).then(function(e){var r=e.data;if(1==r.errorCode)return m.a.showmsg("操作成功","success"),void t.$router.push("/setChildAdmin");d.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getMenuList:function(){var e=this;Object(p.c)("/haoban-manage-web/menu-list",{}).then(function(t){var r=t.data;if(1!=r.errorCode)d.a.errorMsg(r);else{if(r.result&&r.result.length){var i=[];r.result.forEach(function(e,t){e.display&&i.push(e)}),e.ruleForm.menuTree=e.treeData(i)}e.ruleForm.roleId&&e.getRoleDetail(e.ruleForm.roleId)}}).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(p.c)("/haoban-manage-web/role-detail",r).then(function(e){var r=e.data;if(1==r.errorCode){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 i=t.ruleForm.right.map(function(e){return e.rightId}),a=[];r.result.menuRightList.forEach(function(e,t){i.includes(e.rightId)&&a.push(e.rightId)}),t.ruleForm.rightChecked=a}var n=[];return r.result.menuRightList.forEach(function(e,r){t.$refs.tree.getNode(e.rightId).isLeaf&&n.push(e.rightId)}),void t.$refs.tree.setCheckedKeys(n)}d.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},leftChange:function(e,t){var r=this;r.ruleForm.leftChecked=e;var i=e.includes(t[0]);function a(){r.ruleForm.right=[],r.ruleForm.left.forEach(function(e,a){e.rightId.includes(t[0])&&(e.check=!!i,e.children&&e.children.length&&e.children.forEach(function(e,t){r.ruleForm.right.push(e)}))})}e.includes(t[0]),a(),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,i){e.children&&e.children.length&&e.children.forEach(function(e,i){e.rightId.includes(t[0])&&(e.check=!!r)})})},leftChangeApp:function(e,t){},rightChangeApp:function(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)),this.$route.query.hasOwnProperty("brandId")&&(this.ruleForm.brandId=this.$route.query.brandId)},components:{navCrumb:n.a,limitInput:u.a,limitTextarea:h}},g={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("div",{staticClass:"w-500 border-1 p-10 border-box el-form-item_menu"},[r("el-tree",{ref:"tree",attrs:{data:e.ruleForm.menuTree,"show-checkbox":"","default-expand-all":"","node-key":"rightId","highlight-current":"",props:e.defaultProps}})],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")(f,g,!1,function(e){r("M3ZM")},"data-v-d67de3a0",null);t.default=v.exports},u4M5:function(e,t){}});
//# sourceMappingURL=18.3da5fd3aa86bbfc88681.js.map
\ No newline at end of file
webpackJsonp([18],{M3ZM:function(e,t){},WcUP:function(e,t){},fZsz:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),i=r.n(a),n=r("3Xzz"),u=r("l46T"),l=r("Mk6G"),o={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){},toInput:function(e){var t="";"word"==this.getByType?(t=l.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=l.a.getZhLen(this.itemValue)):(t=l.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=l.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=l.a.getZhLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=l.a.getZhLen(this.inputValue)}},s={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 h=r("VU/8")(o,s,!1,function(e){r("WcUP")},"data-v-b43a1af2",null).exports,m=r("3E4D"),d=r("Ch4/"),c=r("PI0u"),p=r("P9l9"),f={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"新增管理员角色",path:""}],showFlag:!1,ruleForm:{roleId:"",roleName:"",remark:"角色说明",leftChecked:[],menuTree:[],left:[],rightChecked:[],right:[],leftCheckedApp:[],leftApp:[],rightCheckedApp:[],rightApp:[]},rules:{roleName:[{required:!0,message:"请填写角色名称",trigger:"change"}],remark:[{required:!0,message:"请填写角色说明",trigger:"change"}]},defaultProps:{children:"children",label:"rightName"}}},computed:{},methods:{submitForm:Object(c.a)(function(e){var t=this,r=this;r.$refs[e].validate(function(e){if(!e)return!1;var a=[];t.$refs.tree.getCheckedKeys().concat(t.$refs.tree.getHalfCheckedKeys()).forEach(function(e,t){a.push({rightId:e})}),r.postSave(a)})},500),postSave:function(e){var t=this,r={data:i()(e),roleId:t.ruleForm.roleId,roleName:t.ruleForm.roleName,remark:t.ruleForm.remark,brandId:t.ruleForm.brandId};Object(p.c)("/haoban-manage-web/save-role",r).then(function(e){var r=e.data;if(1==r.errorCode)return m.a.showmsg("操作成功","success"),void t.$router.push("/setChildAdmin");d.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getMenuList:function(){var e=this;Object(p.c)("/haoban-manage-web/menu-list",{}).then(function(t){var r=t.data;if(1!=r.errorCode)d.a.errorMsg(r);else{if(r.result&&r.result.length){var a=[];r.result.forEach(function(e,t){e.display&&a.push(e)}),e.ruleForm.menuTree=e.treeData(a)}e.ruleForm.roleId&&e.getRoleDetail(e.ruleForm.roleId)}}).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(p.c)("/haoban-manage-web/role-detail",r).then(function(e){var r=e.data;if(1==r.errorCode){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 a=t.ruleForm.right.map(function(e){return e.rightId}),i=[];r.result.menuRightList.forEach(function(e,t){a.includes(e.rightId)&&i.push(e.rightId)}),t.ruleForm.rightChecked=i}var n=[];return r.result.menuRightList.forEach(function(e,r){t.$refs.tree.getNode(e.rightId).isLeaf&&n.push(e.rightId)}),void t.$refs.tree.setCheckedKeys(n)}d.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},leftChange:function(e,t){var r=this;r.ruleForm.leftChecked=e;var a=e.includes(t[0]);function i(){r.ruleForm.right=[],r.ruleForm.left.forEach(function(e,i){e.rightId.includes(t[0])&&(e.check=!!a,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,a){e.children&&e.children.length&&e.children.forEach(function(e,a){e.rightId.includes(t[0])&&(e.check=!!r)})})},leftChangeApp:function(e,t){},rightChangeApp:function(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)),this.$route.query.hasOwnProperty("brandId")&&(this.ruleForm.brandId=this.$route.query.brandId)},components:{navCrumb:n.a,limitInput:u.a,limitTextarea:h}},g={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("div",{staticClass:"w-500 border-1 p-10 border-box el-form-item_menu"},[r("el-tree",{ref:"tree",attrs:{data:e.ruleForm.menuTree,"show-checkbox":"","default-expand-all":"","node-key":"rightId","highlight-current":"",props:e.defaultProps}})],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")(f,g,!1,function(e){r("M3ZM")},"data-v-d67de3a0",null);t.default=v.exports}});
//# sourceMappingURL=18.c3d0bf9fcaa14330f05c.js.map
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={44:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"13ebd503b099f6cea1f1",1:"26fc7c6e9b4ccca95f46",2:"bacb5e73d73df4f16865",3:"10faf9c10fcab7da92fd",4:"a12be5dd4da986b96507",5:"a975dc293f76fde45502",6:"9dc0fe16b90269efe4e8",7:"319b5d74a3ddab5c69cd",8:"5f61aeaa1e96c6061052",9:"77cc16c6ede00b3316bf",10:"887ec2554d88df0a2346",11:"43bf211a37ecb7236e07",12:"0cfba37d8b490901eb7b",13:"0b5ff7e0becf874ebc37",14:"ebbe99c34aaf55a31bbe",15:"199a9723d6dbaff8f48c",16:"787e3fd9d54e84f93bac",17:"dc7a17a5d3035d7983b3",18:"c3d0bf9fcaa14330f05c",19:"35a707fe9679cf48a5be",20:"a67936fc14930635fda5",21:"52f0406512b49c4c4921",22:"6c3053db4b65dff8af6c",23:"754a4e2d46bbb632942a",24:"a65971a02be425cfe7d7",25:"1a0a5d16fc9365b8baa6",26:"47454b21c2e8bc230179",27:"d26b0263b2ed679fd0fd",28:"83b3cc3d15b9fc5e2d97",29:"1e5a7253817a6c05d3d6",30:"02d9103cbf106f20b72b",31:"93a340972112c903bd7a",32:"34caa703918f83f0fc50",33:"ae0cbb4cbd476024d398",34:"19de8bb2d781fcc4b458",35:"0772d7db75c657bea215",36:"c4d97444fa31ba61a3bc",37:"a0904a3df9594d3cd904",38:"af05b5b6cc28a922ade4",39:"cadd1af4e87c221a02bf",40:"4f6694f9711a5cf7c11c",43:"ebcd3aad25b0a21bd550"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.22e1d4d0dd7bc98f87e3.js.map
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={44:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"c5314a952a0ece4593df",1:"26fc7c6e9b4ccca95f46",2:"bacb5e73d73df4f16865",3:"10faf9c10fcab7da92fd",4:"a12be5dd4da986b96507",5:"a975dc293f76fde45502",6:"5f2035e81cd62f2a6ba0",7:"319b5d74a3ddab5c69cd",8:"5f61aeaa1e96c6061052",9:"77cc16c6ede00b3316bf",10:"887ec2554d88df0a2346",11:"43bf211a37ecb7236e07",12:"0cfba37d8b490901eb7b",13:"0b5ff7e0becf874ebc37",14:"ebbe99c34aaf55a31bbe",15:"c7da6a222ef9bda0568d",16:"787e3fd9d54e84f93bac",17:"dc7a17a5d3035d7983b3",18:"3da5fd3aa86bbfc88681",19:"35a707fe9679cf48a5be",20:"a67936fc14930635fda5",21:"52f0406512b49c4c4921",22:"6c3053db4b65dff8af6c",23:"754a4e2d46bbb632942a",24:"a65971a02be425cfe7d7",25:"1a0a5d16fc9365b8baa6",26:"47454b21c2e8bc230179",27:"d26b0263b2ed679fd0fd",28:"83b3cc3d15b9fc5e2d97",29:"1e5a7253817a6c05d3d6",30:"02d9103cbf106f20b72b",31:"93a340972112c903bd7a",32:"34caa703918f83f0fc50",33:"ae0cbb4cbd476024d398",34:"19de8bb2d781fcc4b458",35:"0772d7db75c657bea215",36:"c4d97444fa31ba61a3bc",37:"a0904a3df9594d3cd904",38:"af05b5b6cc28a922ade4",39:"cadd1af4e87c221a02bf",40:"4f6694f9711a5cf7c11c",43:"ebcd3aad25b0a21bd550"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.460d951751e0de5c39d3.js.map
\ No newline at end of file
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
v-model="probObj.probationDay" v-model="probObj.probationDay"
controls-position="right" controls-position="right"
@change="handleChange" @change="handleChange"
:min="1" :min="0"
:max="10"> :max="31">
</el-input-number><span class="font-14 color-606266 p-l-12"> </el-input-number><span class="font-14 color-606266 p-l-12">
</span><span class="font-14 color-606266 p-l-12 p-r-12"> </span><span class="font-14 color-606266 p-l-12 p-r-12">
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
v-model="probObj.probationMonth" v-model="probObj.probationMonth"
controls-position="right" controls-position="right"
@change="handleChange" @change="handleChange"
:min="1" :min="0"
:max="10"> :max="6">
</el-input-number><span class="font-14 color-606266 p-l-12"></span> </el-input-number><span class="font-14 color-606266 p-l-12"></span>
</div> </div>
<div class="p-l-138 m-t-24"> <div class="p-l-138 m-t-24">
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
*/ */
saveSet: _debounce(function(){ saveSet: _debounce(function(){
const that = this; const that = this;
if (!that.probObj.probationDay || !that.probObj.probationMonth) { if (that.probObj.probationDay == '' || that.probObj.probationMonth == '') {
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: '请设置时间' message: '请设置时间'
......
...@@ -126,14 +126,14 @@ ...@@ -126,14 +126,14 @@
.w-340 { .w-340 {
width: 340px; width: 340px;
/deep/ .el-input__inner { /deep/ .el-input__inner {
font-size: 12px; font-size: 14px;
color: #fff; color: #fff;
background-color: rgba(255,255,255,.1); background-color: rgba(255,255,255,.1);
} }
} }
.el-input { .el-input {
/deep/ .el-input__inner { /deep/ .el-input__inner {
font-size: 12px; font-size: 14px;
color: #606266; color: #606266;
background-color: rgba(255,255,255,.1); background-color: rgba(255,255,255,.1);
} }
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
.is-disabled{ .is-disabled{
/deep/ .el-input__inner { /deep/ .el-input__inner {
font-size: 12px; font-size: 14px;
color: #fff; color: #fff;
background-color: rgba(255,255,255,.1); background-color: rgba(255,255,255,.1);
} }
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
.w-340 { .w-340 {
width: 340px; width: 340px;
/deep/ .el-input__inner { /deep/ .el-input__inner {
font-size: 12px; font-size: 14px;
color: #fff; color: #fff;
background-color: rgba(255,255,255,.1); background-color: rgba(255,255,255,.1);
} }
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
.el-textarea { .el-textarea {
/deep/ .el-textarea__inner { /deep/ .el-textarea__inner {
font-size: 12px; font-size: 14px;
color: #606266; color: #606266;
background-color: rgba(255,255,255,.1); background-color: rgba(255,255,255,.1);
resize: none; resize: none;
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
.is-disabled{ .is-disabled{
/deep/ .el-input__inner { /deep/ .el-input__inner {
font-size: 12px; font-size: 14px;
color: #fff; color: #fff;
background-color: rgba(255,255,255,.1); background-color: rgba(255,255,255,.1);
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
</div> </div>
<ul class="particular-list"> <ul class="particular-list">
<template v-for="(item, index) in defaultSelection"> <template v-for="(item, index) in defaultSelection">
<li class="item person-item" v-if="item.type == 1 || item.employeeClerkId || item.storeId" :key="index+'_'+item.employeeClerkId"> <li class="item person-item" v-if="item.type == 1 || item.employeeClerkId " :key="index+'_'+item.employeeClerkId">
<div <div
:class="['inline-block', 'img-wrap', 'flex', 'flex-align-center', 'flex-pack-center',!item.headPic?'img-wrap-bg':'']"> :class="['inline-block', 'img-wrap', 'flex', 'flex-align-center', 'flex-pack-center',!item.headPic?'img-wrap-bg':'']">
<img v-if="item.headPic" :src="item.headPic" alt="headPic"/> <img v-if="item.headPic" :src="item.headPic" alt="headPic"/>
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<p class="name">{{item.name || item.label}}</p> <p class="name">{{item.name || item.label}}</p>
</li> </li>
<li class="item group-item" v-else :key="index+'_'+item.groupId"> <li class="item group-item" v-if="item.type == 2 || item.type == 3 || item.storeId || item.groupId" :key="index+'_'+item.groupId">
{{item.name}} {{item.name || item.label}}
<i class="el-icon-circle-close" @click="delCurrent(index, defaultSelection)"></i> <i class="el-icon-circle-close" @click="delCurrent(index, defaultSelection)"></i>
</li> </li>
</template> </template>
......
...@@ -8,15 +8,15 @@ ...@@ -8,15 +8,15 @@
<el-form label-width="110px" :model="ruleForm" ref="ruleForm"> <el-form label-width="110px" :model="ruleForm" ref="ruleForm">
<el-radio-group v-model="ruleForm.radio" @change="changeRadio"> <el-radio-group v-model="ruleForm.radio" @change="changeRadio">
<el-form-item :label="permType == 1? '店员可见权限' : '店长可见权限'"> <el-form-item :label="permType == 1? '店员可见权限' : '店长可见权限'">
<el-radio :label="0">可见所有品牌门店架构和行政架构</el-radio> <el-radio :label="1">可见所有品牌门店架构和行政架构</el-radio>
</el-form-item> </el-form-item>
<el-form-item label=" "> <el-form-item label=" ">
<el-radio :label="1">门店仅可见自己门店</el-radio> <el-radio :label="2">门店仅可见自己门店</el-radio>
</el-form-item> </el-form-item>
<el-form-item label=" "> <el-form-item label=" ">
<el-radio :label="2">自定义可见权限</el-radio> <el-radio :label="3">自定义可见权限</el-radio>
</el-form-item> </el-form-item>
<div class="permiss-child-cell" v-if="ruleForm.radio==2"> <div class="permiss-child-cell" v-if="ruleForm.radio == 3">
<setPermissData :title="'允许行政架构可见'" v-model="ruleForm.visibleAll" @showSelect="showSelect('depart')"></setPermissData> <setPermissData :title="'允许行政架构可见'" v-model="ruleForm.visibleAll" @showSelect="showSelect('depart')"></setPermissData>
<setPermissData :title="'允许门店架构可见'" v-model="ruleForm.visibleStoreAll" @showSelect="showSelect('store')"></setPermissData> <setPermissData :title="'允许门店架构可见'" v-model="ruleForm.visibleStoreAll" @showSelect="showSelect('store')"></setPermissData>
</div> </div>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<vue-select-store <vue-select-store
ref="storeSelector" ref="storeSelector"
:treeSet="storeTreeSet" :treeSet="storeTreeSet"
:selectType="'group-store'" :selectType="'all'"
:defaultList="defaultStoreList" :defaultList="defaultStoreList"
@handleSelectedList="handleSelectedStoreList"> @handleSelectedList="handleSelectedStoreList">
</vue-select-store> </vue-select-store>
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
return { return {
projectName: '', // 当前项目名 projectName: '', // 当前项目名
ruleForm: { ruleForm: {
radio: 0, radio: 1,
visibleAll: [ visibleAll: [
/*{ /*{
id: '1', id: '1',
...@@ -137,35 +137,41 @@ export default { ...@@ -137,35 +137,41 @@ export default {
radio: that.ruleForm.radio radio: that.ruleForm.radio
}; };
if (!that.ruleForm.visibleAll.length) { if (that.ruleForm.radio == 3 && (!that.ruleForm.visibleAll.length || !that.ruleForm.visibleStoreAll.length)) {
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: '请选择指定部门/人员' message: '请选择指定部门/人员'
}) })
return; return;
} }
that.ruleForm.visibleAll.forEach(function(ele,index){ if (that.ruleForm.radio == 3) {
if (ele.hasOwnProperty('employeeClerkId')) { that.ruleForm.visibleAll.forEach(function(ele,index){
data.allowCherkIds.push(ele.employeeClerkId); if (ele.hasOwnProperty('employeeClerkId')) {
}else if (ele.hasOwnProperty('groupId')) { data.allowCherkIds.push(ele.employeeClerkId);
data.allowDepartIds.push(ele.groupId); }else if (ele.hasOwnProperty('groupId')) {
}else if (Number.parseInt(ele.type) === 1) { data.allowDepartIds.push(ele.groupId);
data.allowCherkIds.push(ele.id); }else if (Number.parseInt(ele.type) === 1) {
}else if (Number.parseInt(ele.type) === 2){ data.allowCherkIds.push(ele.id);
data.allowDepartIds.push(ele.id); }else if (Number.parseInt(ele.type) === 2){
} data.allowDepartIds.push(ele.id);
}) }
that.ruleForm.visibleStoreAll.forEach(function(ele,index){ })
if (ele.hasOwnProperty('employeeClerkId')) { that.ruleForm.visibleStoreAll.forEach(function(ele,index){
data.allowCherkIds.push(ele.employeeClerkId); if (ele.hasOwnProperty('employeeClerkId')) {
}else if (ele.hasOwnProperty('groupId')) { data.allowCherkIds.push(ele.employeeClerkId);
data.allowDepartIds.push(ele.groupId); }else if (ele.hasOwnProperty('groupId')) {
}else if (Number.parseInt(ele.type) === 1) { data.allowDepartIds.push(ele.groupId);
data.allowCherkIds.push(ele.id); }else if (ele.hasOwnProperty('storeId')) {
}else if (Number.parseInt(ele.type) === 2){ data.allowStoreIds.push(ele.storeId);
data.allowDepartIds.push(ele.id); }else if (Number.parseInt(ele.type) === 1) {
} data.allowCherkIds.push(ele.id);
}) }else if (Number.parseInt(ele.type) === 2){
data.allowDepartIds.push(ele.id);
}else if (Number.parseInt(ele.type) === 3){
data.allowStoreIds.push(ele.id);
}
})
}
that.setStoreAuth(data,that.permType); that.setStoreAuth(data,that.permType);
} else { } else {
return false; return false;
...@@ -186,7 +192,8 @@ export default { ...@@ -186,7 +192,8 @@ export default {
storeEmployeeAuth: data.radio, storeEmployeeAuth: data.radio,
storeManagerAuth: data.radio, storeManagerAuth: data.radio,
allowCherkIds: data.allowCherkIds.join(','), allowCherkIds: data.allowCherkIds.join(','),
allowDepartIds: data.allowDepartIds.join(',') allowDepartIds: data.allowDepartIds.join(','),
allowStoreIds: data.allowStoreIds.join(',')
} }
postRequest('/haoban-manage-web/brand/saveStoreAuth',para) postRequest('/haoban-manage-web/brand/saveStoreAuth',para)
.then((res) => { .then((res) => {
...@@ -213,8 +220,9 @@ export default { ...@@ -213,8 +220,9 @@ export default {
if (!Object.keys(data).length) {return;} if (!Object.keys(data).length) {return;}
that.ruleForm.brandId = data.brandId; that.ruleForm.brandId = data.brandId;
that.ruleForm.groupId = data.groupId; that.ruleForm.groupId = data.groupId;
// 店员可见权限
if (Number.parseInt(that.permType) === 1 ) {// && !!data.employeeAuthList.length if (Number.parseInt(that.permType) === 1 ) {// && !!data.employeeAuthList.length
that.ruleForm.radio = data.brandDTO.storeEmployeeAuth || 0; that.ruleForm.radio = data.brandDTO.storeEmployeeAuth || 1;
if (!!data.employeeAuthList.length) { if (!!data.employeeAuthList.length) {
data.employeeAuthList.forEach(function(ele,index){ data.employeeAuthList.forEach(function(ele,index){
// 组件内参数需要 // 组件内参数需要
...@@ -233,9 +241,9 @@ export default { ...@@ -233,9 +241,9 @@ export default {
that.defaultSelection = that.ruleForm.visibleAll; that.defaultSelection = that.ruleForm.visibleAll;
that.defaultStoreList = that.ruleForm.visibleStoreAll; that.defaultStoreList = that.ruleForm.visibleStoreAll;
} }
// 店长可见权限
if (Number.parseInt(that.permType) === 2 ) { // && !!data.managerAuthList.length if (Number.parseInt(that.permType) === 2 ) { // && !!data.managerAuthList.length
that.ruleForm.radio = data.brandDTO.storeManagerAuth || 0; that.ruleForm.radio = data.brandDTO.storeManagerAuth || 1;
if (!!data.managerAuthList.length) { if (!!data.managerAuthList.length) {
data.managerAuthList.forEach(function(ele,index){ data.managerAuthList.forEach(function(ele,index){
// 组件内参数需要 // 组件内参数需要
...@@ -248,7 +256,7 @@ export default { ...@@ -248,7 +256,7 @@ export default {
// 行政和门店分开 // 行政和门店分开
that.ruleForm.visibleAll = []; that.ruleForm.visibleAll = [];
that.ruleForm.visibleStoreAll = []; that.ruleForm.visibleStoreAll = [];
data.employeeAuthList.forEach(function(ele,index){ data.managerAuthList.forEach(function(ele,index){
!!ele.isStore? that.ruleForm.visibleStoreAll.push(ele) : that.ruleForm.visibleAll.push(ele); !!ele.isStore? that.ruleForm.visibleStoreAll.push(ele) : that.ruleForm.visibleAll.push(ele);
}) })
that.defaultSelection = that.ruleForm.visibleAll; that.defaultSelection = that.ruleForm.visibleAll;
......
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