(function(e){function t(t){for(var s,o,n=t[0],l=t[1],c=t[2],u=0,d=[];u{const e=this.$refs.showTxt;e&&(this.isOverflowing=e.scrollWidth>e.offsetWidth)})},copyText(e,t){let a=document.createElement("textarea");a.value=e,document.body.appendChild(a),a.select();try{let e=document.execCommand("copy");e?this.$message.success((t||"")+"复制成功!"):console.log("无法复制!")}catch(s){console.error("无法复制!",s)}finally{document.body.removeChild(a)}}},mounted(){this.checkOverflow()},watch:{txt(){this.checkOverflow()}}},i=r,n=(a("df9a"),a("1805")),l=Object(n["a"])(i,s,o,!1,null,"4503a37a",null);t["a"]=l.exports},4360:function(e,t,a){"use strict";var s=a("5923"),o=a("f0a4");s["default"].use(o["a"]),t["a"]=new o["a"].Store({state:{version:"manager"},getters:{baseTitle(e){return"驾安安"},baseURL(e){let t="//"+location.hostname+"/manager";return"localhost"==location.hostname&&(t="//jiaanantest.platform.sigreal.cn/manager"),t}},mutations:{},actions:{},modules:{}})},"56d7":function(e,t,a){"use strict";a.r(t);a("f16c");var s=a("5923"),o=a("2e36"),r=a.n(o),i=(a("5ba9"),function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("keep-alive",[e.$route.meta.keepAlive?t("router-view"):e._e()],1),e.$route.meta.keepAlive?e._e():t("router-view")],1)}),n=[],l=a("a18c"),c={data(){return{}},mounted(){let e;localStorage.getItem("AUTH_TOKEN")&&(this.userMenuTree(),e=setInterval(()=>{this.dataCollection({eventId:102,remark:"用户活跃"})},3e5))},methods:{userMenuTree(){this.instance.get("/upms/api/menu/getMenuTree",{params:{}}).then(e=>{let t=e.data;200==t.code&&(localStorage.setItem("userMenu",JSON.stringify(t.data)),Object(l["b"])(t.data))}).catch(e=>{console.log(e)})}}},u=c,d=(a("b010"),a("1805")),m=Object(d["a"])(u,i,n,!1,null,null,null),p=m.exports,h=(a("fe51"),a("4360")),f=a("eb06"),g=a.n(f),v=a("3af2"),b=a("6b10"),w=a.n(b),y=a("7d42"),C=a("ada4"),k=(a("f176"),a("79ae"),a("3892")),x=a("396e"),S=a("5f87");h["a"].state.version;const I="//upms.sigreal.cn";s["default"].component("overflow-txt",x["a"]),s["default"].use(r.a,{size:"small",zIndex:3e3}),s["default"].use(v["a"],g.a),s["default"].use(y["a"]),s["default"].use(w.a,{ak:"Em3blp5md8MKAnUFMtzAXoSdjPaqdZAk",enableGlobalBMap:!0}),console.log("%c子应用访问域名:"+I,"background:#409eff;color:#ffffff;padding:5px;border-radius:3px;font-size:14px;"),Object(k["b"])([{name:"upmsSystem",entry:I,container:"#systemId",activeRule:"/vue"}]),Object(k["c"])({prefetch:!0});var T=h["a"].getters.baseURL;s["default"].prototype.$$abbreviateCity=S["a"],s["default"].prototype.$$ak="DHewLYOSvq4s0TFIaFCagCNWhvmHWzLB",s["default"].prototype.role="",s["default"].prototype.userInfo="",s["default"].prototype.$axios=g.a,s["default"].prototype.$echarts=C,s["default"].prototype.instance=s["default"].prototype.$axios.create({baseURL:T}),s["default"].prototype.instance.interceptors.request.use(e=>{e.headers["Authorization"]="Bearer "+Object(S["c"])(),e.headers["X-From-Business-Line"]="jiaanan",e.headers["X-From-Tenant"]="11300",localStorage.setItem("X-From-Business-Line","jiaanan"),localStorage.setItem("X-From-Tenant","11300"),"E7IpJc*6(=}<"!=localStorage.getItem("AUTH_TOKEN")&&"/calculatorTool/invoiceCheck"!=location.pathname&&"/calculatorTool/similarPicture"!=location.pathname||(e.headers.token="E7IpJc*6(=}<");var t=localStorage.getItem("userInfo");return t&&(t=JSON.parse(t),"get"==e.method.toLowerCase()?(e.params.company=t.company,e.params.jobNo=t.jobNo,e.params.role=t.role):(e.data.company=t.company,e.data.jobNo=t.jobNo,e.data.role=t.role)),e},e=>Promise.reject(e));let N=!1;s["default"].prototype.instance.interceptors.response.use(e=>(401!=e.data.code||N||(N=!0,window.alert("抱歉,当前账号登录信息已过期,请重新登录"),localStorage.clear(),l["a"].push({path:"/"}),location.reload()),e),e=>{e.response&&(401!=e.response.status||N||(N=!0,window.alert("抱歉,当前账号登录信息已过期,请重新登录"),localStorage.clear(),l["a"].push({path:"/"}),location.reload()))}),s["default"].config.productionTip=!1,s["default"].prototype.dataCollection=e=>{s["default"].prototype.instance.post("/user/usage/userOperation",e).then(e=>{})},s["default"].prototype.$$getFileSuffix=S["b"],Object(S["d"])(),l["a"].beforeEach((e,t,a)=>{let s=Object(S["c"])();s||"/"==e.path?a():a({replace:!0,name:"Login"})}),new s["default"]({router:l["a"],store:h["a"],render:e=>e(p)}).$mount("#app");s["default"].prototype.getQueryString=function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),a=window.location.href;a=decodeURI(a);var s=a.substr(a.indexOf("?")+1).match(t);return null!=s?unescape(s[2]):null},s["default"].prototype.dateFormatting=function(e,t){var a={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var s in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+s+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?a[s]:("00"+a[s]).substr((""+a[s]).length)));return t},s["default"].prototype.unifyNumber=function(e){if(""===e)return 0;{let t=parseFloat(e),a=t.toString().includes(".")&&t.toString().split(".")[1].length>2;return a?t.toFixed(2):t}},Array.prototype.indexOf=function(e){for(var t=0;t-1&&this.splice(t,1)},s["default"].prototype.getPublicEnum=async function(e,t){await this.instance.post("/backstage/getDict",{dictType:e}).then(e=>{let a=e.data;1==a.code&&(this[t]=a.data)})}},"595f":function(e,t,a){"use strict";a("0e8c")},"5cf4":function(e,t,a){},"5de4":function(e,t,a){"use strict";a("245a")},"5f87":function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return d})),a.d(t,"d",(function(){return n})),a.d(t,"e",(function(){return l})),a.d(t,"b",(function(){return u}));var s=a("5923"),o=a("a18c");const r="ALL_TOKEN";var i=function(){return localStorage.getItem("AUTH_TOKEN")},n=function(){setInterval((function(){"/"!=o["a"].history.current.path&&c(r,72e5)}),36e5)},l=function(e){var t=(new Date).getTime();localStorage.setItem(r,JSON.stringify({data:e,time:t}))},c=function(e,t){var a=localStorage.getItem(e),o=JSON.parse(a);if((new Date).getTime()-o.time>t){var r=o.data,i={refreshToken:r.refreshToken,token:r.token};s["default"].prototype.instance({method:"post",url:"/vehicle/damage/refreshToken",data:i,headers:{}}).then(e=>{var t=e.data;1==t.code&&(l(t.data),localStorage.setItem("AUTH_TOKEN",t.data.token))}).catch((function(e){console.log(e)}))}};function u(e){let t,a;return-1!=e.indexOf("?")?(t=e.split("?")[0],t=t.split("."),a=t[t.length-1]):(t=e.split("."),a=t[t.length-1]),a?a.toLowerCase():null}var d=function(e){const t={"内蒙古自治区":"内蒙古","宁夏回族自治区":"宁夏","广西壮族自治区":"广西","新疆维吾尔自治区":"新疆","西藏自治区":"西藏"};return t.hasOwnProperty(e)?t[e]:e.replace(/自治区/g,"").replace(/省/g,"").replace(/市/g,"").replace(/县/g,"").replace(/区/g,"")}},"79ae":function(e,t,a){},"8a5d":function(e,t){e.exports="data:image/png;base64,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"},9839:function(e,t,a){"use strict";var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"header"},[t("div",{staticClass:"flex header_left"},[t("div",{staticClass:"decoration_box",on:{click:e.linkHomePage}},[e._m(0)]),t("div",{staticClass:"fold_icon"},[t("i",{directives:[{name:"show",rawName:"v-show",value:!e.isFold,expression:"!isFold"}],staticClass:"el-icon-s-fold",on:{click:function(t){return e.handleFoldMenus(!0)}}}),t("i",{directives:[{name:"show",rawName:"v-show",value:e.isFold,expression:"isFold"}],staticClass:"el-icon-s-unfold",on:{click:function(t){return e.handleFoldMenus(!1)}}})])]),t("div",{staticClass:"header_right"},[t("div",{staticClass:"header_message"},[t("div",{ref:"messageHot",class:e.messageArr.length>0?"message_right message_hot":"message_right"},[t("div",{staticClass:"message_popup"},[t("div",{staticClass:"popup_title clearfix",on:{click:e.toggleDiv}},[t("img",{staticClass:"msg_picture",attrs:{src:a("8a5d")}})]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isCollapse&&e.messageArr.length>0&&0,expression:"!isCollapse && messageArr.length > 0 && 0"}],staticClass:"popup_clear"},[t("span",{on:{click:e.clearMsg}},[e._v("一键已读")])]),t("ul",{directives:[{name:"show",rawName:"v-show",value:!e.isCollapse,expression:"!isCollapse"}],ref:"box1",class:e.isCollapse?"popup_lists retract_lists clearfix":1==e.messageArr.length?"popup_lists clearfix list-over list_height":"popup_lists clearfix list-over"},[e._l(e.messageArr,(function(a,s){return[t("li",{key:s,staticClass:"fl"},[t("el-row",{staticClass:"lists-row"},[t("el-col",{staticClass:"lists-col col-title",attrs:{span:24}},[t("i",{staticClass:"title-error el-icon-warning-outline"}),t("span",[e._v("【"+e._s(a.noticeTypeDesc)+"】")])])],1),t("el-row",{staticClass:"lists-row"},[t("el-col",{staticClass:"lists-col col_title",attrs:{span:7}},[e._v("投诉编号:")]),t("el-col",{staticClass:"lists-col col_txt",attrs:{span:16}},[t("div",{staticClass:"tooltip_text",on:{click:function(t){return e.copyCaseNo(a.caseNo)}}},[a.complaintNumber.length>15?t("el-tooltip",{attrs:{effect:"dark",content:a.complaintNumber,placement:"top-start"}},[t("div",{staticClass:"ellipsis"},[e._v(e._s(a.complaintNumber?a.complaintNumber:""))])]):t("div",[e._v(e._s(a.complaintNumber?a.complaintNumber:""))])],1)])],1),t("el-row",{staticClass:"lists-row"},[t("el-col",{staticClass:"lists-col col_title",attrs:{span:7}},[e._v("登记日期:")]),t("el-col",{staticClass:"lists-col col_txt",attrs:{span:14}},[e._v(e._s(a.recordDate?a.recordDate:"--"))])],1),t("el-row",{staticClass:"lists-row"},[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.otherClick(a)}}},[e._v("查 看")])],1)],1)]}))],2)])])]),t("div",{staticClass:"userinfo"},[t("el-dropdown",{attrs:{trigger:"click"}},[t("span",{staticClass:"el-dropdown-link"},[e._v(" "+e._s(e.nickname)),t("i",{staticClass:"el-icon-caret-bottom el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{staticClass:"clearfix",nativeOn:{click:function(t){return e.handleLogOut.apply(null,arguments)}}},[e._v("退出登录")])],1)],1)],1)]),t("el-dialog",{attrs:{title:"修改密码",width:"600px",visible:e.centerDialogVisible,center:""},on:{"update:visible":function(t){e.centerDialogVisible=t}}},[t("el-form",{ref:"form",attrs:{model:e.form},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin.apply(null,arguments)}}},[t("el-form-item",{attrs:{label:"原始密码"}},[t("el-input",{attrs:{placeholder:"请输入原始密码",type:"password"},model:{value:e.form.oldPassword,callback:function(t){e.$set(e.form,"oldPassword",t)},expression:"form.oldPassword"}})],1),t("el-form-item",{attrs:{label:"新密码"}},[t("el-input",{attrs:{placeholder:"请输入新密码",type:"password"},model:{value:e.form.newPassword,callback:function(t){e.$set(e.form,"newPassword",t)},expression:"form.newPassword"}})],1),t("el-form-item",{attrs:{label:"重复新密码"}},[t("el-input",{attrs:{placeholder:"请重复输入新密码",type:"password"},model:{value:e.form.newPassword2,callback:function(t){e.$set(e.form,"newPassword2",t)},expression:"form.newPassword2"}})],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.centerDialogVisible=!1}}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.handleEditPassword}},[e._v("确 定")])],1)],1)],1)},o=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"logo"},[t("img",{attrs:{src:a("cfe5")}})])}],r=(a("f16c"),a("45d2"),a("4e1c"),a("8160"),a("9052"),a("792b"),a("308a"),a("a805"),a("3228"),a("617f"),a("7d10"),a("ea10"),a("1022"),a("396e")),i={components:{overflowTxt:r["a"]},name:"MyHeader",props:{msg:String,checkedMenu:Object},data(){return{form:{oldPassword:"",newPassword:"",newPassword2:""},isFold:!0,centerDialogVisible:!1,username:"",nickname:"",menus:[],messageArr:[],isCollapse:!0,noticeListTime:null,showMsgData:[],showMsg:[]}},methods:{otherClick(e,t){this.showNotice(e.id,e.complaintId),this.toggleDiv()},clearMsg(){this.toggleDiv(),this.messageArr.forEach(e=>{this.closeNotice(e.id)}),setTimeout(()=>{this.messageArr=[]},500)},toggleDiv(){this.isCollapse=!this.isCollapse,this.isCollapse&&this.$refs["box1"]?(this.$refs["box1"].style.height=0,this.$refs["messageHot"].style.zIndex=0):this.$refs["box1"]&&(this.$refs["box1"].style.height="490px",this.$refs["messageHot"].style.zIndex=12)},copyCaseNo(e){let t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();try{let e=document.execCommand("copy");e?this.$message.success("报案号复制成功!"):console.log("无法复制!")}catch(a){console.error("无法复制!",a)}finally{document.body.removeChild(t)}},handleEditPassword(){if(this.form.newPassword!=this.form.newPassword2)return this.$message.error("抱歉,您两次输入的新密码不一致"),!1;var e={oldPassword:this.form.oldPassword,newPassword:this.form.newPassword,username:this.username};this.instance.get("/login/changePassword",{params:e}).then(e=>{var t=e.data;1==t.code?(this.centerDialogVisible=!1,this.$confirm("密码修改成功,请重新登录。","提示",{confirmButtonText:"确定",showCancelButton:!1,type:"warning"}).then(()=>{this.$router.replace({path:"/"})}).catch(()=>{this.$router.replace({path:"/"})})):this.$message.error(t.message)})},handleLogOut(){this.$confirm("此操作将退出当前登录, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{localStorage.clear(),this.$router.replace({path:"/"})}).catch(()=>{this.$message({type:"info",message:"已取消"})})},linkHomePage(){let e=JSON.parse(localStorage.getItem("userInfo")).role;4==e&&this.$router.push({path:"/bigScreen/index"})},handleFoldMenus(e){this.isFold=e,this.$emit("handleFoldMenus",e)},getNoticeList(){clearTimeout(this.noticeListTime),this.instance.post("/complaintNotice/noticeList",{}).then(e=>{let t=e.data;1==t.code&&(this.messageArr=t.data,this.handleNotice(),this.noticeListTime=setTimeout(()=>{this.getNoticeList()},2e4))})},handleNotice(){let e=JSON.parse(JSON.stringify(this.messageArr)),t={},a=[],s=this,o={1:4,2:4,3:5};if(e.length<1)return;const r=new Set(s.showMsg.map(e=>e.id)),i=e.filter(e=>!r.has(e.id));i.forEach((function(e){let a=1==e.noticeType||2==e.noticeType?1:e.noticeType;e.popWindow&&(t[a]?(t[a].data.push(e),t[a].count++,s.showMsg.push(e)):(t[a]={data:[e],count:1},s.showMsg.push(e)))}));for(let n in t)if(t[n].count>3)a.push({msgType:o[n],msgData:{count:t[n].count,data:t[n].data}});else{let e=t[n].data;e.forEach(e=>{a.push({msgType:n,msgData:e})})}a.length>0&&a.forEach((e,t)=>{e.offset=90*t,this.openNotice(e.msgType,e.msgData,e.offset)}),this.showMsgData=a},openNotice(e,t,a){let s="";s=4==e?`您有${t.count}个案件已经超过时效,请点击查看并处理`:5==e?`您有${t.count}个案件已经结案,请点击查看`:t.noticeMessage;var o=t.count?"noticeClass"+t.data[0].id:"noticeClass"+t.id;o=this.$notify({type:"warning",position:"bottom-right",offset:a,customClass:"noticeMsg",message:""+s,duration:3e4,dangerouslyUseHTMLString:!0,onClose:()=>{t.id?(this.closeNotice(t.id),this.delNoticeMsgData([t])):(t.data&&t.data.forEach(e=>{this.closeNotice(e.id)}),this.delNoticeMsgData(t.data))},onClick:()=>{t.id&&!t.count?(this.showNotice(t.id,t.complaintId),this.delNoticeMsgData([t])):!t.count||4!=e&&1!=e?t.count&&5==e&&(this.delNoticeMsgData(t.data),this.$router.push({path:"/complaintManage/caseList",query:{noticeData:JSON.stringify({code:[999],time:Date.now()})}})):(this.delNoticeMsgData(t.data),this.$router.push({path:"/complaintManage/myWorkbench",query:{noticeData:JSON.stringify({code:[401,301],time:Date.now()})}})),o.close()}})},delNoticeMsgData(e){if(0==e.length)return;let t=JSON.parse(JSON.stringify(this.showMsg));const a=t.filter(t=>!e.some(e=>e.id===t.id));this.showMsg=[],this.showMsg=a},closeNotice(e,t,a){this.instance.post("/complaintNotice/noticeClose",{noticeId:e}).then(e=>{let s=e.data;1==s.code&&a&&this.messageArr.splice(t,1)})},showNotice(e,t){this.instance.post("/complaintNotice/noticeView",{noticeId:e}).then(a=>{let s=a.data;1==s.code&&(t?this.openNewTab(t):this.openNewTab(e))})},openNewTab(e,t){let a=document.createElement("a");a.href=`${location.origin}/complaintManage/caseDetail?complaintId=${e}`,a.target="_blank",t&&(a.href+=t),a.click()}},mounted(){"http://jiaanantest.platform.sigreal.cn"==location.origin&&(this.isFold=!1),this.username=localStorage.getItem("username")||"匿名用户",this.nickname=localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")).nickName:"",this.getNoticeList()}},n=i,l=(a("5de4"),a("f337"),a("1805")),c=Object(l["a"])(n,s,o,!1,null,"4324c1b6",null);t["a"]=c.exports},"9ed6":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[1==e.switchLoginFlag?t("phone-code-login"):t("number-code-login")],1)},o=[],r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[t("div",{staticClass:"login_box"},[t("p",{staticClass:"login_title"},[e._v("登录")]),t("el-form",{ref:"form",staticClass:"login_form",attrs:{model:e.form},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin.apply(null,arguments)}}},[t("el-form-item",[t("el-input",{attrs:{size:"medium",placeholder:"请输入用户名"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1),t("el-form-item",[t("el-input",{attrs:{size:"medium",placeholder:"请输入密码",type:"password"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1),e.isVerification?t("el-form-item",{staticClass:"qrcode"},[t("el-input",{staticClass:"qrcode_input",attrs:{size:"medium",placeholder:"请输入验证码"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}}),t("el-button",{staticClass:"code_btn",class:{active:e.codeTime>0},on:{click:e.sendCode}},[e._v(e._s(e.isClickCode?"重新发送("+e.codeTime+")":"获取验证码"))])],1):e._e(),t("el-form-item",[t("el-button",{staticClass:"submit_btn",attrs:{size:"medium",disabled:e.isDisabled},on:{click:e.handleLogin}},[e._v("登 录")])],1)],1)],1),t("div",{staticClass:"version"},[e._v("Copyright @"+e._s((new Date).getFullYear()))])])},i=[],n=(a("f16c"),a("5f87")),l=a("a18c"),c={name:"Login",components:{},data(){return{codeTime:0,redirect:"",isVerification:!0,isDisabled:!1,identifyCode:"",identifyCodes:[1,2,3,4,5,6,7,8,9,0],passwordShow:!1,codeActive:!1,isClickCode:!1,form:{code:"",username:"",password:""},qrcodeSrc:""}},watch:{$route:{handler(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},mounted(){},methods:{refreshCode(){this.qrcodeSrc=""},sendCode(){var e=this;return this.form.username?e.form.password?void(this.codeTime<=0&&(e.codeTime=60,this.isClickCode=!0,this.instance.post("/upms/api/user/loginSms",this.form).then(t=>{if(200==t.data.code)var a=setInterval((function(){e.codeTime--,e.codeTime<=0&&(e.isClickCode=!1,e.codeActive=!0,clearInterval(a))}),1e3);else e.codeTime=0,e.codeActive=!1,e.isClickCode=!1,e.$message.error(t.data.message)}))):(e.$message.error("抱歉,请输入密码!"),!1):(e.$message.error("抱歉,请输入用户名"),!1)},handleLogin(){var e=this;return e.form.username?e.form.password?e.form.code?(this.isDisabled=!0,void this.instance.post("/upms/api/user/loginFromUbi",this.form).then(t=>{var a=t.data;this.isDisabled=!1,200==a.code?(this.userMenuTree(),localStorage.setItem("AUTH_TOKEN",a.data.accessToken),Object(n["e"])(a.data.accessToken),localStorage.setItem("username",a.data.userName),localStorage.setItem("userInfo",JSON.stringify(a.data)),this.dataCollection({eventId:101,remark:"用户登录"}),Object(l["c"])(!0),this.$route.query&&this.$route.query.redirect&&(_path=this.$route.query.redirect,setTimeout(()=>{location.reload()},10)),e.$router.push({path:_path})):(this.form.code=null,this.$message.error(a.message))}).catch(e=>{this.isDisabled=!1})):(e.$message.error("抱歉,请输入验证码!"),!1):(e.$message.error("抱歉,请输入密码!"),!1):(e.$message.error("抱歉,请输入用户名!"),!1)},userMenuTree(){this.instance.get("/upms/api/menu/getMenuTree",{params:this.form}).then(e=>{let t=e.data,a="/bigScreen/index";if(200==t.code){localStorage.setItem("userMenu",JSON.stringify(e.data.data)),Object(l["b"])(t.data);let s=t.data;a=s[0].children?s[0].path+s[0].children[0].path:s[0].path+"/index",localStorage.setItem("jumpPath",a),this.$router.push({path:a})}}).catch(e=>{console.log(e)})}}},u=c,d=(a("127d"),a("1805")),m=Object(d["a"])(u,r,i,!1,null,"3134ff38",null),p=m.exports,h=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[t("div",{staticClass:"login_box"},[t("p",{staticClass:"login_title"},[e._v("登录")]),t("el-form",{ref:"form",staticClass:"login_form",attrs:{model:e.form},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin.apply(null,arguments)}}},[t("el-form-item",[t("el-input",{attrs:{size:"medium",placeholder:"请输入用户名"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1),t("el-form-item",[t("el-input",{attrs:{size:"medium",placeholder:"请输入密码",type:"password"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1),e.isVerification?t("el-form-item",{staticClass:"qrcode clearfix"},[t("el-input",{staticClass:"qrcode_input fl",attrs:{placeholder:"请输入验证码"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}}),e.qrcodeSrc?t("div",{staticClass:"verify-box fr",on:{click:e.refreshCode}},[t("img",{attrs:{src:"data:image/jpeg;base64,"+e.qrcodeSrc.img,alt:""}})]):e._e()],1):e._e(),t("el-form-item",[t("el-button",{staticClass:"submit_btn",attrs:{size:"medium",disabled:e.isDisabled},on:{click:e.handleLogin}},[e._v("登 录")])],1)],1)],1),t("div",{staticClass:"version"},[e._v("Copyright @"+e._s((new Date).getFullYear()))])])},f=[],g={name:"Login",components:{},data(){return{codeTime:0,redirect:"",isVerification:!0,isDisabled:!1,identifyCode:"",identifyCodes:[1,2,3,4,5,6,7,8,9,0],passwordShow:!1,codeActive:!1,isClickCode:!1,form:{code:"",username:"",password:""},qrcodeSrc:""}},watch:{$route:{handler(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},mounted(){this.getCaptcha()},methods:{getCaptcha(){this.instance.get("/upms/api/captcha/generate",{}).then(e=>{var t=e.data;200===t.code&&(this.qrcodeSrc=t.data)}).catch(e=>{})},refreshCode(){this.qrcodeSrc="",this.getCaptcha()},sendCode(){var e=this;return this.form.username?e.form.password?void(this.codeTime<=0&&(e.codeTime=60,this.isClickCode=!0,this.instance.post("/upms/api/user/loginSms",this.form).then(t=>{if(200==t.data.code)var a=setInterval((function(){e.codeTime--,e.codeTime<=0&&(e.isClickCode=!1,e.codeActive=!0,clearInterval(a))}),1e3);else e.codeTime=0,e.codeActive=!1,e.isClickCode=!1,e.$message.error(t.data.message)}))):(e.$message.error("抱歉,请输入密码!"),!1):(e.$message.error("抱歉,请输入用户名"),!1)},handleLogin(){var e=this;return e.form.username?e.form.password?e.form.code?(this.isDisabled=!0,this.form.uuid=this.qrcodeSrc.uuid,void this.instance.post("/upms/api/user/login",this.form).then(t=>{var a=t.data;this.isDisabled=!1,200==a.code?(this.userMenuTree(),localStorage.setItem("AUTH_TOKEN",a.data.accessToken),Object(n["e"])(a.data.accessToken),localStorage.setItem("username",a.data.userName),localStorage.setItem("userInfo",JSON.stringify(a.data)),this.dataCollection({eventId:101,remark:"用户登录"}),Object(l["c"])(!0),this.$route.query&&this.$route.query.redirect&&(_path=this.$route.query.redirect,setTimeout(()=>{location.reload()},10)),e.$router.push({path:_path})):(this.getCaptcha(),this.form.code=null,this.$message.error(a.message))}).catch(e=>{this.isDisabled=!1})):(e.$message.error("抱歉,请输入验证码!"),!1):(e.$message.error("抱歉,请输入密码!"),!1):(e.$message.error("抱歉,请输入用户名!"),!1)},userMenuTree(){this.instance.get("/upms/api/menu/getMenuTree",{params:this.form}).then(e=>{let t=e.data,a="/bigScreen/index";if(200==t.code){localStorage.setItem("userMenu",JSON.stringify(e.data.data)),Object(l["b"])(t.data);let s=t.data;a=s[0].children?s[0].path+s[0].children[0].path:s[0].path+"/index",localStorage.setItem("jumpPath",a),this.$router.push({path:a})}}).catch(e=>{console.log(e)})}}},v=g,b=(a("595f"),Object(d["a"])(v,h,f,!1,null,"f81c8e8c",null)),w=b.exports,y={name:"Login",components:{NumberCodeLogin:w,PhoneCodeLogin:p},data(){return{switchLoginFlag:2}},mounted(){},methods:{}},C=y,k=(a("1305"),Object(d["a"])(C,s,o,!1,null,"758ad202",null));t["default"]=k.exports},a01f:function(e,t,a){"use strict";a("bef7")},a084:function(e,t,a){},a18c:function(e,t,a){"use strict";a.d(t,"b",(function(){return O})),a.d(t,"c",(function(){return M}));a("f16c"),a("45d2"),a("8160");var s=a("5923"),o=a("f191"),r=function(){var e=this,t=e._self._c;return t("div",{class:{homepage:"/bigScreen/index"==e.key,complaintPage:"/complaintManage/complaintStatistics"==e.key}},[t("my-header",{on:{handleFoldMenus:e.handleFoldMenus}}),e.showAll?t("my-menus",{attrs:{isCollapse:e.isCollapse}}):e._e(),t("div",{class:{hideSidebar:e.isCollapse,main:e.showAll}},[t("div",{ref:"iframe",staticClass:"iframe"},[t("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[e.isVisible?t("router-view",{attrs:{isCollapse:e.isCollapse,iframeScrollTop:e.iframeScrollTop}}):e._e()],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"/"!=e.$route.path&&-1!=e.$route.path.indexOf("/vue"),expression:"$route.path != '/' && $route.path.indexOf('/vue') != -1"}],attrs:{id:"systemId"}})])],1)},i=[],n=a("9839"),l=function(){var e=this,t=e._self._c;return t("div",{staticClass:"menus"},[t("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":"#262d3c","text-color":"#fff","unique-opened":!0,"collapse-transition":!0,mode:"vertical"}},[e._l(e.routes,(function(a){return[a.children&&a.children.length>1?t("el-submenu",{key:a.meta.menuId,ref:"subMenu",refInFor:!0,attrs:{index:a.meta&&a.meta.component?a.meta.component:a.path,"popper-append-to-body":""}},[a.meta?t("template",{slot:"title"},[t("i",{class:a.meta.icon}),t("span",[e._v(e._s(a.meta.title))])]):e._e(),e._l(a.children,(function(s){return[Number(s.meta.visible)?e._e():t("el-menu-item",{key:s.meta.menuId,attrs:{index:e.resolvePath(a.path,s.path)},nativeOn:{click:function(t){return e.linkProps(s,a)}}},[e._v(e._s(s.meta.title))])]}))],2):a.meta?t("el-menu-item",{key:a.meta.menuId,attrs:{index:e.resolvePath(a.path,a.path)},nativeOn:{click:function(t){return e.linkProps(a,a.path)}}},[t("i",{class:a.meta&&a.meta.icon?a.meta.icon:"",staticStyle:{color:"#fff"}}),t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(a.meta.title))])]):e._e()]}))],2)],1)},c=[],u=a("0028"),d=a.n(u),m={name:"MyMenus",props:{defaultActive:{type:String,default:"1-1"},isCollapse:{type:Boolean,default:!0},checkedMenu:{type:Object,default:function(){return{}}}},computed:{activeMenu(){const e=this.$route,{meta:t,path:a}=e;return t.activeMenu?t.activeMenu:a}},data(){return{role:1,fullscreenLoading:!1,passwordDialogVisible:!1,infoVisible:!1,isFullScreen:!1,active:"",basePath:"",tmpPath:null,routes:[]}},mounted(){this.userInfo=JSON.parse(localStorage.getItem("userInfo")),this.username=this.userInfo.username||"匿名用户",this.nickname=this.userInfo.nickname,this.routes=[],this.tmpPath=null,this.renderingMenu()},methods:{renderingMenu(){this.showMenusFlag=!1;let e=setInterval(()=>{localStorage.getItem("resetRoutes")&&(clearInterval(e),this.routes=JSON.parse(localStorage.getItem("routes")),this.$forceUpdate(),this.showMenusFlag=!0,localStorage.removeItem("resetRoutes"))},500)},handleFoldMenus(e){this.isFold=e,this.$emit("handleFoldMenus",e)},linkIndexKey(e,t){let a=t+"/"+e.path;return a=e.children?t+"/"+e.children[e.children.length-1].path:t.path+"/"+e.path,a},linkProps(e,t){e.meta&&e.meta.menuId&&e.meta.title&&this.dataCollection({eventId:600,caseNo:e.meta.menuId,extStr:e.meta.title,remark:"菜单埋点"});let a=t+"/"+e.path;a=e.children?t+"/"+e.children[e.children.length-1].path:t.path+"/"+e.path,a!=this.tmpPath&&(this.$router.push({path:a,query:{t:+new Date}}),this.tmpPath=a)},resolvePath(e,t){return d.a.resolve(e,t)}}},p=m,h=(a("06f5"),a("1805")),f=Object(h["a"])(p,l,c,!1,null,"7c5bab42",null),g=f.exports,v={name:"Layout",components:{MyHeader:n["a"],MyMenus:g},computed:{key(){return this.$route.path}},data(){return{isCollapse:!0,isVisible:!0,showAll:!0,iframeScrollTop:0}},watch:{$route(e,t){e.name==t.name&&(this.isVisible=!1,setTimeout(()=>{this.isVisible=!0},200))}},mounted(){"http://jiaanantest.platform.sigreal.cn"==location.origin&&(this.isCollapse=!1),this.showAll="E7IpJc*6(=}<"!=localStorage.getItem("AUTH_TOKEN");const e=this.$refs.iframe;e.addEventListener("scroll",this.handleScroll)},methods:{handleFoldMenus(e){this.isCollapse=e},handleScroll(e){this.iframeScrollTop=e.target.scrollTop}},beforeDestroy(){const e=this.$refs.iframe;e.removeEventListener("scroll",this.handleScroll)}},b=v,w=(a("a01f"),Object(h["a"])(b,r,i,!1,null,"68843928",null)),y=w.exports,C=(a("4360"),a("9ed6")),k=a("5f87");s["default"].use(o["a"]);let x=[{path:"/vue/*",component:y},{path:"/",name:"Login",showHidden:!0,meta:{title:"宏瓴科技",showHidden:!0,menuId:1},component:C["default"]}];function S(e){x=[{path:"/vue/*",component:y},{path:"/",name:"Login",showHidden:!0,component:()=>C["default"]}];let t=JSON.parse(localStorage.getItem("userMenu"))||[];for(let s=0;s0)for(let t=0;tPromise.all([a.e("chunk-1ae86eb6"),a.e("chunk-f4bdb8a8")]).then(function(){var t=[a("79d7")("./views"+s.component+"/"+s.path+".vue")];e.apply(null,t)}.bind(this)).catch(a.oe)),o.children.push(r)}else r={path:"index",name:e.menuName,meta:{title:e.menuName,menuId:e.menuId,component:e.component}},r.component=t=>Promise.all([a.e("chunk-1ae86eb6"),a.e("chunk-2d0e6864")]).then(function(){var s=[a("98b1")("./views"+e.path+"/index")];t.apply(null,s)}.bind(this)).catch(a.oe),o.children.push(r);x.push(o)}localStorage.setItem("routes",JSON.stringify(x)),localStorage.setItem("resetRoutes","1"),x.forEach(e=>{N.addRoute(e)})}function I(e){let t=e.split("/"),a=JSON.parse(localStorage.getItem("userMenu"))||[],s=!0;if(a&&a.length>0)for(var o=0;o{if(setTimeout(()=>{let e=document.getElementById("app").querySelectorAll("*"),t=T(0);0==e.length&&t&&a({replace:!0,path:t})},1e3),I(e.path)||_||(_=!0,a({replace:!0,path:T(I(e.path))})),e.meta.title&&(document.title=e.meta.title),-1!=e.fullPath.indexOf("redirect")&&401==localStorage.getItem("tokenError")&&a({replace:!0,name:"首页",path:"/"}),"/vue/"==e.path&&a({replace:!0,name:"首页",path:"/"}),Object(k["c"])()){let t=localStorage.getItem("jumpPath");if(!t)return localStorage.clear(),void a();if("/"==e.path)return void a({replace:!0,path:localStorage.getItem("jumpPath")});a()}else switch(e.path){case"/":a();break;case"/networkAnalyse/index":a();break;default:a({replace:!0,name:"Login"});break}});const A=N.push;o["a"].prototype.push=function(e,t,a){t&&a?A.call(this,e,t,a):A.call(this,e,()=>{},()=>{})};t["a"]=N;function O(e){localStorage.removeItem("headerMenus"),localStorage.removeItem("routes"),e&&S(e)}function M(e){e&&rsetRoute()}},a193:function(e,t,a){},ab80:function(e,t,a){},b010:function(e,t,a){"use strict";a("5cf4")},bef7:function(e,t,a){},c40b:function(e,t,a){},cfe5:function(e,t,a){e.exports=a.p+"img/logo.b68e6e84.png"},df9a:function(e,t,a){"use strict";a("ab80")},f176:function(e,t,a){},f337:function(e,t,a){"use strict";a("a193")}}); //# sourceMappingURL=app.1a6de5854cd1d99ba42c.js.map