Commit a812b2d3 by 无尘

fix: 修改上传 excel 判断

parent 5e054eb9
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.331635e1d8d4bf397026093390c55587.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.dfc3b81e9bc83253337f.js></script><script type=text/javascript src=./static/js/vendor.ccdd3a2984b37616bc62.js></script><script type=text/javascript src=./static/js/app.92700c7a47e67590d7a6.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.331635e1d8d4bf397026093390c55587.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.ee18678b4386519d8aa2.js></script><script type=text/javascript src=./static/js/vendor.ccdd3a2984b37616bc62.js></script><script type=text/javascript src=./static/js/app.0bb56d21b99208853e72.js></script></body></html>
\ No newline at end of file
webpackJsonp([44],{Rwbg:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),i=a("elmV"),o=a("P9l9"),r={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:"administrativeFrame"},{name:"批量导入导出",path:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/emp/upload",uploadSuccessMsg:"",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,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(o.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},uploadSuccess:function(t){1==t.errorCode?this.uploadSuccessMsg=t.message.split(","):this.$message.error(t.message),this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){var a=e.length-1<0?0:e.length-1,s=t.name.lastIndexOf("."),i=t.name.substring(s+1,t.name.length);if(!(i.includes("xls")||i.includes("xlsx")))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(a,1),!1;this.fileList=[e[a]]}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap",style:{height:t.windowH}},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"io-container border-box "},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-radio-button",{attrs:{label:"import"}},[t._v("导入通讯录")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载员工通讯录模板,统一收集员工信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/excel/通讯录-行政架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传收集完毕的员工信息表\n "),a("div",{staticClass:"d-u-btn"},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出所有员工信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/emp/export?departmentId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改员工信息\n ")])]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"},[t._v(t._s(t.uploadSuccessMsg))]),t._v(" "),a("a",{attrs:{href:t.host+"/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),a("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],1),t._v(" "),t.logList.length?a("div",{staticClass:"pagination"},[a("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):t._e()],1)],1)])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area border-box "},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,通讯录最多只能导入200人以内的员工,如有超出可先进行"),a("a",{staticClass:"a-href",attrs:{href:"#/companyCertify"}},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对员工信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 员工所在部门:请先到后台创建部门,将部门id填入导入表格中,导入中,若找不到对应部门,将直接将员工挂在根目录下面\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入200人,超出后无法导入,请先进行企业认证")])])}]};var n=a("VU/8")(r,l,!1,function(t){a("SRNe")},null,null);e.default=n.exports},SRNe:function(t,e){}});
\ No newline at end of file
webpackJsonp([44],{Mh6D:function(t,e){},e88N:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"话务任务",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"话务任务记录",icon:"icon-tonghuahuawuliang",onlyIconActive:!1},{tabId:"2",tabName:"话务任务设置",icon:"icon-huawujinengzupeizhi",onlyIconActive:!1},{tabId:"3",tabName:"不良评价回访设置",icon:"icon-ribaoshezhi",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("taskRecord?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("trafficTaskSet?appIcon="+this.$route.query.appIcon);break;case"3":this.changeRoute("badEvaluateSet?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("Mh6D")},"data-v-7f9fb16b",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([45],{Mh6D:function(t,e){},e88N:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"话务任务",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"话务任务记录",icon:"icon-tonghuahuawuliang",onlyIconActive:!1},{tabId:"2",tabName:"话务任务设置",icon:"icon-huawujinengzupeizhi",onlyIconActive:!1},{tabId:"3",tabName:"不良评价回访设置",icon:"icon-ribaoshezhi",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("taskRecord?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("trafficTaskSet?appIcon="+this.$route.query.appIcon);break;case"3":this.changeRoute("badEvaluateSet?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("Mh6D")},"data-v-7f9fb16b",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([45],{"5x7s":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),n=a("Ke24"),i=a("PI0u"),o=a("Ch4/"),c=a("3E4D"),r=a("P9l9"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"任务下发设置"}],activeId:"1",setData:{status:!1,time:"12:00"}}},computed:{},methods:{saveSet:Object(i.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,status:t.setData.status?"1":"0",time:t.setData.time};Object(r.e)("/haoban-app-daily-web/daily/create-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):c.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand};Object(r.e)("/haoban-app-daily-web/daily/get-setting",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.setData.status=1==a.result.status,void(t.setData.time=a.result.time);o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","22"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"task-set-content boder-box"},[a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-10 font-w-500"},[t._v("日报开关设置")]),t._v(" "),a("div",{staticClass:"font-14 color-606266 m-b-16"},[t._v("开启后,日报将定时发送")]),t._v(" "),a("div",{},[a("el-switch",{attrs:{"active-text":" ","inactive-text":" "},model:{value:t.setData.status,callback:function(e){t.$set(t.setData,"status",e)},expression:"setData.status"}})],1)]),t._v(" "),a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-10 font-w-500"},[t._v("日报每日下发时间设置")]),t._v(" "),a("div",{staticClass:"font-14 color-606266 m-b-16"},[t._v("该事件设置将在次日生效,为避免影响当日日报的发送,请在日报发送后设置")]),t._v(" "),a("div",[a("el-time-select",{staticClass:"w-118",attrs:{editable:!1,clearable:!1,"picker-options":{start:"00:00",step:"00:15",end:"23:45"},placeholder:"选择时间"},model:{value:t.setData.time,callback:function(e){t.$set(t.setData,"time",e)},expression:"setData.time"}})],1)]),t._v(" "),a("div",{staticClass:"task-set-save m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(d,l,!1,function(t){a("W7qN")},"data-v-7f9ef9d2",null);e.default=u.exports},W7qN:function(t,e){}});
\ No newline at end of file
webpackJsonp([46],{"5x7s":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),n=a("Ke24"),i=a("PI0u"),o=a("Ch4/"),c=a("3E4D"),r=a("P9l9"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"任务下发设置"}],activeId:"1",setData:{status:!1,time:"12:00"}}},computed:{},methods:{saveSet:Object(i.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,status:t.setData.status?"1":"0",time:t.setData.time};Object(r.e)("/haoban-app-daily-web/daily/create-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):c.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand};Object(r.e)("/haoban-app-daily-web/daily/get-setting",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.setData.status=1==a.result.status,void(t.setData.time=a.result.time);o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","22"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"task-set-content boder-box"},[a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-10 font-w-500"},[t._v("日报开关设置")]),t._v(" "),a("div",{staticClass:"font-14 color-606266 m-b-16"},[t._v("开启后,日报将定时发送")]),t._v(" "),a("div",{},[a("el-switch",{attrs:{"active-text":" ","inactive-text":" "},model:{value:t.setData.status,callback:function(e){t.$set(t.setData,"status",e)},expression:"setData.status"}})],1)]),t._v(" "),a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-10 font-w-500"},[t._v("日报每日下发时间设置")]),t._v(" "),a("div",{staticClass:"font-14 color-606266 m-b-16"},[t._v("该事件设置将在次日生效,为避免影响当日日报的发送,请在日报发送后设置")]),t._v(" "),a("div",[a("el-time-select",{staticClass:"w-118",attrs:{editable:!1,clearable:!1,"picker-options":{start:"00:00",step:"00:15",end:"23:45"},placeholder:"选择时间"},model:{value:t.setData.time,callback:function(e){t.$set(t.setData,"time",e)},expression:"setData.time"}})],1)]),t._v(" "),a("div",{staticClass:"task-set-save m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(d,l,!1,function(t){a("W7qN")},"data-v-7f9ef9d2",null);e.default=u.exports},W7qN:function(t,e){}});
\ No newline at end of file
webpackJsonp([46],{"av/3":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("fvdr"),i=a("Qie6"),c={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"企业公告",appIcon:"icon-gonggao",activeSelTab:"1",activeTab:"1",tabListData:[{id:"1",name:"企业公告列表",icon:"",onlyIconActive:!1},{id:"2",name:"新建公告",icon:"",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:o.a,commonDetailLeft:i.a}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=a("VU/8")(c,r,!1,function(t){a("ebGx")},"data-v-7769b0e5",null);e.default=s.exports},ebGx:function(t,e){}});
\ No newline at end of file
webpackJsonp([47],{"av/3":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("fvdr"),i=a("Qie6"),c={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"企业公告",appIcon:"icon-gonggao",activeSelTab:"1",activeTab:"1",tabListData:[{id:"1",name:"企业公告列表",icon:"",onlyIconActive:!1},{id:"2",name:"新建公告",icon:"",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:o.a,commonDetailLeft:i.a}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=a("VU/8")(c,r,!1,function(t){a("ebGx")},"data-v-7769b0e5",null);e.default=s.exports},ebGx:function(t,e){}});
\ No newline at end of file
webpackJsonp([47],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("yw/n")},null,null);n.default=u.exports},"yw/n":function(e,n){}});
\ No newline at end of file
webpackJsonp([48],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("yw/n")},null,null);n.default=u.exports},"yw/n":function(e,n){}});
\ No newline at end of file
webpackJsonp([49],{JJdy:function(t,e){},Rwbg:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),i=a("elmV"),o=a("P9l9"),r={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:"administrativeFrame"},{name:"批量导入导出",path:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/emp/upload",uploadSuccessMsg:"",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,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(o.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},uploadSuccess:function(t){1==t.errorCode?this.uploadSuccessMsg=t.message.split(","):this.$message.error(t.message),this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){var a=e.length-1<0?0:e.length-1,s=t.type?t.type:t.raw.type;if(!("application/vnd.ms-excel"===s||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===s))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(a,1),!1;this.fileList=[e[a]]}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap",style:{height:t.windowH}},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"io-container border-box "},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-radio-button",{attrs:{label:"import"}},[t._v("导入通讯录")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载员工通讯录模板,统一收集员工信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/excel/通讯录-行政架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传收集完毕的员工信息表\n "),a("div",{staticClass:"d-u-btn"},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出所有员工信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/emp/export?departmentId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改员工信息\n ")])]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"},[t._v(t._s(t.uploadSuccessMsg))]),t._v(" "),a("a",{attrs:{href:t.host+"/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),a("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],1),t._v(" "),t.logList.length?a("div",{staticClass:"pagination"},[a("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):t._e()],1)],1)])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area border-box "},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,通讯录最多只能导入200人以内的员工,如有超出可先进行"),a("a",{staticClass:"a-href",attrs:{href:"#/companyCertify"}},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对员工信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 员工所在部门:请先到后台创建部门,将部门id填入导入表格中,导入中,若找不到对应部门,将直接将员工挂在根目录下面\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入200人,超出后无法导入,请先进行企业认证")])])}]};var n=a("VU/8")(r,l,!1,function(t){a("JJdy")},null,null);e.default=n.exports}});
\ No newline at end of file
webpackJsonp([48],{RHxA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Xxa5"),r=a.n(s),o=a("exGp"),i=a.n(o),n=a("3Xzz"),l=a("elmV"),c=a("P9l9"),p=a("unF8"),u=a("Ch4/"),d={name:"employee-io",components:{navCrumb:n.a,uploadExcelComponent:l.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:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/store/upload",uploadSuccessMsg:"",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,gicFlag:!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,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(c.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},handleRemove:function(t,e){},handlePreview:function(t){},uploadSuccess:function(){1==res.errorCode?this.uploadSuccessMsg=res.message.split(","):this.$message.error(res.message),this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){this.fileList=e},getGicData:function(t){var e=this;return i()(r.a.mark(function a(){var s,o,i,n;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(s=e,t){a.next=3;break}return a.abrupt("return",!1);case 3:return o={type:1,businessId:t},a.next=6,Object(p.a)(o);case 6:i=a.sent,1==(n=i.data).errorCode?(s.gicFlag=n.result,s.type=n.result?"export":"import"):u.a.errorMsg(n);case 9:case"end":return a.stop()}},a,e)}))()}},beforeMount:function(){var t=this.$route.query.brandId;this.getGicData(t),"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap",style:{height:t.windowH}},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"io-container border-box "},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t.gicFlag?t._e():a("el-radio-button",{attrs:{label:"import"}},[t._v("导入门店")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载门店导入模板,批量填写门店信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传填写好的门店信息\n "),a("div",{staticClass:"d-u-btn"},[a("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}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("\n 上传\n ")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出门店\n "),a("a",{staticClass:"d-u-btn",attrs:{href:"/haoban-manage-web/store/export?storeGroupId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改门店信息\n ")])]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"},[t._v(t._s(t.uploadSuccessMsg))]),t._v(" "),a("a",{attrs:{href:"/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",prop:"storeName"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店code",prop:"storeCode"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店分组ID",prop:"storeGroupId"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店类型",prop:"storeTypeStr"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店状态",prop:"statusStr"}}),t._v(" "),a("el-table-column",{attrs:{label:"店长",prop:"managerName"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号码",prop:"managerPhone"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s("86"==e.row.managerNationcode||null==e.row.managerNationcode?e.row.managerPhone:"+"+e.row.nationcode+"-"+e.row.managerPhone)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"店长编码",prop:"managerCode"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"managerPostionName"}})],1),t._v(" "),t.logList.length?a("div",{staticClass:"pagination"},[a("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):t._e()],1)],1)])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area border-box "},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"),a("a",{staticClass:"a-href",attrs:{href:"#/companyCertify"}},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对门店信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入")])])}]};var m=a("VU/8")(d,v,!1,function(t){a("dWH0")},null,null);e.default=m.exports},dWH0:function(t,e){}});
\ No newline at end of file
webpackJsonp([49],{RHxA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Xxa5"),r=a.n(s),o=a("exGp"),i=a.n(o),n=a("3Xzz"),l=a("elmV"),c=a("P9l9"),p=a("unF8"),u=a("Ch4/"),d={name:"employee-io",components:{navCrumb:n.a,uploadExcelComponent:l.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:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/store/upload",uploadSuccessMsg:"",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,gicFlag:!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,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(c.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},handleRemove:function(t,e){},handlePreview:function(t){},uploadSuccess:function(){1==res.errorCode?this.uploadSuccessMsg=res.message.split(","):this.$message.error(res.message),this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){this.fileList=e},getGicData:function(t){var e=this;return i()(r.a.mark(function a(){var s,o,i,n;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(s=e,t){a.next=3;break}return a.abrupt("return",!1);case 3:return o={type:1,businessId:t},a.next=6,Object(p.a)(o);case 6:i=a.sent,1==(n=i.data).errorCode?(s.gicFlag=n.result,s.type=n.result?"export":"import"):u.a.errorMsg(n);case 9:case"end":return a.stop()}},a,e)}))()}},beforeMount:function(){var t=this.$route.query.brandId;this.getGicData(t),"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap",style:{height:t.windowH}},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"io-container border-box "},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t.gicFlag?t._e():a("el-radio-button",{attrs:{label:"import"}},[t._v("导入门店")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载门店导入模板,批量填写门店信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传填写好的门店信息\n "),a("div",{staticClass:"d-u-btn"},[a("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}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("\n 上传\n ")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出门店\n "),a("a",{staticClass:"d-u-btn",attrs:{href:"/haoban-manage-web/store/export?storeGroupId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改门店信息\n ")])]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"},[t._v(t._s(t.uploadSuccessMsg))]),t._v(" "),a("a",{attrs:{href:"/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",prop:"storeName"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店code",prop:"storeCode"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店分组ID",prop:"storeGroupId"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店类型",prop:"storeTypeStr"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店状态",prop:"statusStr"}}),t._v(" "),a("el-table-column",{attrs:{label:"店长",prop:"managerName"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号码",prop:"managerPhone"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s("86"==e.row.managerNationcode||null==e.row.managerNationcode?e.row.managerPhone:"+"+e.row.nationcode+"-"+e.row.managerPhone)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"店长编码",prop:"managerCode"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"managerPostionName"}})],1),t._v(" "),t.logList.length?a("div",{staticClass:"pagination"},[a("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):t._e()],1)],1)])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area border-box "},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"),a("a",{staticClass:"a-href",attrs:{href:"#/companyCertify"}},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对门店信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入")])])}]};var m=a("VU/8")(d,v,!1,function(t){a("dWH0")},null,null);e.default=m.exports},dWH0:function(t,e){}});
\ No newline at end of file
webpackJsonp([79],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),o=n.n(a),p=(n("j1ja"),n("hKoQ")),r=n.n(p),i={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{}}},i,!1,function(e){n("/NA0")},null,null).exports,c=n("lRwf"),m=n.n(c),d=n("pRNm"),u=n.n(d),l=n("5tgt"),v=n.n(l);m.a.use(u.a);var h=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 A,f=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:v()("login","index")},{path:"/download",name:"下载",component:v()("download","index")},{path:"/index",name:"index",component:v()("index","index")},{path:"/sign",name:"index",component:v()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:v()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:v()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:v()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:v()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:v()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:v()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:v()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:v()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:v()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:v()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:v()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:v()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:v()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:v()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:v()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:v()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:v()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:v()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:v()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:v()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客",component:v()("enterpriseApp","mycustomer")},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:v()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:v()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:v()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:v()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:v()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:v()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:v()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:v()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:v()("enterpriseApp/trafficTask","taskDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:v()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:v()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:v()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:v()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:v()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:v()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:v()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:v()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:v()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:v()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:v()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:v()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:v()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:v()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:v()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:v()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:v()("enterpriseApp/signApp","signList")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:v()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:v()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:v()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:v()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:v()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:v()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:v()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:v()("setting","storePermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:v()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:v()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:v()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:v()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:v()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:v()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:v()("enterpriseApp/cloudDaily","template")},{path:"/403",name:"无权访问",component:h},{path:"/404",name:"error404",component:h},{path:"/500",name:"error500",component:h},{path:"*",redirect:"/404",hidden:!0}],y=new u.a({routes:f,scrollBehavior:function(){return{y:0}}}),g=n("zL8q"),k=n.n(g),D=n("Rf8U"),x=n.n(D),R=n("mtWM"),w=n.n(R),C=n("bOdI"),b=n.n(C),I=n("SJI6"),T=n.n(I);m.a.use(T.a);var E=new T.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(A={},b()(A,"login",function(e,t){sessionStorage.token=t,e.token=t}),b()(A,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),b()(A,"title",function(e,t){e.title=t}),b()(A,"show",function(e,t){e.show=t}),A)}),S=(n("4qCZ"),n("uKUT"),n("Xcu2"),n("TUaa")),q=n.n(S),V=n("tyqE"),L=n.n(V),P=n("pRVe"),j=n.n(P),F=n("SE7k"),G=n.n(F),N=n("XsK6"),O=n.n(N),K=n("QRL9"),z=n.n(K),H=n("2Pnh"),J=n.n(H),M=n("l9mu"),U=n.n(M),X={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;J()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,o=n/592.28*841.89,p=a,r=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new U.a("","pt","a4");if(p<o)c.addImage(s,"JPEG",0,0,595.28,i);else for(;p>0;)c.addImage(s,"JPEG",0,r,595.28,i),r-=841.89,(p-=o)>0&&c.addPage();c.save(e+".pdf")})}}};r.a.polyfill(),Vue.use(X),Vue.use(O.a),Vue.use(z.a),Vue.use(G.a),Vue.use(j.a),Vue.use(L.a),Vue.use(q.a),Vue.config.productionTip=!1,Vue.use(k.a,{size:"large"}),Vue.use(x.a,w.a),Vue.axios.defaults.withCredentials=!0,y.beforeEach(function(e,t,n){var a=void 0,p=window.location.origin;a=-1!=p.indexOf("localhost")?"http://www.gicdev.com":p,localStorage.getItem("userInfo")||w.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",o()(t.result))}).catch(function(e){g.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:y,store:E,components:{App:s},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,19],"./contacts/addDepartment.vue":["HHRu",0,16],"./contacts/addEmployee.vue":["00Sv",47],"./contacts/addGroup.vue":["mPjx",0,77],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,39],"./contacts/employeeIo.vue":["Rwbg",0,49],"./contacts/employeeRecord.vue":["zGJY",0,8],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,75],"./contacts/recordInfo.vue":["67iC",0,13],"./contacts/recordIo.vue":["738z",0,20],"./contacts/recycle.vue":["HkK0",0,26],"./contacts/shareAddDepartment.vue":["q5Ri",0,15],"./contacts/shareCode.vue":["JsWW",0,65],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,76],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,68],"./contacts/storeIo.vue":["RHxA",0,48],"./contacts/unemployee.vue":["TGrv",0,14],"./download/index.vue":["ASGJ",0,9],"./enterpriseApp/appcenter.vue":["yuVF",0,29],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,32],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,59],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,70],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,36],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,37],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,30],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,31],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,74],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,55],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,45],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",73],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",60],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",56],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",58],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",35],"./enterpriseApp/index.vue":["da9f",50],"./enterpriseApp/mycustomer.vue":["cuIN",0,43],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,3],"./enterpriseApp/notice/index.vue":["av/3",0,46],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,22],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,72],"./enterpriseApp/quota/index.vue":["FB5x",0,69],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,38],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,34],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,57],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,40],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,61],"./enterpriseApp/signApp/index.vue":["Gk4o",0,41],"./enterpriseApp/signApp/signList.vue":["kCy7",0,67],"./enterpriseApp/trafficTask/index.vue":["e88N",0,44],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,54],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,42],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,63],"./errorPage/403.vue":["6XGN",25],"./errorPage/404.vue":["AejC",27],"./errorPage/500.vue":["FskK",23],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,28],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",53],"./reviewCenter/reviewed.vue":["CLYF",0,17],"./reviewCenter/unreview.vue":["xCEU",0,18],"./setting/addAdmin.vue":["rs/A",0,52],"./setting/addAdminRole.vue":["fZsz",0,71],"./setting/companyAddress.vue":["SKyE",0,64],"./setting/companyCertify.vue":["3zYh",0,12],"./setting/index.vue":["VlR1",33],"./setting/replaceAdmin.vue":["ys9I",0,62],"./setting/setChildAdmin.vue":["VqB7",0,51],"./setting/staffDetails.vue":["Zyzf",0,24],"./setting/storePermission.vue":["Xwfy",0,21],"./sign/index.vue":["RQuk",0,66]};function o(e){var t=a[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+"'."))}o.keys=function(){return Object.keys(a)},o.id="Opzk",e.exports=o},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
webpackJsonp([79],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),o=n.n(a),p=(n("j1ja"),n("hKoQ")),r=n.n(p),i={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{}}},i,!1,function(e){n("/NA0")},null,null).exports,c=n("lRwf"),m=n.n(c),d=n("pRNm"),u=n.n(d),l=n("5tgt"),v=n.n(l);m.a.use(u.a);var h=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 A,f=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:v()("login","index")},{path:"/download",name:"下载",component:v()("download","index")},{path:"/index",name:"index",component:v()("index","index")},{path:"/sign",name:"index",component:v()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:v()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:v()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:v()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:v()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:v()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:v()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:v()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:v()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:v()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:v()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:v()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:v()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:v()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:v()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:v()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:v()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:v()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:v()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:v()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:v()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客",component:v()("enterpriseApp","mycustomer")},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:v()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:v()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:v()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:v()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:v()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:v()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:v()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:v()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:v()("enterpriseApp/trafficTask","taskDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:v()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:v()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:v()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:v()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:v()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:v()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:v()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:v()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:v()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:v()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:v()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:v()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:v()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:v()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:v()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:v()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:v()("enterpriseApp/signApp","signList")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:v()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:v()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:v()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:v()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:v()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:v()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:v()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:v()("setting","storePermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:v()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:v()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:v()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:v()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:v()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:v()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:v()("enterpriseApp/cloudDaily","template")},{path:"/403",name:"无权访问",component:h},{path:"/404",name:"error404",component:h},{path:"/500",name:"error500",component:h},{path:"*",redirect:"/404",hidden:!0}],y=new u.a({routes:f,scrollBehavior:function(){return{y:0}}}),g=n("zL8q"),k=n.n(g),D=n("Rf8U"),x=n.n(D),R=n("mtWM"),w=n.n(R),C=n("bOdI"),b=n.n(C),I=n("SJI6"),T=n.n(I);m.a.use(T.a);var E=new T.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(A={},b()(A,"login",function(e,t){sessionStorage.token=t,e.token=t}),b()(A,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),b()(A,"title",function(e,t){e.title=t}),b()(A,"show",function(e,t){e.show=t}),A)}),S=(n("4qCZ"),n("uKUT"),n("Xcu2"),n("TUaa")),q=n.n(S),V=n("tyqE"),L=n.n(V),P=n("pRVe"),j=n.n(P),F=n("SE7k"),G=n.n(F),N=n("XsK6"),O=n.n(N),K=n("QRL9"),z=n.n(K),H=n("2Pnh"),J=n.n(H),M=n("l9mu"),U=n.n(M),X={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;J()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,o=n/592.28*841.89,p=a,r=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new U.a("","pt","a4");if(p<o)c.addImage(s,"JPEG",0,0,595.28,i);else for(;p>0;)c.addImage(s,"JPEG",0,r,595.28,i),r-=841.89,(p-=o)>0&&c.addPage();c.save(e+".pdf")})}}};r.a.polyfill(),Vue.use(X),Vue.use(O.a),Vue.use(z.a),Vue.use(G.a),Vue.use(j.a),Vue.use(L.a),Vue.use(q.a),Vue.config.productionTip=!1,Vue.use(k.a,{size:"large"}),Vue.use(x.a,w.a),Vue.axios.defaults.withCredentials=!0,y.beforeEach(function(e,t,n){var a=void 0,p=window.location.origin;a=-1!=p.indexOf("localhost")?"http://www.gicdev.com":p,localStorage.getItem("userInfo")||w.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",o()(t.result))}).catch(function(e){g.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:y,store:E,components:{App:s},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,19],"./contacts/addDepartment.vue":["HHRu",0,16],"./contacts/addEmployee.vue":["00Sv",48],"./contacts/addGroup.vue":["mPjx",0,77],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,39],"./contacts/employeeIo.vue":["Rwbg",0,44],"./contacts/employeeRecord.vue":["zGJY",0,8],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,75],"./contacts/recordInfo.vue":["67iC",0,13],"./contacts/recordIo.vue":["738z",0,20],"./contacts/recycle.vue":["HkK0",0,26],"./contacts/shareAddDepartment.vue":["q5Ri",0,15],"./contacts/shareCode.vue":["JsWW",0,65],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,76],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,68],"./contacts/storeIo.vue":["RHxA",0,49],"./contacts/unemployee.vue":["TGrv",0,14],"./download/index.vue":["ASGJ",0,9],"./enterpriseApp/appcenter.vue":["yuVF",0,29],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,32],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,59],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,70],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,36],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,37],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,30],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,31],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,74],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,55],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,46],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",73],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",60],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",56],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",58],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",35],"./enterpriseApp/index.vue":["da9f",50],"./enterpriseApp/mycustomer.vue":["cuIN",0,43],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,3],"./enterpriseApp/notice/index.vue":["av/3",0,47],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,22],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,72],"./enterpriseApp/quota/index.vue":["FB5x",0,69],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,38],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,34],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,57],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,40],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,61],"./enterpriseApp/signApp/index.vue":["Gk4o",0,41],"./enterpriseApp/signApp/signList.vue":["kCy7",0,67],"./enterpriseApp/trafficTask/index.vue":["e88N",0,45],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,54],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,42],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,63],"./errorPage/403.vue":["6XGN",25],"./errorPage/404.vue":["AejC",27],"./errorPage/500.vue":["FskK",23],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,28],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",53],"./reviewCenter/reviewed.vue":["CLYF",0,17],"./reviewCenter/unreview.vue":["xCEU",0,18],"./setting/addAdmin.vue":["rs/A",0,52],"./setting/addAdminRole.vue":["fZsz",0,71],"./setting/companyAddress.vue":["SKyE",0,64],"./setting/companyCertify.vue":["3zYh",0,12],"./setting/index.vue":["VlR1",33],"./setting/replaceAdmin.vue":["ys9I",0,62],"./setting/setChildAdmin.vue":["VqB7",0,51],"./setting/staffDetails.vue":["Zyzf",0,24],"./setting/storePermission.vue":["Xwfy",0,21],"./sign/index.vue":["RQuk",0,66]};function o(e){var t=a[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+"'."))}o.keys=function(){return Object.keys(a)},o.id="Opzk",e.exports=o},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(d,b,n){for(var r,t,o,i=0,u=[];i<d.length;i++)t=d[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(d,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=f(f.s=n[i]);return o};var d={},a={81:0};function f(c){if(d[c])return d[c].exports;var a=d[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,f),a.l=!0,a.exports}f.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var d=new Promise(function(d,f){c=a[e]=[d,f]});c[2]=d;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,f.nc&&n.setAttribute("nonce",f.nc),n.src=f.p+"static/js/"+e+"."+{0:"ba29b2417d9b8d5d4509",1:"0ebe3ead93207dc78a78",2:"fdf82093764059c1200c",3:"3282d88c1532d0ca9c9e",4:"01be0f85b0acd6f1d6df",5:"24fce89feae26ccdc92c",6:"12282235c2ce7ff45d56",7:"57af0bc90206c6098149",8:"9bd56928cea92db3c119",9:"860dbe8cf83334f9e3c0",10:"956d97940afe04265b88",11:"2d0a192288361dd95250",12:"3d3797e96dc9e8cc5bd4",13:"c01b6415e93d21d1c19f",14:"d9f8f7e5598d599d6b6a",15:"360a92075d219ac84088",16:"bdc37aea4c14db4484c6",17:"18d7b200f29fbb0cc9c8",18:"7f8b13ecc824e7a610b5",19:"68c0bcb8b87a388af800",20:"987af05d6bb759103010",21:"b0e7348ff74371924c3b",22:"ae3ca1d035af160b7832",23:"9efbbc6dd315a676ce09",24:"4637a4566383d6e864cf",25:"4f9db49437ea94436d03",26:"e0b684b65d0dbf5d032b",27:"acda88d3c2aa77c9f51c",28:"e1b3c97634b8203082e4",29:"a00a8b4033e1feddfe67",30:"07a39afe8e9361ef44b8",31:"8e77909f1af264b00346",32:"ec0bbd85e6d55909453d",33:"d649a5e4d061985d1c3a",34:"629893b7dd561b646232",35:"d6f0ed32cea79ea624b3",36:"61a1c2681f78e1fd7e80",37:"4353ffce2e97d528bc9b",38:"23b83bd7920693bc35c6",39:"45b7d5b9dbe354877342",40:"18605687ea6ee1539453",41:"78d64ae1581e8ea232cc",42:"56b8d3d551364d7fcf73",43:"dd9e90d8053228b68228",44:"deb9f07fde1e218414cf",45:"feeb9dd78b7b12f700d2",46:"d0bd18109c44c009e363",47:"cb78788c573a2fd0eac5",48:"b8b992cf4ecabb60167d",49:"396af20a99e901a3b8b5",50:"331006123edd2049b7d9",51:"244dc6f576a64b7c174b",52:"3ee35b29a67a32a31d1d",53:"8ea56d269da04331dd65",54:"4b3de5b9c967cbdcb803",55:"c423570fcbf037d349d9",56:"03f9fa2efa7f832146f1",57:"ec64d57876772f26c560",58:"f8f6469b19558b91d2af",59:"014ae5d12d19afa067f5",60:"633307c153fec68e7774",61:"a6c4d42ed111c8f08d58",62:"1b7880620e9dff5a28ed",63:"02272fe3caa4b8c63c2a",64:"ebc341a9017c4b2c1112",65:"afcb60484e7a9ec39f28",66:"0c2656f4decfecb59972",67:"57f329b5a1c3658845e9",68:"1aaf6a61241359c709e8",69:"518fa345263ef1bb9abc",70:"5d2e33dad1088489e653",71:"e51a1b885d499897baff",72:"bfd2694c02bae17c273e",73:"7751e4d66fee99c15a39",74:"317ccff353170ac7c01f",75:"44714b271d06e1e87012",76:"7eaab216a287b1ffca0e",77:"01b9dbf75e1040e81146",80:"c4a24f0beb29dbd2892a"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),d},f.m=e,f.c=d,f.d=function(e,c,d){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:d})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(d,b,n){for(var r,t,o,i=0,u=[];i<d.length;i++)t=d[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(d,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=f(f.s=n[i]);return o};var d={},a={81:0};function f(c){if(d[c])return d[c].exports;var a=d[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,f),a.l=!0,a.exports}f.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var d=new Promise(function(d,f){c=a[e]=[d,f]});c[2]=d;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,f.nc&&n.setAttribute("nonce",f.nc),n.src=f.p+"static/js/"+e+"."+{0:"ba29b2417d9b8d5d4509",1:"0ebe3ead93207dc78a78",2:"fdf82093764059c1200c",3:"3282d88c1532d0ca9c9e",4:"01be0f85b0acd6f1d6df",5:"24fce89feae26ccdc92c",6:"12282235c2ce7ff45d56",7:"57af0bc90206c6098149",8:"9bd56928cea92db3c119",9:"860dbe8cf83334f9e3c0",10:"956d97940afe04265b88",11:"2d0a192288361dd95250",12:"3d3797e96dc9e8cc5bd4",13:"c01b6415e93d21d1c19f",14:"d9f8f7e5598d599d6b6a",15:"360a92075d219ac84088",16:"bdc37aea4c14db4484c6",17:"18d7b200f29fbb0cc9c8",18:"7f8b13ecc824e7a610b5",19:"68c0bcb8b87a388af800",20:"987af05d6bb759103010",21:"b0e7348ff74371924c3b",22:"ae3ca1d035af160b7832",23:"9efbbc6dd315a676ce09",24:"4637a4566383d6e864cf",25:"4f9db49437ea94436d03",26:"e0b684b65d0dbf5d032b",27:"acda88d3c2aa77c9f51c",28:"e1b3c97634b8203082e4",29:"a00a8b4033e1feddfe67",30:"07a39afe8e9361ef44b8",31:"8e77909f1af264b00346",32:"ec0bbd85e6d55909453d",33:"d649a5e4d061985d1c3a",34:"629893b7dd561b646232",35:"d6f0ed32cea79ea624b3",36:"61a1c2681f78e1fd7e80",37:"4353ffce2e97d528bc9b",38:"23b83bd7920693bc35c6",39:"45b7d5b9dbe354877342",40:"18605687ea6ee1539453",41:"78d64ae1581e8ea232cc",42:"56b8d3d551364d7fcf73",43:"dd9e90d8053228b68228",44:"28172dd8dbf35ac350fa",45:"bfad77aa2ad556a32c7c",46:"5e58d02bfb5d53a3e1b5",47:"de0e290ed4c878d0c8c3",48:"6d564387f233c08c800d",49:"aadad9540975c8930c5b",50:"331006123edd2049b7d9",51:"244dc6f576a64b7c174b",52:"3ee35b29a67a32a31d1d",53:"8ea56d269da04331dd65",54:"4b3de5b9c967cbdcb803",55:"c423570fcbf037d349d9",56:"03f9fa2efa7f832146f1",57:"ec64d57876772f26c560",58:"f8f6469b19558b91d2af",59:"014ae5d12d19afa067f5",60:"633307c153fec68e7774",61:"a6c4d42ed111c8f08d58",62:"1b7880620e9dff5a28ed",63:"02272fe3caa4b8c63c2a",64:"ebc341a9017c4b2c1112",65:"afcb60484e7a9ec39f28",66:"0c2656f4decfecb59972",67:"57f329b5a1c3658845e9",68:"1aaf6a61241359c709e8",69:"518fa345263ef1bb9abc",70:"5d2e33dad1088489e653",71:"e51a1b885d499897baff",72:"bfd2694c02bae17c273e",73:"7751e4d66fee99c15a39",74:"317ccff353170ac7c01f",75:"44714b271d06e1e87012",76:"7eaab216a287b1ffca0e",77:"01b9dbf75e1040e81146",80:"c4a24f0beb29dbd2892a"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),d},f.m=e,f.c=d,f.d=function(e,c,d){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:d})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -204,8 +204,9 @@ export default {
getChange(file, fileList) {
let len = fileList.length - 1 < 0 ? 0 : fileList.length - 1;
// 判断上传文件类型
let fileType = !!file.type ? file.type : file.raw.type;
let isExcel = fileType === 'application/vnd.ms-excel' || fileType === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
let xlsIndex = file.name.lastIndexOf('.');
let ext = file.name.substring(xlsIndex + 1, file.name.length);
let isExcel = ext.includes('xls') || ext.includes('xlsx');
if (!isExcel) {
this.$message.error('文件格式必须为 xls 或 xlsx 格式!');
this.fileList.splice(len, 1);
......
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