Commit 48af005b by xiaohai

build for test

parent f2905d3b
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.da0388f6d43a817894b1131d3bc7b92f.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.71609ce14695d34544c5.js></script><script type=text/javascript src=./static/js/vendor.fe488e39a0fa6de5fe13.js></script><script type=text/javascript src=./static/js/app.92f20d15ab366a4ab006.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.13d8d62c4bf3a41e86cf03937726db6b.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.61d6d19e7b8bcdfe39ae.js></script><script type=text/javascript src=./static/js/vendor.5f47d8b40a9019eb61d7.js></script><script type=text/javascript src=./static/js/app.bb57c2013d2573ee97f5.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.
webpackJsonp([17],{CbCS:function(e,t){},Xvo8:function(e,t){},fZsz:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("mvHQ"),i=r.n(n),a=r("3Xzz"),l=r("l46T"),o=r("Mk6G"),u={name:"limittextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(e){console.log(e)},toInput:function(e){console.log(e);var t="";"word"==this.getByType?(t=o.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=o.a.getZhLen(this.itemValue)):(t=o.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=o.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=o.a.getZhLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=o.a.getZhLen(this.inputValue)}},h={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"input-line-cell",style:{width:e.inputWidth+"px"}},[r("el-input",{style:{width:e.inputWidth+"px"},attrs:{placeholder:e.holder,type:"textarea",rows:3},on:{focus:function(t){e.inputFocus()}},nativeOn:{keyup:function(t){return r=t,e.toInput(r);var r}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),r("span",{staticClass:"tip"},[r("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var s=r("VU/8")(u,h,!1,function(e){r("CbCS")},"data-v-61f16316",null).exports,c=r("3E4D"),m=r("Ch4/"),d=r("PI0u"),f=r("P9l9"),g={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index",relocation:!0},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"新增管理员角色",path:""}],showFlag:!1,ruleForm:{roleId:"",roleName:"企业管理员",remark:"角色说明",leftChecked:[],left:[],rightChecked:[],right:[],leftCheckedApp:[],leftApp:[],rightCheckedApp:[],rightApp:[]},rules:{roleName:[{required:!0,message:"请填写角色名称",trigger:"change"}],remark:[{required:!0,message:"请填写角色说明",trigger:"change"}],leftChecked:[{required:!0,message:"请选择菜单权限",trigger:"change"}]}}},computed:{},methods:{submitForm:Object(d.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(console.log(e),!e)return!1;var r=[];t.ruleForm.left.forEach(function(e,t){e.check&&(r.push({rightId:e.rightId}),e.children&&e.children.length&&e.children.forEach(function(e,t){e.check&&r.push({rightId:e.rightId})}))}),console.log(t.ruleForm.left,r),t.postSave(r)})},500),postSave:function(e){var t=this,r={data:i()(e),roleId:t.ruleForm.roleId,roleName:t.ruleForm.roleName,remark:t.ruleForm.remark};Object(f.c)("/haoban-manage-web/save-role",r).then(function(e){var r=e.data;if(1==r.errorCode)return c.a.showmsg("操作成功","success"),void t.$router.push("/setChildAdmin");m.a.errorMsg(r)}).catch(function(e){console.log(e),t.$message.error({duration:1e3,message:e.message})})},getMenuList:function(){var e=this;Object(f.c)("/haoban-manage-web/menu-list",{}).then(function(t){var r=t.data;if(1==r.errorCode)return r.result?(e.ruleForm.left=e.treeData(r.result),e.ruleForm.left.forEach(function(e,t){e.key=e.rightId,e.label=e.rightName,e.check=!1,e.children&&e.children.length&&e.children.forEach(function(e,t){e.key=e.rightId,e.label=e.rightName,e.check=!1})}),e.ruleForm.right=e.ruleForm.left[0].children?e.ruleForm.left[0].children:[],void(e.ruleForm.roleId&&e.getRoleDetail(e.ruleForm.roleId))):void e.$message.error({message:"菜单列表为空"});m.a.errorMsg(r)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){return e.filter(function(t){var r=e.filter(function(e){return t.haobanMenuRightId==e.parentRightId});return r.length>0&&(t.children=r),-1==t.parentRightId})},getRoleDetail:function(e){var t=this,r={roleId:e};Object(f.c)("/haoban-manage-web/role-detail",r).then(function(e){var r=e.data;if(1!=r.errorCode)m.a.errorMsg(r);else{if(t.ruleForm.roleId=r.result.role.roleId,t.ruleForm.roleName=r.result.role.roleName,t.ruleForm.roleCode=r.result.role.roleCode,t.ruleForm.remark=r.result.role.remark,t.ruleForm.right.length){var n=t.ruleForm.right.map(function(e){return e.rightId}),i=[];r.result.menuRightList.forEach(function(e,t){n.includes(e.rightId)&&i.push(e.rightId)}),t.ruleForm.rightChecked=i}var a=t.treeData(r.result.menuRightList);t.ruleForm.leftChecked=a.map(function(e){return e.rightId});var l=r.result.menuRightList.map(function(e){return e.rightId});t.ruleForm.left.forEach(function(e,t){l.includes(e.rightId)?e.check=!0:e.check=!1,e.children&&e.children.length&&e.children.forEach(function(e,t){l.includes(e.rightId)?e.check=!0:e.check=!1})})}}).catch(function(e){console.log(e),t.$message.error({duration:1e3,message:e.message})})},leftChange:function(e,t){var r=this;r.ruleForm.leftChecked=e;var n=e.includes(t[0]);function i(){r.ruleForm.right=[],r.ruleForm.left.forEach(function(e,i){e.rightId.includes(t[0])&&(e.check=!!n,e.children&&e.children.length&&e.children.forEach(function(e,t){r.ruleForm.right.push(e)}))})}e.includes(t[0]),i(),r.ruleForm.rightChecked=r.ruleForm.right.map(function(e){if(!0===e.check)return e.rightId})},rightChange:function(e,t){console.log(e,t);var r=e.includes(t[0]);this.ruleForm.rightChecked=e,this.ruleForm.left.forEach(function(e,n){e.children&&e.children.length&&e.children.forEach(function(e,n){e.rightId.includes(t[0])&&(e.check=!!r)})})},leftChangeApp:function(e,t){console.log(e,t)},rightChangeApp:function(e,t){console.log(e,t)}},mounted:function(){console.log(this.$route.query),this.getMenuList(),this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId,this.navpath[3].name="管理员角色","show"===this.$route.query.type&&(this.showFlag=!0))},components:{navCrumb:a.a,limitInput:l.a,limitTextarea:s}},p={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.ruleForm.roleName,holder:"请输入角色名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"roleName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"角色说明",prop:"remark"}},[r("limitTextarea",{attrs:{inputWidth:500,inputValue:e.ruleForm.remark,holder:"请输入角色说明",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"remark",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"菜单权限",prop:"leftChecked"}},[r("el-transfer",{staticClass:"el-transfer-check",attrs:{titles:["一级权限","二级权限"],"left-default-checked":e.ruleForm.leftChecked,data:e.ruleForm.left},on:{"left-check-change":e.leftChange},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.option;return r("span",{},[e._v(e._s(n.label))])}}])}),e._v(" "),r("el-transfer",{staticClass:"el-transfer-check",attrs:{titles:["二级权限","二级权限"],"left-default-checked":e.ruleForm.rightChecked,data:e.ruleForm.right},on:{"left-check-change":e.rightChange},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.option;return r("span",{},[e._v(e._s(n.label))])}}])})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{disabled:!!e.showFlag,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var v=r("VU/8")(g,p,!1,function(e){r("Xvo8")},"data-v-c9425250",null);t.default=v.exports}});
//# sourceMappingURL=17.54b1fdea6bf1c163d4db.js.map
\ No newline at end of file
webpackJsonp([19],{"/4Tr":function(t,s){},"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("2X9c"),a=i.n(e),n={name:"page500",data:function(){return{img_500:a.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("/4Tr")},"data-v-4bf06e19",null);s.default=c.exports}});
//# sourceMappingURL=19.fa30b19f8f6b906ab779.js.map
\ No newline at end of file
webpackJsonp([18],{"/4Tr":function(t,s){},"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("2X9c"),a=i.n(e),n={name:"page500",data:function(){return{img_500:a.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("/4Tr")},"data-v-4bf06e19",null);s.default=c.exports}});
//# sourceMappingURL=18.bf72547d03e968bea528.js.map
\ No newline at end of file
webpackJsonp([19],{"7pZf":function(t,e){},Zyzf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("//Fk"),s=a.n(i),o=a("gBtx"),n=a.n(o),l=a("3Xzz"),c=a("P9l9"),r=a("3E4D"),d=a("Ch4/"),f=(a("mw3O"),{name:"staff-detail-field",props:{showCustomDialog:{type:Boolean,default:!1},detailData:{type:Array,default:[]},dataType:{type:Number,default:1}},data:function(){return{repProjectName:"gic-web",customDialog:!1,fixData:["clerkName","clerkPhone","groupName","positionName"],fixDataStore:["clerkName","clerkPhone","groupName","positionName","clerkCode"],customData:[],checkList:[],baseUrl:""}},beforeMount:function(){var t=window.location.origin;console.log("当前host:",t),"-1"!=t.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=t},computed:{},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("customHandleConfirm","hide")},customConfirm:function(){this.checkList=this.customData.map(function(t){return t.checkList}).flat(),this.saveFields(this.dataType)},customChange:function(t){console.log(t)},saveFields:function(t){var e=this,a={fields:e.checkList,type:t};Object(c.c)("/haoban-manage-web/record/employee-show-field-save.json",a).then(function(t){var a=t.data;if(1==a.errorCode)return r.a.showmsg("添加成功","success"),void e.$emit("customHandleConfirm");d.a.errorMsg(a)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},treeData:function(t){var e=t.filter(function(e){var a=t.filter(function(t){return e.fieldCode==t.parentCode});return a.length>0&&(e.children=a),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},getAllFields:function(){var t=this;Object(c.c)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(e){var a=e.data;1!=a.errorCode?d.a.errorMsg(a):t.handleAllFields(a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this.treeData(t);e.forEach(function(t,e){t.checkList=[]}),this.customData=e},handleDetailData:function(){var t=this;t.customData.forEach(function(e,a){e.checkList=[],e.children.forEach(function(a,i){t.checkList.includes(a.fieldCode)&&e.checkList.push(a.fieldCode),a.disable=1==t.dataType?t.fixData.includes(a.fieldCode):t.fixDataStore.includes(a.fieldCode)})})}},watch:{showCustomDialog:function(t,e){this.customDialog=t},detailData:function(t,e){this.checkList=t&&t.length?t:[],this.handleDetailData()}},mounted:function(){this.customDialog=this.showCustomDialog,this.getAllFields()}}),u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"员工个人详情页展示字段设置",visible:t.customDialog,width:"761px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"custom-dialog__title"},[a("p",{staticClass:"custom-dialog__p"},[t._v("tips:添加后的字段将在员工个人详情页展示出来,个人敏感信息不建议添加")])]),t._v(" "),a("div",{staticClass:"custom-dialog-body"},[t._l(t.customData,function(e,i){return[a("div",{key:i,staticClass:"detail-field-cell flex"},[a("div",{staticClass:"detail-field-left"},[t._v(t._s(e.fieldName))]),t._v(" "),a("div",{staticClass:"detail-field-right flex"},[a("el-checkbox-group",{staticClass:"flex flex-wrap",on:{change:t.customChange},model:{value:e.checkList,callback:function(a){t.$set(e,"checkList",a)},expression:"item.checkList"}},t._l(e.children,function(e,i){return a("el-checkbox",{key:e.fieldCode,attrs:{label:e.fieldCode,disabled:e.disable,name:"type"}},[t._v("\n "+t._s(e.fieldName)+"\n ")])}))],1)])]})],2),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var m=a("VU/8")(f,u,!1,function(t){a("7pZf")},"data-v-42af9dfc",null).exports,h=(a("Mk6G"),a("PI0u"),{name:"staffDetails",data:function(){return{navpath:[{name:"首页",path:"/index",relocation:!0},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"员工详细字段",path:""}],fixData:["clerkName","clerkPhone","groupName","positionName"],fixDataStore:["clerkName","clerkPhone","groupName","positionName","clerkCode"],adminStruct:{name:"行政架构通讯录员工详情字段",fixedList:[],defineList:[]},storeStruct:{name:"门店架构通讯录员工详情字段",fixedList:[],defineList:[]},showCustomDialog:!1,detailData:[],dataType:null}},computed:{},methods:{showDialogLayer:function(t){this.showCustomDialog=!0,this.dataType=t,this.detailData=1===t?this.adminStruct.fixedList.map(function(t){return t.fields}).concat(this.adminStruct.defineList.map(function(t){return t.fields})):this.storeStruct.fixedList.map(function(t){return t.fields}).concat(this.storeStruct.defineList.map(function(t){return t.fields}))},customHandleConfirm:function(t){if(this.showCustomDialog=!1,t)return!1;this.getSaveFields(this.dataType)},delField:function(t,e,a,i){var s=this;s.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(o){o.value;s.postDlField(e.fields,i,a,t)}).catch(function(){})},postDlField:function(t,e,a,i){var s=this,o={fields:t,type:e};Object(c.c)("/haoban-manage-web/record/employee-show-field-delete.json",o).then(function(t){var e=t.data;if(1==e.errorCode)return r.a.showmsg("删除成功","success"),void a.splice(i,1);d.a.errorMsg(e)}).catch(function(t){console.log(t),s.$message.error({duration:1e3,message:t.message})})},getSaveFields:function(t){var e=this;1===t?(e.adminStruct.fixedList=[],e.adminStruct.defineList=[]):(e.storeStruct.fixedList=[],e.storeStruct.defineList=[]);var a={type:t};Object(c.c)("/haoban-manage-web/record/employee-show-field-detail.json",a).then(function(a){var i=a.data;1!=i.errorCode?d.a.errorMsg(i):i.result.forEach(function(a,i){1===n()(t)?e.fixData.includes(a.fields)?e.adminStruct.fixedList.push(a):e.adminStruct.defineList.push(a):e.fixDataStore.includes(a.fields)?e.storeStruct.fixedList.push(a):e.storeStruct.defineList.push(a)})}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){s.a.all([this.getSaveFields(1),this.getSaveFields(2)])},components:{navCrumb:l.a,staffDetailField:m}}),p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"staffDetails-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"staffDetails-cell"},[a("h2",{staticClass:"m-b-25"},[t._v(t._s(t.adminStruct.name))]),t._v(" "),a("div",{staticClass:"staffDetails-cell-fixed"},[t._l(t.adminStruct.fixedList,function(e,i){return[a("el-button",{staticClass:"staffDetails-cell-btn",attrs:{disabled:""}},[t._v(t._s(e.fieldName))])]})],2),t._v(" "),a("div",{staticClass:"staffDetails-cell-add"},[t._l(t.adminStruct.defineList,function(e,i){return[a("el-tag",{staticClass:"staffDetails-cell-btn"},[t._v(t._s(e.fieldName)+" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),t.delField(i,e,t.adminStruct.defineList,1)}}})])]}),t._v(" "),a("el-button",{staticClass:"el-tag m-l-8 staffDetails-cell-btn",on:{click:function(e){e.stopPropagation(),t.showDialogLayer(1)}}},[a("i",{staticClass:"el-icon-plus"}),t._v("添加字段")])],2)]),t._v(" "),a("div",{staticClass:"staffDetails-cell"},[a("h2",{staticClass:"m-b-25"},[t._v(t._s(t.storeStruct.name))]),t._v(" "),a("div",{staticClass:"staffDetails-cell-fixed"},[t._l(t.storeStruct.fixedList,function(e,i){return[a("el-button",{staticClass:"staffDetails-cell-btn",attrs:{disabled:""}},[t._v(t._s(e.fieldName))])]})],2),t._v(" "),a("div",{staticClass:"staffDetails-cell-add"},[t._l(t.storeStruct.defineList,function(e,i){return[a("el-tag",{staticClass:"staffDetails-cell-btn"},[t._v(t._s(e.fieldName)+" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),t.delField(i,e,t.storeStruct.defineList,2)}}})])]}),t._v(" "),a("el-button",{staticClass:"el-tag m-l-8 staffDetails-cell-btn",on:{click:function(e){e.stopPropagation(),t.showDialogLayer(2)}}},[a("i",{staticClass:"el-icon-plus"}),t._v("添加字段")])],2)])])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("staff-detail-field",{attrs:{detailData:t.detailData,showCustomDialog:t.showCustomDialog,dataType:t.dataType},on:{customHandleConfirm:t.customHandleConfirm}})],1)},staticRenderFns:[]};var v=a("VU/8")(h,p,!1,function(t){a("wCe+")},"data-v-d18cb370",null);e.default=v.exports},"wCe+":function(t,e){}});
//# sourceMappingURL=19.162799ced722283cb7fb.js.map
\ No newline at end of file
webpackJsonp([21],{"67iC":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i("P9l9"),a=(i("0xDb"),{name:"editableCell",props:{info:{type:Object,required:!0},items:{type:Array,required:!0},title:{type:String,default:""},fieldList:{type:Array,required:!0}},data:function(){var e=window.location.origin;return-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com"),{showEdit:!1,uploadUrl:e+"/haoban-manage-web/upload-img"}},methods:{uploadOnSuccess:function(){},sortImg:function(){},deleteImage:function(){}},computed:{defineObj:function(){return console.log(JSON.parse(this.info.defineString)),JSON.parse(this.info.defineString)}}}),o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"editable-cell-container"},[i("div",{staticClass:"title-div"},[i("span",[e._v(e._s(e.title))]),e._v(" "),i("div",{staticClass:"hurdle"}),e._v(" "),i("a",{staticClass:"a-href",on:{click:function(t){e.showEdit=!e.showEdit}}},[e._v("编辑")])]),e._v(" "),i("el-form",{staticClass:"info-form",attrs:{inline:"","label-width":"150px"},model:{value:e.info,callback:function(t){e.info=t},expression:"info"}},[e._l(e.fieldList,function(t,l){return[i("el-form-item",{key:t.fieldCode+"_"+l,staticClass:"item-width",attrs:{label:t.title+":"}},[t.systemFlag?[e.showEdit?[0==t.fieldType||6==t.fieldType?i("el-input",{model:{value:e.info[t.fieldCode],callback:function(i){e.$set(e.info,t.fieldCode,i)},expression:"info[item.fieldCode]"}}):1==t.fieldType?i("el-input",{attrs:{type:"textarea",autosize:""},model:{value:e.info[t.fieldCode],callback:function(i){e.$set(e.info,t.fieldCode,i)},expression:"info[item.fieldCode]"}}):2==t.fieldType||3==t.fieldType?i("el-select",{attrs:{multiple:3==t.fieldType,"collapse-tags":3==t.fieldType,placeholder:t.fieldDescription},model:{value:e.info[t.fieldCode],callback:function(i){e.$set(e.info,t.fieldCode,i)},expression:"info[item.fieldCode]"}},e._l(t.fieldOperations.fieldContent,function(e){return i("el-option",{key:e.key,attrs:{label:e.name,value:e.key}})})):4==t.fieldType?i("el-date-picker",{attrs:{format:t.fieldOperations.typeValue,"value-format":"timestamp",type:"date",placeholder:t.fieldDescription},model:{value:e.info[t.fieldCode],callback:function(i){e.$set(e.info,t.fieldCode,i)},expression:"info[item.fieldCode]"}}):5==t.fieldType?i("el-date-picker",{attrs:{type:"daterange","range-separator":"至",format:t.fieldOperations.typeValue,"value-format":"timestamp","start-placeholder":t.fieldOperations.startDescription,"end-placeholder":t.fieldOperations.endDescription},model:{value:e.info[t.fieldCode],callback:function(i){e.$set(e.info,t.fieldCode,i)},expression:"info[item.fieldCode]"}}):7==t.fieldType?i("vue-gic-upload-image",{attrs:{projectName:"gic-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.info[t.fieldCode]?e.info[t.fieldCode].split(","):[],limitW:500,limitH:500,maxImageLength:5},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}}):e._e()]:[i("div",[e._v(e._s(e.info[t.fieldCode]))])]]:[0==t.fieldType||6==t.fieldType?i("el-input",{model:{value:e.defineObj[t.fieldCode],callback:function(i){e.$set(e.defineObj,t.fieldCode,i)},expression:"defineObj[item.fieldCode]"}}):1==t.fieldType?i("el-input",{attrs:{type:"textarea",autosize:""},model:{value:e.defineObj[t.fieldCode],callback:function(i){e.$set(e.defineObj,t.fieldCode,i)},expression:"defineObj[item.fieldCode]"}}):2==t.fieldType||3==t.fieldType?i("el-select",{attrs:{multiple:3==t.fieldType,"collapse-tags":3==t.fieldType,placeholder:t.fieldDescription},model:{value:e.defineObj[t.fieldCode],callback:function(i){e.$set(e.defineObj,t.fieldCode,i)},expression:"defineObj[item.fieldCode]"}},e._l(t.fieldOperations.fieldContent,function(e){return i("el-option",{key:e.key,attrs:{label:e.name,value:e.key}})})):4==t.fieldType?i("el-date-picker",{attrs:{format:t.fieldOperations.typeValue,"value-format":"timestamp",type:"date",placeholder:t.fieldDescription},model:{value:e.defineObj[t.fieldCode],callback:function(i){e.$set(e.defineObj,t.fieldCode,i)},expression:"defineObj[item.fieldCode]"}}):5==t.fieldType?i("el-date-picker",{attrs:{type:"daterange","range-separator":"至",format:t.fieldOperations.typeValue,"value-format":"timestamp","start-placeholder":t.fieldOperations.startDescription,"end-placeholder":t.fieldOperations.endDescription},model:{value:e.defineObj[t.fieldCode],callback:function(i){e.$set(e.defineObj,t.fieldCode,i)},expression:"defineObj[item.fieldCode]"}}):7==t.fieldType?i("vue-gic-upload-image",{attrs:{projectName:"gic-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.defineObj[t.fieldCode]?e.defineObj[t.fieldCode].split(","):[],limitW:500,limitH:500,maxImageLength:5},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}}):i("div",[e._v(e._s(e.defineObj[t.fieldCode]))])]],2)]})],2)],1)},staticRenderFns:[]};var n={name:"recordInfo",components:{editableCell:i("VU/8")(a,o,!1,function(e){i("Zwuo")},null,null).exports},data:function(){return{info:{},statusList:["正式","试用","离职"],items:[],fieldList:[]}},methods:{getEmployeeDetail:function(){var e=this,t={recordId:e.$route.query.recordId};Object(l.a)("/haoban-manage-web/record/employee-detail",t).then(function(t){console.log(t,"info"),1==t.data.errorCode?e.info=t.data.result:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},getTemplate:function(){var e=this;Object(l.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(t){console.log(t,"模板"),1==t.data.errorCode?e.formatTemplateList(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},formatTemplateList:function(e){var t=this.fieldList,i=e;e.forEach(function(e){0!=e.parentCode&&(e.fieldOperations=JSON.parse(e.fieldOperations)),console.log(e.fieldType,e.fieldOperations,e),e.title=e.fieldName;var l=[];i.forEach(function(t){t.parentCode==e.fieldCode&&l.push(t)}),l.sort(function(e,t){return 1*e.sort-1*t.sort}),l.length>0&&(e.childrens=l),0==e.parentCode&&t.push(e)}),t.sort(function(e,t){return 1*e.sort-1*t.sort}),console.log(t,"new fieldList")}},beforeMount:function(){this.getTemplate(),this.getEmployeeDetail()}},s={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"commom-container clerk-detail-container"},[e._m(0),e._v(" "),i("div",{staticClass:"employee-detail"},[i("div",{staticClass:"head-info"},[i("p",{staticClass:"head-cell"},[i("img",{staticClass:"head-img",attrs:{src:e.info.headPic}})]),e._v(" "),i("p",{staticClass:"head-cell name"},[e._v(e._s(e.info.clerkName)),i("span",[e._v(e._s(e.statusList[e.info.clerkStatus-1]))])]),e._v(" "),i("p",{staticClass:"head-cell c-303133"},[e._v(e._s(e.info.groupName)+e._s(e.info.positionName))]),e._v(" "),i("p",{staticClass:"head-cell"},[e._v("已在"+e._s(e.info.enterpriseName)+"工作了"+e._s(e.info.days)+"天")])])]),e._v(" "),e._l(e.fieldList,function(t){return[t.childrens?i("editable-cell",{key:t.fieldCode,attrs:{info:e.info,items:e.items,title:t.title,fieldList:t.childrens}}):e._e()]})],2)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticClass:"t-rt"},[t("a",{staticClass:"a-href"},[this._v("打印员工档案")])])}]};var d=i("VU/8")(n,s,!1,function(e){i("YESY")},null,null);t.default=d.exports},YESY:function(e,t){},Zwuo:function(e,t){}});
//# sourceMappingURL=21.9acfde17b5f0397937fa.js.map
\ No newline at end of file
webpackJsonp([22],{"7pZf":function(t,e){},ZwM5:function(t,e){},Zyzf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("//Fk"),s=a.n(i),o=a("gBtx"),n=a.n(o),l=a("3Xzz"),c=a("P9l9"),r=a("3E4D"),d=a("Ch4/"),f=(a("mw3O"),{name:"staff-detail-field",props:{showCustomDialog:{type:Boolean,default:!1},detailData:{type:Array,default:[]},dataType:{type:Number,default:1}},data:function(){return{repProjectName:"gic-web",customDialog:!1,fixData:["clerkName","clerkPhone","groupName","positionName"],fixDataStore:["clerkName","clerkPhone","groupName","positionName","clerkCode"],customData:[],checkList:[],baseUrl:""}},beforeMount:function(){var t=window.location.origin;console.log("当前host:",t),"-1"!=t.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=t},computed:{},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("customHandleConfirm","hide")},customConfirm:function(){this.checkList=this.customData.map(function(t){return t.checkList}).flat(),this.saveFields(this.dataType)},customChange:function(t){console.log(t)},saveFields:function(t){var e=this,a={fields:e.checkList,type:t};Object(c.c)("/haoban-manage-web/record/employee-show-field-save.json",a).then(function(t){var a=t.data;if(1==a.errorCode)return r.a.showmsg("添加成功","success"),void e.$emit("customHandleConfirm");d.a.errorMsg(a)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},treeData:function(t){var e=t.filter(function(e){var a=t.filter(function(t){return e.fieldCode==t.parentCode});return a.length>0&&(e.children=a),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},getAllFields:function(){var t=this;Object(c.c)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(e){var a=e.data;1!=a.errorCode?d.a.errorMsg(a):t.handleAllFields(a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this.treeData(t);e.forEach(function(t,e){t.checkList=[]}),this.customData=e},handleDetailData:function(){var t=this;t.customData.forEach(function(e,a){e.checkList=[],e.children.forEach(function(a,i){t.checkList.includes(a.fieldCode)&&e.checkList.push(a.fieldCode),a.disable=1==t.dataType?t.fixData.includes(a.fieldCode):t.fixDataStore.includes(a.fieldCode)})})}},watch:{showCustomDialog:function(t,e){this.customDialog=t},detailData:function(t,e){this.checkList=t&&t.length?t:[],this.handleDetailData()}},mounted:function(){this.customDialog=this.showCustomDialog,this.getAllFields()}}),u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"员工个人详情页展示字段设置",visible:t.customDialog,width:"761px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"custom-dialog__title"},[a("p",{staticClass:"custom-dialog__p"},[t._v("tips:添加后的字段将在员工个人详情页展示出来,个人敏感信息不建议添加")])]),t._v(" "),a("div",{staticClass:"custom-dialog-body"},[t._l(t.customData,function(e,i){return[a("div",{key:i,staticClass:"detail-field-cell flex"},[a("div",{staticClass:"detail-field-left"},[t._v(t._s(e.fieldName))]),t._v(" "),a("div",{staticClass:"detail-field-right flex"},[a("el-checkbox-group",{staticClass:"flex flex-wrap",on:{change:t.customChange},model:{value:e.checkList,callback:function(a){t.$set(e,"checkList",a)},expression:"item.checkList"}},t._l(e.children,function(e,i){return a("el-checkbox",{key:e.fieldCode,attrs:{label:e.fieldCode,disabled:e.disable,name:"type"}},[t._v("\n "+t._s(e.fieldName)+"\n ")])}))],1)])]})],2),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var m=a("VU/8")(f,u,!1,function(t){a("7pZf")},"data-v-42af9dfc",null).exports,h=(a("Mk6G"),a("PI0u"),{name:"staffDetails",data:function(){return{navpath:[{name:"首页",path:"/index",relocation:!0},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"员工详细字段",path:""}],fixData:["clerkName","clerkPhone","groupName","positionName"],fixDataStore:["clerkName","clerkPhone","groupName","positionName","clerkCode"],adminStruct:{name:"行政架构通讯录员工详情字段",fixedList:[],defineList:[]},storeStruct:{name:"门店架构通讯录员工详情字段",fixedList:[],defineList:[]},showCustomDialog:!1,detailData:[],dataType:null}},computed:{},methods:{showDialogLayer:function(t){this.showCustomDialog=!0,this.dataType=t,this.detailData=1===t?this.adminStruct.fixedList.map(function(t){return t.fields}).concat(this.adminStruct.defineList.map(function(t){return t.fields})):this.storeStruct.fixedList.map(function(t){return t.fields}).concat(this.storeStruct.defineList.map(function(t){return t.fields}))},customHandleConfirm:function(t){if(this.showCustomDialog=!1,t)return!1;this.getSaveFields(this.dataType)},delField:function(t,e,a,i){var s=this;s.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(o){o.value;s.postDlField(e.fields,i,a,t)}).catch(function(){})},postDlField:function(t,e,a,i){var s=this,o={fields:t,type:e};Object(c.c)("/haoban-manage-web/record/employee-show-field-delete.json",o).then(function(t){var e=t.data;if(1==e.errorCode)return r.a.showmsg("删除成功","success"),void a.splice(i,1);d.a.errorMsg(e)}).catch(function(t){console.log(t),s.$message.error({duration:1e3,message:t.message})})},getSaveFields:function(t){var e=this;1===t?(e.adminStruct.fixedList=[],e.adminStruct.defineList=[]):(e.storeStruct.fixedList=[],e.storeStruct.defineList=[]);var a={type:t};Object(c.c)("/haoban-manage-web/record/employee-show-field-detail.json",a).then(function(a){var i=a.data;1!=i.errorCode?d.a.errorMsg(i):i.result.forEach(function(a,i){1===n()(t)?e.fixData.includes(a.fields)?e.adminStruct.fixedList.push(a):e.adminStruct.defineList.push(a):e.fixDataStore.includes(a.fields)?e.storeStruct.fixedList.push(a):e.storeStruct.defineList.push(a)})}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){s.a.all([this.getSaveFields(1),this.getSaveFields(2)])},components:{navCrumb:l.a,staffDetailField:m}}),p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"staffDetails-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"staffDetails-cell"},[a("h2",{staticClass:"m-b-25"},[t._v(t._s(t.adminStruct.name))]),t._v(" "),a("div",{staticClass:"staffDetails-cell-fixed"},[t._l(t.adminStruct.fixedList,function(e,i){return[a("el-button",{staticClass:"staffDetails-cell-btn",attrs:{disabled:""}},[t._v(t._s(e.fieldName))])]})],2),t._v(" "),a("div",{staticClass:"staffDetails-cell-add"},[t._l(t.adminStruct.defineList,function(e,i){return[a("el-tag",{staticClass:"staffDetails-cell-btn"},[t._v(t._s(e.fieldName)+" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),t.delField(i,e,t.adminStruct.defineList,1)}}})])]}),t._v(" "),a("el-button",{staticClass:"el-tag m-l-8 staffDetails-cell-btn",on:{click:function(e){e.stopPropagation(),t.showDialogLayer(1)}}},[a("i",{staticClass:"el-icon-plus"}),t._v("添加字段")])],2)]),t._v(" "),a("div",{staticClass:"staffDetails-cell"},[a("h2",{staticClass:"m-b-25"},[t._v(t._s(t.storeStruct.name))]),t._v(" "),a("div",{staticClass:"staffDetails-cell-fixed"},[t._l(t.storeStruct.fixedList,function(e,i){return[a("el-button",{staticClass:"staffDetails-cell-btn",attrs:{disabled:""}},[t._v(t._s(e.fieldName))])]})],2),t._v(" "),a("div",{staticClass:"staffDetails-cell-add"},[t._l(t.storeStruct.defineList,function(e,i){return[a("el-tag",{staticClass:"staffDetails-cell-btn"},[t._v(t._s(e.fieldName)+" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),t.delField(i,e,t.storeStruct.defineList,2)}}})])]}),t._v(" "),a("el-button",{staticClass:"el-tag m-l-8 staffDetails-cell-btn",on:{click:function(e){e.stopPropagation(),t.showDialogLayer(2)}}},[a("i",{staticClass:"el-icon-plus"}),t._v("添加字段")])],2)])])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("staff-detail-field",{attrs:{detailData:t.detailData,showCustomDialog:t.showCustomDialog,dataType:t.dataType},on:{customHandleConfirm:t.customHandleConfirm}})],1)},staticRenderFns:[]};var v=a("VU/8")(h,p,!1,function(t){a("ZwM5")},"data-v-0a2f80b2",null);e.default=v.exports}});
//# sourceMappingURL=22.246ef46110a7b99a49dd.js.map
\ No newline at end of file
webpackJsonp([21],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){console.log(this.$route.path)}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(n,c,!1,function(t){i("dqqc")},"data-v-12e12bd8",null);s.default=r.exports},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"},dqqc:function(t,s){}});
//# sourceMappingURL=21.b5c1a8410160395d1a49.js.map
\ No newline at end of file
webpackJsonp([22],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){console.log(this.$route.path)}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(n,c,!1,function(t){i("dqqc")},"data-v-12e12bd8",null);s.default=r.exports},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"},dqqc:function(t,s){}});
//# sourceMappingURL=22.6ebc92617843d8ddce0c.js.map
\ No newline at end of file
webpackJsonp([23],{"67iC":function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s("P9l9"),i={name:"editableCell",props:{info:{type:Object,required:!0},items:{type:Array,required:!0},title:{type:String,default:""}}},n={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"editable-cell-container"},[t("div",{staticClass:"title-div"},[t("span",[this._v(this._s(this.title))]),this._v(" "),t("a",{staticClass:"a-href"},[this._v("编辑")])]),this._v(" "),t("el-form")],1)},staticRenderFns:[]};var r={name:"recordInfo",components:{editableCell:s("VU/8")(i,n,!1,function(e){s("KTaS")},null,null).exports},data:function(){return{info:{},statusList:["正式","试用","离职"],items:[]}},methods:{getEmployeeDetail:function(){var e=this,t={recordId:e.$route.query.recordId};Object(a.a)("/haoban-manage-web/record/employee-detail",t).then(function(t){console.log(t,"info"),1==t.data.errorCode?e.info=t.data.result:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},beforeMount:function(){this.getEmployeeDetail()}},l={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"commom-container clerk-detail-container"},[e._m(0),e._v(" "),s("div",{staticClass:"employee-detail"},[s("div",{staticClass:"head-info"},[s("p",{staticClass:"head-cell"},[s("img",{staticClass:"head-img",attrs:{src:e.info.headPic}})]),e._v(" "),s("p",{staticClass:"head-cell name"},[e._v(e._s(e.info.clerkName)),s("span",[e._v(e._s(e.statusList[e.info.clerkStatus-1]))])]),e._v(" "),s("p",{staticClass:"head-cell c-303133"},[e._v(e._s(e.info.groupName)+e._s(e.info.positionName))]),e._v(" "),s("p",{staticClass:"head-cell"},[e._v("已在"+e._s(e.info.contractCompany)+"工作了"+e._s(e.info.days)+"天")])])]),e._v(" "),s("editable-cell",{attrs:{info:e.info,items:e.items,title:"基础信息"}})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticClass:"t-rt"},[t("a",{staticClass:"a-href"},[this._v("打印员工档案")])])}]};var o=s("VU/8")(r,l,!1,function(e){s("tE4j")},null,null);t.default=o.exports},KTaS:function(e,t){},tE4j:function(e,t){}});
//# sourceMappingURL=23.70ffa83b35cac076db3e.js.map
\ No newline at end of file
webpackJsonp([23],{CbCS:function(e,t){},fZsz:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("mvHQ"),i=r.n(n),a=r("3Xzz"),l=r("l46T"),o=r("Mk6G"),u={name:"limittextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(e){console.log(e)},toInput:function(e){console.log(e);var t="";"word"==this.getByType?(t=o.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=o.a.getZhLen(this.itemValue)):(t=o.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=o.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=o.a.getZhLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=o.a.getZhLen(this.inputValue)}},h={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"input-line-cell",style:{width:e.inputWidth+"px"}},[r("el-input",{style:{width:e.inputWidth+"px"},attrs:{placeholder:e.holder,type:"textarea",rows:3},on:{focus:function(t){e.inputFocus()}},nativeOn:{keyup:function(t){return r=t,e.toInput(r);var r}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),r("span",{staticClass:"tip"},[r("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var s=r("VU/8")(u,h,!1,function(e){r("CbCS")},"data-v-61f16316",null).exports,c=r("3E4D"),m=r("Ch4/"),d=r("PI0u"),f=r("P9l9"),g={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index",relocation:!0},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"新增管理员角色",path:""}],showFlag:!1,ruleForm:{roleId:"",roleName:"企业管理员",remark:"角色说明",leftChecked:[],left:[],rightChecked:[],right:[],leftCheckedApp:[],leftApp:[],rightCheckedApp:[],rightApp:[]},rules:{roleName:[{required:!0,message:"请填写角色名称",trigger:"change"}],remark:[{required:!0,message:"请填写角色说明",trigger:"change"}],leftChecked:[{required:!0,message:"请选择菜单权限",trigger:"change"}]}}},computed:{},methods:{submitForm:Object(d.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(console.log(e),!e)return!1;var r=[];t.ruleForm.left.forEach(function(e,t){e.check&&(r.push({rightId:e.rightId}),e.children&&e.children.length&&e.children.forEach(function(e,t){e.check&&r.push({rightId:e.rightId})}))}),console.log(t.ruleForm.left,r),t.postSave(r)})},500),postSave:function(e){var t=this,r={data:i()(e),roleId:t.ruleForm.roleId,roleName:t.ruleForm.roleName,remark:t.ruleForm.remark};Object(f.c)("/haoban-manage-web/save-role",r).then(function(e){var r=e.data;if(1==r.errorCode)return c.a.showmsg("操作成功","success"),void t.$router.push("/setChildAdmin");m.a.errorMsg(r)}).catch(function(e){console.log(e),t.$message.error({duration:1e3,message:e.message})})},getMenuList:function(){var e=this;Object(f.c)("/haoban-manage-web/menu-list",{}).then(function(t){var r=t.data;if(1==r.errorCode)return r.result?(e.ruleForm.left=e.treeData(r.result),e.ruleForm.left.forEach(function(e,t){e.key=e.rightId,e.label=e.rightName,e.check=!1,e.children&&e.children.length&&e.children.forEach(function(e,t){e.key=e.rightId,e.label=e.rightName,e.check=!1})}),e.ruleForm.right=e.ruleForm.left[0].children?e.ruleForm.left[0].children:[],void(e.ruleForm.roleId&&e.getRoleDetail(e.ruleForm.roleId))):void e.$message.error({message:"菜单列表为空"});m.a.errorMsg(r)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){return e.filter(function(t){var r=e.filter(function(e){return t.haobanMenuRightId==e.parentRightId});return r.length>0&&(t.children=r),-1==t.parentRightId})},getRoleDetail:function(e){var t=this,r={roleId:e};Object(f.c)("/haoban-manage-web/role-detail",r).then(function(e){var r=e.data;if(1!=r.errorCode)m.a.errorMsg(r);else{if(t.ruleForm.roleId=r.result.role.roleId,t.ruleForm.roleName=r.result.role.roleName,t.ruleForm.roleCode=r.result.role.roleCode,t.ruleForm.remark=r.result.role.remark,t.ruleForm.right.length){var n=t.ruleForm.right.map(function(e){return e.rightId}),i=[];r.result.menuRightList.forEach(function(e,t){n.includes(e.rightId)&&i.push(e.rightId)}),t.ruleForm.rightChecked=i}var a=t.treeData(r.result.menuRightList);t.ruleForm.leftChecked=a.map(function(e){return e.rightId});var l=r.result.menuRightList.map(function(e){return e.rightId});t.ruleForm.left.forEach(function(e,t){l.includes(e.rightId)?e.check=!0:e.check=!1,e.children&&e.children.length&&e.children.forEach(function(e,t){l.includes(e.rightId)?e.check=!0:e.check=!1})})}}).catch(function(e){console.log(e),t.$message.error({duration:1e3,message:e.message})})},leftChange:function(e,t){var r=this;r.ruleForm.leftChecked=e;var n=e.includes(t[0]);function i(){r.ruleForm.right=[],r.ruleForm.left.forEach(function(e,i){e.rightId.includes(t[0])&&(e.check=!!n,e.children&&e.children.length&&e.children.forEach(function(e,t){r.ruleForm.right.push(e)}))})}e.includes(t[0]),i(),r.ruleForm.rightChecked=r.ruleForm.right.map(function(e){if(!0===e.check)return e.rightId})},rightChange:function(e,t){console.log(e,t);var r=e.includes(t[0]);this.ruleForm.rightChecked=e,this.ruleForm.left.forEach(function(e,n){e.children&&e.children.length&&e.children.forEach(function(e,n){e.rightId.includes(t[0])&&(e.check=!!r)})})},leftChangeApp:function(e,t){console.log(e,t)},rightChangeApp:function(e,t){console.log(e,t)}},mounted:function(){console.log(this.$route.query),this.getMenuList(),this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId,this.navpath[3].name="管理员角色","show"===this.$route.query.type&&(this.showFlag=!0))},components:{navCrumb:a.a,limitInput:l.a,limitTextarea:s}},p={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.ruleForm.roleName,holder:"请输入角色名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"roleName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"角色说明",prop:"remark"}},[r("limitTextarea",{attrs:{inputWidth:500,inputValue:e.ruleForm.remark,holder:"请输入角色说明",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"remark",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"菜单权限",prop:"leftChecked"}},[r("el-transfer",{staticClass:"el-transfer-check",attrs:{titles:["一级权限","二级权限"],"left-default-checked":e.ruleForm.leftChecked,data:e.ruleForm.left},on:{"left-check-change":e.leftChange},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.option;return r("span",{},[e._v(e._s(n.label))])}}])}),e._v(" "),r("el-transfer",{staticClass:"el-transfer-check",attrs:{titles:["二级权限","二级权限"],"left-default-checked":e.ruleForm.rightChecked,data:e.ruleForm.right},on:{"left-check-change":e.rightChange},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.option;return r("span",{},[e._v(e._s(n.label))])}}])})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{disabled:!!e.showFlag,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var v=r("VU/8")(g,p,!1,function(e){r("vLzq")},"data-v-088c8c73",null);t.default=v.exports},vLzq:function(e,t){}});
//# sourceMappingURL=23.e52df146f5206f9bf18d.js.map
\ No newline at end of file
webpackJsonp([24],{DN0r:function(e,t){},da9f:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={name:"enterprise",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1}},computed:{},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},mounted:function(){}},n={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"enterprise-wrap"},[t("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),t("div",{staticClass:"enterprise-wrap__body"})],1)},staticRenderFns:[]};var r=a("VU/8")(o,n,!1,function(e){a("DN0r")},"data-v-dce5fb1e",null);t.default=r.exports}});
//# sourceMappingURL=24.83ee2a8f18f168ea6f86.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/enterpriseApp/index.vue","webpack:///./src/views/enterpriseApp/index.vue?a382","webpack:///./src/views/enterpriseApp/index.vue"],"names":["enterpriseApp","name","data","projectName","collapseFlag","computed","methods","toRouterView","val","console","log","this","$router","push","path","collapseTag","mounted","views_enterpriseApp","render","_h","$createElement","_c","_self","staticClass","attrs","on","_v","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"2HAUA,IAAAA,GACAC,KAAA,aACAC,KAFA,WAGA,OACAC,YAAA,oBACAC,cAAA,IAGAC,YAGAC,SAEAC,aAFA,SAEAC,GAQAC,QAAAC,IAAAF,GAPAG,KAQAC,QAAAC,MACAC,KAAAN,EAAAM,QAKAC,YAjBA,SAiBAP,GAEAC,QAAAC,IAAAF,GADAG,KAEAP,aAAAI,IAGAQ,QAlCA,cCPeC,GADEC,OAFjB,WAA0B,IAAaC,EAAbR,KAAaS,eAA0BC,EAAvCV,KAAuCW,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,oBAA8BF,EAAA,qBAA0BG,OAAOrB,YAA/IQ,KAA+IR,aAA8BsB,IAAKV,YAAlLJ,KAAkLI,YAAAR,aAAlLI,KAAkLJ,gBAAlLI,KAAiPe,GAAA,KAAAL,EAAA,OAAwBE,YAAA,2BAAoC,IAEtTI,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACE9B,EACAiB,GATF,EAVA,SAAAc,GACEF,EAAQ,SAaV,kBAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/24.83ee2a8f18f168ea6f86.js","sourcesContent":["<template>\n <div class=\"enterprise-wrap\">\n <!-- 公共头部菜单插件 -->\n <vue-office-header :projectName=\"projectName\" @collapseTag=\"collapseTag\" @toRouterView=\"toRouterView\"></vue-office-header>\n <div class=\"enterprise-wrap__body\">\n </div>\n </div>\n</template>\n<script>\n\nexport default {\n name: \"enterprise\",\n data() {\n return {\n projectName: 'haoban-manage-web', // 当前项目名\n collapseFlag: false, // 折叠参数\n }\n },\n computed: {\n\n },\n methods: {\n // 处理路由跳转\n toRouterView(val) {\n var that = this;\n // 模拟检查数据\n // //有两个参数\n //{\n // name:,\n // path:\n //}\n console.log(val);\n that.$router.push({\n path: val.path\n })\n },\n\n // 折叠事件\n collapseTag(val) {\n var that = this;\n console.log(val);\n that.collapseFlag = val\n },\n },\n mounted() {\n\n },\n}\n\n</script>\n<style lang=\"less\" scoped>\n\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/views/enterpriseApp/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"enterprise-wrap\"},[_c('vue-office-header',{attrs:{\"projectName\":_vm.projectName},on:{\"collapseTag\":_vm.collapseTag,\"toRouterView\":_vm.toRouterView}}),_vm._v(\" \"),_c('div',{staticClass:\"enterprise-wrap__body\"})],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-dce5fb1e\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/enterpriseApp/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-dce5fb1e\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-dce5fb1e\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-dce5fb1e\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/enterpriseApp/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([25],{JsWW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("P9l9"),r=a("MJLE"),n=a.n(r),o={name:"shareCode",data:function(){return{regenerate:!1,qrCodeContent:{},shares:[],qrcodeCase:"",myEnterprise:""}},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 n.a("qrcode",{width:245,height:245,text:e})},getShareBrands:function(){var e=this;Object(s.a)("/haoban-manage-web/shared-contact/get-all-shared-enterprise",{}).then(function(t){console.log(t,"shares"),1==t.data.errorCode?e.shares=t.data.result||[]:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},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.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){console.log(e)}},beforeMount:function(){this.getShareRelation(),this.getShareBrands(),this.getCode()}},i={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"}},[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(" "),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.importEnterpriseId)}}},[e._v("取消共享")])])])}))])])},staticRenderFns:[]};var c=a("VU/8")(o,i,!1,function(e){a("hh5o")},null,null);t.default=c.exports},hh5o:function(e,t){}});
//# sourceMappingURL=25.6cc97e6afe73c2b498f9.js.map
\ No newline at end of file
webpackJsonp([24],{JsWW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("P9l9"),r=a("MJLE"),n=a.n(r),o={name:"shareCode",data:function(){return{regenerate:!1,qrCodeContent:{},shares:[],qrcodeCase:"",myEnterprise:""}},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 n.a("qrcode",{width:245,height:245,text:e})},getShareBrands:function(){var e=this;Object(s.a)("/haoban-manage-web/shared-contact/get-all-shared-enterprise",{}).then(function(t){console.log(t,"shares"),1==t.data.errorCode?e.shares=t.data.result||[]:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},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.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){console.log(e)}},beforeMount:function(){this.getShareRelation(),this.getShareBrands(),this.getCode()}},i={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"}},[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(" "),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.importEnterpriseId)}}},[e._v("取消共享")])])])}))])])},staticRenderFns:[]};var c=a("VU/8")(o,i,!1,function(e){a("hh5o")},null,null);t.default=c.exports},hh5o:function(e,t){}});
//# sourceMappingURL=24.8ae2e8183cb94067ec31.js.map
\ No newline at end of file
webpackJsonp([26],{VlR1:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={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){console.log("获取当前路由:",t,e)},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,o=t._self._c||e;return o("div",{staticClass:"setting-wrap"},[o("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),o("div",{staticClass:"setting-wrap__body"},[o("div",{staticClass:"content",attrs:{id:"content"}},[o("div",{staticClass:"content-body",style:{height:t.contentHeight}},[o("div",{staticClass:"left-menu",style:{height:t.contentHeight}},[o("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}})],1),t._v(" "),o("transition",{attrs:{name:"fade",mode:"out-in"}},[o("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=o("VU/8")(a,n,!1,function(t){o("pjfd")},"data-v-b349d546",null);e.default=i.exports},pjfd:function(t,e){}});
//# sourceMappingURL=26.097fc6739abfb88a4fbb.js.map
\ No newline at end of file
webpackJsonp([25],{VlR1:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={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){console.log("获取当前路由:",t,e)},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,o=t._self._c||e;return o("div",{staticClass:"setting-wrap"},[o("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),o("div",{staticClass:"setting-wrap__body"},[o("div",{staticClass:"content",attrs:{id:"content"}},[o("div",{staticClass:"content-body",style:{height:t.contentHeight}},[o("div",{staticClass:"left-menu",style:{height:t.contentHeight}},[o("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}})],1),t._v(" "),o("transition",{attrs:{name:"fade",mode:"out-in"}},[o("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=o("VU/8")(a,n,!1,function(t){o("pjfd")},"data-v-b349d546",null);e.default=i.exports},pjfd:function(t,e){}});
//# sourceMappingURL=25.121f35a02040f60c89dc.js.map
\ No newline at end of file
webpackJsonp([27],{CSjr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"fileSet-wrap"})},staticRenderFns:[]};var r=n("VU/8")({name:"fileSet",data:function(){return{}},computed:{},methods:{},mounted:function(){}},a,!1,function(e){n("FV89")},"data-v-b11b7d9a",null);t.default=r.exports},FV89:function(e,t){}});
//# sourceMappingURL=27.1fd28096f10f0528393e.js.map
\ No newline at end of file
webpackJsonp([26],{CSjr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"fileSet-wrap"})},staticRenderFns:[]};var r=n("VU/8")({name:"fileSet",data:function(){return{}},computed:{},methods:{},mounted:function(){}},a,!1,function(e){n("FV89")},"data-v-b11b7d9a",null);t.default=r.exports},FV89:function(e,t){}});
//# sourceMappingURL=26.b0077af7f571b44aac71.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/contacts/fileSet.vue","webpack:///./src/views/contacts/fileSet.vue?448c","webpack:///./src/views/contacts/fileSet.vue"],"names":["contacts_fileSet","render","_h","this","$createElement","_self","_c","staticClass","staticRenderFns","Component","__webpack_require__","normalizeComponent","name","data","computed","methods","mounted","ssrContext","__webpack_exports__"],"mappings":"sGAMA,ICHeA,GADEC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,OAAiBK,YAAA,kBAEzFC,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,EFVAC,KAAA,UACAC,KAFA,WAGA,UAIAC,YAGAC,WAGAC,QAbA,cEaEhB,GATF,EAVA,SAAAiB,GACEP,EAAQ,SAaV,kBAEA,MAUeQ,EAAA,QAAAT,EAAiB","file":"static/js/27.1fd28096f10f0528393e.js","sourcesContent":["<template>\r\n <div class=\"fileSet-wrap\">\r\n </div>\r\n</template>\r\n<script>\r\n\r\nexport default {\r\n name: \"fileSet\",\r\n data() {\r\n return {\r\n\r\n }\r\n },\r\n computed: {\r\n\r\n },\r\n methods: {\r\n\r\n },\r\n mounted() {\r\n\r\n },\r\n}\r\n\r\n</script>\r\n<style lang=\"less\" scoped>\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/contacts/fileSet.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"fileSet-wrap\"})}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-b11b7d9a\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/contacts/fileSet.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-b11b7d9a\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./fileSet.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./fileSet.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./fileSet.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-b11b7d9a\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./fileSet.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-b11b7d9a\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/contacts/fileSet.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/contacts/fileSet.vue","webpack:///./src/views/contacts/fileSet.vue?448c","webpack:///./src/views/contacts/fileSet.vue"],"names":["contacts_fileSet","render","_h","this","$createElement","_self","_c","staticClass","staticRenderFns","Component","__webpack_require__","normalizeComponent","name","data","computed","methods","mounted","ssrContext","__webpack_exports__"],"mappings":"sGAMA,ICHeA,GADEC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,OAAiBK,YAAA,kBAEzFC,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,EFVAC,KAAA,UACAC,KAFA,WAGA,UAIAC,YAGAC,WAGAC,QAbA,cEaEhB,GATF,EAVA,SAAAiB,GACEP,EAAQ,SAaV,kBAEA,MAUeQ,EAAA,QAAAT,EAAiB","file":"static/js/26.b0077af7f571b44aac71.js","sourcesContent":["<template>\r\n <div class=\"fileSet-wrap\">\r\n </div>\r\n</template>\r\n<script>\r\n\r\nexport default {\r\n name: \"fileSet\",\r\n data() {\r\n return {\r\n\r\n }\r\n },\r\n computed: {\r\n\r\n },\r\n methods: {\r\n\r\n },\r\n mounted() {\r\n\r\n },\r\n}\r\n\r\n</script>\r\n<style lang=\"less\" scoped>\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/contacts/fileSet.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"fileSet-wrap\"})}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-b11b7d9a\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/contacts/fileSet.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-b11b7d9a\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./fileSet.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./fileSet.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./fileSet.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-b11b7d9a\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./fileSet.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-b11b7d9a\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/contacts/fileSet.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([28],{J1Mm:function(e,t){},VqB7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("3Xzz"),o=(a("Mk6G"),a("3E4D"),a("Ch4/")),s=(a("PI0u"),a("P9l9")),l={name:"setChildAdmin",data:function(){return{navpath:[{name:"首页",path:"/index",relocation:!0},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:""}],boxHeight:window.screen.availHeight+"px",isAddAdmin:"",activeId:1,adminRole:[],roleListData:[],roleRightObj:{roleName:"超级管理员",tip:"企业的创建者,拥有企业的所有权限,只会有一个",roleCode:""},tableData:[],currentPage:1,pageSize:20,total:0}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},toRoleDetail:function(e){this.changeRoute("/addAdminrole?roleId="+this.activeId+"&type="+e)},selectRole:function(e){this.activeId=e.roleId,this.roleRightObj=e,this.getRoleUsers()},toAddRole:function(){this.changeRoute("/addAdmin?roleId="+this.activeId)},handleSizeChange:function(e){this.pageSize=e,this.getRoleUsers()},handleCurrentChange:function(e){this.currentPage=e,this.getRoleUsers()},getRoleUsers:function(){var e=this,t={roleId:e.activeId,pageSize:e.pageSize,pageNum:e.currentPage};Object(s.c)("/haoban-manage-web/role-user-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.result?(e.tableData=a.result.result,void(e.total=a.result.totalCount)):(e.$message.error({duration:1e3,message:"暂无数据"}),!1);o.a.errorMsg(a)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},getRoles:function(){var e=this;Object(s.c)("/haoban-manage-web/role-list",{}).then(function(t){var a=t.data;if(1==a.errorCode)return e.isAddAdmin=a.result.isAddAdmin,e.roleListData=a.result.roleList||[],void(a.result&&a.result.roleList.length&&(e.activeId=e.roleListData[0].roleList[0].roleId,e.roleRightObj=e.roleListData[0].roleList[0],e.getRoleUsers()));o.a.errorMsg(a)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.boxHeight=window.screen.availHeight-430+"px",this.getRoles()},components:{navCrumb:i.a}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"setChildAdmin-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"setChildAdmin-wrap-body flex"},[a("div",{staticClass:"setChildAdmin-wrap-left w-260",style:{height:e.boxHeight}},[e.isAddAdmin?a("div",{staticClass:"text-center"},[a("el-button",{on:{click:function(t){e.changeRoute("/addAdminrole")}}},[e._v("新增管理员角色")])],1):e._e(),e._v(" "),e._l(e.roleListData,function(t,i){return a("div",{key:i,staticClass:"m-t-20"},[a("div",{staticClass:"role-cell-head"},[e._v(e._s(t.brandName))]),e._v(" "),a("ul",e._l(t.roleList,function(t,i){return a("li",{key:i,class:["role-cell",t.roleId==e.activeId?"role-active":""],on:{click:function(a){a.stopPropagation(),e.selectRole(t)}}},[a("i",{staticClass:"iconfont icon-lizhi p-r-6"}),e._v(e._s(t.roleName))])}))])})],2),e._v(" "),a("div",{staticClass:"setChildAdmin-wrap-right box-sizing"},[a("div",{staticClass:"role-title flex flex-between"},[a("span",{staticClass:"font-20 color-303133"},[e._v(e._s(e.roleRightObj.roleName))]),e.roleRightObj.isEdit?e._e():a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("show")}}},[e._v("查看权限")]),e.roleRightObj.isEdit?a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("edit")}}},[e._v("编辑权限")]):e._e()]),e._v(" "),"master_admin"===e.roleRightObj.roleCode||"child_admin"===e.roleRightObj.roleCode?a("div",{staticClass:"role-tip m-t-27 m-b-25"},[a("el-alert",{attrs:{title:"master_admin"===e.roleRightObj.roleCode?"企业的创建者,拥有企业的所有权限,只会有一个":"企业管理员,拥有企业的所有权限,不能创建企业管理员,可以有多个",type:"info",closable:!1,"show-icon":""}})],1):e._e(),e._v(" "),a("div",{staticClass:"role-add"},[a("el-button",{attrs:{type:"primary"},on:{click:e.toAddRole}},[e._v("添加成员")])],1),e._v(" "),a("div",{staticClass:"role-table "},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"clerkName",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"clerkPhone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"groupName",label:"部门"}})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var n=a("VU/8")(l,r,!1,function(e){a("J1Mm")},"data-v-6447645c",null);t.default=n.exports}});
//# sourceMappingURL=28.a61f241bf6eda2f841d5.js.map
\ No newline at end of file
webpackJsonp([29],{"S+aF":function(e,t){},VqB7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("3Xzz"),o=(a("Mk6G"),a("3E4D"),a("Ch4/")),s=(a("PI0u"),a("P9l9")),l={name:"setChildAdmin",data:function(){return{navpath:[{name:"首页",path:"/index",relocation:!0},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:""}],boxHeight:window.screen.availHeight+"px",isAddAdmin:"",activeId:1,adminRole:[],roleListData:[],roleRightObj:{roleName:"超级管理员",tip:"企业的创建者,拥有企业的所有权限,只会有一个",roleCode:""},tableData:[],currentPage:1,pageSize:20,total:0}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},toRoleDetail:function(e){this.changeRoute("/addAdminrole?roleId="+this.activeId+"&type="+e)},selectRole:function(e){this.activeId=e.roleId,this.roleRightObj=e,this.getRoleUsers()},toAddRole:function(){this.changeRoute("/addAdmin?roleId="+this.activeId)},handleSizeChange:function(e){this.pageSize=e,this.getRoleUsers()},handleCurrentChange:function(e){this.currentPage=e,this.getRoleUsers()},getRoleUsers:function(){var e=this,t={roleId:e.activeId,pageSize:e.pageSize,pageNum:e.currentPage};Object(s.c)("/haoban-manage-web/role-user-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.result?(e.tableData=a.result.result,void(e.total=a.result.totalCount)):(e.$message.error({duration:1e3,message:"暂无数据"}),!1);o.a.errorMsg(a)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},getRoles:function(){var e=this;Object(s.c)("/haoban-manage-web/role-list",{}).then(function(t){var a=t.data;if(1==a.errorCode)return e.isAddAdmin=a.result.isAddAdmin,e.roleListData=a.result.roleList||[],void(a.result&&a.result.roleList.length&&(e.activeId=e.roleListData[0].roleList[0].roleId,e.roleRightObj=e.roleListData[0].roleList[0],e.getRoleUsers()));o.a.errorMsg(a)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.boxHeight=window.screen.availHeight-430+"px",this.getRoles()},components:{navCrumb:i.a}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"setChildAdmin-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"setChildAdmin-wrap-body flex"},[a("div",{staticClass:"setChildAdmin-wrap-left w-260",style:{height:e.boxHeight}},[e.isAddAdmin?a("div",{staticClass:"text-center"},[a("el-button",{on:{click:function(t){e.changeRoute("/addAdminrole")}}},[e._v("新增管理员角色")])],1):e._e(),e._v(" "),e._l(e.roleListData,function(t,i){return a("div",{key:i,staticClass:"m-t-20"},[a("div",{staticClass:"role-cell-head"},[e._v(e._s(t.brandName))]),e._v(" "),a("ul",e._l(t.roleList,function(t,i){return a("li",{key:i,class:["role-cell",t.roleId==e.activeId?"role-active":""],on:{click:function(a){a.stopPropagation(),e.selectRole(t)}}},[a("i",{staticClass:"iconfont icon-lizhi p-r-6"}),e._v(e._s(t.roleName))])}))])})],2),e._v(" "),a("div",{staticClass:"setChildAdmin-wrap-right box-sizing"},[a("div",{staticClass:"role-title flex flex-between"},[a("span",{staticClass:"font-20 color-303133"},[e._v(e._s(e.roleRightObj.roleName))]),e.roleRightObj.isEdit?e._e():a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("show")}}},[e._v("查看权限")]),e.roleRightObj.isEdit?a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("edit")}}},[e._v("编辑权限")]):e._e()]),e._v(" "),"master_admin"===e.roleRightObj.roleCode||"child_admin"===e.roleRightObj.roleCode?a("div",{staticClass:"role-tip m-t-27 m-b-25"},[a("el-alert",{attrs:{title:"master_admin"===e.roleRightObj.roleCode?"企业的创建者,拥有企业的所有权限,只会有一个":"企业管理员,拥有企业的所有权限,不能创建企业管理员,可以有多个",type:"info",closable:!1,"show-icon":""}})],1):e._e(),e._v(" "),a("div",{staticClass:"role-add"},[a("el-button",{attrs:{type:"primary"},on:{click:e.toAddRole}},[e._v("添加成员")])],1),e._v(" "),a("div",{staticClass:"role-table "},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"clerkName",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"clerkPhone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"groupName",label:"部门"}})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var n=a("VU/8")(l,r,!1,function(e){a("S+aF")},"data-v-5ed77c0d",null);t.default=n.exports}});
//# sourceMappingURL=29.00cdae8414a1bac88276.js.map
\ No newline at end of file
webpackJsonp([30],{"+lem":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},a={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"review-wrap"},[o("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),o("div",{staticClass:"setting-wrap__body"},[o("div",{staticClass:"content",attrs:{id:"content"}},[o("div",{staticClass:"content-body",style:{height:e.contentHeight}},[o("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[o("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),o("transition",{attrs:{name:"fade",mode:"out-in"}},[o("router-view")],1)],1)])])],1)},staticRenderFns:[]};var c=o("VU/8")(n,a,!1,function(e){o("hSCc")},null,null);t.default=c.exports},hSCc:function(e,t){}});
//# sourceMappingURL=30.03094aaf28cd4d49e0e7.js.map
\ No newline at end of file
webpackJsonp([29],{"+lem":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},a={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"review-wrap"},[o("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),o("div",{staticClass:"setting-wrap__body"},[o("div",{staticClass:"content",attrs:{id:"content"}},[o("div",{staticClass:"content-body",style:{height:e.contentHeight}},[o("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[o("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),o("transition",{attrs:{name:"fade",mode:"out-in"}},[o("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=o("VU/8")(n,a,!1,function(e){o("ukWR")},null,null);t.default=i.exports},ukWR:function(e,t){}});
//# sourceMappingURL=29.feb119f737fafcfa0252.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/reviewCenter/index.vue","webpack:///./src/views/reviewCenter/index.vue?afd0","webpack:///./src/views/reviewCenter/index.vue"],"names":["reviewCenter","name","data","projectName","collapseFlag","contentHeight","computed","methods","toRouterView","val","console","log","this","$router","push","path","collapseTag","mounted","document","documentElement","clientHeight","body","views_reviewCenter","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","on","_v","id","style","height","ref","mode","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"wGAuBA,IAAAA,GACAC,KAAA,WACAC,KAFA,WAGA,OACAC,YAAA,oBACAC,cAAA,EACAC,cAAA,QAGAC,YAGAC,SAEAC,aAFA,SAEAC,GAQAC,QAAAC,IAAAF,GAPAG,KAQAC,QAAAC,MACAC,KAAAN,EAAAM,QAKAC,YAjBA,SAiBAP,GAEAC,QAAAC,IAAAF,GADAG,KAEAR,aAAAK,IAGAQ,QAnCA,WAoCAL,KACAP,eAAAa,SAAAC,gBAAAC,cAAAF,SAAAG,KAAAD,cAAA,UCzDeE,GADEC,OAFjB,WAA0B,IAAAC,EAAAZ,KAAaa,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,gBAA0BF,EAAA,qBAA0BG,OAAO3B,YAAAqB,EAAArB,aAA8B4B,IAAKf,YAAAQ,EAAAR,YAAAR,aAAAgB,EAAAhB,gBAA+DgB,EAAAQ,GAAA,KAAAL,EAAA,OAAwBE,YAAA,uBAAiCF,EAAA,OAAYE,YAAA,UAAAC,OAA6BG,GAAA,aAAgBN,EAAA,OAAYE,YAAA,eAAAK,OAAmCC,OAAAX,EAAAnB,iBAA4BsB,EAAA,OAAYE,YAAA,YAAAK,OAAgCC,OAAAX,EAAAnB,iBAA4BsB,EAAA,oBAAyBS,IAAA,YAAAN,OAAuB3B,YAAAqB,EAAArB,YAAAC,aAAAoB,EAAApB,iBAA+D,GAAAoB,EAAAQ,GAAA,KAAAL,EAAA,cAAmCG,OAAO7B,KAAA,OAAAoC,KAAA,YAA+BV,EAAA,gCAEnrBW,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACEzC,EACAsB,GATF,EAVA,SAAAoB,GACEF,EAAQ,SAaV,KAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/29.feb119f737fafcfa0252.js","sourcesContent":["<template>\r\n <div class=\"review-wrap\">\r\n <!-- 公共头部菜单插件 -->\r\n <vue-office-header :projectName=\"projectName\" @collapseTag=\"collapseTag\" @toRouterView=\"toRouterView\"></vue-office-header>\r\n <div class=\"setting-wrap__body\">\r\n <div id=\"content\" class=\"content\">\r\n <div class=\"content-body\" :style=\"{height: contentHeight}\">\r\n <div class=\"left-menu\" :style=\"{height: contentHeight}\">\r\n <vue-office-aside ref=\"asideMenu\" :projectName=\"projectName\" :collapseFlag=\"collapseFlag\"></vue-office-aside>\r\n </div>\r\n <transition name=\"fade\" mode=\"out-in\">\r\n <!-- 缓存已经填好内容的页面 -->\r\n <!-- <keep-alive include=\"editGroupGrade\"> -->\r\n <router-view></router-view>\r\n <!-- </keep-alive > -->\r\n </transition>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\n\r\nexport default {\r\n name: \"reviewed\",\r\n data() {\r\n return {\r\n projectName: 'haoban-manage-web', // 当前项目名\r\n collapseFlag: false, // 折叠参数\r\n contentHeight: '0px', //页面内容高度\r\n }\r\n },\r\n computed: {\r\n\r\n },\r\n methods: {\r\n // 处理路由跳转\r\n toRouterView(val) {\r\n var that = this;\r\n // 模拟检查数据\r\n // //有两个参数\r\n //{\r\n // name:,\r\n // path:\r\n //}\r\n console.log(val);\r\n that.$router.push({\r\n path: val.path\r\n })\r\n },\r\n\r\n // 折叠事件\r\n collapseTag(val) {\r\n var that = this;\r\n console.log(val);\r\n that.collapseFlag = val\r\n },\r\n },\r\n mounted() {\r\n const that = this\r\n that.contentHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 64 +'px';\r\n },\r\n}\r\n\r\n</script>\r\n<style lang=\"less\" >\r\n.setting-wrap__body{\r\n .content{\r\n padding-top: 64px;\r\n /* height: calc(100% - 64px);\r\n overflow-y: auto;*/\r\n min-width: 1400px;\r\n -webkit-box-sizing: border-box;\r\n -moz-box-sizing: border-box;\r\n box-sizing: border-box;\r\n\r\n .content-body {\r\n display: flex;\r\n overflow: hidden;\r\n\r\n .common-set-wrap {\r\n position: relative;\r\n width: 100%;\r\n height: 100%;\r\n overflow-y: auto;\r\n\r\n .right-content {\r\n /*width: 100%;*/\r\n padding: 24px;\r\n min-height: calc(100% - 240px);\r\n\r\n .right-box {\r\n background: #fff;\r\n padding: 24px;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n.el-table__empty-block {\r\n height: 256px;\r\n}\r\n\r\n.el-table__empty-text{\r\n width: auto;\r\n margin-bottom:80px;\r\n &::before{\r\n content: ' ';\r\n display: block;\r\n width: 60px;\r\n height: 60px;\r\n background: url(../../assets/no-data_icon.png) no-repeat center;\r\n margin: 0px auto 22px auto;\r\n }\r\n}\r\n\r\n.el-table__empty-text {\r\n margin-bottom: 0;\r\n}\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/reviewCenter/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"review-wrap\"},[_c('vue-office-header',{attrs:{\"projectName\":_vm.projectName},on:{\"collapseTag\":_vm.collapseTag,\"toRouterView\":_vm.toRouterView}}),_vm._v(\" \"),_c('div',{staticClass:\"setting-wrap__body\"},[_c('div',{staticClass:\"content\",attrs:{\"id\":\"content\"}},[_c('div',{staticClass:\"content-body\",style:({height: _vm.contentHeight})},[_c('div',{staticClass:\"left-menu\",style:({height: _vm.contentHeight})},[_c('vue-office-aside',{ref:\"asideMenu\",attrs:{\"projectName\":_vm.projectName,\"collapseFlag\":_vm.collapseFlag}})],1),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[_c('router-view')],1)],1)])])],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-5810de7c\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/reviewCenter/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-5810de7c\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-5810de7c\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/reviewCenter/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/reviewCenter/index.vue","webpack:///./src/views/reviewCenter/index.vue?640a","webpack:///./src/views/reviewCenter/index.vue"],"names":["reviewCenter","name","data","projectName","collapseFlag","contentHeight","computed","methods","toRouterView","val","console","log","this","$router","push","path","collapseTag","mounted","document","documentElement","clientHeight","body","views_reviewCenter","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","on","_v","id","style","height","ref","mode","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"wGAuBA,IAAAA,GACAC,KAAA,WACAC,KAFA,WAGA,OACAC,YAAA,oBACAC,cAAA,EACAC,cAAA,QAGAC,YAGAC,SAEAC,aAFA,SAEAC,GAQAC,QAAAC,IAAAF,GAPAG,KAQAC,QAAAC,MACAC,KAAAN,EAAAM,QAKAC,YAjBA,SAiBAP,GAEAC,QAAAC,IAAAF,GADAG,KAEAR,aAAAK,IAGAQ,QAnCA,WAoCAL,KACAP,eAAAa,SAAAC,gBAAAC,cAAAF,SAAAG,KAAAD,cAAA,UCzDeE,GADEC,OAFjB,WAA0B,IAAAC,EAAAZ,KAAaa,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,gBAA0BF,EAAA,qBAA0BG,OAAO3B,YAAAqB,EAAArB,aAA8B4B,IAAKf,YAAAQ,EAAAR,YAAAR,aAAAgB,EAAAhB,gBAA+DgB,EAAAQ,GAAA,KAAAL,EAAA,OAAwBE,YAAA,uBAAiCF,EAAA,OAAYE,YAAA,UAAAC,OAA6BG,GAAA,aAAgBN,EAAA,OAAYE,YAAA,eAAAK,OAAmCC,OAAAX,EAAAnB,iBAA4BsB,EAAA,OAAYE,YAAA,YAAAK,OAAgCC,OAAAX,EAAAnB,iBAA4BsB,EAAA,oBAAyBS,IAAA,YAAAN,OAAuB3B,YAAAqB,EAAArB,YAAAC,aAAAoB,EAAApB,iBAA+D,GAAAoB,EAAAQ,GAAA,KAAAL,EAAA,cAAmCG,OAAO7B,KAAA,OAAAoC,KAAA,YAA+BV,EAAA,gCAEnrBW,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACEzC,EACAsB,GATF,EAVA,SAAAoB,GACEF,EAAQ,SAaV,KAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/30.03094aaf28cd4d49e0e7.js","sourcesContent":["<template>\n <div class=\"review-wrap\">\n <!-- 公共头部菜单插件 -->\n <vue-office-header :projectName=\"projectName\" @collapseTag=\"collapseTag\" @toRouterView=\"toRouterView\"></vue-office-header>\n <div class=\"setting-wrap__body\">\n <div id=\"content\" class=\"content\">\n <div class=\"content-body\" :style=\"{height: contentHeight}\">\n <div class=\"left-menu\" :style=\"{height: contentHeight}\">\n <vue-office-aside ref=\"asideMenu\" :projectName=\"projectName\" :collapseFlag=\"collapseFlag\"></vue-office-aside>\n </div>\n <transition name=\"fade\" mode=\"out-in\">\n <!-- 缓存已经填好内容的页面 -->\n <!-- <keep-alive include=\"editGroupGrade\"> -->\n <router-view></router-view>\n <!-- </keep-alive > -->\n </transition>\n </div>\n </div>\n </div>\n </div>\n</template>\n<script>\n\nexport default {\n name: \"reviewed\",\n data() {\n return {\n projectName: 'haoban-manage-web', // 当前项目名\n collapseFlag: false, // 折叠参数\n contentHeight: '0px', //页面内容高度\n }\n },\n computed: {\n\n },\n methods: {\n // 处理路由跳转\n toRouterView(val) {\n var that = this;\n // 模拟检查数据\n // //有两个参数\n //{\n // name:,\n // path:\n //}\n console.log(val);\n that.$router.push({\n path: val.path\n })\n },\n\n // 折叠事件\n collapseTag(val) {\n var that = this;\n console.log(val);\n that.collapseFlag = val\n },\n },\n mounted() {\n const that = this\n that.contentHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 64 +'px';\n },\n}\n\n</script>\n<style lang=\"less\" >\n.setting-wrap__body{\n .content{\n padding-top: 64px;\n /* height: calc(100% - 64px);\n overflow-y: auto;*/\n min-width: 1400px;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n\n .content-body {\n display: flex;\n overflow: hidden;\n\n .common-set-wrap {\n position: relative;\n width: 100%;\n height: 100%;\n overflow-y: auto;\n\n .right-content {\n /*width: 100%;*/\n padding: 24px;\n min-height: calc(100% - 240px);\n\n .right-box {\n background: #fff;\n padding: 24px;\n }\n }\n }\n }\n }\n}\n\n.el-table__empty-block {\n height: 256px;\n}\n\n.el-table__empty-text{\n width: auto;\n margin-bottom:80px;\n &::before{\n content: ' ';\n display: block;\n width: 60px;\n height: 60px;\n background: url(../../assets/no-data_icon.png) no-repeat center;\n margin: 0px auto 22px auto;\n }\n}\n\n.el-table__empty-text {\n margin-bottom: 0;\n}\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/views/reviewCenter/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"review-wrap\"},[_c('vue-office-header',{attrs:{\"projectName\":_vm.projectName},on:{\"collapseTag\":_vm.collapseTag,\"toRouterView\":_vm.toRouterView}}),_vm._v(\" \"),_c('div',{staticClass:\"setting-wrap__body\"},[_c('div',{staticClass:\"content\",attrs:{\"id\":\"content\"}},[_c('div',{staticClass:\"content-body\",style:({height: _vm.contentHeight})},[_c('div',{staticClass:\"left-menu\",style:({height: _vm.contentHeight})},[_c('vue-office-aside',{ref:\"asideMenu\",attrs:{\"projectName\":_vm.projectName,\"collapseFlag\":_vm.collapseFlag}})],1),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[_c('router-view')],1)],1)])])],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-50ca1dc8\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/reviewCenter/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-50ca1dc8\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-50ca1dc8\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/reviewCenter/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([36],{"41Rh":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var o={name:"contact",components:{topNav:e("3Xzz").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,navpath:[{name:"首页",path:"/"},{name:"通讯录",path:""},{name:"企业通讯录"},{name:"行政架构"}]}},methods:{toRouterView:function(t){console.log(t),this.$router.push({path:t.path})},collapseTag:function(t){console.log(t),this.collapseFlag=t}},mounted:function(){},computed:{}},n={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"contact-wrap"},[e("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),e("div",{staticClass:"contact-wrap__body"},[e("vue-office-aside",{ref:"leftMenus",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}}),t._v(" "),e("div",{staticClass:"contact-wrap__right"},[e("topNav",{attrs:{navpath:t.navpath}}),t._v(" "),e("div",{staticClass:"contact-wrap__right__body"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)],1)],1)],1)},staticRenderFns:[]};var c=e("VU/8")(o,n,!1,function(t){e("gRxx")},null,null);a.default=c.exports},gRxx:function(t,a){}});
//# sourceMappingURL=36.51d597ce8e1af0e5fa66.js.map
\ No newline at end of file
webpackJsonp([30],{"41Rh":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var o={name:"contact",components:{topNav:e("3Xzz").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,navpath:[{name:"首页",path:"/"},{name:"通讯录",path:""},{name:"企业通讯录"},{name:"行政架构"}]}},methods:{toRouterView:function(t){console.log(t),this.$router.push({path:t.path})},collapseTag:function(t){console.log(t),this.collapseFlag=t}},mounted:function(){},computed:{}},n={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"contact-wrap"},[e("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),e("div",{staticClass:"contact-wrap__body"},[e("vue-office-aside",{ref:"leftMenus",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}}),t._v(" "),e("div",{staticClass:"contact-wrap__right"},[e("topNav",{attrs:{navpath:t.navpath}}),t._v(" "),e("div",{staticClass:"contact-wrap__right__body"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)],1)],1)],1)},staticRenderFns:[]};var c=e("VU/8")(o,n,!1,function(t){e("vXWo")},null,null);a.default=c.exports},vXWo:function(t,a){}});
//# sourceMappingURL=30.a94af3c6036ef146759d.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/contacts/index.vue","webpack:///./src/views/contacts/index.vue?a378","webpack:///./src/views/contacts/index.vue"],"names":["contacts","name","components","topNav","data","projectName","collapseFlag","navpath","path","methods","toRouterView","val","console","log","this","$router","push","collapseTag","mounted","computed","views_contacts","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","on","_v","ref","mode","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"4GAqBAA,GACAC,KAAA,UACAC,YACAC,iBAAA,GAEAC,KALA,WAMA,OACAC,YAAA,oBACAC,cAAA,EAEAC,UAEAN,KAAA,KACAO,KAAA,MAGAP,KAAA,MACAO,KAAA,KAGAP,KAAA,UAGAA,KAAA,WAKAQ,SAEAC,aAFA,SAEAC,GAQAC,QAAAC,IAAAF,GAPAG,KAQAC,QAAAC,MACAR,KAAAG,EAAAH,QAKAS,YAjBA,SAiBAN,GAEAC,QAAAC,IAAAF,GADAG,KAEAR,aAAAK,IAGAO,QAnDA,aAsDAC,aCxEeC,GADEC,OAFjB,WAA0B,IAAAC,EAAAR,KAAaS,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,iBAA2BF,EAAA,qBAA0BG,OAAOvB,YAAAiB,EAAAjB,aAA8BwB,IAAKZ,YAAAK,EAAAL,YAAAP,aAAAY,EAAAZ,gBAA+DY,EAAAQ,GAAA,KAAAL,EAAA,OAAwBE,YAAA,uBAAiCF,EAAA,oBAAyBM,IAAA,YAAAH,OAAuBvB,YAAAiB,EAAAjB,YAAAC,aAAAgB,EAAAhB,gBAA+DgB,EAAAQ,GAAA,KAAAL,EAAA,OAAwBE,YAAA,wBAAkCF,EAAA,UAAeG,OAAOrB,QAAAe,EAAAf,WAAuBe,EAAAQ,GAAA,KAAAL,EAAA,OAAwBE,YAAA,8BAAwCF,EAAA,cAAmBG,OAAO3B,KAAA,OAAA+B,KAAA,YAA+BP,EAAA,oCAE/nBQ,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACEpC,EACAoB,GATF,EAVA,SAAAiB,GACEF,EAAQ,SAaV,KAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/30.a94af3c6036ef146759d.js","sourcesContent":["<template>\r\n <div class=\"contact-wrap\">\r\n <!-- 公共头部菜单插件 -->\r\n <vue-office-header :projectName=\"projectName\" @collapseTag=\"collapseTag\" @toRouterView=\"toRouterView\"></vue-office-header>\r\n <div class=\"contact-wrap__body\">\r\n <!-- 公共左侧菜单插件 -->\r\n <vue-office-aside ref=\"leftMenus\" :projectName=\"projectName\" :collapseFlag=\"collapseFlag\"></vue-office-aside>\r\n <!-- 右侧 body -->\r\n <div class=\"contact-wrap__right\">\r\n <topNav :navpath=\"navpath\"></topNav>\r\n <div class=\"contact-wrap__right__body\">\r\n <transition name=\"fade\" mode=\"out-in\">\r\n <router-view></router-view>\r\n </transition>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport topNav from 'components/nav/nav'\r\nexport default {\r\n name: \"contact\",\r\n components: {\r\n topNav\r\n },\r\n data() {\r\n return {\r\n projectName: 'haoban-manage-web', // 当前项目名\r\n collapseFlag: false, // 折叠参数\r\n // 面包屑导航数据\r\n navpath: [\r\n {\r\n name: '首页',\r\n path: '/'\r\n },\r\n {\r\n name: '通讯录',\r\n path: ''\r\n },\r\n {\r\n name: \"企业通讯录\"\r\n },\r\n {\r\n name: \"行政架构\"\r\n }\r\n ],\r\n }\r\n },\r\n methods: {\r\n // 处理路由跳转\r\n toRouterView(val) {\r\n var that = this;\r\n // 模拟检查数据\r\n // //有两个参数\r\n //{\r\n // name:,\r\n // path:\r\n //}\r\n console.log(val);\r\n that.$router.push({\r\n path: val.path\r\n })\r\n },\r\n\r\n // 折叠事件\r\n collapseTag(val) {\r\n var that = this;\r\n console.log(val);\r\n that.collapseFlag = val\r\n },\r\n },\r\n mounted() {\r\n\r\n },\r\n computed: {\r\n\r\n }\r\n}\r\n\r\n</script>\r\n<style lang=\"less\">\r\n .contact-wrap {\r\n position: relative;\r\n\r\n &__body {\r\n display: -ms-flexbox;\r\n display: flex;\r\n width: 100%;\r\n overflow: hidden;\r\n padding-top: 64px;\r\n -webkit-box-sizing: border-box;\r\n -moz-box-sizing: border-box;\r\n box-sizing: border-box;\r\n overflow: auto;\r\n min-width: 1400px;\r\n background: #f5f7fa;\r\n }\r\n\r\n &__right {\r\n -ms-flex: 1;\r\n flex: 1;\r\n overflow: auto;\r\n width: 100%;\r\n\r\n &__body {\r\n padding: 24px;\r\n\r\n }\r\n }\r\n }\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/contacts/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"contact-wrap\"},[_c('vue-office-header',{attrs:{\"projectName\":_vm.projectName},on:{\"collapseTag\":_vm.collapseTag,\"toRouterView\":_vm.toRouterView}}),_vm._v(\" \"),_c('div',{staticClass:\"contact-wrap__body\"},[_c('vue-office-aside',{ref:\"leftMenus\",attrs:{\"projectName\":_vm.projectName,\"collapseFlag\":_vm.collapseFlag}}),_vm._v(\" \"),_c('div',{staticClass:\"contact-wrap__right\"},[_c('topNav',{attrs:{\"navpath\":_vm.navpath}}),_vm._v(\" \"),_c('div',{staticClass:\"contact-wrap__right__body\"},[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[_c('router-view')],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-55e67ae1\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/contacts/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-55e67ae1\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-55e67ae1\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/contacts/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([31],{PyMm:function(e,t){},TGrv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"unemployee-wrap"})},staticRenderFns:[]};var r=n("VU/8")({name:"unemployee",data:function(){return{}},computed:{},methods:{},mounted:function(){}},a,!1,function(e){n("PyMm")},"data-v-39a5df26",null);t.default=r.exports}});
//# sourceMappingURL=31.2759432e7ecb5cadd48a.js.map
\ No newline at end of file
webpackJsonp([32],{PyMm:function(e,t){},TGrv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"unemployee-wrap"})},staticRenderFns:[]};var r=n("VU/8")({name:"unemployee",data:function(){return{}},computed:{},methods:{},mounted:function(){}},a,!1,function(e){n("PyMm")},"data-v-39a5df26",null);t.default=r.exports}});
//# sourceMappingURL=32.27cc26bb85ea054d8379.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/contacts/unemployee.vue","webpack:///./src/views/contacts/unemployee.vue?782e","webpack:///./src/views/contacts/unemployee.vue"],"names":["contacts_unemployee","render","_h","this","$createElement","_self","_c","staticClass","staticRenderFns","Component","__webpack_require__","normalizeComponent","name","data","computed","methods","mounted","ssrContext","__webpack_exports__"],"mappings":"2HAMA,ICHeA,GADEC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,OAAiBK,YAAA,qBAEzFC,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,EFVAC,KAAA,aACAC,KAFA,WAGA,UAIAC,YAGAC,WAGAC,QAbA,cEaEhB,GATF,EAVA,SAAAiB,GACEP,EAAQ,SAaV,kBAEA,MAUeQ,EAAA,QAAAT,EAAiB","file":"static/js/31.2759432e7ecb5cadd48a.js","sourcesContent":["<template>\r\n <div class=\"unemployee-wrap\">\r\n </div>\r\n</template>\r\n<script>\r\n\r\nexport default {\r\n name: \"unemployee\",\r\n data() {\r\n return {\r\n\r\n }\r\n },\r\n computed: {\r\n\r\n },\r\n methods: {\r\n\r\n },\r\n mounted() {\r\n\r\n },\r\n}\r\n\r\n</script>\r\n<style lang=\"less\" scoped>\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/contacts/unemployee.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"unemployee-wrap\"})}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-39a5df26\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/contacts/unemployee.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-39a5df26\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./unemployee.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./unemployee.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./unemployee.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-39a5df26\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./unemployee.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-39a5df26\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/contacts/unemployee.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/contacts/unemployee.vue","webpack:///./src/views/contacts/unemployee.vue?782e","webpack:///./src/views/contacts/unemployee.vue"],"names":["contacts_unemployee","render","_h","this","$createElement","_self","_c","staticClass","staticRenderFns","Component","__webpack_require__","normalizeComponent","name","data","computed","methods","mounted","ssrContext","__webpack_exports__"],"mappings":"2HAMA,ICHeA,GADEC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,OAAiBK,YAAA,qBAEzFC,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,EFVAC,KAAA,aACAC,KAFA,WAGA,UAIAC,YAGAC,WAGAC,QAbA,cEaEhB,GATF,EAVA,SAAAiB,GACEP,EAAQ,SAaV,kBAEA,MAUeQ,EAAA,QAAAT,EAAiB","file":"static/js/32.27cc26bb85ea054d8379.js","sourcesContent":["<template>\r\n <div class=\"unemployee-wrap\">\r\n </div>\r\n</template>\r\n<script>\r\n\r\nexport default {\r\n name: \"unemployee\",\r\n data() {\r\n return {\r\n\r\n }\r\n },\r\n computed: {\r\n\r\n },\r\n methods: {\r\n\r\n },\r\n mounted() {\r\n\r\n },\r\n}\r\n\r\n</script>\r\n<style lang=\"less\" scoped>\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/contacts/unemployee.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"unemployee-wrap\"})}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-39a5df26\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/contacts/unemployee.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-39a5df26\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./unemployee.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./unemployee.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./unemployee.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-39a5df26\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./unemployee.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-39a5df26\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/contacts/unemployee.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([32],{AdJp:function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var a=n("WSbm"),t=n("P9l9"),s={name:"employeeDetail",components:{employeeInfo:a.a},data:function(){return{managerMode:!1}},methods:{save:function(e){var o=this.$refs.emmployInfo.info;console.log(o,"ssss"),this.isNew?this.addEmployee(o,e):this.saveEmployeeInfo(o)},addEmployee:function(e,o){var n=this,a={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode};console.log(e,a),Object(t.a)("/haoban-manage-web/emp/add",a).then(function(e){console.log(e,"add result"),1==e.data.errorCode?(n.$message.success({message:"操作成功"}),1==o?n.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1}:window.history.go(-1)):n.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error")})},saveEmployeeInfo:function(e){var o=this,n={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,employeeClerkId:o.$route.query.employeeClerkId,managerMode:1*e.managerMode};console.log(e,n),Object(t.a)("/haoban-manage-web/emp/update",n).then(function(e){console.log(e,"update result"),1==e.data.errorCode?o.$message.success({message:"操作成功"}):o.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error"),o.$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}}},r={render:function(){var e=this,o=e.$createElement,n=e._self._c||o;return n("div",{staticClass:"employee-detail"},[n("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),n("div",{staticClass:"btn-boxs"},[n("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")]),e._v(" "),e.isNew?n("el-button",{attrs:{type:"primary"},on:{click:function(o){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),n("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)],1)},staticRenderFns:[]};var m=n("VU/8")(s,r,!1,function(e){n("PLur")},null,null);o.default=m.exports},PLur:function(e,o){}});
//# sourceMappingURL=32.441d630be4a90fe2cda8.js.map
\ No newline at end of file
webpackJsonp([33],{AdJp:function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var a=n("WSbm"),t=n("P9l9"),s={name:"employeeDetail",components:{employeeInfo:a.a},data:function(){return{managerMode:!1}},methods:{save:function(e){var o=this.$refs.emmployInfo.info;console.log(o,"ssss"),this.isNew?this.addEmployee(o,e):this.saveEmployeeInfo(o)},addEmployee:function(e,o){var n=this,a={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode};console.log(e,a),Object(t.a)("/haoban-manage-web/emp/add",a).then(function(e){console.log(e,"add result"),1==e.data.errorCode?(n.$message.success({message:"操作成功"}),1==o?n.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1}:window.history.go(-1)):n.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error")})},saveEmployeeInfo:function(e){var o=this,n={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,employeeClerkId:o.$route.query.employeeClerkId,managerMode:1*e.managerMode};console.log(e,n),Object(t.a)("/haoban-manage-web/emp/update",n).then(function(e){console.log(e,"update result"),1==e.data.errorCode?o.$message.success({message:"操作成功"}):o.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error"),o.$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}}},r={render:function(){var e=this,o=e.$createElement,n=e._self._c||o;return n("div",{staticClass:"employee-detail"},[n("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),n("div",{staticClass:"btn-boxs"},[n("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")]),e._v(" "),e.isNew?n("el-button",{attrs:{type:"primary"},on:{click:function(o){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),n("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)],1)},staticRenderFns:[]};var m=n("VU/8")(s,r,!1,function(e){n("PLur")},null,null);o.default=m.exports},PLur:function(e,o){}});
//# sourceMappingURL=33.482aacb47cc3b9bb0733.js.map
\ No newline at end of file
webpackJsonp([33],{UJFb:function(e,t){},mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Ie7z"),r=a("P9l9"),o={name:"store-view-group-info",components:{vueSelectStore:n.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{handleSelectedList:function(e){var t=e[0];console.log(t),this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.label:""},callGroupSelector:function(){this.$refs.storeSelector.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var n=e,o={parentId:n.departInfo.parentId,name:n.departInfo.name},s="";n.isAddNew?s="/haoban-manage-web/dept/insert":(s="/haoban-manage-web/dept/update",o.groupId=n.$route.query.groupId),Object(r.a)(s,o).then(function(e){console.log(e),1==e.data.errorCode?(n.$message.success({duration:1e3,message:"操作成功!"}),console.log(t),"continue"==t?(n.departInfo={name:"",parentName:"",parentId:""},n.disabled=!0,n.getGroupData()):window.history.go(-1)):n.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(r.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId}:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}},beforeMount:function(){this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var i=a("VU/8")(o,s,!1,function(e){a("UJFb")},null,null);t.default=i.exports}});
//# sourceMappingURL=33.8297127be9d9ede61fbd.js.map
\ No newline at end of file
webpackJsonp([34],{UJFb:function(e,t){},mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Ie7z"),r=a("P9l9"),o={name:"store-view-group-info",components:{vueSelectStore:n.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{handleSelectedList:function(e){var t=e[0];console.log(t),this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.label:""},callGroupSelector:function(){this.$refs.storeSelector.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var n=e,o={parentId:n.departInfo.parentId,name:n.departInfo.name},s="";n.isAddNew?s="/haoban-manage-web/dept/insert":(s="/haoban-manage-web/dept/update",o.groupId=n.$route.query.groupId),Object(r.a)(s,o).then(function(e){console.log(e),1==e.data.errorCode?(n.$message.success({duration:1e3,message:"操作成功!"}),console.log(t),"continue"==t?(n.departInfo={name:"",parentName:"",parentId:""},n.disabled=!0,n.getGroupData()):window.history.go(-1)):n.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(r.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId}:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}},beforeMount:function(){this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var i=a("VU/8")(o,s,!1,function(e){a("UJFb")},null,null);t.default=i.exports}});
//# sourceMappingURL=34.19c70849445ca1ed90ee.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/contacts/index.vue","webpack:///./src/views/contacts/index.vue?fb97","webpack:///./src/views/contacts/index.vue"],"names":["contacts","name","components","topNav","data","projectName","collapseFlag","navpath","path","methods","toRouterView","val","console","log","this","$router","push","collapseTag","mounted","computed","views_contacts","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","on","_v","ref","mode","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"4GAqBAA,GACAC,KAAA,UACAC,YACAC,iBAAA,GAEAC,KALA,WAMA,OACAC,YAAA,oBACAC,cAAA,EAEAC,UAEAN,KAAA,KACAO,KAAA,MAGAP,KAAA,MACAO,KAAA,KAGAP,KAAA,UAGAA,KAAA,WAKAQ,SAEAC,aAFA,SAEAC,GAQAC,QAAAC,IAAAF,GAPAG,KAQAC,QAAAC,MACAR,KAAAG,EAAAH,QAKAS,YAjBA,SAiBAN,GAEAC,QAAAC,IAAAF,GADAG,KAEAR,aAAAK,IAGAO,QAnDA,aAsDAC,aCxEeC,GADEC,OAFjB,WAA0B,IAAAC,EAAAR,KAAaS,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,iBAA2BF,EAAA,qBAA0BG,OAAOvB,YAAAiB,EAAAjB,aAA8BwB,IAAKZ,YAAAK,EAAAL,YAAAP,aAAAY,EAAAZ,gBAA+DY,EAAAQ,GAAA,KAAAL,EAAA,OAAwBE,YAAA,uBAAiCF,EAAA,oBAAyBM,IAAA,YAAAH,OAAuBvB,YAAAiB,EAAAjB,YAAAC,aAAAgB,EAAAhB,gBAA+DgB,EAAAQ,GAAA,KAAAL,EAAA,OAAwBE,YAAA,wBAAkCF,EAAA,UAAeG,OAAOrB,QAAAe,EAAAf,WAAuBe,EAAAQ,GAAA,KAAAL,EAAA,OAAwBE,YAAA,8BAAwCF,EAAA,cAAmBG,OAAO3B,KAAA,OAAA+B,KAAA,YAA+BP,EAAA,oCAE/nBQ,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACEpC,EACAoB,GATF,EAVA,SAAAiB,GACEF,EAAQ,SAaV,KAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/36.51d597ce8e1af0e5fa66.js","sourcesContent":["<template>\n <div class=\"contact-wrap\">\n <!-- 公共头部菜单插件 -->\n <vue-office-header :projectName=\"projectName\" @collapseTag=\"collapseTag\" @toRouterView=\"toRouterView\"></vue-office-header>\n <div class=\"contact-wrap__body\">\n <!-- 公共左侧菜单插件 -->\n <vue-office-aside ref=\"leftMenus\" :projectName=\"projectName\" :collapseFlag=\"collapseFlag\"></vue-office-aside>\n <!-- 右侧 body -->\n <div class=\"contact-wrap__right\">\n <topNav :navpath=\"navpath\"></topNav>\n <div class=\"contact-wrap__right__body\">\n <transition name=\"fade\" mode=\"out-in\">\n <router-view></router-view>\n </transition>\n </div>\n </div>\n </div>\n </div>\n</template>\n<script>\nimport topNav from 'components/nav/nav'\nexport default {\n name: \"contact\",\n components: {\n topNav\n },\n data() {\n return {\n projectName: 'haoban-manage-web', // 当前项目名\n collapseFlag: false, // 折叠参数\n // 面包屑导航数据\n navpath: [\n {\n name: '首页',\n path: '/'\n },\n {\n name: '通讯录',\n path: ''\n },\n {\n name: \"企业通讯录\"\n },\n {\n name: \"行政架构\"\n }\n ],\n }\n },\n methods: {\n // 处理路由跳转\n toRouterView(val) {\n var that = this;\n // 模拟检查数据\n // //有两个参数\n //{\n // name:,\n // path:\n //}\n console.log(val);\n that.$router.push({\n path: val.path\n })\n },\n\n // 折叠事件\n collapseTag(val) {\n var that = this;\n console.log(val);\n that.collapseFlag = val\n },\n },\n mounted() {\n\n },\n computed: {\n\n }\n}\n\n</script>\n<style lang=\"less\">\n .contact-wrap {\n position: relative;\n\n &__body {\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n overflow: hidden;\n padding-top: 64px;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n overflow: auto;\n min-width: 1400px;\n background: #f5f7fa;\n }\n\n &__right {\n -ms-flex: 1;\n flex: 1;\n overflow: auto;\n width: 100%;\n\n &__body {\n padding: 24px;\n\n }\n }\n }\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/views/contacts/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"contact-wrap\"},[_c('vue-office-header',{attrs:{\"projectName\":_vm.projectName},on:{\"collapseTag\":_vm.collapseTag,\"toRouterView\":_vm.toRouterView}}),_vm._v(\" \"),_c('div',{staticClass:\"contact-wrap__body\"},[_c('vue-office-aside',{ref:\"leftMenus\",attrs:{\"projectName\":_vm.projectName,\"collapseFlag\":_vm.collapseFlag}}),_vm._v(\" \"),_c('div',{staticClass:\"contact-wrap__right\"},[_c('topNav',{attrs:{\"navpath\":_vm.navpath}}),_vm._v(\" \"),_c('div',{staticClass:\"contact-wrap__right__body\"},[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[_c('router-view')],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-0a45e2c2\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/contacts/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-0a45e2c2\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-0a45e2c2\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/contacts/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([36],{"7Q11":function(e,t){},da9f:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={name:"enterprise",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1}},computed:{},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},mounted:function(){}},n={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"enterprise-wrap"},[t("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),t("div",{staticClass:"enterprise-wrap__body"})],1)},staticRenderFns:[]};var s=a("VU/8")(o,n,!1,function(e){a("7Q11")},"data-v-16c9a8fa",null);t.default=s.exports}});
//# sourceMappingURL=36.7e9c7fa8d66f196321a6.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/views/enterpriseApp/index.vue","webpack:///./src/views/enterpriseApp/index.vue?b850","webpack:///./src/views/enterpriseApp/index.vue"],"names":["enterpriseApp","name","data","projectName","collapseFlag","computed","methods","toRouterView","val","console","log","this","$router","push","path","collapseTag","mounted","views_enterpriseApp","render","_h","$createElement","_c","_self","staticClass","attrs","on","_v","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"6HAUA,IAAAA,GACAC,KAAA,aACAC,KAFA,WAGA,OACAC,YAAA,oBACAC,cAAA,IAGAC,YAGAC,SAEAC,aAFA,SAEAC,GAQAC,QAAAC,IAAAF,GAPAG,KAQAC,QAAAC,MACAC,KAAAN,EAAAM,QAKAC,YAjBA,SAiBAP,GAEAC,QAAAC,IAAAF,GADAG,KAEAP,aAAAI,IAGAQ,QAlCA,cCPeC,GADEC,OAFjB,WAA0B,IAAaC,EAAbR,KAAaS,eAA0BC,EAAvCV,KAAuCW,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,oBAA8BF,EAAA,qBAA0BG,OAAOrB,YAA/IQ,KAA+IR,aAA8BsB,IAAKV,YAAlLJ,KAAkLI,YAAAR,aAAlLI,KAAkLJ,gBAAlLI,KAAiPe,GAAA,KAAAL,EAAA,OAAwBE,YAAA,2BAAoC,IAEtTI,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACE9B,EACAiB,GATF,EAVA,SAAAc,GACEF,EAAQ,SAaV,kBAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/36.7e9c7fa8d66f196321a6.js","sourcesContent":["<template>\r\n <div class=\"enterprise-wrap\">\r\n <!-- 公共头部菜单插件 -->\r\n <vue-office-header :projectName=\"projectName\" @collapseTag=\"collapseTag\" @toRouterView=\"toRouterView\"></vue-office-header>\r\n <div class=\"enterprise-wrap__body\">\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\n\r\nexport default {\r\n name: \"enterprise\",\r\n data() {\r\n return {\r\n projectName: 'haoban-manage-web', // 当前项目名\r\n collapseFlag: false, // 折叠参数\r\n }\r\n },\r\n computed: {\r\n\r\n },\r\n methods: {\r\n // 处理路由跳转\r\n toRouterView(val) {\r\n var that = this;\r\n // 模拟检查数据\r\n // //有两个参数\r\n //{\r\n // name:,\r\n // path:\r\n //}\r\n console.log(val);\r\n that.$router.push({\r\n path: val.path\r\n })\r\n },\r\n\r\n // 折叠事件\r\n collapseTag(val) {\r\n var that = this;\r\n console.log(val);\r\n that.collapseFlag = val\r\n },\r\n },\r\n mounted() {\r\n\r\n },\r\n}\r\n\r\n</script>\r\n<style lang=\"less\" scoped>\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/enterpriseApp/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"enterprise-wrap\"},[_c('vue-office-header',{attrs:{\"projectName\":_vm.projectName},on:{\"collapseTag\":_vm.collapseTag,\"toRouterView\":_vm.toRouterView}}),_vm._v(\" \"),_c('div',{staticClass:\"enterprise-wrap__body\"})],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-16c9a8fa\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/enterpriseApp/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-16c9a8fa\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-16c9a8fa\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-16c9a8fa\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/enterpriseApp/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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.
!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={42: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:"90abe459ca92f2086fc8",1:"26fc7c6e9b4ccca95f46",2:"ee165cd7c3da71f4e1e5",3:"98659ec7f9f5097a9c37",4:"d9690b0c5354e8779d21",5:"dd926de4c90e3985f8dd",6:"31d9257284e354708964",7:"39753f473ac9222e82bf",8:"a9bf7ebaf5c9ef1d0df1",9:"32116b92509eb075068c",10:"294b816641b5e4b02ec7",11:"40f64c54d88a7a79b2f5",12:"b36ac0c6ccad6cfed0eb",13:"ebd6dd7ee23e5703e425",14:"bbe4ae29da23732a53d7",15:"e041c7ed9f836ff33a5d",16:"269ef2aa34c370120650",17:"0392e5f15a3db17332b0",18:"bf72547d03e968bea528",19:"162799ced722283cb7fb",20:"838bafd09be372f4cb24",21:"9acfde17b5f0397937fa",22:"6ebc92617843d8ddce0c",23:"e52df146f5206f9bf18d",24:"8ae2e8183cb94067ec31",25:"121f35a02040f60c89dc",26:"b0077af7f571b44aac71",27:"eaf7c9536d6ea11d4bf5",28:"a61f241bf6eda2f841d5",29:"feb119f737fafcfa0252",30:"a94af3c6036ef146759d",31:"44296cc22e270ea40c8c",32:"27cc26bb85ea054d8379",33:"482aacb47cc3b9bb0733",34:"19c70849445ca1ed90ee",35:"58d4c515235752f2886d",36:"7e9c7fa8d66f196321a6",37:"f18973f306ce3778dd66",38:"4ce42c1a07e83f31f7d3",41:"94b7a796e1e7cbc5f9b0"}[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.61d6d19e7b8bcdfe39ae.js.map
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,n,r){for(var t,o,b,i=0,u=[];i<c.length;i++)o=c[i],d[o]&&u.push(d[o][0]),d[o]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(a&&a(c,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=f(f.s=r[i]);return b};var c={},d={42:0};function f(a){if(c[a])return c[a].exports;var d=c[a]={i:a,l:!1,exports:{}};return e[a].call(d.exports,d,d.exports,f),d.l=!0,d.exports}f.e=function(e){var a=d[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,f){a=d[e]=[c,f]});a[2]=c;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,f.nc&&r.setAttribute("nonce",f.nc),r.src=f.p+"static/js/"+e+"."+{0:"cfa072eb11d548814aac",1:"26fc7c6e9b4ccca95f46",2:"ee165cd7c3da71f4e1e5",3:"98659ec7f9f5097a9c37",4:"d9690b0c5354e8779d21",5:"dd926de4c90e3985f8dd",6:"8d52d50a32f1f4b80d53",7:"39753f473ac9222e82bf",8:"f265348976380e4b5edd",9:"676022d3fadcd8f4fc91",10:"294b816641b5e4b02ec7",11:"8402660b7db9b7aecaa4",12:"e6d7674b2806fe734293",13:"ebd6dd7ee23e5703e425",14:"bbe4ae29da23732a53d7",15:"e041c7ed9f836ff33a5d",16:"38e2e8bb281a046d0a5f",17:"54b1fdea6bf1c163d4db",18:"20ded4fcaee76d2ec5c0",19:"fa30b19f8f6b906ab779",20:"b875b8cda2152e546a50",21:"b5c1a8410160395d1a49",22:"246ef46110a7b99a49dd",23:"70ffa83b35cac076db3e",24:"83ee2a8f18f168ea6f86",25:"6cc97e6afe73c2b498f9",26:"097fc6739abfb88a4fbb",27:"1fd28096f10f0528393e",28:"90e7ec3a14d1390d071a",29:"00cdae8414a1bac88276",30:"03094aaf28cd4d49e0e7",31:"2759432e7ecb5cadd48a",32:"441d630be4a90fe2cda8",33:"8297127be9d9ede61fbd",34:"a37c0bfade938af77a93",35:"58d4c515235752f2886d",36:"51d597ce8e1af0e5fa66",37:"f18973f306ce3778dd66",38:"4ce42c1a07e83f31f7d3",41:"8200e4a2e6aadd3a2d4b"}[e]+".js";var t=setTimeout(o,12e4);function o(){r.onerror=r.onload=null,clearTimeout(t);var a=d[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return r.onerror=r.onload=o,n.appendChild(r),c},f.m=e,f.c=c,f.d=function(e,a,c){f.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},f.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(a,"a",a),a},f.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.71609ce14695d34544c5.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.
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.
......@@ -2,12 +2,126 @@
<div class="editable-cell-container">
<div class="title-div">
<span>{{title}}</span>
<a class="a-href">编辑</a>
<div class="hurdle"></div>
<a class="a-href" @click="showEdit = !showEdit">编辑</a>
</div>
<el-form></el-form>
<el-form
class="info-form"
inline
label-width="150px"
v-model="info">
<template v-for="(item, idx) in fieldList">
<el-form-item :label="item.title+':'" class="item-width" :key="item.fieldCode+'_'+idx">
<template v-if="!!item.systemFlag">
<template v-if="showEdit">
<el-input v-model="info[item.fieldCode]" v-if="item.fieldType == 0 || item.fieldType == 6"></el-input>
<el-input v-model="info[item.fieldCode]" v-else-if="item.fieldType == 1" type="textarea" autosize></el-input>
<el-select
v-else-if="item.fieldType == 2 || item.fieldType == 3"
:multiple="item.fieldType == 3"
:collapse-tags="item.fieldType == 3"
v-model="info[item.fieldCode]"
:placeholder="item.fieldDescription">
<el-option
v-for="cho in item.fieldOperations.fieldContent"
:key="cho.key"
:label="cho.name"
:value="cho.key">
</el-option>
</el-select>
<el-date-picker
:format="item.fieldOperations.typeValue"
value-format="timestamp"
v-else-if="item.fieldType == 4"
v-model="info[item.fieldCode]"
type="date"
:placeholder="item.fieldDescription">
</el-date-picker>
<el-date-picker
v-else-if="item.fieldType == 5"
v-model="info[item.fieldCode]"
type="daterange"
range-separator="至"
:format="item.fieldOperations.typeValue"
value-format="timestamp"
:start-placeholder="item.fieldOperations.startDescription"
:end-placeholder="item.fieldOperations.endDescription">
</el-date-picker>
<vue-gic-upload-image
v-else-if="item.fieldType == 7"
projectName="gic-web"
wxFlag="0"
:actionUrl="uploadUrl"
:imageList="(!!info[item.fieldCode] ? info[item.fieldCode].split(',') : [])"
:limitW="500"
:limitH="500"
:maxImageLength="5"
@uploadOnSuccess="uploadOnSuccess"
@sortImg="sortImg"
@deleteImage="deleteImage">
</vue-gic-upload-image>
</template>
<template v-else>
<div>{{info[item.fieldCode]}}</div>
</template>
</template>
<template v-else>
<el-input v-model="defineObj[item.fieldCode]" v-if="item.fieldType == 0 || item.fieldType == 6"></el-input>
<el-input v-model="defineObj[item.fieldCode]" v-else-if="item.fieldType == 1" type="textarea" autosize></el-input>
<el-select
v-else-if="item.fieldType == 2 || item.fieldType == 3"
:multiple="item.fieldType == 3"
:collapse-tags="item.fieldType == 3"
v-model="defineObj[item.fieldCode]"
:placeholder="item.fieldDescription">
<el-option
v-for="cho in item.fieldOperations.fieldContent"
:key="cho.key"
:label="cho.name"
:value="cho.key">
</el-option>
</el-select>
<el-date-picker
:format="item.fieldOperations.typeValue"
value-format="timestamp"
v-else-if="item.fieldType == 4"
v-model="defineObj[item.fieldCode]"
type="date"
:placeholder="item.fieldDescription">
</el-date-picker>
<el-date-picker
v-else-if="item.fieldType == 5"
v-model="defineObj[item.fieldCode]"
type="daterange"
range-separator="至"
:format="item.fieldOperations.typeValue"
value-format="timestamp"
:start-placeholder="item.fieldOperations.startDescription"
:end-placeholder="item.fieldOperations.endDescription">
</el-date-picker>
<vue-gic-upload-image
v-else-if="item.fieldType == 7"
projectName="gic-web"
wxFlag="0"
:actionUrl="uploadUrl"
:imageList="(!!defineObj[item.fieldCode] ? defineObj[item.fieldCode].split(',') : [])"
:limitW="500"
:limitH="500"
:maxImageLength="5"
@uploadOnSuccess="uploadOnSuccess"
@sortImg="sortImg"
@deleteImage="deleteImage">
</vue-gic-upload-image>
<div v-else>{{defineObj[item.fieldCode]}}</div>
</template>
</el-form-item>
</template>
</el-form>
</div>
</template>
<script>
import { getRequest, postRequest, postJsonRequest } from '@/api/api';
let soan= `<span></span>`;
export default {
name: "editableCell",
props: {
......@@ -22,11 +136,62 @@ export default {
title: {
type: String,
default: ""
},
fieldList: {
type: Array,
required: true
}
},
data() {
let local = window.location.origin;
if (local.indexOf('localhost')!= -1) {
local = 'http://www.gicdev.com';
}
return {
showEdit: false,
uploadUrl: local + "/haoban-manage-web/upload-img"
};
},
methods: {
uploadOnSuccess() {},
sortImg() {},
deleteImage() {}
},
computed: {
defineObj() {
console.log(JSON.parse(this.info.defineString));
return JSON.parse(this.info.defineString);
}
}
}
</script>
<style lang="scss">
.editable-cell-container {
.title-div {
width: 100%;
display: flex;
height: 16px;
margin-bottom: 45px;
.hurdle {
flex: 1;
height: 0;
border-top: 1px solid #E4E7ED;
margin: 8px 10px 0;
}
.a-href {
font-size: 14px;
margin-top: 1px;
}
}
.info-form {
margin-bottom: 65px;
.item-width {
width: 49%;
.el-input, .el-textarea {
width: 350px;
}
}
}
}
</style>
......@@ -6,14 +6,17 @@
<p class="head-cell"><img :src="info.headPic" class="head-img"></p>
<p class="head-cell name">{{info.clerkName}}<span>{{statusList[info.clerkStatus - 1]}}</span></p>
<p class="head-cell c-303133">{{info.groupName}}{{info.positionName}}</p>
<p class="head-cell">已在{{info.contractCompany}}工作了{{info.days}}</p>
<p class="head-cell">已在{{info.enterpriseName}}工作了{{info.days}}</p>
</div>
</div>
<editable-cell :info="info" :items="items" title="基础信息"></editable-cell>
<template v-for="field in fieldList">
<editable-cell v-if="field.childrens" :key="field.fieldCode" :info="info" :items="items" :title="field.title" :fieldList="field.childrens"></editable-cell>
</template>
</div>
</template>
<script>
import { getRequest, postRequest, postJsonRequest } from '@/api/api';
import { deepCopy } from '@/utils/index';
import editableCell from "components/employeeRecord/editableCell";
export default {
name: "recordInfo",
......@@ -24,7 +27,8 @@ export default {
return {
info: {},
statusList: ["正式", "试用", "离职"],
items: []
items: [],
fieldList: [],
}
},
methods: {
......@@ -49,9 +53,58 @@ export default {
message: e.message
});
});
},
getTemplate() {
let ths = this;
getRequest("/haoban-manage-web/record/employee-find-template", {})
.then(res => {
console.log(res, "模板");
if (res.data.errorCode == 1) {
ths.formatTemplateList(res.data.result);
} else {
ths.$message.error({
message: res.data.message
});
}
})
.catch(e => {
ths.$message.error({
message: e.message
});
});
},
formatTemplateList(list) {
let ths = this;
let fieldList = this.fieldList;
let copyData = list;
list.forEach(tem => {
if (tem.parentCode != 0) {
tem.fieldOperations = JSON.parse(tem.fieldOperations);
}
console.log(tem.fieldType, tem.fieldOperations, tem);
tem.title = tem.fieldName;
let arr = [];
copyData.forEach(li => {
if (li.parentCode == tem.fieldCode) {
arr.push(li);
}
});
arr.sort(function(a,b){
return a.sort*1-b.sort*1;
});
if (arr.length > 0) tem["childrens"] = arr;
if (tem.parentCode == 0) {
fieldList.push(tem);
}
});
fieldList.sort(function(a,b){
return a.sort*1-b.sort*1;
});
console.log(fieldList, "new fieldList");
}
},
beforeMount() {
this.getTemplate();
this.getEmployeeDetail();
}
}
......@@ -61,7 +114,7 @@ export default {
padding: 30px;
.employee-detail {
.head-info {
margin-top: 20px;
margin: 20px 0 70px;
text-align: center;
font-size: 14px;
color: #606266;
......
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