(function(e){function t(t){for(var o,n,r=t[0],l=t[1],c=t[2],u=0,d=[];u0?this.isOverflow=this.hasTextOverflowEllipsisAndOverflow(this.$refs.showTxt):this.findCurrentElAttrbute())},hasTextOverflowEllipsisAndOverflow(e){const t=window.getComputedStyle(e);return"ellipsis"===t.textOverflow&&"visible"!==t.overflow&&"nowrap"===t.whiteSpace&&(e.scrollWidth>e.clientWidth||e.offsetWidth>e.clientWidth)},findCurrentElAttrbute(){let e=this.$refs.showTxt;const t=e.textContent;e.setAttribute("overflowSign",t);let s=e.parentNode,o=null;while(s){const e=window.getComputedStyle(s);if("none"===e.display){o=s;break}s=s.parentNode}if(o){const e=o.cloneNode(!0);e.setAttribute("overflowSign",t),e.style.display="block",e.style.height="0px",e.style.width=o.parentElement.clientWidth+"px",e.style.overflow="hidden",document.body.appendChild(e);const s=e.getElementsByClassName("hideTxt");for(let o=0;oe.clientWidth||e.offsetWidth>e.clientWidth?this.isOverflow=!0:this.isOverflow=!1)}e.parentNode.removeChild(e)}}},watch:{txt:{handler(e){setTimeout(()=>{e&&this.updateIsOverflow()},300)},immediate:!0}}},i=a,r=(s("19a3"),s("1805")),l=Object(r["a"])(i,o,n,!1,null,"62fb5897",null);t["a"]=l.exports},4360:function(e,t,s){"use strict";var o=s("5923"),n=s("f0a4");o["default"].use(n["a"]),t["a"]=new n["a"].Store({state:{version:"manager",userMenu:!1},getters:{baseTitle(e){e.version;return"京东物流TPA"},baseURL(e){let t="//"+location.hostname+"/manager";return"localhost"==location.hostname&&(t="//cargo-tpa.test.sigreal.cn/manager"),t}},mutations:{},actions:{},modules:{}})},5143:function(e,t,s){},"56d7":function(e,t,s){"use strict";s.r(t);s("45d2"),s("8160");var o=s("5923"),n=s("2e36"),a=s.n(n),i=(s("5ba9"),function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("keep-alive",[t("router-view")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"/"!=e.$route.path&&0,expression:"$route.path != '/' && 0"}],attrs:{id:"sub"}})],1)}),r=[],l=(s("f16c"),s("a18c")),c={data(){return{subApplication:!0}},mounted(){localStorage.getItem("AUTH_TOKEN")&&this.userMenuTree()},methods:{userMenuTree(){this.instance.get("/upms/api/menu/getMenuTree",this.form).then(e=>{let t=e.data;200==t.code?(localStorage.setItem("userMenu",JSON.stringify(t.data)),Object(l["b"])(t.data)):"tpa"!=localStorage.getItem("X-From-Business-Line")&&(localStorage.clear(),this.$router.push({path:"/"}))}).catch(e=>{console.log(e)})}},watch:{$route(e){if(localStorage.removeItem("queryFrom"),localStorage.removeItem("editConfirmAmount"),localStorage.getItem("userInfo")&&"/"!=e.path){let e=JSON.parse(localStorage.getItem("userInfo"));this.$$warterMark.set(this.$$getDate(),e.nickName)}else this.$$warterMark.remove()}}},u=c,d=(s("6cb7a"),s("1805")),h=Object(d["a"])(u,i,r,!1,null,null,null),p=h.exports,m=(s("fe51"),s("4360")),f=s("eb06"),g=s.n(f),v=s("3af2");const w={inserted:function(e){let t=e,s=t.parentElement;t.onmousedown=function(e){let o=e.clientX-t.offsetLeft,n=e.clientY-t.offsetTop;document.onmousemove=function(e){let a=e.clientX-o,i=e.clientY-n;a=Math.max(a,0),i=Math.max(i,0),a=Math.min(a,s.offsetWidth-t.offsetWidth),i=Math.min(i,s.offsetHeight-t.offsetHeight),t.style.left=a+"px",t.style.top=i+"px"},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}}};var y=s("396e"),b=(s("f176"),s("5143"),s("5f87"));s("792b");function x(e,t){if(0===arguments.length||!e)return null;const s=t||"{y}-{m}-{d} {h}:{i}:{s}";let o;"object"===typeof e?o=e:("string"===typeof e&&/^[0-9]+$/.test(e)?e=parseInt(e):"string"===typeof e&&(e=e.replace(new RegExp(/-/gm),"/").replace("T"," ").replace(new RegExp(/\.[\d]{3}/gm),"")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),o=new Date(e));const n={y:o.getFullYear(),m:o.getMonth()+1,d:o.getDate(),h:o.getHours(),i:o.getMinutes(),s:o.getSeconds(),a:o.getDay()},a=s.replace(/{(y|m|d|h|i|s|a)+}/g,(e,t)=>{let s=n[t];return"a"===t?["日","一","二","三","四","五","六"][s]:(e.length>0&&s<10&&(s="0"+s),s||0)});return a}function C(e){this.$refs[e]&&this.$refs[e].resetFields()}function k(e,t,s,o){let n={id:t||"id",parentId:s||"parentId",childrenList:o||"children"};var a={},i={},r=[];for(let c of e){let e=c[n.parentId];null==a[e]&&(a[e]=[]),i[c[n.id]]=c,a[e].push(c)}for(let c of e){let e=c[n.parentId];null==i[e]&&r.push(c)}for(let c of r)l(c);function l(e){if(null!==a[e[n.id]]&&(e[n.childrenList]=a[e[n.id]]),e[n.childrenList])for(let t of e[n.childrenList])l(t)}return r}function S(e){let t=[],s=this,o=e.symbol,n=e.children;return n.forEach(e=>{e.group?(t.push("("),t.push(s.queryToSql(e)),t.push(")")):e.children&&""!==e.children.operator?(t.push("("),t.push(e.field),t.push(e.symbol),e.constant?t.push(e.constant):t.push(e.term),t.push(")"),t.push(e.children.symbol),e.children.constant?t.push(e.children.constant):t.push(e.children.term)):(t.push(e.field),t.push(e.symbol),e.constant?t.push(e.constant):t.push(e.term)),t.push(o)}),t.splice(t.length-1,t.length),t.join(" ")}function I(e){let t=[],s=this,o=e.typeName,n=e.children;return n.forEach(e=>{e.group?(t.push("("),t.push(s.queryToSqlShow(e)),t.push(")")):e.children&&""!==e.children.operator?(t.push("("),t.push(e.fieldName),t.push(e.operatorDesc),e.constant?t.push(e.constant):t.push(e.termName),t.push(")"),t.push(e.children.operatorDesc),e.children.constant?t.push(e.children.constant):t.push(e.children.termName)):(t.push(e.fieldName),t.push(e.operatorDesc),e.constant?t.push(e.constant):t.push(e.termName)),t.push(o)}),t.splice(t.length-1,t.length),t.join(" ")}s("ada4");var T=s("0880");let _;var N={msg(e){n["Message"].info(e)},msgError(e){n["Message"].error(e)},msgSuccess(e){n["Message"].success(e)},msgWarning(e){n["Message"].warning(e)},alert(e){n["MessageBox"].alert(e,"系统提示")},alertError(e){n["MessageBox"].alert(e,"系统提示",{type:"error"})},alertSuccess(e){n["MessageBox"].alert(e,"系统提示",{type:"success"})},alertWarning(e){n["MessageBox"].alert(e,"系统提示",{type:"warning"})},notify(e){n["Notification"].info(e)},notifyError(e){n["Notification"].error(e)},notifySuccess(e){n["Notification"].success(e)},notifyWarning(e){n["Notification"].warning(e)},confirm(e){return n["MessageBox"].confirm(e,"系统提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},prompt(e){return n["MessageBox"].prompt(e,"系统提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},loading(e){_=n["Loading"].service({lock:!0,text:e,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})},closeLoading(){_.close()}},A={install(e){e.prototype.$modal=N}},M=s("3892");o["default"].directive("drag",w),o["default"].component("overflow-txt",y["a"]),o["default"].directive("drag",w),o["default"].component("VueEcharts",T["a"]);m["a"].state.version;Object.keys(b["a"]).forEach(e=>{o["default"].prototype["$$"+e]=b["a"][e]}),Object(M["b"])([{name:"vue app",entry:"//localhost:8082",container:"#sub",activeRule:"/vue"}]),Object(M["c"])({prefetch:!0});var E=m["a"].getters.baseURL;o["default"].prototype.resetForm=C,o["default"].prototype.parseTime=x,o["default"].prototype.handleTree=k,o["default"].prototype.queryToSqlShow=I,o["default"].prototype.queryToSql=S,o["default"].prototype.role="",o["default"].prototype.userInfo="",o["default"].prototype.$axios=g.a,o["default"].prototype.instance=o["default"].prototype.$axios.create({baseURL:E}),o["default"].prototype.instance.interceptors.request.use(e=>(e.headers.Authorization="Bearer "+b["a"].getToken(),e.headers["X-From-Business-Line"]="tpa",e.headers["X-From-Tenant"]="9999",e),e=>Promise.reject(e)),o["default"].prototype.instance.interceptors.response.use(e=>{let t=localStorage.getItem("AUTH_TOKEN");if(401==e.data.code&&t){let e=localStorage.getItem("vueVersion");localStorage.clear(),localStorage.setItem("vueVersion",e),window.alert("抱歉,当前账号登录信息已过期,请重新登录"),b["a"].removeDialog(),l["a"].replace({path:"/"})}return e},e=>{let t=localStorage.getItem("AUTH_TOKEN");if(401==e.response.status&&t){let e=localStorage.getItem("vueVersion");localStorage.clear(),localStorage.setItem("vueVersion",e),window.alert("抱歉,当前账号登录信息已过期,请重新登录"),b["a"].removeDialog(),l["a"].replace({path:"/"})}}),o["default"].config.productionTip=!1,l["a"].beforeEach((e,t,s)=>{let o=b["a"].getToken();o||"/"==e.path?s():s({replace:!0,name:"Login"})}),o["default"].use(a.a,{size:"small",zIndex:3e3}),o["default"].use(A),o["default"].use(v["a"],g.a),new o["default"]({router:l["a"],store:m["a"],render:e=>e(p)}).$mount("#app"),o["default"].prototype.getQueryString=function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),s=window.location.href;s=decodeURI(s);var o=s.substr(s.indexOf("?")+1).match(t);return null!=o?unescape(o[2]):null},o["default"].prototype.getCategoryTree=function(){this.instance.get("/tpa/api/goods/category/getCategoryTree",{}).then(e=>{200==e.data.code&&(e.data.data.length>0&&e.data.data.forEach((e,t)=>{e.value=e.id,e.label=e.name,e.children=e.goodsCategoryDtoList,e.children.length>0&&e.children.forEach((e,t)=>{e.value=e.id,e.label=e.name})}),this.categoryTreeOption=e.data.data)})},o["default"].prototype.getPublicEnum=async function(e,t,s){await this.instance.get("/tpa/api/enum/"+e+"?step="+s,{}).then(e=>{200==e.data.code&&(this[t]=e.data.data)})},o["default"].prototype.dateFormatting=function(e,t){var s={"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 o in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),s)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?s[o]:("00"+s[o]).substr((""+s[o]).length)));return t},Array.prototype.indexOf=function(e){for(var t=0;t-1&&this.splice(t,1)},o["default"].prototype.recordEventTracking=function(e,t,s){let o={caseNo:e,caseStep:t,eventName:s};this.instance.post("/tpa/api/event/tracking/record",o).then(e=>{})}},"5f87":function(e,t,s){"use strict";var o=s("5923"),n=s("a18c"),a=s("eb06"),i=s.n(a);const r="ALL_TOKEN";new o["default"];var l=function(){return localStorage.getItem("AUTH_TOKEN")},c=function(){setInterval((function(){"/"!=n["a"].history.current.path&&d(r,72e5)}),36e5)},u=function(e){var t=(new Date).getTime();localStorage.setItem(r,JSON.stringify({data:e,time:t}))},d=function(e,t){var s=localStorage.getItem(e),n=JSON.parse(s);if((new Date).getTime()-n.time>t){var a=n?n.data:null,i={refreshToken:a?a.refreshToken:null,accessToken:a?a.accessToken:null};o["default"].prototype.instance({method:"post",url:"/login/refreshToken",data:i,headers:{}}).then(e=>{var t=e&&e.data?e.data:null;t&&200==t.code&&(u(t.data),localStorage.setItem("AUTH_TOKEN",t.data.accessToken))}).catch((function(e){console.log(e)}))}};let h=function(e){let t=e,s=e.indexOf(":"),o={message:t,type:"error"};if(s>=0){let n=e.slice(s+1,e.length),a=n.split(",");t=a.join("
"),o.message=t,o.dangerouslyUseHTMLString=!0}return o};function p(){var e=new Date,t=e.getFullYear(),s=e.getMonth()+1,o=e.getDate();"日一二三四五六".charAt((new Date).getDay()),e.getHours(),e.getMinutes(),e.getSeconds();return t+"-"+m(s)+"-"+m(o)}function m(e){return e<10?"0"+e:e}let f={},g=(e,t)=>{let s="1.23452384164.123412415";document.getElementById(s)&&(document.getElementById(s)&&document.body.removeChild(document.getElementById(s)),f.set(e,t)),null!==document.getElementById(s)&&document.body.removeChild(document.getElementById(s));let o=document.createElement("canvas");o.width=400,o.height=330;let n=o.getContext("2d");n.rotate(-15*Math.PI/180),n.font="18px Vedana",n.fillStyle="#262D3C",n.textAlign="left",n.textBaseline="Middle",n.globalAlpha=.05,n.fillText(e,o.width/3,o.height/2),n.fillText(t,o.width/3,o.height/2.5);let a=document.createElement("div");return a.id=s,f.id=s,a.style.pointerEvents="none",a.style.top="28px",a.style.left="0px",a.style.position="fixed",a.style.zIndex="100000",a.style.width=document.documentElement.clientWidth+"px",a.style.height=document.documentElement.clientHeight+"px",a.style.background="url("+o.toDataURL("image/png")+") left top repeat",document.body.appendChild(a),s};f.set=(e,t)=>{let s=g(e,t),o=setInterval(()=>{null===document.getElementById(s)&&localStorage.getItem("userInfo")&&(s=g(e,t),clearInterval(o))},500);window.onresize=()=>{g(e,t)}},f.remove=()=>{document.getElementById(f.id)&&f.id&&document.body.removeChild(document.getElementById(f.id))};let v=()=>{let e=`//${window.location.host}/version.json?t=${(new Date).getTime()}`;i.a.get(e).then(e=>{if(200===e.status){let t=e.data.version||"1.0.0",s=localStorage.getItem("vueVersion");if(localStorage.setItem("vueVersion",t),s&&s!=t)return console.log("检测到版本更新,需要进行操作"),localStorage.setItem("version","true"),!0}})};function w(e){let t,s;return-1!=e.indexOf("?")?(t=e.split("?")[0],t=t.split("."),s=t[t.length-1]):(t=e.split("."),s=t[t.length-1]),s?s.toLowerCase():null}function y(e){let t=["tiff","jfif","bmp","webp","gif","svg","jpg","svgz","png","jpeg","ico","xbm","dib","pjp","apng","tif","pjpeg","avif"];return-1!=t.indexOf(e)}function b(e,t){let s=document.createElement("textarea");s.value=e,document.body.appendChild(s),s.select();try{let e=document.execCommand("copy");e?this.$message.success(t+"复制成功!"):console.log("无法复制!")}catch(o){console.error("无法复制!",o)}finally{document.body.removeChild(s)}}function x(){let e=document.getElementsByClassName("v-modal")[0];e&&e.remove();let t=document.getElementsByClassName("el-dialog__wrapper");for(let s=0;s1e3&&e.remove()}}function C(e,t=0){const s="string"===typeof e?this.$refs[e]:e;if(!s)return console.warn("Ref 不存在:",e),null;if(Array.isArray(s)){const o=s[t];return o&&o.$el?o.$el:o instanceof HTMLElement?o:(console.warn("无法从 ref 数组中获取有效元素:",e,t),null)}return s.$el?s.$el:s instanceof HTMLElement?s:(console.warn("未知类型的 ref:",e),null)}let k={getToken:l,intervalRefreshToken:c,setTimeToken:u,getTimeToken:d,messageLineFeed:h,warterMark:f,getDate:p,isNewVersion:v,getFileSuffix:w,isFileSuffixImg:y,copyText:b,removeDialog:x,getRefElement:C};t["a"]=k},"66fa":function(e,t,s){},"6cb7a":function(e,t,s){"use strict";s("c847")},"849e":function(e,t,s){e.exports=s.p+"img/left_logo.166f2d7c.png"},"8a5d":function(e,t){e.exports="data:image/png;base64,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"},a18c:function(e,t,s){"use strict";s.d(t,"b",(function(){return P}));s("f16c");var o=s("5923"),n=s("f191"),a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"public_wrap",class:{homepage:"/bigScreen/index"==e.key}},[t("my-header",{directives:[{name:"heightResize",rawName:"v-heightResize",value:e.heightResize,expression:"heightResize"},{name:"show",rawName:"v-show",value:e.isShow,expression:"isShow"}]}),t("my-menus",{directives:[{name:"resize",rawName:"v-resize",value:e.MenuResize,expression:"MenuResize"},{name:"show",rawName:"v-show",value:e.isShow,expression:"isShow"}],attrs:{isCollapse:e.isCollapse,checkedMenu:e.checkedMenu},on:{handleFoldMenus:e.handleFoldMenus}}),t("div",{class:{hideSidebar:e.isCollapse,content:!0,separate:e.isShow,largeContent:!e.isShow},style:e.isShow?{height:" + contentHeight"}:""},[e.isVisible?t("router-view",{attrs:{isCollapse:e.isCollapse}}):e._e(),e._e()],1)],1)},i=[],r=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.clickPageLogo}},[e._m(0)]),e._e()]),t("div",{staticClass:"header_right"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.messageArr.length>0,expression:"messageArr.length > 0"}],staticClass:"header_message"},[t("div",{staticClass:"msg_txt"},[e._v("待处理报案 "+e._s(e.messageArr.length)+" 件")]),t("div",{ref:"messageHot",class:(e.messageArr.length,"message_right message_hot")},[t("div",{staticClass:"message_popup"},[t("div",{staticClass:"popup_title clearfix",on:{click:e.toggleDiv}},[t("img",{staticClass:"msg_picture",attrs:{src:s("8a5d")}})]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isCollapse,expression:"!isCollapse"}],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(s,o){return[t("li",{key:o,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(s.noticeMessage))])])],1),e._e(),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 col_caseno",attrs:{span:16}},[t("span",{on:{click:function(t){return e.copyCaseNo(s.caseNo)}}},[e._v(e._s(s.caseNo))])])],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(s.reportTime))])],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(s.accTime))])],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(s.accAddress))])],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(s.reporterMobile))])],1),t("el-row",{staticClass:"lists-row"},[t("el-col",{staticClass:"lists-col",attrs:{span:2}},[t("div",{staticClass:"btn_show",on:{click:function(t){return e.otherClick(s)}}},[e._v("查看")])]),t("el-col",{staticClass:"lists-col",attrs:{span:4}},[e._e()])],1)],1)]}))],2)])])]),t("div",{staticClass:"userinfo"},[t("div",{staticClass:"nickname"},[e._v(e._s(e.userInfo.nickName))]),t("el-dropdown",{attrs:{trigger:"click"}},[t("img",{staticClass:"user_picture",attrs:{src:s("2a65")}}),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e._e(),t("el-dropdown-item",{staticClass:"clearfix",nativeOn:{click:function(t){e.centerDialogVisible=!0}}},[e._v("修改密码")]),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)},l=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"logo"},[t("img",{attrs:{src:s("849e")}})])}],c={name:"MyHeader",props:{msg:String,checkedMenu:Object},data(){return{form:{oldPassword:"",newPassword:"",newPassword2:""},workChange:!0,isFold:!1,centerDialogVisible:!1,username:"",nickname:"",menus:[],clickNum:22,messageArr:[],userInfo:{},isCollapse:!0,noticeFlag:!1}},methods:{otherClick(e,t){localStorage.setItem("detailShow","show"),this.noDeal(e,t),this.toggleDiv();const s=this.$router.resolve({path:"/workbench/myTask",query:{caseNo:e.caseNo,menuTypeNum:e.caseStep,type:"handle"}});window.open(s.href,"_self")},handelCase(e,t){localStorage.removeItem("detailShow");const s=this.$router.resolve({path:"/workbench/myTask",query:{caseNo:e.caseNo,menuTypeNum:e.caseStep,detailShow:"null",type:"handle"}});window.open(s.href,"_self")},noDeal(e,t){this.instance.post("/tpa/api/case/notice/block",e).then(s=>{let o=s.data;200==o.code&&o.data?this.messageArr.splice(t,1):console.log("屏蔽通知失败:"+e.caseNo)})},clearMsg(){this.instance.post("/tpa/api/case/notice/clear",{}).then(e=>{let t=e.data;200==t.code?this.messageArr=[]:this.$message.error(e.message)})},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="505px",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(s){console.error("无法复制!",s)}finally{document.body.removeChild(t)}},getNoticeList(){this.noticeFlag=!0,this.tmpMessageNum=this.messageArr.length,clearTimeout(this.noticeListTime),this.instance.post("/tpa/api/case/notice/list",{}).then(e=>{let t=e.data;200==t.code&&(this.messageArr=t.data,this.tmpMessageNum>0&&this.tmpMessageNum!=t.data.length&&(this.toggleDiv(),setTimeout(()=>{this.toggleDiv()},3e3)),this.noticeListTime=setTimeout(()=>{this.getNoticeList()},6e4))})},switchChange(e){console.log(e)},handleEditPassword(){if(this.form.newPassword!=this.form.newPassword2)return this.$message.error("抱歉,您两次输入的新密码不一致"),!1;var e={oldPassword:this.form.oldPassword,newPassword:this.form.newPassword};let t=this;this.instance.post("/upms/api/user/changePassword",e).then(e=>{var s=e.data;200==s.code?(this.$message.success(s.message),setTimeout(()=>{t.centerDialogVisible=!1,t.$confirm("密码修改成功,请重新登录。","提示",{confirmButtonText:"确定",showCancelButton:!1,type:"warning"}).then(()=>{let e=localStorage.getItem("vueVersion");localStorage.clear(),localStorage.setItem("vueVersion",e),t.$router.replace({path:"/"})})},3e3)):this.$message.error(s.message)})},handleLogOut(){this.$confirm("此操作将退出当前登录, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.instance.post("/upms/api/user/logout").then(e=>{var t=e.data;if(200==t.code){let e=localStorage.getItem("vueVersion");localStorage.clear(),localStorage.setItem("vueVersion",e),sessionStorage.clear(),this.$router.push({path:"/"}),this.$message({type:"success",message:"退出成功!"})}})}).catch(()=>{this.$message({type:"info",message:"已取消"})})},linkHomePage(){},handleFoldMenus(e){this.isFold=e,this.$emit("handleFoldMenus",e)},clickPageLogo(){this.clickNum++,this.clickNum>=13?(this.userMenuTree(),document.onkeydown=null,this.clickNum=this.clickNum>13?0:this.clickNum,localStorage.setItem("keyCode",123)):this.clickNum<13&&(document.onkeydown=function(){var e=window.event||arguments[0];return 123!=e.keyCode&&((!e.ctrlKey||!e.shiftKey||73!=e.keyCode)&&((!e.shiftKey||121!=e.keyCode)&&void 0))},localStorage.removeItem("keyCode")),10==this.clickNum&&console.log("等于10")},userMenuTree(){this.instance.get("/upms/api/menu/getMenuTree",this.form).then(e=>{localStorage.setItem("userMenu",JSON.stringify(e.data.data))}).catch(e=>{console.log(e)})}},activated(){this.userInfo=JSON.parse(localStorage.getItem("userInfo")),this.username=this.userInfo.username||"匿名用户",this.nickname=this.userInfo.nickname},updated(){let e=localStorage.getItem("login");if(e)return localStorage.removeItem("login"),void this.getNoticeList();!this.noticeFlag&&this.getNoticeList()},mounted(){localStorage.getItem("keyCode")?document.onkeydown=null:document.onkeydown=function(){var e=window.event||arguments[0];return 123!=e.keyCode&&((!e.ctrlKey||!e.shiftKey||73!=e.keyCode)&&((!e.shiftKey||121!=e.keyCode)&&void 0))}}},u=c,d=(s("2fdc"),s("1805")),h=Object(d["a"])(u,r,l,!1,null,null,null),p=h.exports,m=function(){var e=this,t=e._self._c;return t("div",{class:e.switchClass?"menus":"menus retract_mensu"},[e.showMenusFlag?t("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isFold,"background-color":"#00203D","text-color":"#fff","unique-opened":!0,"collapse-transition":!0,mode:"vertical"}},[t("div",{staticClass:"header_left"},[t("div",{staticClass:"fold_icon",on:{click:function(t){return e.handleFoldMenus()}}},[t("i",{directives:[{name:"show",rawName:"v-show",value:!e.isFold,expression:"!isFold"}],staticClass:"el-icon-s-fold"}),t("i",{directives:[{name:"show",rawName:"v-show",value:e.isFold,expression:"isFold"}],staticClass:"el-icon-s-unfold"}),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isFold,expression:"!isFold"}]},[e._v("展开/收起")])])]),e._l(e.routes,(function(s){return[s.children&&s.children.length>1?t("el-submenu",{key:s.meta.menuId,ref:"subMenu",refInFor:!0,attrs:{index:s.meta&&s.meta.component?s.meta.component:s.path,"popper-append-to-body":""}},[s.meta?t("template",{slot:"title"},[t("i",{class:s.meta.icon}),t("span",[e._v(e._s(s.meta.title))])]):e._e(),e._l(s.children,(function(o){return["案件详情"!=o.meta.title?t("el-menu-item",{key:o.meta.menuId,attrs:{index:e.resolvePath(s.path,o.path)},nativeOn:{click:function(t){return e.linkProps(o,s)}}},[e._v(e._s(o.meta.title))]):e._e()]}))],2):s.meta&&s.meta.menuId?t("el-menu-item",{key:s.meta.menuId,attrs:{index:e.linkIndexKey(s,s.path)},nativeOn:{click:function(t){return e.linkProps(s,s.path)}}},[t("i",{class:s.meta&&s.meta.icon?s.meta.icon:"",staticStyle:{color:"#fff"}}),t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(s.meta.title))])]):e._e()]}))],2):e._e(),t("el-dialog",{attrs:{title:"修改密码",width:"600px",visible:e.centerDialogVisible,"append-to-body":"",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)},f=[],g=s("0028"),v=s.n(g),w={name:"MyMenus",props:{menuData:Object,defaultActive:{type:String,default:"1-1"},isCollapse:{type:Boolean,default:!0}},computed:{activeMenu(){const e=this.$route,{meta:t,path:s}=e;return t.activeMenu?t.activeMenu:s}},data(){return{form:{oldPassword:"",newPassword:"",newPassword2:""},centerDialogVisible:!1,role:1,fullscreenLoading:!1,passwordDialogVisible:!1,infoVisible:!1,isFullScreen:!1,active:"",basePath:"",routes:[],tmpPath:null,showMenusFlag:!1,isFold:!1,userInfo:{},switchClass:!0}},activated(){this.userInfo=JSON.parse(localStorage.getItem("userInfo")),this.username=this.userInfo.username||"匿名用户",this.nickname=this.userInfo.nickname,this.routes=[],this.tmpPath=null,this.renderingMenu()},beforeUpdate(){this.tmpPath=null},methods:{handleEditPassword(){if(this.form.newPassword!=this.form.newPassword2)return this.$message.error("抱歉,您两次输入的新密码不一致"),!1;var e={oldPassword:this.form.oldPassword,newPassword:this.form.newPassword};let t=this;this.instance.post("/upms/api/user/changePassword",e).then(e=>{var s=e.data;200==s.code?(this.$message.success(s.message),setTimeout(()=>{t.centerDialogVisible=!1,t.$confirm("密码修改成功,请重新登录。","提示",{confirmButtonText:"确定",showCancelButton:!1,type:"warning"}).then(()=>{let e=localStorage.getItem("vueVersion");localStorage.clear(),localStorage.setItem("vueVersion",e),t.$router.replace({path:"/"})})},3e3)):this.$message.error(s.message)})},handleLogOut(){this.$confirm("此操作将退出当前登录, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.instance.post("/upms/api/user/logout").then(e=>{var t=e.data;if(200==t.code){let e=localStorage.getItem("vueVersion");localStorage.clear(),localStorage.setItem("vueVersion",e),sessionStorage.clear(),this.$router.push({path:"/"}),this.$message({type:"success",message:"退出成功!"})}})}).catch(()=>{this.$message({type:"info",message:"已取消"})})},handleFoldMenus(){let e=this;this.isFold=!this.isFold,this.isFold?setTimeout(()=>{e.switchClass=!1},330):setTimeout(()=>{e.switchClass=!0},300),this.$emit("handleFoldMenus",this.isFold)},linkIndexKey(e,t){let s=t+"/"+e.path;return s=e.children?t+"/"+e.children[e.children.length-1].path:t.path+"/"+e.path,s},linkProps(e,t){e.meta&&e.meta.menuId&&e.meta.title&&this.recordEventTracking(this.userInfo.nickName,null,e.meta.title);let s=t+"/"+e.path;s=e.children?t+"/"+e.children[e.children.length-1].path:t.path+"/"+e.path,s!=this.tmpPath&&(localStorage.removeItem("queryFromCondition"),localStorage.removeItem("queryFromPage"),this.$router.push({path:s,query:{t:+new Date}}),this.tmpPath=s)},resolvePath(e,t){return v.a.resolve(e,t)},renderingMenu(){let e=setInterval(()=>{this.showMenusFlag=!1,localStorage.getItem("routes")&&(clearInterval(e),this.routes=JSON.parse(localStorage.getItem("routes")),this.showMenusFlag=!0)},50)}},updated(){"/"==this.$route.path&&(this.tmpPath="/")}},y=w,b=(s("c351"),Object(d["a"])(y,m,f,!1,null,"7dad5ad0",null)),x=b.exports,C={name:"Layout",components:{MyHeader:p,MyMenus:x},computed:{key(){return this.$route.path}},data(){return{isCollapse:!1,isVisible:!0,isShow:!0,getDates:null,dateTime:null,containerWidth:0,containerLeft:0,contentHeight:"90%",checkedMenu:{name:"设备管理",id:"30"}}},beforeUpdate(){let e=this;this.calcContentHeight(),window.addEventListener("resize",(function(){e.calcContentHeight(),e.containerWidth=document.body.clientWidth-e.containerLeft;const t=document.getElementById("sub");t.style.width=e.containerWidth+"px"}))},activated(){this.calcContentHeight()},mounted(){let e=this;this.calcContentHeight(),window.addEventListener("resize",(function(){e.calcContentHeight(),e.containerWidth=document.body.clientWidth-e.containerLeft;const t=document.getElementById("sub");t.style.width=e.containerWidth+"px"})),this.isShow="/olap/largeScreen"!=this.$route.path,localStorage.removeItem("tmpCaseStep")},updated(){this.isShow="/olap/largeScreen"!=this.$route.path},methods:{handleFoldMenus(e){this.isCollapse=e},calcContentHeight(){let e=60,t=2;-1!=this.$route.path.indexOf("/olap")&&(t=10),-1!=this.$route.path.indexOf("/olap/dailyAnalysis")&&(t=8),-1!=this.$route.path.indexOf("/system")&&(t=4),this.contentHeight=window.innerHeight-e-t+"px",this.contentHeight=this.contentHeight<300?300:this.contentHeight},getData(){let e=Date.now();this.dateTime=e,this.getDates=setTimeout(this.getData,3e3)},reload(){this.isVisible=!1,this.$nextTick((function(){this.isVisible=!0})),console.log("调用更新"),localStorage.removeItem("version")},MenuResize(e){const t=document.getElementById("sub");let s=e.width.indexOf("p"),o=e.width.slice(0,s);this.containerLeft=Number(o),t.style.marginLeft=Number(o)/2+"px",t.style.width=document.body.clientWidth-Number(o)+"px"},heightResize(e){const t=document.getElementById("sub");let s=e.height.indexOf("p"),o=e.height.slice(0,s);t.style.marginTop=Number(o)/2+"px",t.style.height=document.body.clientHeight-Number(o)+"px"},handleFoldMenus(e){this.isCollapse=e}},watch:{$route(e,t){e.name==t.name&&(this.isVisible=!1,setTimeout(()=>{this.isVisible=!0},200))},dateTime(e){(this.$$isNewVersion()||"true"==localStorage.getItem("version"))&&(console.log("watch:"+this.$$isNewVersion()),this.reload())}},directives:{resize:{bind(e,t){let s="";function o(){const o=document.defaultView.getComputedStyle(e);s!==o.width&&(t.value({width:o.width,height:o.height,targetId:e.id}),s=o.width)}e.__vueSetInterval__=setInterval(o,300)},unbind(e){clearInterval(e.__vueSetInterval__)}},heightResize:{bind(e,t){let s="";function o(){const o=document.defaultView.getComputedStyle(e);s!==o.width&&(t.value({width:o.width,height:o.height,targetId:e.id}),s=o.width)}e.__vueSetInterval__=setInterval(o,300)},unbind(e){clearInterval(e.__vueSetInterval__)}}}},k=C,S=(s("196f"),Object(d["a"])(k,a,i,!1,null,"719c652a",null)),I=S.exports,T=(s("4360"),s("5f87"));function _(e){let t=[{path:"/vue/*",component:I},{path:"/",name:"Login",meta:{title:"宏瓴科技"},component:()=>s.e("chunk-4ad9f2d0").then(s.bind(null,"9ed6"))}],o=e||JSON.parse(localStorage.getItem("userMenu"))||[],a=[];for(let n=0;n0)for(let t=0;tPromise.all([s.e("chunk-4ad9f2d0"),s.e("chunk-4e6dd618"),s.e("chunk-7cd68eb1")]).then(function(){var t=[s("79d7")("./views"+o.component+"/"+o.path+".vue")];e.apply(null,t)}.bind(this)).catch(s.oe)),i.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([s.e("chunk-4ad9f2d0"),s.e("chunk-4e6dd618"),s.e("chunk-2d0e6864")]).then(function(){var o=[s("98b1")("./views"+e.path+"/index")];t.apply(null,o)}.bind(this)).catch(s.oe),i.children.push(r);t.push(i)}localStorage.setItem("routes",JSON.stringify(t)),M=new n["a"]({mode:"history",routes:t})}function N(e){let t=JSON.parse(localStorage.getItem("userMenu"))||[],s="";return!e&&t[0]&&(s=t[0]&&!t[0].children?t[0].path+"/index":t[0].path+t[0].children[0].path),s}o["default"].use(n["a"]);let A=!0,M=null;_(),M&&M.beforeEach((e,t,s)=>{setTimeout(()=>{let e=document.getElementById("app").querySelectorAll("*"),t=N(0);1==e.length&&t&&s({replace:!0,path:t})},1e3),e.meta.title&&(document.title=e.meta.title),"/"==t.path&&localStorage.setItem("resetRoutes",!0),-1!=e.fullPath.indexOf("redirect")&&401==localStorage.getItem("tokenError")&&s({replace:!0,name:"首页",path:"/"}),T["a"].getToken()&&A?(setTimeout(()=>{A=!0},100),A=!1,"/"==e.path?setTimeout(()=>{s({replace:!0,name:"caseInquiry",path:"/caseInquiry/index"})},200):s()):"/"==e.path?s():s({replace:!0,name:"Login"})});const E=M.push;function P(e){e&&_(e)}n["a"].prototype.push=function(e,t,s){t&&s?E.call(this,e,t,s):E.call(this,e,()=>{},()=>{})};t["a"]=M},a972:function(e,t,s){},c351:function(e,t,s){"use strict";s("edfb")},c847:function(e,t,s){},e5e4:function(e,t,s){},edfb:function(e,t,s){},f176:function(e,t,s){}}); //# sourceMappingURL=app.8d3412a0.js.map