12 |
- (function(){var e={7834:function(e,n,t){"use strict";t.d(n,{$j:function(){return h},AE:function(){return m},Cz:function(){return c},Gl:function(){return T},Hu:function(){return a},Ie:function(){return O},LC:function(){return s},Q1:function(){return b},Qe:function(){return j},S1:function(){return y},TC:function(){return p},Ty:function(){return f},U:function(){return u},Ui:function(){return v},W5:function(){return l},XA:function(){return i},_S:function(){return A},bS:function(){return k},fb:function(){return C},kM:function(){return d},ok:function(){return S},qN:function(){return o},vV:function(){return Z},xV:function(){return E},yN:function(){return g},yj:function(){return w},zL:function(){return _}});var r=t(5299);function o(e){return(0,r.Z)({url:"/screen/scd/node/list",method:"get",params:e})}function i(e){return(0,r.Z)({url:"/screen/scd/ied/netaddr",method:"get",params:e})}function u(e){return(0,r.Z)({url:"/getGlobalCode",method:"get",params:e})}function c(e){return(0,r.Z)({url:"/scd/ied/typelist",method:"get",params:e})}function a(e){return(0,r.Z)({url:"/scd/area/list",method:"get",params:e})}function s(e){return(0,r.Z)({url:"/screen/scd/ied/relation",method:"get",params:e})}function d(e){return(0,r.Z)({url:"/scd/area/ied/list",method:"get",params:e})}function l(e){return(0,r.Z)({url:"/screen/scd/ied/ctrlblock",method:"get",params:e})}function f(e){return(0,r.Z)({url:"screen/scd/ied/smv_ctrlblock/sendfcdalist",method:"get",params:e})}function m(e){return(0,r.Z)({url:"/screen/scd/ied/network/info",method:"get",params:e})}function p(e){return(0,r.Z)({url:"/screen/scd/ied/smv_ctrlblock/receive",method:"get",params:e})}function h(e){return(0,r.Z)({url:"/screen/scd/ied/ref/ctrlblock",method:"get",params:e})}function g(e){return(0,r.Z)({url:"/screen/scd/ied/goose_ctrlblock/sendfcdalist",method:"get",params:e})}function b(e){return(0,r.Z)({url:"screen/scd/ied/goose_ctrlblock/receive",method:"get",params:e})}function v(e){return(0,r.Z)({url:"screen/scd/ied/inputs",method:"get",params:e})}function y(e){return(0,r.Z)({url:"screen/scd/ied/dingzhi",method:"get",params:e})}function Z(e){return(0,r.Z)({url:"screen/scd/ied/pointtable",method:"get",params:e})}function _(e){return(0,r.Z)({url:"screen/scd/ied/sourcexml",method:"get",params:e})}function k(e){return(0,r.Z)({url:"screen/scd/node/list",method:"get",params:e})}function w(e){return(0,r.Z)({url:"screen/scd/ied/network/info",method:"get",params:e})}function C(e){return(0,r.Z)({url:"screen/scd/ldevice/list",method:"get",params:e})}function S(e){return(0,r.Z)({url:"screen/scd/node/attrs",method:"get",params:e})}function O(e){return(0,r.Z)({url:"screen/scd/ied/inputs",method:"get",params:e})}function j(e){return(0,r.Z)({url:"/admin/get/check_area",method:"get",params:e})}function T(e){return(0,r.Z)({url:"/admin/scd/fcda/list",method:"get",params:e})}function A(e){return(0,r.Z)({url:"/admin/doi/mapping/save",method:"post",params:e})}function E(e){return(0,r.Z)({url:"/admin/doi/mapping/list",method:"get",params:e})}},5503:function(e,n,t){"use strict";var r=t(9963),o=t(8293),i=t(3413),u=(t(4415),t(5781)),c=t(6252);function a(e,n,t,r,o,i){const u=(0,c.up)("router-view");return(0,c.wg)(),(0,c.iD)("div",null,[(0,c.Wm)(u)])}var s={name:"App",setup(){(0,c.bv)((()=>{document.title="SCD检测";const e=document.createElement("link");e.rel="icon",e.type="image/x-icon",e.href="../../assets/icon/Avatar.png";const n=document.querySelector('link[rel="icon"]');n&&document.head.removeChild(n),document.head.appendChild(e);const t=(e,n)=>{let t=null;return function(){let r=this,o=arguments;clearTimeout(t),t=setTimeout((function(){e.apply(r,o)}),n)}},r=window.ResizeObserver;window.ResizeObserver=class extends r{constructor(e){e=t(e,16),super(e)}}}))},components:{}},d=t(3744);const l=(0,d.Z)(s,[["render",a]]);var f=l,m=t(8642),p=t(9876),h=(0,p.WB)(),g=(t(8217),t(1042),t(3307),t(4627),t(9782)),b=t.n(g),v=(t(2721),t(6e3));const y=(0,r.ri)(f);for(const[Z,_]of Object.entries(u))y.component(Z,_);y.use(o.Z,{locale:m.Z}),y._context.components.ElDialog.props.closeOnClickModal.default=!1,y.use(i.Z),y.use(h),b().use(v.EV),b().use(v.oT),b().use(v.v2),b().use(v.aC),b().use(v.q1),y.mount("#app")},3413:function(e,n,t){"use strict";var r=t(2201);const o=[{path:"/401",component:()=>t.e(415).then(t.bind(t,7098)),meta:{name:"401"}},{path:"/login",component:()=>t.e(279).then(t.bind(t,4279)),meta:{name:"login"}},{path:"/77",component:()=>Promise.all([t.e(486),t.e(386),t.e(677)]).then(t.bind(t,9386))},{path:"/draw",component:()=>Promise.all([t.e(290),t.e(531),t.e(990)]).then(t.bind(t,8531))},{path:"/home",component:()=>t.e(329).then(t.bind(t,1329)),meta:{name:"home"},children:[{path:"/home/report",component:()=>t.e(784).then(t.bind(t,3784)),meta:{name:"report"}},{path:"/home/mission",component:()=>Promise.all([t.e(746),t.e(486),t.e(490)]).then(t.bind(t,5807)),meta:{name:"mission"}},{path:"/home/int",component:()=>t.e(381).then(t.bind(t,9381)),meta:{name:"int"}},{path:"/home/scdMap",component:()=>t.e(652).then(t.bind(t,1652)),meta:{name:"scdMap"}},{path:"/home/setting",component:()=>Promise.all([t.e(746),t.e(486),t.e(290),t.e(386),t.e(531),t.e(474)]).then(t.bind(t,906)),meta:{name:"setting"}},{path:"/home/system",component:()=>Promise.all([t.e(746),t.e(731)]).then(t.bind(t,2731)),meta:{name:"system"}},{path:"/home/netStructPicture",component:()=>Promise.all([t.e(290),t.e(787)]).then(t.bind(t,4737)),meta:{name:"netStructPicture"}},{path:"/home/report/details",component:()=>t.e(266).then(t.bind(t,8266)),meta:{name:"reportDetails"}}]}],i=(0,r.p7)({history:(0,r.r5)(),routes:o});i.beforeEach(((e,n,t)=>{console.log(e,n),null!=e.meta.name&&""!=e.meta.name&&void 0!=e.meta.name||t("/login");let r=!1,o=sessionStorage.getItem("loginStatus");"true"===o&&(r=!0),r?t():"/login"!==e.path?t("/login"):t()})),n.Z=i},2721:function(e,n,t){"use strict";t.d(n,{jn:function(){return o}});var r=t(7834);async function o(e,n,t){let o=null;if(e.isScdView){const e=await(0,r.LC)({scd_id:t,ied_name:n.ref_ied_name,reset:1});if(!e.data||!e.data[n.ref_ied_name])return;o=e.data[n.ref_ied_name]}else{const t=Object.values(e.iedRelation).find((e=>e.ied_name===n.ref_ied_name));t&&(o=t)}return o}},5299:function(e,n,t){"use strict";var r=t(6154),o=t(8495),i=t.n(o),u=t(1348),c=t(3413);const a=r.Z.create({baseURL:ApiServer+"/api",timeout:15e8,headers:{"Content-Type":"application/x-www-form-urlencoded"}});a.interceptors.request.use((e=>{let n=sessionStorage.getItem("userInfo");if(n){n=JSON.parse(n);let t=n.sessionid;const r=(new Date).getTime(),o=r+s(6);let u="",c="";const a=e.params,d=e.data;if(d)for(const e in d){if(null==d[e])continue;const n=e+"="+d[e];c=c+(""===c?"":"&")+n}if(a)for(const e in a){if(null==a[e])continue;const n=e+"="+a[e];u=u+(""===u?"":"&")+n}let l=u+(""===u||""===c?"":"&")+c;return l=l+(""===l?"":"&")+"auth_nonce="+o+"&auth_time="+r,l=l.split("&").sort().join("&"),l=l.replace(/\+/gi,"%20"),l=decodeURIComponent(l),l=i()(l),e.headers["Authorization"]="Bearer "+t,e.headers.auth_time=r,e.headers.auth_nonce=o,e.headers.sign=l,e}return e}),(e=>{})),a.interceptors.response.use((e=>{let n=e.data;return n}),(e=>(console.log(e,"相应拦截器error"),401==e.response.status?((0,u.z8)({message:"登陆已过期,请重新登录",type:"error"}),c.Z.push("/login"),sessionStorage.removeItem("userInfo"),void sessionStorage.removeItem("userToken")):Promise.reject(e))));const s=function(e){e=e||32;const n="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",t=n.length;let r="";for(let o=0;o<e;o++)r+=n.charAt(Math.floor(Math.random()*t));return r};n.Z=a},6424:function(){},5381:function(){}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}t.m=e,function(){t.amdO={}}(),function(){var e=[];t.O=function(n,r,o,i){if(!r){var u=1/0;for(d=0;d<e.length;d++){r=e[d][0],o=e[d][1],i=e[d][2];for(var c=!0,a=0;a<r.length;a++)(!1&i||u>=i)&&Object.keys(t.O).every((function(e){return t.O[e](r[a])}))?r.splice(a--,1):(c=!1,i<u&&(u=i));if(c){e.splice(d--,1);var s=o();void 0!==s&&(n=s)}}return n}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[r,o,i]}}(),function(){t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,{a:n}),n}}(),function(){t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}}(),function(){t.f={},t.e=function(e){return Promise.all(Object.keys(t.f).reduce((function(n,r){return t.f[r](e,n),n}),[]))}}(),function(){t.u=function(e){return"js/"+e+"."+{266:"48e4ac75",279:"256be5c9",290:"e0e94485",329:"f496d7a4",381:"b01d61ec",386:"7b0a24e6",415:"ab26120e",474:"eb194dfe",486:"f8be7508",490:"97b0ef1e",531:"5049b069",652:"346cc69a",677:"f0d53f18",731:"19cacc00",746:"37d7c7e1",784:"a510b3ca",787:"ae7df72d",990:"7f129f35"}[e]+".js"}}(),function(){t.miniCssF=function(e){return"css/"+e+"."+{266:"6a4178bd",279:"8d5fbdf5",329:"21dc44b6",381:"14ececf8",474:"1206239b",490:"ec06acad",531:"ede26f62",652:"14ececf8",677:"040e4a2d",731:"f42280b0",784:"d4402092",787:"d5ab7573"}[e]+".css"}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){var e={},n="scd_tools_ui:";t.l=function(r,o,i,u){if(e[r])e[r].push(o);else{var c,a;if(void 0!==i)for(var s=document.getElementsByTagName("script"),d=0;d<s.length;d++){var l=s[d];if(l.getAttribute("src")==r||l.getAttribute("data-webpack")==n+i){c=l;break}}c||(a=!0,c=document.createElement("script"),c.charset="utf-8",c.timeout=120,t.nc&&c.setAttribute("nonce",t.nc),c.setAttribute("data-webpack",n+i),c.src=r),e[r]=[o];var f=function(n,t){c.onerror=c.onload=null,clearTimeout(m);var o=e[r];if(delete e[r],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((function(e){return e(t)})),n)return n(t)},m=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload),a&&document.head.appendChild(c)}}}(),function(){t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){t.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){t.p="/"}(),function(){if("undefined"!==typeof document){var e=function(e,n,t,r,o){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css";var u=function(t){if(i.onerror=i.onload=null,"load"===t.type)r();else{var u=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.href||n,a=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");a.code="CSS_CHUNK_LOAD_FAILED",a.type=u,a.request=c,i.parentNode&&i.parentNode.removeChild(i),o(a)}};return i.onerror=i.onload=u,i.href=n,t?t.parentNode.insertBefore(i,t.nextSibling):document.head.appendChild(i),i},n=function(e,n){for(var t=document.getElementsByTagName("link"),r=0;r<t.length;r++){var o=t[r],i=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(i===e||i===n))return o}var u=document.getElementsByTagName("style");for(r=0;r<u.length;r++){o=u[r],i=o.getAttribute("data-href");if(i===e||i===n)return o}},r=function(r){return new Promise((function(o,i){var u=t.miniCssF(r),c=t.p+u;if(n(u,c))return o();e(r,c,null,o,i)}))},o={143:0};t.f.miniCss=function(e,n){var t={266:1,279:1,329:1,381:1,474:1,490:1,531:1,652:1,677:1,731:1,784:1,787:1};o[e]?n.push(o[e]):0!==o[e]&&t[e]&&n.push(o[e]=r(e).then((function(){o[e]=0}),(function(n){throw delete o[e],n})))}}}(),function(){var e={143:0};t.f.j=function(n,r){var o=t.o(e,n)?e[n]:void 0;if(0!==o)if(o)r.push(o[2]);else if(677!=n){var i=new Promise((function(t,r){o=e[n]=[t,r]}));r.push(o[2]=i);var u=t.p+t.u(n),c=new Error,a=function(r){if(t.o(e,n)&&(o=e[n],0!==o&&(e[n]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+n+" failed.\n("+i+": "+u+")",c.name="ChunkLoadError",c.type=i,c.request=u,o[1](c)}};t.l(u,a,"chunk-"+n,n)}else e[n]=0},t.O.j=function(n){return 0===e[n]};var n=function(n,r){var o,i,u=r[0],c=r[1],a=r[2],s=0;if(u.some((function(n){return 0!==e[n]}))){for(o in c)t.o(c,o)&&(t.m[o]=c[o]);if(a)var d=a(t)}for(n&&n(r);s<u.length;s++)i=u[s],t.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return t.O(d)},r=self["webpackChunkscd_tools_ui"]=self["webpackChunkscd_tools_ui"]||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))}();var r=t.O(void 0,[998],(function(){return t(5503)}));r=t.O(r)})();
- //# sourceMappingURL=app.27e519cb.js.map
|