<!DOCTYPE html><htmllang=en><head><metacharset=utf-8><metahttp-equiv=X-UA-Compatiblecontent="IE=edge"><linkrel=iconhref=favicon.ico><title>workbook</title><linkhref=static/css/Feedback.2f8194a1.cssrel=prefetch><linkhref=static/css/Feedback~home.71e684ac.cssrel=prefetch><linkhref=static/css/addTask.facdaa09.cssrel=prefetch><linkhref=static/css/addTask~unpublishedTask.ec957f22.cssrel=prefetch><linkhref=static/css/approval.52c1ac17.cssrel=prefetch><linkhref=static/css/attendance.92db9c6c.cssrel=prefetch><linkhref=static/css/departmentTask.5528b1ac.cssrel=prefetch><linkhref=static/css/home.4877cef3.cssrel=prefetch><linkhref=static/css/personDetails.cd902409.cssrel=prefetch><linkhref=static/css/personInfo.7593fe2c.cssrel=prefetch><linkhref=static/css/personList.f6539adb.cssrel=prefetch><linkhref=static/css/taskDetails.77c17549.cssrel=prefetch><linkhref=static/css/unpublishedTask.358221b2.cssrel=prefetch><linkhref=static/css/viewTask.9accf887.cssrel=prefetch><linkhref=static/js/Feedback.0919c6d1.jsrel=prefetch><linkhref=static/js/Feedback~home.735da0ba.jsrel=prefetch><linkhref=static/js/addTask.b364755a.jsrel=prefetch><linkhref=static/js/addTask~taskDetails~unpublishedTask.ef3c3746.jsrel=prefetch><linkhref=static/js/addTask~unpublishedTask.9a62a2b4.jsrel=prefetch><linkhref=static/js/approval.a6946dd0.jsrel=prefetch><linkhref=static/js/attendance.8d907ba4.jsrel=prefetch><linkhref=static/js/attendance~personList.db2055ea.jsrel=prefetch><linkhref=static/js/departmentTask.d1b34d0f.jsrel=prefetch><linkhref=static/js/home.37c43827.jsrel=prefetch><linkhref=static/js/personDetails.7cc89099.jsrel=prefetch><linkhref=static/js/personInfo.dd81dc56.jsrel=prefetch><linkhref=static/js/personList.924fdf39.jsrel=prefetch><linkhref=static/js/taskDetails.a9a63fae.jsrel=prefetch><linkhref=static/js/unpublishedTask.5282b98b.jsrel=prefetch><linkhref=static/js/viewTask.c1125274.jsrel=prefetch><linkhref=static/css/app.856898f2.cssrel=preloadas=style><linkhref=static/css/chunk-vendors.7ce05494.cssrel=preloadas=style><linkhref=static/js/app.e1572aa9.jsrel=preloadas=script><linkhref=static/js/chunk-vendors.8d02bf7c.jsrel=preloadas=script><linkhref=static/css/chunk-vendors.7ce05494.cssrel=stylesheet><linkhref=static/css/app.856898f2.cssrel=stylesheet></head><body><noscript><strong>We're sorry but workbook doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><divid=app></div><script src=static/js/chunk-vendors.8d02bf7c.js></script><script src=static/js/app.e1572aa9.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><htmllang=en><head><metacharset=utf-8><metahttp-equiv=X-UA-Compatiblecontent="IE=edge"><linkrel=iconhref=favicon.ico><title>workbook</title><linkhref=static/css/Feedback.2f8194a1.cssrel=prefetch><linkhref=static/css/Feedback~home.71e684ac.cssrel=prefetch><linkhref=static/css/addTask.facdaa09.cssrel=prefetch><linkhref=static/css/addTask~unpublishedTask.ec957f22.cssrel=prefetch><linkhref=static/css/approval.52c1ac17.cssrel=prefetch><linkhref=static/css/attendance.92db9c6c.cssrel=prefetch><linkhref=static/css/departmentTask.5528b1ac.cssrel=prefetch><linkhref=static/css/home.9cd02423.cssrel=prefetch><linkhref=static/css/personDetails.cd902409.cssrel=prefetch><linkhref=static/css/personInfo.7593fe2c.cssrel=prefetch><linkhref=static/css/personList.f6539adb.cssrel=prefetch><linkhref=static/css/taskDetails.974be8f7.cssrel=prefetch><linkhref=static/css/unpublishedTask.358221b2.cssrel=prefetch><linkhref=static/css/viewTask.9accf887.cssrel=prefetch><linkhref=static/js/Feedback.0919c6d1.jsrel=prefetch><linkhref=static/js/Feedback~home.735da0ba.jsrel=prefetch><linkhref=static/js/addTask.b364755a.jsrel=prefetch><linkhref=static/js/addTask~taskDetails~unpublishedTask.ef3c3746.jsrel=prefetch><linkhref=static/js/addTask~unpublishedTask.9a62a2b4.jsrel=prefetch><linkhref=static/js/approval.a6946dd0.jsrel=prefetch><linkhref=static/js/attendance.8d907ba4.jsrel=prefetch><linkhref=static/js/attendance~personList.db2055ea.jsrel=prefetch><linkhref=static/js/departmentTask.d1b34d0f.jsrel=prefetch><linkhref=static/js/home.26cf4f2b.jsrel=prefetch><linkhref=static/js/personDetails.7cc89099.jsrel=prefetch><linkhref=static/js/personInfo.dd81dc56.jsrel=prefetch><linkhref=static/js/personList.924fdf39.jsrel=prefetch><linkhref=static/js/taskDetails.d528c655.jsrel=prefetch><linkhref=static/js/unpublishedTask.5282b98b.jsrel=prefetch><linkhref=static/js/viewTask.c1125274.jsrel=prefetch><linkhref=static/css/app.856898f2.cssrel=preloadas=style><linkhref=static/css/chunk-vendors.7ce05494.cssrel=preloadas=style><linkhref=static/js/app.84f55663.jsrel=preloadas=script><linkhref=static/js/chunk-vendors.8d02bf7c.jsrel=preloadas=script><linkhref=static/css/chunk-vendors.7ce05494.cssrel=stylesheet><linkhref=static/css/app.856898f2.cssrel=stylesheet></head><body><noscript><strong>We're sorry but workbook doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><divid=app></div><script src=static/js/chunk-vendors.8d02bf7c.js></script><script src=static/js/app.84f55663.js></script></body></html>
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["home"],{"0266":function(t,e,a){"use strict";a.r(e);varr=function(){vart=this,e=t.$createElement,a=t._self._c||e;returna("div",{staticClass:"consumerManage"},[a("div",{staticClass:"searchAdd"},[a("el-button",{staticStyle:{float:"right","margin-right":"30px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:t.addUser}},[t._v("新增")])],1),a("div",{staticClass:"consumerTable",staticStyle:{"padding-top":"20px",clear:"both"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.personList}},[a("el-table-column",{attrs:{prop:"username",align:"center",label:"姓名"}}),a("el-table-column",{attrs:{prop:"departmentId",align:"center",label:"部门"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.findDeparts(e.row.departmentIds)))])]}}])}),a("el-table-column",{attrs:{prop:"jobs",align:"center",label:"岗位"}}),a("el-table-column",{attrs:{prop:"phone1",align:"center",label:"电话"}}),a("el-table-column",{attrs:{prop:"entryTime",align:"center",label:"入职时间"}}),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){returnt.openDetails(e.row)}}},[t._v("编辑"),a("i",{staticClass:"el-icon-edit-outline"})]),a("el-button",{staticStyle:{background:"#EE4B4C"},attrs:{type:"text",size:"small"},on:{click:function(a){returnt.deleteUSer(e.row)}}},[t._v("删除"),a("i",{staticClass:"el-icon-delete"})])]}}])})],1)],1),a("consumer-dialog",{attrs:{doName:t.doName,editConsumer:t.editConsumer,roleList:t.roleList,departmentList:t.departList,showConsumerDialog:t.showConsumerDialog},on:{close:t.closeConsumerDialog}})],1)},o=[],i=(a("4160"),a("b0c0"),a("159b"),function(){vart=this,e=t.$createElement,r=t._self._c||e;returnr("div",{staticClass:"consumerDialog"},[r("el-dialog",{attrs:{title:"","show-close":!1,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"lock-scroll":!0,visible:t.dialogConsumerVisible},on:{"update:visible":function(e){t.dialogConsumerVisible=e}}},[r("div",{staticClass:"header-title",attrs:{slot:"title"},slot:"title"},[r("span",{staticClass:"dialogHeader"},[t._v(t._s(t.doName))]),r("img",{staticClass:"dialogHeaderClose",attrs:{src:a("286e")},on:{click:function(e){returnt.closeDialog("createForm")}}})]),r("div",{},[r("div",{staticClass:"elDiv"},[r("el-form",{ref:"createForm",staticClass:"demo-ruleForm",attrs:{model:t.createForm,rules:t.rules,"label-width":"130px"}},[r("el-row",{attrs:{gutter:100}},[r("el-col",{attrs:{span:12}},[r("div",{staticClass:"imgDiv"},[r("img",{staticClass:"pic",attrs:{src:a("13b3")}}),r("img",{directives:[{name:"show",rawName:"v-show",value:"2"===t.createForm.status,expression:"createForm.status === '2'"}],staticClass:"statusImg",attrs:{src:a("479c")}}),r("img",{directives:[{name:"show",rawName:"v-show",value:"1"===t.createForm.status,expression:"createForm.status === '1'"}],staticClass:"statusImg",attrs:{src:a("c4fb")}}),r("img",{directives:[{name:"show",rawName:"v-show",value:"0"===t.createForm.status,expression:"createForm.status === '0'"}],staticClass:"statusImg",attrs:{src:a("e75a")}})]),r("el-form-item",{staticClass:"leftFirst",attrs:{label:"身份证",prop:"idCard"}},[r("el-input",{attrs:{placeholder:"请输入身份证"},model:{value:t.createForm.idCard,callback:function(e){t.$set(t.createForm,"idCard",e)},expression:"createForm.idCard"}})],1),r("el-form-item",{staticClass:"first",attrs:{label:"电话1",prop:"phone1"}},[r("el-input",{attrs:{autocomplete:"off",placeholder:"请输入电话"},model:{value:t.createForm.phone1,callback:function(e){t.$set(t.createForm,"phone1",t._n(e))},expression:"createForm.phone1"}})],1),r("el-form-item",{staticClass:"first selectStyle",attrs:{label:"部门",prop:"departmentIds"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:"请选择"},model:{value:t.createForm.departmentIds,callback:function(e){t.$set(t.createForm,"departmentIds",e)},expression:"createForm.departmentIds"}},t._l(t.departmentList,(function(t){returnr("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),r("el-form-item",{staticClass:"first",attrs:{label:"地址",prop:"address"}},[r("el-input",{attrs:{placeholder:"请输入地址"},model:{value:t.createForm.address,callback:function(e){t.$set(t.createForm,"address",e)},expression:"createForm.address"}})],1)],1),r("el-col",{attrs:{span:12}},[r("div",{staticClass:"nameDiv"},[r("el-form-item",{staticClass:"first",attrs:{label:"姓名",prop:"username"}},[r("el-input",{attrs:{placeholder:"请输入姓名"},model:{value:t.createForm.username,callback:function(e){t.$set(t.createForm,"username",e)},expression:"createForm.username"}})],1),r("el-form-item",{attrs:{label:"岗位",prop:"jobs"}},[r("el-input",{attrs:{placeholder:"请输入岗位"},model:{value:t.createForm.jobs,callback:function(e){t.$set(t.createForm,"jobs",e)},expression:"createForm.jobs"}})],1)],1),r("el-form-item",{staticClass:"rightFirst",attrs:{prop:"email",label:"邮箱"}},[r("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:t.createForm.email,callback:function(e){t.$set(t.createForm,"email",e)},expression:"createForm.email"}})],1),r("el-form-item",{staticClass:"first",attrs:{label:"电话2",prop:"phone2"}},[r("el-input",{attrs:{placeholder:"请输入电话"},model:{value:t.createForm.phone2,callback:function(e){t.$set(t.createForm,"phone2",e)},expression:"createForm.phone2"}})],1),r("el-form-item",{staticClass:"first",attrs:{label:"角色",prop:"roles"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:"请选择角色"},on:{change:t.roleChange},model:{value:t.createForm.roles,callback:function(e){t.$set(t.createForm,"roles",e)},expression:"createForm.roles"}},t._l(t.roleLists,(function(t){returnr("el-option",{key:t.id,attrs:{label:t.name,value:t.id,disabled:t.disabled}})})),1)],1),r("el-form-item",{staticClass:"first",attrs:{label:"入职时间",prop:"entryTime"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"请选择入职时间"},model:{value:t.createForm.entryTime,callback:function(e){t.$set(t.createForm,"entryTime",e)},expression:"createForm.entryTime"}})],1)],1)],1)],1)],1),r("div",{staticClass:"btnStyle"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){returnt.submitForm("createForm")}}},[t._v("保存")])],1)])])],1)}),s=[],n={name:"consumerDialog",components:{},props:["showConsumerDialog","editConsumer","doName","roleList","departmentList"],data:function(){vart=function(t,e,a){varr=/^1[3|4|5|6|7|8][0-9]{9}$/;if(console.log(e),""===e)returna(newError("电话1号码不能为空"));console.log(e),r.test(e)?a():a(newError("电话1号码格式不正确"))},e=function(t,e,a){varr=/^1[3|4|5|6|7|8][0-9]{9}$/;if(console.log(e),""===e)returna(newError("电话2号码不能为空"));console.log(e),r.test(e)?a():a(newError("电话2号码格式不正确"))};return{dialogConsumerVisible:!1,roleLists:[],selectTree:"",createForm:{username:"",phone1:"",phone2:"",idCard:"",address:"",jobs:"",departmentIds:[],email:"",entryTime:"",roles:[]},rules:{username:[{required:!0,message:"请输入姓名",trigger:"blur"}],phone1:[{required:!0,validator:t,trigger:"blur"}],phone2:[{required:!0,validator:e,trigger:"blur"}],idCard:[{required:!0,message:"请填写证件号码",trigger:"blur"},{pattern:/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/,message:"证件号码格式有误!",trigger:"blur"}],address:[{required:!0,message:"请输入地址",trigger:"blur"}],jobs:[{required:!0,message:"请输入岗位",trigger:"blur"}],departmentIds:[{type:"array",required:!0,message:"请选择部门",trigger:"change"}],email:[{required:!0,message:"请输入邮箱地址",trigger:"blur"},{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],entryTime:[{required:!0,message:"请选择入职时间",trigger:"change"}],roles:[{type:"array",required:!0,message:"请选择角色",trigger:"change"}]}}},computed:{},watch:{showConsumerDialog:{immediate:!0,handler:function(t){this.dialogConsumerVisible=t}},roleList:{handler:function(t){console.log(t),this.roleLists=t}},editConsumer:{handler:function(t){if("{}"!==JSON.stringify(t)){vare=JSON.parse(JSON.stringify(t)),a=[];e.roles.forEach((function(t,e){a.push(t.id)})),0===a.length&&(a=[""],this.roleChange(a)),e.roles=a,this.createForm=e}}}},methods:{closeDialog:function(t,e){this.$refs[t].resetFields(),this.createForm.username="",this.createForm.phone1="",this.createForm.phone2="",this.createForm.idCard="",this.createForm.address="",this.createForm.jobs="",this.createForm.departmentIds=[],this.createForm.email="",this.createForm.entryTime="",this.createForm.roles=[],this.$emit("close",e)},submitForm:function(t){vare=this;console.log(this.createForm);vara=JSON.parse(JSON.stringify(this.createForm));console.log(a.roles,this.roleLists);varr=[];if(a.roles.length>0&&""!==a.roles[0]){for(varo=0;o<this.roleLists.length;o++)for(vari=0;i<a.roles.length;i++)a.roles[i]===this.roleLists[o].id&&r.push(this.roleList[o]);console.log(r),a.roles=r}elsea.roles=null;a.phone1=a.phone1+"",a.phone2=a.phone2+"",console.log(a),this.$refs[t].validate((function(r){if(!r)returnconsole.log("error submit!!"),!1;console.log(e.doName),"修改用户"===e.doName?e.$axios.putUsers(a).then((function(a){console.log(a),e.$message({message:"".concat(e.doName,"成功!"),type:"success"}),e.$refs[t].resetFields(),e.closeDialog("createForm",e.doName)})):e.$axios.postUser(a).then((function(a){console.log(a),e.$message({message:"".concat(e.doName,"成功!"),type:"success"}),e.$refs[t].resetFields(),e.closeDialog("createForm",e.doName)}))}))},roleChange:function(t){console.log(t),console.log(t[0]);vare=JSON.parse(JSON.stringify(this.roleLists));console.log(e),t.length>0?""!==t[0]?e.forEach((function(t,e){""!==t.id?t.disabled=!1:t.disabled=!0})):e.forEach((function(t,e){""!==t.id?t.disabled=!0:t.disabled=!1})):e.forEach((function(t,e){t.disabled=!1})),this.roleLists=e}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},l=n,c=(a("4e6d"),a("2877")),d=Object(c["a"])(l,i,s,!1,null,"36451d16",null),u=d.exports,m={name:"Consumer",components:{consumerDialog:u},data:function(){return{searchHuman:"",personList:[],departList:[],showConsumerDialog:!1,editConsumer:"",doName:"",roleList:[],loading:!0}},computed:{},watch:{},methods:{getUser:function(){vart=this;this.$axios.getUser().then((function(e){console.log(e),t.loading=!1,t.personList=e.data}))},openSearch:function(){console.log(this.searchHuman)},deleteUSer:function(t){vare=this;this.$axios.deleteUsers(t.id).then((function(t){console.log(t),200===t.request.status&&(e.$message({message:"删除用户成功!",type:"success"}),e.getUser())}))},jobName:function(t){console.log(t)},consumerDetail:function(t){console.log(t),console.log(this.$Base64.encode(JSON.stringify(t))),localStorage.setItem("adminUser",this.$Base64.encode(JSON.stringify(t))),this.$router.push({name:"consumerDetails"})},addUser:function(){this.doName="新增用户",this.showConsumerDialog=!0},closeConsumerDialog:function(t){("修改用户"===t||"新增用户"===t)&&this.getUser(),this.showConsumerDialog=!1},openDetails:function(t){console.log(t),this.doName="修改用户",this.showConsumerDialog=!0,this.editConsumer=t},findDeparts:function(t){for(vare,a=0;a<this.departList.length;a++)for(varr=0;r<t.length;r++)t[r]===this.departList[a].id&&(e=this.departList[a].name);returne},getAllDepartmentList:function(){vart=this;this.$axios.getAllDepartment().then((function(e){console.log(e),200===e.request.status&&(t.departList=e.data,t.getUser())}))},getRoles:function(){vart=this;this.$axios.getRole().then((function(e){if(console.log(e.data),200===e.request.status){e.data.forEach((function(t,e){t.disabled=!1}));vara={authorities:[],departmentId:"",description:"",id:"",isLeader:"",name:"无",disabled:!1};e.data.push(a),t.roleList=e.data}}))}},created:function(){},mounted:function(){this.getAllDepartmentList(),this.getRoles()},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},f=m,p=(a("3987"),Object(c["a"])(f,r,o,!1,null,"71a0ccea",null));e["default"]=p.exports},"057f":function(t,e,a){varr=a("fc6a"),o=a("241c").f,i={}.toString,s="object"==typeofwindow&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],n=function(t){try{returno(t)}catch(e){returns.slice()}};t.exports.f=function(t){returns&&"[object Window]"==i.call(t)?n(t):o(r(t))}},"07a1":function(t,e,a){"use strict";a.r(e);varr=function(){vart=this,e=t.$createElement,a=t._self._c||e;returna("div",{staticClass:"paramsSetting"},[a("div",{staticStyle:{height:"100%"}},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{name:"base"}},[a("span",{staticClass:"tabMargin",attrs:{slot:"label"},slot:"label"},[t._v(" 基础配置 ")]),a("div",{staticStyle:{margin:"0 30px"}},[a("el-form",{ref:"baseForm",staticClass:"demo-ruleForm",attrs:{model:t.baseForm,rules:t.rules,"label-width":"120px"}},[a("el-row",{attrs:{gutter:100}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"上班时间",prop:"workTime"}},[a("el-time-picker",{staticStyle:{width:"90%"},attrs:{clearable:!1,"value-format":"HH:mm:ss",placeholder:"选择上班时间"},model:{value:t.baseForm.workTime,callback:function(e){t.$set(t.baseForm,"workTime",e)},expression:"baseForm.workTime"}})],1),a("el-form-item",{attrs:{label:"下班时间",prop:"afterWorkTime"}},[a("el-time-picker",{staticStyle:{width:"90%"},attrs:{clearable:!1,"value-format":"HH:mm:ss",placeholder:"选择下班时间"},model:{value:t.baseForm.afterWorkTime,callback:function(e){t.$set(t.baseForm,"afterWorkTime",e)},expression:"baseForm.afterWorkTime"}})],1),a("el-form-item",{attrs:{label:"弹性迟到扣分1",prop:"latePointsFifteen"}},[a("el-input",{attrs:{placeholder:"迟到15分钟以上,1小时以内扣分"},model:{value:t.baseForm.latePointsFifteen,callback:function(e){t.$set(t.baseForm,"latePointsFifteen",e)},expression:"baseForm.latePointsFifteen"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("分")])],1),a("el-form-item",{attrs:{label:"弹性迟到扣分2",prop:"latePointsHalfOfDay"}},[a("el-input",{attrs:{placeholder:"迟到1小时以上到半天内扣分"},model:{value:t.baseForm.latePointsHalfOfDay,callback:function(e){t.$set(t.baseForm,"latePointsHalfOfDay",e)},expression:"baseForm.latePointsHalfOfDay"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("分")])],1),a("el-form-item",{attrs:{label:"弹性迟到时间1",prop:"lateNumOfFixedTime"}},[a("el-input",{attrs:{placeholder:"迟到15分钟以上,1小时以内扣分"},model:{value:t.baseForm.lateNumOfFixedTime,callback:function(e){t.$set(t.baseForm,"lateNumOfFixedTime",e)},expression:"baseForm.lateNumOfFixedTime"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("分")])],1),a("el-form-item",{attrs:{label:"弹性迟到时间2",prop:"lateWorkTimeOne"}},[a("el-input",{attrs:{placeholder:"迟到1小时以上到半天内扣分"},model:{value:t.baseForm.lateWorkTimeOne,callback:function(e){t.$set(t.baseForm,"lateWorkTimeOne",e)},expression:"baseForm.lateWorkTimeOne"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("时")])],1),a("el-form-item",{attrs:{label:"弹性迟到时间3",prop:"lateWorkTimeTwo"}},[a("el-input",{attrs:{placeholder:"迟到1小时以上到半天内扣分"},model:{value:t.baseForm.lateWorkTimeTwo,callback:function(e){t.$set(t.baseForm,"lateWorkTimeTwo",e)},expression:"baseForm.lateWorkTimeTwo"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("时")])],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"日基础分",prop:"score"}},[a("el-input",{attrs:{placeholder:"请输入每日考勤基础分"},on:{change:t.baseScore},model:{value:t.baseForm.score,callback:function(e){t.$set(t.baseForm,"score",e)},expression:"baseForm.score"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("分")])],1),a("el-form-item",{attrs:{label:"迟到次数",prop:"lateNum"}},[a("el-input",{attrs:{placeholder:"请输入迟次到数"},model:{value:t.baseForm.lateNum,callback:function(e){t.$set(t.baseForm,"lateNum",e)},expression:"baseForm.lateNum"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("次")])],1),a("el-form-item",{attrs:{label:"事假半天扣分",prop:"thingHalfOfDay"}},[a("el-input",{attrs:{placeholder:"事假半天扣分"},model:{value:t.baseForm.thingHalfOfDay,callback:function(e){t.$set(t.baseForm,"thingHalfOfDay",e)},expression:"baseForm.thingHalfOfDay"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("分")])],1),a("el-form-item",{attrs:{label:"事假一天扣分",prop:"thingDay"}},[a("el-input",{attrs:{placeholder:"事假一天扣分"},model:{value:t.baseForm.thingDay,callback:function(e){t.$set(t.baseForm,"thingDay",e)},expression:"baseForm.thingDay"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("分")])],1),a("el-form-item",{attrs:{label:"加班一小时",prop:"workOverScore"}},[a("el-input",{attrs:{placeholder:"加班一小时加分"},model:{value:t.baseForm.workOverScore,callback:function(e){t.$set(t.baseForm,"workOverScore",e)},expression:"baseForm.workOverScore"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("分")])],1),a("el-form-item",{attrs:{label:"全天旷工扣分",prop:"absenteeism"}},[a("el-input",{attrs:{placeholder:"全天旷工扣分"},model:{value:t.baseForm.absenteeism,callback:function(e){t.$set(t.baseForm,"absenteeism",e)},expression:"baseForm.absenteeism"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("分")])],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"全年病假次数",prop:"sickNum"}},[a("el-input",{attrs:{placeholder:"全年可请病假次数"},model:{value:t.baseForm.sickNum,callback:function(e){t.$set(t.baseForm,"sickNum",e)},expression:"baseForm.sickNum"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("次")])],1),a("el-form-item",{attrs:{label:"月补卡数",prop:"addCardNum"}},[a("el-input",{attrs:{placeholder:"月补卡次数"},model:{value:t.baseForm.addCardNum,callback:function(e){t.$set(t.baseForm,"addCardNum",e)},expression:"baseForm.addCardNum"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("次")])],1),a("el-form-item",{attrs:{label:"调休半天扣分",prop:"paidHalfOfDayLeave"}},[a("el-input",{attrs:{placeholder:"调休半天扣分"},model:{value:t.baseForm.paidHalfOfDayLeave,callback:function(e){t.$set(t.baseForm,"paidHalfOfDayLeave",e)},expression:"baseForm.paidHalfOfDayLeave"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("分")])],1),a("el-form-item",{attrs:{label:"调休一天",prop:"paidDayLeave"}},[a("el-input",{attrs:{placeholder:"调休一天扣分"},model:{value:t.baseForm.paidDayLeave,callback:function(e){t.$set(t.baseForm,"paidDayLeave",e)},expression:"baseForm.paidDayLeave"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("分")])],1)],1)],1)],1),a("div",{staticStyle:{"text-align":"center",height:"40px","margin-top":"30px"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){returnt.submitForm("baseForm")}}},[t._v("保存")])],1)],1)]),a("el-tab-pane",{attrs:{name:"holiday"}},[a("span",{staticClass:"tabMargin",attrs:{slot:"label"},slot:"label"},[t._v(" 节假日配置 ")]),a("div",{staticClass:"calendarDiv"},[a("el-calendar",{attrs:{id:"calendar"},scopedSlots:t._u([{key:"dateCell",fn:function(e){varr=e.date,o=e.data;return[a("div",{staticStyle:{height:"75px"},on:{click:function(e){returnt.clickCurrentDay(r,o)}}},[a("div",{staticClass:"calendar-day",staticStyle:{"font-size":"20px"}},[t._v(" "+t._s(o.day.split("-").slice(1).join("-"))+" ")]),t._l(t.calendarData,(function(e,r){returna("div",{key:r,staticStyle:{position:"relative"}},[o.day===e.date?a("div",{staticClass:"selectDays"},[t._v(t._s(!0===e.select?"✔️":""))]):t._e(),o.day===e.date?a("div",{staticClass:"workHoliday"},[t._v(t._s("1"===e.status?"休":"2"===e.status?"团":"班"))]):t._e()])}))],2)]}}]),model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1),a("div",{staticClass:"btnCalendar",staticStyle:{"text-align":"center",height:"40px"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){returnt.settingWork()}}},[t._v("设为工作日")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){returnt.settingHoliday()}}},[t._v("设为休息日")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){returnt.settingGroup()}}},[t._v("设为团建日")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){returnt.saveWorkHoliday()}}},[t._v("保存")])],1)])],1)],1)])},o=[],i=(a("4160"),a("ac1f"),a("5319"),a("159b"),a("2909")),s={name:"paramsSetting",components:{},data:function(){return{activeName:"base",baseForm:{workTime:"09:00:00",afterWorkTime:"17:00:00",score:"",lateNum:"",latePointsFifteen:"",latePointsHalfOfDay:"",thingHalfOfDay:"",sickNum:"",paidHalfOfDayLeave:"",paidDayLeave:"",addCardNum:"",workOverScore:"",absenteeism:"",thingDay:"",lateNumOfFixedTime:"",lateWorkTimeOne:"",lateWorkTimeTwo:""},rules:{workTime:[{type:"string",required:!0,message:"请选择上班时间",trigger:"change"}],afterWorkTime:[{type:"string",required:!0,message:"请选择下班时间",trigger:"change"}],score:[{required:!0,message:"请输入日基础分",trigger:"blur"}],lateNum:[{required:!0,message:"请输入迟到次数",trigger:"blur"}],latePointsFifteen:[{required:!0,message:"请输入迟到15分钟以上,一小时以内扣分",trigger:"blur"}],latePointsHalfOfDay:[{required:!0,message:"请输入迟到一小时以上,半天内扣分",trigger:"blur"}],thingHalfOfDay:[{required:!0,message:"请输入事假半天扣分",trigger:"blur"}],sickNum:[{required:!0,message:"请输入全年病假次数",trigger:"blur"}],paidHalfOfDayLeave:[{required:!0,message:"请输入调休半天扣分",trigger:"blur"}],paidDayLeave:[{required:!0,message:"请输入调休一天扣分",trigger:"blur"}],addCardNum:[{required:!0,message:"请输入月补卡数",trigger:"blur"}],workOverScore:[{required:!0,message:"请输入加班一小时分数",trigger:"blur"}],absenteeism:[{required:!0,message:"请输入全天旷工扣分",trigger:"blur"}],thingDay:[{required:!0,message:"请输入事假一天扣分",trigger:"blur"}],lateNumOfFixedTime:[{required:!0,message:"请输入弹性扣分时间1",trigger:"blur"}],lateWorkTimeOne:[{required:!0,message:"请输入弹性扣分时间2",trigger:"blur"}],lateWorkTimeTwo:[{required:!0,message:"请输入弹性扣分时间3",trigger:"blur"}]},calendarData:[],value:newDate,currentSelectDay:{},nowDay:"",saveGetCalendar:[],saveHolidayCurrent:[]}},computed:{},watch:{},methods:{handleClick:function(t,e){console.log(t,e)},getListData:function(t){vare;switch(t.date()){case8:e=[{type:"warning",content:"This is warning event."},{type:"success",content:"This is usual event."}];break;case10:e=[{type:"warning",content:"This is warning event."},{type:"success",content:"This is usual event."},{type:"error",content:"This is error event."}];break;case15:e=[{type:"warning",content:"This is warning event"},{type:"success",content:"This is very long usual event。。...."},{type:"error",content:"This is error event 1."},{type:"error",content:"This is error event 2."},{type:"error",content:"This is error event 3."},{type:"error",content:"This is error event 4."}];break;default:}returne||[]},getMonthData:function(t){if(8===t.month())return1394},getParams:function(){vart=this;this.$axios.getAddConfig().then((function(e){console.log(e),200===e.request.status&&null!==e.data&&(t.baseForm=e.data)}))},getHoliday:function(t){vare=this;this.$axios.getHoliday(t).then((function(t){if(console.log(t),0!==t.data.length){for(vara=0;a<t.data.length;a++)t.data[a].date=t.data[a].date.substring(0,10),t.data[a].select=!1;console.log(t.data),e.calendarData=t.data,e.saveHolidayCurrent=t.data}}))},submitForm:function(t){vare=this;console.log(this.baseForm),this.$refs[t].validate((function(t){if(!t)returnconsole.log("error submit!!"),!1;e.$axios.postAddConfig(e.baseForm).then((function(t){console.log(t),200===t.request.status&&(e.$message({message:"保存配置成功!",type:"success"}),e.baseForm=t.data)}))}))},resetForm:function(t){this.$refs[t].resetFields()},clickCurrentDay:function(t,e){console.log(e);vara=e.day.substring(e.day.length-2,e.day.length);console.log(a);varr=JSON.parse(JSON.stringify(this.calendarData));r[parseInt(a)-1].select=!r[parseInt(a)-1].select,console.log(r),this.calendarData=r,e.select=!0,console.log(e),this.currentSelectDay=JSON.parse(JSON.stringify(e))},settingWork:function(){vart=JSON.parse(JSON.stringify(this.calendarData));t.forEach((function(t,e){!0===t.select&&(t.status="0",t.select=!1)}));vare=Object(i["a"])(t);this.calendarData=e},settingHoliday:function(){vart=JSON.parse(JSON.stringify(this.calendarData));t.forEach((function(t,e){!0===t.select&&(t.status="1",t.select=!1)}));vare=Object(i["a"])(t);this.calendarData=e},settingGroup:function(){vart=JSON.parse(JSON.stringify(this.calendarData));t.forEach((function(t,e){!0===t.select&&(t.status="2",t.select=!1)}));vare=Object(i["a"])(t);this.calendarData=e},saveWorkHoliday:function(){vart=this,e=JSON.parse(JSON.stringify(this.calendarData));e.forEach((function(t,e){t.date=t.date+" 00:00:00"})),console.log(e),this.$axios.putHoliday(e).then((function(e){if(console.log(e),e.data.length>0){t.$message({message:"保存节假日设置成功!",type:"success"});for(vara=0;a<e.data.length;a++)e.data[a].date=e.data[a].date.substring(0,10);console.log(e.data),t.calendarData=e.data}}))},baseScore:function(t){console.log(t),this.baseForm.thingHalfOfDay=.5*parseInt(t)+"",this.baseForm.paidHalfOfDayLeave=.5*parseInt(t)+"",this.baseForm.paidDayLeave=t+"",this.baseForm.latePointsFifteen=parseInt(t)/8+"",this.baseForm.latePointsHalfOfDay=1*parseInt(t)+"",this.baseForm.workOverScore=parseInt(t)/8+"",this.baseForm.absenteeism=3*parseInt(t)+"",this.baseForm.thingDay=t+""}},created:function(){},mounted:function(){vart=this;this.getParams(),this.getHoliday(this.$common.timeYMDFilter(newDate)),this.$nextTick((function(){vare=document.querySelector(".el-calendar__button-group .el-button-group>button:nth-child(1)"),a=document.querySelector(".el-calendar__button-group .el-button-group>button:nth-child(2)"),r=document.querySelector(".el-calendar__button-group .el-button-group>button:nth-child(3)");e.addEventListener("click",(function(){vare=document.getElementsByClassName("el-calendar__title")[0].innerText,a=e.replace(/\s+/g,""),r=a.replace("年","-"),o=r.replace("月","-")+"01",i=t.$common.timeYMDFilter(newDate(o));console.log(i),t.getHoliday(i)})),a.addEventListener("click",(function(){vare=t.$common.timeYMDFilter(newDate);console.log(e),t.getHoliday(e)})),r.addEventListener("click",(function(){vare=document.getElementsByClassName("el-calendar__title")[0].innerText,a=e.replace(/\s+/g,""),r=a.replace("年","-"),o=r.replace("月","-")+"01",i=t.$common.timeYMDFilter(newDate(o));console.log(i),t.getHoliday(i)}))}))},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},n=s,l=(a("c437"),a("2877")),c=Object(l["a"])(n,r,o,!1,null,"2ffa68af",null);e["default"]=c.exports},"0c1f":function(t,e,a){},"13b3":function(t,e,a){t.exports=a.p+"static/img/photoDefault.dbd4015d.png"},"159b":function(t,e,a){varr=a("da84"),o=a("fdbc"),i=a("17c2"),s=a("9112");for(varnino){varl=r[n],c=l&&l.prototype;if(c&&c.forEach!==i)try{s(c,"forEach",i)}catch(d){c.forEach=i}}},"166c":function(t,e,a){},"17c2":function(t,e,a){"use strict";varr=a("b727").forEach,o=a("a640"),i=a("ae40"),s=o("forEach"),n=i("forEach");t.exports=s&&n?[].forEach:function(t){returnr(this,t,arguments.length>1?arguments[1]:void0)}},1833:function(t,e,a){"use strict";a.r(e);varr=function(){vart=this,e=t.$createElement,r=t._self._c||e;returnr("div",{staticClass:"roleManage"},[r("div",{staticStyle:{height:"100%"}},[r("el-row",{staticStyle:{height:"100%"},attrs:{gutter:30}},[r("el-col",{staticStyle:{height:"100%"},attrs:{span:8}},[r("div",{staticStyle:{height:"100%"}},[r("el-input",{attrs:{placeholder:"输入关键字进行过滤"},model:{value:t.filterText,callback:function(e){t.filterText=e},expression:"filterText"}}),r("div",{staticClass:"companyTitle",on:{click:t.companyClick}},[r("img",{attrs:{src:a("6f3f")}}),r("span",{style:{color:t.compantClick}},[t._v(t._s(this.companyData.name))])]),r("div",{staticStyle:{height:"84%","border-right":"1px solid #a7acea"}},[r("el-tree",{ref:"tree",staticClass:"filter-tree",attrs:{data:t.data,props:t.defaultProps,"default-expand-all":"","expand-on-click-node":!1,"filter-node-method":t.filterNode},on:{"node-click":t.handleNodeClick,"current-node-key":t.currentDepartment}})],1)],1)]),r("el-col",{attrs:{span:16}},[r("div",{staticClass:"roleTableDiv"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableRoleData,border:"",align:"center"}},[r("el-table-column",{attrs:{align:"center",prop:"department",label:"部门名称"}}),r("el-table-column",{attrs:{align:"center",prop:"name",label:"角色名称"}}),r("el-table-column",{attrs:{align:"center",prop:"description",label:"角色描述"}}),r("el-table-column",{attrs:{align:"center",prop:"authorities",label:"拥有权限"},scopedSlots:t._u([{key:"default",fn:function(e){returnt._l(e.row.authorities,(function(a,o){returnr("span",{key:o},[t._v(t._s(a.name)),r("span",{directives:[{name:"show",rawName:"v-show",value:o+1!==e.row.authorities.length,expression:"(index + 1) !== scope.row.authorities.length"}]},[t._v("、")])])}))}}])}),r("el-table-column",{attrs:{label:"操作",align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"roleBtnStyle"},[r("el-button",{attrs:{size:"small"},on:{click:function(a){returnt.editRole(e.row)}}},[t._v("编辑"),r("i",{staticClass:"el-icon-edit-outline"})]),r("el-button",{staticStyle:{background:"#EE4B4C"},attrs:{size:"small"},on:{click:function(a){returnt.deleteRole(e.row)}}},[t._v("删除"),r("i",{staticClass:"el-icon-delete"})])],1)]}}])})],1),r("div",{staticStyle:{"text-align":"center","margin-top":"20px"}},[r("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:t.addRole}},[t._v("新增")])],1)],1)])],1)],1),r("roleDialog",{ref:"dialogRole",attrs:{showRoleDialog:t.showRoleDialog,authorityLists:t.authorityLists,roleDetails:t.roleDetails},on:{close:t.closeRoleDialog}})],1)},o=[],i=(a("4160"),a("c975"),a("b0c0"),a("159b"),function(){vart=this,e=t.$createElement,r=t._self._c||e;returnr("div",{staticClass:"roleDialog"},[r("el-dialog",{attrs:{title:"","show-close":!1,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"lock-scroll":!0,visible:t.dialogRoleVisible},on:{"update:visible":function(e){t.dialogRoleVisible=e}}},[r("div",{staticClass:"header-title",attrs:{slot:"title"},slot:"title"},[r("span",{staticClass:"dialogHeader"},[t._v(t._s(t.dialogName))]),r("img",{staticClass:"dialogHeaderClose",attrs:{src:a("286e")},on:{click:function(e){returnt.closeDialog("roleForm")}}})]),r("div",{staticClass:"roleDivs"},[r("el-form",{ref:"roleForm",staticClass:"demo-ruleForm",attrs:{"hide-required-asterisk":!0,model:t.roleForm,rules:t.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"角色名称",prop:"name"}},[r("el-input",{attrs:{placeholder:"请输入角色名称"},model:{value:t.roleForm.name,callback:function(e){t.$set(t.roleForm,"name",e)},expression:"roleForm.name"}})],1),r("el-form-item",{attrs:{label:"角色职位",prop:"isLeader"}},[r("el-radio-group",{model:{value:t.roleForm.isLeader,callback:function(e){t.$set(t.roleForm,"isLeader",e)},expression:"roleForm.isLeader"}},[r("el-radio",{attrs:{label:"0"}},[t._v("部门领导")]),r("el-radio",{attrs:{label:"1"}},[t._v("普通员工")])],1)],1),r("el-form-item",{attrs:{label:"角色权限",prop:"authorities"}},[r("el-checkbox-group",{model:{value:t.roleForm.authorities,callback:function(e){t.$set(t.roleForm,"authorities",e)},expression:"roleForm.authorities"}},t._l(t.authorityList,(function(e,a){returnr("el-checkbox",{key:a,attrs:{label:e.id}},[t._v(t._s(e.name))])})),1)],1),r("el-form-item",{attrs:{label:"角色描述",prop:"description"}},[r("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:t.roleForm.description,callback:function(e){t.$set(t.roleForm,"description",e)},expression:"roleForm.description"}})],1)],1)],1),r("div",{staticClass:"dialogBtns"},[r("el-button",{staticClass:"mrgt",attrs:{type:"primary"},on:{click:function(e){returnt.roleSubmit("roleForm")}}},[t._v("确定")])],1)])],1)}),s=[],n=(a("a4d3"),a("e01a"),{name:"roleDialog",components:{},props:{showRoleDialog:{type:Boolean,default:!1},roleDetails:{type:Object},authorityLists:{type:Array}},data:function(){return{dialogRoleVisible:!1,roleForm:{name:"",isLeader:"",description:"",authorities:[],departmentId:""},rules:{name:[{required:!0,message:"请输入角色名称",trigger:"blur"}],authorities:[{type:"array",required:!0,message:"请至少选择一个角色权限",trigger:"change"}],isLeader:[{required:!0,message:"请选择角色职位",trigger:"change"}],description:[{required:!0,message:"请填写角色描述",trigger:"blur"}]},dialogName:"",authorityList:[]}},computed:{},watch:{showRoleDialog:{immediate:!0,handler:function(t){this.dialogRoleVisible=t}},authorityLists:{immediate:!0,handler:function(t){console.log(t),this.authorityList=t}},roleDetails:{immediate:!0,handler:function(t){if(console.log(t),this.dialogName=""===t.name?"新增角色":"修改角色",null===t.authorities)t.authorities=[],this.roleForm=t;else{vare=[];t.authorities.forEach((function(t,a){console.log(t,a),e.push(t.id)})),console.log(e);vara=JSON.parse(JSON.stringify(t));a.authorities=e,this.roleForm=a}}}},methods:{closeDialog:function(t){console.log(t),this.roleForm.name="",this.roleForm.isLeader="",this.roleForm.description="",this.roleForm.authorities=[],this.$refs[t].resetFields(),this.$emit("close",!1)},roleSubmit:function(t){vare=this;console.log(this.roleForm),this.$refs[t].validate((function(t){if(!t)returnconsole.log("error submit!!"),!1;console.log(e.authorityLists);for(vara=[],r=0;r<e.authorityLists.length;r++)for(varo=0;o<e.roleForm.authorities.length;o++)e.authorityLists[r].id===e.roleForm.authorities[o]&&a.push(e.authorityLists[r]);console.log(a);vari=JSON.parse(JSON.stringify(e.roleForm));i.authorities=a,console.log(i),console.log(e.dialogName),"修改角色"===e.dialogName?e.$axios.putRoles(i).then((function(t){console.log(t),200===t.request.status&&(e.$message({message:"".concat(e.dialogName,"角色成功!"),type:"success"}),e.closeDialog("roleForm"))})):e.$axios.postRole(i).then((function(t){console.log(t),200===t.request.status&&(e.$message({message:"".concat(e.dialogName,"角色成功!"),type:"success"}),e.closeDialog("roleForm"))}))}))}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}}),l=n,c=(a("c911"),a("2877")),d=Object(c["a"])(l,i,s,!1,null,"03b4fc56",null),u=d.exports,m={name:"RoleManage",components:{roleDialog:u},data:function(){return{defaultProps:{children:"departments",label:"name"},filterText:"",data:[],tableRoleData:[],showRoleDialog:!1,roleDetails:{name:"",isLeader:"",description:"",authorities:[],department:""},currentDepartment:"",authorityLists:[],companyData:"",compantClick:"#000000"}},computed:{},watch:{},methods:{companyClick:function(){vart=this,e=JSON.parse(JSON.stringify(this.companyData));this.compantClick="#5059d5",this.$axios.postDepartmentList().then((function(e){200===e.request.status&&(t.data=e.data[0].departments)})),this.handleNodeClick(e)},filterNode:function(t,e){return!t||-1!==e.name.indexOf(t)},postDepartmentList:function(){vart=this;this.$axios.postDepartmentList().then((function(e){console.log(e),200===e.request.status&&(t.companyData=e.data[0],t.data=e.data[0].departments,e.data[0].departments.length>0?(t.currentDepartment=e.data[0].departments[0],t.handleNodeClick(e.data[0].departments[0])):(t.currentDepartment=e.data[0],t.handleNodeClick(e.data[0])))}))},handleNodeClick:function(t){vare=this;console.log(t),JSON.stringify(t)===JSON.stringify(this.companyData)?this.compantClick="#5059d5":this.compantClick="#000000",this.currentDepartment=t,this.$axios.getRoleFindDepartment(t.id).then((function(a){console.log(a),200===a.request.status&&(a.data.forEach((function(e,a){e.department=t.name})),e.tableRoleData=a.data)}))},addRole:function(){console.log(this.currentDepartment.id),this.roleDetails={name:"",isLeader:"",description:"",authorities:[],departmentId:this.currentDepartment.id},this.showRoleDialog=!0},editRole:function(t){console.log(t),this.showRoleDialog=!0,this.roleDetails=t},deleteRole:function(t){vare=this;console.log(t),this.$axios.deleteRole(t.id).then((function(t){console.log(t),200===t.request.status&&(e.$message({message:"删除角色成功!",type:"success"}),e.handleNodeClick(e.currentDepartment))}))},closeRoleDialog:function(){this.showRoleDialog=!1,this.handleNodeClick(this.currentDepartment)},getAuthorityList:function(){vart=this;this.$axios.putAuthority().then((function(e){console.log(e),200===e.request.status&&(t.authorityLists=e.data)}))}},created:function(){},mounted:function(){this.postDepartmentList(),this.getAuthorityList()},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},f=m,p=(a("dd89"),Object(c["a"])(f,r,o,!1,null,"5a068757",null));e["default"]=p.exports},"1efb":function(t,e,a){},"1f37":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAMAAAAMs7fIAAABVlBMVEVHcExQnNVQbdVQjdVQpNVQX9VQdtVQpNVQZdVQpNVQotVQpNVQltVQo9VQeNVQitVQhNVQpNVQcNVQatVQfNVQltVQkNVQnNVQpNVQo9VQpNVQotVQctVQhNVQWdVQpNVQgtVQftVQntVQa9VQo9VQh9VQjdVQmNVQk9VQntVQmNVQZdVQctVQk9VQh9VQa9VQX9VQgtVQatVQZdVQVdVQjdVQXdVQXdVQWdVQhdVQddVQlNVQpNVQX9VQX9VQpNVQlNVQhdVQZdVQZdVQZdVQnNVQfdVQnNVQbdVQfdVQfdVQddVQddVQWdVQWdVQfdVQhdVQlNVQhdVQo9VQnNVQlNVQlNVQkNVQitVQhNVQftVQeNVQjdVQltVQmNVQk9VQnNVQctVQZdVQntVQh9VQgtVQfNVQa9VQotVQdtVQcNVQo9VQatVQbdVQddVQX9VQfdVQhdWxZPANAAAAV3RSTlMAgODwgMDAEMDwgGBg8EDQgDDAwMCgQMCQMCDAsDAw0MDgQPDgwMAwwPBA0FAw8JCQgGAwEBCgUCBAMHBAcPBQIKAQYCBA8BBgMIDw4GAQQLDQUIAgwIATF4HWAAAAyElEQVQY02NgYGBg5+Zi5GFAAoKcGQmx4fyycAEpsEBEpCJcRAIiEBWtAxORhgok6rPbQETEoQLpHPbZ7g6mQBFRqECSbXBCILMjUEQMKmDnxxjGXOgJ0iYAFsj3DWFgCCrw8QAJ8ckoaxtYuIYyMPjnMTmDDZdU0tJlsI4J8PLOdQH5gYU3OS4+Rs/Q0i2PKckMKCCfDRJISU1js8p1MjdhYGCBCWRmGRmDzVCBC+RwQJysCRdIYoWIqGuoqSqIsAkJc7DKgQUAs643XNLxWwEAAAAASUVORK5CYII="},"278d":function(t,e,a){},"28f6":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAA/1BMVEVHcExQhtVQjdVQddVQpNVQmtVQkdVQpNVQo9VQWNVQftVQa9VQd9VQX9VQYtVQWNVQnNVQiNVQlNVQftVQnNVQiNVQo9VQYtVQX9VQY9VQbtVQdtVQftVQb9VQb9VQX9VQdtVQnNVQo9VQY9VQitVQfNVQmNVQY9VQYNVQbtVQitVQWNVQZ9VQitVQfNVQZ9VQYNVQdtVQmNVQY9VQitVQWNVQmtVQY9VQnNVQnNVQpNVQWNVQpNVQnNVQnNVQYtVQlNVQftVQkdVQiNVQddVQitVQmtVQo9VQa9VQhtVQjdVQlNVQd9VQb9VQZ9VQfNVQnNVQYtVQdtVQbtVQYNWr+lsMAAAAQXRSTlMAwMAwEJAgQJCAwMDA0BAgwFBgYOBwMMCAMJAwgMCQEPCQ4LCgEDDgwECAMMAQQCBgkPBwTHBwwFCAcFBQQCDQwEl33DMAAAClSURBVBjTY2AAAjZBYWYGJMDq5Ozows0H53O4gQQ8xBkUVaRBfBZ3iEAgv6WrgiRQgB0mYGrrGqSMLMBp5xqkjqzF2sI1yBzJUHsGAdcgY2RrbQJcDaEWs4nKAB3GbmaiCuELMTFy8cjpWxm5+ksBuWIi3l6ejj6+fgZqrv7BEgwMSgFQgRB+Lf9gXqAz4AKcuugCDHqa8kBnCDiADJXV0dAG2QAAHTInWkKiUI4AAAAASUVORK5CYII="},2909:function(t,e,a){"use strict";functionr(t,e){(null==e||e>t.length)&&(e=t.length);for(vara=0,r=newArray(e);a<e;a++)r[a]=t[a];returnr}functiono(t){if(Array.isArray(t))returnr(t)}a.d(e,"a",(function(){returnl}));a("a4d3"),a("e01a"),a("d28b"),a("a630"),a("e260"),a("d3b7"),a("3ca3"),a("ddb0");functioni(t){if("undefined"!==typeofSymbol&&Symbol.iteratorinObject(t))returnArray.from(t)}a("fb6a"),a("b0c0"),a("25f0");functions(t,e){if(t){if("string"===typeoft)returnr(t,e);vara=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(t,e):void0}}functionn(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}functionl(t){returno(t)||i(t)||s(t)||n()}},2945:function(t,e,a){"use strict";varr=a("b189"),o=a.n(r);o.a},"33ee":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAUCAMAAABcfiZ7AAABEVBMVEVHcExQc9VQm9VQldVQfNVQedVQWdVQpNVQpNVQVtVQjNVQidVQodVQodVQodVQjNVQXNVQcNVQXNVQVtVQhdVQf9VQedVQadVQZtVQcNVQWdVQktVQc9VQdtVQWdVQjNVQX9VQf9VQedVQf9VQY9VQcNVQVtVQdtVQWdVQf9VQdtVQhdVQY9VQgtVQj9VQbNVQfNVQhdVQgtVQadVQfNVQfNVQntVQWdVQntVQidVQZtVQfNVQedVQX9VQmNVQktVQj9VQntVQbNVQc9VQadVQcNVQdtVQZtVQY9VQj9VQktVQmNVQedVQX9VQfNVQgtVQjNVQidVQldVQf9VQhdVQm9VQXNVQntVQodVQpNVQWdUooMUUAAAAQnRSTlMAQMDAENDwUMAwgCDAMOBwsICAEHDw4EDwoECQ4KDgIGBwwOAQQGDAUJBAwEDQcEAgoCBwwGCgsMBQQIBAQMAg8CAIOb8vAAAAyElEQVQY01XQ1VqCQRAG4I9uAUkJSVFakA4BBZWQkhDv/0LYnQF+maPd99mdAigG6qmmByVste10PembLXw1GG/2EsbL1Saf1go4/F5g8TPXAcYrmH2oYGUwN7ME7w9oENhFwoSEURFq+iKrtCW8+fBKOdyA1ith2IKGk8aedQSfOQS5SqXD8NVFgcvGMwzfQIT7eFQxOESJEvURchLsAkLKHuqDoU6jVhXQu3j68Bn+TOf93J1epJSVvfgF3Jv+LRHJ6O3T6XgEHFA/UgjsDuYAAAAASUVORK5CYII="},3987:function(t,e,a){"use strict";varr=a("dd39"),o=a.n(r);o.a},"3ca3":function(t,e,a){"use strict";varr=a("6547").charAt,o=a("69f3"),i=a("7dd0"),s="String Iterator",n=o.set,l=o.getterFor(s);i(String,"String",(function(t){n(this,{type:s,string:String(t),index:0})}),(function(){vart,e=l(this),a=e.string,o=e.index;returno>=a.length?{value:void0,done:!0}:(t=r(a,o),e.index+=t.length,{value:t,done:!1})}))},4160:function(t,e,a){"use strict";varr=a("23e7"),o=a("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"479c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAA8CAMAAADFTsOWAAAAYFBMVEVHcEzuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0z////1k5Txb3D829v3q6v2n6Dze3zvV1jwY2T5w8P6z8/95+f4t7f+8/P0h4j5fbwNAAAAEHRSTlMAMNCgQIBgEPDAkLAgcFDgj+L9LQAAAiJJREFUSMe9lm3bczAMhs1bmXtboq139v//5ZOiFLXy5cmHcdgpkitpWs87MRZ7l41FCVyG3x+Ay/QT4DLNUrhOMx9u0BncoCO4QT8WGB5uOl3p0AmHcIdO79B/BgxvF/0y6cjwEj0ttG/SC8CoE1JLGU14AR4fsNLhhk5mODmpVbSh4W/83uesssGWjk0P4U+1yTIzlZcZ8VESMmZompmLZWyhHawUz44tGcyF29MJ85JtFnMikY2mp9sstMqplYbHXtBZCTvt7/smXDsOflpirNrASas82Zq/i6bcYiMsB015Boa4Lvpl9EbgpDOTiF30x+lvY/+JrrFUl6Y3/q74aPWR5pirS4/Tu0JZi6OJA/39YgHkp0BJv1A1LbZNPrpuhO6URe+hQSxQGwfIsZq/MAhdel3LCiViJ1Hmo9GTtqWnUpkQenrpkpSYk+tmin1Kui2+5fhq25VzE+qxmiNlyfOV7lV2S2R69czLo++UJivNEXMpuKSbEorRt+8tLSvllm7FSGPBsSnwq1c9Swy9V7quFQ15pyQv9XpZJ92WBhhpPlD0XbVOf+38QMuGFBUlciFq7XqZdRPdF8pUY1AEA0qSlldiKJdZNddT0eUsmPoCac2rusOB4pDVujlMsVQNtzRpL/ma4ma3+DF5Ntv4+w5M8y25AVMw/insW04T7HkCP5n9AJHaht/54SDMdmzw+yDB4kAn4Acxu3QSC0O7z38wdWzt572XagAAAABJRU5ErkJggg=="},"4de4":function(t,e,a){"use strict";varr=a("23e7"),o=a("b727").filter,i=a("1dde"),s=a("ae40"),n=i("filter"),l=s("filter");r({target:"Array",proto:!0,forced:!n||!l},{filter:function(t){returno(this,t,arguments.length>1?arguments[1]:void0)}})},"4df4":function(t,e,a){"use strict";varr=a("0366"),o=a("7b0b"),i=a("9bdd"),s=a("e95a"),n=a("50c4"),l=a("8418"),c=a("35a1");t.exports=function(t){vare,a,d,u,m,f,p=o(t),g="function"==typeofthis?this:Array,h=arguments.length,Q=h>1?arguments[1]:void0,V=void0!==Q,A=c(p),b=0;if(V&&(Q=r(Q,h>2?arguments[2]:void0,2)),void0==A||g==Array&&s(A))for(e=n(p.length),a=newg(e);e>b;b++)f=V?Q(p[b],b):p[b],l(a,b,f);elsefor(u=A.call(p),m=u.next,a=newg;!(d=m.call(u)).done;b++)f=V?i(u,Q,[d.value,b],!0):d.value,l(a,b,f);returna.length=b,a}},"4e6d":function(t,e,a){"use strict";varr=a("a820"),o=a.n(r);o.a},5227:function(t,e,a){"use strict";varr=a("c465"),o=a.n(r);o.a},"6f3f":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAMAAACeyVWkAAAC7lBMVEVHcEzWeUXMWBflqov29+7NXSD57ufYhoK4KSG4KSHot5bah1DNXRbaiF3swavNXhb249rMWhf18tft0lH67+f07bnovCTy3mi7JyHSeW7UeCzIV0zw1jLy57rLVhf48+jgp2f+/v3x5dvjrRzpubf3+O/x2dXVgRT4+vPtyxv18uLiqabnxrrrvqbMZFnIUk3v2rPcoZbty8m5LSO6Myny58LdmG/z7OK/Ni718s/fnxvs0pq7JyHy6N7gsKPty8nv1Uu7JyHcnJDRcBPks4z9/vz07uTGU028Ny3iqabanZHtycXRf3PcmCz25eTy5cXy49zHXVLhqmnu2Jbx48++NS3uy8novBW8OC/ty8m4KSH07uX3+fH29u3Xh4L18+Xeo5vnwrfx47Dal4zWfXnUfnnUiHy9Lyncm5Dx5tvIUk3IUk27JyHtzUfTfXK7JyHbjovFTkP03Nu8LibAOzLt18z3+fHdnpm4KSH29+7z6KvVh3q4KSHqz8O5LiT15+PWjYH19OvalYrNbGPGU0329N7epp26MSnw1NL36ejBST7gsKTNaWPfqqDblJD29ey8Ny24KSHGU03Ufnm4KSH03t3MbmPCSULYloq4KSH4+/O7JyG4KSHhphHdmhDpwRTbkg/v0hThpRHQahPUehHQbRLltBPZixDVfhHrxRTYiBDSdRHy3RPuzxTuzhTy3BTdmBDajw/UexHx2RTtzBTmtRPblBDfoRDenBDjrhLksBLksRLTdxHYihDjrRLWgRHYhxDXhhDnuRPNXhbmtxPNYBbQbBLScxHqxBTpvhTSchHPZRTUfBHNXRbQaxLOZBTnuhTPaRPtzRTw1xTtyxTw1hXTeRH05hHy3hPQaxP3+e3dmRD15xHclxDXhBDhpxHlsxPfohH05BLx2hT05RL3+ezgoxHkrxLZjBDenhDNXxbXhxDovBTSdBHv0xXiqRLsyBTPZxTclhDgohHpvxTWgxDrxxTjrBLs0Y/hsqVE6QP0AAAAmnRSTlMAWe0z/ukGa/v0LVVwiz9sFW39/AP8/fv6/OP9+/34dvwM/P41/iv92v79Uf1E/Lj86iz+/v3s/f79/f37/f0m/P38/vwd/arcTPw0/P0N/Zn8/P79/ib+/h/v/f7+e/70uPv8fnz81vn8sLrl+/zbb/wX/v37/YPl/Pz73/zhKfz+/Ly6/PznHQT9/Zj+Mf39cVk6eAr8X/p0OFSI5QAAAZ1JREFUGBkFwWNgFlAAhtEnbsu2bdu2bdt2rdqyXe+9n2Z72bZt2+5f5wAAvrP9Fs1Z4D+oLwAA0H7ozFmau3BxH+vdujEAgFcDY2YsXSL172CtT3kA8DLGGDN9/gBJjapb77YAJfIYY+o0ayVJUoUatt9KoLIxJn8xSZIktbN2LfRqakze1JIk3X8lDVxtfbYxwphKJSUpZ+4C0WXrSmus3cJ407OhpGzZY25ExX5uIm3YaHcw2QyXVDBXuOfuw5eJSfOk7XYXE8xYqWbxk+GeqDvPE5MmSjvtVkZPlTrXexLiun4r9oXnd+9lWmc3MW6SBnf8/mzf1bM3o2O+/kwepn92M1PGqNuveKdj//FzLtfH5D/dtdyuZ9qQHs0TPrj3Bhw+EPL0zZcffzVqxSro0uLbp7AIt3NPgMPx+l1cfXUdCbSs9f5eZNjR+N1xzgeP3G+r1G7TCaBioVOB54OOHDsUGhrxuHS5qtUAIFOaSxeCzxwMuphwO7JImVIAAFkypjxx5drl4NOB+QoXBQAA0qZKkTVD5vTpcgDAf6ctxDnJ3j6+AAAAAElFTkSuQmCC"},"6fb9":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAARBAMAAADwJOuSAAAAKlBMVEXy8vJHcEzy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vIaPDjPAAAADXRSTlOAAEDAIPAQULBwYDDQn6XPTgAAAFFJREFUCNdjEGIAARYBhtq7IHDVgcF0s6Gg4IW1DAzGwoaC0y4Igxki4RDGIaUiMEMCqPYmiCGmpKSkCGIIggCpjNaNIAbQLl2Y7SJKIKAmAABrOSAIX8UWDAAAAABJRU5ErkJggg=="},7039:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAMAAADarb8dAAAA/1BMVEVHcExQhNVQf9VQitVQpNVQmtVQitVQWNVQpNVQj9VQhNVQj9VQoNVQlNVQedVQf9VQlNVQj9VQlNVQedVQitVQhNVQbtVQbtVQedVQitVQf9VQf9VQedVQj9VQedVQf9VQdNVQhNVQitVQdNVQbtVQdNVQj9VQdNVQhNVQaNVQaNVQbtVQmtVQpNVQdNVQX9VQaNVQlNVQaNVQbtVQpNVQWNVQXdVQaNVQpNVQn9VQpNVQWNVQWNVQaNVQY9VQXdVQpNVQn9VQY9VQXdVQmtVQlNVQaNVQitVQhNVQedVQf9VQdNVQbtVQj9VQi9VQgNVQltVQddVQatVQoNVQX9VtKWpYAAAAQHRSTlMAwMDAMMBAwEDwQEDwoEBA8MCQwNDw0BAQINCgoGDQEEAQcBCgoDDQcNCgUNCAwKDwwFDAoFDwQGDAIBCwwMCwkeRAywAAAIRJREFUCNdjYDBxZNUNDvDzDwwKMXcyM2VgcXDUYeEBC+gbOTmzM3A4OLrwcrNx8fMpaBvABFx93T28PL193AgJiGnCBThBAuriWjABIVmggJyyClyLgJqSh5SEKpIZnJIa8jIohoooSqPZIorbHVaoAjYMDBaWrIaCzIxMwnrGtnb21gDnAzIe2Mjf1QAAAABJRU5ErkJggg=="},"746f":function(t,e,a){varr=a("428f"),o=a("5135"),i=a("e538"),s=a("9bf2").f;t.exports=function(t){vare=r.Symbol||(r.Symbol={});o(e,t)||s(e,t,{value:i.f(t)})}},"7a4f":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAPCAMAAAA1b9QjAAABRFBMVEVHcExQpNVQWNVQpNVQpNVQpNVQpNVQpNVQpNVQpNVQmNVQatVQgdVQatVQgdVQmtVQZ9VQlNVQotVQXNVQndVQjtVQXNVQYNVQYtVQcNVQadVQg9VQotVQndVQitVQkNVQdtVQltVQfdVQbtVQh9VQkNVQnNVQnNVQhdVQhdVQgdVQWtVQZtVQc9VQpNVQYtVQedVQedVQYNVQetVQdNVQZ9VQedVQX9VQbtVQpNVQpNVQgNVQn9VQhtVQX9VQmdVQZtVQjdVQmdVQjdVQgNVQc9VQbNVQk9VQk9VQedVQhtVQkNVQoNVQmtVQlNVQjtVQitVQdtVQcNVQg9VQadVQfdVQltVQh9VQbtVQgdVQdNVQetVQbNVQc9VQn9VQedVQmdVQgNVQjdVQhtVQk9VQmNVQYtVQotVQndVQnNVQZ9VQZtWZaPAiAAAAS3RSTlMAMBDwgJAgENBwYBDwMJCQYMAQENDAYPDwwDDAwMDAwMDAwGDAoBAw8NDAMKBAYBBQ0MDAwMBA0MBQQEBAQIBAgEBQgICAgIBAgIDOauszAAAAoElEQVQY02NgYFVnYGCVkVWUl5NWUpCUYmBgydRg4EzPCPMOCA4NDAqREGZQ01RmEBKBCaSJMZAJ2Dl8fP38wyOjoyIEgBwuoF1wgSxxBs5UHm4GBn5BURUtYxMLUyNtBgY+XiKNZgNhKxt7D0dbazNdIIeRWRWI4xJSkpIT42NjdBgY9LwNGSzhAtnmTAwMBvoMDE7uzl4unq5uDnZMDAAdAB/uqAWpEgAAAABJRU5ErkJggg=="},"83d8":function(t,e,a){"use strict";a.r(e);varr=function(){vart=this,e=t.$createElement,r=t._self._c||e;returnr("div",{staticClass:"authorityManage"},[r("div",{staticClass:"authorityHeader"},[r("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:t.addAuthority}},[t._v("新增")])],1),r("div",[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.authorityData}},[r("el-table-column",{attrs:{prop:"name",align:"center",label:"权限名称"}}),r("el-table-column",{attrs:{prop:"description",align:"center",label:"权限描述"}}),r("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{size:"small"},on:{click:function(a){returnt.editAuthority(e.row)}}},[t._v("编辑"),r("i",{staticClass:"el-icon-edit-outline"})]),r("el-button",{staticStyle:{background:"#EE4B4C"},attrs:{size:"small"},on:{click:function(a){returnt.deleteAuthority(e.row)}}},[t._v("删除"),r("i",{staticClass:"el-icon-delete"})])]}}])})],1)],1),r("div",[r("el-dialog",{attrs:{title:"权限","show-close":!1,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"lock-scroll":!0,visible:t.dialogAuthorityVisible},on:{"update:visible":function(e){t.dialogAuthorityVisible=e}}},[r("div",{staticClass:"header-title",attrs:{slot:"title"},slot:"title"},[r("span",{staticClass:"dialogHeader"},[t._v(t._s(t.dialogName))]),r("img",{staticClass:"dialogHeaderClose",attrs:{src:a("286e")},on:{click:function(e){returnt.closeAuthorityDialog("authorityForm")}}})]),r("div",{staticClass:"formAuthority"},[r("el-form",{ref:"authorityForm",attrs:{rules:t.rules,model:t.authorityForm,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"权限名称",prop:"authorityName"}},[r("el-input",{model:{value:t.authorityForm.name,callback:function(e){t.$set(t.authorityForm,"name",e)},expression:"authorityForm.name"}})],1),r("el-form-item",{attrs:{label:"权限描述",prop:"authorityDes"}},[r("el-input",{attrs:{rows:"12",type:"textarea"},model:{value:t.authorityForm.description,callback:function(e){t.$set(t.authorityForm,"description",e)},expression:"authorityForm.description"}})],1)],1),r("div",{staticClass:"dialogBtns"},[r("el-button",{staticClass:"mrgt",attrs:{type:"primary"},on:{click:function(e){returnt.submitAuthorityDialog("authorityForm")}}},[t._v("确定")])],1)],1)])],1)])},o=[],i=(a("a4d3"),a("e01a"),a("b0c0"),{name:"AuthorityManage",components:{},data:function(){return{authorityData:[],dialogName:"新增权限",dialogAuthorityVisible:!1,authorityForm:{name:"",description:""},rules:{name:[{required:!0,message:"请输入权限名称",trigger:"blur"}],description:[{required:!0,message:"请输入权限描述",trigger:"blur"}]}}},computed:{},watch:{},methods:{getAuthority:function(){vart=this;this.$axios.putAuthority().then((function(e){console.log(e),200===e.request.status&&(t.authorityData=e.data)}))},addAuthority:function(){this.dialogName="新增权限",this.dialogAuthorityVisible=!0,this.authorityForm.name="",this.authorityForm.description="",this.authorityForm.id=null},editAuthority:function(t){this.dialogName="修改权限",this.dialogAuthorityVisible=!0,console.log(t),this.authorityForm=t},closeAuthorityDialog:function(){this.authorityForm.name="",this.authorityForm.description="",this.dialogAuthorityVisible=!1,this.getAuthority()},submitAuthorityDialog:function(t){vare=this;this.$refs[t].validate((function(t){if(!t)returnconsole.log("error submit!!"),!1;"新增权限"===e.dialogName?e.$axios.postAddAuthority(e.authorityForm).then((function(t){console.log(t),200===t.request.status&&(e.$message({message:"新增权限成功!",type:"success"}),e.closeAuthorityDialog())})):(console.log(e.authorityForm),e.$axios.postAddAuthority(e.authorityForm).then((function(t){console.log(t),200===t.request.status&&(e.$message({message:"修改权限成功!",type:"success"}),e.closeAuthorityDialog())})))}))},deleteAuthority:function(t){vare=this;console.log(t),this.$axios.deleteAuthority(t.id).then((function(t){console.log(t),200===t.request.status&&(e.$message({message:"删除权限成功!",type:"success"}),e.closeAuthorityDialog())}))}},created:function(){},mounted:function(){this.getAuthority()},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}}),s=i,n=(a("2945"),a("2877")),l=Object(n["a"])(s,r,o,!1,null,"39cd3678",null);e["default"]=l.exports},"86c3":function(t,e,a){},a4d3:function(t,e,a){"use strict";varr=a("23e7"),o=a("da84"),i=a("d066"),s=a("c430"),n=a("83ab"),l=a("4930"),c=a("fdbf"),d=a("d039"),u=a("5135"),m=a("e8b5"),f=a("861d"),p=a("825a"),g=a("7b0b"),h=a("fc6a"),Q=a("c04e"),V=a("5c6c"),A=a("7c73"),b=a("df75"),v=a("241c"),y=a("057f"),D=a("7418"),N=a("06cf"),w=a("9bf2"),S=a("d1e7"),C=a("9112"),F=a("6eeb"),k=a("5692"),x=a("f772"),B=a("d012"),E=a("90e3"),O=a("b622"),M=a("e538"),L=a("746f"),T=a("d44e"),R=a("69f3"),U=a("b727").forEach,H=x("hidden"),I="Symbol",J="prototype",W=O("toPrimitive"),P=R.set,z=R.getterFor(I),q=Object[J],j=o.Symbol,Y=i("JSON","stringify"),X=N.f,_=w.f,G=y.f,$=S.f,Z=k("symbols"),K=k("op-symbols"),tt=k("string-to-symbol-registry"),et=k("symbol-to-string-registry"),at=k("wks"),rt=o.QObject,ot=!rt||!rt[J]||!rt[J].findChild,it=n&&d((function(){return7!=A(_({},"a",{get:function(){return_(this,"a",{value:7}).a}})).a}))?function(t,e,a){varr=X(q,e);r&&deleteq[e],_(t,e,a),r&&t!==q&&_(q,e,r)}:_,st=function(t,e){vara=Z[t]=A(j[J]);returnP(a,{type:I,tag:t,description:e}),n||(a.description=e),a},nt=c?function(t){return"symbol"==typeoft}:function(t){returnObject(t)instanceofj},lt=function(t,e,a){t===q&<(K,e,a),p(t);varr=Q(e,!0);returnp(a),u(Z,r)?(a.enumerable?(u(t,H)&&t[H][r]&&(t[H][r]=!1),a=A(a,{enumerable:V(0,!1)})):(u(t,H)||_(t,H,V(1,{})),t[H][r]=!0),it(t,r,a)):_(t,r,a)},ct=function(t,e){p(t);vara=h(e),r=b(a).concat(pt(a));returnU(r,(function(e){n&&!ut.call(a,e)||lt(t,e,a[e])})),t},dt=function(t,e){returnvoid0===e?A(t):ct(A(t),e)},ut=function(t){vare=Q(t,!0),a=$.call(this,e);return!(this===q&&u(Z,e)&&!u(K,e))&&(!(a||!u(this,e)||!u(Z,e)||u(this,H)&&this[H][e])||a)},mt=function(t,e){vara=h(t),r=Q(e,!0);if(a!==q||!u(Z,r)||u(K,r)){varo=X(a,r);return!o||!u(Z,r)||u(a,H)&&a[H][r]||(o.enumerable=!0),o}},ft=function(t){vare=G(h(t)),a=[];returnU(e,(function(t){u(Z,t)||u(B,t)||a.push(t)})),a},pt=function(t){vare=t===q,a=G(e?K:h(t)),r=[];returnU(a,(function(t){!u(Z,t)||e&&!u(q,t)||r.push(Z[t])})),r};if(l||(j=function(){if(thisinstanceofj)throwTypeError("Symbol is not a constructor");vart=arguments.length&&void0!==arguments[0]?String(arguments[0]):void0,e=E(t),a=function(t){this===q&&a.call(K,t),u(this,H)&&u(this[H],e)&&(this[H][e]=!1),it(this,e,V(1,t))};returnn&&ot&&it(q,e,{configurable:!0,set:a}),st(e,t)},F(j[J],"toString",(function(){returnz(this).tag})),F(j,"withoutSetter",(function(t){returnst(E(t),t)})),S.f=ut,w.f=lt,N.f=mt,v.f=y.f=ft,D.f=pt,M.f=function(t){returnst(O(t),t)},n&&(_(j[J],"description",{configurable:!0,get:function(){returnz(this).description}}),s||F(q,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:j}),U(b(at),(function(t){L(t)})),r({target:I,stat:!0,forced:!l},{for:function(t){vare=String(t);if(u(tt,e))returntt[e];vara=j(e);returntt[e]=a,et[a]=e,a},keyFor:function(t){if(!nt(t))throwTypeError(t+" is not a symbol");if(u(et,t))returnet[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!n},{create:dt,defineProperty:lt,defineProperties:ct,getOwnPropertyDescriptor:mt}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ft,getOwnPropertySymbols:pt}),r({target:"Object",stat:!0,forced:d((function(){D.f(1)}))},{getOwnPropertySymbols:function(t){returnD.f(g(t))}}),Y){vargt=!l||d((function(){vart=j();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(Object(t))}));r({target:"JSON",stat:!0,forced:gt},{stringify:function(t,e,a){varr,o=[t],i=1;while(arguments.length>i)o.push(arguments[i++]);if(r=e,(f(e)||void0!==t)&&!nt(t))returnm(e)||(e=function(t,e){if("function"==typeofr&&(e=r.call(this,t,e)),!nt(e))returne}),o[1]=e,Y.apply(null,o)}})}j[J][W]||C(j[J],W,j[J].valueOf),T(j,I),B[H]=!0},a630:function(t,e,a){varr=a("23e7"),o=a("4df4"),i=a("1c7e"),s=!i((function(t){Array.from(t)}));r({target:"Array",stat:!0,forced:s},{from:o})},a820:function(t,e,a){},b0e7:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAARCAMAAADjcdz2AAAAllBMVEVHcExQg9VQeNVQjtVQk9VQiNVQftVQpNVQV9VQftVQc9VQk9VQotVQpNVQndVQmNVQXdVQYtVQk9VQg9VQbdVQg9VQmNVQk9VQmNVQV9VQbdVQaNVQbdVQaNVQbdVQbdVQaNVQbdVQV9VQaNVQiNVQjtVQeNVQc9VQmNVQaNVQndVQYtVQotVQXdVQg9VQftVQk9VQbdUHWSHZAAAAJHRSTlMAQEBAoEBAgMDgQEAwUEBAMEDAwLDgcIAgkMCAoKAwgDBAYEDHjI/0AAAAZ0lEQVQY02NgYGCQ4GYAAzkFCM3ALw6h5aXBFA+fGAszKyMbE5eMrKAAAwOvjpaGgaqKnr6auqGmtq4kAzuqAAeRAiyqKsKcauoiJGjBEBBSVREFmiFFrhloflEC+ZafG+JbRWWgbwF2fiBSjG5c0wAAAABJRU5ErkJggg=="},b189:function(t,e,a){},c437:function(t,e,a){"use strict";varr=a("166c"),o=a.n(r);o.a},c465:function(t,e,a){},c4fb:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAA6CAMAAAATFyCLAAAAYFBMVEVHcEw8xlw8xlw8xlw8xlw8xlw8xlw8xlw8xlw8xlw8xlw8xlw8xlw8xlw8xlw8xlw8xlzY9N7///++7Mny+/Sk5LOX4aiK3Z1j0X3L8NR92ZKx6L7l9+lWznJw1YdJymcOLx4CAAAAEHRSTlMAEDBQQOBggMDw0JCgILBwRPUFiQAAAd9JREFUSMeVllmWgyAQRUXFAU1SIpg4JL3/XbYoQqng8D5M4FygeBRDEHiUsOCyIgpwlSVPgMt0mMN1WsNwC75EkwW+RD/hBh3BHZpampzCiYUhPqXZHfqBYIjwdFxNX5hObXwUFawyTBfLgGzV1ArDkOG1ddDxip4NJ7On5bF/iynlaiCsdE0X2KW1d6ifRXSsKhzuhyzdWTITdOvQNO3SRWcBWQ1kUpq5aIjjfSJkS8btaIoSuMQuRy4acJYRtNyFk97lTWhncUxP8yxsgh7TU7DUJtEJXeINEJ/ROd7klJzQY38ok8oN3TcAogZoG13xsnRXIXWqRvJO0Q3/GQ9N3nW1UsVb9TPSnZRcSD70fJDyp+nN6A3/6H81F0ZcahrF/e5WdPV9a/256KrCdN9KrtWIxkcP4yTbqSzFXM+tJ/EBbfo2fhNfJAAqbl6puG3OUh8tlfFcqO97Tna8q7d0LeRo+aA+0myB0EuPxWnlQdOhvQ4+dS2EWcsa0U0/0wydZ59qpcnwma5E+1VEsrtrdhr67YGSwBVFzkPeI3vIPvJTOCfOO9W7yfzn/E7J4bVwDI+4P/Y8cbxLmAdmofMmTl3d56n34i63fF48jl4+ydM2yJ/J+asjjFKlyBHuP1iIZvWYZe29AAAAAElFTkSuQmCC"},c504:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAMAAADarb8dAAAA8FBMVEVQVtVQidVQftVQg9VQZ9VQpNVQZ9VQpNVHcExQidVQidVQg9VQjtVQk9VQftVQbdVQZ9VQjtVQeNVQk9VQg9VQjtVQbdVQk9VQjtVQeNVQftVQg9VQg9VQctVQeNVQbdVQctVQidVQftVQjtVQftVQctVQeNVQeNVQk9VQctVQctVQk9VQbdVQmdVQpNVQXNVQbdVQntVQpNVQmdVQo9VQpNVQo9VQmdVQXNVQYtVQVtVQZ9VQXNVQVtVQXNVQVtVQYtVQntVQo9VQmdVQXNVQidVQk9VQftVQZ9VQjtVQeNVQg9VQctVQbdVQc9VQaNVXtGtBAAAAQHRSTlOAwMDA8GCAgACgQEBA8ECw0MDA4PDQEGAQEKAQcBCg0KAgEJDQ0EDQcEDAwFCQwGDAwFDAkBDQgMDAEMCgcOAgB7afpgAAAIJJREFUCNdjMDVzNNdzdHN19/O3YHOws2dgdXLUZYUI6LM5uDAwsDs5OmvwcHHzqWnqsMAE3Dxdvd29fHw9CAnww7XwggUUxARgAuLKQAE5WXm4FmEJTm8pSVUkM0QVZZTUUQzllFZBs0UEtzuMUAVsGThMDI21BRmZmYS0DKwtbawAhmkxb4CEKiAAAAAASUVORK5CYII="},c911:function(t,e,a){"use strict";varr=a("86c3"),o=a.n(r);o.a},c975:function(t,e,a){"use strict";varr=a("23e7"),o=a("4d64").indexOf,i=a("a640"),s=a("ae40"),n=[].indexOf,l=!!n&&1/[1].indexOf(1,-0)<0,c=i("indexOf"),d=s("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!c||!d},{indexOf:function(t){returnl?n.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void0)}})},d28b:function(t,e,a){varr=a("746f");r("iterator")},d504:function(t,e,a){"use strict";a.r(e);varr=function(){vart=this,e=t.$createElement,a=t._self._c||e;returna("div",{staticClass:"indexPage"},[a("el-container",{staticStyle:{height:"100%"},attrs:{direction:"vertical"}},[a("el-header",{staticClass:"headerBg"},[a("header-com")],1),a("el-container",{staticClass:"mainBg"},[a("el-aside",{staticClass:"aside-left"},[a("breadcrumb")],1),a("el-main",{staticClass:"main-Div"},[a("div",{staticStyle:{height:"96%"}},[a("router-view")],1)])],1)],1)],1)},o=[],i=a("a9e5"),s=function(){vart=this,e=t.$createElement,r=t._self._c||e;returnr("div",{staticClass:"mainBreadcrumb"},[r("div",{staticClass:"menuDiv"},[r("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"unique-opened":!0,"default-active":t.menuActive,"text-color":"#19152c","active-text-color":"#5059d5"},on:{open:t.handleOpen,close:t.handleClose,select:t.handleSelect}},["root"!==t.authority.username&&"HR"!==t.authority.username?r("el-submenu",{attrs:{index:"1"}},[r("template",{slot:"title"},[r("img",{staticClass:"taskImg",attrs:{src:a("c504")}}),r("span",[t._v("任务管理")])]),r("el-menu-item-group",[r("el-menu-item",{attrs:{index:"viewTask"}},[r("i",{staticClass:"iBlockBg",class:{iBlockBgActive:"viewTask"===t.menuActive}}),t._v("查看任务")]),t.showAddTask?r("el-menu-item",{attrs:{index:"addTask"}},[r("i",{staticClass:"iBlockBg",class:{iBlockBgActive:"addTask"===t.menuActive}}),t._v("新建任务")]):t._e(),t.showDepartment?r("el-menu-item",{attrs:{index:"departmentTask"}},[r("i",{staticClass:"iBlockBg",class:{iBlockBgActive:"departmentTask"===t.menuActive}}),t._v("部门任务")]):t._e()],1)],2):t._e(),"root"!==t.authority.username&&"HR"!==t.authority.username?r("el-submenu",{attrs:{index:"2"}},[r("template",{slot:"title"},[r("img",{staticClass:"personImg",attrs:{src:a("fbc5")}}),r("span",[t._v("人员管理")])]),r("el-menu-item-group",[r("el-menu-item",{attrs:{index:"personDetails"}},[r("i",{staticClass:"iBlockBg",class:{iBlockBgActive:"personDetails"===t.menuActive}}),t._v("个人信息")]),t.showListPerson?r("el-menu-item",{attrs:{index:"personList"}},[r("i",{staticClass:"iBlockBg",class:{iBlockBgActive:"personList"===t.menuActive}}),t._v("人员列表")]):t._e()],1)],2):t._e(),"root"!==t.authority.username&&"HR"!==t.authority.username?r("el-submenu",{attrs:{index:"3"}},[r("template",{slot:"title"},[r("img",{staticClass:"attImg",attrs:{src:a("b0e7")}}),r("span",[t._v("考勤管理")])]),r("el-menu-item-group",[r("el-menu-item",{attrs:{index:"attendance"}},[r("i",{staticClass:"iBlockBg",class:{iBlockBgActive:"attendance"===t.menuActive}}),t._v("考勤统计")]),r("el-menu-item",{attrs:{index:"leaveApproval"}},[r("i",{staticClass:"iBlockBg",class:{iBlockBgActive:"leaveApproval"===t.menuActive}}),t._v("请假审批")]),r("el-menu-item",{attrs:{index:"overtimeApproval"}},[r("i",{staticClass:"iBlockBg",class:{iBlockBgActive:"overtimeApproval"===t.menuActive}}),t._v("加班审批")])],1)],2):t._e(),r("div",{staticClass:"rootDivs"},["root"===t.authority.username||"HR"===t.authority.username?r("el-menu-item",{staticClass:"rootMenuItem",attrs:{index:"consumerManage"}},[r("img",{staticClass:"consumerImg",attrs:{src:a("28f6")}}),r("span",{attrs:{slot:"title"},slot:"title"},[t._v("用户管理")])]):t._e(),"root"===t.authority.username?r("el-menu-item",{staticClass:"rootMenuItem",attrs:{index:"departmentManage"}},[r("img",{staticClass:"departmentImg",attrs:{src:a("7039")}}),r("span",{attrs:{slot:"title"},slot:"title"},[t._v("部门管理")])]):t._e(),"root"===t.authority.username?r("el-menu-item",{staticClass:"rootMenuItem",attrs:{index:"authorityManage"}},[r("img",{staticClass:"authorityImg",attrs:{src:a("33ee")}}),r("span",{attrs:{slot:"title"},slot:"title"},[t._v("权限管理")])]):t._e(),"root"===t.authority.username?r("el-menu-item",{staticClass:"rootMenuItem",attrs:{index:"roleManage"}},[r("img",{staticClass:"roleImg",attrs:{src:a("1f37")}}),r("span",{attrs:{slot:"title"},slot:"title"},[t._v("角色管理")])]):t._e(),"root"===t.authority.username||"HR"===t.authority.username?r("el-menu-item",{staticClass:"rootMenuItem",attrs:{index:"paramsSetting"}},[r("img",{staticClass:"paramsImg",attrs:{src:a("7a4f")}}),r("span",{attrs:{slot:"title"},slot:"title"},[t._v("参数配置")])]):t._e()],1)],1)],1)])},n=[],l=(a("c740"),a("b0c0"),{name:"mainBreadcrumb",components:{},data:function(){return{menuActive:"viewTask",authority:"",currentRouter:"",isDepartment:!1,currentPath:"",showAddTask:!1,showDepartment:!1,showListPerson:!1}},computed:{departmentValue:function(){returnthis.$store.state.department}},watch:{$route:function(t){console.log(t),"taskDetails"===t.name||"unpublishedTask"===t.name?this.menuActive="viewTask":this.menuActive=t.name,this.currentRouter=JSON.parse(JSON.stringify(t.name))},departmentValue:function(t,e){console.log(t,e),this.isDepartment=t.department,console.log(this.isDepartment)}},methods:{handleOpen:function(t,e){console.log(t,e)},handleClose:function(t,e){console.log(t,e)},handleSelect:function(t,e){console.log(t,e),this.menuActive=t,this.$router.push({name:t})}},created:function(){},mounted:function(){vart=JSON.parse(this.$Base64.decode(localStorage.getItem("login")));this.authority=t,"taskDetails"===this.$route.name?this.menuActive="viewTask":this.menuActive=this.$route.name,console.log(this.$route.name),this.currentRouter=JSON.parse(JSON.stringify(this.$route.name)),0===t.roles.length?(this.showAddTask=!1,this.showDepartment=!1,this.showListPerson=!1):t.roles.length>0&&(t.roles[0].authorities.findIndex((function(t){return"发布任务"===t.name}))>-1&&(this.showAddTask=!0),t.roles[0].authorities.findIndex((function(t){return"查看任务"===t.name}))>-1&&(this.showDepartment=!0),t.roles[0].authorities.findIndex((function(t){return"查看人员"===t.name}))>-1&&(this.showListPerson=!0))},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}}),c=l,d=(a("e9dc"),a("2877")),u=Object(d["a"])(c,s,n,!1,null,"ddb5a5d0",null),m=u.exports,f={name:"Index",components:{breadcrumb:m,headerCom:i["a"]},data:function(){return{}},computed:{},watch:{},methods:{},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=f,g=(a("fd40"),Object(d["a"])(p,r,o,!1,null,"5a1a5b36",null));e["default"]=g.exports},dd39:function(t,e,a){},dd89:function(t,e,a){"use strict";varr=a("0c1f"),o=a.n(r);o.a},ddb0:function(t,e,a){varr=a("da84"),o=a("fdbc"),i=a("e260"),s=a("9112"),n=a("b622"),l=n("iterator"),c=n("toStringTag"),d=i.values;for(varuino){varm=r[u],f=m&&m.prototype;if(f){if(f[l]!==d)try{s(f,l,d)}catch(g){f[l]=d}if(f[c]||s(f,c,u),o[u])for(varpini)if(f[p]!==i[p])try{s(f,p,i[p])}catch(g){f[p]=i[p]}}}},de4c:function(t,e,a){"use strict";a.r(e);varr=function(){vart=this,e=t.$createElement,r=t._self._c||e;returnr("div",{staticClass:"departmentManage"},[r("div",{staticStyle:{height:"100%"}},[r("el-row",{staticStyle:{height:"100%"},attrs:{gutter:30}},[r("el-col",{staticStyle:{height:"100%"},attrs:{span:8}},[r("div",{staticStyle:{height:"100%"}},[r("el-input",{attrs:{placeholder:"输入关键字进行过滤"},model:{value:t.filterText,callback:function(e){t.filterText=e},expression:"filterText"}}),r("div",{staticClass:"companyTitle"},[r("img",{attrs:{src:a("6f3f")}}),r("span",[t._v(t._s(this.companyData.name))]),r("el-button",{staticStyle:{"margin-left":"50px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:t.openDialog}},[t._v("添加部门")])],1),r("div",{staticStyle:{height:"84%","border-right":"1px solid #a7acea"}},[r("el-tree",{ref:"tree",staticClass:"filter-tree",attrs:{data:t.data,props:t.defaultProps,"default-expand-all":"","expand-on-click-node":!1,"filter-node-method":t.filterNode},on:{"node-click":t.handleNodeClick,"current-node-key":t.currentDepartment},scopedSlots:t._u([{key:"default",fn:function(e){varo=e.node,i=e.data;returnr("span",{staticStyle:{width:"100%",position:"relative"}},[r("span",{staticClass:"dpName"},[t._v(t._s(o.label))]),r("span",{staticStyle:{"text-align":"right","margin-right":"20px",position:"absolute",right:"0px",bottom:"-1px"}},[r("span",{staticClass:"addIcon",attrs:{title:"添加"},on:{click:function(e){returnt.append(i)}}},[r("img",{attrs:{src:a("ed94")}})]),r("span",{staticClass:"deleteIcon",attrs:{title:"删除"},on:{click:function(e){returnt.deleteDepartment(i)}}},[r("img",{attrs:{src:a("e982")}})])])])}}])})],1)],1)]),r("el-col",{attrs:{span:16}},[r("div",{staticStyle:{"text-align":"right"}},[r("el-button",{staticStyle:{"margin-left":"50px"},attrs:{type:"primary"},on:{click:function(e){returnt.editSubmitForm("departmentForm")}}},[r("span",{staticStyle:{"margin-right":"5px"}},[r("img",{staticClass:"btnImgDe",attrs:{src:a("6fb9")}})]),t._v("保存 ")])],1),r("div",{staticClass:"departmentContents"},[r("el-form",{ref:"departmentForm",staticClass:"demo-ruleForm",attrs:{model:t.departmentForm,rules:t.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[r("el-input",{staticStyle:{width:"60%"},model:{value:t.departmentForm.name,callback:function(e){t.$set(t.departmentForm,"name",e)},expression:"departmentForm.name"}})],1),r("el-form-item",{attrs:{label:"部门描述",prop:"description"}},[r("el-input",{attrs:{type:"textarea",rows:20},model:{value:t.departmentForm.description,callback:function(e){t.$set(t.departmentForm,"description",e)},expression:"departmentForm.description"}})],1)],1)],1)])],1)],1),r("add-dialog",{attrs:{showDepartmentDialog:t.showDepartmentDialog,currrentId:t.currentDepartment.id},on:{close:t.closeDialog}})],1)},o=[],i=(a("4de4"),a("c975"),a("b0c0"),function(){vart=this,e=t.$createElement,r=t._self._c||e;returnr("div",{staticClass:"departmentAddDialog"},[r("div",[r("el-dialog",{attrs:{title:"添加部门","show-close":!1,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"lock-scroll":!0,visible:t.dialogDepartmentAddVisible},on:{"update:visible":function(e){t.dialogDepartmentAddVisible=e}}},[r("div",{staticClass:"header-title",attrs:{slot:"title"},slot:"title"},[r("span",{staticClass:"dialogHeader"},[t._v("添加部门")]),r("img",{staticClass:"dialogHeaderClose",attrs:{src:a("286e")},on:{click:function(e){returnt.closeDepartmentDialog("departmentForm")}}})]),r("div",[r("div",{staticClass:"formDepart"},[r("el-form",{ref:"departmentForm",staticClass:"demo-ruleForm",attrs:{model:t.departmentForm,rules:t.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"部门名称",prop:"name",placeholder:"请输入部门名称"}},[r("el-input",{model:{value:t.departmentForm.name,callback:function(e){t.$set(t.departmentForm,"name",e)},expression:"departmentForm.name"}})],1),r("el-form-item",{attrs:{label:"部门描述",prop:"description"}},[r("el-input",{attrs:{type:"textarea",rows:12,placeholder:"请输入部门名称"},model:{value:t.departmentForm.description,callback:function(e){t.$set(t.departmentForm,"description",e)},expression:"departmentForm.description"}})],1)],1)],1),r("div",{staticClass:"dialogBtns"},[r("el-button",{staticClass:"mrgt",attrs:{type:"primary"},on:{click:function(e){returnt.addSubmit("departmentForm")}}},[t._v("确定")])],1)])])],1)])}),s=[],n={name:"departmentAddDialog",props:["showDepartmentDialog","currrentId"],components:{},data:function(){return{dialogDepartmentAddVisible:!1,departmentForm:{name:"",description:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"}],description:[{required:!0,message:"请填写部门描述",trigger:"blur"}]}}},computed:{},watch:{showDepartmentDialog:{immediate:!0,handler:function(t){this.dialogDepartmentAddVisible=t,console.log(this.currrentId)}}},methods:{closeDepartmentDialog:function(t){this.$refs[t].resetFields(),this.$emit("close",!1)},addSubmit:function(t){vare=this;this.$refs[t].validate((function(t){if(!t)returnconsole.log("error submit!!"),!1;console.log(e.departmentForm);vara=JSON.parse(JSON.stringify(e.departmentForm));a.parentId=e.currrentId,console.log(a),e.$axios.postAddDepartment(a).then((function(t){console.log(t),200===t.request.status&&(e.$message({message:"新增部门成功!",type:"success"}),e.closeDepartmentDialog("departmentForm"))}))}))}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},l=n,c=(a("5227"),a("2877")),d=Object(c["a"])(l,i,s,!1,null,"0e46fafa",null),u=d.exports,m={name:"departmentMAnage",components:{addDialog:u},data:function(){return{defaultProps:{children:"departments",label:"name"},filterText:"",data:[],departmentForm:{name:"",description:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"}],description:[{required:!0,message:"请输入部门描述",trigger:"blur"}]},companyData:"",showDetail:!1,currentDepartment:"",authorityLists:[],isShowDelete:!1,showDepartmentDialog:!1}},computed:{},watch:{filterText:function(t){this.$refs.tree.filter(t)}},methods:{openDialog:function(){this.showDepartmentDialog=!0},closeDialog:function(){this.showDepartmentDialog=!1,this.postDepartment()},filterNode:function(t,e){return!t||-1!==e.name.indexOf(t)},postDepartment:function(){vart=this;this.$axios.postDepartmentList().then((function(e){console.log(e),200===e.request.status&&(t.companyData=e.data[0],t.data=e.data[0].departments,e.data[0].departments.length>0?(t.currentDepartment=e.data[0].departments[0],t.handleNodeClick(e.data[0].departments[0])):(t.currentDepartment=e.data[0],t.handleNodeClick(e.data[0])),console.log(t.currentDepartment))}))},handleNodeClick:function(t){console.log(t),this.$refs["departmentForm"].resetFields(),this.showDetail=!0,this.isShowDelete=!0,this.departmentForm=JSON.parse(JSON.stringify(t)),this.currentDepartment=JSON.parse(JSON.stringify(t))},addDepartment:function(t){this.showDetail=!0,this.isShowDelete=!1;vare={name:"",description:""};this.departmentForm=e},submitForm:function(t){vare=this;this.$refs[t].validate((function(t){if(!t)returnconsole.log("error submit!!"),!1;console.log(e.departmentForm);vara=JSON.parse(JSON.stringify(e.departmentForm));a.parentId=e.currentDepartment.id,console.log(a),e.$axios.postAddDepartment(a).then((function(t){console.log(t),200===t.request.status&&(e.$message({message:"新增部门成功!",type:"success"}),e.postDepartment(),e.showDetail=!1)}))}))},editSubmitForm:function(t){vare=this;this.$refs[t].validate((function(t){if(!t)returnconsole.log("error submit!!"),!1;console.log(e.departmentForm),e.$axios.putDepartmentList(e.departmentForm).then((function(t){console.log(t),200===t.request.status&&(e.$message({message:"保存部门成功!",type:"success"}),e.postDepartment(),e.showDetail=!1)}))}))},deleteDepartment:function(t){vare=this;this.$axios.deleteDepartmentList(t.id).then((function(t){console.log(t),200===t.request.status&&(e.$message({message:"删除部门成功!",type:"success"}),e.postDepartment())}))},append:function(t){console.log(t),this.currentDepartment=t,this.showDepartmentDialog=!0},remove:function(t,e){console.log(t,e)}},created:function(){},mounted:function(){this.postDepartment()},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},f=m,p=(a("e90b"),Object(c["a"])(f,r,o,!1,null,"754a7c64",null));e["default"]=p.exports},e01a:function(t,e,a){"use strict";varr=a("23e7"),o=a("83ab"),i=a("da84"),s=a("5135"),n=a("861d"),l=a("9bf2").f,c=a("e893"),d=i.Symbol;if(o&&"function"==typeofd&&(!("description"ind.prototype)||void0!==d().description)){varu={},m=function(){vart=arguments.length<1||void0===arguments[0]?void0:String(arguments[0]),e=thisinstanceofm?newd(t):void0===t?d():d(t);return""===t&&(u[e]=!0),e};c(m,d);varf=m.prototype=d.prototype;f.constructor=m;varp=f.toString,g="Symbol(test)"==String(d("test")),h=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){vart=n(this)?this.valueOf():this,e=p.call(t);if(s(u,t))return"";vara=g?e.slice(7,-1):e.replace(h,"$1");return""===a?void0:a}}),r({global:!0,forced:!0},{Symbol:m})}},e538:function(t,e,a){varr=a("b622");e.f=r},e75a:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAA8CAMAAAAueXiVAAAAYFBMVEVHcEz8kgD8kgD8kgD8kgD8kgD8kgD8kgD8kgD8kgD8kgD8kgD8kgD8kgD8kgD8kgD8kgD////9xXf9qDP/+O79vmb+zIj+26r8mRH9r0T+05n8oSL+6cz/8N39tlX+4rtRtZpBAAAAEHRSTlMAYLDQwIAwEPBAoHAgkOBQDb7LCgAAAhhJREFUSMeVlomWgyAMRV0L2tEmuG/t///lgBUMFrecYy16weQRAp63Z+zpXTcWc7hOv3KA63gGcB1nIdzANX0RD+AOHsMd/GFoeFzAoxVPzukEbuHRLfyP0PA6xZ8Uj8kwcebCQ4obgsmkiFwTSmlDPHJw44mF84Xme5MWWzj8zV/Md+c4tXGfDpEcqy4toOFYa/HbN7dxYETawPJizqcNrZQPaN/V55cL58zjdiQ6mtiFy6d2JEbtyInDY6ur1sONhz85lKz5B4fG6VJOT/E5WLaqcIar+Hzi2gmugk2JyGf4k+ZJqvD2CA8sB6RfAwrTbMQWzwneVsrKab6pBwJFhYsNS9Kva18gsUJ2H2oUohfSetWe8YTghbZavRYINUApL6gMzggurwbaSaie3/YPTnzvihEl3mApqrl7p11z4UOPU6f+FB8c59FbIWr8CFER3Ohelka4bqoXZ+Sn+tWZiMxq0ZXG2vaLvxEn7A2ekZyBoZaGk/pdQu+wKesKe437m6IrXWpWpToclTI11gv+ty2jFj6O7SykDjWkRbpS8yeZ+fZW+KB1f3/xuRawpTbQHJD6L9P0qaAvEdtlAf0WUm1v7VbX1AXZHhiHK8aZa4s5Wkruyru7rr3L7nBGt/Yznts7vn+Cb/fYF78+ttkO3Ra6zh4s26EztnPccAkaHZwkkmBbt06OHcxPdUaHqc+uHfaSJHGS/3tGbPRrVHtmAAAAAElFTkSuQmCC"},e90b:function(t,e,a){"use strict";varr=a("1efb"),o=a.n(r);o.a},e982:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAARBAMAAAAmgTH3AAAAMFBMVEVHcEzuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0zuS0xznJc6AAAAD3RSTlMAQIDAELDQIJAw4FBwoPAUgTqWAAAAWklEQVQI12NgYHBSUlJyYAAC/f///x8AMRgFBQWBlKsxGJgyuK5PBtLrM4BKBAoYCvQFgAzJ3zzPwQzBT0wfSWeIXOFsADM2gCwGMtyAlv//BnQHSzDQrhAGAHezJaAUpiU/AAAAAElFTkSuQmCC"},e9dc:function(t,e,a){"use strict";varr=a("278d"),o=a.n(r);o.a},ed94:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEVHcExQWdVQWdVQWdVQWdVQWdVQWdVQWdVQWdVQWdVQWdVQWdXFsNyiAAAAC3RSTlMAQIAwoHAQwODwYEbyBQMAAABaSURBVAjXY2Du3g0CZQwckxmAgGsLg7QBiMEQzSANJIFsaRCDdTOUwbQRwmAU2SoMZmgDdQuAGEnqW1RR1SAYbApQBghIM1gvADM8GTi2CgKByBYG5mqwM9wAtIYX8ZvaPw8AAAAASUVORK5CYII="},f519:function(t,e,a){},fbc5:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABF1BMVEVHcExQmdVQVtVQmNVQpNVQpNVQmdVQpNVQodVQodVQj9VQhtVQpNVQodVQmNVQfNVQk9VQmtVQc9VQodVQj9VQjNVQadVQpNVQYNVQXtVQhNVQhtVQXNVQX9VQa9VQctVQVtVQYNVQctVQhtVQX9VQX9VQedVQXNVQmdVQXNVQfdVQh9VQVtVQfNVQX9VQmdVQX9VQddVQedVQctVQVtVQh9VQa9VQVtVQXtVQbtVQZtVQXtVQpNVQc9VQhtVQYNVQldVQYNVQotVQmdVQadVQhtVQhtVQj9VQfNVQc9VQmNVQodVQadVQjNVQhNVQk9VQfdVQddVQbtVQmtVQZtVQctVQa9VQedVQYNVQXtVQh9VQldVQmdWi9rCgAAAARnRSTlMAQDCQEDCAgDDQEEBQoOBAYODw8GCQgGCA4MCAkBBAECDw0HBwwECgoDDAUICAoLBAkOCAUMBQQNBg4DBwUCDAoBCw4MAfWUeRvwAAAK1JREFUGNNNzuUWgkAQBeDBxu7u7u7ONbAVUPT9n8PdAyrz735nd+4A4NEbLCAf5Rpt7O5/Nu0wbPdeyCYiJKsZEWJQQfEQBq0ED4UGsUk5dCjEpjAY5S/KZAktwgQWiK0S0JkJLGfDN2pIxc5AaYTrqLGUrS5/vtZbzV9CvU1+2E6H4/ly7Q+mAs/lQOW4iXDvQovnMuBhvvBsFnguiO/6QRHSYQAV/QVflDR8AN6IK59oKLWFAAAAAElFTkSuQmCC"},fd40:function(t,e,a){"use strict";varr=a("f519"),o=a.n(r);o.a},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}}]);