Commit 3d8c4c25 by 无尘

fix: 修改会员分组

parent 9a7cd6ab
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.7f025a684d12e4246a555c261ed0f3c9.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.9694efd06783188973e1.js></script><script type=text/javascript src=./static/js/vendor.fe563ee1a7b37e2ffba9.js></script><script type=text/javascript src=./static/js/app.bea79e4d35b85719c4de.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.7f025a684d12e4246a555c261ed0f3c9.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.7850d448785c5df3a576.js></script><script type=text/javascript src=./static/js/vendor.334b7ab8931aff0857ff.js></script><script type=text/javascript src=./static/js/app.61672353028ad899554b.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([80],{"/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("fZjL"),r=n.n(p),i=(n("j1ja"),n("hKoQ")),s=n.n(i),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 m=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,u=n("lRwf"),d=n.n(u),l=n("pRNm"),h=n.n(l),v=n("5tgt"),g=n.n(v);d.a.use(h.a);var f=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,y=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:g()("login","index")},{path:"/download",name:"下载",component:g()("download","index")},{path:"/index",name:"index",component:g()("index","index")},{path:"/sign",name:"index",component:g()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:g()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:g()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:g()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:g()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:g()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:g()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:g()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:g()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:g()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:g()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:g()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:g()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:g()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:g()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:g()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:g()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:g()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:g()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:g()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:g()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客",component:g()("enterpriseApp","mycustomer")},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:g()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:g()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:g()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:g()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:g()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:g()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:g()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:g()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:g()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:g()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:g()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:g()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:g()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:g()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:g()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:g()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:g()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:g()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:g()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:g()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:g()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:g()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:g()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:g()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:g()("enterpriseApp/signApp","signList")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:g()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:g()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:g()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:g()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:g()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:g()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:g()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:g()("setting","storePermission")},{path:"/contactPermission",name:"通讯录控制",component:g()("setting","contactPermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:g()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:g()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:g()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:g()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:g()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:g()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:g()("enterpriseApp/cloudDaily","template")},{path:"/403",name:"无权访问",component:f},{path:"/404",name:"error404",component:f},{path:"/500",name:"error500",component:f},{path:"*",redirect:"/404",hidden:!0}],D=new h.a({routes:y,scrollBehavior:function(){return{y:0}}}),k=n("zL8q"),x=n.n(k),R=n("Rf8U"),w=n.n(R),S=n("mtWM"),E=n.n(S),b=n("bOdI"),T=n.n(b),C=n("SJI6"),I=n.n(C);d.a.use(I.a);var M=new I.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(A={},T()(A,"login",function(e,t){sessionStorage.token=t,e.token=t}),T()(A,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),T()(A,"title",function(e,t){e.title=t}),T()(A,"show",function(e,t){e.show=t}),A)}),q=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var o in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[o]:("00"+a[o]).substr((""+a[o]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n,p=t.getHours()<10?"0"+t.getHours():t.getHours(),r=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+o+"-"+a+" "+p+":"+r+":"+i}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n;return t.getFullYear()+"-"+o+"-"+a}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}}}),V=n("TUaa"),L=n.n(V),P=n("tyqE"),F=n.n(P),j=n("pRVe"),H=n.n(j),G=n("SE7k"),N=n.n(G),O=n("XsK6"),z=n.n(O),K=n("QRL9"),J=n.n(K),Y=n("2Pnh"),U=n.n(Y),X=n("l9mu"),Z=n.n(X),B={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;U()(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 Z.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")})}}};s.a.polyfill(),Vue.use(B),Vue.use(z.a),Vue.use(J.a),Vue.use(N.a),Vue.use(H.a),Vue.use(F.a),Vue.use(L.a),Vue.config.productionTip=!1,Vue.use(x.a,{size:"large"}),Vue.use(w.a,E.a),Vue.axios.defaults.withCredentials=!0,r()(q).forEach(function(e){Vue.filter(e,q[e])}),D.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")||E.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){k.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:D,store:M,components:{App:m},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,21],"./contacts/addDepartment.vue":["HHRu",0,17],"./contacts/addEmployee.vue":["00Sv",49],"./contacts/addGroup.vue":["mPjx",0,78],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,47],"./contacts/employeeIo.vue":["Rwbg",0,72],"./contacts/employeeRecord.vue":["zGJY",0,8],"./contacts/fileSet.vue":["CSjr",0,12],"./contacts/index.vue":["41Rh",0,77],"./contacts/recordInfo.vue":["67iC",0,14],"./contacts/recordIo.vue":["738z",0,20],"./contacts/recycle.vue":["HkK0",0,27],"./contacts/shareAddDepartment.vue":["q5Ri",0,16],"./contacts/shareCode.vue":["JsWW",0,65],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,73],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,58],"./contacts/storeIo.vue":["RHxA",0,53],"./contacts/unemployee.vue":["TGrv",0,15],"./download/index.vue":["ASGJ",0,9],"./enterpriseApp/appcenter.vue":["yuVF",0,25],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,33],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,61],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,68],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,37],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,36],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,31],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,30],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,40],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,55],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,44],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",71],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",74],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",35],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",60],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",63],"./enterpriseApp/index.vue":["da9f",50],"./enterpriseApp/mycustomer.vue":["cuIN",0,45],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,3],"./enterpriseApp/notice/index.vue":["av/3",0,48],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,11],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,70],"./enterpriseApp/quota/index.vue":["FB5x",0,67],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,38],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,56],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,59],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,39],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,62],"./enterpriseApp/signApp/index.vue":["Gk4o",0,41],"./enterpriseApp/signApp/signList.vue":["kCy7",0,46],"./enterpriseApp/trafficTask/index.vue":["e88N",0,43],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,75],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,42],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,32],"./errorPage/403.vue":["6XGN",26],"./errorPage/404.vue":["AejC",28],"./errorPage/500.vue":["FskK",23],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,29],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",54],"./reviewCenter/reviewed.vue":["CLYF",0,19],"./reviewCenter/unreview.vue":["xCEU",0,18],"./setting/addAdmin.vue":["rs/A",0,57],"./setting/addAdminRole.vue":["fZsz",0,69],"./setting/companyAddress.vue":["SKyE",0,64],"./setting/companyCertify.vue":["3zYh",0,13],"./setting/contactPermission.vue":["6zFj",0,52],"./setting/index.vue":["VlR1",34],"./setting/replaceAdmin.vue":["ys9I",0,76],"./setting/setChildAdmin.vue":["VqB7",0,51],"./setting/staffDetails.vue":["Zyzf",0,24],"./setting/storePermission.vue":["Xwfy",0,22],"./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([80],{"/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:"/contactPermission",name:"通讯录控制",component:v()("setting","contactPermission")},{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),z=n("QRL9"),K=n.n(z),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(K.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,21],"./contacts/addDepartment.vue":["HHRu",0,17],"./contacts/addEmployee.vue":["00Sv",49],"./contacts/addGroup.vue":["mPjx",0,78],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,47],"./contacts/employeeIo.vue":["Rwbg",0,72],"./contacts/employeeRecord.vue":["zGJY",0,8],"./contacts/fileSet.vue":["CSjr",0,12],"./contacts/index.vue":["41Rh",0,77],"./contacts/recordInfo.vue":["67iC",0,14],"./contacts/recordIo.vue":["738z",0,20],"./contacts/recycle.vue":["HkK0",0,27],"./contacts/shareAddDepartment.vue":["q5Ri",0,16],"./contacts/shareCode.vue":["JsWW",0,65],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,73],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,58],"./contacts/storeIo.vue":["RHxA",0,53],"./contacts/unemployee.vue":["TGrv",0,15],"./download/index.vue":["ASGJ",0,9],"./enterpriseApp/appcenter.vue":["yuVF",0,25],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,33],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,61],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,68],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,37],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,36],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,31],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,30],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,40],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,55],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,44],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",71],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",74],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",35],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",60],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",63],"./enterpriseApp/index.vue":["da9f",50],"./enterpriseApp/mycustomer.vue":["cuIN",0,45],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,3],"./enterpriseApp/notice/index.vue":["av/3",0,48],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,11],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,70],"./enterpriseApp/quota/index.vue":["FB5x",0,67],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,38],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,56],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,59],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,39],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,62],"./enterpriseApp/signApp/index.vue":["Gk4o",0,41],"./enterpriseApp/signApp/signList.vue":["kCy7",0,46],"./enterpriseApp/trafficTask/index.vue":["e88N",0,43],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,75],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,42],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,32],"./errorPage/403.vue":["6XGN",26],"./errorPage/404.vue":["AejC",28],"./errorPage/500.vue":["FskK",23],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,29],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",54],"./reviewCenter/reviewed.vue":["CLYF",0,19],"./reviewCenter/unreview.vue":["xCEU",0,18],"./setting/addAdmin.vue":["rs/A",0,57],"./setting/addAdminRole.vue":["fZsz",0,69],"./setting/companyAddress.vue":["SKyE",0,64],"./setting/companyCertify.vue":["3zYh",0,13],"./setting/contactPermission.vue":["6zFj",0,52],"./setting/index.vue":["VlR1",34],"./setting/replaceAdmin.vue":["ys9I",0,76],"./setting/setChildAdmin.vue":["VqB7",0,51],"./setting/staffDetails.vue":["Zyzf",0,24],"./setting/storePermission.vue":["Xwfy",0,22],"./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(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={82: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 b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"52553b96345dd3750f43",1:"0ebe3ead93207dc78a78",2:"d3c62c00c91d9891f916",3:"a43577b9e52a5719a124",4:"18929084ede2c2225e24",5:"baa22d481d8bbd83425c",6:"a833ce8868ce70c6219e",7:"8f462a353a2ce9c0c116",8:"4210ed7b336c1bcfc531",9:"860dbe8cf83334f9e3c0",10:"a2aa031ae677b8acbf17",11:"e34a64dea1b7a059dcfd",12:"bdcf26a1bcccf7e0239b",13:"6c87f5cefdf77374932d",14:"8a2d85b6cc3b95b868d9",15:"92854409541cf66d1361",16:"c4ebe5ae46670e5c0754",17:"43a28ed857836d70649f",18:"ca2eb072a4ce38f9e487",19:"7971a9a5d92fefa82083",20:"75e0997b94e5d6294ec8",21:"58c0c6a374fc0ec6158e",22:"047f5bba500bca0d62fe",23:"9efbbc6dd315a676ce09",24:"4637a4566383d6e864cf",25:"a579fe9e82eab9ece806",26:"8f0bb144b5e757399727",27:"b5f0e5bd5920771b58af",28:"140ad99228544036c969",29:"36261093da9264fa5f33",30:"0d4999d53befa8fd9eaa",31:"8baa6bca929d1c9a38f6",32:"836f4d0e323c721473e9",33:"7b62b2ff369669fe322c",34:"f9d53c31059aaff9b360",35:"c75699cc6fe47597f200",36:"031f3a5aae4656aba067",37:"8016d3ac07df8acaf73d",38:"23b83bd7920693bc35c6",39:"d17e2c61f3cc8d6972fa",40:"56797b378549955e7f19",41:"78d64ae1581e8ea232cc",42:"61ae052e4f4fc3284000",43:"9d05f4d2f06b9c6bba0e",44:"96d0b6e88fc87f60bac7",45:"0fe24e1d16072c526787",46:"d3a9c6eba924ac8207b3",47:"c8b46666a5089512baa4",48:"854c6c054adb5cba1f06",49:"33530ea069fc872b0d5f",50:"331006123edd2049b7d9",51:"244dc6f576a64b7c174b",52:"43d3ca00e0c9087e4956",53:"9dce74b07cc47cdf56db",54:"1503b643475934e2b5e1",55:"c423570fcbf037d349d9",56:"94bbfa32e0086c5f0bbc",57:"a5308ec502fd9436e4d8",58:"78fea9e14de750887bf1",59:"e232c753f68c56d9e59c",60:"2a9bebb0261ef9a7a939",61:"8833a156f1e38036fb28",62:"44d1241f8d57451d0c10",63:"25cb3ac91e9616a47dde",64:"ebc341a9017c4b2c1112",65:"afcb60484e7a9ec39f28",66:"0c2656f4decfecb59972",67:"d7e3675c4b4931db738d",68:"13404d9aa7a460952885",69:"ff1445c96fd757245229",70:"3720d31e136a7f99a873",71:"458af30d30795059cdbe",72:"cba3aa56f0a846445e33",73:"dc84bab89c2090b47673",74:"a9dae9c87c825ba65aa1",75:"29e0d3d537fd9fa5eabc",76:"e24f155e1168c927ee44",77:"9f7ea81c191a5e1bbaa2",78:"51dbc832d510b2a1c0a3",81:"be325ddaae712f760e1a"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),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
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={82: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 b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"177230e5cc63769144b2",1:"0ebe3ead93207dc78a78",2:"d3c62c00c91d9891f916",3:"a43577b9e52a5719a124",4:"18929084ede2c2225e24",5:"baa22d481d8bbd83425c",6:"a833ce8868ce70c6219e",7:"8f462a353a2ce9c0c116",8:"4210ed7b336c1bcfc531",9:"860dbe8cf83334f9e3c0",10:"a2aa031ae677b8acbf17",11:"e34a64dea1b7a059dcfd",12:"bdcf26a1bcccf7e0239b",13:"6c87f5cefdf77374932d",14:"8a2d85b6cc3b95b868d9",15:"92854409541cf66d1361",16:"c4ebe5ae46670e5c0754",17:"43a28ed857836d70649f",18:"ca2eb072a4ce38f9e487",19:"7971a9a5d92fefa82083",20:"75e0997b94e5d6294ec8",21:"58c0c6a374fc0ec6158e",22:"047f5bba500bca0d62fe",23:"9efbbc6dd315a676ce09",24:"4637a4566383d6e864cf",25:"a579fe9e82eab9ece806",26:"8f0bb144b5e757399727",27:"b5f0e5bd5920771b58af",28:"140ad99228544036c969",29:"36261093da9264fa5f33",30:"0d4999d53befa8fd9eaa",31:"8baa6bca929d1c9a38f6",32:"836f4d0e323c721473e9",33:"7b62b2ff369669fe322c",34:"f9d53c31059aaff9b360",35:"c75699cc6fe47597f200",36:"031f3a5aae4656aba067",37:"8016d3ac07df8acaf73d",38:"23b83bd7920693bc35c6",39:"d17e2c61f3cc8d6972fa",40:"56797b378549955e7f19",41:"78d64ae1581e8ea232cc",42:"61ae052e4f4fc3284000",43:"9d05f4d2f06b9c6bba0e",44:"96d0b6e88fc87f60bac7",45:"0fe24e1d16072c526787",46:"d3a9c6eba924ac8207b3",47:"c8b46666a5089512baa4",48:"854c6c054adb5cba1f06",49:"33530ea069fc872b0d5f",50:"331006123edd2049b7d9",51:"244dc6f576a64b7c174b",52:"43d3ca00e0c9087e4956",53:"9dce74b07cc47cdf56db",54:"1503b643475934e2b5e1",55:"c423570fcbf037d349d9",56:"94bbfa32e0086c5f0bbc",57:"a5308ec502fd9436e4d8",58:"78fea9e14de750887bf1",59:"e232c753f68c56d9e59c",60:"2a9bebb0261ef9a7a939",61:"8833a156f1e38036fb28",62:"44d1241f8d57451d0c10",63:"25cb3ac91e9616a47dde",64:"ebc341a9017c4b2c1112",65:"afcb60484e7a9ec39f28",66:"0c2656f4decfecb59972",67:"d7e3675c4b4931db738d",68:"13404d9aa7a460952885",69:"ff1445c96fd757245229",70:"3720d31e136a7f99a873",71:"458af30d30795059cdbe",72:"cba3aa56f0a846445e33",73:"dc84bab89c2090b47673",74:"a9dae9c87c825ba65aa1",75:"29e0d3d537fd9fa5eabc",76:"e24f155e1168c927ee44",77:"9f7ea81c191a5e1bbaa2",78:"51dbc832d510b2a1c0a3",81:"be325ddaae712f760e1a"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),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
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.
/* 全局过滤器 */
const dateFormat = function(timeSpan, format) {
if (!timeSpan) return;
timeSpan = timeSpan.toString().length === 10 ? timeSpan * 1000 : timeSpan;
let date = new Date(timeSpan);
let o = {
'M+': date.getMonth() + 1,
'D+': date.getDate(),
W: '日一二三四五六'.charAt(date.getDay()),
'h+': date.getHours(),
'm+': date.getMinutes(),
's+': date.getSeconds(),
'q+': Math.floor((date.getMonth() + 3) / 3),
S: date.getMilliseconds()
};
if (/(Y+)/.test(format)) {
format = format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
}
for (let k in o) {
if (new RegExp('(' + k + ')').test(format)) {
format = format.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
}
}
return format;
};
/**
* 时间戳---> 年-月-日 时:分:秒
* @param timestamp
*/
const formatTimeStamp = function(data) {
if (!data) {
return;
}
let date = new Date(data);
let month = date.getMonth() + 1;
let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
let newMonth = month < 10 ? '0' + month : month;
let hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
let minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
let seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
return `${date.getFullYear()}-${newMonth}-${day} ${hours}:${minutes}:${seconds}`;
};
/**
* 时间戳---> 年-月-日
* @param timestamp
*/
const timeStampToYmd = function(data) {
if (!data) {
return;
}
let date = new Date(data);
let month = date.getMonth() + 1;
let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
let newMonth = month < 10 ? '0' + month : month;
return `${date.getFullYear()}-${newMonth}-${day}`;
};
/**
* 时间戳---> 时:分:秒
* @param timestamp
*/
const timeStampToHms = function(data) {
if (!data) {
return;
}
let date = new Date(data);
let hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
let minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
let seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
return `${hours}:${minutes}:${seconds}`;
};
export default {
dateFormat,
formatTimeStamp,
timeStampToYmd,
timeStampToHms
};
......@@ -14,6 +14,7 @@ import '../static/css/index.less';
// import 'element-ui/lib/theme-chalk/index.css'
import '../static/font/iconfont.css';
import '../theme/index.css';
import filters from './filters/index.js';
import vueOfficeHeader from '@gic-test/vue-office-header';
import vueOfficeAside from '@gic-test/vue-office-aside';
......@@ -36,7 +37,11 @@ Vue.config.productionTip = false;
Vue.use(ElementUI, { size: 'large' });
Vue.use(VueAxios, axios);
Vue.axios.defaults.withCredentials = true; // 跨域cookie访问
Vue.axios.defaults.withCredentials = true; // cookie访问
// 全局注册过滤器
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key]);
});
/*
* 路由守护
......
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