@newview/base-vue 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base-vue.js +14 -6
- package/dist/base-vue.umd.cjs +1 -1
- package/package.json +1 -1
- package/readme.md +4 -0
package/dist/base-vue.js
CHANGED
|
@@ -934,10 +934,11 @@ const viewuiplus = "";
|
|
|
934
934
|
const style = "";
|
|
935
935
|
const iviewExpand = "";
|
|
936
936
|
let $router;
|
|
937
|
+
let $app;
|
|
937
938
|
function useAxios(axiosRequestConfig) {
|
|
938
939
|
axios.interceptors.request.use(
|
|
939
940
|
function(config) {
|
|
940
|
-
const token =
|
|
941
|
+
const token = localStorage.getItem("token");
|
|
941
942
|
if (!utilities.isNull(token) && utilities.isNull(config.headers["Authorization"])) {
|
|
942
943
|
config.headers["Authorization"] = "Bearer " + token;
|
|
943
944
|
}
|
|
@@ -976,11 +977,17 @@ function useAxios(axiosRequestConfig) {
|
|
|
976
977
|
},
|
|
977
978
|
function(error) {
|
|
978
979
|
if (error.response && error.response.data && error.response.data.code == "401") {
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
980
|
+
const globalProperties = $app.config.globalProperties;
|
|
981
|
+
globalProperties.$Modal.confirm({
|
|
982
|
+
title: "会话过期",
|
|
983
|
+
content: "您的登录已过期,请确认后重新登录。",
|
|
984
|
+
onOk: () => {
|
|
985
|
+
storageInfo.removeAll();
|
|
986
|
+
$router.push("/Login");
|
|
987
|
+
}
|
|
988
|
+
// onCancel: () => {
|
|
989
|
+
// globalProperties.$Message.info('操作已取消');
|
|
990
|
+
// }
|
|
984
991
|
});
|
|
985
992
|
} else if (error.response && error.response.data && error.response.data.code == "402") {
|
|
986
993
|
storageInfo.removeAll();
|
|
@@ -1008,6 +1015,7 @@ function initWeb(app, platformNo, menus, router, axiosRequestConfig = {}) {
|
|
|
1008
1015
|
$router = router;
|
|
1009
1016
|
app.use(ViewUIPlus);
|
|
1010
1017
|
app.use(VxeTable);
|
|
1018
|
+
$app = app;
|
|
1011
1019
|
vFocus(app);
|
|
1012
1020
|
storageInfo.setPlatformNo(platformNo);
|
|
1013
1021
|
storageInfo.setMenuComponts(menus);
|
package/dist/base-vue.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __defProp=Object.defineProperty,__defNormalProp=(e,t,o)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,__publicField=(e,t,o)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,o),o);!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("view-ui-plus"),require("@newview/tools"),require("@newview/infrastructure"),require("mitt"),require("vue-router"),require("vxe-table"),require("axios")):"function"==typeof define&&define.amd?define(["exports","vue","view-ui-plus","@newview/tools","@newview/infrastructure","mitt","vue-router","vxe-table","axios"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).BaseVue={},e.Vue,e.viewUiPlus,e.tools$1,e.infrastructure,e.mitt,e.VueRouter,e.VxeTable,e.axios)}(this,(function(e,t,o,s,i,a,l,n,r){"use strict";class c{constructor(){__publicField(this,"info",(e=>{o.Message.info(e)})),__publicField(this,"success",(e=>{o.Message.success(e)})),__publicField(this,"warning",(e=>{o.Message.warning(e)})),__publicField(this,"error",(e=>{o.Message.error(e)}))}}const d=new c;class p{constructor(){__publicField(this,"zIndex",1e4),__publicField(this,"confirm",(e=>{e["z-index"]=this.zIndex,o.Modal.confirm(e)})),__publicField(this,"info",(e=>{e["z-index"]=this.zIndex,o.Modal.info(e)})),__publicField(this,"success",(e=>{e["z-index"]=this.zIndex,o.Modal.success(e)})),__publicField(this,"warning",(e=>{e["z-index"]=this.zIndex,o.Modal.warning(e)})),__publicField(this,"error",(e=>{e["z-index"]=this.zIndex,o.Modal.error(e)}))}}const u=new p,h=a();class f{constructor(){__publicField(this,"utilities",new s.Utilities),__publicField(this,"storageInfo",i.storageInfo)}getEnterBIMParam(e){var t,o;return e+this.utilities.stringHelper.encryptAES(JSON.stringify({token:this.storageInfo.getToken(),userId:null==(t=this.storageInfo.getUser())?void 0:t.Id,projectId:null==(o=this.storageInfo.getCurrentPlatform())?void 0:o.Id}),"d2140707ca3a469c8527e546fe961276")}}class m{constructor(){__publicField(this,"message",new c),__publicField(this,"modal",new p),__publicField(this,"utilities",new s.Utilities),__publicField(this,"storageInfo",i.storageInfo),__publicField(this,"openObserve",i.openObserve),__publicField(this,"bus",h),__publicField(this,"otherCommon",new f),__publicField(this,"doInputControl",(e=>{this.utilities.isNull(e)||(e.target.readOnly=!1)}))}}const g={count:{type:Number,default:0}},v=t.defineComponent({name:"Root",components:{},emits:[""],props:g,setup:(e,t)=>new P(e,t)});class P extends m{constructor(e,t){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"router"),this.props=e,this.ctx=t,this.useRoot()}useRoot(){this.router=l.useRouter(),this.goPage()}goPage(){const e=this.getQueryString("linkMain");if(!this.utilities.isNull(e))return void this.router.replace("/LinkMain");const t=this.storageInfo.getToken();this.utilities.isNull(t)?this.router.replace("/Login"):this.router.replace(this.storageInfo.getCurrentDefaultPath())}getQueryString(e){let t=window.location.href.indexOf("?"),o=window.location.href.substring(t+1,window.location.href.length).split("&");for(const s of o){let t=s.split("=");if(t[0]==e)return t[1]}return""}}const _=(e,t)=>{const o=e.__vccOpts||e;for(const[s,i]of t)o[s]=i;return o},N={class:"root"};const b=_(v,[["render",function(e,o,s,i,a,l){return t.openBlock(),t.createElementBlock("div",N)}],["__scopeId","data-v-b392b4ac"]]),M={tabPage:{type:Object,default:()=>({})}},F=t.defineComponent({name:"LinkPanel",components:{},emits:[""],props:M,setup:(e,t)=>new I(e,t)});let I=class extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"loading",t.ref(!0)),__publicField(this,"ifrPanel",t.ref()),this.props=e,this.ctx=o,this.useLinkPanel()}useLinkPanel(){t.onMounted((()=>{this.bindLoadEvent()}))}bindLoadEvent(){const e=this.ifrPanel.value;e.attachEvent?e.attachEvent("onload",(()=>{this.doLoaded(e)})):e.onload=()=>{this.doLoaded(e)}}doLoaded(e){this.loading.value=!1,setTimeout((()=>{const t={token:this.storageInfo.getToken(),user:JSON.stringify(this.storageInfo.getUser()),currentPlatform:JSON.stringify(this.storageInfo.getCurrentPlatform()),currentBusiness:JSON.stringify(this.storageInfo.getCurrentBusiness()),currentModule:JSON.stringify(this.storageInfo.getCurrentModule())};e.contentWindow.postMessage(t,"*")}),20)}};const k={class:"link-panel"},B=["src","title"];const w=_(F,[["render",function(e,o,s,i,a,l){const n=t.resolveComponent("Spin");return t.openBlock(),t.createElementBlock("div",k,[t.withDirectives(t.createElementVNode("iframe",{src:e.tabPage.path,class:"link-ifr",title:e.tabPage.path,ref:"ifrPanel"},null,8,B),[[t.vShow,!e.loading]]),t.createVNode(n,{size:"large",fix:"",show:e.loading},null,8,["show"])])}],["__scopeId","data-v-37023fbf"]]),E=t.defineComponent({name:"noFondPage",components:{},emits:[""],props:{},setup:(e,t)=>new L(e,t)});let L=class extends m{constructor(e,t){super(),__publicField(this,"props"),__publicField(this,"ctx"),this.props=e,this.ctx=t}};const C={class:"nv-flex-col nv-full",style:{"font-size":"30px",color:"#ccc","align-items":"center","justify-content":"center"}},z=[t.createElementVNode("svg",{t:"1628837319071",class:"icon",viewBox:"0 0 2538 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8648",width:"600"},[t.createElementVNode("path",{d:"M127.82465799 723.813699h2085.873972c35.068493 0 63.824658-29.457534 63.824658-65.227398 0-36.471233-28.756164-65.227397-63.824658-65.227397H127.82465799c-35.068493 0-63.824658 29.457534-63.824658 65.227397 0 36.471233 28.756164 65.227397 63.824658 65.227398zM453.96164399 953.863014h301.589041c20.339726 0 37.172603-16.832877 37.172603-37.873973 0-21.041096-16.832877-37.873973-37.172603-37.873973h-301.589041c-20.339726 0-37.172603 16.832877-37.172603 37.873973 0.70137 21.041096 16.832877 37.873973 37.172603 37.873973zM2325.21643799 650.871233h247.583562c16.832877 0 30.158904-14.027397 30.158904-31.561644s-13.326027-31.561644-30.158904-31.561644h-247.583562c-16.832877 0-30.158904 14.027397-30.158904 31.561644s13.326027 31.561644 30.158904 31.561644z",fill:"#EBF7FF","p-id":"8649"}),t.createElementVNode("path",{d:"M210.58630099 848.657534h2186.169863c36.471233 0 65.227397-29.457534 65.227398-65.227397 0-36.471233-29.457534-65.227397-65.227398-65.227397H210.58630099c-36.471233 0-65.227397 29.457534-65.227397 65.227397-0.70137 35.769863 28.756164 65.227397 65.227397 65.227397z",fill:"#EBF7FF","p-id":"8650"}),t.createElementVNode("path",{d:"M1040.59908632 335.254795h-16.131506V152.19726c0-37.873973 1.40274-60.317808 4.208219-93.282192H912.94977132c-14.728767 21.742466-25.249315 35.769863-52.602739 67.331507L738.30867532 268.624658c-28.756164 33.665753-28.756164 33.665753-54.005479 61.720547v100.997261c21.041096-1.40274 36.471233-2.10411 73.643836-2.10411h159.912328v27.353425c0 27.353425-1.40274 51.2-4.208219 70.136986h116.427397c-3.506849-21.742466-4.208219-37.873973-4.208219-69.435616v-28.054795h16.832877c17.534247 0 38.575342 1.40274 55.408219 3.506849V330.345205c-21.041096 2.805479-39.978082 4.909589-57.512329 4.90959z m-122.739726-64.526028v65.227397h-114.323287l82.060274-100.29589c15.430137-18.936986 23.846575-30.158904 35.068493-46.290411-2.10411 25.249315-2.805479 56.109589-2.80548 81.358904zM1504.90593632 163.419178c-8.416438-22.443836-22.443836-44.186301-41.380822-62.421918-34.367123-33.665753-82.060274-52.60274-137.468493-52.602739-70.838356 0-129.753425 31.561644-164.120548 89.073972-21.742466 35.769863-35.769863 96.789041-35.769863 155.70411 0 45.589041 7.013699 89.073973 21.742465 129.052055 8.416438 22.443836 22.443836 44.186301 41.380822 62.421917 34.367123 34.367123 81.358904 52.60274 136.767124 52.60274 71.539726 0 131.156164-31.561644 164.821917-87.671233 21.742466-35.769863 35.769863-97.490411 35.769863-156.405479 0.70137-46.290411-7.013699-89.775342-21.742465-129.753425zM1327.45936032 441.863014c-56.109589 0-84.865753-51.90137-84.865753-152.89863 0-91.879452 30.860274-145.183562 84.164384-145.183562 54.706849 0 84.164384 50.49863 84.164383 147.287671 0 99.594521-28.054795 150.794521-83.463014 150.794521zM1913.10319632 335.254795h-16.131507V152.19726c0-37.873973 1.40274-60.317808 4.208219-93.282192h-115.726027c-14.728767 21.742466-25.249315 35.769863-52.60274 67.331507l-122.739726 143.079452c-28.756164 33.665753-28.756164 33.665753-54.005479 61.720548v100.997261c21.041096-1.40274 36.471233-2.10411 73.643835-2.10411H1789.66210032v27.353425c0 27.353425-1.40274 51.2-4.208219 70.136986H1901.88127832c-3.506849-21.742466-4.208219-37.873973-4.208219-69.435616v-28.054795h16.832877c17.534247 0 38.575342 1.40274 55.408219 3.506849V330.345205c-20.339726 2.805479-39.276712 4.909589-56.810959 4.90959z m-122.739726-64.526028v65.227397h-114.323288l82.060274-100.29589c15.430137-18.936986 23.846575-30.158904 35.068493-46.290411-2.10411 25.249315-2.805479 56.109589-2.805479 81.358904zM2298.15525132 537.950685l-257.40274-0.70137V280.547945c142.378082 0 257.40274 115.024658 257.40274 257.40274zM234.72511432 537.950685c0-206.90411 167.627397-374.531507 375.232877-374.531507v373.128767l-375.232877 1.40274z",fill:"#CFF0FF","p-id":"8651"}),t.createElementVNode("path",{d:"M952.460274 740.646575c42.082192-8.416438 73.643836-25.950685 71.539726-39.978082-2.805479-14.027397-39.276712-18.936986-81.358904-10.520548s-73.643836 25.950685-71.539726 39.978082m176.043835-142.378082c42.082192-8.416438 73.643836-25.950685 71.539727-39.978082-2.805479-14.027397-39.276712-18.936986-81.358905-10.520548-42.082192 8.416438-73.643836 25.950685-71.539726 39.978082m758.180822 218.126028c24.547945-9.117808 40.679452-21.041096 38.575343-31.561644-2.805479-14.027397-39.276712-18.936986-81.358904-10.520548-42.082192 8.416438-73.643836 25.950685-71.539726 39.978082m394.169863-49.79726c24.547945-9.117808 40.679452-21.041096 38.575342-31.561644-2.805479-14.027397-39.276712-18.936986-81.358904-10.520548-42.082192 8.416438-73.643836 25.950685-71.539726 39.978082m124.142466-75.747945c42.082192-8.416438 73.643836-25.950685 71.539726-39.978082-2.805479-14.027397-39.276712-18.936986-81.358904-10.520548-42.082192 8.416438-73.643836 25.950685-71.539726 39.978082",fill:"#396B99","p-id":"8652"}),t.createElementVNode("path",{d:"M1069.589041 590.553425c0-88.372603-71.539726-159.912329-159.912329-159.912329s-159.912329 71.539726-159.912328 159.912329",fill:"#F9DA3E","p-id":"8653"}),t.createElementVNode("path",{d:"M573.019178 318.421918l204.8 204.8-31.561644 31.561644-204.8-204.8 31.561644-31.561644z m-61.720548 58.915068L716.09863 582.136986l-31.561644 31.561644-204.8-204.8 31.561644-31.561644z m-63.123288 61.019178l204.8 204.8-31.561643 31.561644L416.613699 469.917808l31.561643-31.561644z m-61.019178 61.019178l204.8 204.8-31.561643 31.561644-204.8-204.8 31.561643-31.561644z m-51.901369 70.838357L540.054795 775.013699l-31.561644 31.561643-204.8-204.8 31.561644-31.561643z",fill:"#CFF0FF","p-id":"8654"}),t.createElementVNode("path",{d:"M2054.89680366 665.6c0-129.753425-105.205479-234.958904-234.958904-234.958904s-234.958904 105.205479-234.958904 234.958904",fill:"#568EC8","p-id":"8655"}),t.createElementVNode("path",{d:"M1102.553425 616.50411c0-28.756164-23.846575-51.90137-52.60274-51.90137-29.457534 0-52.60274 23.145205-52.60274 51.90137m509.895891-37.873973c0-37.873973-30.860274-68.032877-69.435617-68.032877s-69.435616 30.860274-69.435616 68.032877",fill:"#396B99","p-id":"8656"}),t.createElementVNode("path",{d:"M1643.309589 741.347945c0-82.761644-68.734247-150.794521-152.89863-150.79452s-152.89863 67.331507-152.89863 150.79452",fill:"#78C5FD","p-id":"8657"}),t.createElementVNode("path",{d:"M1723.265753 795.353425c0-44.186301-35.769863-79.956164-79.956164-79.956165s-79.956164 35.769863-79.956164 79.956165",fill:"#396B99","p-id":"8658"}),t.createElementVNode("path",{d:"M651.572603 791.145205l-152.197261 0.70137c0-124.142466 100.29589-184.460274 224.438357-184.460274v138.871233",fill:"#0E1D80","fill-opacity":".1","p-id":"8659"}),t.createElementVNode("path",{d:"M449.16894933 791.846575c0-124.142466 100.29589-224.438356 224.438357-224.438356v223.736986",fill:"#78C5FD","p-id":"8660"}),t.createElementVNode("path",{d:"M1997.50137 744.854795c0-79.956164-64.526027-144.482192-144.482192-144.482192v143.780822",fill:"#F9DA3E","p-id":"8661"}),t.createElementVNode("path",{d:"M1798.312329 627.726027c0 6.312329 4.208219 11.221918 9.117808 11.221918s9.117808-4.909589 9.117808-11.221918-4.208219-11.221918-9.117808-11.221917-9.117808 4.909589-9.117808 11.221917zM1763.243836 627.726027c0 6.312329 4.208219 11.221918 9.117808 11.221918 4.909589 0 9.117808-4.909589 9.117808-11.221918s-4.208219-11.221918-9.117808-11.221917c-4.909589 0-9.117808 4.909589-9.117808 11.221917zM1728.175342 627.726027c0 6.312329 4.208219 11.221918 9.117809 11.221918 4.909589 0 9.117808-4.909589 9.117808-11.221918 0-6.312329-4.208219-11.221918-9.117808-11.221917-4.909589 0-9.117808 4.909589-9.117809 11.221917zM1690.30137 627.726027c0 6.312329 4.208219 11.221918 9.117808 11.221918 4.909589 0 9.117808-4.909589 9.117808-11.221918s-4.208219-11.221918-9.117808-11.221917c-4.909589 0-9.117808 4.909589-9.117808 11.221917zM1655.232877 627.726027c0 6.312329 4.208219 11.221918 9.117808 11.221918 4.909589 0 9.117808-4.909589 9.117808-11.221918s-4.208219-11.221918-9.117808-11.221917c-4.909589 0-9.117808 4.909589-9.117808 11.221917zM1798.312329 594.761644c0 6.312329 4.208219 11.221918 9.117808 11.221918s9.117808-4.909589 9.117808-11.221918-4.208219-11.221918-9.117808-11.221918-9.117808 4.909589-9.117808 11.221918zM1763.243836 594.761644c0 6.312329 4.208219 11.221918 9.117808 11.221918 4.909589 0 9.117808-4.909589 9.117808-11.221918s-4.208219-11.221918-9.117808-11.221918c-4.909589 0-9.117808 4.909589-9.117808 11.221918zM1728.175342 594.761644c0 6.312329 4.208219 11.221918 9.117809 11.221918 4.909589 0 9.117808-4.909589 9.117808-11.221918 0-6.312329-4.208219-11.221918-9.117808-11.221918-4.909589 0-9.117808 4.909589-9.117809 11.221918zM1690.30137 594.761644c0 6.312329 4.208219 11.221918 9.117808 11.221918 4.909589 0 9.117808-4.909589 9.117808-11.221918s-4.208219-11.221918-9.117808-11.221918c-4.909589 0-9.117808 4.909589-9.117808 11.221918zM1798.312329 559.693151c0 6.312329 4.208219 11.221918 9.117808 11.221917s9.117808-4.909589 9.117808-11.221917-4.208219-11.221918-9.117808-11.221918-9.117808 4.909589-9.117808 11.221918zM1763.243836 559.693151c0 6.312329 4.208219 11.221918 9.117808 11.221917 4.909589 0 9.117808-4.909589 9.117808-11.221917s-4.208219-11.221918-9.117808-11.221918c-4.909589 0-9.117808 4.909589-9.117808 11.221918zM1728.175342 559.693151c0 6.312329 4.208219 11.221918 9.117809 11.221917 4.909589 0 9.117808-4.909589 9.117808-11.221917 0-6.312329-4.208219-11.221918-9.117808-11.221918-4.909589 0-9.117808 4.909589-9.117809 11.221918zM1798.312329 523.923288c0 6.312329 4.208219 11.221918 9.117808 11.221917s9.117808-4.909589 9.117808-11.221917-4.208219-11.221918-9.117808-11.221918-9.117808 5.610959-9.117808 11.221918zM1763.243836 523.923288c0 6.312329 4.208219 11.221918 9.117808 11.221917 4.909589 0 9.117808-4.909589 9.117808-11.221917s-4.208219-11.221918-9.117808-11.221918c-4.909589 0.70137-9.117808 5.610959-9.117808 11.221918zM1798.312329 488.854795c0 6.312329 4.909589 11.221918 11.221918 11.221917 6.312329 0 11.221918-4.909589 11.221917-11.221917s-4.909589-11.221918-11.221917-11.221918c-6.312329 0-11.221918 4.909589-11.221918 11.221918z",fill:"#CFF0FF","p-id":"8662"}),t.createElementVNode("path",{d:"M1077.30411 851.463014c0 18.936986 65.227397 34.367123 145.884931 34.367123s145.884932-15.430137 145.884932-34.367123-65.227397-34.367123-145.884932-34.367124-145.884932 15.430137-145.884931 34.367124z",fill:"#396B99","p-id":"8663"}),t.createElementVNode("path",{d:"M1173.391781 723.813699c11.221918 24.547945 0.70137 132.558904-2.80548 132.558904l-6.312328 0.70137-4.20822-52.60274s-12.624658-68.734247-13.326027-74.345206l18.235616-11.221917 8.416439 4.909589z",fill:"#396B99","p-id":"8664"}),t.createElementVNode("path",{d:"M1139.024658 718.20274l12.624657 11.221918c4.909589 0.70137-13.326027 120.635616-21.041096 125.545205l-6.312329-0.70137v-60.317808c0-11.923288-6.312329-51.90137-2.805479-71.539726",fill:"#396B99","p-id":"8665"}),t.createElementVNode("path",{d:"M1136.219178 640.350685l17.534247 4.909589-0.70137-10.520548-13.326028-10.520548c0 5.610959-3.506849 16.131507-3.506849 16.131507z",fill:"#FFE4A8","p-id":"8666"}),t.createElementVNode("path",{d:"M1153.753425 635.441096s-7.715068-4.909589-9.819178-7.715069c-5.610959-4.909589 8.416438-23.145205 13.326027-23.145205l11.923288 5.610959 2.805479 7.013698-2.104109 11.221918-3.50685-0.70137-5.610959 9.117809-7.013698-1.40274z",fill:"#FFE4A8","p-id":"8667"}),t.createElementVNode("path",{d:"M1171.989041 615.80274c-3.506849 0-14.728767-4.909589-14.728767-7.013699 0.70137 2.10411-3.506849 10.520548-7.013699 10.520548s-10.520548-9.117808-11.221917-3.506849c0.70137 1.40274 3.506849 15.430137 0 14.027397-14.027397-3.506849-8.416438-39.276712 18.235616-35.769863 36.471233 10.520548 18.235616 21.742466 14.728767 21.742466z",fill:"#396B99","p-id":"8668"}),t.createElementVNode("path",{d:"M1139.024658 622.816438c-2.805479-3.506849 0-10.520548 3.506849-10.520548 2.10411 0 4.909589 1.40274 5.610959 3.50685 2.805479 12.624658-4.208219 15.430137-9.117808 7.013698z",fill:"#FFE4A8","p-id":"8669"}),t.createElementVNode("path",{d:"M1162.871233 638.947945c4.208219 1.40274 9.117808 9.819178 9.117808 14.027397 0.70137 4.909589-0.70137 19.638356-0.70137 19.638357l18.936987-6.312329-0.70137 6.312329s-13.326027 9.819178-18.936987 11.923287c-2.10411 0.70137-5.610959 0-7.013698-0.70137-7.715068-4.208219-15.430137-19.638356-14.027398-30.860274 0-0.70137-2.10411-17.534247 13.326028-14.027397z",fill:"#78C5FD","p-id":"8670"}),t.createElementVNode("path",{d:"M1119.386301 739.243836c10.520548 7.013699 49.79726 7.013699 56.810959-0.70137 4.909589-17.534247-5.610959-89.073973-12.624657-95.386302 0-1.40274-9.117808-5.610959-9.117808-5.610959s-14.728767-5.610959-19.638357-2.805479c-7.715068 9.117808-23.145205 86.969863-15.430137 104.50411z",fill:"#568EC8","p-id":"8671"}),t.createElementVNode("path",{d:"M1109.567123 636.843836c-0.70137 3.506849 1.40274 4.208219 4.208219 5.610959 7.715068 3.506849 1.40274 21.041096-11.923287 35.068493-16.131507 16.832877 5.610959 47.693151 23.846575 33.665753 5.610959-4.208219 4.208219-16.832877 4.208219-16.832877v-48.39452l3.50685-2.10411 7.715068 4.208219c-4.909589 11.923288-4.909589 21.742466 0 24.547946 2.10411 1.40274 3.506849 1.40274 5.610959 0 0.70137-2.805479 4.208219-14.728767 1.40274-28.756165-4.909589-11.221918-37.172603-17.534247-38.575343-7.013698z",fill:"#396B99","p-id":"8672"}),t.createElementVNode("path",{d:"M1131.309589 641.753425c-19.638356 14.728767-9.117808 58.213699-3.506849 59.616438 11.221918 2.10411 37.172603-12.624658 37.172602-12.624658l-0.701369-5.610958-26.652055-0.70137s8.416438-31.561644 2.805479-38.575343c-1.40274-1.40274-4.208219-2.10411-9.117808-2.104109z",fill:"#78C5FD","p-id":"8673"}),t.createElementVNode("path",{d:"M1165.676712 667.00274c1.40274 2.10411 4.208219 2.10411 4.909589 0 0.70137 0-1.40274-27.353425-7.715068-29.457535-2.805479-2.10411-7.013699 0.70137-4.909589 2.10411 6.312329 1.40274 8.416438 28.756164 7.715068 27.353425z",fill:"#396B99","p-id":"8674"}),t.createElementVNode("path",{d:"M1190.926027 657.884932l-21.742465-3.50685-3.50685 39.276713 21.742466 3.506849 11.221918-3.506849 7.013699-42.783562-14.728768 7.013699z",fill:"#FFE4A8","p-id":"8675"}),t.createElementVNode("path",{d:"M1192.328767 657.884932l2.10411 0.701369-7.013699 39.276713-2.10411-0.70137 7.013699-39.276712z",fill:"#F49130","p-id":"8676"}),t.createElementVNode("path",{d:"M1172.690411 682.432877c1.40274 2.10411 0.70137 4.208219-1.40274 5.610959-1.40274 1.40274-7.013699 1.40274-7.715068 0.701369-1.40274-1.40274-2.805479-3.506849-2.10411-5.610958 0.70137-2.805479 9.117808-4.208219 11.221918-0.70137z",fill:"#FFE4A8","p-id":"8677"}),t.createElementVNode("path",{d:"M1143.934247 861.983562c1.40274-2.10411-7.715068-7.715068-12.624658-9.819178l-8.416438-0.70137c-0.70137 2.805479-4.909589 6.312329-3.50685 8.416438 2.10411 2.10411 22.443836 4.208219 24.547946 2.10411z m42.082191-2.10411c1.40274-2.10411-8.416438-5.610959-13.326027-7.013699l-8.416438-0.701369c-0.70137 2.10411-4.909589 4.909589-2.80548 7.013698 2.10411 2.10411 23.145205 2.805479 24.547945 0.70137zM1327.693151 859.879452c-3.506849 2.805479-25.249315 1.40274-26.652055 0-1.40274-1.40274 1.40274-9.819178 1.40274-9.819178h11.221917c0-0.70137 17.534247 6.312329 14.027398 9.819178z m-108.712329-7.013699c3.506849 0-1.40274-18.936986-1.40274-18.936986l-7.013698-6.312329s-8.416438 2.805479-8.416439 5.610959c-0.70137 2.805479 13.326027 19.638356 16.832877 19.638356z",fill:"#F49130","p-id":"8678"}),t.createElementVNode("path",{d:"M1279.29863 732.931507l23.846575-2.80548c7.715068 18.235616 11.923288 39.978082 13.326028 62.421918l-3.506849 58.915069-10.520548 2.805479-4.20822-54.706849c0.70137 0.70137-19.638356-39.276712-18.936986-66.630137z",fill:"#396B99","p-id":"8679"}),t.createElementVNode("path",{d:"M1247.736986 730.126027v58.915069l-38.575342 39.978082 6.312329 9.819178s46.991781-32.964384 56.810959-46.290411c4.208219-5.610959 14.027397-61.720548 14.027397-61.720548h-38.575343z",fill:"#396B99","p-id":"8680"}),t.createElementVNode("path",{d:"M1290.520548 630.531507l4.909589-2.80548s8.416438 7.715068 7.715068 9.117809-4.909589 4.208219-7.013698 0.701369c-2.10411-2.805479-5.610959-7.013699-5.610959-7.013698z",fill:"#FFE4A8","p-id":"8681"}),t.createElementVNode("path",{d:"M1295.430137 637.545205l8.416438-1.402739s8.416438 12.624658 7.013699 16.832876c-1.40274 4.208219-16.131507 15.430137-16.131507 15.430137l-8.416438-11.923287 12.624657-8.416439-3.506849-10.520548z",fill:"#78C5FD","p-id":"8682"}),t.createElementVNode("path",{d:"M1263.868493 645.260274l18.936986 4.909589-1.402739-11.923288-16.131507-9.819178-1.40274 16.832877z",fill:"#FFE4A8","p-id":"8683"}),t.createElementVNode("path",{d:"M1293.326027 675.419178c1.40274 2.10411 4.208219 2.10411 4.909589 0 0.70137 0-1.40274-26.652055-7.715068-29.457534-2.805479-2.10411-7.013699 0.70137-4.909589 2.104109 6.312329 1.40274 9.117808 28.054795 7.715068 27.353425z",fill:"#396B99","p-id":"8684"}),t.createElementVNode("path",{d:"M1264.569863 643.857534c4.208219-1.40274 21.041096 2.10411 23.145205 4.208219 2.10411 2.10411 9.819178 21.041096 11.923288 28.756165 5.610959 17.534247 16.832877 65.928767 12.624658 70.838356-4.208219 5.610959-58.213699 7.013699-65.928767 2.805479-6.312329-3.506849-2.10411-61.019178 2.805479-80.657534 2.805479-7.715068 10.520548-24.547945 15.430137-25.950685z",fill:"#568EC8","p-id":"8685"}),t.createElementVNode("path",{d:"M1218.279452 799.561644c-0.70137-0.70137-0.70137-1.40274 0-2.10411l101.69863-105.205479c0.70137-0.70137 1.40274-0.70137 2.10411 0 0.70137 0.70137 0.70137 1.40274 0 2.104109L1220.383562 799.561644h-2.10411z",fill:"#1B5A89","p-id":"8686"}),t.createElementVNode("path",{d:"M1279.29863 704.876712h23.846575l0.70137 6.312329-24.547945 3.506849v-9.819178z",fill:"#FFE4A8","p-id":"8687"}),t.createElementVNode("path",{d:"M1237.917808 648.065753c-0.70137 3.506849 1.40274 4.909589 4.909589 6.312329 9.117808 3.506849 2.10411 23.846575-12.624657 38.575343-17.534247 18.936986 7.715068 52.60274 27.353424 37.172602 6.312329-4.909589 4.208219-18.235616 4.20822-18.235616l-1.40274-53.30411 3.506849-2.805479 9.117808 4.208219c-4.909589 13.326027-4.909589 23.846575 0.70137 27.353425 2.10411 1.40274 3.506849 1.40274 5.610959 0 1.40274-3.506849 4.208219-16.131507 1.40274-31.561644-5.610959-14.027397-41.380822-19.638356-42.783562-7.715069z",fill:"#396B99","p-id":"8688"}),t.createElementVNode("path",{d:"M1261.764384 652.273973c-6.312329 5.610959-9.117808 16.131507-11.221918 27.353424-2.805479 31.561644 7.013699 40.679452 11.221918 40.679452 4.208219 0 22.443836-2.805479 22.443835-2.805479l-0.70137-12.624658-16.131507-0.70137s8.416438-21.742466 7.013699-39.978082c0-4.909589-4.208219-15.430137-12.624657-11.923287z",fill:"#78C5FD","p-id":"8689"}),t.createElementVNode("path",{d:"M1310.860274 701.369863c2.10411 0.70137 2.10411 3.506849 2.10411 3.506849-0.70137 2.10411-4.208219 7.715068-6.312329 7.715069-2.10411 0-7.715068-2.10411-4.909589-5.610959 2.10411-4.208219 7.013699-6.312329 9.117808-5.610959z m-24.547945-58.915068l5.610959-9.117809 4.208219-0.70137-1.40274-18.235616-13.326027-9.117808-16.131507 9.117808-0.70137 18.936986c6.312329 7.715068 21.742466 9.117808 21.742466 9.117809z",fill:"#FFE4A8","p-id":"8690"}),t.createElementVNode("path",{d:"M1274.389041 596.865753c7.715068-1.40274 16.131507-0.70137 20.339726 3.50685 4.208219 4.208219 6.312329 11.923288 0 16.131507-7.013699 0.70137-7.715068 2.805479-14.728767-0.70137 0 0-0.70137 3.506849-2.805479 6.312328-2.10411 3.506849-8.416438 1.40274-8.416439 1.40274s0 9.819178-7.013698 9.819178c-12.624658-1.40274-9.117808-30.860274 12.624657-36.471233z",fill:"#396B99","p-id":"8691"}),t.createElementVNode("path",{d:"M1275.090411 625.621918c0-2.10411 0-4.909589-2.10411-5.610959-2.805479-2.10411-5.610959 0-5.610959 2.805479-0.70137 2.805479 1.40274 5.610959 3.50685 6.312329 2.10411 1.40274 4.208219-0.70137 4.208219-3.506849z",fill:"#FFDB73","p-id":"8692"})],-1),t.createElementVNode("div",{style:{"margin-top":"30px"}},"抱歉,该功能暂未开放,请联系管理员",-1)];const x=_(E,[["render",function(e,o,s,i,a,l){return t.openBlock(),t.createElementBlock("div",C,z)}]]),V=t.defineComponent({name:"LinkMain",components:{LinkPanel:w},emits:[""],props:{},setup:(e,t)=>new y(e,t)});class y extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"pages",t.ref([])),__publicField(this,"activePath",t.ref("")),this.props=e,this.ctx=o,this.useLinkMain()}useLinkMain(){const e=e=>{this.receiveMessage(e)};window.addEventListener("message",e),t.onUnmounted((()=>{window.removeEventListener("message",e)}))}receiveMessage(e){if(e.source!=window.parent.window.parent)return;const t=e.data;switch(t.command){case"initStorageInfo":this.initStorageInfo(t.data);break;case"pushPage":this.pushPage(t.data);break;case"clearAllPage":this.clearAllPage(t.data);break;case"closePage":this.closePage(t.data);break;case"activePage":this.activePage(t.data);break;case"closePageByCommand":this.closePageByCommand(t.data)}}initStorageInfo(e){const t=e.token,o=this.utilities.isNull(e.user)?void 0:JSON.parse(e.user),s=this.utilities.isNull(e.currentPlatform)?void 0:JSON.parse(e.currentPlatform),i=this.utilities.isNull(e.currentBusiness)?void 0:JSON.parse(e.currentBusiness),a=this.utilities.isNull(e.currentModule)?void 0:JSON.parse(e.currentModule);this.storageInfo.setToken(t),this.storageInfo.setUser(o),this.storageInfo.setCurrentPlatform(s),this.storageInfo.setCurrentBusiness(i),this.storageInfo.setCurrentModule(a)}pushPage(e){let o;if(0==e.loadMode){const s=this.storageInfo.getMenuComponts().find((t=>t.path==e.path));o=s?"function"==typeof s.component?t.shallowRef(s.component()):t.shallowRef(s.component):t.shallowRef(x)}this.pages.value.push({path:e.path,loadMode:e.loadMode,param:e.param,operates:e.operates,component:o})}clearAllPage(e){this.pages.value=[]}closePage(e){const t=this.pages.value.findIndex((t=>t.path==e.path));this.pages.value.splice(t,1)}activePage(e){this.activePath.value=e.path}closePageByCommand(e){const t=this.pages.value.findIndex((e=>e.path==this.activePath.value));switch(e.command){case"left":if(0==t||1==t)return;this.pages.value.splice(1,t-1);break;case"right":if(t==this.pages.value.length-1)return;this.pages.value.splice(t+1);break;case"other":const e=this.pages.value.findIndex((e=>e.path==this.activePath.value)),o=this.pages.value[0];if(0==e)this.pages.value=[o];else{const t=this.pages.value[e];this.pages.value=[o,t]}break;case"all":this.pages.value.splice(1)}}}const S={class:"line-main"};const O=_(V,[["render",function(e,o,s,i,a,l){const n=t.resolveComponent("LinkPanel");return t.openBlock(),t.createElementBlock("div",S,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(o=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.path},[0==o.loadMode?t.withDirectives((t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.component),{key:0,linkParam:o.param,operates:o.operates},null,8,["linkParam","operates"])),[[t.vShow,o.path==e.activePath]]):t.createCommentVNode("",!0),1==o.loadMode?t.withDirectives((t.openBlock(),t.createBlock(n,{key:1,tabPage:o},null,8,["tabPage"])),[[t.vShow,o.path==e.activePath]]):t.createCommentVNode("",!0)],64)))),128))])}],["__scopeId","data-v-026a2cc9"]]),A=t.defineComponent({name:"FreeLoginCenter",components:{},emits:[""],props:{},setup:(e,t)=>new U(e,t)});class U extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"router"),__publicField(this,"errTip",t.ref("")),this.props=e,this.ctx=o,this.router=l.useRouter(),this.init()}async init(){let e=this.getRequestParam();if(e&&e.u&&e.t){let t=this.utilities.parseApiResult(await i.request(`/PermissionApi/ThirdOAuth/OAuthByToken?account=${decodeURIComponent(e.u)}&token=${decodeURIComponent(e.t)}`,{method:"post",data:{}}));if(t&&t.Token){this.storageInfo.setToken(t.Token),this.storageInfo.setUser(t.User),this.storageInfo.setPlatforms(t.Platforms),localStorage.setItem("needChangePsw",t.NeedChangePsw);const e=this.storageInfo.getPlatforms();if(!this.utilities.isNull(e)&&e.length>0){const t=e.find((e=>e.PlatformNo==this.storageInfo.getPlatformNo()));this.storageInfo.setCurrentPlatform(this.utilities.isNull(t)?e[0]:t)}const o=this.storageInfo.getCurrentPlatform();!this.utilities.isNull(o)&&o.Modules.length>0&&this.storageInfo.setCurrentBusiness(o.Modules[0]),this.router.replace("/")}else this.errLogin()}else this.errLogin()}errLogin(){this.router.replace("/Login")}getRequestParam(){let e=window.location.href.split("?")[1];if(!e)return!1;let t={};return e.split("&").forEach((e=>{0==e.indexOf("u=")?t.u=e.replace("u=",""):0==e.indexOf("t=")&&(t.t=e.replace("t=",""))})),t}}const R=e=>(t.pushScopeId("data-v-08b85823"),e=e(),t.popScopeId(),e),D={class:"nv-full nv-pos-a"},T={key:0,style:{"text-align":"center","padding-top":"20%","font-size":"25px"}},q={key:1,class:"loader"},J=[R((()=>t.createElementVNode("div",{class:"loader-inner line-scale"},[t.createElementVNode("div"),t.createElementVNode("div"),t.createElementVNode("div"),t.createElementVNode("div"),t.createElementVNode("div")],-1))),R((()=>t.createElementVNode("div",null,"正在初始化数据,请稍候...",-1)))];const j=_(A,[["render",function(e,o,s,i,a,l){return t.openBlock(),t.createElementBlock("div",D,[e.errTip?(t.openBlock(),t.createElementBlock("div",T,t.toDisplayString(e.errTip),1)):(t.openBlock(),t.createElementBlock("div",q,J))])}],["__scopeId","data-v-08b85823"]]);let W;const H={tabPage:{type:Object,default:()=>({})}},$=t.defineComponent({name:"LinkPanel",components:{},emits:[""],props:H,setup:(e,t)=>new Q(e,t)});class Q extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"loading",t.ref(!0)),__publicField(this,"ifrPanel",t.ref()),__publicField(this,"doLoaded",(()=>{this.loading.value=!1})),this.props=e,this.ctx=o,this.useLinkPanel()}useLinkPanel(){t.onMounted((()=>{}))}}const G={class:"link-panel"};const K=_($,[["render",function(e,o,s,i,a,l){const n=t.resolveComponent("Image"),r=t.resolveComponent("Spin");return t.openBlock(),t.createElementBlock("div",G,[t.withDirectives(t.createVNode(n,{src:e.tabPage.path,class:"link-ifr",ref:"ifrPanel",fit:"fill",alt:"fill",onOnLoad:e.doLoaded},null,8,["src","onOnLoad"]),[[t.vShow,!e.loading]]),t.createVNode(r,{size:"large",fix:"",show:e.loading},null,8,["show"])])}],["__scopeId","data-v-0be5a9a0"]]),X={loaderInfor:{type:Object,default:()=>({})}},Y=t.defineComponent({name:"LocalLoader",components:{LinkPanel:w,ImagePanel:K},emits:[""],props:X,setup:(e,t)=>new Z(e,t)});class Z extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"pages",t.ref([])),__publicField(this,"activePath",t.ref("")),this.props=e,this.ctx=o,this.useBusiness()}useBusiness(){t.onMounted((()=>{})),t.onUnmounted((()=>{h.off("pushPage"),h.off("clearAllPage"),h.off("closePage"),h.off("activePage"),h.off("closePageByCommand")})),h.on("pushPage",(e=>{this.pushPage(e)})),h.on("clearAllPage",(e=>{this.clearAllPage(e)})),h.on("closePage",(e=>{this.closePage(e)})),h.on("activePage",(e=>{this.activePage(e)})),h.on("closePageByCommand",(e=>{this.closePageByCommand(e)}))}pushPage(e){if(e.platformNo!=this.props.loaderInfor.platformNo)return;let o;if(0==e.loadMode){const s=this.storageInfo.getMenuComponts().find((t=>t.path==e.path));o=s?"function"==typeof s.component?t.shallowRef(s.component()):t.shallowRef(s.component):t.shallowRef(x)}this.pages.value.push({path:e.path,loadMode:e.loadMode,param:e.param,operates:e.operates,component:o})}clearAllPage(e){e.platformNo==this.props.loaderInfor.platformNo&&(this.pages.value=[])}closePage(e){if(e.platformNo!=this.props.loaderInfor.platformNo)return;const t=this.pages.value.findIndex((t=>t.path==e.path));this.pages.value.splice(t,1)}activePage(e){e.platformNo==this.props.loaderInfor.platformNo&&(this.activePath.value=e.path)}closePageByCommand(e){if(e.platformNo!=this.props.loaderInfor.platformNo)return;const t=this.pages.value.findIndex((e=>e.path==this.activePath.value));switch(e.command){case"left":if(0==t||1==t)return;this.pages.value.splice(1,t-1);break;case"right":if(t==this.pages.value.length-1)return;this.pages.value.splice(t+1);break;case"other":const e=this.pages.value.findIndex((e=>e.path==this.activePath.value)),o=this.pages.value[0];if(0==e)this.pages.value=[o];else{const t=this.pages.value[e];this.pages.value=[o,t]}break;case"all":this.pages.value.splice(1)}}}const ee={class:"local-loader"};const te=_(Y,[["render",function(e,o,s,i,a,l){const n=t.resolveComponent("LinkPanel"),r=t.resolveComponent("ImagePanel");return t.openBlock(),t.createElementBlock("div",ee,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(o=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.path},[0==o.loadMode?t.withDirectives((t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.component),{key:0,linkParam:o.param,operates:o.operates},null,8,["linkParam","operates"])),[[t.vShow,o.path==e.activePath]]):t.createCommentVNode("",!0),1==o.loadMode?t.withDirectives((t.openBlock(),t.createBlock(n,{key:1,tabPage:o},null,8,["tabPage"])),[[t.vShow,o.path==e.activePath]]):t.createCommentVNode("",!0),3==o.loadMode?t.withDirectives((t.openBlock(),t.createBlock(r,{key:2,tabPage:o},null,8,["tabPage"])),[[t.vShow,o.path==e.activePath]]):t.createCommentVNode("",!0)],64)))),128))])}],["__scopeId","data-v-a33049b3"]]),oe={loaderInfor:{type:Object,default:()=>({})}},se=t.defineComponent({name:"WebLoader",components:{},emits:["loaded"],props:oe,setup:(e,t)=>new ie(e,t)});class ie extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"commandStack",[]),__publicField(this,"loading",t.ref(!0)),__publicField(this,"ifrWeb",t.ref()),__publicField(this,"ifrId",t.ref("")),__publicField(this,"doLoaded",(()=>{t.nextTick((()=>{this.ctx.emit("loaded",this.props.loaderInfor.platformNo),this.loading.value=!1,this.sendMessage("initStorageInfo",{token:this.storageInfo.getToken(),user:JSON.stringify(this.storageInfo.getUser()),currentPlatform:JSON.stringify(this.storageInfo.getCurrentPlatform()),currentBusiness:JSON.stringify(this.storageInfo.getCurrentBusiness()),currentModule:JSON.stringify(this.storageInfo.getCurrentModule())}),this.sendStackCommand()}))})),__publicField(this,"getIfrUrl",(()=>this.props.loaderInfor.url+(-1!=this.props.loaderInfor.url.indexOf("?")?"&":"?")+"linkMain=true")),this.props=e,this.ctx=o,this.useWebLoader()}useWebLoader(){this.ifrId.value=this.utilities.getUniqueCode(),t.onUnmounted((()=>{h.off("pushPage"),h.off("clearAllPage"),h.off("closePage"),h.off("activePage"),h.off("closePageByCommand")})),h.on("pushPage",(e=>{this.pushPage(e)})),h.on("clearAllPage",(e=>{this.clearAllPage(e)})),h.on("closePage",(e=>{this.closePage(e)})),h.on("activePage",(e=>{this.activePage(e)})),h.on("closePageByCommand",(e=>{this.closePageByCommand(e)}))}sendMessage(e,t){if(this.loading.value)return void this.commandStack.push({command:e,data:t});const o={command:e,data:t};document.getElementById(this.ifrId.value).contentWindow.postMessage(o,"*")}sendStackCommand(){for(const e of this.commandStack)this.sendMessage(e.command,e.data);this.commandStack=[]}pushPage(e){e.platformNo==this.props.loaderInfor.platformNo&&this.sendMessage("pushPage",e)}clearAllPage(e){e.platformNo==this.props.loaderInfor.platformNo&&this.sendMessage("clearAllPage",e)}closePage(e){e.platformNo==this.props.loaderInfor.platformNo&&this.sendMessage("closePage",e)}activePage(e){e.platformNo==this.props.loaderInfor.platformNo&&this.sendMessage("activePage",e)}closePageByCommand(e){e.platformNo==this.props.loaderInfor.platformNo&&this.sendMessage("closePageByCommand",e)}}const ae={class:"web-loader"},le=["id","src","title"];const ne=_(se,[["render",function(e,o,s,i,a,l){const n=t.resolveComponent("Spin");return t.openBlock(),t.createElementBlock("div",ae,[t.createElementVNode("iframe",{id:e.ifrId,src:e.getIfrUrl(),class:"web-ifr",title:e.loaderInfor.platformNo,onLoad:o[0]||(o[0]=(...t)=>e.doLoaded&&e.doLoaded(...t))},null,40,le),t.createVNode(n,{size:"large",fix:"",show:e.loading},null,8,["show"])])}],["__scopeId","data-v-12870e01"]]),re=t.defineComponent({name:"LoaderManage",components:{LocalLoader:te,WebLoader:ne},emits:["loaded"],props:{},setup:(e,t)=>new ce(e,t)});let ce=class extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"pages",[]),__publicField(this,"loaderStack",t.ref([])),__publicField(this,"currentPlatformNo",t.ref("")),__publicField(this,"doLoaded",(e=>{const t=this.loaderStack.value.find((t=>t.platformNo==e));this.utilities.isNull(t)||(t.isloaded=!0,this.ctx.emit("loaded",t))})),__publicField(this,"loadPlatform",((e,t)=>{if(this.currentPlatformNo.value=t,-1!=this.loaderStack.value.findIndex((e=>e.platformNo==t)))return;if(!e)return;const o=this.isLocal(e,t);this.loaderStack.value.push({url:e,platformNo:t,isloaded:!!o,isLocal:o})})),__publicField(this,"pushPage",((e,t,o,s)=>{this.pages.push({path:e,loadMode:t,param:o,operates:s,component:void 0});const i={platformNo:this.currentPlatformNo.value,path:e,loadMode:t,param:o,operates:s};h.emit("pushPage",i)})),__publicField(this,"clearAllPage",(()=>{this.pages=[];const e={platformNo:this.currentPlatformNo.value};h.emit("clearAllPage",e)})),__publicField(this,"closePage",(e=>{const t=this.pages.findIndex((t=>t.path==e));this.pages.splice(t,1);const o={platformNo:this.currentPlatformNo.value,path:e};h.emit("closePage",o)})),__publicField(this,"activePage",(e=>{const t={platformNo:this.currentPlatformNo.value,path:e};h.emit("activePage",t)})),__publicField(this,"closePageByCommand",(e=>{const t={platformNo:this.currentPlatformNo.value,command:e};h.emit("closePageByCommand",t)})),this.props=e,this.ctx=o,this.useBusinessLoader()}useBusinessLoader(){t.onMounted((()=>{})),t.onUnmounted((()=>{}))}isLocal(e,t){if(!e)return!0;if(t==this.storageInfo.getPlatformNo())return!0;const o=new URL(e),s=new URL(location.href);return o.host==s.host&&o.port==s.host}};const de={class:"loader-manage"};const pe=_(re,[["render",function(e,o,s,i,a,l){const n=t.resolveComponent("LocalLoader"),r=t.resolveComponent("WebLoader");return t.openBlock(),t.createElementBlock("div",de,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.loaderStack,(o=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:o.platformNo,class:"loader-manage_content"},[o.isLocal?(t.openBlock(),t.createBlock(n,{key:0,loaderInfor:o},null,8,["loaderInfor"])):(t.openBlock(),t.createBlock(r,{key:1,loaderInfor:o,onLoaded:e.doLoaded},null,8,["loaderInfor","onLoaded"]))],512)),[[t.vShow,o.platformNo==e.currentPlatformNo]]))),128))])}],["__scopeId","data-v-ee346895"]]);t.defineComponent({name:"LoaderManage",components:{LocalLoader:te,WebLoader:ne},emits:["loaded"],props:{},setup:(e,t)=>new ue(e,t)});class ue extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"pages",[]),__publicField(this,"loaderStack",t.ref([])),__publicField(this,"currentPlatformNo",t.ref("")),__publicField(this,"doLoaded",(e=>{const t=this.loaderStack.value.find((t=>t.platformNo==e));this.utilities.isNull(t)||(t.isloaded=!0,this.ctx.emit("loaded",t))})),__publicField(this,"loadPlatform",((e,t)=>{if(this.currentPlatformNo.value=t,-1!=this.loaderStack.value.findIndex((e=>e.platformNo==t)))return;if(!e)return;const o=this.isLocal(e,t);this.loaderStack.value.push({url:e,platformNo:t,isloaded:!!o,isLocal:o})})),__publicField(this,"pushPage",((e,t,o,s)=>{this.pages.push({path:e,loadMode:t,param:o,operates:s,component:void 0});const i={platformNo:this.currentPlatformNo.value,path:e,loadMode:t,param:o,operates:s};h.emit("pushPage",i)})),__publicField(this,"clearAllPage",(()=>{this.pages=[];const e={platformNo:this.currentPlatformNo.value};h.emit("clearAllPage",e)})),__publicField(this,"closePage",(e=>{const t=this.pages.findIndex((t=>t.path==e));this.pages.splice(t,1);const o={platformNo:this.currentPlatformNo.value,path:e};h.emit("closePage",o)})),__publicField(this,"activePage",(e=>{const t={platformNo:this.currentPlatformNo.value,path:e};h.emit("activePage",t)})),__publicField(this,"closePageByCommand",(e=>{const t={platformNo:this.currentPlatformNo.value,command:e};h.emit("closePageByCommand",t)})),this.props=e,this.ctx=o,this.useBusinessLoader()}useBusinessLoader(){t.onMounted((()=>{})),t.onUnmounted((()=>{}))}isLocal(e,t){if(!e)return!0;if(t==this.storageInfo.getPlatformNo())return!0;const o=new URL(e),s=new URL(location.href);return o.host==s.host&&o.port==s.host}}e.BaseInstance=m,e.FreeLoginCenter=j,e.LinkMain=O,e.LoaderManage=pe,e.LoaderManageInstance=ue,e.MessageInstance=c,e.ModalInstance=p,e.Root=b,e.initWeb=function(e,t,a,l,c={}){W=l,e.use(o),e.use(n),(e=>{e.directive("focus",{mounted(e){e.focus(),e.select()}})})(e),i.storageInfo.setPlatformNo(t),i.storageInfo.setMenuComponts(a),function(e){r.interceptors.request.use((function(t){const o=i.storageInfo.getToken();!s.utilities.isNull(o)&&s.utilities.isNull(t.headers.Authorization)&&(t.headers.Authorization="Bearer "+o);const a=i.storageInfo.getPlatformNo();s.utilities.isNull(a)||(t.headers.PlatformNo=a);const l=i.storageInfo.getCurrentPlatform();s.utilities.isNull(l)||(t.headers.PlatformId=l.Id,t.headers.PlatformName=encodeURI(l.PlatformName));const n=i.storageInfo.getUser();s.utilities.isNull(n)||(t.headers.UserId=n.Id,t.headers.UserName=encodeURI(`${n.UserName}(${n.Account})`));const r=i.storageInfo.getCurrentModule();return s.utilities.isNull(r)||(t.headers.MenuId=r.Id,t.headers.MenuName=encodeURI(r.ModuleName),t.headers.MenuPath=encodeURI(r.ModuleUrl)),Object.assign(t,e),h.emit("axios-request",t),t}),(function(e){return Promise.reject(e)})),r.interceptors.response.use((function(e){return h.emit("axios-response",e),e}),(function(e){return e.response&&e.response.data&&"401"==e.response.data.code?(i.storageInfo.removeAll(),W.push("/Login"),o.Modal.warning({title:"系统消息",content:"登录授权已失效"})):e.response&&e.response.data&&"402"==e.response.data.code?(i.storageInfo.removeAll(),W.push("/Login"),o.Modal.warning({title:"系统消息",content:"当前账号已在其他地方登录"})):i.openObserve.error("请求异常",e),Promise.reject(e)}))}(c),function(){const e=window;if(s.utilities.isNull(e.openObserveOption))return;const t=e.openObserveOption;i.openObserve.init(t)}(),i.openObserve.info(`${t} 初始化完成`,{platformNo:t})},e.message=d,e.modal=u,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
var __defProp=Object.defineProperty,__defNormalProp=(e,t,o)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,__publicField=(e,t,o)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,o),o);!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("view-ui-plus"),require("@newview/tools"),require("@newview/infrastructure"),require("mitt"),require("vue-router"),require("vxe-table"),require("axios")):"function"==typeof define&&define.amd?define(["exports","vue","view-ui-plus","@newview/tools","@newview/infrastructure","mitt","vue-router","vxe-table","axios"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).BaseVue={},e.Vue,e.viewUiPlus,e.tools$1,e.infrastructure,e.mitt,e.VueRouter,e.VxeTable,e.axios)}(this,(function(e,t,o,s,i,a,l,n,r){"use strict";class c{constructor(){__publicField(this,"info",(e=>{o.Message.info(e)})),__publicField(this,"success",(e=>{o.Message.success(e)})),__publicField(this,"warning",(e=>{o.Message.warning(e)})),__publicField(this,"error",(e=>{o.Message.error(e)}))}}const d=new c;class p{constructor(){__publicField(this,"zIndex",1e4),__publicField(this,"confirm",(e=>{e["z-index"]=this.zIndex,o.Modal.confirm(e)})),__publicField(this,"info",(e=>{e["z-index"]=this.zIndex,o.Modal.info(e)})),__publicField(this,"success",(e=>{e["z-index"]=this.zIndex,o.Modal.success(e)})),__publicField(this,"warning",(e=>{e["z-index"]=this.zIndex,o.Modal.warning(e)})),__publicField(this,"error",(e=>{e["z-index"]=this.zIndex,o.Modal.error(e)}))}}const u=new p,h=a();class f{constructor(){__publicField(this,"utilities",new s.Utilities),__publicField(this,"storageInfo",i.storageInfo)}getEnterBIMParam(e){var t,o;return e+this.utilities.stringHelper.encryptAES(JSON.stringify({token:this.storageInfo.getToken(),userId:null==(t=this.storageInfo.getUser())?void 0:t.Id,projectId:null==(o=this.storageInfo.getCurrentPlatform())?void 0:o.Id}),"d2140707ca3a469c8527e546fe961276")}}class m{constructor(){__publicField(this,"message",new c),__publicField(this,"modal",new p),__publicField(this,"utilities",new s.Utilities),__publicField(this,"storageInfo",i.storageInfo),__publicField(this,"openObserve",i.openObserve),__publicField(this,"bus",h),__publicField(this,"otherCommon",new f),__publicField(this,"doInputControl",(e=>{this.utilities.isNull(e)||(e.target.readOnly=!1)}))}}const g={count:{type:Number,default:0}},v=t.defineComponent({name:"Root",components:{},emits:[""],props:g,setup:(e,t)=>new P(e,t)});class P extends m{constructor(e,t){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"router"),this.props=e,this.ctx=t,this.useRoot()}useRoot(){this.router=l.useRouter(),this.goPage()}goPage(){const e=this.getQueryString("linkMain");if(!this.utilities.isNull(e))return void this.router.replace("/LinkMain");const t=this.storageInfo.getToken();this.utilities.isNull(t)?this.router.replace("/Login"):this.router.replace(this.storageInfo.getCurrentDefaultPath())}getQueryString(e){let t=window.location.href.indexOf("?"),o=window.location.href.substring(t+1,window.location.href.length).split("&");for(const s of o){let t=s.split("=");if(t[0]==e)return t[1]}return""}}const _=(e,t)=>{const o=e.__vccOpts||e;for(const[s,i]of t)o[s]=i;return o},N={class:"root"};const b=_(v,[["render",function(e,o,s,i,a,l){return t.openBlock(),t.createElementBlock("div",N)}],["__scopeId","data-v-b392b4ac"]]),M={tabPage:{type:Object,default:()=>({})}},F=t.defineComponent({name:"LinkPanel",components:{},emits:[""],props:M,setup:(e,t)=>new k(e,t)});let k=class extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"loading",t.ref(!0)),__publicField(this,"ifrPanel",t.ref()),this.props=e,this.ctx=o,this.useLinkPanel()}useLinkPanel(){t.onMounted((()=>{this.bindLoadEvent()}))}bindLoadEvent(){const e=this.ifrPanel.value;e.attachEvent?e.attachEvent("onload",(()=>{this.doLoaded(e)})):e.onload=()=>{this.doLoaded(e)}}doLoaded(e){this.loading.value=!1,setTimeout((()=>{const t={token:this.storageInfo.getToken(),user:JSON.stringify(this.storageInfo.getUser()),currentPlatform:JSON.stringify(this.storageInfo.getCurrentPlatform()),currentBusiness:JSON.stringify(this.storageInfo.getCurrentBusiness()),currentModule:JSON.stringify(this.storageInfo.getCurrentModule())};e.contentWindow.postMessage(t,"*")}),20)}};const I={class:"link-panel"},B=["src","title"];const w=_(F,[["render",function(e,o,s,i,a,l){const n=t.resolveComponent("Spin");return t.openBlock(),t.createElementBlock("div",I,[t.withDirectives(t.createElementVNode("iframe",{src:e.tabPage.path,class:"link-ifr",title:e.tabPage.path,ref:"ifrPanel"},null,8,B),[[t.vShow,!e.loading]]),t.createVNode(n,{size:"large",fix:"",show:e.loading},null,8,["show"])])}],["__scopeId","data-v-37023fbf"]]),E=t.defineComponent({name:"noFondPage",components:{},emits:[""],props:{},setup:(e,t)=>new L(e,t)});let L=class extends m{constructor(e,t){super(),__publicField(this,"props"),__publicField(this,"ctx"),this.props=e,this.ctx=t}};const C={class:"nv-flex-col nv-full",style:{"font-size":"30px",color:"#ccc","align-items":"center","justify-content":"center"}},z=[t.createElementVNode("svg",{t:"1628837319071",class:"icon",viewBox:"0 0 2538 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8648",width:"600"},[t.createElementVNode("path",{d:"M127.82465799 723.813699h2085.873972c35.068493 0 63.824658-29.457534 63.824658-65.227398 0-36.471233-28.756164-65.227397-63.824658-65.227397H127.82465799c-35.068493 0-63.824658 29.457534-63.824658 65.227397 0 36.471233 28.756164 65.227397 63.824658 65.227398zM453.96164399 953.863014h301.589041c20.339726 0 37.172603-16.832877 37.172603-37.873973 0-21.041096-16.832877-37.873973-37.172603-37.873973h-301.589041c-20.339726 0-37.172603 16.832877-37.172603 37.873973 0.70137 21.041096 16.832877 37.873973 37.172603 37.873973zM2325.21643799 650.871233h247.583562c16.832877 0 30.158904-14.027397 30.158904-31.561644s-13.326027-31.561644-30.158904-31.561644h-247.583562c-16.832877 0-30.158904 14.027397-30.158904 31.561644s13.326027 31.561644 30.158904 31.561644z",fill:"#EBF7FF","p-id":"8649"}),t.createElementVNode("path",{d:"M210.58630099 848.657534h2186.169863c36.471233 0 65.227397-29.457534 65.227398-65.227397 0-36.471233-29.457534-65.227397-65.227398-65.227397H210.58630099c-36.471233 0-65.227397 29.457534-65.227397 65.227397-0.70137 35.769863 28.756164 65.227397 65.227397 65.227397z",fill:"#EBF7FF","p-id":"8650"}),t.createElementVNode("path",{d:"M1040.59908632 335.254795h-16.131506V152.19726c0-37.873973 1.40274-60.317808 4.208219-93.282192H912.94977132c-14.728767 21.742466-25.249315 35.769863-52.602739 67.331507L738.30867532 268.624658c-28.756164 33.665753-28.756164 33.665753-54.005479 61.720547v100.997261c21.041096-1.40274 36.471233-2.10411 73.643836-2.10411h159.912328v27.353425c0 27.353425-1.40274 51.2-4.208219 70.136986h116.427397c-3.506849-21.742466-4.208219-37.873973-4.208219-69.435616v-28.054795h16.832877c17.534247 0 38.575342 1.40274 55.408219 3.506849V330.345205c-21.041096 2.805479-39.978082 4.909589-57.512329 4.90959z m-122.739726-64.526028v65.227397h-114.323287l82.060274-100.29589c15.430137-18.936986 23.846575-30.158904 35.068493-46.290411-2.10411 25.249315-2.805479 56.109589-2.80548 81.358904zM1504.90593632 163.419178c-8.416438-22.443836-22.443836-44.186301-41.380822-62.421918-34.367123-33.665753-82.060274-52.60274-137.468493-52.602739-70.838356 0-129.753425 31.561644-164.120548 89.073972-21.742466 35.769863-35.769863 96.789041-35.769863 155.70411 0 45.589041 7.013699 89.073973 21.742465 129.052055 8.416438 22.443836 22.443836 44.186301 41.380822 62.421917 34.367123 34.367123 81.358904 52.60274 136.767124 52.60274 71.539726 0 131.156164-31.561644 164.821917-87.671233 21.742466-35.769863 35.769863-97.490411 35.769863-156.405479 0.70137-46.290411-7.013699-89.775342-21.742465-129.753425zM1327.45936032 441.863014c-56.109589 0-84.865753-51.90137-84.865753-152.89863 0-91.879452 30.860274-145.183562 84.164384-145.183562 54.706849 0 84.164384 50.49863 84.164383 147.287671 0 99.594521-28.054795 150.794521-83.463014 150.794521zM1913.10319632 335.254795h-16.131507V152.19726c0-37.873973 1.40274-60.317808 4.208219-93.282192h-115.726027c-14.728767 21.742466-25.249315 35.769863-52.60274 67.331507l-122.739726 143.079452c-28.756164 33.665753-28.756164 33.665753-54.005479 61.720548v100.997261c21.041096-1.40274 36.471233-2.10411 73.643835-2.10411H1789.66210032v27.353425c0 27.353425-1.40274 51.2-4.208219 70.136986H1901.88127832c-3.506849-21.742466-4.208219-37.873973-4.208219-69.435616v-28.054795h16.832877c17.534247 0 38.575342 1.40274 55.408219 3.506849V330.345205c-20.339726 2.805479-39.276712 4.909589-56.810959 4.90959z m-122.739726-64.526028v65.227397h-114.323288l82.060274-100.29589c15.430137-18.936986 23.846575-30.158904 35.068493-46.290411-2.10411 25.249315-2.805479 56.109589-2.805479 81.358904zM2298.15525132 537.950685l-257.40274-0.70137V280.547945c142.378082 0 257.40274 115.024658 257.40274 257.40274zM234.72511432 537.950685c0-206.90411 167.627397-374.531507 375.232877-374.531507v373.128767l-375.232877 1.40274z",fill:"#CFF0FF","p-id":"8651"}),t.createElementVNode("path",{d:"M952.460274 740.646575c42.082192-8.416438 73.643836-25.950685 71.539726-39.978082-2.805479-14.027397-39.276712-18.936986-81.358904-10.520548s-73.643836 25.950685-71.539726 39.978082m176.043835-142.378082c42.082192-8.416438 73.643836-25.950685 71.539727-39.978082-2.805479-14.027397-39.276712-18.936986-81.358905-10.520548-42.082192 8.416438-73.643836 25.950685-71.539726 39.978082m758.180822 218.126028c24.547945-9.117808 40.679452-21.041096 38.575343-31.561644-2.805479-14.027397-39.276712-18.936986-81.358904-10.520548-42.082192 8.416438-73.643836 25.950685-71.539726 39.978082m394.169863-49.79726c24.547945-9.117808 40.679452-21.041096 38.575342-31.561644-2.805479-14.027397-39.276712-18.936986-81.358904-10.520548-42.082192 8.416438-73.643836 25.950685-71.539726 39.978082m124.142466-75.747945c42.082192-8.416438 73.643836-25.950685 71.539726-39.978082-2.805479-14.027397-39.276712-18.936986-81.358904-10.520548-42.082192 8.416438-73.643836 25.950685-71.539726 39.978082",fill:"#396B99","p-id":"8652"}),t.createElementVNode("path",{d:"M1069.589041 590.553425c0-88.372603-71.539726-159.912329-159.912329-159.912329s-159.912329 71.539726-159.912328 159.912329",fill:"#F9DA3E","p-id":"8653"}),t.createElementVNode("path",{d:"M573.019178 318.421918l204.8 204.8-31.561644 31.561644-204.8-204.8 31.561644-31.561644z m-61.720548 58.915068L716.09863 582.136986l-31.561644 31.561644-204.8-204.8 31.561644-31.561644z m-63.123288 61.019178l204.8 204.8-31.561643 31.561644L416.613699 469.917808l31.561643-31.561644z m-61.019178 61.019178l204.8 204.8-31.561643 31.561644-204.8-204.8 31.561643-31.561644z m-51.901369 70.838357L540.054795 775.013699l-31.561644 31.561643-204.8-204.8 31.561644-31.561643z",fill:"#CFF0FF","p-id":"8654"}),t.createElementVNode("path",{d:"M2054.89680366 665.6c0-129.753425-105.205479-234.958904-234.958904-234.958904s-234.958904 105.205479-234.958904 234.958904",fill:"#568EC8","p-id":"8655"}),t.createElementVNode("path",{d:"M1102.553425 616.50411c0-28.756164-23.846575-51.90137-52.60274-51.90137-29.457534 0-52.60274 23.145205-52.60274 51.90137m509.895891-37.873973c0-37.873973-30.860274-68.032877-69.435617-68.032877s-69.435616 30.860274-69.435616 68.032877",fill:"#396B99","p-id":"8656"}),t.createElementVNode("path",{d:"M1643.309589 741.347945c0-82.761644-68.734247-150.794521-152.89863-150.79452s-152.89863 67.331507-152.89863 150.79452",fill:"#78C5FD","p-id":"8657"}),t.createElementVNode("path",{d:"M1723.265753 795.353425c0-44.186301-35.769863-79.956164-79.956164-79.956165s-79.956164 35.769863-79.956164 79.956165",fill:"#396B99","p-id":"8658"}),t.createElementVNode("path",{d:"M651.572603 791.145205l-152.197261 0.70137c0-124.142466 100.29589-184.460274 224.438357-184.460274v138.871233",fill:"#0E1D80","fill-opacity":".1","p-id":"8659"}),t.createElementVNode("path",{d:"M449.16894933 791.846575c0-124.142466 100.29589-224.438356 224.438357-224.438356v223.736986",fill:"#78C5FD","p-id":"8660"}),t.createElementVNode("path",{d:"M1997.50137 744.854795c0-79.956164-64.526027-144.482192-144.482192-144.482192v143.780822",fill:"#F9DA3E","p-id":"8661"}),t.createElementVNode("path",{d:"M1798.312329 627.726027c0 6.312329 4.208219 11.221918 9.117808 11.221918s9.117808-4.909589 9.117808-11.221918-4.208219-11.221918-9.117808-11.221917-9.117808 4.909589-9.117808 11.221917zM1763.243836 627.726027c0 6.312329 4.208219 11.221918 9.117808 11.221918 4.909589 0 9.117808-4.909589 9.117808-11.221918s-4.208219-11.221918-9.117808-11.221917c-4.909589 0-9.117808 4.909589-9.117808 11.221917zM1728.175342 627.726027c0 6.312329 4.208219 11.221918 9.117809 11.221918 4.909589 0 9.117808-4.909589 9.117808-11.221918 0-6.312329-4.208219-11.221918-9.117808-11.221917-4.909589 0-9.117808 4.909589-9.117809 11.221917zM1690.30137 627.726027c0 6.312329 4.208219 11.221918 9.117808 11.221918 4.909589 0 9.117808-4.909589 9.117808-11.221918s-4.208219-11.221918-9.117808-11.221917c-4.909589 0-9.117808 4.909589-9.117808 11.221917zM1655.232877 627.726027c0 6.312329 4.208219 11.221918 9.117808 11.221918 4.909589 0 9.117808-4.909589 9.117808-11.221918s-4.208219-11.221918-9.117808-11.221917c-4.909589 0-9.117808 4.909589-9.117808 11.221917zM1798.312329 594.761644c0 6.312329 4.208219 11.221918 9.117808 11.221918s9.117808-4.909589 9.117808-11.221918-4.208219-11.221918-9.117808-11.221918-9.117808 4.909589-9.117808 11.221918zM1763.243836 594.761644c0 6.312329 4.208219 11.221918 9.117808 11.221918 4.909589 0 9.117808-4.909589 9.117808-11.221918s-4.208219-11.221918-9.117808-11.221918c-4.909589 0-9.117808 4.909589-9.117808 11.221918zM1728.175342 594.761644c0 6.312329 4.208219 11.221918 9.117809 11.221918 4.909589 0 9.117808-4.909589 9.117808-11.221918 0-6.312329-4.208219-11.221918-9.117808-11.221918-4.909589 0-9.117808 4.909589-9.117809 11.221918zM1690.30137 594.761644c0 6.312329 4.208219 11.221918 9.117808 11.221918 4.909589 0 9.117808-4.909589 9.117808-11.221918s-4.208219-11.221918-9.117808-11.221918c-4.909589 0-9.117808 4.909589-9.117808 11.221918zM1798.312329 559.693151c0 6.312329 4.208219 11.221918 9.117808 11.221917s9.117808-4.909589 9.117808-11.221917-4.208219-11.221918-9.117808-11.221918-9.117808 4.909589-9.117808 11.221918zM1763.243836 559.693151c0 6.312329 4.208219 11.221918 9.117808 11.221917 4.909589 0 9.117808-4.909589 9.117808-11.221917s-4.208219-11.221918-9.117808-11.221918c-4.909589 0-9.117808 4.909589-9.117808 11.221918zM1728.175342 559.693151c0 6.312329 4.208219 11.221918 9.117809 11.221917 4.909589 0 9.117808-4.909589 9.117808-11.221917 0-6.312329-4.208219-11.221918-9.117808-11.221918-4.909589 0-9.117808 4.909589-9.117809 11.221918zM1798.312329 523.923288c0 6.312329 4.208219 11.221918 9.117808 11.221917s9.117808-4.909589 9.117808-11.221917-4.208219-11.221918-9.117808-11.221918-9.117808 5.610959-9.117808 11.221918zM1763.243836 523.923288c0 6.312329 4.208219 11.221918 9.117808 11.221917 4.909589 0 9.117808-4.909589 9.117808-11.221917s-4.208219-11.221918-9.117808-11.221918c-4.909589 0.70137-9.117808 5.610959-9.117808 11.221918zM1798.312329 488.854795c0 6.312329 4.909589 11.221918 11.221918 11.221917 6.312329 0 11.221918-4.909589 11.221917-11.221917s-4.909589-11.221918-11.221917-11.221918c-6.312329 0-11.221918 4.909589-11.221918 11.221918z",fill:"#CFF0FF","p-id":"8662"}),t.createElementVNode("path",{d:"M1077.30411 851.463014c0 18.936986 65.227397 34.367123 145.884931 34.367123s145.884932-15.430137 145.884932-34.367123-65.227397-34.367123-145.884932-34.367124-145.884932 15.430137-145.884931 34.367124z",fill:"#396B99","p-id":"8663"}),t.createElementVNode("path",{d:"M1173.391781 723.813699c11.221918 24.547945 0.70137 132.558904-2.80548 132.558904l-6.312328 0.70137-4.20822-52.60274s-12.624658-68.734247-13.326027-74.345206l18.235616-11.221917 8.416439 4.909589z",fill:"#396B99","p-id":"8664"}),t.createElementVNode("path",{d:"M1139.024658 718.20274l12.624657 11.221918c4.909589 0.70137-13.326027 120.635616-21.041096 125.545205l-6.312329-0.70137v-60.317808c0-11.923288-6.312329-51.90137-2.805479-71.539726",fill:"#396B99","p-id":"8665"}),t.createElementVNode("path",{d:"M1136.219178 640.350685l17.534247 4.909589-0.70137-10.520548-13.326028-10.520548c0 5.610959-3.506849 16.131507-3.506849 16.131507z",fill:"#FFE4A8","p-id":"8666"}),t.createElementVNode("path",{d:"M1153.753425 635.441096s-7.715068-4.909589-9.819178-7.715069c-5.610959-4.909589 8.416438-23.145205 13.326027-23.145205l11.923288 5.610959 2.805479 7.013698-2.104109 11.221918-3.50685-0.70137-5.610959 9.117809-7.013698-1.40274z",fill:"#FFE4A8","p-id":"8667"}),t.createElementVNode("path",{d:"M1171.989041 615.80274c-3.506849 0-14.728767-4.909589-14.728767-7.013699 0.70137 2.10411-3.506849 10.520548-7.013699 10.520548s-10.520548-9.117808-11.221917-3.506849c0.70137 1.40274 3.506849 15.430137 0 14.027397-14.027397-3.506849-8.416438-39.276712 18.235616-35.769863 36.471233 10.520548 18.235616 21.742466 14.728767 21.742466z",fill:"#396B99","p-id":"8668"}),t.createElementVNode("path",{d:"M1139.024658 622.816438c-2.805479-3.506849 0-10.520548 3.506849-10.520548 2.10411 0 4.909589 1.40274 5.610959 3.50685 2.805479 12.624658-4.208219 15.430137-9.117808 7.013698z",fill:"#FFE4A8","p-id":"8669"}),t.createElementVNode("path",{d:"M1162.871233 638.947945c4.208219 1.40274 9.117808 9.819178 9.117808 14.027397 0.70137 4.909589-0.70137 19.638356-0.70137 19.638357l18.936987-6.312329-0.70137 6.312329s-13.326027 9.819178-18.936987 11.923287c-2.10411 0.70137-5.610959 0-7.013698-0.70137-7.715068-4.208219-15.430137-19.638356-14.027398-30.860274 0-0.70137-2.10411-17.534247 13.326028-14.027397z",fill:"#78C5FD","p-id":"8670"}),t.createElementVNode("path",{d:"M1119.386301 739.243836c10.520548 7.013699 49.79726 7.013699 56.810959-0.70137 4.909589-17.534247-5.610959-89.073973-12.624657-95.386302 0-1.40274-9.117808-5.610959-9.117808-5.610959s-14.728767-5.610959-19.638357-2.805479c-7.715068 9.117808-23.145205 86.969863-15.430137 104.50411z",fill:"#568EC8","p-id":"8671"}),t.createElementVNode("path",{d:"M1109.567123 636.843836c-0.70137 3.506849 1.40274 4.208219 4.208219 5.610959 7.715068 3.506849 1.40274 21.041096-11.923287 35.068493-16.131507 16.832877 5.610959 47.693151 23.846575 33.665753 5.610959-4.208219 4.208219-16.832877 4.208219-16.832877v-48.39452l3.50685-2.10411 7.715068 4.208219c-4.909589 11.923288-4.909589 21.742466 0 24.547946 2.10411 1.40274 3.506849 1.40274 5.610959 0 0.70137-2.805479 4.208219-14.728767 1.40274-28.756165-4.909589-11.221918-37.172603-17.534247-38.575343-7.013698z",fill:"#396B99","p-id":"8672"}),t.createElementVNode("path",{d:"M1131.309589 641.753425c-19.638356 14.728767-9.117808 58.213699-3.506849 59.616438 11.221918 2.10411 37.172603-12.624658 37.172602-12.624658l-0.701369-5.610958-26.652055-0.70137s8.416438-31.561644 2.805479-38.575343c-1.40274-1.40274-4.208219-2.10411-9.117808-2.104109z",fill:"#78C5FD","p-id":"8673"}),t.createElementVNode("path",{d:"M1165.676712 667.00274c1.40274 2.10411 4.208219 2.10411 4.909589 0 0.70137 0-1.40274-27.353425-7.715068-29.457535-2.805479-2.10411-7.013699 0.70137-4.909589 2.10411 6.312329 1.40274 8.416438 28.756164 7.715068 27.353425z",fill:"#396B99","p-id":"8674"}),t.createElementVNode("path",{d:"M1190.926027 657.884932l-21.742465-3.50685-3.50685 39.276713 21.742466 3.506849 11.221918-3.506849 7.013699-42.783562-14.728768 7.013699z",fill:"#FFE4A8","p-id":"8675"}),t.createElementVNode("path",{d:"M1192.328767 657.884932l2.10411 0.701369-7.013699 39.276713-2.10411-0.70137 7.013699-39.276712z",fill:"#F49130","p-id":"8676"}),t.createElementVNode("path",{d:"M1172.690411 682.432877c1.40274 2.10411 0.70137 4.208219-1.40274 5.610959-1.40274 1.40274-7.013699 1.40274-7.715068 0.701369-1.40274-1.40274-2.805479-3.506849-2.10411-5.610958 0.70137-2.805479 9.117808-4.208219 11.221918-0.70137z",fill:"#FFE4A8","p-id":"8677"}),t.createElementVNode("path",{d:"M1143.934247 861.983562c1.40274-2.10411-7.715068-7.715068-12.624658-9.819178l-8.416438-0.70137c-0.70137 2.805479-4.909589 6.312329-3.50685 8.416438 2.10411 2.10411 22.443836 4.208219 24.547946 2.10411z m42.082191-2.10411c1.40274-2.10411-8.416438-5.610959-13.326027-7.013699l-8.416438-0.701369c-0.70137 2.10411-4.909589 4.909589-2.80548 7.013698 2.10411 2.10411 23.145205 2.805479 24.547945 0.70137zM1327.693151 859.879452c-3.506849 2.805479-25.249315 1.40274-26.652055 0-1.40274-1.40274 1.40274-9.819178 1.40274-9.819178h11.221917c0-0.70137 17.534247 6.312329 14.027398 9.819178z m-108.712329-7.013699c3.506849 0-1.40274-18.936986-1.40274-18.936986l-7.013698-6.312329s-8.416438 2.805479-8.416439 5.610959c-0.70137 2.805479 13.326027 19.638356 16.832877 19.638356z",fill:"#F49130","p-id":"8678"}),t.createElementVNode("path",{d:"M1279.29863 732.931507l23.846575-2.80548c7.715068 18.235616 11.923288 39.978082 13.326028 62.421918l-3.506849 58.915069-10.520548 2.805479-4.20822-54.706849c0.70137 0.70137-19.638356-39.276712-18.936986-66.630137z",fill:"#396B99","p-id":"8679"}),t.createElementVNode("path",{d:"M1247.736986 730.126027v58.915069l-38.575342 39.978082 6.312329 9.819178s46.991781-32.964384 56.810959-46.290411c4.208219-5.610959 14.027397-61.720548 14.027397-61.720548h-38.575343z",fill:"#396B99","p-id":"8680"}),t.createElementVNode("path",{d:"M1290.520548 630.531507l4.909589-2.80548s8.416438 7.715068 7.715068 9.117809-4.909589 4.208219-7.013698 0.701369c-2.10411-2.805479-5.610959-7.013699-5.610959-7.013698z",fill:"#FFE4A8","p-id":"8681"}),t.createElementVNode("path",{d:"M1295.430137 637.545205l8.416438-1.402739s8.416438 12.624658 7.013699 16.832876c-1.40274 4.208219-16.131507 15.430137-16.131507 15.430137l-8.416438-11.923287 12.624657-8.416439-3.506849-10.520548z",fill:"#78C5FD","p-id":"8682"}),t.createElementVNode("path",{d:"M1263.868493 645.260274l18.936986 4.909589-1.402739-11.923288-16.131507-9.819178-1.40274 16.832877z",fill:"#FFE4A8","p-id":"8683"}),t.createElementVNode("path",{d:"M1293.326027 675.419178c1.40274 2.10411 4.208219 2.10411 4.909589 0 0.70137 0-1.40274-26.652055-7.715068-29.457534-2.805479-2.10411-7.013699 0.70137-4.909589 2.104109 6.312329 1.40274 9.117808 28.054795 7.715068 27.353425z",fill:"#396B99","p-id":"8684"}),t.createElementVNode("path",{d:"M1264.569863 643.857534c4.208219-1.40274 21.041096 2.10411 23.145205 4.208219 2.10411 2.10411 9.819178 21.041096 11.923288 28.756165 5.610959 17.534247 16.832877 65.928767 12.624658 70.838356-4.208219 5.610959-58.213699 7.013699-65.928767 2.805479-6.312329-3.506849-2.10411-61.019178 2.805479-80.657534 2.805479-7.715068 10.520548-24.547945 15.430137-25.950685z",fill:"#568EC8","p-id":"8685"}),t.createElementVNode("path",{d:"M1218.279452 799.561644c-0.70137-0.70137-0.70137-1.40274 0-2.10411l101.69863-105.205479c0.70137-0.70137 1.40274-0.70137 2.10411 0 0.70137 0.70137 0.70137 1.40274 0 2.104109L1220.383562 799.561644h-2.10411z",fill:"#1B5A89","p-id":"8686"}),t.createElementVNode("path",{d:"M1279.29863 704.876712h23.846575l0.70137 6.312329-24.547945 3.506849v-9.819178z",fill:"#FFE4A8","p-id":"8687"}),t.createElementVNode("path",{d:"M1237.917808 648.065753c-0.70137 3.506849 1.40274 4.909589 4.909589 6.312329 9.117808 3.506849 2.10411 23.846575-12.624657 38.575343-17.534247 18.936986 7.715068 52.60274 27.353424 37.172602 6.312329-4.909589 4.208219-18.235616 4.20822-18.235616l-1.40274-53.30411 3.506849-2.805479 9.117808 4.208219c-4.909589 13.326027-4.909589 23.846575 0.70137 27.353425 2.10411 1.40274 3.506849 1.40274 5.610959 0 1.40274-3.506849 4.208219-16.131507 1.40274-31.561644-5.610959-14.027397-41.380822-19.638356-42.783562-7.715069z",fill:"#396B99","p-id":"8688"}),t.createElementVNode("path",{d:"M1261.764384 652.273973c-6.312329 5.610959-9.117808 16.131507-11.221918 27.353424-2.805479 31.561644 7.013699 40.679452 11.221918 40.679452 4.208219 0 22.443836-2.805479 22.443835-2.805479l-0.70137-12.624658-16.131507-0.70137s8.416438-21.742466 7.013699-39.978082c0-4.909589-4.208219-15.430137-12.624657-11.923287z",fill:"#78C5FD","p-id":"8689"}),t.createElementVNode("path",{d:"M1310.860274 701.369863c2.10411 0.70137 2.10411 3.506849 2.10411 3.506849-0.70137 2.10411-4.208219 7.715068-6.312329 7.715069-2.10411 0-7.715068-2.10411-4.909589-5.610959 2.10411-4.208219 7.013699-6.312329 9.117808-5.610959z m-24.547945-58.915068l5.610959-9.117809 4.208219-0.70137-1.40274-18.235616-13.326027-9.117808-16.131507 9.117808-0.70137 18.936986c6.312329 7.715068 21.742466 9.117808 21.742466 9.117809z",fill:"#FFE4A8","p-id":"8690"}),t.createElementVNode("path",{d:"M1274.389041 596.865753c7.715068-1.40274 16.131507-0.70137 20.339726 3.50685 4.208219 4.208219 6.312329 11.923288 0 16.131507-7.013699 0.70137-7.715068 2.805479-14.728767-0.70137 0 0-0.70137 3.506849-2.805479 6.312328-2.10411 3.506849-8.416438 1.40274-8.416439 1.40274s0 9.819178-7.013698 9.819178c-12.624658-1.40274-9.117808-30.860274 12.624657-36.471233z",fill:"#396B99","p-id":"8691"}),t.createElementVNode("path",{d:"M1275.090411 625.621918c0-2.10411 0-4.909589-2.10411-5.610959-2.805479-2.10411-5.610959 0-5.610959 2.805479-0.70137 2.805479 1.40274 5.610959 3.50685 6.312329 2.10411 1.40274 4.208219-0.70137 4.208219-3.506849z",fill:"#FFDB73","p-id":"8692"})],-1),t.createElementVNode("div",{style:{"margin-top":"30px"}},"抱歉,该功能暂未开放,请联系管理员",-1)];const x=_(E,[["render",function(e,o,s,i,a,l){return t.openBlock(),t.createElementBlock("div",C,z)}]]),V=t.defineComponent({name:"LinkMain",components:{LinkPanel:w},emits:[""],props:{},setup:(e,t)=>new y(e,t)});class y extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"pages",t.ref([])),__publicField(this,"activePath",t.ref("")),this.props=e,this.ctx=o,this.useLinkMain()}useLinkMain(){const e=e=>{this.receiveMessage(e)};window.addEventListener("message",e),t.onUnmounted((()=>{window.removeEventListener("message",e)}))}receiveMessage(e){if(e.source!=window.parent.window.parent)return;const t=e.data;switch(t.command){case"initStorageInfo":this.initStorageInfo(t.data);break;case"pushPage":this.pushPage(t.data);break;case"clearAllPage":this.clearAllPage(t.data);break;case"closePage":this.closePage(t.data);break;case"activePage":this.activePage(t.data);break;case"closePageByCommand":this.closePageByCommand(t.data)}}initStorageInfo(e){const t=e.token,o=this.utilities.isNull(e.user)?void 0:JSON.parse(e.user),s=this.utilities.isNull(e.currentPlatform)?void 0:JSON.parse(e.currentPlatform),i=this.utilities.isNull(e.currentBusiness)?void 0:JSON.parse(e.currentBusiness),a=this.utilities.isNull(e.currentModule)?void 0:JSON.parse(e.currentModule);this.storageInfo.setToken(t),this.storageInfo.setUser(o),this.storageInfo.setCurrentPlatform(s),this.storageInfo.setCurrentBusiness(i),this.storageInfo.setCurrentModule(a)}pushPage(e){let o;if(0==e.loadMode){const s=this.storageInfo.getMenuComponts().find((t=>t.path==e.path));o=s?"function"==typeof s.component?t.shallowRef(s.component()):t.shallowRef(s.component):t.shallowRef(x)}this.pages.value.push({path:e.path,loadMode:e.loadMode,param:e.param,operates:e.operates,component:o})}clearAllPage(e){this.pages.value=[]}closePage(e){const t=this.pages.value.findIndex((t=>t.path==e.path));this.pages.value.splice(t,1)}activePage(e){this.activePath.value=e.path}closePageByCommand(e){const t=this.pages.value.findIndex((e=>e.path==this.activePath.value));switch(e.command){case"left":if(0==t||1==t)return;this.pages.value.splice(1,t-1);break;case"right":if(t==this.pages.value.length-1)return;this.pages.value.splice(t+1);break;case"other":const e=this.pages.value.findIndex((e=>e.path==this.activePath.value)),o=this.pages.value[0];if(0==e)this.pages.value=[o];else{const t=this.pages.value[e];this.pages.value=[o,t]}break;case"all":this.pages.value.splice(1)}}}const S={class:"line-main"};const O=_(V,[["render",function(e,o,s,i,a,l){const n=t.resolveComponent("LinkPanel");return t.openBlock(),t.createElementBlock("div",S,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(o=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.path},[0==o.loadMode?t.withDirectives((t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.component),{key:0,linkParam:o.param,operates:o.operates},null,8,["linkParam","operates"])),[[t.vShow,o.path==e.activePath]]):t.createCommentVNode("",!0),1==o.loadMode?t.withDirectives((t.openBlock(),t.createBlock(n,{key:1,tabPage:o},null,8,["tabPage"])),[[t.vShow,o.path==e.activePath]]):t.createCommentVNode("",!0)],64)))),128))])}],["__scopeId","data-v-026a2cc9"]]),A=t.defineComponent({name:"FreeLoginCenter",components:{},emits:[""],props:{},setup:(e,t)=>new U(e,t)});class U extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"router"),__publicField(this,"errTip",t.ref("")),this.props=e,this.ctx=o,this.router=l.useRouter(),this.init()}async init(){let e=this.getRequestParam();if(e&&e.u&&e.t){let t=this.utilities.parseApiResult(await i.request(`/PermissionApi/ThirdOAuth/OAuthByToken?account=${decodeURIComponent(e.u)}&token=${decodeURIComponent(e.t)}`,{method:"post",data:{}}));if(t&&t.Token){this.storageInfo.setToken(t.Token),this.storageInfo.setUser(t.User),this.storageInfo.setPlatforms(t.Platforms),localStorage.setItem("needChangePsw",t.NeedChangePsw);const e=this.storageInfo.getPlatforms();if(!this.utilities.isNull(e)&&e.length>0){const t=e.find((e=>e.PlatformNo==this.storageInfo.getPlatformNo()));this.storageInfo.setCurrentPlatform(this.utilities.isNull(t)?e[0]:t)}const o=this.storageInfo.getCurrentPlatform();!this.utilities.isNull(o)&&o.Modules.length>0&&this.storageInfo.setCurrentBusiness(o.Modules[0]),this.router.replace("/")}else this.errLogin()}else this.errLogin()}errLogin(){this.router.replace("/Login")}getRequestParam(){let e=window.location.href.split("?")[1];if(!e)return!1;let t={};return e.split("&").forEach((e=>{0==e.indexOf("u=")?t.u=e.replace("u=",""):0==e.indexOf("t=")&&(t.t=e.replace("t=",""))})),t}}const R=e=>(t.pushScopeId("data-v-08b85823"),e=e(),t.popScopeId(),e),D={class:"nv-full nv-pos-a"},T={key:0,style:{"text-align":"center","padding-top":"20%","font-size":"25px"}},q={key:1,class:"loader"},J=[R((()=>t.createElementVNode("div",{class:"loader-inner line-scale"},[t.createElementVNode("div"),t.createElementVNode("div"),t.createElementVNode("div"),t.createElementVNode("div"),t.createElementVNode("div")],-1))),R((()=>t.createElementVNode("div",null,"正在初始化数据,请稍候...",-1)))];const j=_(A,[["render",function(e,o,s,i,a,l){return t.openBlock(),t.createElementBlock("div",D,[e.errTip?(t.openBlock(),t.createElementBlock("div",T,t.toDisplayString(e.errTip),1)):(t.openBlock(),t.createElementBlock("div",q,J))])}],["__scopeId","data-v-08b85823"]]);let W,$;const H={tabPage:{type:Object,default:()=>({})}},Q=t.defineComponent({name:"LinkPanel",components:{},emits:[""],props:H,setup:(e,t)=>new G(e,t)});class G extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"loading",t.ref(!0)),__publicField(this,"ifrPanel",t.ref()),__publicField(this,"doLoaded",(()=>{this.loading.value=!1})),this.props=e,this.ctx=o,this.useLinkPanel()}useLinkPanel(){t.onMounted((()=>{}))}}const K={class:"link-panel"};const X=_(Q,[["render",function(e,o,s,i,a,l){const n=t.resolveComponent("Image"),r=t.resolveComponent("Spin");return t.openBlock(),t.createElementBlock("div",K,[t.withDirectives(t.createVNode(n,{src:e.tabPage.path,class:"link-ifr",ref:"ifrPanel",fit:"fill",alt:"fill",onOnLoad:e.doLoaded},null,8,["src","onOnLoad"]),[[t.vShow,!e.loading]]),t.createVNode(r,{size:"large",fix:"",show:e.loading},null,8,["show"])])}],["__scopeId","data-v-0be5a9a0"]]),Y={loaderInfor:{type:Object,default:()=>({})}},Z=t.defineComponent({name:"LocalLoader",components:{LinkPanel:w,ImagePanel:X},emits:[""],props:Y,setup:(e,t)=>new ee(e,t)});class ee extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"pages",t.ref([])),__publicField(this,"activePath",t.ref("")),this.props=e,this.ctx=o,this.useBusiness()}useBusiness(){t.onMounted((()=>{})),t.onUnmounted((()=>{h.off("pushPage"),h.off("clearAllPage"),h.off("closePage"),h.off("activePage"),h.off("closePageByCommand")})),h.on("pushPage",(e=>{this.pushPage(e)})),h.on("clearAllPage",(e=>{this.clearAllPage(e)})),h.on("closePage",(e=>{this.closePage(e)})),h.on("activePage",(e=>{this.activePage(e)})),h.on("closePageByCommand",(e=>{this.closePageByCommand(e)}))}pushPage(e){if(e.platformNo!=this.props.loaderInfor.platformNo)return;let o;if(0==e.loadMode){const s=this.storageInfo.getMenuComponts().find((t=>t.path==e.path));o=s?"function"==typeof s.component?t.shallowRef(s.component()):t.shallowRef(s.component):t.shallowRef(x)}this.pages.value.push({path:e.path,loadMode:e.loadMode,param:e.param,operates:e.operates,component:o})}clearAllPage(e){e.platformNo==this.props.loaderInfor.platformNo&&(this.pages.value=[])}closePage(e){if(e.platformNo!=this.props.loaderInfor.platformNo)return;const t=this.pages.value.findIndex((t=>t.path==e.path));this.pages.value.splice(t,1)}activePage(e){e.platformNo==this.props.loaderInfor.platformNo&&(this.activePath.value=e.path)}closePageByCommand(e){if(e.platformNo!=this.props.loaderInfor.platformNo)return;const t=this.pages.value.findIndex((e=>e.path==this.activePath.value));switch(e.command){case"left":if(0==t||1==t)return;this.pages.value.splice(1,t-1);break;case"right":if(t==this.pages.value.length-1)return;this.pages.value.splice(t+1);break;case"other":const e=this.pages.value.findIndex((e=>e.path==this.activePath.value)),o=this.pages.value[0];if(0==e)this.pages.value=[o];else{const t=this.pages.value[e];this.pages.value=[o,t]}break;case"all":this.pages.value.splice(1)}}}const te={class:"local-loader"};const oe=_(Z,[["render",function(e,o,s,i,a,l){const n=t.resolveComponent("LinkPanel"),r=t.resolveComponent("ImagePanel");return t.openBlock(),t.createElementBlock("div",te,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(o=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.path},[0==o.loadMode?t.withDirectives((t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.component),{key:0,linkParam:o.param,operates:o.operates},null,8,["linkParam","operates"])),[[t.vShow,o.path==e.activePath]]):t.createCommentVNode("",!0),1==o.loadMode?t.withDirectives((t.openBlock(),t.createBlock(n,{key:1,tabPage:o},null,8,["tabPage"])),[[t.vShow,o.path==e.activePath]]):t.createCommentVNode("",!0),3==o.loadMode?t.withDirectives((t.openBlock(),t.createBlock(r,{key:2,tabPage:o},null,8,["tabPage"])),[[t.vShow,o.path==e.activePath]]):t.createCommentVNode("",!0)],64)))),128))])}],["__scopeId","data-v-a33049b3"]]),se={loaderInfor:{type:Object,default:()=>({})}},ie=t.defineComponent({name:"WebLoader",components:{},emits:["loaded"],props:se,setup:(e,t)=>new ae(e,t)});class ae extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"commandStack",[]),__publicField(this,"loading",t.ref(!0)),__publicField(this,"ifrWeb",t.ref()),__publicField(this,"ifrId",t.ref("")),__publicField(this,"doLoaded",(()=>{t.nextTick((()=>{this.ctx.emit("loaded",this.props.loaderInfor.platformNo),this.loading.value=!1,this.sendMessage("initStorageInfo",{token:this.storageInfo.getToken(),user:JSON.stringify(this.storageInfo.getUser()),currentPlatform:JSON.stringify(this.storageInfo.getCurrentPlatform()),currentBusiness:JSON.stringify(this.storageInfo.getCurrentBusiness()),currentModule:JSON.stringify(this.storageInfo.getCurrentModule())}),this.sendStackCommand()}))})),__publicField(this,"getIfrUrl",(()=>this.props.loaderInfor.url+(-1!=this.props.loaderInfor.url.indexOf("?")?"&":"?")+"linkMain=true")),this.props=e,this.ctx=o,this.useWebLoader()}useWebLoader(){this.ifrId.value=this.utilities.getUniqueCode(),t.onUnmounted((()=>{h.off("pushPage"),h.off("clearAllPage"),h.off("closePage"),h.off("activePage"),h.off("closePageByCommand")})),h.on("pushPage",(e=>{this.pushPage(e)})),h.on("clearAllPage",(e=>{this.clearAllPage(e)})),h.on("closePage",(e=>{this.closePage(e)})),h.on("activePage",(e=>{this.activePage(e)})),h.on("closePageByCommand",(e=>{this.closePageByCommand(e)}))}sendMessage(e,t){if(this.loading.value)return void this.commandStack.push({command:e,data:t});const o={command:e,data:t};document.getElementById(this.ifrId.value).contentWindow.postMessage(o,"*")}sendStackCommand(){for(const e of this.commandStack)this.sendMessage(e.command,e.data);this.commandStack=[]}pushPage(e){e.platformNo==this.props.loaderInfor.platformNo&&this.sendMessage("pushPage",e)}clearAllPage(e){e.platformNo==this.props.loaderInfor.platformNo&&this.sendMessage("clearAllPage",e)}closePage(e){e.platformNo==this.props.loaderInfor.platformNo&&this.sendMessage("closePage",e)}activePage(e){e.platformNo==this.props.loaderInfor.platformNo&&this.sendMessage("activePage",e)}closePageByCommand(e){e.platformNo==this.props.loaderInfor.platformNo&&this.sendMessage("closePageByCommand",e)}}const le={class:"web-loader"},ne=["id","src","title"];const re=_(ie,[["render",function(e,o,s,i,a,l){const n=t.resolveComponent("Spin");return t.openBlock(),t.createElementBlock("div",le,[t.createElementVNode("iframe",{id:e.ifrId,src:e.getIfrUrl(),class:"web-ifr",title:e.loaderInfor.platformNo,onLoad:o[0]||(o[0]=(...t)=>e.doLoaded&&e.doLoaded(...t))},null,40,ne),t.createVNode(n,{size:"large",fix:"",show:e.loading},null,8,["show"])])}],["__scopeId","data-v-12870e01"]]),ce=t.defineComponent({name:"LoaderManage",components:{LocalLoader:oe,WebLoader:re},emits:["loaded"],props:{},setup:(e,t)=>new de(e,t)});let de=class extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"pages",[]),__publicField(this,"loaderStack",t.ref([])),__publicField(this,"currentPlatformNo",t.ref("")),__publicField(this,"doLoaded",(e=>{const t=this.loaderStack.value.find((t=>t.platformNo==e));this.utilities.isNull(t)||(t.isloaded=!0,this.ctx.emit("loaded",t))})),__publicField(this,"loadPlatform",((e,t)=>{if(this.currentPlatformNo.value=t,-1!=this.loaderStack.value.findIndex((e=>e.platformNo==t)))return;if(!e)return;const o=this.isLocal(e,t);this.loaderStack.value.push({url:e,platformNo:t,isloaded:!!o,isLocal:o})})),__publicField(this,"pushPage",((e,t,o,s)=>{this.pages.push({path:e,loadMode:t,param:o,operates:s,component:void 0});const i={platformNo:this.currentPlatformNo.value,path:e,loadMode:t,param:o,operates:s};h.emit("pushPage",i)})),__publicField(this,"clearAllPage",(()=>{this.pages=[];const e={platformNo:this.currentPlatformNo.value};h.emit("clearAllPage",e)})),__publicField(this,"closePage",(e=>{const t=this.pages.findIndex((t=>t.path==e));this.pages.splice(t,1);const o={platformNo:this.currentPlatformNo.value,path:e};h.emit("closePage",o)})),__publicField(this,"activePage",(e=>{const t={platformNo:this.currentPlatformNo.value,path:e};h.emit("activePage",t)})),__publicField(this,"closePageByCommand",(e=>{const t={platformNo:this.currentPlatformNo.value,command:e};h.emit("closePageByCommand",t)})),this.props=e,this.ctx=o,this.useBusinessLoader()}useBusinessLoader(){t.onMounted((()=>{})),t.onUnmounted((()=>{}))}isLocal(e,t){if(!e)return!0;if(t==this.storageInfo.getPlatformNo())return!0;const o=new URL(e),s=new URL(location.href);return o.host==s.host&&o.port==s.host}};const pe={class:"loader-manage"};const ue=_(ce,[["render",function(e,o,s,i,a,l){const n=t.resolveComponent("LocalLoader"),r=t.resolveComponent("WebLoader");return t.openBlock(),t.createElementBlock("div",pe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.loaderStack,(o=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:o.platformNo,class:"loader-manage_content"},[o.isLocal?(t.openBlock(),t.createBlock(n,{key:0,loaderInfor:o},null,8,["loaderInfor"])):(t.openBlock(),t.createBlock(r,{key:1,loaderInfor:o,onLoaded:e.doLoaded},null,8,["loaderInfor","onLoaded"]))],512)),[[t.vShow,o.platformNo==e.currentPlatformNo]]))),128))])}],["__scopeId","data-v-ee346895"]]);t.defineComponent({name:"LoaderManage",components:{LocalLoader:oe,WebLoader:re},emits:["loaded"],props:{},setup:(e,t)=>new he(e,t)});class he extends m{constructor(e,o){super(),__publicField(this,"props"),__publicField(this,"ctx"),__publicField(this,"pages",[]),__publicField(this,"loaderStack",t.ref([])),__publicField(this,"currentPlatformNo",t.ref("")),__publicField(this,"doLoaded",(e=>{const t=this.loaderStack.value.find((t=>t.platformNo==e));this.utilities.isNull(t)||(t.isloaded=!0,this.ctx.emit("loaded",t))})),__publicField(this,"loadPlatform",((e,t)=>{if(this.currentPlatformNo.value=t,-1!=this.loaderStack.value.findIndex((e=>e.platformNo==t)))return;if(!e)return;const o=this.isLocal(e,t);this.loaderStack.value.push({url:e,platformNo:t,isloaded:!!o,isLocal:o})})),__publicField(this,"pushPage",((e,t,o,s)=>{this.pages.push({path:e,loadMode:t,param:o,operates:s,component:void 0});const i={platformNo:this.currentPlatformNo.value,path:e,loadMode:t,param:o,operates:s};h.emit("pushPage",i)})),__publicField(this,"clearAllPage",(()=>{this.pages=[];const e={platformNo:this.currentPlatformNo.value};h.emit("clearAllPage",e)})),__publicField(this,"closePage",(e=>{const t=this.pages.findIndex((t=>t.path==e));this.pages.splice(t,1);const o={platformNo:this.currentPlatformNo.value,path:e};h.emit("closePage",o)})),__publicField(this,"activePage",(e=>{const t={platformNo:this.currentPlatformNo.value,path:e};h.emit("activePage",t)})),__publicField(this,"closePageByCommand",(e=>{const t={platformNo:this.currentPlatformNo.value,command:e};h.emit("closePageByCommand",t)})),this.props=e,this.ctx=o,this.useBusinessLoader()}useBusinessLoader(){t.onMounted((()=>{})),t.onUnmounted((()=>{}))}isLocal(e,t){if(!e)return!0;if(t==this.storageInfo.getPlatformNo())return!0;const o=new URL(e),s=new URL(location.href);return o.host==s.host&&o.port==s.host}}e.BaseInstance=m,e.FreeLoginCenter=j,e.LinkMain=O,e.LoaderManage=ue,e.LoaderManageInstance=he,e.MessageInstance=c,e.ModalInstance=p,e.Root=b,e.initWeb=function(e,t,a,l,c={}){W=l,e.use(o),e.use(n),$=e,(e=>{e.directive("focus",{mounted(e){e.focus(),e.select()}})})(e),i.storageInfo.setPlatformNo(t),i.storageInfo.setMenuComponts(a),function(e){r.interceptors.request.use((function(t){const o=localStorage.getItem("token");!s.utilities.isNull(o)&&s.utilities.isNull(t.headers.Authorization)&&(t.headers.Authorization="Bearer "+o);const a=i.storageInfo.getPlatformNo();s.utilities.isNull(a)||(t.headers.PlatformNo=a);const l=i.storageInfo.getCurrentPlatform();s.utilities.isNull(l)||(t.headers.PlatformId=l.Id,t.headers.PlatformName=encodeURI(l.PlatformName));const n=i.storageInfo.getUser();s.utilities.isNull(n)||(t.headers.UserId=n.Id,t.headers.UserName=encodeURI(`${n.UserName}(${n.Account})`));const r=i.storageInfo.getCurrentModule();return s.utilities.isNull(r)||(t.headers.MenuId=r.Id,t.headers.MenuName=encodeURI(r.ModuleName),t.headers.MenuPath=encodeURI(r.ModuleUrl)),Object.assign(t,e),h.emit("axios-request",t),t}),(function(e){return Promise.reject(e)})),r.interceptors.response.use((function(e){return h.emit("axios-response",e),e}),(function(e){return e.response&&e.response.data&&"401"==e.response.data.code?$.config.globalProperties.$Modal.confirm({title:"会话过期",content:"您的登录已过期,请确认后重新登录。",onOk:()=>{i.storageInfo.removeAll(),W.push("/Login")}}):e.response&&e.response.data&&"402"==e.response.data.code?(i.storageInfo.removeAll(),W.push("/Login"),o.Modal.warning({title:"系统消息",content:"当前账号已在其他地方登录"})):i.openObserve.error("请求异常",e),Promise.reject(e)}))}(c),function(){const e=window;if(s.utilities.isNull(e.openObserveOption))return;const t=e.openObserveOption;i.openObserve.init(t)}(),i.openObserve.info(`${t} 初始化完成`,{platformNo:t})},e.message=d,e.modal=u,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED