Commit 5b341fbe by 无尘

fix: 修改 提到的 bug

parent e0ec7f7e
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.71b15ab49468f1a0556c7cde6e8de943.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.3932f918ddd3dad645d2.js></script><script type=text/javascript src=./static/js/vendor.907e093428953c324a31.js></script><script type=text/javascript src=./static/js/app.39d135a70f56929ab2dd.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.741b61e7306d7b5930c9cdb4dcfd809b.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.893aa7d0d5f360b19998.js></script><script type=text/javascript src=./static/js/vendor.907e093428953c324a31.js></script><script type=text/javascript src=./static/js/app.29e94afecc0bddf35217.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.
......@@ -354,6 +354,10 @@ input:focus {
margin-left: 16px;
}
.m-t-8 {
margin-top: 8px;
}
.m-t-10 {
margin-top: 10px;
}
......@@ -406,10 +410,38 @@ input:focus {
font-size: 0;
}
.font-12 {
font-size: 12px;
}
.font-14 {
font-size: 14px;
}
.font-16 {
font-size: 16px;
}
.font-20 {
font-size: 20px;
}
.font-w-500 {
font-weight: 500;
}
.color-606266 {
color: #606266;
}
.color-909399 {
color: #909399;
}
.line-h-1 {
line-height: 1;
}
.w-130 {
width: 130px;
}
......
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],{DSbw:function(e,t){},I3G8:function(e,t){},LaUy: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("LaUy")},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("DSbw")},null,null);t.a=l.exports},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("I3G8")},null,null);t.default=o.exports}});
//# sourceMappingURL=10.7208d93b0fb81a57a978.js.map
\ No newline at end of file
webpackJsonp([30],{"2w+n":function(e,a){},AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("3Xzz"),o=t("WSbm"),s=t("P9l9"),r={name:"employeeDetail",components:{navCrumb:n.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 t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/add",n).then(function(e){console.log(e,"add result"),1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1}:window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error")})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error"),a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}}},i={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var m=t("VU/8")(r,i,!1,function(e){t("2w+n")},null,null);a.default=m.exports}});
//# sourceMappingURL=30.dfc5fb7b5dccd13e8595.js.map
\ No newline at end of file
webpackJsonp([29],{"2w+n":function(e,a){},AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("3Xzz"),o=t("WSbm"),s=t("P9l9"),r={name:"employeeDetail",components:{navCrumb:n.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 t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/add",n).then(function(e){console.log(e,"add result"),1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1}:window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error")})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error"),a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}}},i={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var m=t("VU/8")(r,i,!1,function(e){t("2w+n")},null,null);a.default=m.exports}});
//# sourceMappingURL=29.3d2f67e201fb157fb15d.js.map
\ No newline at end of file
webpackJsonp([31],{SKyE:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=r("3Xzz"),s=(r("Mk6G"),r("3E4D"),r("Ch4/"),r("PI0u")),n=(r("P9l9"),{name:"companyAddress",data:function(){var t=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(e,r,a){t.ruleForm.switch&&""==r.replace(/\s/g)?a(new Error("请输入地址")):a()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(s.a)(function(t){this.$refs[t].validate(function(t){if(!t)return!1})},500),postSave:function(){}},mounted:function(){},components:{navCrumb:a.a}}),o={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:t.$store.state.bgHeight}},[r("h2",{staticClass:"font-w-500"},[t._v("企业地址设置")]),t._v(" "),r("p",{staticClass:"m-t-24"},[t._v("开启后手机端通讯录将显示,反之则不显示")]),t._v(" "),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[r("el-form-item",{staticClass:"m-t-22",attrs:{label:"企业地址",prop:"switch"}},[r("el-switch",{model:{value:t.ruleForm.switch,callback:function(e){t.$set(t.ruleForm,"switch",e)},expression:"ruleForm.switch"}})],1),t._v(" "),t.ruleForm.switch?r("el-form-item",{attrs:{label:" ",prop:"name"}},[r("el-input",{staticClass:"w-380",attrs:{placeholder:"请输入地址"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1):t._e(),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("ruleForm")}}},[t._v("保 存")])],1)],1)],1)]),t._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var l=r("VU/8")(n,o,!1,function(t){r("nKKR")},"data-v-68bc0177",null);e.default=l.exports},nKKR:function(t,e){}});
//# sourceMappingURL=31.562d854f2b4a616d84bd.js.map
\ No newline at end of file
webpackJsonp([30],{SKyE:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=r("3Xzz"),s=(r("Mk6G"),r("3E4D"),r("Ch4/"),r("PI0u")),n=(r("P9l9"),{name:"companyAddress",data:function(){var t=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(e,r,a){t.ruleForm.switch&&""==r.replace(/\s/g)?a(new Error("请输入地址")):a()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(s.a)(function(t){this.$refs[t].validate(function(t){if(!t)return!1})},500),postSave:function(){}},mounted:function(){},components:{navCrumb:a.a}}),o={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:t.$store.state.bgHeight}},[r("h2",{staticClass:"font-w-500"},[t._v("企业地址设置")]),t._v(" "),r("p",{staticClass:"m-t-24"},[t._v("开启后手机端通讯录将显示,反之则不显示")]),t._v(" "),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[r("el-form-item",{staticClass:"m-t-22",attrs:{label:"企业地址",prop:"switch"}},[r("el-switch",{model:{value:t.ruleForm.switch,callback:function(e){t.$set(t.ruleForm,"switch",e)},expression:"ruleForm.switch"}})],1),t._v(" "),t.ruleForm.switch?r("el-form-item",{attrs:{label:" ",prop:"name"}},[r("el-input",{staticClass:"w-380",attrs:{placeholder:"请输入地址"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1):t._e(),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("ruleForm")}}},[t._v("保 存")])],1)],1)],1)]),t._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var l=r("VU/8")(n,o,!1,function(t){r("nKKR")},"data-v-68bc0177",null);e.default=l.exports},nKKR:function(t,e){}});
//# sourceMappingURL=30.a9e98de26f049b159f2b.js.map
\ No newline at end of file
webpackJsonp([33],{"+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=33.5126db7b83c4f72562a8.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([34],{"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=34.9ad4c6a749a5d4232443.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([35],{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("kjeW")},null,null);t.default=c.exports},kjeW:function(e,t){}});
//# sourceMappingURL=35.5e1e586066edecce2f29.js.map
\ No newline at end of file
webpackJsonp([34],{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("kjeW")},null,null);t.default=c.exports},kjeW:function(e,t){}});
//# sourceMappingURL=34.d29c59b220221af0352b.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([9],{DSbw:function(e,t){},I3G8:function(e,t){},LaUy: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("LaUy")},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("DSbw")},null,null);t.a=l.exports},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("I3G8")},null,null);t.default=o.exports}});
//# sourceMappingURL=9.613dbf16070163a588fe.js.map
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,r,t){for(var d,b,o,i=0,u=[];i<f.length;i++)b=f[i],a[b]&&u.push(a[b][0]),a[b]=0;for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&(e[d]=r[d]);for(c&&c(f,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)o=n(n.s=t[i]);return o};var f={},a={44:0};function n(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,n),a.l=!0,a.exports}n.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,n){c=a[e]=[f,n]});c[2]=f;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"static/js/"+e+"."+{0:"e06c6bd616d9281023b2",1:"26fc7c6e9b4ccca95f46",2:"dfa36a7bbc4c28615e8f",3:"090aab8a9ecbc8d748b5",4:"fa159c8959c329e1566e",5:"83326270dfef0233c90a",6:"1d7830b4d55d08cb5ead",7:"fbeb3db819eec7392fd8",8:"1f9cc69f1d1455b4395a",9:"613dbf16070163a588fe",10:"784f45d2c0512adb5503",11:"76cc622bb85535654fee",12:"ff8b949463a1e4281bc8",13:"01693b96cf028e56cf1a",14:"6041281e059c0a18aff9",15:"0d7a82402ede2cbfa574",16:"b0d2cc6fca689f99e4e2",17:"1c3793ca54eeb21da7c0",18:"9247370e2d3b5ea2195b",19:"7f1c8393b3bfef00b45d",20:"a67936fc14930635fda5",21:"52f0406512b49c4c4921",22:"39f5e1d81ccacdc34ac8",23:"9f05cfc644dbcf58019a",24:"f87968cd1809bd537de5",25:"41900b7b606ec81d1b49",26:"30beb66a68cf4670017a",27:"94b3fc65a52004cfda55",28:"ce30294345c96cf957b1",29:"89fb6199de5dd6a40235",30:"dfc5fb7b5dccd13e8595",31:"562d854f2b4a616d84bd",32:"88203aee3f1e9e84db0d",33:"5126db7b83c4f72562a8",34:"9ad4c6a749a5d4232443",35:"5e1e586066edecce2f29",36:"cc0d98bf5720b38d1e77",37:"a0f44cfd120df62011c9",38:"bffc9417838d0b109405",39:"7eee96327266740f3019",40:"6ff12ea562cf0ae0f1ea",43:"13848f214bb993c20004"}[e]+".js";var d=setTimeout(b,12e4);function b(){t.onerror=t.onload=null,clearTimeout(d);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return t.onerror=t.onload=b,r.appendChild(t),f},n.m=e,n.c=f,n.d=function(e,c,f){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.3932f918ddd3dad645d2.js.map
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,r,t){for(var d,o,b,i=0,u=[];i<f.length;i++)o=f[i],a[o]&&u.push(a[o][0]),a[o]=0;for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&(e[d]=r[d]);for(c&&c(f,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var f={},a={44:0};function n(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,n),a.l=!0,a.exports}n.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,n){c=a[e]=[f,n]});c[2]=f;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"static/js/"+e+"."+{0:"589895e663cf279b4342",1:"26fc7c6e9b4ccca95f46",2:"2f3abb3dc9d5f6a07536",3:"ccac42aa68ce473d908d",4:"ea8a5364035991b7a178",5:"83326270dfef0233c90a",6:"1d7830b4d55d08cb5ead",7:"fbeb3db819eec7392fd8",8:"1f9cc69f1d1455b4395a",9:"3466da9dc5776679b270",10:"7208d93b0fb81a57a978",11:"a637d7388af1e84b5565",12:"ff8b949463a1e4281bc8",13:"01693b96cf028e56cf1a",14:"6041281e059c0a18aff9",15:"9c4eb83d3a7630e2becd",16:"b0d2cc6fca689f99e4e2",17:"1c3793ca54eeb21da7c0",18:"9247370e2d3b5ea2195b",19:"7f1c8393b3bfef00b45d",20:"a67936fc14930635fda5",21:"52f0406512b49c4c4921",22:"39f5e1d81ccacdc34ac8",23:"9f05cfc644dbcf58019a",24:"f87968cd1809bd537de5",25:"41900b7b606ec81d1b49",26:"30beb66a68cf4670017a",27:"94b3fc65a52004cfda55",28:"ce30294345c96cf957b1",29:"3d2f67e201fb157fb15d",30:"a9e98de26f049b159f2b",31:"5cf0182fc424e8606c89",32:"e0dcc7cfee4fd78f294f",33:"74ac82b84ddd0a61f0c5",34:"d29c59b220221af0352b",35:"3a1287481845f3ab0f96",36:"6ec2d4074c84f920def4",37:"a0f44cfd120df62011c9",38:"bffc9417838d0b109405",39:"7eee96327266740f3019",40:"6ff12ea562cf0ae0f1ea",43:"13848f214bb993c20004"}[e]+".js";var d=setTimeout(o,12e4);function o(){t.onerror=t.onload=null,clearTimeout(d);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return t.onerror=t.onload=o,r.appendChild(t),f},n.m=e,n.c=f,n.d=function(e,c,f){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.893aa7d0d5f360b19998.js.map
\ No newline at end of file
<template>
<div class="employee-table">
<el-table
height="495"
:height="employeeList.length? tableH:'auto'"
:data="employeeList"
@selection-change="selectMember"
@row-click="linkToDetail" >
......@@ -48,6 +48,11 @@ export default {
}
}
},
data() {
return {
tableH: window.screen.availHeight - 440 - 180,
}
},
methods: {
/**
* table选择员工
......
......@@ -100,7 +100,8 @@ export default {
disabled: "disabled"
},
menuData: [],
defaultOpen: []
defaultOpen: [],
defaultId: '', // 默认选择的 id
};
},
methods: {
......@@ -128,8 +129,11 @@ export default {
* 树形菜单选择
*/
handleNodeClick(obj, node) {
document.querySelector('.el-tree-node').classList.remove("is-current");
this.$emit("handleTreeSelection", obj, node, 'node');
const that = this;
if (obj.id != that.defaultId) {
document.querySelector('.el-tree-node').classList.remove("is-current");
}
that.$emit("handleTreeSelection", obj, node, 'node');
},
/**
......@@ -172,10 +176,12 @@ export default {
},
watch: {
treeData(newArr, old) {
const that = this;
let obj = formatTreeData(newArr);
this.defaultOpen = obj.defaultOpen;
this.menuData = obj.menuArr;
this.$nextTick(function(){
that.defaultOpen = obj.defaultOpen;
that.menuData = obj.menuArr;
that.$nextTick(function(){
that.defaultId = !!that.menuData.length? that.menuData[0].id : '';
document.querySelector('.el-tree-node').classList.add("is-current");
})
}
......@@ -189,7 +195,6 @@ export default {
overflow-x: auto;
width: 260px;
background: #eef1f8;
height: 690px;
padding: 20px 0;
box-sizing: border-box;
......@@ -208,9 +213,12 @@ export default {
text-align: center;
margin-top: 20px;
.el-icon-question {
.el-icon-info {
color: #C0C4CC;
cursor: pointer;
&:hover {
color: #000;
}
}
}
......
......@@ -23,9 +23,9 @@
</el-form-item>
</el-form>
<div class="btn-box">
<el-button type="primary" @click="saveFn">保存</el-button>
<el-button type="primary" @click="saveFn"> </el-button>
<el-button type="primary" @click="saveFn(1)" v-if="isAddnew">保存并继续添加</el-button>
<el-button @click="cancel"></el-button>
<el-button @click="cancel"></el-button>
</div>
<vue-select-store ref="storeSelector" @handleSelectedList="handleSelectedList" :treeSet="treeSet" selectType="store"></vue-select-store>
</div>
......
......@@ -137,7 +137,7 @@
</el-form>
</div>
<div class="handle-area">
<el-button type="primary" @click="save">保存</el-button>
<el-button type="primary" @click="save"> </el-button>
</div>
<vue-select-store ref="storeSelector" @handleSelectedList="handleSelectedList" :treeSet="treeSet" :selectType="selectType" :forbidenList="[storeInfo.storeGroupId]"></vue-select-store>
</div>
......
<template>
<div>
<div class="common-right-button-box">
<a href="#/storeInfo">
<el-button type="primary">添加门店</el-button>
</a>
<a :href="'#/storeIo?importCode=store&departmentId='+departmentId+'&showChildMember='+showChildMember*1+'&brandId='+brandId"><el-button>批量导入/导出</el-button></a>
<el-button type="danger" plain @click="delStores" :disabled="disabledDel">批量删除</el-button>
<el-button class="J_show-children" size="small"><el-checkbox class="m-r-10" v-model="showChildMember" @change="setChildMemberShow"></el-checkbox><a class="a-href">显示子成员</a></el-button>
</div>
<el-table
ref="table1"
height="445"
:data="tableData"
@selection-change="selectMember">
<el-table-column
type="selection"
width="42"
></el-table-column>
<el-table-column
label="门店"
prop="storeName"
width="140"
></el-table-column>
<el-table-column
label="代码"
prop="storeCode"
width="140"
></el-table-column>
<el-table-column
label="类型"
prop="storeType"
width="100"
>
<template slot-scope="scope">
{{typeArr[scope.row.storeType * 1 + 1]}}
</template>
</el-table-column>
<el-table-column
label="地区"
prop="areaChainName"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column
label="所属分组"
prop="departmentName"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column
label="操作"
width="120"
>
<template slot-scope="scope">
<a class="a-href m-r-20" :href="'#/storeInfo?storeId='+scope.row.storeId">编辑</a>
<a class="a-href" @click="delStores(scope.row, true)">删除</a>
</template>
</el-table-column>
</el-table>
<div>
<div class="common-right-button-box">
<a href="#/storeInfo">
<el-button type="primary">添加门店</el-button>
</a>
<a :href="'#/storeIo?importCode=store&departmentId='+departmentId+'&showChildMember='+showChildMember*1+'&brandId='+brandId"><el-button>批量导入/导出</el-button></a>
<el-button type="danger" plain @click="delStores" :disabled="disabledDel">批量删除</el-button>
<el-button class="J_show-children" size="small">
<el-checkbox class="m-r-10" v-model="showChildMember" @change="setChildMemberShow">显示子成员</el-checkbox><a class="a-href"></a>
</el-button>
</div>
<el-table
ref="table1"
:height="tableData.length? tableH:'auto'"
:data="tableData"
@selection-change="selectMember">
<el-table-column type="selection" width="42"></el-table-column>
<el-table-column label="门店" prop="storeName" width="140"></el-table-column>
<el-table-column label="代码" prop="storeCode" width="140"></el-table-column>
<el-table-column label="类型" prop="storeType" width="100">
<template slot-scope="scope">
{{typeArr[scope.row.storeType * 1 + 1]}}
</template>
</el-table-column>
<el-table-column label="地区" prop="areaChainName" :show-overflow-tooltip="true"></el-table-column>
<el-table-column label="所属分组" prop="departmentName" :show-overflow-tooltip="true"></el-table-column>
<el-table-column label="操作" width="120">
<template slot-scope="scope">
<a class="a-href m-r-20" :href="'#/storeInfo?storeId='+scope.row.storeId">编辑</a>
<a class="a-href" @click="delStores(scope.row, true)">删除</a>
</template>
</el-table-column>
</el-table>
</div>
</template>
<script>
import { getRequest, postRequest, postJsonRequest } from '@/api/api';
export default {
name: "storeView",
props: {
tableData: {
type: Array,
default() {
return [];
}
},
departmentId: {
type: [String, Number],
default: ""
},
brandId: {
type: [String, Number],
default: ""
}
name: "storeView",
props: {
tableData: {
type: Array,
default () {
return [];
}
},
data() {
return {
selectedList: [],
showChildMember: false, // 是否显示子成员
typeArr: ["全部类型", "自营", "联营", "代理(加盟)", "代销", "托管"],
statusArr: ["待审核", "正常", "审核失败", "停业整顿", "回收站", "删除"]
};
departmentId: {
type: [String, Number],
default: ""
},
methods: {
/**
* 批量删除店铺
*/
delStores(store, single = false) {
console.log(store, single);
let that = this;
that.$confirm("是否删除所选店铺", "提示", {
type: "warning"
}).then(() => {
let ids = "";
if (single) {
ids = store.storeId;
} else {
let arr = [];
that.selectedList.forEach(li => {
arr.push(li.storeId);
});
ids = arr.join(",");
}
let params = {
ids
};
getRequest("/haoban-manage-web/store/delByIds", params)
.then(res => {
console.log(res);
if (res.data.errorCode == 1) {
that.$message.success({
duration: 1000,
message: "操作成功"
});
that.$emit("getStoreList");
} else {
that.$message.error({
duration: 1000,
message: res.data.message
});
}
}).catch(e => {
that.$message.error({
duration: 1000,
message: e.message
});
})
brandId: {
type: [String, Number],
default: ""
}
},
data() {
return {
tableH: window.screen.availHeight - 440 - 180 - 70,
selectedList: [],
showChildMember: false, // 是否显示子成员
typeArr: ["全部类型", "自营", "联营", "代理(加盟)", "代销", "托管"],
statusArr: ["待审核", "正常", "审核失败", "停业整顿", "回收站", "删除"]
};
},
methods: {
/**
* 批量删除店铺
*/
delStores(store, single = false) {
console.log(store, single);
let that = this;
that.$confirm("是否删除所选店铺", "提示", {
type: "warning"
}).then(() => {
let ids = "";
if (single) {
ids = store.storeId;
} else {
let arr = [];
that.selectedList.forEach(li => {
arr.push(li.storeId);
});
ids = arr.join(",");
}
let params = {
ids
};
getRequest("/haoban-manage-web/store/delByIds", params)
.then(res => {
console.log(res);
if (res.data.errorCode == 1) {
that.$message.success({
duration: 1000,
message: "操作成功"
});
that.$emit("getStoreList");
} else {
that.$message.error({
duration: 1000,
message: res.data.message
});
}
}).catch(e => {
that.$message.error({
duration: 1000,
message: e.message
});
})
});
},
selectMember(selection) {
this.selectedList = selection;
},
// 是否显示子成员
setChildMemberShow() {
this.$emit("setChildMemberShow", this.showChildMember);
}
},
computed: {
disabledDel() {
return this.selectedList.length < 1 ;
}
selectMember(selection) {
this.selectedList = selection;
},
// 是否显示子成员
setChildMemberShow() {
this.$emit("setChildMemberShow", this.showChildMember);
}
},
computed: {
disabledDel() {
return this.selectedList.length < 1;
}
}
};
</script>
<style lang="scss">
.J_show-children {
&.el-button {
vertical-align: top;
margin-left: 0;
padding: 0 15px;
line-height: 32px;
height: 32px;
}
</style>
.el-checkbox {
vertical-align: -1px;
&.is-checked {
.el-checkbox__label {
color: #409eff;
}
}
}
}
</style>
......@@ -98,7 +98,7 @@
},
inputValue: function(newData,oldData){
const that = this;
that.itemValue = newData
that.itemValue = newData || '';
that.inputNum = strLength.getZhLen(that.itemValue)
},
},
......
......@@ -524,7 +524,7 @@ export default {
.fixed-footer {
position: fixed;
left: 224px;
left: 200px;
bottom: 0;
right: 0;
margin-bottom: 0;
......
......@@ -44,7 +44,7 @@
:employeeList="employeeList"
@selectMember="selectMember">
</employee-list>
<div class="pagination">
<div class="pagination" v-if="!!employeeList.length">
<el-pagination
background
:page-sizes="[20, 40, 60, 80]"
......@@ -60,6 +60,7 @@
</div>
</div>
</div>
<vue-gic-footer></vue-gic-footer>
</div>
</template>
<script>
......@@ -293,7 +294,6 @@ export default {
display: flex;
.af-right-container {
height: 690px;
background: #fff;
flex: 1;
padding: 0 24px;
......@@ -360,7 +360,7 @@ export default {
}
.pagination {
margin-top: 30px;
margin: 24px 0;
text-align: right;
}
......
......@@ -354,6 +354,10 @@ input:focus {
margin-left: 16px;
}
.m-t-8 {
margin-top: 8px;
}
.m-t-10 {
margin-top: 10px;
}
......@@ -406,10 +410,38 @@ input:focus {
font-size: 0;
}
.font-12 {
font-size: 12px;
}
.font-14 {
font-size: 14px;
}
.font-16 {
font-size: 16px;
}
.font-20 {
font-size: 20px;
}
.font-w-500 {
font-weight: 500;
}
.color-606266 {
color: #606266;
}
.color-909399 {
color: #909399;
}
.line-h-1 {
line-height: 1;
}
.w-130 {
width: 130px;
}
......
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