Commit e15beb92 by zhangmeng

fix:修改首页报错问题

parent 0f8a999e
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("vue-gic-header",[],t):"object"==typeof exports?exports["vue-gic-header"]=t():e["vue-gic-header"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(o){if(r[o])return r[o].exports;var a=r[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="./",t(t.s=3)}([function(e,t,r){"use strict";var o=r(13),a=r.n(o);t.a={name:"vue-gic-header",props:["menuRouter","collapseFlag","projectName"],data:function(){return{repProjectName:"gic-web",activeCode:"",pathName:"",showItem:"none",summaryName:"",origin:"",cliqueFlag:"",isCollapse:!1,menuHeadRouter:[],menuHead:[],userInfo:{realName:"",gender:"",clerkCode:"",phoneNumber:"",positionName:""},userFormVisible:!1,formLabelWidth:"100px",userInfoForm:{realName:"",gender:"",clerkCode:"",phoneNumber:"",positionName:""},userFormRules:{realName:[{required:!0,message:"请输入姓名",trigger:"blur"}],gender:[{required:!0,message:"请选择性别",trigger:"change"}],clerkCode:[{required:!0,message:"请输入员工代码",trigger:"blur"}],phoneNumber:[{required:!0,message:"请输入手机号",trigger:"blur"},{pattern:/^1[34578]\d{9}$/,message:"手机号码格式不正确"}],positionName:[{required:!0,message:"请输入职位",trigger:"blur"}]},passFormVisible:!1,passwordForm:{oldPassword:"",newPassword:"",confirmNewPassword:""},passFormRules:{oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmNewPassword:[{required:!0,message:"请输入确认密码",trigger:"blur"}]},baseUrl:"",routePathName:"",accountStatus:1}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=e},methods:{getLeftMenu:function(){var e=this,t={project:this.repProjectName,path:this.routePathName,requestProject:this.repProjectName};this.axios.post(this.baseUrl+"/api-auth/get-current-memu-data",a.a.stringify(t)).then(function(t){var r=t.data;if(0==r.errorCode&&r.result)return void(e.activeCode=r.result.level2.menuCode);e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:error.message})})},showChild:function(){this.showItem="block"},hideChild:function(){this.showItem="none"},setNewData:function(e){var t=[],r=[];e.forEach(function(e){e.parentCode?r.push(e):t.push(e)}),t.forEach(function(e){e.children=[],r.forEach(function(t){t.parentCode==e.menuCode&&e.children.push(t)})}),this.menuHeadRouter=t},handleCollapse:function(){this.isCollapse=!this.isCollapse,this.$emit("collapseTag",this.isCollapse)},toUserInfo:function(){var e=JSON.parse(JSON.stringify(this.userInfo));this.userInfoForm.realName=e.realName,this.userInfoForm.gender=parseInt(e.gender),this.userInfoForm.clerkCode=e.clerkCode,this.userInfoForm.phoneNumber=e.phoneNumber,this.userInfoForm.positionName=e.positionName,this.userFormVisible=!0},modifyUserInfo:function(){var e=this,t={realName:this.userInfoForm.realName,gender:this.userInfoForm.gender,clerkCode:this.userInfoForm.clerkCode,phoneNumber:this.userInfoForm.phoneNumber,positionName:this.userInfoForm.positionName,requestProject:this.repProjectName};this.axios.post(this.baseUrl+"/api-auth/modify-user-info",a.a.stringify(t)).then(function(t){var r=t.data;0==r.errorCode?(e.userFormVisible=!1,e.$message({message:"修改成功",type:"success"})):e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},confirmModUserInfo:function(e){var t=this;this.$refs[e].validate(function(e){e&&t.modifyUserInfo()})},cancelModUserInfo:function(){this.userFormVisible=!1},toModifyInfo:function(){this.passFormVisible=!0,this.passwordForm.newPassword="",this.passwordForm.oldPassword="",this.passwordForm.confirmNewPassword=""},modifyUserPassword:function(){var e=this,t={oldPassword:this.passwordForm.oldPassword,newPassword:this.passwordForm.newPassword,requestProject:this.repProjectName};return this.passwordForm.oldPassword.trim()&&this.passwordForm.newPassword.trim()&&this.passwordForm.confirmNewPassword.trim()?this.passwordForm.newPassword.trim()!=this.passwordForm.confirmNewPassword.trim()?(this.$message.error({duration:1e3,message:"两次密码输入不一致!"}),!1):void this.axios.post(this.baseUrl+"/api-auth/modify-password",a.a.stringify(t)).then(function(t){var r=t.data;0==r.errorCode?(e.passFormVisible=!1,e.$message({message:"修改成功",type:"success"}),e.postLoginOut()):e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})}):(this.$message.error({duration:1e3,message:"请输入密码"}),!1)},confirmModPass:function(e){var t=this;this.$refs[e].validate(function(e){e||t.modifyUserPassword()})},cancelModPass:function(){this.passFormVisible=!1},userFormClose:function(){this.userFormVisible=!1},passFormClose:function(){this.passFormVisible=!1},toLoginOut:function(){var e=this;this.$confirm("确认退出吗?","提示",{type:"warning"}).then(function(){e.postLoginOut()}).catch(function(){e.$message.error({duration:1e3,message:error.message})})},postLoginOut:function(){var e=this;this.axios.post(this.baseUrl+"/api-auth/do-logout",{}).then(function(t){var r=t.data;if(0==r.errorCode)return e.$message({message:"退出成功",type:"success"}),void(window.location.href=window.location.origin+"/gic-web/#/");e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},isClique:function(){var e=this,t={requestProject:this.repProjectName};this.axios.post(this.baseUrl+"/api-auth/is-relevance-clique",a.a.stringify(t)).then(function(t){var r=t.data;if(0==r.errorCode)return void(e.cliqueFlag=r.result);e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toRouter:function(e,t,r){this.showItem="none",this.activeCode=r;var o={path:"/"+e,name:t};this.$emit("toRouterView",o)},getUserInfo:function(){var e=this,t={requestProject:this.repProjectName};this.axios.post(this.baseUrl+"/api-auth/get-login-user-info",a.a.stringify(t)).then(function(t){var r=t.data;if(0==r.errorCode)return e.userInfo.realName=r.result.realName,e.userInfo.gender=r.result.clerkGender,e.userInfo.clerkCode=r.result.clerkCode,e.userInfo.phoneNumber=r.result.loginName,e.userInfo.positionName=r.result.positionName,void(document.title=r.result.enterpriseDTO.brandName||r.result.enterpriseDTO.enterpriseName);e.$message.error({duration:1e3,message:r.message})}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getHeaderMenu:function(){var e=this,t={project:this.repProjectName,requestProject:this.repProjectName};this.axios.post(this.baseUrl+"/api-auth/login-clerk-menu",a.a.stringify(t)).then(function(t){var r=t.data;if(0==r.errorCode)return e.menuHeadRouter=r.result,void e.getLeftMenu();e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getMenu:function(){var e=this,t={requestProject:this.repProjectName};this.axios.post(this.baseUrl+"/api-auth/login-clerk-top-project",a.a.stringify(t)).then(function(t){var r=t.data;if(0==r.errorCode)return void(e.menuHead=r.result);e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getAccountStateInfo:function(){var e=this;this.axios.post(this.baseUrl+"/api-marketing/account-state-info",a.a.stringify({requestProject:"gic-web"})).then(function(t){0===t.data.errorCode&&(e.accountStatus=t.data.result.status||1,localStorage.setItem("accountStatus",e.accountStatus))})},toRecharge:function(){window.location.href="/marketing/#/recharge/do"}},watch:{$route:{handler:function(e,t){this.summaryName=e.path,"-1"!=this.summaryName.indexOf("memberSummary")&&(this.activeCode="")},deep:!0},collapseFlag:function(e,t){this.isCollapse=e},userInfo:function(e,t){this.userInfo=e},projectName:function(e,t){this.repProjectName=e||"gic-web"}},mounted:function(){this.summaryName=this.$route.path,this.routePathName=window.location.hash.split("/")[1],-1!=this.routePathName.indexOf("?")&&(this.routePathName=this.routePathName.split("?")[0]),-1!=this.routePathName.indexOf("/")&&(this.routePathName=this.routePathName.split("/")[0]),this.repProjectName=this.projectName||"gic-web",this.pathName=this.repProjectName,this.isCollapse=this.collapseFlag,this.getUserInfo(),this.getHeaderMenu(),this.origin=window.location.origin,this.getMenu(),this.getAccountStateInfo()}}},function(e,t,r){"use strict";var o=Object.prototype.hasOwnProperty,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e){for(var t;e.length;){var r=e.pop();if(t=r.obj[r.prop],Array.isArray(t)){for(var o=[],a=0;a<t.length;++a)void 0!==t[a]&&o.push(t[a]);r.obj[r.prop]=o}}return t},n=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r},s=function e(t,r,a){if(!r)return t;if("object"!=typeof r){if(Array.isArray(t))t.push(r);else{if("object"!=typeof t)return[t,r];(a.plainObjects||a.allowPrototypes||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if("object"!=typeof t)return[t].concat(r);var i=t;return Array.isArray(t)&&!Array.isArray(r)&&(i=n(t,a)),Array.isArray(t)&&Array.isArray(r)?(r.forEach(function(r,i){o.call(t,i)?t[i]&&"object"==typeof t[i]?t[i]=e(t[i],r,a):t.push(r):t[i]=r}),t):Object.keys(r).reduce(function(t,i){var n=r[i];return o.call(t,i)?t[i]=e(t[i],n,a):t[i]=n,t},i)},l=function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},d=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},c=function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",o=0;o<t.length;++o){var i=t.charCodeAt(o);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=t.charAt(o):i<128?r+=a[i]:i<2048?r+=a[192|i>>6]+a[128|63&i]:i<55296||i>=57344?r+=a[224|i>>12]+a[128|i>>6&63]+a[128|63&i]:(o+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(o)),r+=a[240|i>>18]+a[128|i>>12&63]+a[128|i>>6&63]+a[128|63&i])}return r},u=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var a=t[o],n=a.obj[a.prop],s=Object.keys(n),l=0;l<s.length;++l){var d=s[l],c=n[d];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:n,prop:d}),r.push(c))}return i(t)},p=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},f=function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};e.exports={arrayToObject:n,assign:l,compact:u,decode:d,encode:c,isBuffer:f,isRegExp:p,merge:s}},function(e,t,r){"use strict";var o=String.prototype.replace,a=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,a,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(4),a={install:function(e,t){e.component(o.a.name,o.a)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(a),t.default=a},function(e,t,r){"use strict";function o(e){r(5)}var a=r(0),i=r(16),n=r(12),s=o,l=n(a.a,i.a,!1,s,"data-v-e8210740",null);t.a=l.exports},function(e,t,r){var o=r(6);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);r(10)("4b78ba32",o,!0,{})},function(e,t,r){var o=r(7);t=e.exports=r(8)(!1),t.push([e.i,".navheader[data-v-e8210740]{position:fixed;display:flex;top:0;left:0;width:100%;height:64px;line-height:64px;font-size:14px;background-color:#fff;padding:0;z-index:99;color:#fff}.navheader .fl[data-v-e8210740]{float:left}.navheader .fr[data-v-e8210740]{float:right}.navheader-logo[data-v-e8210740]{flex:0 0 200px;width:200px;height:64px;float:left;text-align:center;background:url("+o(r(9))+') no-repeat 50% #04143a}.navheader-pic[data-v-e8210740]{vertical-align:middle}.navheader-item[data-v-e8210740]{flex:1;box-shadow:5px -1px 10px #ddd}.navheader .itemlink[data-v-e8210740]{float:left;padding:0 20px;display:inline-block;height:62px;cursor:pointer;color:#606266}.navheader .itemlink[data-v-e8210740]:hover{color:#1890ff}.navheader .bottom[data-v-e8210740]:hover{border-bottom:2px solid #1890ff}.navheader .current-module.bottom[data-v-e8210740]{color:#1890ff;border-bottom:2px solid #1890ff;font-weight:500}.navheader .moveleft[data-v-e8210740]{margin-left:-136px;transition:all .3s ease;background-position:151px 10px}.navheader .moveright[data-v-e8210740]{margin-left:0;transition:all .2s ease}.navheader .arrowico[data-v-e8210740]{position:absolute;-webkit-transition:all .5s;transition:all .5s;right:0;top:25px}.navheader .arrow-icon-down[data-v-e8210740]{position:relative;-webkit-transition:all .5s;-moz-transition:all .5s;transition:all .5s}.navheader .el-dialog__wrapper[data-v-e8210740] .el-dialog{min-width:425px;width:425px}.navheader .el-dialog__body[data-v-e8210740]{padding:0 20px}.navheader__status[data-v-e8210740]{color:#999;cursor:pointer}.navheader__status a[data-v-e8210740]{color:#f5222d}.navheader__status[data-v-e8210740] .el-button--danger{background:#fff}.navheader__status[data-v-e8210740] .el-button--danger:active,.navheader__status[data-v-e8210740] .el-button--danger:focus,.navheader__status[data-v-e8210740] .el-button--danger:hover{color:#f5222d}.navheader__status[data-v-e8210740] .el-button--warning{background:#fff}.navheader__status[data-v-e8210740] .el-button--warning:active,.navheader__status[data-v-e8210740] .el-button--warning:focus,.navheader__status[data-v-e8210740] .el-button--warning:hover{color:#faad14}.itemlink-gic[data-v-e8210740]{float:left;display:inline-block;height:62px;padding:0 20px;position:relative;color:#606266;cursor:pointer}.itemlink-gic[data-v-e8210740]:hover{color:#1890ff}.itemlink-gic:hover .arrow-icon-down[data-v-e8210740]{transform:rotate(180deg)}.itemlink-gic:hover .itempanel[data-v-e8210740]{display:block}.itemlink-gic .curitemlink[data-v-e8210740]{border-bottom:2px solid #1890ff}.itemlink-gic .itempanel[data-v-e8210740]{display:none}.itemlink-gic .containers-listlik.current-rout[data-v-e8210740]{color:#1890ff}.itemlink-gic .containers-listlik-a[data-v-e8210740]{display:block}.itemlink-gic .gicnavlink[data-v-e8210740]{position:absolute;left:-100px;top:60px;width:966px;min-height:550px;background:#fff;min-width:150px;border-radius:4px;border:1px solid #ebeef5;padding:12px 0 25px 30px;z-index:9999;color:#606266;line-height:1.4;text-align:justify;font-size:14px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}.itemlink-gic .gicnavarrow[data-v-e8210740]{position:absolute;left:50%;top:50px;transform:translate(-50%);z-index:3}.itemlink-gic .gicnavarrow .arrow[data-v-e8210740]{position:relative;display:block;background-color:#fff;width:6px;height:6px;border:0;border-top:1px solid #ebeef5;border-right:1px solid #ebeef5;transform:translateY(7px) rotate(-45deg);filter:drop-shadow(0 2px 12px rgba(0,0,0,.03))}.itemlink-gic .gicnavarrow .arrow[data-v-e8210740]:after{position:absolute;left:0;top:-2px;width:10px;height:1px;content:"";border-radius:2px;background-color:#fff;transform-origin:left top;transform:rotate(45deg)}.itemlink-gic .containers[data-v-e8210740]{display:flex;flex-wrap:wrap;flex-flow:row wrap;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;margin:0}.itemlink-gic .containers-ul[data-v-e8210740]{line-height:40px}.itemlink-gic .containers-title[data-v-e8210740]{color:#303133;font-size:14px;font-weight:700;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}.itemlink-gic .containers-listlik[data-v-e8210740]{font-size:12px;color:#606266;line-height:30px}.itemlink-gic .containers-listlik[data-v-e8210740]:hover{color:#1890ff}.itemlink-gic .containers-item[data-v-e8210740]{flex:0 0 185px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}.itemlink-gic .curactive[data-v-e8210740]{color:#fede29}li[data-v-e8210740]{list-style:none}.navuserinfo[data-v-e8210740]{width:140px;text-align:center}.navuserinfo[data-v-e8210740] a{color:#606266}.navuserinfo[data-v-e8210740] .navusername{position:relative;display:inline-block;padding:0 20px;height:48px}.navuserinfo[data-v-e8210740] .navusername:hover{color:#1890ff}.navuserinfo[data-v-e8210740] .navusername:hover .arrowico{transform:rotate(180deg)}.navsuerwrap[data-v-e8210740] .useritem{position:relative;line-height:35px;height:35px;margin-bottom:10px;text-align:center;color:#606266}.navsuerwrap[data-v-e8210740] .useritem a{color:#606266}.navsuerwrap[data-v-e8210740] .useritem:hover .usertext{display:block;width:119px;margin-left:-12px;color:#1890ff;background-color:#ecf5ff;cursor:pointer}.navsuerwrap[data-v-e8210740] .loginout{border-top:1px solid #eee;box-sizing:border-box;padding:15px 0;margin-bottom:20px}.el-popover.user-header-pop[data-v-e8210740],.el-popover[data-v-e8210740],.user-header-pop[data-v-e8210740]{min-width:95px}.el-dialog__wrapper[data-v-e8210740] .el-dialog{min-width:425px;width:425px}.el-dialog__wrapper[data-v-e8210740] .el-dialog /deep/ .el-dialog__body{padding:0 20px}.user-form-dialog[data-v-e8210740] .el-dialog{min-width:425px}.user-form-dialog[data-v-e8210740] .el-dialog__body{padding:0 20px}.user-form-dialog[data-v-e8210740] .el-input{width:260px}.pass-form-dialog[data-v-e8210740] .el-dialog{min-width:425px}.pass-form-dialog[data-v-e8210740] .el-dialog__body{padding:0 20px}.el-input[data-v-e8210740]{width:260px}@media screen and (max-width:1280px){.navheader[data-v-e8210740]{min-width:1280px}}@media screen and (min-width:1280px) and (max-width:1366px){.navheader[data-v-e8210740]{min-width:1280px}}@media screen and (min-width:1366px) and (max-width:1440px){.navheader[data-v-e8210740]{min-width:1366px}}@media screen and (min-width:1440px) and (max-width:1920px){.navheader[data-v-e8210740]{min-width:1440px}}.dialog-footer[data-v-e8210740]{line-height:1}',""])},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t){function r(e,t){var r=e[1]||"",a=e[3];if(!a)return r;if(t&&"function"==typeof btoa){var i=o(a);return[r].concat(a.sources.map(function(e){return"/*# sourceURL="+a.sourceRoot+e+" */"})).concat([i]).join("\n")}return[r].join("\n")}function o(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o=r(t,e);return t[2]?"@media "+t[2]+"{"+o+"}":o}).join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},a=0;a<this.length;a++){var i=this[a][0];"number"==typeof i&&(o[i]=!0)}for(a=0;a<e.length;a++){var n=e[a];"number"==typeof n[0]&&o[n[0]]||(r&&!n[2]?n[2]=r:r&&(n[2]="("+n[2]+") and ("+r+")"),t.push(n))}},t}},function(e,t,r){e.exports=r.p+"static/img/logo.png?567d2bcb0ba7ec281f5613c41ce4b7c6"},function(e,t,r){function o(e){for(var t=0;t<e.length;t++){var r=e[t],o=c[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(i(r.parts[a]));o.parts.length>r.parts.length&&(o.parts.length=r.parts.length)}else{for(var n=[],a=0;a<r.parts.length;a++)n.push(i(r.parts[a]));c[r.id]={id:r.id,refs:1,parts:n}}}}function a(){var e=document.createElement("style");return e.type="text/css",u.appendChild(e),e}function i(e){var t,r,o=document.querySelector("style["+v+'~="'+e.id+'"]');if(o){if(m)return h;o.parentNode.removeChild(o)}if(b){var i=f++;o=p||(p=a()),t=n.bind(null,o,i,!1),r=n.bind(null,o,i,!0)}else o=a(),t=s.bind(null,o),r=function(){o.parentNode.removeChild(o)};return t(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;t(e=o)}else r()}}function n(e,t,r,o){var a=r?"":o.css;if(e.styleSheet)e.styleSheet.cssText=w(t,a);else{var i=document.createTextNode(a),n=e.childNodes;n[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i)}}function s(e,t){var r=t.css,o=t.media,a=t.sourceMap;if(o&&e.setAttribute("media",o),g.ssrId&&e.setAttribute(v,t.id),a&&(r+="\n/*# sourceURL="+a.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var d=r(11),c={},u=l&&(document.head||document.getElementsByTagName("head")[0]),p=null,f=0,m=!1,h=function(){},g=null,v="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,r,a){m=r,g=a||{};var i=d(e,t);return o(i),function(t){for(var r=[],a=0;a<i.length;a++){var n=i[a],s=c[n.id];s.refs--,r.push(s)}t?(i=d(e,t),o(i)):i=[];for(var a=0;a<r.length;a++){var s=r[a];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete c[s.id]}}}};var w=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t){for(var r=[],o={},a=0;a<t.length;a++){var i=t[a],n=i[0],s=i[1],l=i[2],d=i[3],c={id:e+":"+a,css:s,media:l,sourceMap:d};o[n]?o[n].parts.push(c):r.push(o[n]={id:n,parts:[c]})}return r}},function(e,t){e.exports=function(e,t,r,o,a,i){var n,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(n=e,s=e.default);var d="function"==typeof s?s.options:s;t&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0),r&&(d.functional=!0),a&&(d._scopeId=a);var c;if(i?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=c):o&&(c=o),c){var u=d.functional,p=u?d.render:d.beforeCreate;u?(d._injectStyles=c,d.render=function(e,t){return c.call(t),p(e,t)}):d.beforeCreate=p?[].concat(p,c):[c]}return{esModule:n,exports:s,options:d}}},function(e,t,r){"use strict";var o=r(14),a=r(15),i=r(2);e.exports={formats:i,parse:a,stringify:o}},function(e,t,r){"use strict";var o=r(1),a=r(2),i={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},n=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,serializeDate:function(e){return n.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,r,a,i,n,l,d,c,u,p,f,m){var h=t;if("function"==typeof d)h=d(r,h);else if(h instanceof Date)h=p(h);else if(null===h){if(i)return l&&!m?l(r,s.encoder):r;h=""}if("string"==typeof h||"number"==typeof h||"boolean"==typeof h||o.isBuffer(h)){if(l){return[f(m?r:l(r,s.encoder))+"="+f(l(h,s.encoder))]}return[f(r)+"="+f(String(h))]}var g=[];if(void 0===h)return g;var v;if(Array.isArray(d))v=d;else{var b=Object.keys(h);v=c?b.sort(c):b}for(var w=0;w<v.length;++w){var x=v[w];n&&null===h[x]||(g=Array.isArray(h)?g.concat(e(h[x],a(r,x),a,i,n,l,d,c,u,p,f,m)):g.concat(e(h[x],r+(u?"."+x:"["+x+"]"),a,i,n,l,d,c,u,p,f,m)))}return g};e.exports=function(e,t){var r=e,n=t?o.assign({},t):{};if(null!==n.encoder&&void 0!==n.encoder&&"function"!=typeof n.encoder)throw new TypeError("Encoder has to be a function.");var d=void 0===n.delimiter?s.delimiter:n.delimiter,c="boolean"==typeof n.strictNullHandling?n.strictNullHandling:s.strictNullHandling,u="boolean"==typeof n.skipNulls?n.skipNulls:s.skipNulls,p="boolean"==typeof n.encode?n.encode:s.encode,f="function"==typeof n.encoder?n.encoder:s.encoder,m="function"==typeof n.sort?n.sort:null,h=void 0!==n.allowDots&&n.allowDots,g="function"==typeof n.serializeDate?n.serializeDate:s.serializeDate,v="boolean"==typeof n.encodeValuesOnly?n.encodeValuesOnly:s.encodeValuesOnly;if(void 0===n.format)n.format=a.default;else if(!Object.prototype.hasOwnProperty.call(a.formatters,n.format))throw new TypeError("Unknown format option provided.");var b,w,x=a.formatters[n.format];"function"==typeof n.filter?(w=n.filter,r=w("",r)):Array.isArray(n.filter)&&(w=n.filter,b=w);var y=[];if("object"!=typeof r||null===r)return"";var _;_=n.arrayFormat in i?n.arrayFormat:"indices"in n?n.indices?"indices":"repeat":"indices";var N=i[_];b||(b=Object.keys(r)),m&&b.sort(m);for(var C=0;C<b.length;++C){var k=b[C];u&&null===r[k]||(y=y.concat(l(r[k],k,N,c,u,p?f:null,w,m,h,g,x,v)))}var F=y.join(d),j=!0===n.addQueryPrefix?"?":"";return F.length>0?j+F:""}},function(e,t,r){"use strict";var o=r(1),a=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},n=function(e,t){for(var r={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,n=t.parameterLimit===1/0?void 0:t.parameterLimit,s=o.split(t.delimiter,n),l=0;l<s.length;++l){var d,c,u=s[l],p=u.indexOf("]="),f=-1===p?u.indexOf("="):p+1;-1===f?(d=t.decoder(u,i.decoder),c=t.strictNullHandling?null:""):(d=t.decoder(u.slice(0,f),i.decoder),c=t.decoder(u.slice(f+1),i.decoder)),a.call(r,d)?r[d]=[].concat(r[d]).concat(c):r[d]=c}return r},s=function(e,t,r){for(var o=t,a=e.length-1;a>=0;--a){var i,n=e[a];if("[]"===n)i=[],i=i.concat(o);else{i=r.plainObjects?Object.create(null):{};var s="["===n.charAt(0)&&"]"===n.charAt(n.length-1)?n.slice(1,-1):n,l=parseInt(s,10);!isNaN(l)&&n!==s&&String(l)===s&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(i=[],i[l]=o):i[s]=o}o=i}return o},l=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,n=/(\[[^[\]]*])/g,l=i.exec(o),d=l?o.slice(0,l.index):o,c=[];if(d){if(!r.plainObjects&&a.call(Object.prototype,d)&&!r.allowPrototypes)return;c.push(d)}for(var u=0;null!==(l=n.exec(o))&&u<r.depth;){if(u+=1,!r.plainObjects&&a.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(l[1])}return l&&c.push("["+o.slice(l.index)+"]"),s(c,t,r)}};e.exports=function(e,t){var r=t?o.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||o.isRegExp(r.delimiter)?r.delimiter:i.delimiter,r.depth="number"==typeof r.depth?r.depth:i.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:i.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:i.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:i.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling,""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var a="string"==typeof e?n(e,r):e,s=r.plainObjects?Object.create(null):{},d=Object.keys(a),c=0;c<d.length;++c){var u=d[c],p=l(u,a[u],r);s=o.merge(s,p,r)}return o.compact(s)}},function(e,t,r){"use strict";var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"navheader"},[r("div",{staticClass:"navheader-logo fl",class:e.isCollapse?"moveleft":"moveright"}),e._v(" "),r("div",{staticClass:"navheader-item fl"},[r("a",{staticClass:"itemlink",on:{click:e.handleCollapse}},[r("i",{staticClass:"iconfont",class:e.isCollapse?"icon-zhankai":"icon-shouqi"})]),e._v(" "),r("a",{class:["itemlink","bottom","menu-all","/memberSummary"==e.summaryName?"current-module":""],attrs:{href:e.origin+"/report/#/memberSummary"}},[e._v("总览")]),e._v(" "),r("div",{class:["itemlink-gic","bottom","gic-web"==e.pathName?"current-module":""],on:{mouseover:e.showChild,mouseout:e.hideChild}},[e._v("GIC商户后台\n "),r("i",{staticClass:"el-icon-arrow-down arrow-icon-down"}),e._v(" "),r("div",{staticClass:"itempanel",style:{display:e.showItem},attrs:{id:"itempanel"}},[r("div",{staticClass:"gicnavlink"},[r("div",{staticClass:"containers"},e._l(e.menuHeadRouter,function(t,o){return r("div",{key:o,staticClass:"containers-item"},[r("ul",{staticClass:"containers-ul"},[r("h1",{staticClass:"containers-title"},[e._v(e._s(t.menuName))]),e._v(" "),e._l(t.children,function(t,o){return[t.isRouter?r("li",{key:o,class:["containers-listlik",e.activeCode==t.menuCode?"current-rout":""],on:{click:function(r){e.toRouter(t.menuUrl,t.menuName,t.menuCode)}}},[e._v(e._s(t.menuName))]):e._e(),e._v(" "),t.isRouter?e._e():r("a",{key:o,staticClass:"containers-listlik containers-listlik-a",attrs:{href:t.menuUrl,target:1==t.target?"_blank":""}},[e._v(e._s(t.menuName))])]})],2)])}),0)]),e._v(" "),e._m(0)])]),e._v(" "),e._l(e.menuHead,function(t){return[r("a",{class:["itemlink","bottom","menu-mall",e.pathName==t.project?"current-module":""],attrs:{href:e.origin+t.menuUrl,target:1==t.target?"_blank":""}},[e._v(e._s(t.menuName))])]}),e._v(" "),r("div",{staticClass:"navuserinfo fr"},[r("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[r("ul",{staticClass:"navsuerwrap"},[r("li",{staticClass:"useritem",on:{click:e.toUserInfo}},[r("a",{staticClass:"usertext"},[e._v("账户信息")])]),e._v(" "),r("li",{staticClass:"useritem",on:{click:e.toModifyInfo}},[r("a",{staticClass:"usertext"},[e._v("修改密码")])]),e._v(" "),r("li",{staticClass:"useritem loginout",on:{click:e.toLoginOut}},[r("a",{staticClass:"usertext"},[e._v("退出登录")])])]),e._v(" "),r("a",{staticClass:"navusername",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.userInfo.realName)+"\n "),r("i",{staticClass:"el-icon-arrow-down arrowico"})])])],1),e._v(" "),2===e.accountStatus||3===e.accountStatus?r("div",{staticClass:"navheader__status fr"},[r("el-tooltip",{attrs:{effect:"dark",placement:"bottom-start","popper-class":"navheader__status--tooltip"}},[r("div",{staticClass:"w200",attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(2===e.accountStatus?"当前账户已欠费,授信欠费额度5000,如不及时充值将无法使用营销管理-短信营销、营销管理-智能营销、双向呼叫、短信语音验证码等模块,为了保障您的权益,请尽快充值。":"账户余额超出欠费额度,当前无法使用营销管理-短信营销、营销管理-智能营销、双向呼叫、短信语音验证码等模块,为了保障您的权益,请尽快充值。")+"\n ")]),e._v(" "),r("el-button",{attrs:{size:"medium",type:2===e.accountStatus?"warning":"danger",plain:"",round:""},on:{click:e.toRecharge}},[e._v(e._s(2===e.accountStatus?"账户已欠费":"账户异常"))])],1)],1):e._e()],2),e._v(" "),r("el-dialog",{staticClass:"user-form-dialog",attrs:{title:"账户信息",visible:e.userFormVisible,width:"425px","modal-append-to-body":!1,"before-close":e.userFormClose}},[r("el-form",{ref:"userForm",attrs:{model:e.userInfoForm,"before-close":e.userFormClose,rules:e.userFormRules}},[r("el-form-item",{attrs:{label:"姓名","label-width":e.formLabelWidth,prop:"realName"}},[r("el-input",{model:{value:e.userInfoForm.realName,callback:function(t){e.$set(e.userInfoForm,"realName",t)},expression:"userInfoForm.realName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"性别","label-width":e.formLabelWidth,prop:"gender"}},[r("el-radio-group",{model:{value:e.userInfoForm.gender,callback:function(t){e.$set(e.userInfoForm,"gender",t)},expression:"userInfoForm.gender"}},[r("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"员工代码","label-width":e.formLabelWidth,prop:"clerkCode"}},[r("el-input",{model:{value:e.userInfoForm.clerkCode,callback:function(t){e.$set(e.userInfoForm,"clerkCode",t)},expression:"userInfoForm.clerkCode"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码","label-width":e.formLabelWidth,prop:"phoneNumber"}},[r("el-input",{attrs:{type:"text",maxlength:11},model:{value:e.userInfoForm.phoneNumber,callback:function(t){e.$set(e.userInfoForm,"phoneNumber",t)},expression:"userInfoForm.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"职位","label-width":e.formLabelWidth,prop:"positionName"}},[r("el-input",{model:{value:e.userInfoForm.positionName,callback:function(t){e.$set(e.userInfoForm,"positionName",t)},expression:"userInfoForm.positionName"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.cancelModUserInfo}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.confirmModUserInfo("userForm")}}},[e._v("确 定")])],1)],1),e._v(" "),r("el-dialog",{staticClass:"pass-form-dialog",attrs:{title:"修改密码",visible:e.passFormVisible,width:"425px","modal-append-to-body":!1,"before-close":e.passFormClose}},[r("el-form",{ref:"passForm",attrs:{model:e.passwordForm,"before-close":e.passFormClose,rules:e.passFormRules}},[r("el-form-item",{attrs:{label:"旧密码","label-width":e.formLabelWidth,prop:"oldPassword"}},[r("el-input",{attrs:{"auto-complete":"off"},model:{value:e.passwordForm.oldPassword,callback:function(t){e.$set(e.passwordForm,"oldPassword",t)},expression:"passwordForm.oldPassword"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"新密码","label-width":e.formLabelWidth,prop:"newPassword"}},[r("el-input",{model:{value:e.passwordForm.newPassword,callback:function(t){e.$set(e.passwordForm,"newPassword",t)},expression:"passwordForm.newPassword"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"确认密码","label-width":e.formLabelWidth,prop:"confirmNewPassword"}},[r("el-input",{model:{value:e.passwordForm.confirmNewPassword,callback:function(t){e.$set(e.passwordForm,"confirmNewPassword",t)},expression:"passwordForm.confirmNewPassword"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.cancelModPass}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.confirmModPass("passForm")}}},[e._v("确 定")])],1)],1)],1)},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"gicnavarrow"},[r("span",{staticClass:"arrow"})])}],i={render:o,staticRenderFns:a};t.a=i}])});
//# sourceMappingURL=vue-gic-header.js.map
\ No newline at end of file
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("vue-gic-header",[],t):"object"==typeof exports?exports["vue-gic-header"]=t():e["vue-gic-header"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(o){if(r[o])return r[o].exports;var a=r[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="./",t(t.s=3)}([function(e,t,r){"use strict";var o=r(13),a=r.n(o);t.a={name:"vue-gic-header",props:["menuRouter","collapseFlag","projectName"],data:function(){return{repProjectName:"gic-web",activeCode:"",pathName:"",showItem:"none",summaryName:"",origin:"",cliqueFlag:"",isCollapse:!1,menuHeadRouter:[],menuHead:[],userInfo:{realName:"",gender:"",clerkCode:"",phoneNumber:"",positionName:""},userFormVisible:!1,formLabelWidth:"100px",userInfoForm:{realName:"",gender:"",clerkCode:"",phoneNumber:"",positionName:""},userFormRules:{realName:[{required:!0,message:"请输入姓名",trigger:"blur"}],gender:[{required:!0,message:"请选择性别",trigger:"change"}],clerkCode:[{required:!0,message:"请输入员工代码",trigger:"blur"}],phoneNumber:[{required:!0,message:"请输入手机号",trigger:"blur"},{pattern:/^1[34578]\d{9}$/,message:"手机号码格式不正确"}],positionName:[{required:!0,message:"请输入职位",trigger:"blur"}]},passFormVisible:!1,passwordForm:{oldPassword:"",newPassword:"",confirmNewPassword:""},passFormRules:{oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmNewPassword:[{required:!0,message:"请输入确认密码",trigger:"blur"}]},baseUrl:"",routePathName:"",accountStatus:1}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=e},methods:{getLeftMenu:function(){var e=this,t={project:this.repProjectName,path:this.routePathName,requestProject:this.repProjectName};this.axios.post(this.baseUrl+"/api-auth/get-current-memu-data",a.a.stringify(t)).then(function(t){var r=t.data;if(0==r.errorCode)return void(e.activeCode=r.result.level2.menuCode);e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:error.message})})},showChild:function(){this.showItem="block"},hideChild:function(){this.showItem="none"},setNewData:function(e){var t=[],r=[];e.forEach(function(e){e.parentCode?r.push(e):t.push(e)}),t.forEach(function(e){e.children=[],r.forEach(function(t){t.parentCode==e.menuCode&&e.children.push(t)})}),this.menuHeadRouter=t},handleCollapse:function(){this.isCollapse=!this.isCollapse,this.$emit("collapseTag",this.isCollapse)},toUserInfo:function(){var e=JSON.parse(JSON.stringify(this.userInfo));this.userInfoForm.realName=e.realName,this.userInfoForm.gender=parseInt(e.gender),this.userInfoForm.clerkCode=e.clerkCode,this.userInfoForm.phoneNumber=e.phoneNumber,this.userInfoForm.positionName=e.positionName,this.userFormVisible=!0},modifyUserInfo:function(){var e=this,t={realName:this.userInfoForm.realName,gender:this.userInfoForm.gender,clerkCode:this.userInfoForm.clerkCode,phoneNumber:this.userInfoForm.phoneNumber,positionName:this.userInfoForm.positionName,requestProject:this.repProjectName};this.axios.post(this.baseUrl+"/api-auth/modify-user-info",a.a.stringify(t)).then(function(t){var r=t.data;0==r.errorCode?(e.userFormVisible=!1,e.$message({message:"修改成功",type:"success"})):e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},confirmModUserInfo:function(e){var t=this;this.$refs[e].validate(function(e){e&&t.modifyUserInfo()})},cancelModUserInfo:function(){this.userFormVisible=!1},toModifyInfo:function(){this.passFormVisible=!0,this.passwordForm.newPassword="",this.passwordForm.oldPassword="",this.passwordForm.confirmNewPassword=""},modifyUserPassword:function(){var e=this,t={oldPassword:this.passwordForm.oldPassword,newPassword:this.passwordForm.newPassword,requestProject:this.repProjectName};return this.passwordForm.oldPassword.trim()&&this.passwordForm.newPassword.trim()&&this.passwordForm.confirmNewPassword.trim()?this.passwordForm.newPassword.trim()!=this.passwordForm.confirmNewPassword.trim()?(this.$message.error({duration:1e3,message:"两次密码输入不一致!"}),!1):void this.axios.post(this.baseUrl+"/api-auth/modify-password",a.a.stringify(t)).then(function(t){var r=t.data;0==r.errorCode?(e.passFormVisible=!1,e.$message({message:"修改成功",type:"success"}),e.postLoginOut()):e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})}):(this.$message.error({duration:1e3,message:"请输入密码"}),!1)},confirmModPass:function(e){var t=this;this.$refs[e].validate(function(e){e||t.modifyUserPassword()})},cancelModPass:function(){this.passFormVisible=!1},userFormClose:function(){this.userFormVisible=!1},passFormClose:function(){this.passFormVisible=!1},toLoginOut:function(){var e=this;this.$confirm("确认退出吗?","提示",{type:"warning"}).then(function(){e.postLoginOut()}).catch(function(){e.$message.error({duration:1e3,message:error.message})})},postLoginOut:function(){var e=this;this.axios.post(this.baseUrl+"/api-auth/do-logout",{}).then(function(t){var r=t.data;if(0==r.errorCode)return e.$message({message:"退出成功",type:"success"}),void(window.location.href=window.location.origin+"/gic-web/#/");e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},isClique:function(){var e=this,t={requestProject:this.repProjectName};this.axios.post(this.baseUrl+"/api-auth/is-relevance-clique",a.a.stringify(t)).then(function(t){var r=t.data;if(0==r.errorCode)return void(e.cliqueFlag=r.result);e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toRouter:function(e,t,r){this.showItem="none",this.activeCode=r;var o={path:"/"+e,name:t};this.$emit("toRouterView",o)},getUserInfo:function(){var e=this,t={requestProject:this.repProjectName};this.axios.post(this.baseUrl+"/api-auth/get-login-user-info",a.a.stringify(t)).then(function(t){var r=t.data;if(0==r.errorCode)return e.userInfo.realName=r.result.realName,e.userInfo.gender=r.result.clerkGender,e.userInfo.clerkCode=r.result.clerkCode,e.userInfo.phoneNumber=r.result.loginName,e.userInfo.positionName=r.result.positionName,void(document.title=r.result.enterpriseDTO.brandName||r.result.enterpriseDTO.enterpriseName);e.$message.error({duration:1e3,message:r.message})}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getHeaderMenu:function(){var e=this,t={project:this.repProjectName,requestProject:this.repProjectName};this.axios.post(this.baseUrl+"/api-auth/login-clerk-menu",a.a.stringify(t)).then(function(t){var r=t.data;if(0==r.errorCode)return e.menuHeadRouter=r.result,void e.getLeftMenu();e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getMenu:function(){var e=this,t={requestProject:this.repProjectName};this.axios.post(this.baseUrl+"/api-auth/login-clerk-top-project",a.a.stringify(t)).then(function(t){var r=t.data;if(0==r.errorCode)return void(e.menuHead=r.result);e.$message.error({duration:1e3,message:r.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getAccountStateInfo:function(){var e=this;this.axios.post(this.baseUrl+"/api-marketing/account-state-info",a.a.stringify({requestProject:"gic-web"})).then(function(t){0===t.data.errorCode&&(e.accountStatus=t.data.result.status||1,localStorage.setItem("accountStatus",e.accountStatus))})},toRecharge:function(){window.location.href="/marketing/#/recharge/do"}},watch:{$route:{handler:function(e,t){this.summaryName=e.path,"-1"!=this.summaryName.indexOf("memberSummary")&&(this.activeCode="")},deep:!0},collapseFlag:function(e,t){this.isCollapse=e},userInfo:function(e,t){this.userInfo=e},projectName:function(e,t){this.repProjectName=e||"gic-web"}},mounted:function(){this.summaryName=this.$route.path,this.routePathName=window.location.hash.split("/")[1],-1!=this.routePathName.indexOf("?")&&(this.routePathName=this.routePathName.split("?")[0]),-1!=this.routePathName.indexOf("/")&&(this.routePathName=this.routePathName.split("/")[0]),this.repProjectName=this.projectName||"gic-web",this.pathName=this.repProjectName,this.isCollapse=this.collapseFlag,this.getUserInfo(),this.getHeaderMenu(),this.origin=window.location.origin,this.getMenu(),this.getAccountStateInfo()}}},function(e,t,r){"use strict";var o=Object.prototype.hasOwnProperty,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}();t.arrayToObject=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r},t.merge=function(e,r,a){if(!r)return e;if("object"!=typeof r){if(Array.isArray(e))e.push(r);else{if("object"!=typeof e)return[e,r];(a.plainObjects||a.allowPrototypes||!o.call(Object.prototype,r))&&(e[r]=!0)}return e}if("object"!=typeof e)return[e].concat(r);var i=e;return Array.isArray(e)&&!Array.isArray(r)&&(i=t.arrayToObject(e,a)),Array.isArray(e)&&Array.isArray(r)?(r.forEach(function(r,i){o.call(e,i)?e[i]&&"object"==typeof e[i]?e[i]=t.merge(e[i],r,a):e.push(r):e[i]=r}),e):Object.keys(r).reduce(function(e,o){var i=r[o];return Object.prototype.hasOwnProperty.call(e,o)?e[o]=t.merge(e[o],i,a):e[o]=i,e},i)},t.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},t.encode=function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",o=0;o<t.length;++o){var i=t.charCodeAt(o);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=t.charAt(o):i<128?r+=a[i]:i<2048?r+=a[192|i>>6]+a[128|63&i]:i<55296||i>=57344?r+=a[224|i>>12]+a[128|i>>6&63]+a[128|63&i]:(o+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(o)),r+=a[240|i>>18]+a[128|i>>12&63]+a[128|i>>6&63]+a[128|63&i])}return r},t.compact=function(e,r){if("object"!=typeof e||null===e)return e;var o=r||[],a=o.indexOf(e);if(-1!==a)return o[a];if(o.push(e),Array.isArray(e)){for(var i=[],n=0;n<e.length;++n)e[n]&&"object"==typeof e[n]?i.push(t.compact(e[n],o)):void 0!==e[n]&&i.push(e[n]);return i}return Object.keys(e).forEach(function(r){e[r]=t.compact(e[r],o)}),e},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isBuffer=function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},function(e,t,r){"use strict";var o=String.prototype.replace,a=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,a,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(4),a={install:function(e,t){e.component(o.a.name,o.a)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(a),t.default=a},function(e,t,r){"use strict";function o(e){r(5)}var a=r(0),i=r(16),n=r(12),s=o,l=n(a.a,i.a,!1,s,"data-v-fdfc8f82",null);t.a=l.exports},function(e,t,r){var o=r(6);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);r(10)("59a4be3e",o,!0,{})},function(e,t,r){var o=r(7);t=e.exports=r(8)(!1),t.push([e.i,".navheader[data-v-fdfc8f82]{position:fixed;display:flex;top:0;left:0;width:100%;height:64px;line-height:64px;font-size:14px;background-color:#fff;padding:0;z-index:99;color:#fff}.navheader .fl[data-v-fdfc8f82]{float:left}.navheader .fr[data-v-fdfc8f82]{float:right}.navheader-logo[data-v-fdfc8f82]{flex:0 0 200px;width:200px;height:64px;float:left;text-align:center;background:url("+o(r(9))+') no-repeat 50% #04143a}.navheader-pic[data-v-fdfc8f82]{vertical-align:middle}.navheader-item[data-v-fdfc8f82]{flex:1;box-shadow:5px -1px 10px #ddd}.navheader .itemlink[data-v-fdfc8f82]{float:left;padding:0 20px;display:inline-block;height:62px;cursor:pointer;color:#606266}.navheader .itemlink[data-v-fdfc8f82]:hover{color:#1890ff}.navheader .bottom[data-v-fdfc8f82]:hover{border-bottom:2px solid #1890ff}.navheader .current-module.bottom[data-v-fdfc8f82]{color:#1890ff;border-bottom:2px solid #1890ff;font-weight:500}.navheader .moveleft[data-v-fdfc8f82]{margin-left:-136px;transition:all .3s ease;background-position:151px 10px}.navheader .moveright[data-v-fdfc8f82]{margin-left:0;transition:all .2s ease}.navheader .arrowico[data-v-fdfc8f82]{position:absolute;-webkit-transition:all .5s;transition:all .5s;right:0;top:25px}.navheader .arrow-icon-down[data-v-fdfc8f82]{position:relative;-webkit-transition:all .5s;-moz-transition:all .5s;transition:all .5s}.navheader .el-dialog__wrapper[data-v-fdfc8f82] .el-dialog{min-width:425px;width:425px}.navheader .el-dialog__body[data-v-fdfc8f82]{padding:0 20px}.navheader__status[data-v-fdfc8f82]{color:#999;cursor:pointer}.navheader__status a[data-v-fdfc8f82]{color:#f5222d}.navheader__status[data-v-fdfc8f82] .el-button--danger{background:#fff}.navheader__status[data-v-fdfc8f82] .el-button--danger:active,.navheader__status[data-v-fdfc8f82] .el-button--danger:focus,.navheader__status[data-v-fdfc8f82] .el-button--danger:hover{color:#f5222d}.navheader__status[data-v-fdfc8f82] .el-button--warning{background:#fff}.navheader__status[data-v-fdfc8f82] .el-button--warning:active,.navheader__status[data-v-fdfc8f82] .el-button--warning:focus,.navheader__status[data-v-fdfc8f82] .el-button--warning:hover{color:#faad14}.itemlink-gic[data-v-fdfc8f82]{float:left;display:inline-block;height:62px;padding:0 20px;position:relative;color:#606266;cursor:pointer}.itemlink-gic[data-v-fdfc8f82]:hover{color:#1890ff}.itemlink-gic:hover .arrow-icon-down[data-v-fdfc8f82]{transform:rotate(180deg)}.itemlink-gic:hover .itempanel[data-v-fdfc8f82]{display:block}.itemlink-gic .curitemlink[data-v-fdfc8f82]{border-bottom:2px solid #1890ff}.itemlink-gic .itempanel[data-v-fdfc8f82]{display:none}.itemlink-gic .containers-listlik.current-rout[data-v-fdfc8f82]{color:#1890ff}.itemlink-gic .containers-listlik-a[data-v-fdfc8f82]{display:block}.itemlink-gic .gicnavlink[data-v-fdfc8f82]{position:absolute;left:-100px;top:60px;width:966px;min-height:550px;background:#fff;min-width:150px;border-radius:4px;border:1px solid #ebeef5;padding:12px 0 25px 30px;z-index:9999;color:#606266;line-height:1.4;text-align:justify;font-size:14px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}.itemlink-gic .gicnavarrow[data-v-fdfc8f82]{position:absolute;left:50%;top:50px;transform:translate(-50%);z-index:3}.itemlink-gic .gicnavarrow .arrow[data-v-fdfc8f82]{position:relative;display:block;background-color:#fff;width:6px;height:6px;border:0;border-top:1px solid #ebeef5;border-right:1px solid #ebeef5;transform:translateY(7px) rotate(-45deg);filter:drop-shadow(0 2px 12px rgba(0,0,0,.03))}.itemlink-gic .gicnavarrow .arrow[data-v-fdfc8f82]:after{position:absolute;left:0;top:-2px;width:10px;height:1px;content:"";border-radius:2px;background-color:#fff;transform-origin:left top;transform:rotate(45deg)}.itemlink-gic .containers[data-v-fdfc8f82]{display:flex;flex-wrap:wrap;flex-flow:row wrap;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;margin:0}.itemlink-gic .containers-ul[data-v-fdfc8f82]{line-height:40px}.itemlink-gic .containers-title[data-v-fdfc8f82]{color:#303133;font-size:14px;font-weight:700;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}.itemlink-gic .containers-listlik[data-v-fdfc8f82]{font-size:12px;color:#606266;line-height:30px}.itemlink-gic .containers-listlik[data-v-fdfc8f82]:hover{color:#1890ff}.itemlink-gic .containers-item[data-v-fdfc8f82]{flex:0 0 185px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}.itemlink-gic .curactive[data-v-fdfc8f82]{color:#fede29}li[data-v-fdfc8f82]{list-style:none}.navuserinfo[data-v-fdfc8f82]{width:140px;text-align:center}.navuserinfo[data-v-fdfc8f82] a{color:#606266}.navuserinfo[data-v-fdfc8f82] .navusername{position:relative;display:inline-block;padding:0 20px;height:48px}.navuserinfo[data-v-fdfc8f82] .navusername:hover{color:#1890ff}.navuserinfo[data-v-fdfc8f82] .navusername:hover .arrowico{transform:rotate(180deg)}.navsuerwrap[data-v-fdfc8f82] .useritem{position:relative;line-height:35px;height:35px;margin-bottom:10px;text-align:center;color:#606266}.navsuerwrap[data-v-fdfc8f82] .useritem a{color:#606266}.navsuerwrap[data-v-fdfc8f82] .useritem:hover .usertext{display:block;width:119px;margin-left:-12px;color:#1890ff;background-color:#ecf5ff;cursor:pointer}.navsuerwrap[data-v-fdfc8f82] .loginout{border-top:1px solid #eee;box-sizing:border-box;padding:15px 0;margin-bottom:20px}.el-popover.user-header-pop[data-v-fdfc8f82],.el-popover[data-v-fdfc8f82],.user-header-pop[data-v-fdfc8f82]{min-width:95px}.el-dialog__wrapper[data-v-fdfc8f82] .el-dialog{min-width:425px;width:425px}.el-dialog__wrapper[data-v-fdfc8f82] .el-dialog /deep/ .el-dialog__body{padding:0 20px}.user-form-dialog[data-v-fdfc8f82] .el-dialog{min-width:425px}.user-form-dialog[data-v-fdfc8f82] .el-dialog__body{padding:0 20px}.user-form-dialog[data-v-fdfc8f82] .el-input{width:260px}.pass-form-dialog[data-v-fdfc8f82] .el-dialog{min-width:425px}.pass-form-dialog[data-v-fdfc8f82] .el-dialog__body{padding:0 20px}.el-input[data-v-fdfc8f82]{width:260px}@media screen and (max-width:1280px){.navheader[data-v-fdfc8f82]{min-width:1280px}}@media screen and (min-width:1280px) and (max-width:1366px){.navheader[data-v-fdfc8f82]{min-width:1280px}}@media screen and (min-width:1366px) and (max-width:1440px){.navheader[data-v-fdfc8f82]{min-width:1366px}}@media screen and (min-width:1440px) and (max-width:1920px){.navheader[data-v-fdfc8f82]{min-width:1440px}}.dialog-footer[data-v-fdfc8f82]{line-height:1}',""])},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t){function r(e,t){var r=e[1]||"",a=e[3];if(!a)return r;if(t&&"function"==typeof btoa){var i=o(a);return[r].concat(a.sources.map(function(e){return"/*# sourceURL="+a.sourceRoot+e+" */"})).concat([i]).join("\n")}return[r].join("\n")}function o(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o=r(t,e);return t[2]?"@media "+t[2]+"{"+o+"}":o}).join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},a=0;a<this.length;a++){var i=this[a][0];"number"==typeof i&&(o[i]=!0)}for(a=0;a<e.length;a++){var n=e[a];"number"==typeof n[0]&&o[n[0]]||(r&&!n[2]?n[2]=r:r&&(n[2]="("+n[2]+") and ("+r+")"),t.push(n))}},t}},function(e,t,r){e.exports=r.p+"static/img/logo.png?567d2bcb0ba7ec281f5613c41ce4b7c6"},function(e,t,r){function o(e){for(var t=0;t<e.length;t++){var r=e[t],o=c[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(i(r.parts[a]));o.parts.length>r.parts.length&&(o.parts.length=r.parts.length)}else{for(var n=[],a=0;a<r.parts.length;a++)n.push(i(r.parts[a]));c[r.id]={id:r.id,refs:1,parts:n}}}}function a(){var e=document.createElement("style");return e.type="text/css",f.appendChild(e),e}function i(e){var t,r,o=document.querySelector("style["+v+'~="'+e.id+'"]');if(o){if(m)return h;o.parentNode.removeChild(o)}if(b){var i=p++;o=u||(u=a()),t=n.bind(null,o,i,!1),r=n.bind(null,o,i,!0)}else o=a(),t=s.bind(null,o),r=function(){o.parentNode.removeChild(o)};return t(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;t(e=o)}else r()}}function n(e,t,r,o){var a=r?"":o.css;if(e.styleSheet)e.styleSheet.cssText=w(t,a);else{var i=document.createTextNode(a),n=e.childNodes;n[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i)}}function s(e,t){var r=t.css,o=t.media,a=t.sourceMap;if(o&&e.setAttribute("media",o),g.ssrId&&e.setAttribute(v,t.id),a&&(r+="\n/*# sourceURL="+a.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var d=r(11),c={},f=l&&(document.head||document.getElementsByTagName("head")[0]),u=null,p=0,m=!1,h=function(){},g=null,v="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,r,a){m=r,g=a||{};var i=d(e,t);return o(i),function(t){for(var r=[],a=0;a<i.length;a++){var n=i[a],s=c[n.id];s.refs--,r.push(s)}t?(i=d(e,t),o(i)):i=[];for(var a=0;a<r.length;a++){var s=r[a];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete c[s.id]}}}};var w=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t){for(var r=[],o={},a=0;a<t.length;a++){var i=t[a],n=i[0],s=i[1],l=i[2],d=i[3],c={id:e+":"+a,css:s,media:l,sourceMap:d};o[n]?o[n].parts.push(c):r.push(o[n]={id:n,parts:[c]})}return r}},function(e,t){e.exports=function(e,t,r,o,a,i){var n,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(n=e,s=e.default);var d="function"==typeof s?s.options:s;t&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0),r&&(d.functional=!0),a&&(d._scopeId=a);var c;if(i?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=c):o&&(c=o),c){var f=d.functional,u=f?d.render:d.beforeCreate;f?(d._injectStyles=c,d.render=function(e,t){return c.call(t),u(e,t)}):d.beforeCreate=u?[].concat(u,c):[c]}return{esModule:n,exports:s,options:d}}},function(e,t,r){"use strict";var o=r(14),a=r(15),i=r(2);e.exports={formats:i,parse:a,stringify:o}},function(e,t,r){"use strict";var o=r(1),a=r(2),i={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},n=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:o.encode,serializeDate:function(e){return n.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,r,a,i,n,s,l,d,c,f,u){var p=t;if("function"==typeof l)p=l(r,p);else if(p instanceof Date)p=f(p);else if(null===p){if(i)return s?s(r):r;p=""}if("string"==typeof p||"number"==typeof p||"boolean"==typeof p||o.isBuffer(p))return s?[u(s(r))+"="+u(s(p))]:[u(r)+"="+u(String(p))];var m=[];if(void 0===p)return m;var h;if(Array.isArray(l))h=l;else{var g=Object.keys(p);h=d?g.sort(d):g}for(var v=0;v<h.length;++v){var b=h[v];n&&null===p[b]||(m=Array.isArray(p)?m.concat(e(p[b],a(r,b),a,i,n,s,l,d,c,f,u)):m.concat(e(p[b],r+(c?"."+b:"["+b+"]"),a,i,n,s,l,d,c,f,u)))}return m};e.exports=function(e,t){var r=e,o=t||{};if(null!==o.encoder&&void 0!==o.encoder&&"function"!=typeof o.encoder)throw new TypeError("Encoder has to be a function.");var n=void 0===o.delimiter?s.delimiter:o.delimiter,d="boolean"==typeof o.strictNullHandling?o.strictNullHandling:s.strictNullHandling,c="boolean"==typeof o.skipNulls?o.skipNulls:s.skipNulls,f="boolean"==typeof o.encode?o.encode:s.encode,u=f?"function"==typeof o.encoder?o.encoder:s.encoder:null,p="function"==typeof o.sort?o.sort:null,m=void 0!==o.allowDots&&o.allowDots,h="function"==typeof o.serializeDate?o.serializeDate:s.serializeDate;if(void 0===o.format)o.format=a.default;else if(!Object.prototype.hasOwnProperty.call(a.formatters,o.format))throw new TypeError("Unknown format option provided.");var g,v,b=a.formatters[o.format];"function"==typeof o.filter?(v=o.filter,r=v("",r)):Array.isArray(o.filter)&&(v=o.filter,g=v);var w=[];if("object"!=typeof r||null===r)return"";var x;x=o.arrayFormat in i?o.arrayFormat:"indices"in o?o.indices?"indices":"repeat":"indices";var y=i[x];g||(g=Object.keys(r)),p&&g.sort(p);for(var _=0;_<g.length;++_){var N=g[_];c&&null===r[N]||(w=w.concat(l(r[N],N,y,d,c,u,v,p,m,h,b)))}return w.join(n)}},function(e,t,r){"use strict";var o=r(1),a=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},n=function(e,t){for(var r={},o=e.split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),i=0;i<o.length;++i){var n,s,l=o[i],d=-1===l.indexOf("]=")?l.indexOf("="):l.indexOf("]=")+1;-1===d?(n=t.decoder(l),s=t.strictNullHandling?null:""):(n=t.decoder(l.slice(0,d)),s=t.decoder(l.slice(d+1))),a.call(r,n)?r[n]=[].concat(r[n]).concat(s):r[n]=s}return r},s=function(e,t,r){if(!e.length)return t;var o,a=e.shift();if("[]"===a)o=[],o=o.concat(s(e,t,r));else{o=r.plainObjects?Object.create(null):{};var i="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,n=parseInt(i,10);!isNaN(n)&&a!==i&&String(n)===i&&n>=0&&r.parseArrays&&n<=r.arrayLimit?(o=[],o[n]=s(e,t,r)):o[i]=s(e,t,r)}return o},l=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,n=/(\[[^[\]]*])/g,l=i.exec(o),d=l?o.slice(0,l.index):o,c=[];if(d){if(!r.plainObjects&&a.call(Object.prototype,d)&&!r.allowPrototypes)return;c.push(d)}for(var f=0;null!==(l=n.exec(o))&&f<r.depth;){if(f+=1,!r.plainObjects&&a.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(l[1])}return l&&c.push("["+o.slice(l.index)+"]"),s(c,t,r)}};e.exports=function(e,t){var r=t||{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.delimiter="string"==typeof r.delimiter||o.isRegExp(r.delimiter)?r.delimiter:i.delimiter,r.depth="number"==typeof r.depth?r.depth:i.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:i.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:i.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:i.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling,""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var a="string"==typeof e?n(e,r):e,s=r.plainObjects?Object.create(null):{},d=Object.keys(a),c=0;c<d.length;++c){var f=d[c],u=l(f,a[f],r);s=o.merge(s,u,r)}return o.compact(s)}},function(e,t,r){"use strict";var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"navheader"},[r("div",{staticClass:"navheader-logo fl",class:e.isCollapse?"moveleft":"moveright"}),e._v(" "),r("div",{staticClass:"navheader-item fl"},[r("a",{staticClass:"itemlink",on:{click:e.handleCollapse}},[r("i",{staticClass:"iconfont",class:e.isCollapse?"icon-zhankai":"icon-shouqi"})]),e._v(" "),r("a",{class:["itemlink","bottom","menu-all","/memberSummary"==e.summaryName?"current-module":""],attrs:{href:e.origin+"/report/#/memberSummary"}},[e._v("总览")]),e._v(" "),r("div",{class:["itemlink-gic","bottom","gic-web"==e.pathName?"current-module":""],on:{mouseover:e.showChild,mouseout:e.hideChild}},[e._v("GIC商户后台\n "),r("i",{staticClass:"el-icon-arrow-down arrow-icon-down"}),e._v(" "),r("div",{staticClass:"itempanel",style:{display:e.showItem},attrs:{id:"itempanel"}},[r("div",{staticClass:"gicnavlink"},[r("div",{staticClass:"containers"},e._l(e.menuHeadRouter,function(t,o){return r("div",{key:o,staticClass:"containers-item"},[r("ul",{staticClass:"containers-ul"},[r("h1",{staticClass:"containers-title"},[e._v(e._s(t.menuName))]),e._v(" "),e._l(t.children,function(t,o){return[t.isRouter?r("li",{key:o,class:["containers-listlik",e.activeCode==t.menuCode?"current-rout":""],on:{click:function(r){e.toRouter(t.menuUrl,t.menuName,t.menuCode)}}},[e._v(e._s(t.menuName))]):e._e(),e._v(" "),t.isRouter?e._e():r("a",{key:o,staticClass:"containers-listlik containers-listlik-a",attrs:{href:t.menuUrl,target:1==t.target?"_blank":""}},[e._v(e._s(t.menuName))])]})],2)])}))]),e._v(" "),e._m(0)])]),e._v(" "),e._l(e.menuHead,function(t){return[r("a",{class:["itemlink","bottom","menu-mall",e.pathName==t.project?"current-module":""],attrs:{href:e.origin+t.menuUrl,target:1==t.target?"_blank":""}},[e._v(e._s(t.menuName))])]}),e._v(" "),r("div",{staticClass:"navuserinfo fr"},[r("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[r("ul",{staticClass:"navsuerwrap"},[r("li",{staticClass:"useritem",on:{click:e.toUserInfo}},[r("a",{staticClass:"usertext"},[e._v("账户信息")])]),e._v(" "),r("li",{staticClass:"useritem",on:{click:e.toModifyInfo}},[r("a",{staticClass:"usertext"},[e._v("修改密码")])]),e._v(" "),r("li",{staticClass:"useritem loginout",on:{click:e.toLoginOut}},[r("a",{staticClass:"usertext"},[e._v("退出登录")])])]),e._v(" "),r("a",{staticClass:"navusername",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.userInfo.realName)+"\n "),r("i",{staticClass:"el-icon-arrow-down arrowico"})])])],1),e._v(" "),2===e.accountStatus||3===e.accountStatus?r("div",{staticClass:"navheader__status fr"},[r("el-tooltip",{attrs:{effect:"dark",placement:"bottom-start","popper-class":"navheader__status--tooltip"}},[r("div",{staticClass:"w200",attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(2===e.accountStatus?"当前账户已欠费,授信欠费额度5000,如不及时充值将无法使用营销管理-短信营销、营销管理-智能营销、双向呼叫、短信语音验证码等模块,为了保障您的权益,请尽快充值。":"账户余额超出欠费额度,当前无法使用营销管理-短信营销、营销管理-智能营销、双向呼叫、短信语音验证码等模块,为了保障您的权益,请尽快充值。")+"\n ")]),e._v(" "),r("el-button",{attrs:{size:"medium",type:2===e.accountStatus?"warning":"danger",plain:"",round:""},on:{click:e.toRecharge}},[e._v(e._s(2===e.accountStatus?"账户已欠费":"账户异常"))])],1)],1):e._e()],2),e._v(" "),r("el-dialog",{staticClass:"user-form-dialog",attrs:{title:"账户信息",visible:e.userFormVisible,width:"425px","modal-append-to-body":!1,"before-close":e.userFormClose}},[r("el-form",{ref:"userForm",attrs:{model:e.userInfoForm,"before-close":e.userFormClose,rules:e.userFormRules}},[r("el-form-item",{attrs:{label:"姓名","label-width":e.formLabelWidth,prop:"realName"}},[r("el-input",{model:{value:e.userInfoForm.realName,callback:function(t){e.$set(e.userInfoForm,"realName",t)},expression:"userInfoForm.realName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"性别","label-width":e.formLabelWidth,prop:"gender"}},[r("el-radio-group",{model:{value:e.userInfoForm.gender,callback:function(t){e.$set(e.userInfoForm,"gender",t)},expression:"userInfoForm.gender"}},[r("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"员工代码","label-width":e.formLabelWidth,prop:"clerkCode"}},[r("el-input",{model:{value:e.userInfoForm.clerkCode,callback:function(t){e.$set(e.userInfoForm,"clerkCode",t)},expression:"userInfoForm.clerkCode"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码","label-width":e.formLabelWidth,prop:"phoneNumber"}},[r("el-input",{attrs:{type:"text",maxlength:11},model:{value:e.userInfoForm.phoneNumber,callback:function(t){e.$set(e.userInfoForm,"phoneNumber",t)},expression:"userInfoForm.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"职位","label-width":e.formLabelWidth,prop:"positionName"}},[r("el-input",{model:{value:e.userInfoForm.positionName,callback:function(t){e.$set(e.userInfoForm,"positionName",t)},expression:"userInfoForm.positionName"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.cancelModUserInfo}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.confirmModUserInfo("userForm")}}},[e._v("确 定")])],1)],1),e._v(" "),r("el-dialog",{staticClass:"pass-form-dialog",attrs:{title:"修改密码",visible:e.passFormVisible,width:"425px","modal-append-to-body":!1,"before-close":e.passFormClose}},[r("el-form",{ref:"passForm",attrs:{model:e.passwordForm,"before-close":e.passFormClose,rules:e.passFormRules}},[r("el-form-item",{attrs:{label:"旧密码","label-width":e.formLabelWidth,prop:"oldPassword"}},[r("el-input",{attrs:{"auto-complete":"off"},model:{value:e.passwordForm.oldPassword,callback:function(t){e.$set(e.passwordForm,"oldPassword",t)},expression:"passwordForm.oldPassword"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"新密码","label-width":e.formLabelWidth,prop:"newPassword"}},[r("el-input",{model:{value:e.passwordForm.newPassword,callback:function(t){e.$set(e.passwordForm,"newPassword",t)},expression:"passwordForm.newPassword"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"确认密码","label-width":e.formLabelWidth,prop:"confirmNewPassword"}},[r("el-input",{model:{value:e.passwordForm.confirmNewPassword,callback:function(t){e.$set(e.passwordForm,"confirmNewPassword",t)},expression:"passwordForm.confirmNewPassword"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.cancelModPass}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.confirmModPass("passForm")}}},[e._v("确 定")])],1)],1)],1)},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"gicnavarrow"},[r("span",{staticClass:"arrow"})])}],i={render:o,staticRenderFns:a};t.a=i}])});
\ 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.
......@@ -65,5 +65,5 @@
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot"
},
"version": "1.3.36"
"version": "1.3.37"
}
......@@ -226,7 +226,7 @@
this.axios.post(this.baseUrl+'/api-auth/get-current-memu-data',qs.stringify(params))
.then(res => {
let resData = res.data;
if (resData.errorCode == 0 && resData.result) {
if (resData.errorCode == 0) {
this.activeCode = resData.result.level2.menuCode
return;
}
......
......@@ -95,7 +95,7 @@ module.exports = {
}
if (process.env.NODE_ENV === 'production') {
module.exports.devtool = '#source-map'
module.exports.devtool = false
// http://vue-loader.vuejs.org/en/workflow/production.html
module.exports.plugins = (module.exports.plugins || []).concat([
new webpack.DefinePlugin({
......
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