Commit a25bf26b by 无尘

style: 修改样式

parent 4c787c47
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.e07e07b3182a5d55788b2f4e88b8358b.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.a793b80ab43e679c1e35.js></script><script type=text/javascript src=./static/js/vendor.701d87797408570afb68.js></script><script type=text/javascript src=./static/js/app.4e979cc627ce4d6a3269.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.519fde5b2efe02c366d2847d54b3b551.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.d84609c19dfc74127855.js></script><script type=text/javascript src=./static/js/vendor.fe6bbed1214c1931680c.js></script><script type=text/javascript src=./static/js/app.3e3253b61b9a3fac6326.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([18],{"67iC":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("3Xzz"),s=i("P9l9"),l=i("0xDb"),o=i("mvHQ"),n=i.n(o),d={name:"editableCell",props:{info:{type:Object,required:!0},staticInfo:{type:Object,required:!0},items:{type:Array,required:!0},title:{type:String,default:""},fieldList:{type:Array,required:!0}},filters:{formatDate:l.b},data:function(){return{showEdit:!1,uploadUrl:"/haoban-manage-web/upload-img"}},methods:{uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},saveEdit:function(){var e=this;e.$refs.cell_form.validate(function(t){if(t){var i=Object(l.a)(e.info),a={},s=e.fieldList,o=(JSON.parse(e.staticInfo.defineString),[]);s.forEach(function(e){if(a[e.fieldCode]=i[e.fieldCode],5==e.fieldType&&(a[e.fieldCode]=i[e.fieldCode].join(",")),7==e.fieldType){var t=[];i[e.fieldCode].forEach(function(e){t.push(e.url)}),a[e.fieldCode]=t.join(",")}if(1!=e.systemFlag){if(o.push({fieldCode:e.fieldCode,fieldValue:i[e.fieldCode]}),5==e.fieldType&&o.push({fieldCode:e.fieldCode,fieldValue:i[e.fieldCode].join(",")}),7==e.fieldType){var s=[];i[e.fieldCode].forEach(function(e){s.push(e.url)}),o.push({fieldCode:e.fieldCode,fieldValue:s.join(",")})}delete a[e.fieldCode]}}),a.jsonString="[]"==n()(o)?"":n()(o),a.recordId=e.$route.query.recordId,e.submitEdit(a)}})},submitEdit:function(e){var t=this;Object(s.a)("/haoban-manage-web/record/save-record-detail",e).then(function(e){console.log(e,"submitEdit"),1==e.data.errorCode?(t.showEdit=!1,t.$emit("subSuccess")):t.$message({message:e.data.message})}).catch(function(e){t.$message({message:e.message})})},cancelEdit:function(){this.$refs.cell_form.clearValidate();var e=this.info,t=this.staticInfo;for(var i in e)e[i]=t[i];this.showEdit=!1}},computed:{defineObj:function(){return JSON.parse(this.clerkInfo.defineString)},rules:function(){var e={},t=function(e,t,i){return t?new RegExp("^[0-9]*$").test(1*t)?i():i(new Error("请输入数字!")):i()};return this.fieldList.forEach(function(i){var a=[];0!=i.fieldType&&1!=i.fieldType||(i.minCount&&i.maxCount&&a.push({min:i.minCount,message:"至少填写"+i.minCount+"个字符",trigger:"change"}),!i.minCount&&i.maxCount&&a.push({max:i.maxCount,message:"至多填写"+i.maxCount+"个字符",trigger:"change"}),i.minCount&&i.maxCount&&a.push({min:i.minCount,max:i.maxCount,message:"长度在 "+i.minCount+" 到 "+i.maxCount+"个字符",trigger:"change"})),6==i.fieldType&&a.push({validator:t,message:i.fieldName+"必须为数字",trigger:"change"}),e[i.fieldCode]=a}),e}}},r={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",{staticClass:"font-w-500"},[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=!0}}},[e._v("编辑")])]),e._v(" "),i("el-form",{ref:"cell_form",staticClass:"info-form",attrs:{rules:e.rules,inline:"","label-width":"150px",model:e.info}},[e._l(e.fieldList,function(t,a){return[i("el-form-item",{key:t.fieldCode+"_"+a,staticClass:"item-width",attrs:{label:t.title+":",prop:t.fieldCode}},[e.showEdit?[0==t.fieldType?i("el-input",{attrs:{placeholder:t.fieldDescription,disabled:"1"!=t.fieldEdited},model:{value:e.info[t.fieldCode],callback:function(i){e.$set(e.info,t.fieldCode,i)},expression:"info[item.fieldCode]"}}):e._e(),e._v(" "),6==t.fieldType?i("el-input",{attrs:{placeholder:t.fieldDescription,disabled:"1"!=t.fieldEdited},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:"",disabled:"1"!=t.fieldEdited},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?[1==t.systemFlag?i("el-select",{attrs:{disabled:"1"!=t.fieldEdited,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}})})):i("el-select",{attrs:{disabled:"1"!=t.fieldEdited,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,t){return i("el-option",{key:e.key+"_"+t,attrs:{label:e.name,value:e.name}})}))]:4==t.fieldType?i("el-date-picker",{attrs:{type:"date",disabled:"1"!=t.fieldEdited,format:t.fieldOperations.typeValue,"value-format":t.fieldOperations.typeValue,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":"至",disabled:"1"!=t.fieldEdited,format:t.fieldOperations.typeValue,"value-format":t.fieldOperations.typeValue,"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-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.info[t.fieldCode],limitW:500,limitH:500,maxImageLength:5},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}}):e._e()]:[0==t.fieldType||1==t.fieldType||6==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e.info[t.fieldCode])+"\n ")]):2==t.fieldType?[1==t.systemFlag?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(t.fieldOperations.fieldContent[1*e.info[t.fieldCode]-1]?t.fieldOperations.fieldContent[1*e.info[t.fieldCode]-1].name:"")+"\n ")]):i("div",{staticClass:"field-value color-606266"},[e._v(e._s(e.info[t.fieldCode]))])]:3==t.fieldType?i("div",{staticClass:"field-value color-606266"}):4==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e._f("formatDate")(e.info[t.fieldCode],t.fieldOperations.typeValue))+"\n ")]):5==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e.info[t.fieldCode].join("至"))+"\n ")]):7==t.fieldType?i("div",{staticClass:"img-box"},e._l(e.info[t.fieldCode],function(e,t){return i("div",{key:t+e.url,staticClass:"item-imgs"},[i("a",{attrs:{href:""}},[i("img",{attrs:{src:e.url}})])])})):e._e()]],2)]})],2),e._v(" "),e.showEdit?i("div",{staticClass:"handle-form-btns t-ct m-b-60"},[i("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),i("el-button",{on:{click:e.cancelEdit}},[e._v("取消")])],1):e._e()],1)},staticRenderFns:[]};var f=i("VU/8")(d,r,!1,function(e){i("S2qe")},null,null).exports,c=i("IVno"),u={name:"recordInfo",components:{navCrumb:a.a,editableCell:f,handleDialog:c.a},filters:{formatDate:l.b},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:"/employeeRecord"},{name:"编辑员工信息",path:""}],editNavpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"离职员工",path:"/unemployee"},{name:"编辑员工信息",path:""}],dialogVisible:!1,htmlTitle:"员工档案",info:{},staticInfo:{},statusList:["正式","试用","离职"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],items:[],fieldList:[],mileStone:[],historyStatus:["新入职","转正","离职","转岗","再入职"],editHisObj:{}}},methods:{handleSuccess:function(){this.dialogVisible=!1},getEmployeeDetail:function(){var e=this,t={recordId:e.$route.query.recordId};Object(s.a)("/haoban-manage-web/record/employee-detail",t).then(function(t){1==t.data.errorCode?e.getTemplate(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},subSuccess:function(){this.getEmployeeDetail()},getTemplate:function(e){var t=this;Object(s.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(i){1==i.data.errorCode?t.formatTemplateList(i.data.result,e):t.$message.error({message:i.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(e,t){var i=[],a=e,s=JSON.parse(t.defineString),o=Object(l.a)(t);for(var n in s)o[n]=s[n];e.forEach(function(e){if(0!=e.parentCode&&(e.fieldOperations=JSON.parse(e.fieldOperations)),5==e.fieldType&&(o[e.fieldCode]=o[e.fieldCode]?o[e.fieldCode].split(","):["",""],t[e.fieldCode]=t[e.fieldCode]?t[e.fieldCode].split(","):["",""]),6==e.fieldType&&(o[e.fieldCode]*=1,t[e.fieldCode]*=1),7==e.fieldType){var s=[];o[e.fieldCode]=o[e.fieldCode]?o[e.fieldCode].split(","):[],o[e.fieldCode].forEach(function(e){s.push({url:e})}),t[e.fieldCode]=s,o[e.fieldCode]=s.slice(0)}e.title=e.fieldName;var l=[];a.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&&i.push(e)}),i.sort(function(e,t){return 1*e.sort-1*t.sort}),this.fieldList=i,this.info=o,this.staticInfo=t},getHistoryList:function(){var e=this,t={recordId:e.$route.query.recordId};Object(s.a)("/haoban-manage-web/record/history-record-list",t).then(function(t){if(1==t.data.errorCode){var i=t.data.result;e.formatMileStone(i)}else e.$message({message:t.data.message})}).catch(function(t){e.$message({message:t.message})})},formatMileStone:function(e){e.sort(function(e,t){return 1*e.historyDate-1*t.historyDate});for(var t=[],i=0,a=e.length;i<a;i+=4)t.push(e.slice(i,i+4));this.mileStone=t},editHis:function(e){this.editHisObj.historyId=e.historyId,this.editHisObj.recordId=this.$route.query.recordId,this.dialogVisible=!0}},beforeMount:function(){this.getEmployeeDetail(),this.getHistoryList()},mounted:function(){var e=this.$route.query.type;e&&"unemployee"==e&&(this.navpath=this.editNavpath)}},m={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap"},[i("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"commom-container clerk-detail-container"},[i("p",{staticClass:"t-rt"},[i("a",{staticClass:"a-href font-14",on:{click:function(t){e.getPdf()}}},[e._v("打印员工档案")])]),e._v(" "),i("div",{attrs:{id:"pdfDom"}},[i("div",{staticClass:"employee-detail-cell"},[i("div",{staticClass:"head-info"},[i("p",{staticClass:"head-cell"},[e.info.headPic?i("img",{staticClass:"head-img",attrs:{src:e.info.headPic}}):i("span",{staticClass:"head-img-null"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]),e._v(" "),i("p",{staticClass:"head-cell name"},[e._v(e._s(e.info.clerkName)),i("span",[e._v(e._s("-1"==e.info.clerkStatus?"无状态":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 color-606266"},[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,staticInfo:e.staticInfo,items:e.items,title:t.title,fieldList:t.childrens},on:{subSuccess:e.subSuccess}}):e._e()]}),e._v(" "),i("div",{staticClass:"mile-stone-container"},[e._m(0),e._v(" "),i("ul",{staticClass:"mile-stone"},e._l(e.mileStone,function(t,a){return i("li",{key:a,staticClass:"stone-group",class:a%2==0?"column":"column-reverse"},[4==t.length&&a!=e.mileStone.length-1?i("div",{staticClass:"column-hurdle"}):e._e(),e._v(" "),e._l(t,function(t,s){return i("div",{key:s,staticClass:"stone",class:a%2==1&&3==s||a%2==0&&0==s&&0!=a?"no-radio":""},[i("p",{staticClass:"time"},[e._v(e._s(e._f("formatDate")(t.historyDate,"YY-MM-DD")))]),e._v(" "),e._m(1,!0),e._v(" "),i("p",{staticClass:"position"},[e._v(e._s(t.positionName))]),e._v(" "),i("p",{staticClass:"font-16 "},[e._v(e._s(e.historyStatus[1*t.historyStatus-1])),3==t.historyStatus?i("a",{staticClass:"a-href m-l-10 fs-12",on:{click:function(i){e.editHis(t)}}},[e._v("编辑")]):e._e()]),e._v(" "),3==t.historyStatus?i("p",[e._v("离职理由:"+e._s(e.reasons[t.fireReason]))]):e._e(),e._v(" "),i("p",{staticClass:"color-606266"},[e._v(e._s(t.storeName?t.storeName:t.groupName))])])})],2)}))])],2),e._v(" "),i("el-dialog",{attrs:{title:"修改离职信息",visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("handle-dialog",{attrs:{employee:e.editHisObj,handleType:"changeFireInfo",typeTitle:"修改离职信息"},on:{handleSuccess:e.handleSuccess}})],1)],1)])]),e._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticClass:"m-s-title"},[t("span",{staticClass:"font-w-500"},[this._v("员工记录")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"hurdle-box"},[t("span",{staticClass:"radio"}),this._v(" "),t("div",{staticClass:"hurdle"})])}]};var p=i("VU/8")(u,m,!1,function(e){i("REE4")},null,null);t.default=p.exports},REE4:function(e,t){},S2qe:function(e,t){}}); webpackJsonp([18],{"67iC":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("3Xzz"),s=i("P9l9"),l=i("0xDb"),o=i("mvHQ"),n=i.n(o),d={name:"editableCell",props:{info:{type:Object,required:!0},staticInfo:{type:Object,required:!0},items:{type:Array,required:!0},title:{type:String,default:""},fieldList:{type:Array,required:!0}},filters:{formatDate:l.b},data:function(){return{showEdit:!1,uploadUrl:"/haoban-manage-web/upload-img"}},methods:{uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},saveEdit:function(){var e=this;e.$refs.cell_form.validate(function(t){if(t){var i=Object(l.a)(e.info),a={},s=e.fieldList,o=(JSON.parse(e.staticInfo.defineString),[]);s.forEach(function(e){if(a[e.fieldCode]=i[e.fieldCode],5==e.fieldType&&(a[e.fieldCode]=i[e.fieldCode].join(",")),7==e.fieldType){var t=[];i[e.fieldCode].forEach(function(e){t.push(e.url)}),a[e.fieldCode]=t.join(",")}if(1!=e.systemFlag){if(o.push({fieldCode:e.fieldCode,fieldValue:i[e.fieldCode]}),5==e.fieldType&&o.push({fieldCode:e.fieldCode,fieldValue:i[e.fieldCode].join(",")}),7==e.fieldType){var s=[];i[e.fieldCode].forEach(function(e){s.push(e.url)}),o.push({fieldCode:e.fieldCode,fieldValue:s.join(",")})}delete a[e.fieldCode]}}),a.jsonString="[]"==n()(o)?"":n()(o),a.recordId=e.$route.query.recordId,e.submitEdit(a)}})},submitEdit:function(e){var t=this;Object(s.a)("/haoban-manage-web/record/save-record-detail",e).then(function(e){console.log(e,"submitEdit"),1==e.data.errorCode?(t.showEdit=!1,t.$emit("subSuccess")):t.$message({message:e.data.message})}).catch(function(e){t.$message({message:e.message})})},cancelEdit:function(){this.$refs.cell_form.clearValidate();var e=this.info,t=this.staticInfo;for(var i in e)e[i]=t[i];this.showEdit=!1}},computed:{defineObj:function(){return JSON.parse(this.clerkInfo.defineString)},rules:function(){var e={},t=function(e,t,i){return t?new RegExp("^[0-9]*$").test(1*t)?i():i(new Error("请输入数字!")):i()};return this.fieldList.forEach(function(i){var a=[];0!=i.fieldType&&1!=i.fieldType||(i.minCount&&i.maxCount&&a.push({min:i.minCount,message:"至少填写"+i.minCount+"个字符",trigger:"change"}),!i.minCount&&i.maxCount&&a.push({max:i.maxCount,message:"至多填写"+i.maxCount+"个字符",trigger:"change"}),i.minCount&&i.maxCount&&a.push({min:i.minCount,max:i.maxCount,message:"长度在 "+i.minCount+" 到 "+i.maxCount+"个字符",trigger:"change"})),6==i.fieldType&&a.push({validator:t,message:i.fieldName+"必须为数字",trigger:"change"}),e[i.fieldCode]=a}),e}}},r={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",{staticClass:"font-w-500"},[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=!0}}},[e._v("编辑")])]),e._v(" "),i("el-form",{ref:"cell_form",staticClass:"info-form",attrs:{rules:e.rules,inline:"","label-width":"150px",model:e.info}},[e._l(e.fieldList,function(t,a){return[i("el-form-item",{key:t.fieldCode+"_"+a,staticClass:"item-width",attrs:{label:t.title+":",prop:t.fieldCode}},[e.showEdit?[0==t.fieldType?i("el-input",{attrs:{placeholder:t.fieldDescription,disabled:"1"!=t.fieldEdited},model:{value:e.info[t.fieldCode],callback:function(i){e.$set(e.info,t.fieldCode,i)},expression:"info[item.fieldCode]"}}):e._e(),e._v(" "),6==t.fieldType?i("el-input",{attrs:{placeholder:t.fieldDescription,disabled:"1"!=t.fieldEdited},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:"",disabled:"1"!=t.fieldEdited},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?[1==t.systemFlag?i("el-select",{attrs:{disabled:"1"!=t.fieldEdited,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}})})):i("el-select",{attrs:{disabled:"1"!=t.fieldEdited,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,t){return i("el-option",{key:e.key+"_"+t,attrs:{label:e.name,value:e.name}})}))]:4==t.fieldType?i("el-date-picker",{attrs:{type:"date",disabled:"1"!=t.fieldEdited,format:t.fieldOperations.typeValue,"value-format":t.fieldOperations.typeValue,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":"至",disabled:"1"!=t.fieldEdited,format:t.fieldOperations.typeValue,"value-format":t.fieldOperations.typeValue,"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-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.info[t.fieldCode],limitW:500,limitH:500,maxImageLength:5},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}}):e._e()]:[0==t.fieldType||1==t.fieldType||6==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e.info[t.fieldCode])+"\n ")]):2==t.fieldType?[1==t.systemFlag?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(t.fieldOperations.fieldContent[1*e.info[t.fieldCode]-1]?t.fieldOperations.fieldContent[1*e.info[t.fieldCode]-1].name:"")+"\n ")]):i("div",{staticClass:"field-value color-606266"},[e._v(e._s(e.info[t.fieldCode]))])]:3==t.fieldType?i("div",{staticClass:"field-value color-606266"}):4==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e._f("formatDate")(e.info[t.fieldCode],t.fieldOperations.typeValue))+"\n ")]):5==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e.info[t.fieldCode].join("至"))+"\n ")]):7==t.fieldType?i("div",{staticClass:"img-box"},e._l(e.info[t.fieldCode],function(e,t){return i("div",{key:t+e.url,staticClass:"item-imgs"},[i("a",{attrs:{href:""}},[i("img",{attrs:{src:e.url}})])])})):e._e()]],2)]})],2),e._v(" "),e.showEdit?i("div",{staticClass:"handle-form-btns t-ct m-b-60"},[i("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),i("el-button",{on:{click:e.cancelEdit}},[e._v("取消")])],1):e._e()],1)},staticRenderFns:[]};var f=i("VU/8")(d,r,!1,function(e){i("S2qe")},null,null).exports,c=i("IVno"),u={name:"recordInfo",components:{navCrumb:a.a,editableCell:f,handleDialog:c.a},filters:{formatDate:l.b},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:"/employeeRecord"},{name:"编辑员工信息",path:""}],editNavpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"离职员工",path:"/unemployee"},{name:"编辑员工信息",path:""}],dialogVisible:!1,htmlTitle:"员工档案",info:{},staticInfo:{},statusList:["正式","试用","离职"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],items:[],fieldList:[],mileStone:[],historyStatus:["新入职","转正","离职","转岗","再入职"],editHisObj:{}}},methods:{handleSuccess:function(){this.dialogVisible=!1},getEmployeeDetail:function(){var e=this,t={recordId:e.$route.query.recordId};Object(s.a)("/haoban-manage-web/record/employee-detail",t).then(function(t){1==t.data.errorCode?e.getTemplate(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},subSuccess:function(){this.getEmployeeDetail()},getTemplate:function(e){var t=this;Object(s.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(i){1==i.data.errorCode?t.formatTemplateList(i.data.result,e):t.$message.error({message:i.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(e,t){var i=[],a=e,s=JSON.parse(t.defineString),o=Object(l.a)(t);for(var n in s)o[n]=s[n];e.forEach(function(e){if(0!=e.parentCode&&(e.fieldOperations=JSON.parse(e.fieldOperations)),5==e.fieldType&&(o[e.fieldCode]=o[e.fieldCode]?o[e.fieldCode].split(","):["",""],t[e.fieldCode]=t[e.fieldCode]?t[e.fieldCode].split(","):["",""]),6==e.fieldType&&(o[e.fieldCode]*=1,t[e.fieldCode]*=1),7==e.fieldType){var s=[];o[e.fieldCode]=o[e.fieldCode]?o[e.fieldCode].split(","):[],o[e.fieldCode].forEach(function(e){s.push({url:e})}),t[e.fieldCode]=s,o[e.fieldCode]=s.slice(0)}e.title=e.fieldName;var l=[];a.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&&i.push(e)}),i.sort(function(e,t){return 1*e.sort-1*t.sort}),this.fieldList=i,this.info=o,this.staticInfo=t},getHistoryList:function(){var e=this,t={recordId:e.$route.query.recordId};Object(s.a)("/haoban-manage-web/record/history-record-list",t).then(function(t){if(1==t.data.errorCode){var i=t.data.result;e.formatMileStone(i)}else e.$message({message:t.data.message})}).catch(function(t){e.$message({message:t.message})})},formatMileStone:function(e){e.sort(function(e,t){return 1*e.historyDate-1*t.historyDate});for(var t=[],i=0,a=e.length;i<a;i+=4)t.push(e.slice(i,i+4));this.mileStone=t},editHis:function(e){this.editHisObj.historyId=e.historyId,this.editHisObj.recordId=this.$route.query.recordId,this.dialogVisible=!0}},beforeMount:function(){this.getEmployeeDetail(),this.getHistoryList()},mounted:function(){var e=this.$route.query.type;e&&"unemployee"==e&&(this.navpath=this.editNavpath),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},m={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap",style:{height:e.windowH}},[i("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"commom-container clerk-detail-container"},[i("p",{staticClass:"t-rt"},[i("a",{staticClass:"a-href font-14",on:{click:function(t){e.getPdf()}}},[e._v("打印员工档案")])]),e._v(" "),i("div",{attrs:{id:"pdfDom"}},[i("div",{staticClass:"employee-detail-cell"},[i("div",{staticClass:"head-info"},[i("p",{staticClass:"head-cell"},[e.info.headPic?i("img",{staticClass:"head-img",attrs:{src:e.info.headPic}}):i("span",{staticClass:"head-img-null"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]),e._v(" "),i("p",{staticClass:"head-cell name"},[e._v(e._s(e.info.clerkName)),i("span",[e._v(e._s("-1"==e.info.clerkStatus?"无状态":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 color-606266"},[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,staticInfo:e.staticInfo,items:e.items,title:t.title,fieldList:t.childrens},on:{subSuccess:e.subSuccess}}):e._e()]}),e._v(" "),i("div",{staticClass:"mile-stone-container"},[e._m(0),e._v(" "),i("ul",{staticClass:"mile-stone"},e._l(e.mileStone,function(t,a){return i("li",{key:a,staticClass:"stone-group",class:a%2==0?"column":"column-reverse"},[4==t.length&&a!=e.mileStone.length-1?i("div",{staticClass:"column-hurdle"}):e._e(),e._v(" "),e._l(t,function(t,s){return i("div",{key:s,staticClass:"stone",class:a%2==1&&3==s||a%2==0&&0==s&&0!=a?"no-radio":""},[i("p",{staticClass:"time"},[e._v(e._s(e._f("formatDate")(t.historyDate,"YY-MM-DD")))]),e._v(" "),e._m(1,!0),e._v(" "),i("p",{staticClass:"position"},[e._v(e._s(t.positionName))]),e._v(" "),i("p",{staticClass:"font-16 "},[e._v(e._s(e.historyStatus[1*t.historyStatus-1])),3==t.historyStatus?i("a",{staticClass:"a-href m-l-10 fs-12",on:{click:function(i){e.editHis(t)}}},[e._v("编辑")]):e._e()]),e._v(" "),3==t.historyStatus?i("p",[e._v("离职理由:"+e._s(e.reasons[t.fireReason]))]):e._e(),e._v(" "),i("p",{staticClass:"color-606266"},[e._v(e._s(t.storeName?t.storeName:t.groupName))])])})],2)}))])],2),e._v(" "),i("el-dialog",{attrs:{title:"修改离职信息",visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("handle-dialog",{attrs:{employee:e.editHisObj,handleType:"changeFireInfo",typeTitle:"修改离职信息"},on:{handleSuccess:e.handleSuccess}})],1)],1)])]),e._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticClass:"m-s-title"},[t("span",{staticClass:"font-w-500"},[this._v("员工记录")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"hurdle-box"},[t("span",{staticClass:"radio"}),this._v(" "),t("div",{staticClass:"hurdle"})])}]};var p=i("VU/8")(u,m,!1,function(e){i("BB/f")},null,null);t.default=p.exports},"BB/f":function(e,t){},S2qe:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([24],{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)}},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_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 c=i("VU/8")(n,r,!1,function(t){i("Ro6d")},"data-v-12e12bd8",null);s.default=c.exports},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"},Ro6d:function(t,s){}}); webpackJsonp([23],{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)}},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_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 c=i("VU/8")(n,r,!1,function(t){i("Ro6d")},"data-v-12e12bd8",null);s.default=c.exports},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"},Ro6d:function(t,s){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([23],{"41Rh":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),i=a("mw3O"),o=a.n(i),r={name:"vue-office-aside",props:["collapseFlag","projectName"],data:function(){return{repProjectName:"haoban-manage-web",asideHeight:"0px",pathName:"",leftCollapse:!1,leftModuleName:"",menuLeftRouter:[],baseUrl:"",selectMenu:""}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{handleOpen:function(e,t){},handleSelect:function(e,t){this.selectMenu=e},setNewData:function(e){e.forEach(function(e,t){(e.url="/"+e.url,e.levelFlag=!1,e.children&&e.children.length)&&(e.children.map(function(e){return e.display}).includes(1)?e.levelFlag=!1:e.levelFlag=!0,e.children.forEach(function(e,t){e.url="/"+e.url}))}),this.menuLeftRouter=e,this.setSelectMenu(e)},setSelectMenu:function(e){var t=this;e.forEach(function(e,a){try{"/"+t.pathName==e.url?t.selectMenu="/"+t.pathName:e.children.forEach(function(a,n){"/"+t.pathName==a.url&&(t.selectMenu=a.display?a.url:e.url),a.children.length&&a.children.forEach(function(e,n){if(e.url==t.pathName&&(t.selectMenu=a.url,!t.$route.query.type))throw"break"})})}catch(e){}})},toRouter:function(e){this.$emit("toLeftRouterView","/"+e)},refreshRoute:function(){this.routePathName=window.location.hash.split("/")[1],-1!=this.routePathName.indexOf("?")&&(this.routePathName=this.routePathName.split("?")[0]),-1!=this.routePathName.indexOf("/")&&(this.routePathName=this.routePathName.split("/")[0]),this.pathName=this.routePathName,this.getLeftMenu()},treeData:function(e){var t=e.filter(function(t){var a=e.filter(function(e){return t.haobanMenuRightId==e.parentRightId});return a.length>0?t.children=a:t.children=[],1==t.level});return t.sort(function(e,t){return e.sort-t.sort}),t},getLeftMenu:function(){var e=this,t={project:e.repProjectName,router:e.pathName,requestProject:e.repProjectName};e.axios.post(e.baseUrl+"/haoban-manage-web/menu-detail",o.a.stringify(t)).then(function(t){var a=t.data;if(1==a.errorCode)return a.result?void e.setNewData(e.treeData(a.result.leftMenu)):void e.$message.error({duration:1e3,message:"暂无数据"});e.$message.error({duration:1e3,message:a.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0},collapseFlag:function(e,t){this.leftCollapse=e},projectName:function(e,t){this.repProjectName=e||"haoban-manage-web"}},mounted:function(){this.repProjectName=this.projectName||"haoban-manage-web",this.asideHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px",this.pathName=window.location.hash.split("/")[1],-1!=this.pathName.indexOf("?")&&(this.pathName=this.pathName.split("?")[0]),this.getLeftMenu(),this.leftCollapse=this.collapseFlag}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"left-aside-contain",style:{height:e.asideHeight}},[a("div",{staticClass:"leftBar-wrap"},[a("div",{staticClass:"cardmenu",class:{collapse:e.leftCollapse}},[a("div",{staticClass:"cardmenu-item"},[a("el-menu",{staticClass:"el-menu-vertical-demo cardmenupanel",staticStyle:{"border-right":"0"},attrs:{"default-active":e.selectMenu,"data-path":"/"+e.$route.path,router:!0,"text-color":"#606266","active-text-color":"#1890ff",collapse:e.leftCollapse,"unique-opened":""},on:{open:e.handleOpen,select:e.handleSelect}},[e._l(e.menuLeftRouter,function(t,n){return[t.children.length>0&&!t.levelFlag?a("el-submenu",{key:n,attrs:{index:n+""}},[a("template",{slot:"title"},[a("i",{class:["iconfont","menu-icon",t.iconUrl]}),e._v(" "),a("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.rightName))])]),e._v(" "),e._l(t.children,function(t,n){return a("el-menu-item",{key:n,staticStyle:{"padding-left":"53px"},attrs:{index:t.url}},[a("label",{attrs:{slot:"title","data-index":e.$route.path==t.url&&e.$route.path,"data-path":t.url},slot:"title"},[e._v(e._s(t.rightName))])])})],2):e._e(),e._v(" "),!t.children.length||t.children.length>0&&t.levelFlag?a("el-menu-item",{key:n,attrs:{index:t.url}},[a("i",{class:["iconfont","menu-icon",t.iconUrl]}),e._v(" "),a("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.rightName))])]):e._e()]})],2)],1)])])])},staticRenderFns:[]};var s=a("VU/8")(r,l,!1,function(e){a("AE88")},"data-v-6fdabafc",null).exports,c={name:"contact",components:{topNav:n.a,vueOfficeAside:s},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,navpath:[{name:"首页",path:"/"},{name:"通讯录",path:""},{name:"企业通讯录"},{name:"行政架构"}]}},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){},computed:{}},u={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"contact-wrap"},[t("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),t("div",{staticClass:"contact-wrap__body"},[t("vue-office-aside",{ref:"asideMenu",attrs:{projectName:this.projectName,collapseFlag:this.collapseFlag}}),this._v(" "),t("div",{staticClass:"contact-wrap__right"},[t("div",{staticClass:"contact-wrap__right__body"},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)])],1)],1)},staticRenderFns:[]};var h=a("VU/8")(c,u,!1,function(e){a("oOkW")},null,null);t.default=h.exports},AE88:function(e,t){},oOkW:function(e,t){}});
\ No newline at end of file
webpackJsonp([25],{"2ryZ":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("PI0u"),r=a("P9l9"),d=a("3E4D"),f=a("Ch4/"),u=(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:Object(c.a)(function(){this.checkList=this.customData.map(function(t){return t.checkList}).flat(),this.saveFields(this.dataType)},500),customChange:function(t){console.log(t)},saveFields:function(t){var e=this,a={fields:e.checkList,type:t};Object(r.c)("/haoban-manage-web/record/employee-show-field-save.json",a).then(function(t){var a=t.data;if(1==a.errorCode)return d.a.showmsg("添加成功","success"),void e.$emit("customHandleConfirm");f.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(r.c)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(e){var a=e.data;1!=a.errorCode?f.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()}}),m={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 h=a("VU/8")(u,m,!1,function(t){a("dJld")},"data-v-110ef18e",null).exports,v=(a("Mk6G"),{name:"staffDetails",data:function(){return{navpath:[{name:"首页",path:"/index"},{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(r.c)("/haoban-manage-web/record/employee-show-field-delete.json",o).then(function(t){var e=t.data;if(1==e.errorCode)return d.a.showmsg("删除成功","success"),void a.splice(i,1);f.a.errorMsg(e)}).catch(function(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(r.c)("/haoban-manage-web/record/employee-show-field-detail.json",a).then(function(a){var i=a.data;1!=i.errorCode?f.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){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){s.a.all([this.getSaveFields(1),this.getSaveFields(2)])},components:{navCrumb:l.a,staffDetailField:h}}),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",style:{height:t.$store.state.bgHeight,"overflow-y":"auto"}},[a("div",{staticClass:"staffDetails-cell"},[a("h2",{staticClass:"m-b-25 font-w-500"},[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 font-0"},[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 font-w-500"},[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 font-0"},[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 g=a("VU/8")(v,p,!1,function(t){a("2ryZ")},"data-v-09b6d997",null);e.default=g.exports},dJld:function(t,e){}}); webpackJsonp([24],{"2ryZ":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("PI0u"),r=a("P9l9"),d=a("3E4D"),f=a("Ch4/"),u=(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:Object(c.a)(function(){this.checkList=this.customData.map(function(t){return t.checkList}).flat(),this.saveFields(this.dataType)},500),customChange:function(t){console.log(t)},saveFields:function(t){var e=this,a={fields:e.checkList,type:t};Object(r.c)("/haoban-manage-web/record/employee-show-field-save.json",a).then(function(t){var a=t.data;if(1==a.errorCode)return d.a.showmsg("添加成功","success"),void e.$emit("customHandleConfirm");f.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(r.c)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(e){var a=e.data;1!=a.errorCode?f.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()}}),m={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 h=a("VU/8")(u,m,!1,function(t){a("dJld")},"data-v-110ef18e",null).exports,v=(a("Mk6G"),{name:"staffDetails",data:function(){return{navpath:[{name:"首页",path:"/index"},{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(r.c)("/haoban-manage-web/record/employee-show-field-delete.json",o).then(function(t){var e=t.data;if(1==e.errorCode)return d.a.showmsg("删除成功","success"),void a.splice(i,1);f.a.errorMsg(e)}).catch(function(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(r.c)("/haoban-manage-web/record/employee-show-field-detail.json",a).then(function(a){var i=a.data;1!=i.errorCode?f.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){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){s.a.all([this.getSaveFields(1),this.getSaveFields(2)])},components:{navCrumb:l.a,staffDetailField:h}}),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",style:{height:t.$store.state.bgHeight,"overflow-y":"auto"}},[a("div",{staticClass:"staffDetails-cell"},[a("h2",{staticClass:"m-b-25 font-w-500"},[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 font-0"},[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 font-w-500"},[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 font-0"},[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 g=a("VU/8")(v,p,!1,function(t){a("2ryZ")},"data-v-09b6d997",null);e.default=g.exports},dJld:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([26],{ItSn:function(t,e){},JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),o=a.n(s),n=a("P9l9"),i=a("3E4D"),c=a("Ch4/"),r={name:"custom-dialog",props:{showCustomDialog:{type:Boolean,default:!1},customType:{type:String,default:""},customTitle:{type:String,default:""}},data:function(){return{repProjectName:"haoban-manage-web",customDialog:!1,customData:[],checkList:[]}},beforeMount:function(){},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("customHandleConfirm")},customConfirm:function(){if(!this.checkList.length)return this.$message.error({duration:1e3,message:"请选择操作"}),!1;this.setData(this.checkList)},customChange:function(t){},setData:function(t){var e=this,a={viewIdList:t},s="data"==e.customType?"/haoban-manage-web/home/set-display-enterprise-data":"/haoban-manage-web/home/set-display-quick-entry";Object(n.b)(s,a).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("设置成功","success"),void e.$emit("customHandleConfirm");c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardList:function(){var t=this,e={all:!0};"data"==t.customType&&(e.fetchData=!1);var a="data"==t.customType?"/haoban-manage-web/home/find-enterprise-data":"/haoban-manage-web/home/find-quick-entry";t.checkList=[],Object(n.c)(a,e).then(function(e){var a=e.data;if(1==a.errorCode){var s=[];return a.result.forEach(function(e,a){e.homeDisplay&&("data"==t.customType?s.push(e.dataViewId):s.push(e.settingViewId))}),t.customData=a.result,void(t.checkList=s)}c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{showCustomDialog:function(t,e){this.customDialog=t},customType:function(t,e){t&&this.getCardList()}},mounted:function(){this.customDialog=this.showCustomDialog}},l={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:"自定义"+t.customTitle,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("请选择您想在首页展示的"+t._s(t.customTitle)+",还可以再勾选"),a("span",[t._v(" "+t._s(8-t.checkList.length)+" ")]),t._v("个")])]),t._v(" "),a("div",{staticClass:"custom-dialog__checkbox"},[a("el-checkbox-group",{attrs:{max:8},on:{change:t.customChange},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},["data"===t.customType?t._l(t.customData,function(e){return a("el-checkbox",{key:e.dataViewId,attrs:{label:e.dataViewId,name:"type"}},[t._v(t._s(e.fieldTitle))])}):t._e(),t._v(" "),"data"!=t.customType?t._l(t.customData,function(e){return a("el-checkbox",{key:e.settingViewId,attrs:{label:e.settingViewId,name:"type"}},[t._v(t._s(e.fieldTitle))])}):t._e()],2)],1),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 u={name:"index",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",bannerList:[],companyObj:{},dataOverview:[],entryData:[]}},methods:{changeRoute:function(t){this.$router.push(t)},toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){console.log(t),this.collapseFlag=t},showDialogLayer:function(t){this.showCustomDialog=!0,this.customType=t,this.customTitle="data"==t?"数据概览":"快捷操作"},customHandleConfirm:function(t){this.showCustomDialog=!1,"data"===this.customType?this.getDataOverview():this.getEntryData()},toCertify:function(t){1!=t&&this.changeRoute("/companyCertify")},getBannerData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-advertisement",{}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.bannerList=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getEnterpriseData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-enterprise-info",{}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.companyObj=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getDataOverview:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-enterprise-data",{all:!1,fetchData:!0}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.dataOverview=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getEntryData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-quick-entry",{all:!1}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.entryData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px",o.a.all([this.getBannerData(),this.getDataOverview(),this.getEntryData(),this.getEnterpriseData()])},components:{customDialog:a("VU/8")(r,l,!1,function(t){a("ItSn")},"data-v-7ed86a06",null).exports}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body",style:{minHeight:t.contentHeight}},[a("div",{staticClass:"index-swiper"},[a("el-carousel",{attrs:{trigger:"click",height:"250px",arrow:"never",autoplay:!1}},t._l(t.bannerList,function(t,e){return a("el-carousel-item",{key:e},[a("a",{staticClass:"index-swiper-bg",style:{backgroundImage:"url("+t.imgUrl+")"},attrs:{href:1==t.linkType?"#"+t.linkUrl:t.linkUrl,target:"_blank"}})])}))],1),t._v(" "),a("div",{staticClass:"index-company flex flex-row m-t-24"},[a("div",{staticClass:"index-company-left m-r-24 border-box radius-2"},[a("div",{staticClass:"index-company-logo"},[t.companyObj.logoUrl?a("div",{staticClass:"index-company-logo_img"},[a("img",{attrs:{src:t.companyObj.logoUrl,alt:"log"}})]):a("div",{staticClass:"default-logo-bg"},[a("i",{staticClass:"iconfont icon-2zuzhijiagou default-logo"})])]),t._v(" "),a("div",{staticClass:"index-company-name color-303133"},[t._v(t._s(t.companyObj.enterpriseName))]),t._v(" "),a("ul",[a("li",{staticClass:"flex flex-between"},[a("span",[t._v("账户余额")]),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.balance))])]),t._v(" "),a("li",{staticClass:"flex flex-between"},[a("span",[t._v("企业编码")]),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.enterpriseCode))])]),t._v(" "),a("li",{staticClass:"flex flex-between",on:{click:function(e){t.toCertify(t.companyObj.authenticationStatus)}}},[a("span",[t._v("企业认证")]),a("span",{class:[1==t.companyObj.authenticationStatus?"authActive":0==t.companyObj.authenticationStatus?"unAuth":2==t.companyObj.authenticationStatus?"auth-ing":"auth-fail"]},[1==t.companyObj.authenticationStatus||0==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-renzheng p-r-6 "}):t._e(),2==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-qiyerenzheng1 p-r-6 "}):t._e(),3==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-qiyerenzheng2 p-r-6 "}):t._e(),t._v(t._s(1==t.companyObj.authenticationStatus?"已认证":0==t.companyObj.authenticationStatus?"未认证":2==t.companyObj.authenticationStatus?"认证中":"认证失败")+"\n ")])]),t._v(" "),t._m(0)])]),t._v(" "),a("div",{staticClass:"index-company-right radius-2"},[a("div",{staticClass:"index-company-right__head flex flex-between border-box border-b-e4e7e7"},[a("span",{staticClass:"color-303133 font-16 font-w-500"},[t._v("数据概览")]),a("span",{staticClass:"auto-define",on:{click:function(e){t.showDialogLayer("data")}}},[a("i",{staticClass:"iconfont icon-zidingyi color-909399"})])]),t._v(" "),a("div",{staticClass:"index-company-right__body p-24 border-box"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.dataOverview,function(e,s){return a("li",{key:s},[a("div",{staticClass:"color-606266 font-16 data-name"},[t._v(t._s(e.fieldTitle))]),t._v(" "),a("div",{staticClass:"color-303133 font-30 data-num font-w-500"},[t._v(t._s(e.fieldData))])])}))])])]),t._v(" "),a("div",{staticClass:"index-entry m-t-24 radius-2"},[a("div",{staticClass:"index-entry-head flex flex-between border-box border-b-e4e7e7"},[a("span",{staticClass:"color-303133 font-16 font-w-500"},[t._v("快捷入口")]),a("span",{staticClass:"auto-define",on:{click:function(e){t.showDialogLayer("entry")}}},[a("i",{staticClass:"iconfont icon-zidingyi color-909399"})])]),t._v(" "),a("div",{staticClass:"index-entry-body p-24 border-box"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.entryData,function(e,s){return a("li",{key:s,staticClass:"flex flex-align-center border-box flex",on:{click:function(a){t.changeRoute(e.fieldUrl)}}},[a("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:e.fieldIconBgColor}},[a("i",{class:["iconfont",e.fieldIconUrl]})]),t._v(" "),a("span",{staticClass:"color-303133 font-16 p-l-20"},[t._v(t._s(e.fieldTitle))])])}))])])]),t._v(" "),a("vue-gic-footer")],1),t._v(" "),a("custom-dialog",{attrs:{customTitle:t.customTitle,customType:t.customType,showCustomDialog:t.showCustomDialog},on:{customHandleConfirm:t.customHandleConfirm}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"flex flex-between"},[e("span",[this._v("帮助手册")]),e("a",{attrs:{href:"../../assets/1.pdf",download:"帮助手册.pdf"}},[e("span",{staticClass:"color-1890ff"},[this._v("立即下载"),e("i",{staticClass:"el-icon-arrow-right"})])])])}]};var m=a("VU/8")(u,d,!1,function(t){a("XpSa")},"data-v-09446129",null);e.default=m.exports},XpSa:function(t,e){}}); webpackJsonp([25],{ItSn:function(t,e){},JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),o=a.n(s),n=a("P9l9"),i=a("3E4D"),c=a("Ch4/"),r={name:"custom-dialog",props:{showCustomDialog:{type:Boolean,default:!1},customType:{type:String,default:""},customTitle:{type:String,default:""}},data:function(){return{repProjectName:"haoban-manage-web",customDialog:!1,customData:[],checkList:[]}},beforeMount:function(){},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("customHandleConfirm")},customConfirm:function(){if(!this.checkList.length)return this.$message.error({duration:1e3,message:"请选择操作"}),!1;this.setData(this.checkList)},customChange:function(t){},setData:function(t){var e=this,a={viewIdList:t},s="data"==e.customType?"/haoban-manage-web/home/set-display-enterprise-data":"/haoban-manage-web/home/set-display-quick-entry";Object(n.b)(s,a).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("设置成功","success"),void e.$emit("customHandleConfirm");c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardList:function(){var t=this,e={all:!0};"data"==t.customType&&(e.fetchData=!1);var a="data"==t.customType?"/haoban-manage-web/home/find-enterprise-data":"/haoban-manage-web/home/find-quick-entry";t.checkList=[],Object(n.c)(a,e).then(function(e){var a=e.data;if(1==a.errorCode){var s=[];return a.result.forEach(function(e,a){e.homeDisplay&&("data"==t.customType?s.push(e.dataViewId):s.push(e.settingViewId))}),t.customData=a.result,void(t.checkList=s)}c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{showCustomDialog:function(t,e){this.customDialog=t},customType:function(t,e){t&&this.getCardList()}},mounted:function(){this.customDialog=this.showCustomDialog}},l={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:"自定义"+t.customTitle,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("请选择您想在首页展示的"+t._s(t.customTitle)+",还可以再勾选"),a("span",[t._v(" "+t._s(8-t.checkList.length)+" ")]),t._v("个")])]),t._v(" "),a("div",{staticClass:"custom-dialog__checkbox"},[a("el-checkbox-group",{attrs:{max:8},on:{change:t.customChange},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},["data"===t.customType?t._l(t.customData,function(e){return a("el-checkbox",{key:e.dataViewId,attrs:{label:e.dataViewId,name:"type"}},[t._v(t._s(e.fieldTitle))])}):t._e(),t._v(" "),"data"!=t.customType?t._l(t.customData,function(e){return a("el-checkbox",{key:e.settingViewId,attrs:{label:e.settingViewId,name:"type"}},[t._v(t._s(e.fieldTitle))])}):t._e()],2)],1),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 u={name:"index",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",bannerList:[],companyObj:{},dataOverview:[],entryData:[]}},methods:{changeRoute:function(t){this.$router.push(t)},toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){console.log(t),this.collapseFlag=t},showDialogLayer:function(t){this.showCustomDialog=!0,this.customType=t,this.customTitle="data"==t?"数据概览":"快捷操作"},customHandleConfirm:function(t){this.showCustomDialog=!1,"data"===this.customType?this.getDataOverview():this.getEntryData()},toCertify:function(t){1!=t&&this.changeRoute("/companyCertify")},getBannerData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-advertisement",{}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.bannerList=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getEnterpriseData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-enterprise-info",{}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.companyObj=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getDataOverview:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-enterprise-data",{all:!1,fetchData:!0}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.dataOverview=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getEntryData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-quick-entry",{all:!1}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.entryData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px",o.a.all([this.getBannerData(),this.getDataOverview(),this.getEntryData(),this.getEnterpriseData()])},components:{customDialog:a("VU/8")(r,l,!1,function(t){a("ItSn")},"data-v-7ed86a06",null).exports}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body",style:{minHeight:t.contentHeight}},[a("div",{staticClass:"index-swiper"},[a("el-carousel",{attrs:{trigger:"click",height:"250px",arrow:"never",autoplay:!1}},t._l(t.bannerList,function(t,e){return a("el-carousel-item",{key:e},[a("a",{staticClass:"index-swiper-bg",style:{backgroundImage:"url("+t.imgUrl+")"},attrs:{href:1==t.linkType?"#"+t.linkUrl:t.linkUrl,target:"_blank"}})])}))],1),t._v(" "),a("div",{staticClass:"index-company flex flex-row m-t-24"},[a("div",{staticClass:"index-company-left m-r-24 border-box radius-2"},[a("div",{staticClass:"index-company-logo"},[t.companyObj.logoUrl?a("div",{staticClass:"index-company-logo_img"},[a("img",{attrs:{src:t.companyObj.logoUrl,alt:"log"}})]):a("div",{staticClass:"default-logo-bg"},[a("i",{staticClass:"iconfont icon-2zuzhijiagou default-logo"})])]),t._v(" "),a("div",{staticClass:"index-company-name color-303133"},[t._v(t._s(t.companyObj.enterpriseName))]),t._v(" "),a("ul",[a("li",{staticClass:"flex flex-between"},[a("span",[t._v("账户余额")]),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.balance))])]),t._v(" "),a("li",{staticClass:"flex flex-between"},[a("span",[t._v("企业编码")]),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.enterpriseCode))])]),t._v(" "),a("li",{staticClass:"flex flex-between",on:{click:function(e){t.toCertify(t.companyObj.authenticationStatus)}}},[a("span",[t._v("企业认证")]),a("span",{class:[1==t.companyObj.authenticationStatus?"authActive":0==t.companyObj.authenticationStatus?"unAuth":2==t.companyObj.authenticationStatus?"auth-ing":"auth-fail"]},[1==t.companyObj.authenticationStatus||0==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-renzheng p-r-6 "}):t._e(),2==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-qiyerenzheng1 p-r-6 "}):t._e(),3==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-qiyerenzheng2 p-r-6 "}):t._e(),t._v(t._s(1==t.companyObj.authenticationStatus?"已认证":0==t.companyObj.authenticationStatus?"未认证":2==t.companyObj.authenticationStatus?"认证中":"认证失败")+"\n ")])]),t._v(" "),t._m(0)])]),t._v(" "),a("div",{staticClass:"index-company-right radius-2"},[a("div",{staticClass:"index-company-right__head flex flex-between border-box border-b-e4e7e7"},[a("span",{staticClass:"color-303133 font-16 font-w-500"},[t._v("数据概览")]),a("span",{staticClass:"auto-define",on:{click:function(e){t.showDialogLayer("data")}}},[a("i",{staticClass:"iconfont icon-zidingyi color-909399"})])]),t._v(" "),a("div",{staticClass:"index-company-right__body p-24 border-box"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.dataOverview,function(e,s){return a("li",{key:s},[a("div",{staticClass:"color-606266 font-16 data-name"},[t._v(t._s(e.fieldTitle))]),t._v(" "),a("div",{staticClass:"color-303133 font-30 data-num font-w-500"},[t._v(t._s(e.fieldData))])])}))])])]),t._v(" "),a("div",{staticClass:"index-entry m-t-24 radius-2"},[a("div",{staticClass:"index-entry-head flex flex-between border-box border-b-e4e7e7"},[a("span",{staticClass:"color-303133 font-16 font-w-500"},[t._v("快捷入口")]),a("span",{staticClass:"auto-define",on:{click:function(e){t.showDialogLayer("entry")}}},[a("i",{staticClass:"iconfont icon-zidingyi color-909399"})])]),t._v(" "),a("div",{staticClass:"index-entry-body p-24 border-box"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.entryData,function(e,s){return a("li",{key:s,staticClass:"flex flex-align-center border-box flex",on:{click:function(a){t.changeRoute(e.fieldUrl)}}},[a("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:e.fieldIconBgColor}},[a("i",{class:["iconfont",e.fieldIconUrl]})]),t._v(" "),a("span",{staticClass:"color-303133 font-16 p-l-20"},[t._v(t._s(e.fieldTitle))])])}))])])]),t._v(" "),a("vue-gic-footer")],1),t._v(" "),a("custom-dialog",{attrs:{customTitle:t.customTitle,customType:t.customType,showCustomDialog:t.showCustomDialog},on:{customHandleConfirm:t.customHandleConfirm}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"flex flex-between"},[e("span",[this._v("帮助手册")]),e("a",{attrs:{href:"../../assets/1.pdf",download:"帮助手册.pdf"}},[e("span",{staticClass:"color-1890ff"},[this._v("立即下载"),e("i",{staticClass:"el-icon-arrow-right"})])])])}]};var m=a("VU/8")(u,d,!1,function(t){a("XpSa")},"data-v-09446129",null);e.default=m.exports},XpSa:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([27],{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("g62t")},"data-v-dce5fb1e",null);t.default=s.exports},g62t:function(e,t){}}); webpackJsonp([26],{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("g62t")},"data-v-dce5fb1e",null);t.default=s.exports},g62t:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([28],{mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),r=a("Ie7z"),o=a("P9l9"),s={name:"store-view-group-info",components:{navCrumb:n.a,vueSelectStore:r.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(o.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.departmentId}).then(function(t){console.log(t),1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){console.log(e)})},handleSelectedList:function(e){var t=e[0];this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.label:""},callGroupSelector:function(){this.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var n=e,r={parentId:n.departInfo.parentId,name:n.departInfo.name},s="";n.isAddNew?s="/haoban-manage-web/dept/insert":(s="/haoban-manage-web/dept/update",r.groupId=n.$route.query.groupId),Object(o.a)(s,r).then(function(e){console.log(e),1==e.data.errorCode?(n.$message.success({duration:1e3,message:"操作成功!"}),console.log(t),"continue"==t?(n.departInfo={name:"",parentName:"",parentId:""},n.disabled=!0,n.getGroupData()):window.history.go(-1)):n.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(o.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId}:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)},forbidenList:function(){return this.isAddNew?"":[this.$route.query.groupId]},navpath:function(){return[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"group"==this.$route.query.type?"编辑分组":this.isAddNew?"添加子分组":"品牌编辑",path:""}]}},beforeMount:function(){this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"group"==e.$route.query.type?"部门名称":"品牌名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),"group"==e.$route.query.type||e.isAddNew?a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),e.isAddNew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):a("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删除")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"group",forbidenList:e.forbidenList},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(s,i,!1,function(e){a("nf/P")},null,null);t.default=d.exports},"nf/P":function(e,t){}}); webpackJsonp([27],{mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),r=a("Ie7z"),o=a("P9l9"),s={name:"store-view-group-info",components:{navCrumb:n.a,vueSelectStore:r.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(o.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.departmentId}).then(function(t){console.log(t),1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){console.log(e)})},handleSelectedList:function(e){var t=e[0];this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.label:""},callGroupSelector:function(){this.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var n=e,r={parentId:n.departInfo.parentId,name:n.departInfo.name},s="";n.isAddNew?s="/haoban-manage-web/dept/insert":(s="/haoban-manage-web/dept/update",r.groupId=n.$route.query.groupId),Object(o.a)(s,r).then(function(e){console.log(e),1==e.data.errorCode?(n.$message.success({duration:1e3,message:"操作成功!"}),console.log(t),"continue"==t?(n.departInfo={name:"",parentName:"",parentId:""},n.disabled=!0,n.getGroupData()):window.history.go(-1)):n.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(o.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId}:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)},forbidenList:function(){return this.isAddNew?"":[this.$route.query.groupId]},navpath:function(){return[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"group"==this.$route.query.type?"编辑分组":this.isAddNew?"添加子分组":"品牌编辑",path:""}]}},beforeMount:function(){this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"group"==e.$route.query.type?"部门名称":"品牌名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),"group"==e.$route.query.type||e.isAddNew?a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),e.isAddNew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):a("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删除")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"group",forbidenList:e.forbidenList},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(s,i,!1,function(e){a("nf/P")},null,null);t.default=d.exports},"nf/P":function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([29],{"3rQ0":function(t,a){},RHxA:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3Xzz"),i=e("elmV"),l=e("P9l9"),o={name:"employee-io",components:{navCrumb:s.a,uploadExcelComponent:i.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"storeFrame"},{name:"批量导入导出",path:""}],type:"import",fileList:[],url:t+"/haoban-manage-web/store/upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,a={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(l.a)("/haoban-manage-web/error-log-page",a).then(function(a){1==a.data.errorCode?(t.total=a.data.result.totalCount,t.logList=a.data.result,t.loading=!1):t.$message.error({message:a.data.message})}).catch(function(a){t.$message.error({message:a.message})})},handleRemove:function(t,a){console.log(t,a)},handlePreview:function(t){console.log(t)},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,a){console.log(t,a),this.fileList=a}},beforeMount:function(){"note"==this.type&&this.getErrorNote()}},r={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box"},[e("div",{staticClass:"io-container"},[t._m(0),t._v(" "),e("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(a){t.type=a},expression:"type"}},[e("el-radio-button",{attrs:{label:"import"}},[t._v("导入门店")]),t._v(" "),e("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改门店")]),t._v(" "),e("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?e("div",{staticClass:"handle-area import"},[e("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px"}},[e("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载门店导入模板,批量填写门店信息\n "),e("a",{staticClass:"d-u-btn",attrs:{href:"http://www.gicdev.com/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"}},[e("el-button",{attrs:{type:"primary"}},[t._v("下载"),e("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),e("div",{staticClass:"step-div"},[e("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传填写好的门店信息\n "),e("div",{staticClass:"d-u-btn m-t-20"},[e("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[e("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),e("div",{staticClass:"up-btn-div"},[e("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(a){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?e("div",{staticClass:"handle-area import"},[e("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px"}},[e("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出门店\n "),e("a",{staticClass:"d-u-btn",attrs:{href:"http://www.gicdev.com/haoban-manage-web/store/export?storeGroupId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[e("el-button",{attrs:{type:"primary"}},[t._v("下载"),e("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改门店信息\n ")]),t._v(" "),e("div",{staticClass:"step-div"},[e("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传修改后的门店信息\n "),e("div",{staticClass:"d-u-btn m-t-20"},[e("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[e("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),e("div",{staticClass:"up-btn-div"},[e("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(a){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):e("div",{staticClass:"error-log import"},[e("div",{staticClass:"title-area"},[e("div",{staticClass:"tip"}),t._v(" "),e("a",{attrs:{href:"http://www.gicdev.com/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[e("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[e("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),e("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),e("el-table-column",{attrs:{label:"姓名",prop:"name"}}),t._v(" "),e("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),e("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),e("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),e("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v("\n "+t._s(1==a.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],1),t._v(" "),e("div",{staticClass:"pagination"},[e("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)])])],1)},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ul",{staticClass:"tip-area"},[e("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"),e("a",{staticClass:"a-href"},[t._v("企业认证")])]),t._v(" "),e("li",{staticClass:"tip"},[t._v("如需更新已存在的门店及店员,可逐个进行修改,或请先导出,在导出表格里进行修改")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("不能在本excel表中对门店信息类别进行增加、删除、修改")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入")])])}]};var n=e("VU/8")(o,r,!1,function(t){e("3rQ0")},null,null);a.default=n.exports}}); webpackJsonp([28],{"3rQ0":function(t,a){},RHxA:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3Xzz"),i=e("elmV"),l=e("P9l9"),o={name:"employee-io",components:{navCrumb:s.a,uploadExcelComponent:i.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"storeFrame"},{name:"批量导入导出",path:""}],type:"import",fileList:[],url:t+"/haoban-manage-web/store/upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,a={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(l.a)("/haoban-manage-web/error-log-page",a).then(function(a){1==a.data.errorCode?(t.total=a.data.result.totalCount,t.logList=a.data.result,t.loading=!1):t.$message.error({message:a.data.message})}).catch(function(a){t.$message.error({message:a.message})})},handleRemove:function(t,a){console.log(t,a)},handlePreview:function(t){console.log(t)},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,a){console.log(t,a),this.fileList=a}},beforeMount:function(){"note"==this.type&&this.getErrorNote()}},r={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box"},[e("div",{staticClass:"io-container"},[t._m(0),t._v(" "),e("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(a){t.type=a},expression:"type"}},[e("el-radio-button",{attrs:{label:"import"}},[t._v("导入门店")]),t._v(" "),e("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改门店")]),t._v(" "),e("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?e("div",{staticClass:"handle-area import"},[e("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px"}},[e("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载门店导入模板,批量填写门店信息\n "),e("a",{staticClass:"d-u-btn",attrs:{href:"http://www.gicdev.com/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"}},[e("el-button",{attrs:{type:"primary"}},[t._v("下载"),e("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),e("div",{staticClass:"step-div"},[e("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传填写好的门店信息\n "),e("div",{staticClass:"d-u-btn m-t-20"},[e("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[e("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),e("div",{staticClass:"up-btn-div"},[e("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(a){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?e("div",{staticClass:"handle-area import"},[e("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px"}},[e("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出门店\n "),e("a",{staticClass:"d-u-btn",attrs:{href:"http://www.gicdev.com/haoban-manage-web/store/export?storeGroupId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[e("el-button",{attrs:{type:"primary"}},[t._v("下载"),e("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改门店信息\n ")]),t._v(" "),e("div",{staticClass:"step-div"},[e("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传修改后的门店信息\n "),e("div",{staticClass:"d-u-btn m-t-20"},[e("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[e("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),e("div",{staticClass:"up-btn-div"},[e("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(a){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):e("div",{staticClass:"error-log import"},[e("div",{staticClass:"title-area"},[e("div",{staticClass:"tip"}),t._v(" "),e("a",{attrs:{href:"http://www.gicdev.com/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[e("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[e("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),e("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),e("el-table-column",{attrs:{label:"姓名",prop:"name"}}),t._v(" "),e("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),e("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),e("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),e("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v("\n "+t._s(1==a.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],1),t._v(" "),e("div",{staticClass:"pagination"},[e("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)])])],1)},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ul",{staticClass:"tip-area"},[e("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"),e("a",{staticClass:"a-href"},[t._v("企业认证")])]),t._v(" "),e("li",{staticClass:"tip"},[t._v("如需更新已存在的门店及店员,可逐个进行修改,或请先导出,在导出表格里进行修改")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("不能在本excel表中对门店信息类别进行增加、删除、修改")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入")])])}]};var n=e("VU/8")(o,r,!1,function(t){e("3rQ0")},null,null);a.default=n.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([30],{AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("3Xzz"),o=t("WSbm"),s=t("P9l9"),r={name:"employeeDetail",components:{navCrumb:n.a,employeeInfo:o.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"添加员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this.$refs.emmployInfo.info;console.log(a,"ssss"),this.isNew?this.addEmployee(a,e):this.saveEmployeeInfo(a)},addEmployee:function(e,a){var t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/add",n).then(function(e){console.log(e,"add result"),1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1}:window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error")})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error"),a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}}},i={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var m=t("VU/8")(r,i,!1,function(e){t("U/hU")},null,null);a.default=m.exports},"U/hU":function(e,a){}}); webpackJsonp([29],{AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("3Xzz"),o=t("WSbm"),s=t("P9l9"),r={name:"employeeDetail",components:{navCrumb:n.a,employeeInfo:o.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"添加员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this.$refs.emmployInfo.info;console.log(a,"ssss"),this.isNew?this.addEmployee(a,e):this.saveEmployeeInfo(a)},addEmployee:function(e,a){var t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/add",n).then(function(e){console.log(e,"add result"),1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1}:window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error")})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){console.log(e,"error"),a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}}},i={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var m=t("VU/8")(r,i,!1,function(e){t("U/hU")},null,null);a.default=m.exports},"U/hU":function(e,a){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([31],{SKyE:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=r("3Xzz"),s=(r("Mk6G"),r("3E4D"),r("Ch4/"),r("PI0u")),n=(r("P9l9"),{name:"companyAddress",data:function(){var t=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(e,r,a){t.ruleForm.switch&&""==r.replace(/\s/g)?a(new Error("请输入地址")):a()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(s.a)(function(t){this.$refs[t].validate(function(t){if(!t)return!1})},500),postSave:function(){}},mounted:function(){},components:{navCrumb:a.a}}),o={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:t.$store.state.bgHeight}},[r("h2",{staticClass:"font-w-500"},[t._v("企业地址设置")]),t._v(" "),r("p",{staticClass:"m-t-24"},[t._v("开启后手机端通讯录将显示,反之则不显示")]),t._v(" "),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[r("el-form-item",{staticClass:"m-t-22",attrs:{label:"企业地址",prop:"switch"}},[r("el-switch",{model:{value:t.ruleForm.switch,callback:function(e){t.$set(t.ruleForm,"switch",e)},expression:"ruleForm.switch"}})],1),t._v(" "),t.ruleForm.switch?r("el-form-item",{attrs:{label:" ",prop:"name"}},[r("el-input",{staticClass:"w-380",attrs:{placeholder:"请输入地址"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1):t._e(),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("ruleForm")}}},[t._v("保 存")])],1)],1)],1)]),t._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var l=r("VU/8")(n,o,!1,function(t){r("uZCh")},"data-v-68bc0177",null);e.default=l.exports},uZCh:function(t,e){}}); webpackJsonp([30],{SKyE:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=r("3Xzz"),s=(r("Mk6G"),r("3E4D"),r("Ch4/"),r("PI0u")),n=(r("P9l9"),{name:"companyAddress",data:function(){var t=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(e,r,a){t.ruleForm.switch&&""==r.replace(/\s/g)?a(new Error("请输入地址")):a()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(s.a)(function(t){this.$refs[t].validate(function(t){if(!t)return!1})},500),postSave:function(){}},mounted:function(){},components:{navCrumb:a.a}}),o={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:t.$store.state.bgHeight}},[r("h2",{staticClass:"font-w-500"},[t._v("企业地址设置")]),t._v(" "),r("p",{staticClass:"m-t-24"},[t._v("开启后手机端通讯录将显示,反之则不显示")]),t._v(" "),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[r("el-form-item",{staticClass:"m-t-22",attrs:{label:"企业地址",prop:"switch"}},[r("el-switch",{model:{value:t.ruleForm.switch,callback:function(e){t.$set(t.ruleForm,"switch",e)},expression:"ruleForm.switch"}})],1),t._v(" "),t.ruleForm.switch?r("el-form-item",{attrs:{label:" ",prop:"name"}},[r("el-input",{staticClass:"w-380",attrs:{placeholder:"请输入地址"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1):t._e(),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("ruleForm")}}},[t._v("保 存")])],1)],1)],1)]),t._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var l=r("VU/8")(n,o,!1,function(t){r("uZCh")},"data-v-68bc0177",null);e.default=l.exports},uZCh:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([32],{"rs/A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),l=r.n(a),s=r("3Xzz"),o=r("c4uw"),i=r("Ie7z"),n=(r("Mk6G"),r("3E4D")),u=r("Ch4/"),c=r("PI0u"),d=r("P9l9"),m={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"添加成员",path:""}],ruleForm:{brandId:"",roleId:"",roleCode:"admin",roleName:"企业管理员",peopleList:[],departList:[],brandValue:[],brandOptions:[]},rules:{},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},submitForm:Object(c.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r=[],a=t.ruleForm.departList.length&&t.ruleForm.peopleList.length&&t.ruleForm.brandValue.length;if(a){a=null,t.ruleForm.departList.forEach(function(e){r.push({groupId:e.groupId})}),t.ruleForm.brandValue.forEach(function(e){"admin"===t.ruleForm.roleCode?r.push({groupId:e}):e.storeId?r.push({storeId:e.storeId}):r.push({groupId:e.groupId})});var l=t.ruleForm.peopleList.map(function(e){return e.employeeClerkId}).join(",");t.postSave(r,l)}else t.$message.error({message:"请完善信息"})})},500),postSave:function(e,t){var r=this,a={data:l()(e),roleId:r.ruleForm.roleId,brandId:r.ruleForm.brandId,clerkIds:t};Object(d.c)("/haoban-manage-web/save-clerk-role",a).then(function(e){var t=e.data;if(1==t.errorCode)return n.a.showmsg("添加成功","success"),void r.changeRoute("/setChildAdmin");u.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},delField:function(e,t,r){this.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(t){t.value;r.splice(e,1)}).catch(function(){})},delDepart:function(e,t){t.splice(e,1)},showDialogLayer:function(e,t){if(this.selectType=e,this.changed=e,"store"===e)return this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1},"people"===e?(this.onlyPerson=!0,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):this.onlyPerson=!1,this.defaultSelection=t,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(e){"people"===this.selectType?this.ruleForm.peopleList=e:"store"===this.selectType?this.ruleForm.brandValue=e:this.ruleForm.departList=e},getBrandData:function(){var e=this;Object(d.c)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?u.a.errorMsg(r):r.result&&r.result.length&&(e.ruleForm.brandOptions=r.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getUserData:function(){var e=this,t={roleId:e.ruleForm.roleId,userId:e.ruleForm.userId};Object(d.c)("/haoban-manage-web/find-clerk-role",t).then(function(t){var r=t.data;1!=r.errorCode?u.a.errorMsg(r):r.result&&(e.ruleForm.peopleList=[r.result.user],r.result.admList.forEach(function(e,t){e.id=e.groupId,e.label=e.name}),e.ruleForm.departList=r.result.admList||[],r.result.storeList.forEach(function(e,t){e.id=e.groupId?e.groupId:e.storeId,e.label=e.name}),e.ruleForm.brandValue="admin"===e.ruleForm.roleCode?r.result.storeList.map(function(e){return e.groupId}):r.result.storeList||[],console.log(e.ruleForm))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData(),this.ruleForm.brandId=this.$route.query.brandId,this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId),this.$route.query.hasOwnProperty("roleCode")&&(this.ruleForm.roleCode=this.$route.query.roleCode,this.ruleForm.roleName="admin"===this.$route.query.roleCode?"企业管理员":"子管理员"),this.$route.query.hasOwnProperty("userId")&&(this.ruleForm.userId=this.$route.query.userId,this.navpath=[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"编辑成员",path:""}],this.getUserData())},components:{navCrumb:s.a,vueSelectEmployee:o.a,vueSelectStore:i.a}},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",style:{height:e.$store.state.bgHeight}},[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("el-input",{staticClass:"w-380",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.roleName,callback:function(t){e.$set(e.ruleForm,"roleName",t)},expression:"ruleForm.roleName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:e.ruleForm.userId?"":"选择人员",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-wrap"},[e._l(e.ruleForm.peopleList,function(t,a){return[r("div",{key:a+t.name,staticClass:"people-cell flex flex-align-center flex-pack-center flex-column"},[r("div",{class:["inline-block","img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),e.ruleForm.userId?e._e():r("i",{staticClass:"el-icon-circle-close",on:{click:function(r){r.stopPropagation(),e.delField(a,t,e.ruleForm.peopleList)}}})]),e._v(" "),r("p",[e._v(e._s(t.name))])])]}),e._v(" "),e.ruleForm.userId?e._e():r("div",{staticClass:"people-cell"},[r("span",{staticClass:"add-icon",on:{click:function(t){t.stopPropagation(),e.showDialogLayer("people",e.ruleForm.peopleList)}}},[r("i",{staticClass:"el-icon-plus"})])])],2)]),e._v(" "),r("el-form-item",{staticClass:"m-b-0",attrs:{label:"选择管理范围",prop:"name"}}),e._v(" "),r("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},[r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(t){e.showDialogLayer("depart",e.ruleForm.departList)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.departList,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.departList)}}})])]})],2)])])])])]),e._v(" "),r("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},["admin"==e.ruleForm.roleCode?r("div",{staticClass:"store-item-wrap"},[r("el-select",{staticStyle:{width:"213px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.ruleForm.brandValue,callback:function(t){e.$set(e.ruleForm,"brandValue",t)},expression:"ruleForm.brandValue"}},e._l(e.ruleForm.brandOptions,function(e){return r("el-option",{key:e.groupId,attrs:{label:e.name,value:e.groupId}})}))],1):e._e(),e._v(" "),"child_admin"==e.ruleForm.roleCode?r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.ruleForm.brandValue)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.brandValue,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.brandValue)}}})])]})],2)])])]):e._e()])]),e._v(" "),r("el-form-item",{staticClass:"m-t-24"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer"),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var h=r("VU/8")(m,p,!1,function(e){r("uzUu")},"data-v-6548d1cf",null);t.default=h.exports},uzUu:function(e,t){}}); webpackJsonp([31],{"rs/A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),l=r.n(a),s=r("3Xzz"),o=r("c4uw"),i=r("Ie7z"),n=(r("Mk6G"),r("3E4D")),u=r("Ch4/"),c=r("PI0u"),d=r("P9l9"),m={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"添加成员",path:""}],ruleForm:{brandId:"",roleId:"",roleCode:"admin",roleName:"企业管理员",peopleList:[],departList:[],brandValue:[],brandOptions:[]},rules:{},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},submitForm:Object(c.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r=[],a=t.ruleForm.departList.length&&t.ruleForm.peopleList.length&&t.ruleForm.brandValue.length;if(a){a=null,t.ruleForm.departList.forEach(function(e){r.push({groupId:e.groupId})}),t.ruleForm.brandValue.forEach(function(e){"admin"===t.ruleForm.roleCode?r.push({groupId:e}):e.storeId?r.push({storeId:e.storeId}):r.push({groupId:e.groupId})});var l=t.ruleForm.peopleList.map(function(e){return e.employeeClerkId}).join(",");t.postSave(r,l)}else t.$message.error({message:"请完善信息"})})},500),postSave:function(e,t){var r=this,a={data:l()(e),roleId:r.ruleForm.roleId,brandId:r.ruleForm.brandId,clerkIds:t};Object(d.c)("/haoban-manage-web/save-clerk-role",a).then(function(e){var t=e.data;if(1==t.errorCode)return n.a.showmsg("添加成功","success"),void r.changeRoute("/setChildAdmin");u.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},delField:function(e,t,r){this.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(t){t.value;r.splice(e,1)}).catch(function(){})},delDepart:function(e,t){t.splice(e,1)},showDialogLayer:function(e,t){if(this.selectType=e,this.changed=e,"store"===e)return this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1},"people"===e?(this.onlyPerson=!0,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):this.onlyPerson=!1,this.defaultSelection=t,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(e){"people"===this.selectType?this.ruleForm.peopleList=e:"store"===this.selectType?this.ruleForm.brandValue=e:this.ruleForm.departList=e},getBrandData:function(){var e=this;Object(d.c)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?u.a.errorMsg(r):r.result&&r.result.length&&(e.ruleForm.brandOptions=r.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getUserData:function(){var e=this,t={roleId:e.ruleForm.roleId,userId:e.ruleForm.userId};Object(d.c)("/haoban-manage-web/find-clerk-role",t).then(function(t){var r=t.data;1!=r.errorCode?u.a.errorMsg(r):r.result&&(e.ruleForm.peopleList=[r.result.user],r.result.admList.forEach(function(e,t){e.id=e.groupId,e.label=e.name}),e.ruleForm.departList=r.result.admList||[],r.result.storeList.forEach(function(e,t){e.id=e.groupId?e.groupId:e.storeId,e.label=e.name}),e.ruleForm.brandValue="admin"===e.ruleForm.roleCode?r.result.storeList.map(function(e){return e.groupId}):r.result.storeList||[],console.log(e.ruleForm))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData(),this.ruleForm.brandId=this.$route.query.brandId,this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId),this.$route.query.hasOwnProperty("roleCode")&&(this.ruleForm.roleCode=this.$route.query.roleCode,this.ruleForm.roleName="admin"===this.$route.query.roleCode?"企业管理员":"子管理员"),this.$route.query.hasOwnProperty("userId")&&(this.ruleForm.userId=this.$route.query.userId,this.navpath=[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"编辑成员",path:""}],this.getUserData())},components:{navCrumb:s.a,vueSelectEmployee:o.a,vueSelectStore:i.a}},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",style:{height:e.$store.state.bgHeight}},[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("el-input",{staticClass:"w-380",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.roleName,callback:function(t){e.$set(e.ruleForm,"roleName",t)},expression:"ruleForm.roleName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:e.ruleForm.userId?"":"选择人员",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-wrap"},[e._l(e.ruleForm.peopleList,function(t,a){return[r("div",{key:a+t.name,staticClass:"people-cell flex flex-align-center flex-pack-center flex-column"},[r("div",{class:["inline-block","img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),e.ruleForm.userId?e._e():r("i",{staticClass:"el-icon-circle-close",on:{click:function(r){r.stopPropagation(),e.delField(a,t,e.ruleForm.peopleList)}}})]),e._v(" "),r("p",[e._v(e._s(t.name))])])]}),e._v(" "),e.ruleForm.userId?e._e():r("div",{staticClass:"people-cell"},[r("span",{staticClass:"add-icon",on:{click:function(t){t.stopPropagation(),e.showDialogLayer("people",e.ruleForm.peopleList)}}},[r("i",{staticClass:"el-icon-plus"})])])],2)]),e._v(" "),r("el-form-item",{staticClass:"m-b-0",attrs:{label:"选择管理范围",prop:"name"}}),e._v(" "),r("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},[r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(t){e.showDialogLayer("depart",e.ruleForm.departList)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.departList,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.departList)}}})])]})],2)])])])])]),e._v(" "),r("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},["admin"==e.ruleForm.roleCode?r("div",{staticClass:"store-item-wrap"},[r("el-select",{staticStyle:{width:"213px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.ruleForm.brandValue,callback:function(t){e.$set(e.ruleForm,"brandValue",t)},expression:"ruleForm.brandValue"}},e._l(e.ruleForm.brandOptions,function(e){return r("el-option",{key:e.groupId,attrs:{label:e.name,value:e.groupId}})}))],1):e._e(),e._v(" "),"child_admin"==e.ruleForm.roleCode?r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.ruleForm.brandValue)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.brandValue,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.brandValue)}}})])]})],2)])])]):e._e()])]),e._v(" "),r("el-form-item",{staticClass:"m-t-24"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer"),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var h=r("VU/8")(m,p,!1,function(e){r("uzUu")},"data-v-6548d1cf",null);t.default=h.exports},uzUu:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([33],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(e){n("80rI")},null,null);t.default=i.exports},"80rI":function(e,t){}}); webpackJsonp([32],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(e){n("80rI")},null,null);t.default=i.exports},"80rI":function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([34],{VlR1:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"setting",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1}},computed:{},methods:{toRouterView:function(t){console.log(t),this.$router.push({path:t.path})},collapseTag:function(t){console.log(t),this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.pathName=window.location.hash.split("/")[1],console.log("pathname:",this.pathName,this.$route.path),this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setting-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"setting-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body",style:{height:t.contentHeight}},[a("div",{staticClass:"left-menu",style:{height:t.contentHeight}},[a("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}})],1),t._v(" "),a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)])])],1)},staticRenderFns:[]};var s=a("VU/8")(o,n,!1,function(t){a("t0vv")},"data-v-5487f964",null);e.default=s.exports},t0vv:function(t,e){}}); webpackJsonp([33],{VlR1:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"setting",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1}},computed:{},methods:{toRouterView:function(t){console.log(t),this.$router.push({path:t.path})},collapseTag:function(t){console.log(t),this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.pathName=window.location.hash.split("/")[1],console.log("pathname:",this.pathName,this.$route.path),this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setting-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"setting-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body",style:{height:t.contentHeight}},[a("div",{staticClass:"left-menu",style:{height:t.contentHeight}},[a("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}})],1),t._v(" "),a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)])])],1)},staticRenderFns:[]};var s=a("VU/8")(o,n,!1,function(t){a("t0vv")},"data-v-5487f964",null);e.default=s.exports},t0vv:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([35],{JsWW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("P9l9"),n=a("MJLE"),r=a.n(n),i={name:"shareCode",data:function(){return{regenerate:!1,qrCodeContent:{},shares:[],qrcodeCase:"",myEnterprise:"",dialogVisible:!1}},methods:{getCode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this,a={regenerate:e};Object(s.a)("/haoban-manage-web/shared-contact/get-shared-qrcode",a).then(function(a){console.log(a,"code"),1==a.data.errorCode?(console.log(e),t.qrcode(a.data.result.qrCodeContent)):t.$message.error({message:a.data.message})}).catch(function(e){t.$message.error({message:e.message})})},reFresh:function(){document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear(),this.getCode(!0)},qrcode:function(e){this.qrcodeCase=new r.a("qrcode",{width:245,height:245,text:e})},downloadCode:function(){var e=document.getElementById("qrcode").getElementsByTagName("img")[0].getAttribute("src"),t=document.createElement("a"),a=new MouseEvent("click");t.download="scan code",t.href=e,t.dispatchEvent(a)},getShareRelation:function(){var e=this;Object(s.a)("/haoban-manage-web/shared-contact/find-shared-contact-relation",{enterpriseIdCondition:1}).then(function(t){console.log(t,"getShareRelation"),1==t.data.errorCode?(e.shares=t.data.result||[],e.shares.length>0&&(e.myEnterprise=t.data.result[0].exportEnterpriseName)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},cancelShare:function(e){var t=this;t.$confirm("是否要取消与该企业的共享?","提示",{type:"warning"}).then(function(){Object(s.a)("/haoban-manage-web/shared-contact/del-shared-enterprise",{importEnterpriseId:e.importEnterpriseId}).then(function(a){if(console.log(a,"cancel"),1==a.data.errorCode){var s=t.shares.indexOf(e);t.shares.splice(s,1)}else t.$message.error({message:a.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch({})}},beforeMount:function(){this.getShareRelation(),this.getCode()}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"share-code-div"},[a("p",{staticClass:"company-name"},[e._v(e._s(e.myEnterprise)+"的共享企业")]),e._v(" "),a("p",{staticClass:"word"},[e._v("双方共享的通讯录,选人时可以选到,同时邀请企业建立共享关系")]),e._v(" "),a("p",{staticClass:"time-tip"},[e._v("一个二维码只能和一个企业建立共享关系,24小时有效")]),e._v(" "),a("div",{staticClass:"m-t-20",attrs:{id:"qrcode"}}),e._v(" "),a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.downloadCode}},[e._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),a("el-button",{on:{click:function(t){e.reFresh()}}},[e._v("重新生成")])],1),e._v(" "),a("p",{staticClass:"company-name"},[e._v("已建立的共享企业")]),e._v(" "),e.shares.length>0?a("div",{staticClass:"share-table"},[a("div",{staticClass:"company"},[e._v(e._s(e.myEnterprise))]),e._v(" "),a("ul",{staticClass:"list"},e._l(e.shares,function(t){return a("li",{key:t.importEnterpriseId,staticClass:"li"},[a("div",{staticClass:"name"},[e._v(e._s(t.importEnterpriseName))]),e._v(" "),a("div",{staticClass:"cancel-btn"},[a("a",{staticClass:"a-href",on:{click:function(a){e.cancelShare(t)}}},[e._v("取消共享")])])])}))]):e._e(),e._v(" "),a("div",{staticClass:"no-share-tip"},[e._v("暂无共享企业")]),e._v(" "),a("el-dialog",{attrs:{title:"验证管理员身份",width:"356px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"cancel-code"},[a("p",[e._v("请使用管理员的好办扫一扫确认")])])])],1)},staticRenderFns:[]};var c=a("VU/8")(i,o,!1,function(e){a("eTc/")},null,null);t.default=c.exports},"eTc/":function(e,t){}}); webpackJsonp([34],{JsWW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("P9l9"),n=a("MJLE"),r=a.n(n),i={name:"shareCode",data:function(){return{regenerate:!1,qrCodeContent:{},shares:[],qrcodeCase:"",myEnterprise:"",dialogVisible:!1}},methods:{getCode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this,a={regenerate:e};Object(s.a)("/haoban-manage-web/shared-contact/get-shared-qrcode",a).then(function(a){console.log(a,"code"),1==a.data.errorCode?(console.log(e),t.qrcode(a.data.result.qrCodeContent)):t.$message.error({message:a.data.message})}).catch(function(e){t.$message.error({message:e.message})})},reFresh:function(){document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear(),this.getCode(!0)},qrcode:function(e){this.qrcodeCase=new r.a("qrcode",{width:245,height:245,text:e})},downloadCode:function(){var e=document.getElementById("qrcode").getElementsByTagName("img")[0].getAttribute("src"),t=document.createElement("a"),a=new MouseEvent("click");t.download="scan code",t.href=e,t.dispatchEvent(a)},getShareRelation:function(){var e=this;Object(s.a)("/haoban-manage-web/shared-contact/find-shared-contact-relation",{enterpriseIdCondition:1}).then(function(t){console.log(t,"getShareRelation"),1==t.data.errorCode?(e.shares=t.data.result||[],e.shares.length>0&&(e.myEnterprise=t.data.result[0].exportEnterpriseName)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},cancelShare:function(e){var t=this;t.$confirm("是否要取消与该企业的共享?","提示",{type:"warning"}).then(function(){Object(s.a)("/haoban-manage-web/shared-contact/del-shared-enterprise",{importEnterpriseId:e.importEnterpriseId}).then(function(a){if(console.log(a,"cancel"),1==a.data.errorCode){var s=t.shares.indexOf(e);t.shares.splice(s,1)}else t.$message.error({message:a.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch({})}},beforeMount:function(){this.getShareRelation(),this.getCode()}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"share-code-div"},[a("p",{staticClass:"company-name"},[e._v(e._s(e.myEnterprise)+"的共享企业")]),e._v(" "),a("p",{staticClass:"word"},[e._v("双方共享的通讯录,选人时可以选到,同时邀请企业建立共享关系")]),e._v(" "),a("p",{staticClass:"time-tip"},[e._v("一个二维码只能和一个企业建立共享关系,24小时有效")]),e._v(" "),a("div",{staticClass:"m-t-20",attrs:{id:"qrcode"}}),e._v(" "),a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.downloadCode}},[e._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),a("el-button",{on:{click:function(t){e.reFresh()}}},[e._v("重新生成")])],1),e._v(" "),a("p",{staticClass:"company-name"},[e._v("已建立的共享企业")]),e._v(" "),e.shares.length>0?a("div",{staticClass:"share-table"},[a("div",{staticClass:"company"},[e._v(e._s(e.myEnterprise))]),e._v(" "),a("ul",{staticClass:"list"},e._l(e.shares,function(t){return a("li",{key:t.importEnterpriseId,staticClass:"li"},[a("div",{staticClass:"name"},[e._v(e._s(t.importEnterpriseName))]),e._v(" "),a("div",{staticClass:"cancel-btn"},[a("a",{staticClass:"a-href",on:{click:function(a){e.cancelShare(t)}}},[e._v("取消共享")])])])}))]):e._e(),e._v(" "),a("div",{staticClass:"no-share-tip"},[e._v("暂无共享企业")]),e._v(" "),a("el-dialog",{attrs:{title:"验证管理员身份",width:"356px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"cancel-code"},[a("p",[e._v("请使用管理员的好办扫一扫确认")])])])],1)},staticRenderFns:[]};var c=a("VU/8")(i,o,!1,function(e){a("eTc/")},null,null);t.default=c.exports},"eTc/":function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([35],{"41Rh":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"contact",components:{topNav:a("3Xzz").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,navpath:[{name:"首页",path:"/"},{name:"通讯录",path:""},{name:"企业通讯录"},{name:"行政架构"}]}},methods:{toRouterView:function(t){console.log(t),this.$router.push({path:t.path})},collapseTag:function(t){console.log(t),this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){},computed:{}},n={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"contact-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"contact-wrap__body"},[e("vue-office-aside",{ref:"asideMenu",attrs:{projectName:this.projectName,collapseFlag:this.collapseFlag}}),this._v(" "),e("div",{staticClass:"contact-wrap__right"},[e("div",{staticClass:"contact-wrap__right__body"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])],1)],1)},staticRenderFns:[]};var s=a("VU/8")(o,n,!1,function(t){a("WPkT")},null,null);e.default=s.exports},WPkT:function(t,e){}});
\ No newline at end of file
webpackJsonp([5],{NNAT:function(e,t,o){"use strict";var a=o("fZjL"),i=o.n(a),s=o("mvHQ"),n=o.n(s),l=o("P9l9"),r=o("0xDb"),c={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:r.b},data:function(){return{typeLsit:["全部","全职","兼职","外包","实习","无类型"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{callHandle:function(e){console.log(e),"编辑员工资料"!=e.typeTitle?this.$emit("callHandle",e.obj,e.type,e.typeTitle):location.href="#/recordInfo?recordId="+e.obj.recordId}},mounted:function(){}},d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.propList[e.item].slot?o("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?o("div",[e._v("\n "+e._s(e.typeLsit[t.row[e.item]||5])+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?o("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?o("div",[t.row[e.item]?o("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):o("div",{staticClass:"replace-head-img"},[o("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?o("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?o("div",[o("div",{staticClass:"table-handle"},[o("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[o("span",{staticClass:"el-dropdown-link"},[e._v("\n 更多"),o("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[o("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),o("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),o("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),o("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?o("div",[o("div",{staticClass:"table-handle"},[o("a",{staticClass:"a-href",attrs:{href:"#/recordInfo?recordId="+t.row.recordId+"&type=unemployee"}},[e._v("编辑")])])]):e._e()]}}])}):o("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item}})},staticRenderFns:[]};var h=o("VU/8")(c,d,!1,function(e){o("q5YI")},null,null).exports,p=o("IVno"),u=o("Ie7z"),m=o("c4uw"),f={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:h,handleDialog:p.a,vueSelectStore:u.a,vueSelectEmployee:m.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,o=new Date;o.setTime(o.getTime()-6048e5),e.$emit("pick",[o,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,o=new Date;o.setTime(o.getTime()-2592e6),e.$emit("pick",[o,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,o=new Date;o.setTime(o.getTime()-7776e6),e.$emit("pick",[o,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:["全部","正式","试用"],typeLsit:["全部","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:0,total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adList:[],adDefaultSelection:[],stList:[],changed:0}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(l.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var o=[],a=[];1==t.data.errorCode&&(o=t.data.result.departmentList||[],a=t.data.result.searchList||[]),e.treeData={treeData:o,personData:a},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.$refs.departmentSelector.treeSet.dialogVisible=!0},callStoreSelector:function(){this.$refs.storeSelector.treeSet.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=this,o=(t.pageNum,t.chooseClerkIdList.join(","),t.chooseGroupIdList.join(","),t.chooseStoreIdList.join(","),t.pageSize,t.sortType,0==t.clerkStatus||t.clerkStatus,t.sortColumn,0==t.clerkType||t.clerkType,t.startDate,t.endDate,t.searchParam,0==t.clerkType?"":t.clerkType);location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+o+"&sortType="+t.sortType+"&sortColumn="+t.sortColumn+"&startDate="+t.startDate+"&endDate="+t.endDate+"&searchParam="+t.searchParam+"&chooseClerkIdList="+t.chooseClerkIdList.join(",")+"&chooseGroupIdList="+t.chooseGroupIdList.join(",")+"&chooseStoreIdList="+t.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e,this.adList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},handleStoreSelectedList:function(e){this.stList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},formatSelectionList:function(e){var t=this.unique(e);this.selectionList=t;var o=this;t.length&&(o.chooseClerkIdList=[],o.chooseStoreIdList=[],o.chooseGroupIdList=[],t.forEach(function(e){e.employeeClerkId?o.chooseClerkIdList.push(e.employeeClerkId):e.storeId?o.chooseStoreIdList.push(e.storeId):e.groupId&&o.chooseGroupIdList.push(e.groupId)}),o.getEmloyeeList())},unique:function(e){var t={};return e.forEach(function(e){t[n()(e)]=e}),e=i()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var o=this,a=this.selectionList.indexOf(e);this.selectionList.splice(a,1),this.formatSelectionList(this.selectionList),o.adList.forEach(function(t){t.id==e.id&&o.adList.splice(o.adList.indexOf(t),1)}),o.changed+=1,o.adDefaultSelection=o.adList.slice(0)},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,o){this.handleType=t,this.employeeObj=e,this.typeTitle=o,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,o=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",a={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(l.a)(o,a).then(function(o){1==o.data.errorCode?(e.employeeList=o.data.result.list,e.total=t?o.data.result.total:o.data.result.pageInfo.total):e.$message.error({message:o.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","correctionDate","handleEmployee"]}}},v={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"e-r-l-container"},[o("div",{staticClass:"handle-area"},[o("div",{staticClass:"flex1"},[o("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),o("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?o("div",{staticClass:"block"},[o("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),o("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[o("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return o("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),o("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return o("el-option",{key:t,attrs:{label:e,value:t}})}))],e._v(" "),o("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名或手机号",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[e._v("导出"),o("i",{staticClass:"el-icon-upload el-icon--right"})])],1),e._v(" "),e.selectionList.length>0?o("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,a){return[o("li",{key:a+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),o("i",{staticClass:"el-icon-close",on:{click:function(o){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),o("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),o("el-table",{staticClass:"list-table",attrs:{height:e.employeeList.length?e.tableH:"auto",data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[o("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?o("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),o("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[o("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),o("vue-select-store",{ref:"storeSelector",on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),o("vue-select-employee",{ref:"departmentSelector",attrs:{changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var g=o("VU/8")(f,v,!1,function(e){o("Zp4q")},null,null);t.a=g.exports},O3H5:function(e,t,o){"use strict";var a=o("mvHQ"),i=o.n(a),s=o("P9l9"),n=(o("0xDb"),o("DAYN")),l={name:"export-set",components:{draggable:o.n(n).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{checkThis:function(e){e.checked&&this.checkedList.push(e)},handleCheckAllChange:function(e){this.checkedList=[],this.origin.forEach(function(t,o){t.checked=e,e&&(t.order=o+1)}),e&&(this.checkedList=this.origin.slice(0))},getTemplate:function(){var e=this;Object(s.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(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=[],o=[],a=e;e.forEach(function(e){e.title=e.fieldName,e.name=e.fieldName,e.checked=!1;var o=[];a.forEach(function(t){t.parentCode==e.fieldCode&&o.push(t)}),o.sort(function(e,t){return 1*e.sort-1*t.sort}),o.length>0&&(e.childrens=o),0==e.parentCode&&t.push(e)}),t.sort(function(e,t){return 1*e.sort-1*t.sort}),t.forEach(function(e){o=o.concat(e.childrens)}),this.origin=o,this.tempList=t},cancelCho:function(){this.origin.forEach(function(e){e.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var e=[];this.checkedList.forEach(function(t){t.checked&&e.push({fieldCode:t.fieldCode,fieldName:t.fieldName})});i()(e);var t=window.location.origin;-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),location.href=t+"/haoban-manage-web/record/define-export?exportTitleContent="+i()(e),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},r={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"export-set-container"},[e._m(0),e._v(" "),o("div",{staticClass:"cho-list"},[o("draggable",{model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},[e._l(e.checkedList,function(t){return[t.checked?o("div",{key:t.fieldCode,staticClass:"cho"},[e._v(e._s(t.fieldName))]):e._e()]})],2)],1),e._v(" "),o("div",{staticClass:"cho-area"},[o("div",{staticClass:"title"},[e._v("选择需要导出的字段")]),e._v(" "),o("div",{staticClass:"cho-area-group"},[o("div",{staticClass:"group-div"},[o("div",{staticClass:"group-title"}),e._v(" "),o("ul",{staticClass:"group-son-list"},[o("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1)]),e._v(" "),e._l(e.tempList,function(t,a){return o("div",{key:t.fieldCode+a,staticClass:"group-div"},[o("div",{staticClass:"group-title"},[e._v(e._s(t.title))]),e._v(" "),o("ul",{staticClass:"group-son-list"},[e._l(e.origin,function(a){return[a.parentCode==t.fieldCode?o("li",{key:a.fieldCode},[o("el-checkbox",{key:a.fieldCode,attrs:{label:a.fieldName},on:{change:function(t){e.checkThis(a)}},model:{value:a.checked,callback:function(t){e.$set(a,"checked",t)},expression:"items.checked"}},[e._v(e._s(a.fieldName))])],1):e._e()]})],2)])})],2)]),e._v(" "),o("div",{staticClass:"handle-cho-btn"},[o("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:e.checkedList.length<1},on:{click:e.exportCho}},[e._v("导出"),o("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),o("el-button",{on:{click:e.cancelCho}},[e._v("取消")])],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"title"},[this._v("已选择字段"),t("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var c=o("VU/8")(l,r,!1,function(e){o("s9fp")},null,null);t.a=c.exports},Zp4q:function(e,t){},faBR:function(e,t){},q5YI:function(e,t){},s9fp:function(e,t){},zGJY:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("3Xzz"),i=o("P9l9"),s=o("O3H5"),n=o("NNAT"),l={name:"employeeRecord",components:{navCrumb:a.a,employeeList:n.a,exportSet:s.a},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},otherSet:{},countObj:{},showExportSet:!1}},methods:{cancelCho:function(){this.showExportSet=!1},showExportSetFn:function(){this.showExportSet=!0},getEmployeeCount:function(){var e=this;Object(i.a)("/haoban-manage-web/record/employee-count-detail",{}).then(function(t){console.log(t,"res count"),1==t.data.errorCode?e.countObj=t.data.result:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},beforeMount:function(){this.getEmployeeCount(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){console.log(document.querySelector(".contact-wrap__body")),document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"common-set-wrap employee-record-wrap",style:{height:e.windowH}},[o("nav-crumb",{attrs:{navpath:e.navpath,slotFlag:!0}},[[o("div",{staticClass:"top-area"},[o("div",{staticClass:"top-title"},[o("span",{staticClass:"title-span"},[e._v("在职员工")]),e._v(" "),o("a",{attrs:{href:"#/recordIo?importCode=record"}},[o("el-button",{attrs:{type:"primary"}},[e._v("导入员工档案"),o("i",{staticClass:"el-icon-upload el-icon--right"})])],1)]),e._v(" "),o("div",{staticClass:"e-type-num-title"},e._l(e.countObj,function(t,a){return o("div",{key:a,staticClass:"type-cell",class:"onWorkCout"==a||"noTypeWorkCount"==a?"with-bdr":""},[o("p",{staticClass:"type-name"},[e._v(e._s(e.typeObj[a]))]),e._v(" "),o("p",{staticClass:"num"},[e._v(e._s(t))])])}))])]],2),e._v(" "),o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box"},[o("div",{staticClass:"e-record-container"},[e.showExportSet?[o("export-set",{attrs:{otherSet:e.otherSet},on:{cancelCho:e.cancelCho}})]:[o("employee-list",{on:{showExportSetFn:e.showExportSetFn}})]],2)])]),e._v(" "),o("vue-gic-footer")],1)},staticRenderFns:[]};var c=o("VU/8")(l,r,!1,function(e){o("faBR")},null,null);t.default=c.exports}}); webpackJsonp([5],{NNAT:function(e,t,o){"use strict";var a=o("fZjL"),i=o.n(a),s=o("mvHQ"),n=o.n(s),l=o("P9l9"),r=o("0xDb"),c={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:r.b},data:function(){return{typeLsit:["全部","全职","兼职","外包","实习","无类型"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{callHandle:function(e){console.log(e),"编辑员工资料"!=e.typeTitle?this.$emit("callHandle",e.obj,e.type,e.typeTitle):location.href="#/recordInfo?recordId="+e.obj.recordId}},mounted:function(){}},d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.propList[e.item].slot?o("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?o("div",[e._v("\n "+e._s(e.typeLsit[t.row[e.item]||5])+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?o("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?o("div",[t.row[e.item]?o("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):o("div",{staticClass:"replace-head-img"},[o("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?o("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?o("div",[o("div",{staticClass:"table-handle"},[o("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[o("span",{staticClass:"el-dropdown-link"},[e._v("\n 更多"),o("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[o("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),o("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),o("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),o("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?o("div",[o("div",{staticClass:"table-handle"},[o("a",{staticClass:"a-href",attrs:{href:"#/recordInfo?recordId="+t.row.recordId+"&type=unemployee"}},[e._v("编辑")])])]):e._e()]}}])}):o("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item}})},staticRenderFns:[]};var h=o("VU/8")(c,d,!1,function(e){o("q5YI")},null,null).exports,p=o("IVno"),u=o("Ie7z"),m=o("c4uw"),f={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:h,handleDialog:p.a,vueSelectStore:u.a,vueSelectEmployee:m.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,o=new Date;o.setTime(o.getTime()-6048e5),e.$emit("pick",[o,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,o=new Date;o.setTime(o.getTime()-2592e6),e.$emit("pick",[o,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,o=new Date;o.setTime(o.getTime()-7776e6),e.$emit("pick",[o,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:["全部","正式","试用"],typeLsit:["全部","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:0,total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adList:[],adDefaultSelection:[],stList:[],changed:0}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(l.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var o=[],a=[];1==t.data.errorCode&&(o=t.data.result.departmentList||[],a=t.data.result.searchList||[]),e.treeData={treeData:o,personData:a},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.$refs.departmentSelector.treeSet.dialogVisible=!0},callStoreSelector:function(){this.$refs.storeSelector.treeSet.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=this,o=(t.pageNum,t.chooseClerkIdList.join(","),t.chooseGroupIdList.join(","),t.chooseStoreIdList.join(","),t.pageSize,t.sortType,0==t.clerkStatus||t.clerkStatus,t.sortColumn,0==t.clerkType||t.clerkType,t.startDate,t.endDate,t.searchParam,0==t.clerkType?"":t.clerkType);location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+o+"&sortType="+t.sortType+"&sortColumn="+t.sortColumn+"&startDate="+t.startDate+"&endDate="+t.endDate+"&searchParam="+t.searchParam+"&chooseClerkIdList="+t.chooseClerkIdList.join(",")+"&chooseGroupIdList="+t.chooseGroupIdList.join(",")+"&chooseStoreIdList="+t.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e,this.adList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},handleStoreSelectedList:function(e){this.stList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},formatSelectionList:function(e){var t=this.unique(e);this.selectionList=t;var o=this;t.length&&(o.chooseClerkIdList=[],o.chooseStoreIdList=[],o.chooseGroupIdList=[],t.forEach(function(e){e.employeeClerkId?o.chooseClerkIdList.push(e.employeeClerkId):e.storeId?o.chooseStoreIdList.push(e.storeId):e.groupId&&o.chooseGroupIdList.push(e.groupId)}),o.getEmloyeeList())},unique:function(e){var t={};return e.forEach(function(e){t[n()(e)]=e}),e=i()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var o=this,a=this.selectionList.indexOf(e);this.selectionList.splice(a,1),this.formatSelectionList(this.selectionList),o.adList.forEach(function(t){t.id==e.id&&o.adList.splice(o.adList.indexOf(t),1)}),o.changed+=1,o.adDefaultSelection=o.adList.slice(0)},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,o){this.handleType=t,this.employeeObj=e,this.typeTitle=o,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,o=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",a={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(l.a)(o,a).then(function(o){1==o.data.errorCode?(e.employeeList=o.data.result.list,e.total=t?o.data.result.total:o.data.result.pageInfo.total):e.$message.error({message:o.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","correctionDate","handleEmployee"]}}},v={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"e-r-l-container"},[o("div",{staticClass:"handle-area"},[o("div",{staticClass:"flex1"},[o("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),o("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?o("div",{staticClass:"block"},[o("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),o("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[o("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return o("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),o("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return o("el-option",{key:t,attrs:{label:e,value:t}})}))],e._v(" "),o("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名或手机号",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[e._v("导出"),o("i",{staticClass:"el-icon-upload el-icon--right"})])],1),e._v(" "),e.selectionList.length>0?o("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,a){return[o("li",{key:a+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),o("i",{staticClass:"el-icon-close",on:{click:function(o){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),o("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),o("el-table",{staticClass:"list-table",attrs:{height:e.employeeList.length?e.tableH:"auto",data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[o("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?o("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),o("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[o("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),o("vue-select-store",{ref:"storeSelector",on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),o("vue-select-employee",{ref:"departmentSelector",attrs:{changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var g=o("VU/8")(f,v,!1,function(e){o("Zp4q")},null,null);t.a=g.exports},O3H5:function(e,t,o){"use strict";var a=o("mvHQ"),i=o.n(a),s=o("P9l9"),n=(o("0xDb"),o("DAYN")),l={name:"export-set",components:{draggable:o.n(n).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{checkThis:function(e){e.checked&&this.checkedList.push(e)},handleCheckAllChange:function(e){this.checkedList=[],this.origin.forEach(function(t,o){t.checked=e,e&&(t.order=o+1)}),e&&(this.checkedList=this.origin.slice(0))},getTemplate:function(){var e=this;Object(s.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(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=[],o=[],a=e;e.forEach(function(e){e.title=e.fieldName,e.name=e.fieldName,e.checked=!1;var o=[];a.forEach(function(t){t.parentCode==e.fieldCode&&o.push(t)}),o.sort(function(e,t){return 1*e.sort-1*t.sort}),o.length>0&&(e.childrens=o),0==e.parentCode&&t.push(e)}),t.sort(function(e,t){return 1*e.sort-1*t.sort}),t.forEach(function(e){o=o.concat(e.childrens)}),this.origin=o,this.tempList=t},cancelCho:function(){this.origin.forEach(function(e){e.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var e=[];this.checkedList.forEach(function(t){t.checked&&e.push({fieldCode:t.fieldCode,fieldName:t.fieldName})});i()(e);var t=window.location.origin;-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),location.href=t+"/haoban-manage-web/record/define-export?exportTitleContent="+i()(e),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},r={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"export-set-container"},[e._m(0),e._v(" "),o("div",{staticClass:"cho-list"},[o("draggable",{model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},[e._l(e.checkedList,function(t){return[t.checked?o("div",{key:t.fieldCode,staticClass:"cho"},[e._v(e._s(t.fieldName))]):e._e()]})],2)],1),e._v(" "),o("div",{staticClass:"cho-area"},[o("div",{staticClass:"title"},[e._v("选择需要导出的字段")]),e._v(" "),o("div",{staticClass:"cho-area-group"},[o("div",{staticClass:"group-div"},[o("div",{staticClass:"group-title"}),e._v(" "),o("ul",{staticClass:"group-son-list"},[o("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1)]),e._v(" "),e._l(e.tempList,function(t,a){return o("div",{key:t.fieldCode+a,staticClass:"group-div"},[o("div",{staticClass:"group-title"},[e._v(e._s(t.title))]),e._v(" "),o("ul",{staticClass:"group-son-list"},[e._l(e.origin,function(a){return[a.parentCode==t.fieldCode?o("li",{key:a.fieldCode},[o("el-checkbox",{key:a.fieldCode,attrs:{label:a.fieldName},on:{change:function(t){e.checkThis(a)}},model:{value:a.checked,callback:function(t){e.$set(a,"checked",t)},expression:"items.checked"}},[e._v(e._s(a.fieldName))])],1):e._e()]})],2)])})],2)]),e._v(" "),o("div",{staticClass:"handle-cho-btn"},[o("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:e.checkedList.length<1},on:{click:e.exportCho}},[e._v("导出"),o("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),o("el-button",{on:{click:e.cancelCho}},[e._v("取消")])],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"title"},[this._v("已选择字段"),t("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var c=o("VU/8")(l,r,!1,function(e){o("s9fp")},null,null);t.a=c.exports},Zp4q:function(e,t){},cQ8w:function(e,t){},q5YI:function(e,t){},s9fp:function(e,t){},zGJY:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("3Xzz"),i=o("P9l9"),s=o("O3H5"),n=o("NNAT"),l={name:"employeeRecord",components:{navCrumb:a.a,employeeList:n.a,exportSet:s.a},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},otherSet:{},countObj:{},showExportSet:!1}},methods:{cancelCho:function(){this.showExportSet=!1},showExportSetFn:function(){this.showExportSet=!0},getEmployeeCount:function(){var e=this;Object(i.a)("/haoban-manage-web/record/employee-count-detail",{}).then(function(t){console.log(t,"res count"),1==t.data.errorCode?e.countObj=t.data.result:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},beforeMount:function(){this.getEmployeeCount(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"common-set-wrap employee-record-wrap",style:{height:e.windowH}},[o("nav-crumb",{attrs:{navpath:e.navpath,slotFlag:!0}},[[o("div",{staticClass:"top-area"},[o("div",{staticClass:"top-title"},[o("span",{staticClass:"title-span"},[e._v("在职员工")]),e._v(" "),o("a",{attrs:{href:"#/recordIo?importCode=record"}},[o("el-button",{attrs:{type:"primary"}},[e._v("导入员工档案"),o("i",{staticClass:"el-icon-upload el-icon--right"})])],1)]),e._v(" "),o("div",{staticClass:"e-type-num-title"},e._l(e.countObj,function(t,a){return o("div",{key:a,staticClass:"type-cell",class:"onWorkCout"==a||"noTypeWorkCount"==a?"with-bdr":""},[o("p",{staticClass:"type-name"},[e._v(e._s(e.typeObj[a]))]),e._v(" "),o("p",{staticClass:"num"},[e._v(e._s(t))])])}))])]],2),e._v(" "),o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box"},[o("div",{staticClass:"e-record-container"},[e.showExportSet?[o("export-set",{attrs:{otherSet:e.otherSet},on:{cancelCho:e.cancelCho}})]:[o("employee-list",{on:{showExportSetFn:e.showExportSetFn}})]],2)])]),e._v(" "),o("vue-gic-footer")],1)},staticRenderFns:[]};var c=o("VU/8")(l,r,!1,function(e){o("cQ8w")},null,null);t.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([42],{"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(o){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("mvHQ"),a=n.n(o),r=n("7+uW"),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var s=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("Qxu9")},null,null).exports,i=n("/ocq"),m=n("5tgt"),d=n.n(m);r.default.use(i.a);var p=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var u,l=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:d()("login","index")},{path:"/index",name:"index",component:d()("index","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:d()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:d()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:d()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:d()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:d()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:d()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:d()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:d()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:d()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:d()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:d()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:d()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:d()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:d()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:d()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:d()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:d()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:d()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",component:d()("enterpriseApp","index")},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:d()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:d()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:d()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:d()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:d()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:d()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:d()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:d()("setting","storePermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:d()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:d()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:d()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:d()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:d()("contacts","staffRecordsTemplate")},{path:"/403",name:"无权访问",component:p},{path:"/404",name:"error404",component:p},{path:"/500",name:"error500",component:p},{path:"*",redirect:"/404",hidden:!0}],f=new i.a({routes:l,scrollBehavior:function(){return{y:0}}}),h=n("zL8q"),v=n.n(h),g=n("Rf8U"),w=n.n(g),y=n("mtWM"),C=n.n(y),x=n("bOdI"),A=n.n(x),I=n("NYxO");r.default.use(I.a);var R=new I.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(u={},A()(u,"login",function(e,t){sessionStorage.token=t,e.token=t}),A()(u,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),A()(u,"title",function(e,t){e.title=t}),A()(u,"show",function(e,t){e.show=t}),u)}),k=(n("4qCZ"),n("uKUT"),n("Xcu2"),n("TUaa")),P=n.n(k),S=(n("tyqE"),n("pRVe")),O=n.n(S),T=n("SE7k"),b=n.n(T),D=n("XsK6"),F=n.n(D),j=n("QRL9"),z=n.n(j),E=n("2Pnh"),G=n.n(E),H=n("l9mu"),q=n.n(H),J={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;G()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,o=t.height,a=n/592.28*841.89,r=o,c=0,s=592.28/n*o,i=t.toDataURL("image/jpeg",1),m=new q.a("","pt","a4");if(r<a)m.addImage(i,"JPEG",0,0,595.28,s);else for(;r>0;)m.addImage(i,"JPEG",0,c,595.28,s),c-=841.89,(r-=a)>0&&m.addPage();m.save(e+".pdf")})}}};r.default.use(J),r.default.use(F.a),r.default.use(z.a),r.default.use(b.a),r.default.use(O.a),r.default.use(P.a),r.default.config.productionTip=!1,r.default.use(v.a,{size:"large"}),r.default.use(w.a,C.a),r.default.axios.defaults.withCredentials=!0,f.beforeEach(function(e,t,n){var o=void 0,r=window.location.origin;o="-1"!=r.indexOf("localhost")?"http://www.gicdev.com":r,localStorage.getItem("userInfo")||C.a.get(o+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode?h.Message.error({duration:1e3,message:t.message}):localStorage.setItem("userInfo",a()(t.result))}).catch(function(e){h.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new r.default({el:"#app",router:f,store:R,components:{App:s},template:"<App/>"})},Opzk:function(e,t,n){var o={"./contacts/addClerk.vue":["27o1",0,15],"./contacts/addDepartment.vue":["HHRu",0,9],"./contacts/addEmployee.vue":["00Sv",38],"./contacts/addGroup.vue":["mPjx",0,28],"./contacts/administrativeFrame.vue":["kLcy",0,3],"./contacts/employee.vue":["AdJp",0,30],"./contacts/employeeIo.vue":["Rwbg",0,36],"./contacts/employeeRecord.vue":["zGJY",0,5],"./contacts/fileSet.vue":["CSjr",0,6],"./contacts/index.vue":["41Rh",0,23],"./contacts/recordInfo.vue":["67iC",0,18],"./contacts/recordIo.vue":["738z",0,16],"./contacts/recycle.vue":["HkK0",0,19],"./contacts/shareAddDepartment.vue":["q5Ri",0,10],"./contacts/shareCode.vue":["JsWW",0,35],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,12],"./contacts/storeFrame.vue":["7SJI",0,4],"./contacts/storeInfo.vue":["h/6A",0,37],"./contacts/storeIo.vue":["RHxA",0,29],"./contacts/unemployee.vue":["TGrv",0,11],"./enterpriseApp/index.vue":["da9f",27],"./errorPage/403.vue":["6XGN",21],"./errorPage/404.vue":["AejC",24],"./errorPage/500.vue":["FskK",22],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,26],"./login/index.vue":["T+/8",0,7],"./reviewCenter/index.vue":["+lem",33],"./reviewCenter/reviewed.vue":["CLYF",0,14],"./reviewCenter/unreview.vue":["xCEU",0,13],"./setting/addAdmin.vue":["rs/A",0,32],"./setting/addAdminRole.vue":["fZsz",0,20],"./setting/companyAddress.vue":["SKyE",0,31],"./setting/companyCertify.vue":["3zYh",0,8],"./setting/index.vue":["VlR1",34],"./setting/replaceAdmin.vue":["ys9I",0,39],"./setting/setChildAdmin.vue":["VqB7",0,40],"./setting/staffDetails.vue":["Zyzf",0,25],"./setting/storePermission.vue":["Xwfy",0,17]};function a(e){var t=o[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}a.keys=function(){return Object.keys(o)},a.id="Opzk",e.exports=a},Qxu9:function(e,t){},Xcu2:function(e,t){},uKUT:function(e,t){}},["NHnr"]); webpackJsonp([42],{"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(o){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("mvHQ"),a=n.n(o),r=n("7+uW"),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var s=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("Qxu9")},null,null).exports,i=n("/ocq"),m=n("5tgt"),d=n.n(m);r.default.use(i.a);var p=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var u,l=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:d()("login","index")},{path:"/index",name:"index",component:d()("index","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:d()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:d()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:d()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:d()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:d()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:d()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:d()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:d()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:d()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:d()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:d()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:d()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:d()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:d()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:d()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:d()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:d()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:d()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",component:d()("enterpriseApp","index")},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:d()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:d()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:d()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:d()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:d()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:d()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:d()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:d()("setting","storePermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:d()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:d()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:d()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:d()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:d()("contacts","staffRecordsTemplate")},{path:"/403",name:"无权访问",component:p},{path:"/404",name:"error404",component:p},{path:"/500",name:"error500",component:p},{path:"*",redirect:"/404",hidden:!0}],f=new i.a({routes:l,scrollBehavior:function(){return{y:0}}}),h=n("zL8q"),v=n.n(h),g=n("Rf8U"),w=n.n(g),y=n("mtWM"),C=n.n(y),x=n("bOdI"),A=n.n(x),I=n("NYxO");r.default.use(I.a);var R=new I.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(u={},A()(u,"login",function(e,t){sessionStorage.token=t,e.token=t}),A()(u,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),A()(u,"title",function(e,t){e.title=t}),A()(u,"show",function(e,t){e.show=t}),u)}),k=(n("4qCZ"),n("uKUT"),n("Xcu2"),n("TUaa")),P=n.n(k),S=n("tyqE"),O=n.n(S),T=n("pRVe"),b=n.n(T),D=n("SE7k"),F=n.n(D),j=n("XsK6"),z=n.n(j),E=n("QRL9"),G=n.n(E),H=n("2Pnh"),q=n.n(H),J=n("l9mu"),X=n.n(J),U={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;q()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,o=t.height,a=n/592.28*841.89,r=o,c=0,s=592.28/n*o,i=t.toDataURL("image/jpeg",1),m=new X.a("","pt","a4");if(r<a)m.addImage(i,"JPEG",0,0,595.28,s);else for(;r>0;)m.addImage(i,"JPEG",0,c,595.28,s),c-=841.89,(r-=a)>0&&m.addPage();m.save(e+".pdf")})}}};r.default.use(U),r.default.use(z.a),r.default.use(G.a),r.default.use(F.a),r.default.use(b.a),r.default.use(O.a),r.default.use(P.a),r.default.config.productionTip=!1,r.default.use(v.a,{size:"large"}),r.default.use(w.a,C.a),r.default.axios.defaults.withCredentials=!0,f.beforeEach(function(e,t,n){var o=void 0,r=window.location.origin;o="-1"!=r.indexOf("localhost")?"http://www.gicdev.com":r,localStorage.getItem("userInfo")||C.a.get(o+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode?h.Message.error({duration:1e3,message:t.message}):localStorage.setItem("userInfo",a()(t.result))}).catch(function(e){h.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new r.default({el:"#app",router:f,store:R,components:{App:s},template:"<App/>"})},Opzk:function(e,t,n){var o={"./contacts/addClerk.vue":["27o1",0,15],"./contacts/addDepartment.vue":["HHRu",0,9],"./contacts/addEmployee.vue":["00Sv",38],"./contacts/addGroup.vue":["mPjx",0,27],"./contacts/administrativeFrame.vue":["kLcy",0,3],"./contacts/employee.vue":["AdJp",0,29],"./contacts/employeeIo.vue":["Rwbg",0,36],"./contacts/employeeRecord.vue":["zGJY",0,5],"./contacts/fileSet.vue":["CSjr",0,6],"./contacts/index.vue":["41Rh",0,35],"./contacts/recordInfo.vue":["67iC",0,18],"./contacts/recordIo.vue":["738z",0,16],"./contacts/recycle.vue":["HkK0",0,19],"./contacts/shareAddDepartment.vue":["q5Ri",0,10],"./contacts/shareCode.vue":["JsWW",0,34],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,12],"./contacts/storeFrame.vue":["7SJI",0,4],"./contacts/storeInfo.vue":["h/6A",0,37],"./contacts/storeIo.vue":["RHxA",0,28],"./contacts/unemployee.vue":["TGrv",0,11],"./enterpriseApp/index.vue":["da9f",26],"./errorPage/403.vue":["6XGN",21],"./errorPage/404.vue":["AejC",23],"./errorPage/500.vue":["FskK",22],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,25],"./login/index.vue":["T+/8",0,7],"./reviewCenter/index.vue":["+lem",32],"./reviewCenter/reviewed.vue":["CLYF",0,14],"./reviewCenter/unreview.vue":["xCEU",0,13],"./setting/addAdmin.vue":["rs/A",0,31],"./setting/addAdminRole.vue":["fZsz",0,20],"./setting/companyAddress.vue":["SKyE",0,30],"./setting/companyCertify.vue":["3zYh",0,8],"./setting/index.vue":["VlR1",33],"./setting/replaceAdmin.vue":["ys9I",0,39],"./setting/setChildAdmin.vue":["VqB7",0,40],"./setting/staffDetails.vue":["Zyzf",0,24],"./setting/storePermission.vue":["Xwfy",0,17]};function a(e){var t=o[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}a.keys=function(){return Object.keys(o)},a.id="Opzk",e.exports=a},Qxu9:function(e,t){},Xcu2:function(e,t){},uKUT:function(e,t){}},["NHnr"]);
\ No newline at end of file \ 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],f[o]&&u.push(f[o][0]),f[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=d(d.s=r[i]);return b};var c={},f={44:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});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,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"static/js/"+e+"."+{0:"f25c4ad74628a9c4e256",1:"4e5dc79adcf9e1d40da1",2:"0018e5e56bcf374b0fc9",3:"e2d855350417948f7791",4:"c03fae50c3898c1c507f",5:"d7ff7b3011efa12ed86d",6:"bcf4532e6a55dfcc50de",7:"5e87410d160e19c222a5",8:"bc9879c18e0eefd45736",9:"dafaf5df18266c43eda5",10:"f71d995b31916b56a357",11:"904fb1ec168a22ec03a3",12:"f33078370ab13436ea86",13:"2d4736bd7e251f3dcf47",14:"e7d3ed2156f3fb9a1081",15:"4559c7f280133c1c843a",16:"7ac0f9e9a62d414ab15c",17:"e276878409aef724ffb3",18:"472518a16a6d3071e814",19:"cad3457efbfa82dcd956",20:"ada1a23d2ad53ce7e8f0",21:"86cf9b32a6a3a5bdd242",22:"a51dc83d6123e696f14e",23:"aa99c3205656de3109c4",24:"947e24ea8c5b9f009b49",25:"e272d1fc498ba8f986ef",26:"6086bb548b440df35c76",27:"421e7b88a9f2266350a4",28:"4147549ac5b6140398a6",29:"61f4d15a30accce601a8",30:"24ee02c41bae733cd122",31:"07e388fdec2be21fd250",32:"938a881fc605af2fc5a5",33:"ed418d28d5537a6780cb",34:"5a83954b54eb5fdc7f4f",35:"66e3c7e04a15a59e3564",36:"bbd830d28f1a8a5f4c1f",37:"774ebe3d54ad8b741119",38:"b99de1c255ed20dcccbd",39:"e40ef2d2e3948fbf5db2",40:"65554ca82038913385c1",43:"13848f214bb993c20004"}[e]+".js";var t=setTimeout(o,12e4);function o(){r.onerror=r.onload=null,clearTimeout(t);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return r.onerror=r.onload=o,n.appendChild(r),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,n,r){for(var t,o,b,i=0,u=[];i<a.length;i++)o=a[i],f[o]&&u.push(f[o][0]),f[o]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(c&&c(a,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=d(d.s=r[i]);return b};var a={},f={44:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"static/js/"+e+"."+{0:"f25c4ad74628a9c4e256",1:"4e5dc79adcf9e1d40da1",2:"0018e5e56bcf374b0fc9",3:"e2d855350417948f7791",4:"c03fae50c3898c1c507f",5:"96e9bd527364c3b21801",6:"bcf4532e6a55dfcc50de",7:"5e87410d160e19c222a5",8:"bc9879c18e0eefd45736",9:"dafaf5df18266c43eda5",10:"f71d995b31916b56a357",11:"904fb1ec168a22ec03a3",12:"f33078370ab13436ea86",13:"2d4736bd7e251f3dcf47",14:"e7d3ed2156f3fb9a1081",15:"4559c7f280133c1c843a",16:"7ac0f9e9a62d414ab15c",17:"e276878409aef724ffb3",18:"ba7e9ae20df2cc330b46",19:"cad3457efbfa82dcd956",20:"ada1a23d2ad53ce7e8f0",21:"86cf9b32a6a3a5bdd242",22:"a51dc83d6123e696f14e",23:"2d4fb5655c6a50627ac3",24:"116e361cc02f70bfcaa3",25:"cef58007b279cec51d0c",26:"a0ea0a43e5b05784bab9",27:"02828f20958e17774db5",28:"525a4ed049c32ebe88d1",29:"76d53249cb1c22114f3c",30:"31fbea9ec1937ab9d52b",31:"27521ee3f5b7ab5edde4",32:"193e23440780913a5a69",33:"276f06017974d69c6d38",34:"de97886133d42d6f0b82",35:"6bfb9b1f8bb17ea37d29",36:"bbd830d28f1a8a5f4c1f",37:"774ebe3d54ad8b741119",38:"b99de1c255ed20dcccbd",39:"e40ef2d2e3948fbf5db2",40:"65554ca82038913385c1",43:"13848f214bb993c20004"}[e]+".js";var t=setTimeout(o,12e4);function o(){r.onerror=r.onload=null,clearTimeout(t);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return r.onerror=r.onload=o,n.appendChild(r),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
...@@ -25,7 +25,7 @@ Vue.use(vueGicImgPreview) ...@@ -25,7 +25,7 @@ Vue.use(vueGicImgPreview)
Vue.use(vueOfficeUploadImage) Vue.use(vueOfficeUploadImage)
Vue.use(vueGicFooter) Vue.use(vueGicFooter)
Vue.use(vueOfficeArea) Vue.use(vueOfficeArea)
// Vue.use(vueOfficeAside) Vue.use(vueOfficeAside)
Vue.use(vueOfficeHeader) Vue.use(vueOfficeHeader)
Vue.config.productionTip = false; Vue.config.productionTip = false;
......
...@@ -117,7 +117,6 @@ export default { ...@@ -117,7 +117,6 @@ export default {
}) })
}, },
beforeDestroy() { beforeDestroy() {
console.log(document.querySelector('.contact-wrap__body'))
document.querySelector('.contact-wrap__body').style.overflow = 'auto'; document.querySelector('.contact-wrap__body').style.overflow = 'auto';
} }
}; };
......
...@@ -19,12 +19,10 @@ ...@@ -19,12 +19,10 @@
</template> </template>
<script> <script>
import topNav from 'components/nav/nav'; import topNav from 'components/nav/nav';
import vueOfficeAside from 'components/vue-office-aside';
export default { export default {
name: "contact", name: "contact",
components: { components: {
topNav, topNav
vueOfficeAside
}, },
data() { data() {
return { return {
......
<template> <template>
<div class="common-set-wrap"> <div class="common-set-wrap" :style="{'height': windowH}">
<nav-crumb :navpath="navpath"></nav-crumb> <nav-crumb :navpath="navpath"></nav-crumb>
<div class="right-content"> <div class="right-content">
<div class="right-box"> <div class="right-box">
...@@ -78,6 +78,7 @@ export default { ...@@ -78,6 +78,7 @@ export default {
}, },
data() { data() {
return { return {
windowH: (window.screen.availHeight - 180) + 'px',
// 面包屑参数 // 面包屑参数
navpath: [{ navpath: [{
name: '首页', name: '首页',
...@@ -289,6 +290,12 @@ export default { ...@@ -289,6 +290,12 @@ export default {
if (!!type && type == 'unemployee') { if (!!type && type == 'unemployee') {
that.navpath = that.editNavpath; that.navpath = that.editNavpath;
} }
that.$nextTick(function(){
document.querySelector('.contact-wrap__body').style.overflow = 'hidden';
})
},
beforeDestroy() {
document.querySelector('.contact-wrap__body').style.overflow = 'auto';
} }
} }
......
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