Commit e7a224fb by 无尘

style: 修改行政架构添加分组

parent 3b800be5
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.e64eeccf374481cb41adc4ec43e773d5.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.f6d1bee561d41252c21f.js></script><script type=text/javascript src=./static/js/vendor.fe6bbed1214c1931680c.js></script><script type=text/javascript src=./static/js/app.886b5b21782e404fac32.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.e64eeccf374481cb41adc4ec43e773d5.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.bb51a6c1d41f612489ff.js></script><script type=text/javascript src=./static/js/vendor.fe6bbed1214c1931680c.js></script><script type=text/javascript src=./static/js/app.302cb7b247fce53fe3c0.js></script></body></html>
\ No newline at end of file \ No newline at end of file
webpackJsonp([10],{KtPv:function(e,t){},n7j5:function(e,t,i){"use strict";i("0xDb");var a={name:"select-area",components:{vueSelectEmployee:i("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 i=this[t];i.splice(i.indexOf(e),1)},handleSelectedList:function(e){this.butList=e},callSelector:function(e,t){this.$emit("callPerSelector",e,t)}}},s={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"select-area"},[i("div",{staticClass:"setting-name"},[e._v("\n 个别员工不设置该权限\n ")]),e._v(" "),i("ul",{staticClass:"particular-list"},[e._l(e.butList,function(t,a){return[t.employeeClerkId?i("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"butList")}}})]):i("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"butList")}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("but",e.butList)}}},[i("i",{staticClass:"el-icon-plus"})])],2),e._v(" "),i("div",{staticClass:"setting-name"},[e._v("\n 允许指定部门/人员可见\n ")]),e._v(" "),i("ul",{staticClass:"particular-list"},[e._l(e.specialList,function(t,a){return[t.employeeClerkId?i("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"specialList")}}})]):i("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"specialList")}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("special",e.specialList)}}},[i("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var n={name:"permissionSetting",components:{selectArea:i("VU/8")(a,s,!1,function(e){i("KtPv")},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,i){e&&(this[i]=!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){var i=e.type;this.visibleThere=!(1!=i),this.visibleSelf=!(2!=i)},deep:!0}}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"jurisdiction-setting"},[i("div",{staticClass:"only-visivble-there permission-div"},[i("div",{staticClass:"permission-div-title"},[i("span",[e._v("本部门员工仅可见本部门员工")]),e._v(" "),i("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"}})],1),e._v(" "),e.visibleThere?i("div",{staticClass:"particular-setting"},[i("select-area",{attrs:{treeData:e.treeData,butList:e.butList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()]),e._v(" "),i("div",{staticClass:"only-visivble-self permission-div"},[i("div",{staticClass:"permission-div-title"},[i("span",[e._v("本部门员工仅可见自己")]),e._v(" "),i("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"}})],1),e._v(" "),e.visibleSelf?i("div",{staticClass:"particular-setting"},[i("select-area",{attrs:{treeData:e.treeData,butList:e.selfButList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()])])},staticRenderFns:[]};var l=i("VU/8")(n,r,!1,function(e){i("q+Cd")},null,null);t.a=l.exports},"q+Cd":function(e,t){},q5Ri:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("n7j5"),s=i("c4uw"),n=i("P9l9"),r={name:"addDepartment",components:{permissionSetting:a.a,vueSelectEmployee:s.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(n.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 i=t.data.result.chainName.split("/"),a=i.length;e.departInfo.parentName=1==a?"":i[a-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(i){if(!i)return!1;var a=e,s={parentId:a.departInfo.parentId,name:a.departInfo.name};Object(n.a)("/haoban-manage-web/dept/insert",s).then(function(e){console.log(e),1==e.data.errorCode?(a.$message.success({duration:1e3,message:"操作成功!"}),console.log(t),"continue"==t?(a.departInfo={name:"",parentName:"",parentId:""},a.disabled=!0,a.getGroupData()):window.history.go(-1)):a.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})})},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var i=[],a=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],a=t.data.result.searchList||[]),e.treeData={treeData:i,personData:a},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,i=e._self._c||t;return i("div",{staticClass:"add-department-container"},[i("div",{staticClass:"setting-cell depart-info"},[i("p",{staticClass:"title"},[e._v("部门信息")]),e._v(" "),i("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[i("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[i("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[i("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(" "),i("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var o=i("VU/8")(r,l,!1,function(e){i("zfzv")},null,null);t.default=o.exports},zfzv:function(e,t){}});
\ No newline at end of file
webpackJsonp([9],{KtPv:function(e,t){},n7j5:function(e,t,i){"use strict";i("0xDb");var a={name:"select-area",components:{vueSelectEmployee:i("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 i=this[t];i.splice(i.indexOf(e),1)},handleSelectedList:function(e){this.butList=e},callSelector:function(e,t){this.$emit("callPerSelector",e,t)}}},s={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"select-area"},[i("div",{staticClass:"setting-name"},[e._v("\n 个别员工不设置该权限\n ")]),e._v(" "),i("ul",{staticClass:"particular-list"},[e._l(e.butList,function(t,a){return[t.employeeClerkId?i("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"butList")}}})]):i("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"butList")}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("but",e.butList)}}},[i("i",{staticClass:"el-icon-plus"})])],2),e._v(" "),i("div",{staticClass:"setting-name"},[e._v("\n 允许指定部门/人员可见\n ")]),e._v(" "),i("ul",{staticClass:"particular-list"},[e._l(e.specialList,function(t,a){return[t.employeeClerkId?i("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"specialList")}}})]):i("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"specialList")}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("special",e.specialList)}}},[i("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var n={name:"permissionSetting",components:{selectArea:i("VU/8")(a,s,!1,function(e){i("KtPv")},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,i){e&&(this[i]=!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){var i=e.type;this.visibleThere=!(1!=i),this.visibleSelf=!(2!=i)},deep:!0}}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"jurisdiction-setting"},[i("div",{staticClass:"only-visivble-there permission-div"},[i("div",{staticClass:"permission-div-title"},[i("span",[e._v("本部门员工仅可见本部门员工")]),e._v(" "),i("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"}})],1),e._v(" "),e.visibleThere?i("div",{staticClass:"particular-setting"},[i("select-area",{attrs:{treeData:e.treeData,butList:e.butList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()]),e._v(" "),i("div",{staticClass:"only-visivble-self permission-div"},[i("div",{staticClass:"permission-div-title"},[i("span",[e._v("本部门员工仅可见自己")]),e._v(" "),i("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"}})],1),e._v(" "),e.visibleSelf?i("div",{staticClass:"particular-setting"},[i("select-area",{attrs:{treeData:e.treeData,butList:e.selfButList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()])])},staticRenderFns:[]};var l=i("VU/8")(n,r,!1,function(e){i("q+Cd")},null,null);t.a=l.exports},"q+Cd":function(e,t){},q5Ri:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("n7j5"),s=i("c4uw"),n=i("P9l9"),r={name:"addDepartment",components:{permissionSetting:a.a,vueSelectEmployee:s.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(n.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 i=t.data.result.chainName.split("/"),a=i.length;e.departInfo.parentName=1==a?"":i[a-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(i){if(!i)return!1;var a=e,s={parentId:a.departInfo.parentId,name:a.departInfo.name};Object(n.a)("/haoban-manage-web/dept/insert",s).then(function(e){console.log(e),1==e.data.errorCode?(a.$message.success({duration:1e3,message:"操作成功!"}),console.log(t),"continue"==t?(a.departInfo={name:"",parentName:"",parentId:""},a.disabled=!0,a.getGroupData()):window.history.go(-1)):a.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})})},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var i=[],a=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],a=t.data.result.searchList||[]),e.treeData={treeData:i,personData:a},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,i=e._self._c||t;return i("div",{staticClass:"add-department-container"},[i("div",{staticClass:"setting-cell depart-info"},[i("p",{staticClass:"title"},[e._v("部门信息")]),e._v(" "),i("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[i("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[i("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[i("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(" "),i("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var o=i("VU/8")(r,l,!1,function(e){i("zfzv")},null,null);t.default=o.exports},zfzv:function(e,t){}});
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,n,r){for(var t,o,b,i=0,u=[];i<f.length;i++)o=f[i],a[o]&&u.push(a[o][0]),a[o]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(c&&c(f,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=d(d.s=r[i]);return b};var f={},a={44:0};function d(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,d){c=a[e]=[f,d]});c[2]=f;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"static/js/"+e+"."+{0:"f25c4ad74628a9c4e256",1:"4e5dc79adcf9e1d40da1",2:"bd7bd7f9c1e5fe07360b",3:"0f2768c0aa85e6ba2f59",4:"35bcfd7b2625c5ffa066",5:"96e9bd527364c3b21801",6:"bcf4532e6a55dfcc50de",7:"5e87410d160e19c222a5",8:"bc9879c18e0eefd45736",9:"dafaf5df18266c43eda5",10:"f71d995b31916b56a357",11:"904fb1ec168a22ec03a3",12:"f33078370ab13436ea86",13:"2d4736bd7e251f3dcf47",14:"e7d3ed2156f3fb9a1081",15:"4559c7f280133c1c843a",16:"f39c7bfa0f5fc8ed86d6",17:"e276878409aef724ffb3",18:"ba7e9ae20df2cc330b46",19:"cad3457efbfa82dcd956",20:"ada1a23d2ad53ce7e8f0",21:"86cf9b32a6a3a5bdd242",22:"a51dc83d6123e696f14e",23:"2d4fb5655c6a50627ac3",24:"116e361cc02f70bfcaa3",25:"cef58007b279cec51d0c",26:"2b908724cc25801d0b99",27:"e91ad83c4c8984fd36cb",28:"9e07fe8f120cba9b2df2",29:"516c7ceb85621860fe0e",30:"24ee02c41bae733cd122",31:"07e388fdec2be21fd250",32:"a49280b61c8e6fc67d95",33:"ed418d28d5537a6780cb",34:"9cc8bfbf8f23598269fc",35:"66e3c7e04a15a59e3564",36:"0d1ecaa2e5e3cd7f1292",37:"774ebe3d54ad8b741119",38:"b99de1c255ed20dcccbd",39:"e40ef2d2e3948fbf5db2",40:"0342cde8f52fadd8217e",43:"13848f214bb993c20004"}[e]+".js";var t=setTimeout(o,12e4);function o(){r.onerror=r.onload=null,clearTimeout(t);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return r.onerror=r.onload=o,n.appendChild(r),f},d.m=e,d.c=f,d.d=function(e,c,f){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]); !function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,n,r){for(var t,o,b,i=0,u=[];i<f.length;i++)o=f[i],a[o]&&u.push(a[o][0]),a[o]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(c&&c(f,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=d(d.s=r[i]);return b};var f={},a={44:0};function d(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,d){c=a[e]=[f,d]});c[2]=f;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"static/js/"+e+"."+{0:"f25c4ad74628a9c4e256",1:"4e5dc79adcf9e1d40da1",2:"bd7bd7f9c1e5fe07360b",3:"0f2768c0aa85e6ba2f59",4:"f7d2e2d3f90fd77cbe92",5:"96e9bd527364c3b21801",6:"bcf4532e6a55dfcc50de",7:"5e87410d160e19c222a5",8:"bc9879c18e0eefd45736",9:"f1312188cae89dc9955f",10:"28345958bfebdf28561f",11:"904fb1ec168a22ec03a3",12:"f33078370ab13436ea86",13:"2d4736bd7e251f3dcf47",14:"e7d3ed2156f3fb9a1081",15:"4559c7f280133c1c843a",16:"f39c7bfa0f5fc8ed86d6",17:"e276878409aef724ffb3",18:"ba7e9ae20df2cc330b46",19:"cad3457efbfa82dcd956",20:"ada1a23d2ad53ce7e8f0",21:"86cf9b32a6a3a5bdd242",22:"a51dc83d6123e696f14e",23:"2d4fb5655c6a50627ac3",24:"116e361cc02f70bfcaa3",25:"cef58007b279cec51d0c",26:"2b908724cc25801d0b99",27:"e91ad83c4c8984fd36cb",28:"9e07fe8f120cba9b2df2",29:"516c7ceb85621860fe0e",30:"24ee02c41bae733cd122",31:"07e388fdec2be21fd250",32:"a49280b61c8e6fc67d95",33:"ed418d28d5537a6780cb",34:"9cc8bfbf8f23598269fc",35:"66e3c7e04a15a59e3564",36:"0d1ecaa2e5e3cd7f1292",37:"774ebe3d54ad8b741119",38:"b99de1c255ed20dcccbd",39:"e40ef2d2e3948fbf5db2",40:"0342cde8f52fadd8217e",43:"13848f214bb993c20004"}[e]+".js";var t=setTimeout(o,12e4);function o(){r.onerror=r.onload=null,clearTimeout(t);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return r.onerror=r.onload=o,n.appendChild(r),f},d.m=e,d.c=f,d.d=function(e,c,f){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
<template> <template>
<div class="common-set-wrap"> <div class="common-set-wrap" :style="{'height': windowH}">
<nav-crumb :navpath="navpath"></nav-crumb> <nav-crumb :navpath="navpath"></nav-crumb>
<div class="right-content"> <div class="right-content">
<div class="right-box"> <div class="right-box">
...@@ -71,6 +71,7 @@ export default { ...@@ -71,6 +71,7 @@ export default {
}, },
data() { data() {
return { return {
windowH: (window.screen.availHeight - 180) + 'px',
// 面包屑参数 // 面包屑参数
navpath: [{ navpath: [{
name: '首页', name: '首页',
...@@ -127,24 +128,24 @@ export default { ...@@ -127,24 +128,24 @@ export default {
* 删除当前组 * 删除当前组
*/ */
delGroup() { delGroup() {
let ths = this; let that = this;
ths.$confirm(" 是否确认删除分组 ?", "提示", { that.$confirm(" 是否确认删除分组 ?", "提示", {
type: "warning" type: "warning"
}).then(() => { }).then(() => {
getRequest("/haoban-manage-web/dept/del", { groupId: ths.$route.query.departmentId }).then(res => { getRequest("/haoban-manage-web/dept/del", { groupId: that.$route.query.departmentId }).then(res => {
console.log(res); console.log(res);
if (res.data.errorCode == 1) { if (res.data.errorCode == 1) {
ths.$message.success({ that.$message.success({
message: res.data.message message: res.data.message
}); });
window.history.go(-1); window.history.go(-1);
} else { } else {
ths.$message.error({ that.$message.error({
message: res.data.message message: res.data.message
}); });
} }
}).catch(e => { }).catch(e => {
ths.$message.error({ that.$message.error({
message: e.message message: e.message
}); });
}); });
...@@ -285,21 +286,21 @@ export default { ...@@ -285,21 +286,21 @@ export default {
}, },
// 保存编辑 // 保存编辑
saveEdit(goAhead = "") { saveEdit(goAhead = "") {
let _this = this; let that = this;
this.$refs.departForm.validate(valid => { this.$refs.departForm.validate(valid => {
if (!valid) { if (!valid) {
return false; return false;
} }
let type = _this.departInfo.type; let type = that.departInfo.type;
let idArr = []; let idArr = [];
if (type != "") { if (type != "") {
_this[type == 1 ? "butList" : "selfButList"].forEach(per => { that[type == 1 ? "butList" : "selfButList"].forEach(per => {
idArr.push(per.id); idArr.push(per.id);
}); });
} }
let allowCherkIds = []; let allowCherkIds = [];
let allowDepartIds = []; let allowDepartIds = [];
_this.specialList.forEach(per => { that.specialList.forEach(per => {
if (per.employeeClerkId) { if (per.employeeClerkId) {
allowCherkIds.push(per.id); allowCherkIds.push(per.id);
} else { } else {
...@@ -308,7 +309,7 @@ export default { ...@@ -308,7 +309,7 @@ export default {
}); });
let ids = idArr.join(",") let ids = idArr.join(",")
let managerClerkIds = []; let managerClerkIds = [];
_this.departInfo.managerClerkList.forEach(manager => { that.departInfo.managerClerkList.forEach(manager => {
managerClerkIds.push(manager.id); managerClerkIds.push(manager.id);
}); });
managerClerkIds = managerClerkIds.join(","); managerClerkIds = managerClerkIds.join(",");
...@@ -318,40 +319,40 @@ export default { ...@@ -318,40 +319,40 @@ export default {
noPreCherkIds: ids, noPreCherkIds: ids,
allowCherkIds: allowCherkIds.join(","), allowCherkIds: allowCherkIds.join(","),
allowDepartIds: allowDepartIds.join(","), allowDepartIds: allowDepartIds.join(","),
parentId: _this.departInfo.parentId, parentId: that.departInfo.parentId,
name: _this.departInfo.name name: that.departInfo.name
} }
if (!_this.isAddNew) params.groupId = _this.$route.query.departmentId; // 如果是编辑部门,还需传入部门id if (!that.isAddNew) params.groupId = that.$route.query.departmentId; // 如果是编辑部门,还需传入部门id
let url = _this.isAddNew ? "/haoban-manage-web/dept/insert" : "/haoban-manage-web/dept/update"; let url = that.isAddNew ? "/haoban-manage-web/dept/insert" : "/haoban-manage-web/dept/update";
getRequest(url, params) getRequest(url, params)
.then(res => { .then(res => {
console.log(res); console.log(res);
if (res.data.errorCode == 1) { if (res.data.errorCode == 1) {
_this.$message.success({ that.$message.success({
duration: 1000, duration: 1000,
message: "操作成功!" message: "操作成功!"
}); });
console.log(goAhead); console.log(goAhead);
if (goAhead == "continue") { if (goAhead == "continue") {
_this.departInfo = { that.departInfo = {
name: "", name: "",
parentName: "", parentName: "",
parentId: "" parentId: ""
} }
_this.disabled = true; that.disabled = true;
_this.getGroupData(); that.getGroupData();
} else { } else {
window.history.go(-1); window.history.go(-1);
} }
} else { } else {
_this.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: res.data.message message: res.data.message
}); });
} }
}) })
.catch(e => { .catch(e => {
_this.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: e.message message: e.message
}); });
...@@ -359,7 +360,7 @@ export default { ...@@ -359,7 +360,7 @@ export default {
}); });
}, },
getGroupData() { getGroupData() {
let _this = this; let that = this;
let params = { let params = {
isStoreGroup: 0 isStoreGroup: 0
}; };
...@@ -371,12 +372,12 @@ export default { ...@@ -371,12 +372,12 @@ export default {
treeData = res.data.result.departmentList || []; treeData = res.data.result.departmentList || [];
personData = res.data.result.searchList || [] personData = res.data.result.searchList || []
} }
// _this.formatGroupData(treeData, personData); // that.formatGroupData(treeData, personData);
_this.treeData = { that.treeData = {
treeData, treeData,
personData personData
}; };
_this.disabled = false; that.disabled = false;
}) })
.catch(e => { .catch(e => {
console.log(e, "error"); console.log(e, "error");
...@@ -397,6 +398,12 @@ export default { ...@@ -397,6 +398,12 @@ export default {
if (!this.isAddNew) { if (!this.isAddNew) {
this.getDepartInfo(); this.getDepartInfo();
} }
this.$nextTick(function(){
document.querySelector('.contact-wrap__body').style.overflow = 'hidden';
})
},
beforeDestroy() {
document.querySelector('.contact-wrap__body').style.overflow = 'auto';
}, },
computed: { computed: {
isAddNew() { isAddNew() {
......
...@@ -177,7 +177,6 @@ export default { ...@@ -177,7 +177,6 @@ export default {
* 树形搜索结果选人处理 * 树形搜索结果选人处理
*/ */
handleEmployeeSelection(employee, showEmployee) { handleEmployeeSelection(employee, showEmployee) {
console.log(employee, showEmployee);
this.perId = employee.employeeClerkId; this.perId = employee.employeeClerkId;
this.showEmployee = showEmployee; this.showEmployee = showEmployee;
}, },
...@@ -208,7 +207,6 @@ export default { ...@@ -208,7 +207,6 @@ export default {
let params = { storeId: store.storeId }; let params = { storeId: store.storeId };
getRequest("/haoban-manage-web/store/findStoreById", params) getRequest("/haoban-manage-web/store/findStoreById", params)
.then(res => { .then(res => {
console.log(res, "storeInfo");
if (res.data.errorCode == 1) { if (res.data.errorCode == 1) {
that.storeInfo = res.data.result; that.storeInfo = res.data.result;
// that.$refs.store_info.formatStoreInfo(res.data.result); // that.$refs.store_info.formatStoreInfo(res.data.result);
...@@ -344,7 +342,6 @@ export default { ...@@ -344,7 +342,6 @@ export default {
* 树形菜单选择项处理 * 树形菜单选择项处理
*/ */
handleTreeSelection(obj, node, showEmployee) { handleTreeSelection(obj, node, showEmployee) {
console.log(obj, node, "selection");
this.groupInfo.departmentId = obj.groupId; this.groupInfo.departmentId = obj.groupId;
this.groupInfo.groupName = obj.name; this.groupInfo.groupName = obj.name;
this.groupInfo.brandId = obj.brandId this.groupInfo.brandId = obj.brandId
......
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