Commit 51c70884 by 无尘

fix: 修改品牌权限

parent dc3f1101
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.9899130f9c72a562f4a2e8e2b528e11a.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.2c5f254d9ede538dd337.js></script><script type=text/javascript src=./static/js/vendor.dd9854601ee4f51e4325.js></script><script type=text/javascript src=./static/js/app.7026f3bb3e85f48cba76.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.978c054671e091eae62ebd084e312ee6.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.b77ffecf3c858e5ca7ae.js></script><script type=text/javascript src=./static/js/vendor.5b67178a3a08ae3d6e37.js></script><script type=text/javascript src=./static/js/app.9e50761fb841bd2d2750.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.
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.
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.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([10],{"4Epk":function(e,t){},I1N5:function(e,t){},I3G8:function(e,t){},n7j5:function(e,t,a){"use strict";a("0xDb");var i={name:"select-area",components:{vueSelectEmployee:a("c4uw").a},props:{treeData:{type:Object,default:function(){return{}}},butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{delCurrent:function(e,t){var a=this[t];console.log(a.indexOf(e)),a.splice(a.indexOf(e),1)},handleSelectedList:function(e){console.log(e),this.butList=e},callSelector:function(e,t){this.$emit("callPerSelector",e,t)}},watch:{treeData:function(e){}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"select-area"},[a("div",{staticClass:"setting-name"},[e._v("\n 个别员工不设置该权限\n ")]),e._v(" "),a("ul",{staticClass:"particular-list"},[e._l(e.butList,function(t,i){return[t.employeeClerkId?a("li",{key:i+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?a("img",{attrs:{src:t.headPic}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"butList")}}})]):a("li",{key:i+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"butList")}}})])]}),e._v(" "),a("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("but",e.butList)}}},[a("i",{staticClass:"el-icon-plus"})])],2),e._v(" "),a("div",{staticClass:"setting-name"},[e._v("\n 允许指定部门/人员可见\n ")]),e._v(" "),a("ul",{staticClass:"particular-list"},[e._l(e.specialList,function(t,i){return[t.employeeClerkId?a("li",{key:i+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?a("img",{attrs:{src:t.headPic}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"specialList")}}})]):a("li",{key:i+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"specialList")}}})])]}),e._v(" "),a("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("special",e.specialList)}}},[a("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var s={name:"permissionSetting",components:{selectArea:a("VU/8")(i,n,!1,function(e){a("4Epk")},null,null).exports},props:{butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}},selfButList:{type:Array,default:function(){return[]}},visibleSpecialLsit:{type:Array,default:function(){return[]}},onlySelfApartList:{type:Array,default:function(){return[]}},treeData:{type:Object,default:function(){return{}}},departInfo:{type:Object,default:function(){return{}}}},data:function(){return{visibleThere:!1,visibleSelf:!1}},methods:{switchPermission:function(e,t,a){e&&(this[a]=!e),this.visibleSelf?this.departInfo.type=2:this.visibleThere?this.departInfo.type=1:this.departInfo.type=""},callPerSelector:function(e,t){this.$emit("callPerSelector",e,t)}},mounted:function(){var e=this.departInfo.type;this.visibleThere=!(1!=e),this.visibleSelf=!(2!=e)},watch:{departInfo:{handler:function(e,t){console.log(e.type);var a=e.type;this.visibleThere=!(1!=a),this.visibleSelf=!(2!=a)},deep:!0}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"jurisdiction-setting"},[a("div",{staticClass:"only-visivble-there permission-div"},[e._v("\n 本部门员工仅可见本部门员工\n "),a("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleThere,"visibleThere","visibleSelf")}},model:{value:e.visibleThere,callback:function(t){e.visibleThere=t},expression:"visibleThere"}}),e._v(" "),e.visibleThere?a("div",{staticClass:"particular-setting"},[a("select-area",{attrs:{treeData:e.treeData,butList:e.butList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"only-visivble-self permission-div"},[e._v("\n 本部门员工仅可见自己\n "),a("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleSelf,"visibleSelf","visibleThere")}},model:{value:e.visibleSelf,callback:function(t){e.visibleSelf=t},expression:"visibleSelf"}}),e._v(" "),e.visibleSelf?a("div",{staticClass:"particular-setting"},[a("select-area",{attrs:{treeData:e.treeData,butList:e.selfButList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()],1)])},staticRenderFns:[]};var l=a("VU/8")(s,r,!1,function(e){a("I1N5")},null,null);t.a=l.exports},q5Ri:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("n7j5"),n=a("c4uw"),s=a("P9l9"),r={name:"addDepartment",components:{permissionSetting:i.a,vueSelectEmployee:n.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},testList:[],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},treeData:{},disabled:!0,defaultSelection:[],defaultParent:[],selectorType:"parent",changed:"parent",onlyPerson:!1,onlyGroup:[]}},methods:{getDepartInfo:function(){var e=this,t={groupId:e.$route.query.departmentId};Object(s.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){if(1==t.data.errorCode){e.departInfo.name=t.data.result.name,e.departInfo.parentId=t.data.result.parentId;var a=t.data.result.chainName.split("/"),i=a.length;e.departInfo.parentName=1==i?"":a[i-2],e.defaultParent=[{label:e.departInfo.parentName,id:t.data.result.parentId,groupId:t.data.result.parentId}]}else e.$message.error({duration:1e3,message:t.data.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},callGroupSelector:function(){this.selectorType="parent",this.defaultSelection=this.defaultParent,this.onlyPerson=!1,this.onlyGroup=[],this.changed="parent",this.treeSet={dialogVisible:!0,isSingle:!0,isSelectPerson:!1}},callPerSelector:function(e,t){this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!0,this.onlyGroup=[this.$route.query.departmentId],console.log(this.$route.query.departmentId),this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}},handleSelectedList:function(e){console.log(e),this.departInfo.parentId=e?e.id:"",this.departInfo.parentName=e?e.label:""},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 i=e,n={parentId:i.departInfo.parentId,name:i.departInfo.name};Object(s.a)("/haoban-manage-web/dept/insert",n).then(function(e){console.log(e),1==e.data.errorCode?(i.$message.success({duration:1e3,message:"操作成功!"}),console.log(t),"continue"==t?(i.departInfo={name:"",parentName:"",parentId:""},i.disabled=!0,i.getGroupData()):window.history.go(-1)):i.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){i.$message.error({duration:1e3,message:e.message})})})},getGroupData:function(){var e=this;Object(s.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var a=[],i=[];1==t.data.errorCode&&(a=t.data.result.departmentList||[],i=t.data.result.searchList||[]),e.treeData={treeData:a,personData:i},e.disabled=!1}).catch(function(e){console.log(e,"error")})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})}},beforeMount:function(){this.getGroupData(),this.isAddNew||this.getDepartInfo()},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell depart-info"},[a("p",{staticClass:"title"},[e._v("部门信息")]),e._v(" "),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("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var o=a("VU/8")(r,l,!1,function(e){a("I3G8")},null,null);t.default=o.exports}});
//# sourceMappingURL=10.887ec2554d88df0a2346.js.map
\ 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([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
webpackJsonp([21],{"/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=21.52f0406512b49c4c4921.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([21],{"7ACH":function(e,t){},ROSF: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("7ACH")},"data-v-7034121b",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("ROSF")},"data-v-2f732408",null);t.default=v.exports}});
//# sourceMappingURL=21.f37cbacb762ee35c27f1.js.map
\ No newline at end of file
webpackJsonp([26],{"41Rh":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"contact",components:{topNav:a("3Xzz").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,navpath:[{name:"首页",path:"/"},{name:"通讯录",path:""},{name:"企业通讯录"},{name:"行政架构"}]}},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(){},computed:{}},n={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"contact-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"contact-wrap__body"},[e("vue-office-aside",{ref:"asideMenu",attrs:{projectName:this.projectName,collapseFlag:this.collapseFlag}}),this._v(" "),e("div",{staticClass:"contact-wrap__right"},[e("div",{staticClass:"contact-wrap__right__body"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])],1)],1)},staticRenderFns:[]};var s=a("VU/8")(o,n,!1,function(t){a("xCWe")},null,null);e.default=s.exports},xCWe:function(t,e){}});
//# sourceMappingURL=26.47454b21c2e8bc230179.js.map
\ No newline at end of file
webpackJsonp([26],{"41Rh":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"contact",components:{topNav:a("3Xzz").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,navpath:[{name:"首页",path:"/"},{name:"通讯录",path:""},{name:"企业通讯录"},{name:"行政架构"}]}},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(){},computed:{}},n={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"contact-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"contact-wrap__body"},[e("vue-office-aside",{ref:"asideMenu",attrs:{projectName:this.projectName,collapseFlag:this.collapseFlag}}),this._v(" "),e("div",{staticClass:"contact-wrap__right"},[e("div",{staticClass:"contact-wrap__right__body"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])],1)],1)},staticRenderFns:[]};var s=a("VU/8")(o,n,!1,function(t){a("Whd2")},null,null);e.default=s.exports},Whd2:function(t,e){}});
//# sourceMappingURL=26.30beb66a68cf4670017a.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/contacts/index.vue","webpack:///./src/views/contacts/index.vue?6a60","webpack:///./src/views/contacts/index.vue"],"names":["contacts","name","components","topNav","data","projectName","collapseFlag","navpath","path","methods","toRouterView","val","console","log","this","$router","push","collapseTag","watch","$route","handler","oldVal","$refs","asideMenu","refreshRoute","deep","mounted","computed","views_contacts","render","_h","$createElement","_c","_self","staticClass","attrs","on","_v","ref","mode","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"4GAqBAA,GACAC,KAAA,UACAC,YACAC,iBAAA,GAEAC,KALA,WAMA,OACAC,YAAA,oBACAC,cAAA,EAEAC,UAEAN,KAAA,KACAO,KAAA,MAGAP,KAAA,MACAO,KAAA,KAGAP,KAAA,UAGAA,KAAA,WAKAQ,SAEAC,aAFA,SAEAC,GAQAC,QAAAC,IAAAF,GAPAG,KAQAC,QAAAC,MACAR,KAAAG,EAAAH,QAKAS,YAjBA,SAiBAN,GAEAC,QAAAC,IAAAF,GADAG,KAEAR,aAAAK,IAGAO,OACAC,QACAC,QAAA,SAAAT,EAAAU,GAEAP,KAAAQ,MAAAC,UAAAC,gBAGAC,MAAA,IAGAC,QA7DA,aAgEAC,aClFeC,GADEC,OAFjB,WAA0B,IAAaC,EAAbhB,KAAaiB,eAA0BC,EAAvClB,KAAuCmB,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,iBAA2BF,EAAA,qBAA0BG,OAAO9B,YAA5IS,KAA4IT,aAA8B+B,IAAKnB,YAA/KH,KAA+KG,YAAAP,aAA/KI,KAA+KJ,gBAA/KI,KAA8OuB,GAAA,KAAAL,EAAA,OAAwBE,YAAA,uBAAiCF,EAAA,oBAAyBM,IAAA,YAAAH,OAAuB9B,YAAvVS,KAAuVT,YAAAC,aAAvVQ,KAAuVR,gBAAvVQ,KAAsZuB,GAAA,KAAAL,EAAA,OAAwBE,YAAA,wBAAkCF,EAAA,OAAYE,YAAA,8BAAwCF,EAAA,cAAmBG,OAAOlC,KAAA,OAAAsC,KAAA,YAA+BP,EAAA,kCAEtkBQ,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACE3C,EACA4B,GATF,EAVA,SAAAgB,GACEF,EAAQ,SAaV,KAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/26.30beb66a68cf4670017a.js","sourcesContent":["<template>\n <div class=\"contact-wrap\">\n <!-- 公共头部菜单插件 -->\n <vue-office-header :projectName=\"projectName\" @collapseTag=\"collapseTag\" @toRouterView=\"toRouterView\"></vue-office-header>\n <div class=\"contact-wrap__body\">\n <!-- 公共左侧菜单插件 -->\n <vue-office-aside ref=\"asideMenu\" :projectName=\"projectName\" :collapseFlag=\"collapseFlag\"></vue-office-aside>\n <!-- 右侧 body -->\n <div class=\"contact-wrap__right\">\n <!-- <topNav :navpath=\"navpath\"></topNav> -->\n <div class=\"contact-wrap__right__body\">\n <transition name=\"fade\" mode=\"out-in\">\n <router-view></router-view>\n </transition>\n </div>\n </div>\n </div>\n </div>\n</template>\n<script>\nimport topNav from 'components/nav/nav'\nexport default {\n name: \"contact\",\n components: {\n topNav\n },\n data() {\n return {\n projectName: 'haoban-manage-web', // 当前项目名\n collapseFlag: false, // 折叠参数\n // 面包屑导航数据\n navpath: [\n {\n name: '首页',\n path: '/'\n },\n {\n name: '通讯录',\n path: ''\n },\n {\n name: \"企业通讯录\"\n },\n {\n name: \"行政架构\"\n }\n ],\n }\n },\n methods: {\n // 处理路由跳转\n toRouterView(val) {\n var that = this;\n // 模拟检查数据\n // //有两个参数\n //{\n // name:,\n // path:\n //}\n console.log(val);\n that.$router.push({\n path: val.path\n })\n },\n\n // 折叠事件\n collapseTag(val) {\n var that = this;\n console.log(val);\n that.collapseFlag = val\n },\n },\n watch: {\n $route: {\n handler: function(val, oldVal){\n // console.log(\"获取当前路由:\",val,oldVal);\n this.$refs.asideMenu.refreshRoute();\n },\n // 深度观察监听\n deep: true\n },\n },\n mounted() {\n\n },\n computed: {\n\n }\n}\n\n</script>\n<style lang=\"less\">\n .contact-wrap {\n position: relative;\n\n &__body {\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n overflow: hidden;\n padding-top: 64px;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n overflow: auto;\n min-width: 1400px;\n background: #f5f7fa;\n }\n\n &__right {\n -ms-flex: 1;\n flex: 1;\n overflow: auto;\n width: 100%;\n\n &__body {\n /*padding: 24px;*/\n height: 100%;\n\n .right-content {\n padding: 24px;\n }\n }\n }\n }\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/views/contacts/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"contact-wrap\"},[_c('vue-office-header',{attrs:{\"projectName\":_vm.projectName},on:{\"collapseTag\":_vm.collapseTag,\"toRouterView\":_vm.toRouterView}}),_vm._v(\" \"),_c('div',{staticClass:\"contact-wrap__body\"},[_c('vue-office-aside',{ref:\"asideMenu\",attrs:{\"projectName\":_vm.projectName,\"collapseFlag\":_vm.collapseFlag}}),_vm._v(\" \"),_c('div',{staticClass:\"contact-wrap__right\"},[_c('div',{staticClass:\"contact-wrap__right__body\"},[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[_c('router-view')],1)],1)])],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-e74f061a\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/contacts/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-e74f061a\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-e74f061a\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/contacts/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/contacts/index.vue","webpack:///./src/views/contacts/index.vue?9973","webpack:///./src/views/contacts/index.vue"],"names":["contacts","name","components","topNav","data","projectName","collapseFlag","navpath","path","methods","toRouterView","val","console","log","this","$router","push","collapseTag","watch","$route","handler","oldVal","$refs","asideMenu","refreshRoute","deep","mounted","computed","views_contacts","render","_h","$createElement","_c","_self","staticClass","attrs","on","_v","ref","mode","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"4GAqBAA,GACAC,KAAA,UACAC,YACAC,iBAAA,GAEAC,KALA,WAMA,OACAC,YAAA,oBACAC,cAAA,EAEAC,UAEAN,KAAA,KACAO,KAAA,MAGAP,KAAA,MACAO,KAAA,KAGAP,KAAA,UAGAA,KAAA,WAKAQ,SAEAC,aAFA,SAEAC,GAQAC,QAAAC,IAAAF,GAPAG,KAQAC,QAAAC,MACAR,KAAAG,EAAAH,QAKAS,YAjBA,SAiBAN,GAEAC,QAAAC,IAAAF,GADAG,KAEAR,aAAAK,IAGAO,OACAC,QACAC,QAAA,SAAAT,EAAAU,GAEAP,KAAAQ,MAAAC,UAAAC,gBAGAC,MAAA,IAGAC,QA7DA,aAgEAC,aClFeC,GADEC,OAFjB,WAA0B,IAAaC,EAAbhB,KAAaiB,eAA0BC,EAAvClB,KAAuCmB,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,iBAA2BF,EAAA,qBAA0BG,OAAO9B,YAA5IS,KAA4IT,aAA8B+B,IAAKnB,YAA/KH,KAA+KG,YAAAP,aAA/KI,KAA+KJ,gBAA/KI,KAA8OuB,GAAA,KAAAL,EAAA,OAAwBE,YAAA,uBAAiCF,EAAA,oBAAyBM,IAAA,YAAAH,OAAuB9B,YAAvVS,KAAuVT,YAAAC,aAAvVQ,KAAuVR,gBAAvVQ,KAAsZuB,GAAA,KAAAL,EAAA,OAAwBE,YAAA,wBAAkCF,EAAA,OAAYE,YAAA,8BAAwCF,EAAA,cAAmBG,OAAOlC,KAAA,OAAAsC,KAAA,YAA+BP,EAAA,kCAEtkBQ,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACE3C,EACA4B,GATF,EAVA,SAAAgB,GACEF,EAAQ,SAaV,KAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/26.47454b21c2e8bc230179.js","sourcesContent":["<template>\r\n <div class=\"contact-wrap\">\r\n <!-- 公共头部菜单插件 -->\r\n <vue-office-header :projectName=\"projectName\" @collapseTag=\"collapseTag\" @toRouterView=\"toRouterView\"></vue-office-header>\r\n <div class=\"contact-wrap__body\">\r\n <!-- 公共左侧菜单插件 -->\r\n <vue-office-aside ref=\"asideMenu\" :projectName=\"projectName\" :collapseFlag=\"collapseFlag\"></vue-office-aside>\r\n <!-- 右侧 body -->\r\n <div class=\"contact-wrap__right\">\r\n <!-- <topNav :navpath=\"navpath\"></topNav> -->\r\n <div class=\"contact-wrap__right__body\">\r\n <transition name=\"fade\" mode=\"out-in\">\r\n <router-view></router-view>\r\n </transition>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport topNav from 'components/nav/nav'\r\nexport default {\r\n name: \"contact\",\r\n components: {\r\n topNav\r\n },\r\n data() {\r\n return {\r\n projectName: 'haoban-manage-web', // 当前项目名\r\n collapseFlag: false, // 折叠参数\r\n // 面包屑导航数据\r\n navpath: [\r\n {\r\n name: '首页',\r\n path: '/'\r\n },\r\n {\r\n name: '通讯录',\r\n path: ''\r\n },\r\n {\r\n name: \"企业通讯录\"\r\n },\r\n {\r\n name: \"行政架构\"\r\n }\r\n ],\r\n }\r\n },\r\n methods: {\r\n // 处理路由跳转\r\n toRouterView(val) {\r\n var that = this;\r\n // 模拟检查数据\r\n // //有两个参数\r\n //{\r\n // name:,\r\n // path:\r\n //}\r\n console.log(val);\r\n that.$router.push({\r\n path: val.path\r\n })\r\n },\r\n\r\n // 折叠事件\r\n collapseTag(val) {\r\n var that = this;\r\n console.log(val);\r\n that.collapseFlag = val\r\n },\r\n },\r\n watch: {\r\n $route: {\r\n handler: function(val, oldVal){\r\n // console.log(\"获取当前路由:\",val,oldVal);\r\n this.$refs.asideMenu.refreshRoute();\r\n },\r\n // 深度观察监听\r\n deep: true\r\n },\r\n },\r\n mounted() {\r\n\r\n },\r\n computed: {\r\n\r\n }\r\n}\r\n\r\n</script>\r\n<style lang=\"less\">\r\n .contact-wrap {\r\n position: relative;\r\n\r\n &__body {\r\n display: -ms-flexbox;\r\n display: flex;\r\n width: 100%;\r\n overflow: hidden;\r\n padding-top: 64px;\r\n -webkit-box-sizing: border-box;\r\n -moz-box-sizing: border-box;\r\n box-sizing: border-box;\r\n overflow: auto;\r\n min-width: 1400px;\r\n background: #f5f7fa;\r\n }\r\n\r\n &__right {\r\n -ms-flex: 1;\r\n flex: 1;\r\n overflow: auto;\r\n width: 100%;\r\n\r\n &__body {\r\n /*padding: 24px;*/\r\n height: 100%;\r\n\r\n .right-content {\r\n padding: 24px;\r\n }\r\n }\r\n }\r\n }\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/contacts/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"contact-wrap\"},[_c('vue-office-header',{attrs:{\"projectName\":_vm.projectName},on:{\"collapseTag\":_vm.collapseTag,\"toRouterView\":_vm.toRouterView}}),_vm._v(\" \"),_c('div',{staticClass:\"contact-wrap__body\"},[_c('vue-office-aside',{ref:\"asideMenu\",attrs:{\"projectName\":_vm.projectName,\"collapseFlag\":_vm.collapseFlag}}),_vm._v(\" \"),_c('div',{staticClass:\"contact-wrap__right\"},[_c('div',{staticClass:\"contact-wrap__right__body\"},[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[_c('router-view')],1)],1)])],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-ca327af6\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/contacts/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-ca327af6\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-ca327af6\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/contacts/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([27],{DN0r:function(e,t){},da9f:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={name:"enterprise",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1}},computed:{},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},mounted:function(){}},n={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"enterprise-wrap"},[t("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),t("div",{staticClass:"enterprise-wrap__body"})],1)},staticRenderFns:[]};var r=a("VU/8")(o,n,!1,function(e){a("DN0r")},"data-v-dce5fb1e",null);t.default=r.exports}});
//# sourceMappingURL=27.94b3fc65a52004cfda55.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/enterpriseApp/index.vue","webpack:///./src/views/enterpriseApp/index.vue?a382","webpack:///./src/views/enterpriseApp/index.vue"],"names":["enterpriseApp","name","data","projectName","collapseFlag","computed","methods","toRouterView","val","console","log","this","$router","push","path","collapseTag","mounted","views_enterpriseApp","render","_h","$createElement","_c","_self","staticClass","attrs","on","_v","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"2HAUA,IAAAA,GACAC,KAAA,aACAC,KAFA,WAGA,OACAC,YAAA,oBACAC,cAAA,IAGAC,YAGAC,SAEAC,aAFA,SAEAC,GAQAC,QAAAC,IAAAF,GAPAG,KAQAC,QAAAC,MACAC,KAAAN,EAAAM,QAKAC,YAjBA,SAiBAP,GAEAC,QAAAC,IAAAF,GADAG,KAEAP,aAAAI,IAGAQ,QAlCA,cCPeC,GADEC,OAFjB,WAA0B,IAAaC,EAAbR,KAAaS,eAA0BC,EAAvCV,KAAuCW,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,oBAA8BF,EAAA,qBAA0BG,OAAOrB,YAA/IQ,KAA+IR,aAA8BsB,IAAKV,YAAlLJ,KAAkLI,YAAAR,aAAlLI,KAAkLJ,gBAAlLI,KAAiPe,GAAA,KAAAL,EAAA,OAAwBE,YAAA,2BAAoC,IAEtTI,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACE9B,EACAiB,GATF,EAVA,SAAAc,GACEF,EAAQ,SAaV,kBAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/27.94b3fc65a52004cfda55.js","sourcesContent":["<template>\n <div class=\"enterprise-wrap\">\n <!-- 公共头部菜单插件 -->\n <vue-office-header :projectName=\"projectName\" @collapseTag=\"collapseTag\" @toRouterView=\"toRouterView\"></vue-office-header>\n <div class=\"enterprise-wrap__body\">\n </div>\n </div>\n</template>\n<script>\n\nexport default {\n name: \"enterprise\",\n data() {\n return {\n projectName: 'haoban-manage-web', // 当前项目名\n collapseFlag: false, // 折叠参数\n }\n },\n computed: {\n\n },\n methods: {\n // 处理路由跳转\n toRouterView(val) {\n var that = this;\n // 模拟检查数据\n // //有两个参数\n //{\n // name:,\n // path:\n //}\n console.log(val);\n that.$router.push({\n path: val.path\n })\n },\n\n // 折叠事件\n collapseTag(val) {\n var that = this;\n console.log(val);\n that.collapseFlag = val\n },\n },\n mounted() {\n\n },\n}\n\n</script>\n<style lang=\"less\" scoped>\n\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/views/enterpriseApp/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"enterprise-wrap\"},[_c('vue-office-header',{attrs:{\"projectName\":_vm.projectName},on:{\"collapseTag\":_vm.collapseTag,\"toRouterView\":_vm.toRouterView}}),_vm._v(\" \"),_c('div',{staticClass:\"enterprise-wrap__body\"})],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-dce5fb1e\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/enterpriseApp/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-dce5fb1e\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-dce5fb1e\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-dce5fb1e\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/enterpriseApp/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([29],{QLEE:function(e,t){},VqB7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("3Xzz"),o=(a("Mk6G"),a("3E4D")),n=a("Ch4/"),r=(a("PI0u"),a("P9l9")),l={name:"setChildAdmin",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:""}],boxHeight:window.screen.availHeight+"px",isAddAdmin:"",activeId:"",activeBrandId:"",roleListData:[],roleRightObj:{roleName:"超级管理员",tip:"企业的创建者,拥有企业的所有权限,只会有一个",roleCode:"",isEdit:0},tableData:[],currentPage:1,pageSize:20,total:0}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},toRoleDetail:function(e){this.changeRoute("/addAdminRole?roleId="+this.activeId+"&type="+e+"&brandId="+this.activeBrandId)},selectRole:function(e,t){this.activeId=e.roleId,this.activeBrandId=t,this.roleRightObj=e,this.getRoleUsers()},toAddRole:function(e){this.changeRoute("/addAdmin?roleId="+this.activeId+"&roleCode="+e+"&brandId="+this.activeBrandId)},handleDel:function(e,t){var a=this;a.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(i){i.value;a.postDelUser(t.userId,e)}).catch(function(){})},postDelUser:function(e,t){var a=this,i={roleId:a.activeId,userId:e,brandId:a.activeBrandId};Object(r.c)("/haoban-manage-web/del-role-user",i).then(function(e){var i=e.data;if(1==i.errorCode)return o.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);n.a.errorMsg(i)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleShow:function(e,t,a){this.changeRoute("/addAdmin?roleId="+this.activeId+"&roleCode="+a+"&userId="+t.userId)},handleSizeChange:function(e){this.pageSize=e,this.getRoleUsers()},handleCurrentChange:function(e){this.currentPage=e,this.getRoleUsers()},getRoleUsers:function(){var e=this,t={roleId:e.activeId,brandId:e.activeBrandId,pageSize:e.pageSize,pageNum:e.currentPage};Object(r.c)("/haoban-manage-web/role-user-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.result?(e.tableData=a.result.result,void(e.total=a.result.totalCount)):(e.tableData=[],!1);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getRoles:function(){var e=this;Object(r.c)("/haoban-manage-web/role-list",{}).then(function(t){var a=t.data;if(1==a.errorCode)return e.isAddAdmin=a.result.isAddAdmin,e.roleListData=a.result.roleList||[],void(a.result&&a.result.roleList.length&&(e.activeId=e.roleListData[0].roleList[0].roleId,e.activeBrandId=e.roleListData[0].brandId,e.roleRightObj=e.roleListData[0].roleList[0],e.getRoleUsers()));n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.boxHeight=window.screen.availHeight-430+"px",this.getRoles()},components:{navCrumb:i.a}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"setChildAdmin-wrap 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:"setChildAdmin-wrap-body flex"},[a("div",{staticClass:"setChildAdmin-wrap-left w-260",style:{height:e.boxHeight}},e._l(e.roleListData,function(t,i){return a("div",{key:i,staticClass:"m-t-20"},[a("div",{staticClass:"role-cell-head flex"},[a("div",{staticClass:"flex-1 max-half role-cell-head_name"},[e._v(e._s(t.brandName))]),e._v(" "),t.canAddRole?a("div",{staticClass:"text-right flex-1 "},[a("el-button",{attrs:{size:"mini"},on:{click:function(a){e.changeRoute("/addAdminRole?brandId="+t.brandId)}}},[e._v("新增角色")])],1):e._e()]),e._v(" "),a("ul",e._l(t.roleList,function(i,o){return a("li",{key:o,class:["role-cell",t.brandId==e.activeBrandId&&i.roleId==e.activeId?"role-active":""],on:{click:function(a){a.stopPropagation(),e.selectRole(i,t.brandId)}}},[a("i",{staticClass:"iconfont icon-lizhi p-r-6"}),e._v("\n "+e._s(i.roleName)+"\n ")])}))])})),e._v(" "),a("div",{staticClass:"setChildAdmin-wrap-right box-sizing"},[a("div",{staticClass:"role-title flex flex-between m-b-25"},[a("span",{staticClass:"font-20 color-303133"},[e._v("\n "+e._s(e.roleRightObj.roleName)+"\n ")]),"child_admin"!=e.roleRightObj.roleCode?a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("show")}}},[e._v("\n 查看权限\n ")]):e._e(),"child_admin"==e.roleRightObj.roleCode?a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("edit")}}},[e._v("\n 编辑权限\n ")]):e._e()]),e._v(" "),"master_admin"===e.roleRightObj.roleCode||"admin"===e.roleRightObj.roleCode?a("div",{staticClass:"role-tip "},[a("el-alert",{attrs:{title:"master_admin"===e.roleRightObj.roleCode?"企业的创建者,拥有企业的所有权限,只会有一个":"admin"===e.roleRightObj.roleCode?"企业管理员,拥有企业的所有权限,不能创建企业管理员,可以有多个":"",type:"info",closable:!1,"show-icon":""}})],1):e._e(),e._v(" "),e.roleRightObj.isEdit?a("div",{staticClass:"role-add m-t-27"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.toAddRole(e.roleRightObj.roleCode)}}},[e._v("添加成员")])],1):e._e(),e._v(" "),a("div",{class:["role-table",e.roleRightObj.isEdit?"":"m-t-27"]},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"clerkName",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"clerkPhone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"groupName",label:"部门"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return 1==t.row.canEdit?[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleShow(t.$index,t.row,e.roleRightObj.roleCode)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")])]:void 0}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(l,s,!1,function(e){a("QLEE")},"data-v-b37d5d0a",null);t.default=d.exports}});
//# sourceMappingURL=29.81cce947543bbf3f02fd.js.map
\ No newline at end of file
webpackJsonp([36],{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=36.a5361d59041e1fe85343.js.map
\ No newline at end of file
webpackJsonp([31],{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("NbTD")},null,null);a.default=i.exports},NbTD:function(e,a){}});
//# sourceMappingURL=31.d435487687e3e56581dd.js.map
\ No newline at end of file
webpackJsonp([29],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(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"}},o={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")(a,o,!1,function(e){n("0+Q1")},null,null);t.default=i.exports},"0+Q1":function(e,t){}});
//# sourceMappingURL=29.d14574693d4dc59f57f0.js.map
\ No newline at end of file
webpackJsonp([32],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(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"}},o={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")(a,o,!1,function(e){n("0+Q1")},null,null);t.default=i.exports},"0+Q1":function(e,t){}});
//# sourceMappingURL=32.e0dcc7cfee4fd78f294f.js.map
\ No newline at end of file
webpackJsonp([30],{"2Rhp":function(t,e){},VlR1:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={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,a=t._self._c||e;return a("div",{staticClass:"setting-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"setting-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body",style:{height:t.contentHeight}},[a("div",{staticClass:"left-menu",style:{height:t.contentHeight}},[a("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}})],1),t._v(" "),a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)])])],1)},staticRenderFns:[]};var s=a("VU/8")(o,n,!1,function(t){a("2Rhp")},"data-v-5487f964",null);e.default=s.exports}});
//# sourceMappingURL=30.61220a40cf926c4bf8ae.js.map
\ No newline at end of file
webpackJsonp([33],{"2Rhp":function(t,e){},VlR1:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={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,a=t._self._c||e;return a("div",{staticClass:"setting-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"setting-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body",style:{height:t.contentHeight}},[a("div",{staticClass:"left-menu",style:{height:t.contentHeight}},[a("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}})],1),t._v(" "),a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)])])],1)},staticRenderFns:[]};var s=a("VU/8")(o,n,!1,function(t){a("2Rhp")},"data-v-5487f964",null);e.default=s.exports}});
//# sourceMappingURL=33.74ac82b84ddd0a61f0c5.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("aqKZ")},"data-v-43e0312a",null);t.default=l.exports},aqKZ:function(e,t){}});
//# sourceMappingURL=32.997e2b6ac42eef31cbde.js.map
\ No newline at end of file
webpackJsonp([35],{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("aqKZ")},"data-v-43e0312a",null);t.default=l.exports},aqKZ:function(e,t){}});
//# sourceMappingURL=35.098ff323198bd22ac07c.js.map
\ No newline at end of file
webpackJsonp([35],{VqB7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("3Xzz"),o=(a("Mk6G"),a("3E4D")),n=a("Ch4/"),r=(a("PI0u"),a("P9l9")),l={name:"setChildAdmin",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:""}],boxHeight:window.screen.availHeight+"px",isAddAdmin:"",activeId:"",activeBrandId:"",roleListData:[],roleRightObj:{roleName:"超级管理员",tip:"企业的创建者,拥有企业的所有权限,只会有一个",roleCode:"",isEdit:0},tableData:[],currentPage:1,pageSize:20,total:0}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},toRoleDetail:function(e){this.changeRoute("/addAdminRole?roleId="+this.activeId+"&type="+e+"&brandId="+this.activeBrandId)},selectRole:function(e,t){this.activeId=e.roleId,this.activeBrandId=t,this.roleRightObj=e,this.getRoleUsers()},toAddRole:function(e){this.changeRoute("/addAdmin?roleId="+this.activeId+"&roleCode="+e+"&brandId="+this.activeBrandId)},handleDel:function(e,t){var a=this;a.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(i){i.value;a.postDelUser(t.userId,e)}).catch(function(){})},postDelUser:function(e,t){var a=this,i={roleId:a.activeId,userId:e,brandId:a.activeBrandId};Object(r.c)("/haoban-manage-web/del-role-user",i).then(function(e){var i=e.data;if(1==i.errorCode)return o.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);n.a.errorMsg(i)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleShow:function(e,t,a){this.changeRoute("/addAdmin?roleId="+this.activeId+"&roleCode="+a+"&userId="+t.userId)},handleSizeChange:function(e){this.pageSize=e,this.getRoleUsers()},handleCurrentChange:function(e){this.currentPage=e,this.getRoleUsers()},getRoleUsers:function(){var e=this,t={roleId:e.activeId,brandId:e.activeBrandId,pageSize:e.pageSize,pageNum:e.currentPage};Object(r.c)("/haoban-manage-web/role-user-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.result?(e.tableData=a.result.result,void(e.total=a.result.totalCount)):(e.tableData=[],!1);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getRoles:function(){var e=this;Object(r.c)("/haoban-manage-web/role-list",{}).then(function(t){var a=t.data;if(1==a.errorCode)return e.isAddAdmin=a.result.isAddAdmin,e.roleListData=a.result.roleList||[],void(a.result&&a.result.roleList.length&&(e.activeId=e.roleListData[0].roleList[0].roleId,e.activeBrandId=e.roleListData[0].brandId,e.roleRightObj=e.roleListData[0].roleList[0],e.getRoleUsers()));n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.boxHeight=window.screen.availHeight-430+"px",this.getRoles()},components:{navCrumb:i.a}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"setChildAdmin-wrap 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:"setChildAdmin-wrap-body flex"},[a("div",{staticClass:"setChildAdmin-wrap-left w-260",style:{height:e.boxHeight}},e._l(e.roleListData,function(t,i){return a("div",{key:i,staticClass:"m-t-20"},[a("div",{staticClass:"role-cell-head flex"},[a("div",{staticClass:"flex-1 max-half role-cell-head_name"},[e._v(e._s(t.brandName))]),e._v(" "),t.canAddRole?a("div",{staticClass:"text-right flex-1 "},[a("el-button",{attrs:{size:"mini"},on:{click:function(a){e.changeRoute("/addAdminRole?brandId="+t.brandId)}}},[e._v("新增角色")])],1):e._e()]),e._v(" "),a("ul",e._l(t.roleList,function(i,o){return a("li",{key:o,class:["role-cell",t.brandId==e.activeBrandId&&i.roleId==e.activeId?"role-active":""],on:{click:function(a){a.stopPropagation(),e.selectRole(i,t.brandId)}}},[a("i",{staticClass:"iconfont icon-lizhi p-r-6"}),e._v("\n "+e._s(i.roleName)+"\n ")])}))])})),e._v(" "),a("div",{staticClass:"setChildAdmin-wrap-right box-sizing"},[a("div",{staticClass:"role-title flex flex-between m-b-25"},[a("span",{staticClass:"font-20 color-303133"},[e._v("\n "+e._s(e.roleRightObj.roleName)+"\n ")]),"child_admin"!=e.roleRightObj.roleCode?a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("show")}}},[e._v("\n 查看权限\n ")]):e._e(),"child_admin"==e.roleRightObj.roleCode?a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("edit")}}},[e._v("\n 编辑权限\n ")]):e._e()]),e._v(" "),"master_admin"===e.roleRightObj.roleCode||"admin"===e.roleRightObj.roleCode?a("div",{staticClass:"role-tip "},[a("el-alert",{attrs:{title:"master_admin"===e.roleRightObj.roleCode?"企业的创建者,拥有企业的所有权限,只会有一个":"admin"===e.roleRightObj.roleCode?"企业管理员,拥有企业的所有权限,不能创建企业管理员,可以有多个":"",type:"info",closable:!1,"show-icon":""}})],1):e._e(),e._v(" "),e.roleRightObj.isEdit?a("div",{staticClass:"role-add m-t-27"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.toAddRole(e.roleRightObj.roleCode)}}},[e._v("添加成员")])],1):e._e(),e._v(" "),a("div",{class:["role-table",e.roleRightObj.isEdit?"":"m-t-27"]},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"clerkName",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"clerkPhone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"groupName",label:"部门"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return 1==t.row.canEdit?[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleShow(t.$index,t.row,e.roleRightObj.roleCode)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")])]:void 0}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(l,s,!1,function(e){a("xypE")},"data-v-307b22cb",null);t.default=d.exports},xypE:function(e,t){}});
//# sourceMappingURL=35.2871cdf47efa3f37227b.js.map
\ No newline at end of file
webpackJsonp([33],{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=33.26c530d2016a4cb88a28.js.map
\ No newline at end of file
webpackJsonp([36],{QrP4: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("QrP4")},"data-v-37dd3e60",null);t.default=o.exports}});
//# sourceMappingURL=36.8d6567118bffbb71b995.js.map
\ No newline at end of file
webpackJsonp([34],{CDXi:function(e,t){},JsWW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("P9l9"),n=a("MJLE"),r=a.n(n),i={name:"shareCode",data:function(){return{regenerate:!1,qrCodeContent:{},shares:[],qrcodeCase:"",myEnterprise:"",dialogVisible:!1}},methods:{getCode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this,a={regenerate:e};Object(s.a)("/haoban-manage-web/shared-contact/get-shared-qrcode",a).then(function(a){console.log(a,"code"),1==a.data.errorCode?(console.log(e),t.qrcode(a.data.result.qrCodeContent)):t.$message.error({message:a.data.message})}).catch(function(e){t.$message.error({message:e.message})})},reFresh:function(){document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear(),this.getCode(!0)},qrcode:function(e){this.qrcodeCase=new r.a("qrcode",{width:245,height:245,text:e})},downloadCode:function(){var e=document.getElementById("qrcode").getElementsByTagName("img")[0].getAttribute("src"),t=document.createElement("a"),a=new MouseEvent("click");t.download="scan code",t.href=e,t.dispatchEvent(a)},getShareRelation:function(){var e=this;Object(s.a)("/haoban-manage-web/shared-contact/find-shared-contact-relation",{enterpriseIdCondition:1}).then(function(t){console.log(t,"getShareRelation"),1==t.data.errorCode?(e.shares=t.data.result||[],e.shares.length>0&&(e.myEnterprise=t.data.result[0].exportEnterpriseName)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},cancelShare:function(e){var t=this;t.$confirm("是否要取消与该企业的共享?","提示",{type:"warning"}).then(function(){Object(s.a)("/haoban-manage-web/shared-contact/del-shared-enterprise",{importEnterpriseId:e.importEnterpriseId}).then(function(a){if(console.log(a,"cancel"),1==a.data.errorCode){var s=t.shares.indexOf(e);t.shares.splice(s,1)}else t.$message.error({message:a.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch({})}},beforeMount:function(){this.getShareRelation(),this.getCode()}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"share-code-div"},[a("p",{staticClass:"company-name"},[e._v(e._s(e.myEnterprise)+"的共享企业")]),e._v(" "),a("p",{staticClass:"word"},[e._v("双方共享的通讯录,选人时可以选到,同时邀请企业建立共享关系")]),e._v(" "),a("p",{staticClass:"time-tip"},[e._v("一个二维码只能和一个企业建立共享关系,24小时有效")]),e._v(" "),a("div",{staticClass:"m-t-20",attrs:{id:"qrcode"}}),e._v(" "),a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.downloadCode}},[e._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),a("el-button",{on:{click:function(t){e.reFresh()}}},[e._v("重新生成")])],1),e._v(" "),a("p",{staticClass:"company-name"},[e._v("已建立的共享企业")]),e._v(" "),e.shares.length>0?a("div",{staticClass:"share-table"},[a("div",{staticClass:"company"},[e._v(e._s(e.myEnterprise))]),e._v(" "),a("ul",{staticClass:"list"},e._l(e.shares,function(t){return a("li",{key:t.importEnterpriseId,staticClass:"li"},[a("div",{staticClass:"name"},[e._v(e._s(t.importEnterpriseName))]),e._v(" "),a("div",{staticClass:"cancel-btn"},[a("a",{staticClass:"a-href",on:{click:function(a){e.cancelShare(t)}}},[e._v("取消共享")])])])}))]):e._e(),e._v(" "),a("div",{staticClass:"no-share-tip"},[e._v("暂无共享企业")]),e._v(" "),a("el-dialog",{attrs:{title:"验证管理员身份",width:"356px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"cancel-code"},[a("p",[e._v("请使用管理员的好办扫一扫确认")])])])],1)},staticRenderFns:[]};var c=a("VU/8")(i,o,!1,function(e){a("CDXi")},null,null);t.default=c.exports}});
//# sourceMappingURL=34.a07a79869df420486358.js.map
\ No newline at end of file
webpackJsonp([37],{CDXi:function(e,t){},JsWW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("P9l9"),n=a("MJLE"),r=a.n(n),i={name:"shareCode",data:function(){return{regenerate:!1,qrCodeContent:{},shares:[],qrcodeCase:"",myEnterprise:"",dialogVisible:!1}},methods:{getCode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this,a={regenerate:e};Object(s.a)("/haoban-manage-web/shared-contact/get-shared-qrcode",a).then(function(a){console.log(a,"code"),1==a.data.errorCode?(console.log(e),t.qrcode(a.data.result.qrCodeContent)):t.$message.error({message:a.data.message})}).catch(function(e){t.$message.error({message:e.message})})},reFresh:function(){document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear(),this.getCode(!0)},qrcode:function(e){this.qrcodeCase=new r.a("qrcode",{width:245,height:245,text:e})},downloadCode:function(){var e=document.getElementById("qrcode").getElementsByTagName("img")[0].getAttribute("src"),t=document.createElement("a"),a=new MouseEvent("click");t.download="scan code",t.href=e,t.dispatchEvent(a)},getShareRelation:function(){var e=this;Object(s.a)("/haoban-manage-web/shared-contact/find-shared-contact-relation",{enterpriseIdCondition:1}).then(function(t){console.log(t,"getShareRelation"),1==t.data.errorCode?(e.shares=t.data.result||[],e.shares.length>0&&(e.myEnterprise=t.data.result[0].exportEnterpriseName)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},cancelShare:function(e){var t=this;t.$confirm("是否要取消与该企业的共享?","提示",{type:"warning"}).then(function(){Object(s.a)("/haoban-manage-web/shared-contact/del-shared-enterprise",{importEnterpriseId:e.importEnterpriseId}).then(function(a){if(console.log(a,"cancel"),1==a.data.errorCode){var s=t.shares.indexOf(e);t.shares.splice(s,1)}else t.$message.error({message:a.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch({})}},beforeMount:function(){this.getShareRelation(),this.getCode()}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"share-code-div"},[a("p",{staticClass:"company-name"},[e._v(e._s(e.myEnterprise)+"的共享企业")]),e._v(" "),a("p",{staticClass:"word"},[e._v("双方共享的通讯录,选人时可以选到,同时邀请企业建立共享关系")]),e._v(" "),a("p",{staticClass:"time-tip"},[e._v("一个二维码只能和一个企业建立共享关系,24小时有效")]),e._v(" "),a("div",{staticClass:"m-t-20",attrs:{id:"qrcode"}}),e._v(" "),a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.downloadCode}},[e._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),a("el-button",{on:{click:function(t){e.reFresh()}}},[e._v("重新生成")])],1),e._v(" "),a("p",{staticClass:"company-name"},[e._v("已建立的共享企业")]),e._v(" "),e.shares.length>0?a("div",{staticClass:"share-table"},[a("div",{staticClass:"company"},[e._v(e._s(e.myEnterprise))]),e._v(" "),a("ul",{staticClass:"list"},e._l(e.shares,function(t){return a("li",{key:t.importEnterpriseId,staticClass:"li"},[a("div",{staticClass:"name"},[e._v(e._s(t.importEnterpriseName))]),e._v(" "),a("div",{staticClass:"cancel-btn"},[a("a",{staticClass:"a-href",on:{click:function(a){e.cancelShare(t)}}},[e._v("取消共享")])])])}))]):e._e(),e._v(" "),a("div",{staticClass:"no-share-tip"},[e._v("暂无共享企业")]),e._v(" "),a("el-dialog",{attrs:{title:"验证管理员身份",width:"356px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"cancel-code"},[a("p",[e._v("请使用管理员的好办扫一扫确认")])])])],1)},staticRenderFns:[]};var c=a("VU/8")(i,o,!1,function(e){a("CDXi")},null,null);t.default=c.exports}});
//# sourceMappingURL=37.977e084e8593bc3d0701.js.map
\ No newline at end of file
webpackJsonp([37],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("4IAe")},null,null);n.default=u.exports},"4IAe":function(e,n){}});
//# sourceMappingURL=37.a0f44cfd120df62011c9.js.map
\ No newline at end of file
webpackJsonp([38],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("4IAe")},null,null);n.default=u.exports},"4IAe":function(e,n){}});
//# sourceMappingURL=38.af05b5b6cc28a922ade4.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/contacts/addEmployee.vue","webpack:///./src/views/contacts/addEmployee.vue?d464","webpack:///./src/views/contacts/addEmployee.vue"],"names":["contacts_addEmployee","render","_h","this","$createElement","_self","_c","staticRenderFns","Component","__webpack_require__","normalizeComponent","name","ssrContext","__webpack_exports__"],"mappings":"wGAIA,ICDeA,GADEC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,QAExEK,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,EFZAC,KAAA,gBEcEX,GATF,EAVA,SAAAY,GACEH,EAAQ,SAaV,KAEA,MAUeI,EAAA,QAAAL,EAAiB","file":"static/js/37.a0f44cfd120df62011c9.js","sourcesContent":["<template>\r\n <div></div>\r\n</template>\r\n<script>\r\nexport default {\r\n name: \"add-employee\" \r\n};\r\n</script>\r\n<style lang=\"scss\">\r\n\r\n</style>\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/contacts/addEmployee.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-1c75bdd8\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/contacts/addEmployee.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-1c75bdd8\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./addEmployee.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./addEmployee.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./addEmployee.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-1c75bdd8\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./addEmployee.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/contacts/addEmployee.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/contacts/addEmployee.vue","webpack:///./src/views/contacts/addEmployee.vue?d464","webpack:///./src/views/contacts/addEmployee.vue"],"names":["contacts_addEmployee","render","_h","this","$createElement","_self","_c","staticRenderFns","Component","__webpack_require__","normalizeComponent","name","ssrContext","__webpack_exports__"],"mappings":"wGAIA,ICDeA,GADEC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,QAExEK,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,EFZAC,KAAA,gBEcEX,GATF,EAVA,SAAAY,GACEH,EAAQ,SAaV,KAEA,MAUeI,EAAA,QAAAL,EAAiB","file":"static/js/38.af05b5b6cc28a922ade4.js","sourcesContent":["<template>\r\n <div></div>\r\n</template>\r\n<script>\r\nexport default {\r\n name: \"add-employee\" \r\n};\r\n</script>\r\n<style lang=\"scss\">\r\n\r\n</style>\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/contacts/addEmployee.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-1c75bdd8\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/contacts/addEmployee.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-1c75bdd8\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./addEmployee.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./addEmployee.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./addEmployee.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-1c75bdd8\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./addEmployee.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/contacts/addEmployee.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([38],{"/c0j":function(e,t){},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:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(o.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.departmentId}).then(function(t){console.log(t),1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){console.log(e)})},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.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)},forbidenList:function(){return this.isAddNew?"":[this.$route.query.groupId]}},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(" "),"group"==e.$route.query.type?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):e._e()],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(" "),e.isAddNew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):a("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删除")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"group",forbidenList:e.forbidenList},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(s,i,!1,function(e){a("/c0j")},null,null);t.default=d.exports}});
//# sourceMappingURL=38.7b24d780f145fe087fc2.js.map
\ No newline at end of file
webpackJsonp([39],{"/c0j":function(e,t){},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:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(o.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.departmentId}).then(function(t){console.log(t),1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){console.log(e)})},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.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)},forbidenList:function(){return this.isAddNew?"":[this.$route.query.groupId]}},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(" "),"group"==e.$route.query.type?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):e._e()],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(" "),e.isAddNew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):a("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删除")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"group",forbidenList:e.forbidenList},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(s,i,!1,function(e){a("/c0j")},null,null);t.default=d.exports}});
//# sourceMappingURL=39.6e7af1c69d7d8bc67dc8.js.map
\ No newline at end of file
webpackJsonp([39],{"7Q11":function(e,t){},da9f:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={name:"enterprise",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1}},computed:{},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},mounted:function(){}},n={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"enterprise-wrap"},[t("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),t("div",{staticClass:"enterprise-wrap__body"})],1)},staticRenderFns:[]};var s=a("VU/8")(o,n,!1,function(e){a("7Q11")},"data-v-16c9a8fa",null);t.default=s.exports}});
//# sourceMappingURL=39.cadd1af4e87c221a02bf.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/enterpriseApp/index.vue","webpack:///./src/views/enterpriseApp/index.vue?b850","webpack:///./src/views/enterpriseApp/index.vue"],"names":["enterpriseApp","name","data","projectName","collapseFlag","computed","methods","toRouterView","val","console","log","this","$router","push","path","collapseTag","mounted","views_enterpriseApp","render","_h","$createElement","_c","_self","staticClass","attrs","on","_v","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"6HAUA,IAAAA,GACAC,KAAA,aACAC,KAFA,WAGA,OACAC,YAAA,oBACAC,cAAA,IAGAC,YAGAC,SAEAC,aAFA,SAEAC,GAQAC,QAAAC,IAAAF,GAPAG,KAQAC,QAAAC,MACAC,KAAAN,EAAAM,QAKAC,YAjBA,SAiBAP,GAEAC,QAAAC,IAAAF,GADAG,KAEAP,aAAAI,IAGAQ,QAlCA,cCPeC,GADEC,OAFjB,WAA0B,IAAaC,EAAbR,KAAaS,eAA0BC,EAAvCV,KAAuCW,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,oBAA8BF,EAAA,qBAA0BG,OAAOrB,YAA/IQ,KAA+IR,aAA8BsB,IAAKV,YAAlLJ,KAAkLI,YAAAR,aAAlLI,KAAkLJ,gBAAlLI,KAAiPe,GAAA,KAAAL,EAAA,OAAwBE,YAAA,2BAAoC,IAEtTI,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACE9B,EACAiB,GATF,EAVA,SAAAc,GACEF,EAAQ,SAaV,kBAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/39.cadd1af4e87c221a02bf.js","sourcesContent":["<template>\r\n <div class=\"enterprise-wrap\">\r\n <!-- 公共头部菜单插件 -->\r\n <vue-office-header :projectName=\"projectName\" @collapseTag=\"collapseTag\" @toRouterView=\"toRouterView\"></vue-office-header>\r\n <div class=\"enterprise-wrap__body\">\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\n\r\nexport default {\r\n name: \"enterprise\",\r\n data() {\r\n return {\r\n projectName: 'haoban-manage-web', // 当前项目名\r\n collapseFlag: false, // 折叠参数\r\n }\r\n },\r\n computed: {\r\n\r\n },\r\n methods: {\r\n // 处理路由跳转\r\n toRouterView(val) {\r\n var that = this;\r\n // 模拟检查数据\r\n // //有两个参数\r\n //{\r\n // name:,\r\n // path:\r\n //}\r\n console.log(val);\r\n that.$router.push({\r\n path: val.path\r\n })\r\n },\r\n\r\n // 折叠事件\r\n collapseTag(val) {\r\n var that = this;\r\n console.log(val);\r\n that.collapseFlag = val\r\n },\r\n },\r\n mounted() {\r\n\r\n },\r\n}\r\n\r\n</script>\r\n<style lang=\"less\" scoped>\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/enterpriseApp/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"enterprise-wrap\"},[_c('vue-office-header',{attrs:{\"projectName\":_vm.projectName},on:{\"collapseTag\":_vm.collapseTag,\"toRouterView\":_vm.toRouterView}}),_vm._v(\" \"),_c('div',{staticClass:\"enterprise-wrap__body\"})],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-16c9a8fa\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/enterpriseApp/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-16c9a8fa\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-16c9a8fa\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-16c9a8fa\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/enterpriseApp/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ 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.
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.
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.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([9],{"4Epk":function(e,t){},I1N5:function(e,t){},I3G8:function(e,t){},n7j5:function(e,t,a){"use strict";a("0xDb");var i={name:"select-area",components:{vueSelectEmployee:a("c4uw").a},props:{treeData:{type:Object,default:function(){return{}}},butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{delCurrent:function(e,t){var a=this[t];console.log(a.indexOf(e)),a.splice(a.indexOf(e),1)},handleSelectedList:function(e){console.log(e),this.butList=e},callSelector:function(e,t){this.$emit("callPerSelector",e,t)}},watch:{treeData:function(e){}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"select-area"},[a("div",{staticClass:"setting-name"},[e._v("\n 个别员工不设置该权限\n ")]),e._v(" "),a("ul",{staticClass:"particular-list"},[e._l(e.butList,function(t,i){return[t.employeeClerkId?a("li",{key:i+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?a("img",{attrs:{src:t.headPic}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"butList")}}})]):a("li",{key:i+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"butList")}}})])]}),e._v(" "),a("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("but",e.butList)}}},[a("i",{staticClass:"el-icon-plus"})])],2),e._v(" "),a("div",{staticClass:"setting-name"},[e._v("\n 允许指定部门/人员可见\n ")]),e._v(" "),a("ul",{staticClass:"particular-list"},[e._l(e.specialList,function(t,i){return[t.employeeClerkId?a("li",{key:i+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?a("img",{attrs:{src:t.headPic}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"specialList")}}})]):a("li",{key:i+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"specialList")}}})])]}),e._v(" "),a("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("special",e.specialList)}}},[a("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var s={name:"permissionSetting",components:{selectArea:a("VU/8")(i,n,!1,function(e){a("4Epk")},null,null).exports},props:{butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}},selfButList:{type:Array,default:function(){return[]}},visibleSpecialLsit:{type:Array,default:function(){return[]}},onlySelfApartList:{type:Array,default:function(){return[]}},treeData:{type:Object,default:function(){return{}}},departInfo:{type:Object,default:function(){return{}}}},data:function(){return{visibleThere:!1,visibleSelf:!1}},methods:{switchPermission:function(e,t,a){e&&(this[a]=!e),this.visibleSelf?this.departInfo.type=2:this.visibleThere?this.departInfo.type=1:this.departInfo.type=""},callPerSelector:function(e,t){this.$emit("callPerSelector",e,t)}},mounted:function(){var e=this.departInfo.type;this.visibleThere=!(1!=e),this.visibleSelf=!(2!=e)},watch:{departInfo:{handler:function(e,t){console.log(e.type);var a=e.type;this.visibleThere=!(1!=a),this.visibleSelf=!(2!=a)},deep:!0}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"jurisdiction-setting"},[a("div",{staticClass:"only-visivble-there permission-div"},[e._v("\n 本部门员工仅可见本部门员工\n "),a("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleThere,"visibleThere","visibleSelf")}},model:{value:e.visibleThere,callback:function(t){e.visibleThere=t},expression:"visibleThere"}}),e._v(" "),e.visibleThere?a("div",{staticClass:"particular-setting"},[a("select-area",{attrs:{treeData:e.treeData,butList:e.butList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"only-visivble-self permission-div"},[e._v("\n 本部门员工仅可见自己\n "),a("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleSelf,"visibleSelf","visibleThere")}},model:{value:e.visibleSelf,callback:function(t){e.visibleSelf=t},expression:"visibleSelf"}}),e._v(" "),e.visibleSelf?a("div",{staticClass:"particular-setting"},[a("select-area",{attrs:{treeData:e.treeData,butList:e.selfButList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()],1)])},staticRenderFns:[]};var l=a("VU/8")(s,r,!1,function(e){a("I1N5")},null,null);t.a=l.exports},q5Ri:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("n7j5"),n=a("c4uw"),s=a("P9l9"),r={name:"addDepartment",components:{permissionSetting:i.a,vueSelectEmployee:n.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},testList:[],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},treeData:{},disabled:!0,defaultSelection:[],defaultParent:[],selectorType:"parent",changed:"parent",onlyPerson:!1,onlyGroup:[]}},methods:{getDepartInfo:function(){var e=this,t={groupId:e.$route.query.departmentId};Object(s.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){if(1==t.data.errorCode){e.departInfo.name=t.data.result.name,e.departInfo.parentId=t.data.result.parentId;var a=t.data.result.chainName.split("/"),i=a.length;e.departInfo.parentName=1==i?"":a[i-2],e.defaultParent=[{label:e.departInfo.parentName,id:t.data.result.parentId,groupId:t.data.result.parentId}]}else e.$message.error({duration:1e3,message:t.data.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},callGroupSelector:function(){this.selectorType="parent",this.defaultSelection=this.defaultParent,this.onlyPerson=!1,this.onlyGroup=[],this.changed="parent",this.treeSet={dialogVisible:!0,isSingle:!0,isSelectPerson:!1}},callPerSelector:function(e,t){this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!0,this.onlyGroup=[this.$route.query.departmentId],console.log(this.$route.query.departmentId),this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}},handleSelectedList:function(e){console.log(e),this.departInfo.parentId=e?e.id:"",this.departInfo.parentName=e?e.label:""},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 i=e,n={parentId:i.departInfo.parentId,name:i.departInfo.name};Object(s.a)("/haoban-manage-web/dept/insert",n).then(function(e){console.log(e),1==e.data.errorCode?(i.$message.success({duration:1e3,message:"操作成功!"}),console.log(t),"continue"==t?(i.departInfo={name:"",parentName:"",parentId:""},i.disabled=!0,i.getGroupData()):window.history.go(-1)):i.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){i.$message.error({duration:1e3,message:e.message})})})},getGroupData:function(){var e=this;Object(s.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var a=[],i=[];1==t.data.errorCode&&(a=t.data.result.departmentList||[],i=t.data.result.searchList||[]),e.treeData={treeData:a,personData:i},e.disabled=!1}).catch(function(e){console.log(e,"error")})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})}},beforeMount:function(){this.getGroupData(),this.isAddNew||this.getDepartInfo()},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell depart-info"},[a("p",{staticClass:"title"},[e._v("部门信息")]),e._v(" "),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("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var o=a("VU/8")(r,l,!1,function(e){a("I3G8")},null,null);t.default=o.exports}});
//# sourceMappingURL=9.23e8ef0a1def47d908b5.js.map
\ 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.
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