@utogether/udp-core 1.0.1-beta.2 → 1.0.1-beta.4
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/build/plugins.ts +6 -1
- package/dist/{403-BBQoJwTM.js → 403-CT4J-t-o.js} +1 -1
- package/dist/{404-BbJPSIWM.js → 404-BAudfnaK.js} +1 -1
- package/dist/{500-BtFL9R4M.js → 500-BlOGtpEE.js} +1 -1
- package/dist/{AuthorityInfo-DhiwCeLN.js → AuthorityInfo-Bl03tEhF.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js → AuthorityInfo.vue_vue_type_style_index_0_lang-CUwS2F3R.js} +1 -1
- package/dist/{Company-CGqmslx-.js → Company-CIj9XgQn.js} +3 -3
- package/dist/{CompanyPanel-hlDsxD-6.js → CompanyPanel-CublK5NN.js} +16 -16
- package/dist/{Department-BZyJtacc.js → Department-BolPW-W3.js} +3 -3
- package/dist/{DepartmentPanel-D-a_EBFt.js → DepartmentPanel-BttxSHfM.js} +1 -1
- package/dist/{DesignPanel-Bl4luWDV.js → DesignPanel-BwCbn92O.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js → DesignPanel.vue_vue_type_style_index_0_lang-y2AnCTg6.js} +2 -2
- package/dist/{DictView-B4a7Hs1X.js → DictView-D85ziNV2.js} +13 -12
- package/dist/InvOrganization-CaAk_f7F.js +66 -0
- package/dist/{Org-BTGTrAVz.js → Org-CreIihFE.js} +1 -1
- package/dist/{Preview-pHD84xqI.js → Preview-DMGbhV6q.js} +1 -1
- package/dist/{ReportDefine-DnnCNQWS.js → ReportDefine-DogZwa8T.js} +1 -1
- package/dist/{ReportDesign-BnI_Q4pg.js → ReportDesign-CdSsJJeA.js} +2 -2
- package/dist/{ReportQuery-Dby2MmtM.js → ReportQuery-DPvKqeUm.js} +1 -1
- package/dist/{ReportQueryFrom-Blm1N8P1.js → ReportQueryFrom-UokkfBx_.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BlOoThY7.js} +1 -1
- package/dist/{ReportTemplate-D65RXRY_.js → ReportTemplate-DCnmllXW.js} +1 -1
- package/dist/{Role-eFZoTpXc.js → Role-sfmwLiNM.js} +3 -3
- package/dist/{RoleAssign-D9-Y3UNz.js → RoleAssign-WRk90VO2.js} +3 -3
- package/dist/{RolePanel-DlFw6HSf.js → RolePanel-DhP0_5ur.js} +1 -1
- package/dist/{RolePanel-CoUOc3sX.js → RolePanel-iWysS02n.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js → RolePanel.vue_vue_type_script_setup_true_lang-CYXqW-d4.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js → RolePanel.vue_vue_type_script_setup_true_lang-_hVY31HC.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js → ScrollPanel.vue_vue_type_style_index_0_lang-BozDFES-.js} +1 -1
- package/dist/{Staff-DFBLCsAd.js → Staff-Bha-Ijax.js} +3 -3
- package/dist/{StaffInfo-d2CK0oBA.js → StaffInfo-CbfYI8UW.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js → StaffInfo.vue_vue_type_script_setup_true_lang-Ce-MUVYH.js} +1 -1
- package/dist/{StaffPanel-D6aWLKN3.js → StaffPanel-B8094e97.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js → StaffPanel.vue_vue_type_script_setup_true_lang-_kJIBCtx.js} +2 -2
- package/dist/{SysUser-BdZvYxQH.js → SysUser-D1J9vPnb.js} +2 -2
- package/dist/{SysUserPanel-BIVa6LLr.js → SysUserPanel-DGDPKKoY.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js → SysUserPanel.vue_vue_type_script_setup_true_lang-D-5-zKn6.js} +1 -1
- package/dist/{SystemMenu-C-5VKlHK.js → SystemMenu-Dz8Pllh5.js} +9 -9
- package/dist/{UserInfo-DqXCRZts.js → UserInfo-ecAJA2Yg.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js → UserInfo.vue_vue_type_style_index_0_lang-4_-I_sQN.js} +1 -1
- package/dist/{childView-B2lSsqS3.js → childView-4uI_RT2m.js} +1 -1
- package/dist/{childView-DRUNqgjI.js → childView-OXXoMFg3.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-oGriyFTv.js → childView.vue_vue_type_style_index_0_lang-DC-yx4Kv.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js → childView.vue_vue_type_style_index_0_lang-e43PUsUO.js} +1 -1
- package/dist/{code-rule-DZC9T6cl.js → code-rule-B667R66s.js} +1 -1
- package/dist/core.es.js +14 -11
- package/dist/{cron-task-BJwPeA5F.js → cron-task-DcmGSr2D.js} +1 -1
- package/dist/{frameView-C6wkvok-.js → frameView-BzgaLYjQ.js} +1 -1
- package/dist/img/l_img.svg +1 -1
- package/dist/img/minicolors.png +0 -0
- package/dist/img/v_img.svg +1 -1
- package/dist/{index-DZc3qRTx.js → index-CLliRySq.js} +516 -560
- package/dist/{layoutView-CeJBpZb_.js → layoutView-BBQB8pDc.js} +109 -108
- package/dist/{login-BOxwzwdB.js → login-DIG7pRU7.js} +2 -2
- package/dist/{lov-view-DRF-99U4.js → lov-view-CSIPKZSY.js} +2 -2
- package/dist/{menuInfo-3Sjvs9nM.js → menuInfo-CPHjl7id.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js → menuInfo.vue_vue_type_style_index_0_lang-BXNiinTg.js} +31 -29
- package/dist/{pda-app-B9tn7jdv.js → pda-app-BLjbMcdt.js} +1 -1
- package/dist/{resource-BqnxbQNe.js → resource-MxqaSJqB.js} +1 -1
- package/dist/{su-welcome-VwifUK_O.js → su-welcome-C0flTYCx.js} +1 -1
- package/dist/{sys-config-C0-gSBFO.js → sys-config-CXzGs3Nl.js} +1 -1
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-Di1byIum.js → utogether-CFdIDuAT.js} +1 -1
- package/index.ts +40 -36
- package/package.json +1 -1
- package/src/App.vue +70 -70
- package/src/components/udp/grid.vue +505 -0
- package/src/components/udp/index.ts +7 -4
- package/src/components/udp/lov.vue +410 -0
- package/src/components/udp/modal-form.vue +2 -2
- package/src/components/udp/modal-grid.vue +297 -0
- package/src/components/udp/utils.ts +379 -40
- package/src/directives/permission/index.ts +1 -1
- package/src/layout/components/lay-navbar/index.vue +1 -1
- package/src/layout/components/lay-panel/index.vue +150 -150
- package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
- package/src/layout/components/lay-tag/index.vue +625 -625
- package/src/layout/layoutView.vue +215 -215
- package/src/main.ts +7 -6
- package/src/plugins/i18n/en.ts +291 -289
- package/src/plugins/i18n/zh.ts +338 -337
- package/src/plugins/vxe-table/index.ts +1 -1
- package/src/plugins/vxe-table/render.tsx +4 -2
- package/src/router/index.ts +187 -183
- package/src/router/modules/remaining.ts +58 -83
- package/src/style/button.scss +85 -78
- package/src/style/tailwind.css +1 -68
- package/src/style/vxetable.scss +265 -256
- package/src/utils/authority/index.ts +1 -1
- package/src/views/organization/company/CompanyPanel.vue +259 -259
- package/src/views/organization/inv-org/InvOrganization.vue +2 -3
- package/src/views/system/menu/SystemMenu.vue +1 -1
- package/src/views/system/menu/menuInfo.vue +376 -373
- package/src/views/udev/dict/DictView.vue +106 -106
- package/src/views/udev/lov/lov-view.vue +91 -91
- package/types/global.d.ts +2 -1
- package/vite.config.ts +4 -1
- package/dist/InvOrganization-q4T3y8dQ.js +0 -260
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { defineComponent as A, resolveComponent as K, createBlock as
|
|
3
|
-
import { ElConfigProvider as
|
|
4
|
-
import { checkVersion as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { http as
|
|
7
|
-
import { merge as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
var Ct = {
|
|
1
|
+
import * as Re from "vue";
|
|
2
|
+
import { defineComponent as A, resolveComponent as K, createBlock as Ge, openBlock as Ye, withCtx as Qe, createVNode as Oe, toRaw as ce, isProxy as me, defineAsyncComponent as Ze, h as k, createApp as Xe } from "vue";
|
|
3
|
+
import { ElConfigProvider as de } from "element-plus";
|
|
4
|
+
import { checkVersion as et } from "version-rocket";
|
|
5
|
+
import { useI18n as tt, createI18n as ot } from "vue-i18n";
|
|
6
|
+
import { http as C, storageLocal as g, cookies as Le, buildHierarchyTree as Z, dbstorage as V, isUrl as Me, openLink as nt, NProgress as at, VxetableRender as rt } from "@utogether/utils";
|
|
7
|
+
import { merge as X, clone as R, debounce as st, findLastIndexOf as it, isBoolean as ut, isEqual as pe, findIndexOf as lt, isEmpty as ct, isArray as mt } from "xe-utils";
|
|
8
|
+
import { createPinia as dt, defineStore as ee } from "pinia";
|
|
9
|
+
import { useTimeoutFn as pt } from "@vueuse/core";
|
|
10
|
+
import Be, { VxeUI as te } from "vxe-table";
|
|
11
|
+
import ht from "v-viewer";
|
|
12
|
+
import { Icon as he } from "@iconify/vue";
|
|
13
|
+
import gt from "vue-tippy";
|
|
14
|
+
import ft from "element-resize-detector";
|
|
15
|
+
var yt = {
|
|
17
16
|
name: "en",
|
|
18
17
|
el: {
|
|
19
18
|
breadcrumb: {
|
|
@@ -191,7 +190,7 @@ var Ct = {
|
|
|
191
190
|
indicator: "Carousel switch to index {index}"
|
|
192
191
|
}
|
|
193
192
|
}
|
|
194
|
-
},
|
|
193
|
+
}, wt = {
|
|
195
194
|
name: "zh-cn",
|
|
196
195
|
el: {
|
|
197
196
|
breadcrumb: {
|
|
@@ -369,38 +368,38 @@ var Ct = {
|
|
|
369
368
|
}
|
|
370
369
|
}
|
|
371
370
|
};
|
|
372
|
-
const
|
|
373
|
-
let
|
|
374
|
-
const
|
|
375
|
-
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
},
|
|
379
|
-
post: (e, t, o) =>
|
|
380
|
-
get: (e, t, o) =>
|
|
381
|
-
put: (e, t) =>
|
|
382
|
-
delete: (e, t) =>
|
|
383
|
-
}),
|
|
384
|
-
|
|
385
|
-
},
|
|
371
|
+
const bt = "menu_zh", vt = "menu_en", Fn = "authorized-token", Dn = "kCookies_token", Ct = "kSysConfig", Et = "loginer";
|
|
372
|
+
let W = {}, ze = {};
|
|
373
|
+
const Tt = (e, t) => {
|
|
374
|
+
W = Object.assign(W, t), e.config.globalProperties.$config = oe();
|
|
375
|
+
}, oe = () => W, St = (e = {}) => {
|
|
376
|
+
ze = e;
|
|
377
|
+
}, ge = () => ze, F = () => oe().ResponsiveStorageNameSpace, $ = () => ({
|
|
378
|
+
post: (e, t, o) => C.post(`${v()}${e}`, t, o),
|
|
379
|
+
get: (e, t, o) => C.get(`${v()}${e}`, t, o),
|
|
380
|
+
put: (e, t) => C.put(`${v()}${e}`, t),
|
|
381
|
+
delete: (e, t) => C.delete(`${v()}${e}`, t)
|
|
382
|
+
}), Ft = (e) => {
|
|
383
|
+
C.setRouter(e), console.log("====url", v());
|
|
384
|
+
}, Dt = window.location.origin + "/gateway", v = () => ge().VITE_BASE_URL === "origin" ? Dt : ge().VITE_BASE_URL, kt = A({
|
|
386
385
|
name: "app",
|
|
387
386
|
components: {
|
|
388
|
-
[
|
|
387
|
+
[de.name]: de
|
|
389
388
|
},
|
|
390
389
|
beforeRouteEnter(e, t, o) {
|
|
391
|
-
|
|
390
|
+
$().get("/upfm/v1/sysConfig", {}).then((n) => {
|
|
392
391
|
console.log(n), o();
|
|
393
392
|
});
|
|
394
393
|
},
|
|
395
394
|
computed: {
|
|
396
395
|
currentLocale() {
|
|
397
396
|
var e, t;
|
|
398
|
-
return ((t = (e = this.$storage) == null ? void 0 : e.locale) == null ? void 0 : t.locale) === "zh" ?
|
|
397
|
+
return ((t = (e = this.$storage) == null ? void 0 : e.locale) == null ? void 0 : t.locale) === "zh" ? wt : yt;
|
|
399
398
|
}
|
|
400
399
|
},
|
|
401
400
|
beforeCreate() {
|
|
402
|
-
const { t: e } =
|
|
403
|
-
|
|
401
|
+
const { t: e } = tt(), n = (g.getItem(Ct) || { title: "U-DP" }).title;
|
|
402
|
+
et(
|
|
404
403
|
{
|
|
405
404
|
pollingTime: 3e5,
|
|
406
405
|
checkOriginSpecifiedFilesUrl: [`${location.origin}/index.html`],
|
|
@@ -414,30 +413,30 @@ const kt = (e, t) => {
|
|
|
414
413
|
}
|
|
415
414
|
);
|
|
416
415
|
}
|
|
417
|
-
}),
|
|
416
|
+
}), xt = (e, t) => {
|
|
418
417
|
const o = e.__vccOpts || e;
|
|
419
418
|
for (const [n, a] of t)
|
|
420
419
|
o[n] = a;
|
|
421
420
|
return o;
|
|
422
421
|
};
|
|
423
|
-
function
|
|
424
|
-
const
|
|
425
|
-
return
|
|
422
|
+
function It(e, t, o, n, a, r) {
|
|
423
|
+
const i = K("router-view"), u = K("el-config-provider");
|
|
424
|
+
return Ye(), Ge(u, {
|
|
426
425
|
size: "small",
|
|
427
|
-
"z-index":
|
|
426
|
+
"z-index": 12e3,
|
|
428
427
|
locale: e.currentLocale
|
|
429
428
|
}, {
|
|
430
|
-
default:
|
|
431
|
-
|
|
429
|
+
default: Qe(() => [
|
|
430
|
+
Oe(i)
|
|
432
431
|
]),
|
|
433
432
|
_: 1
|
|
434
433
|
}, 8, ["locale"]);
|
|
435
434
|
}
|
|
436
|
-
const
|
|
437
|
-
function
|
|
438
|
-
e.use(
|
|
435
|
+
const Nt = /* @__PURE__ */ xt(kt, [["render", It]]), q = dt();
|
|
436
|
+
function Pt(e) {
|
|
437
|
+
e.use(q);
|
|
439
438
|
}
|
|
440
|
-
const
|
|
439
|
+
const ne = [
|
|
441
440
|
{
|
|
442
441
|
path: "/welcome",
|
|
443
442
|
meta: {
|
|
@@ -445,29 +444,29 @@ const ie = [
|
|
|
445
444
|
icon: "home-filled"
|
|
446
445
|
}
|
|
447
446
|
}
|
|
448
|
-
],
|
|
447
|
+
], At = (e, t) => {
|
|
449
448
|
const o = [];
|
|
450
449
|
for (const n of e)
|
|
451
450
|
n[t] && o.push(n[t]);
|
|
452
451
|
return Array.from(new Set(o));
|
|
453
|
-
},
|
|
452
|
+
}, je = (e) => {
|
|
454
453
|
const t = e.replace("#", "").match(/../g);
|
|
455
454
|
for (let o = 0; o < 3; o++) t[o] = parseInt(t[o], 16);
|
|
456
455
|
return t;
|
|
457
|
-
},
|
|
456
|
+
}, Ue = (e, t, o) => {
|
|
458
457
|
const n = [e.toString(16), t.toString(16), o.toString(16)];
|
|
459
458
|
for (let a = 0; a < 3; a++)
|
|
460
459
|
n[a].length == 1 && (n[a] = `0${n[a]}`);
|
|
461
460
|
return `#${n.join("")}`;
|
|
462
|
-
},
|
|
463
|
-
const o =
|
|
461
|
+
}, kn = (e, t) => {
|
|
462
|
+
const o = je(e);
|
|
464
463
|
for (let n = 0; n < 3; n++) o[n] = Math.floor(o[n] * (1 - t));
|
|
465
|
-
return
|
|
466
|
-
},
|
|
467
|
-
const o =
|
|
464
|
+
return Ue(o[0], o[1], o[2]);
|
|
465
|
+
}, xn = (e, t) => {
|
|
466
|
+
const o = je(e);
|
|
468
467
|
for (let n = 0; n < 3; n++) o[n] = Math.floor((255 - o[n]) * t + o[n]);
|
|
469
|
-
return
|
|
470
|
-
},
|
|
468
|
+
return Ue(o[0], o[1], o[2]);
|
|
469
|
+
}, fe = {
|
|
471
470
|
zh: {
|
|
472
471
|
message: {
|
|
473
472
|
reportCode: "报表编号",
|
|
@@ -517,13 +516,13 @@ const ie = [
|
|
|
517
516
|
isRequired: "Required"
|
|
518
517
|
}
|
|
519
518
|
}
|
|
520
|
-
},
|
|
521
|
-
zh: { ...
|
|
522
|
-
en: { ...
|
|
523
|
-
},
|
|
519
|
+
}, Rt = {
|
|
520
|
+
zh: { ...fe.zh.message },
|
|
521
|
+
en: { ...fe.en.message }
|
|
522
|
+
}, Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
524
523
|
__proto__: null,
|
|
525
|
-
default:
|
|
526
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
524
|
+
default: Rt
|
|
525
|
+
}, Symbol.toStringTag, { value: "Module" })), Lt = {
|
|
527
526
|
zh: {
|
|
528
527
|
message: {
|
|
529
528
|
taskName: "任务名称",
|
|
@@ -552,7 +551,7 @@ const ie = [
|
|
|
552
551
|
actuatorAddress: "Actuator Adress"
|
|
553
552
|
}
|
|
554
553
|
}
|
|
555
|
-
},
|
|
554
|
+
}, Mt = {
|
|
556
555
|
zh: {
|
|
557
556
|
message: {
|
|
558
557
|
flowId: "流程标识",
|
|
@@ -573,17 +572,17 @@ const ie = [
|
|
|
573
572
|
flowDesign: "Flow Design"
|
|
574
573
|
}
|
|
575
574
|
}
|
|
576
|
-
},
|
|
575
|
+
}, ye = [Lt, Mt], Bt = {
|
|
577
576
|
zh: {
|
|
578
|
-
...Object.assign({}, ...
|
|
577
|
+
...Object.assign({}, ...ye.map((e) => e.zh.message))
|
|
579
578
|
},
|
|
580
579
|
en: {
|
|
581
|
-
...Object.assign({}, ...
|
|
580
|
+
...Object.assign({}, ...ye.map((e) => e.en.message))
|
|
582
581
|
}
|
|
583
|
-
},
|
|
582
|
+
}, zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
584
583
|
__proto__: null,
|
|
585
|
-
default:
|
|
586
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
584
|
+
default: Bt
|
|
585
|
+
}, Symbol.toStringTag, { value: "Module" })), jt = {
|
|
587
586
|
zh: {
|
|
588
587
|
message: {
|
|
589
588
|
msgtemplateCode: "模板代码",
|
|
@@ -603,10 +602,10 @@ const ie = [
|
|
|
603
602
|
xx: "xxx"
|
|
604
603
|
}
|
|
605
604
|
}
|
|
606
|
-
},
|
|
605
|
+
}, Ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
607
606
|
__proto__: null,
|
|
608
|
-
default:
|
|
609
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
607
|
+
default: jt
|
|
608
|
+
}, Symbol.toStringTag, { value: "Module" })), _t = {
|
|
610
609
|
udp: {
|
|
611
610
|
dark: "深色",
|
|
612
611
|
light: "浅色",
|
|
@@ -719,6 +718,7 @@ const ie = [
|
|
|
719
718
|
fetch: "查询",
|
|
720
719
|
edit: "编辑",
|
|
721
720
|
export: "导出",
|
|
721
|
+
import: "导入",
|
|
722
722
|
encode: "编码",
|
|
723
723
|
importJSON: "导入模板数据",
|
|
724
724
|
downloadTemp: "模板下载",
|
|
@@ -775,6 +775,7 @@ const ie = [
|
|
|
775
775
|
xAxis: "横坐标",
|
|
776
776
|
yAxis: "纵坐标"
|
|
777
777
|
},
|
|
778
|
+
add: "新增",
|
|
778
779
|
operate: "操作",
|
|
779
780
|
emptyData: "暂无数据",
|
|
780
781
|
creationDate: "创建时间",
|
|
@@ -925,7 +926,7 @@ const ie = [
|
|
|
925
926
|
lovColConfig: "值集列配置",
|
|
926
927
|
sequenceInfo: "{name}单据序列配置"
|
|
927
928
|
}
|
|
928
|
-
},
|
|
929
|
+
}, $t = {
|
|
929
930
|
udp: {
|
|
930
931
|
dark: "深色",
|
|
931
932
|
light: "浅色",
|
|
@@ -1033,6 +1034,7 @@ const ie = [
|
|
|
1033
1034
|
fetch: "Fetch",
|
|
1034
1035
|
edit: "Edit",
|
|
1035
1036
|
export: "Export",
|
|
1037
|
+
import: "Import",
|
|
1036
1038
|
encode: "Encode",
|
|
1037
1039
|
importJSON: "Import Data",
|
|
1038
1040
|
look: "Look",
|
|
@@ -1084,6 +1086,7 @@ const ie = [
|
|
|
1084
1086
|
xAxis: "xAxis",
|
|
1085
1087
|
yAxis: "yAxis"
|
|
1086
1088
|
},
|
|
1089
|
+
add: "Add",
|
|
1087
1090
|
operate: "Operate",
|
|
1088
1091
|
emptyData: "Empty Data",
|
|
1089
1092
|
creationDate: "Creation Date",
|
|
@@ -1196,32 +1199,32 @@ const ie = [
|
|
|
1196
1199
|
dictDispose: "dictDispose",
|
|
1197
1200
|
isSearch: "isSearch",
|
|
1198
1201
|
isCol: "isCol"
|
|
1199
|
-
},
|
|
1200
|
-
for (const e in
|
|
1201
|
-
|
|
1202
|
-
const
|
|
1202
|
+
}, we = /* @__PURE__ */ Object.assign({ "./module/u-report.ts": Ot, "./module/u-workflow.ts": zt, "./module/umsg.ts": Ut }), M = {};
|
|
1203
|
+
for (const e in we)
|
|
1204
|
+
M[e.replace(/(\.\/module\/|\.ts)/g, "")] = we[e].default;
|
|
1205
|
+
const be = Object.keys(M).filter((e) => M[e]).map((e) => M[e]), ve = {
|
|
1203
1206
|
zh: {
|
|
1204
|
-
...g.getItem(
|
|
1205
|
-
message:
|
|
1207
|
+
...g.getItem(bt),
|
|
1208
|
+
message: X(_t, ...be.map((e) => e.zh.message))
|
|
1206
1209
|
},
|
|
1207
1210
|
en: {
|
|
1208
|
-
...g.getItem(
|
|
1209
|
-
message: Object.assign(
|
|
1211
|
+
...g.getItem(vt),
|
|
1212
|
+
message: Object.assign($t, ...be.map((e) => e.en.message))
|
|
1210
1213
|
}
|
|
1211
1214
|
};
|
|
1212
1215
|
let P = null;
|
|
1213
|
-
function
|
|
1216
|
+
function qt(e, t = { messages: {} }) {
|
|
1214
1217
|
var o;
|
|
1215
|
-
console.log("message=====",
|
|
1218
|
+
console.log("message=====", ve), P = ot({
|
|
1216
1219
|
legacy: !1,
|
|
1217
|
-
locale: ((o = g.getItem(`${
|
|
1220
|
+
locale: ((o = g.getItem(`${F()}locale`)) == null ? void 0 : o.locale) ?? "zh",
|
|
1218
1221
|
fallbackLocale: "en",
|
|
1219
1222
|
globalInjection: !0,
|
|
1220
|
-
messages:
|
|
1221
|
-
}),
|
|
1223
|
+
messages: X(ve, t.messages)
|
|
1224
|
+
}), te.setLanguage("zh-CN"), e.use(P);
|
|
1222
1225
|
}
|
|
1223
|
-
const
|
|
1224
|
-
function
|
|
1226
|
+
const B = () => P;
|
|
1227
|
+
function Ht(e = "", t = !0) {
|
|
1225
1228
|
if (!e)
|
|
1226
1229
|
return "";
|
|
1227
1230
|
if (typeof e == "object") {
|
|
@@ -1230,7 +1233,7 @@ function Kt(e = "", t = !0) {
|
|
|
1230
1233
|
}
|
|
1231
1234
|
return t ? P.global.t.call(P.global, e) : e;
|
|
1232
1235
|
}
|
|
1233
|
-
const
|
|
1236
|
+
const Vt = ee("udp-system", {
|
|
1234
1237
|
state: () => ({
|
|
1235
1238
|
baseURL: "",
|
|
1236
1239
|
userInfo: {},
|
|
@@ -1354,28 +1357,28 @@ const Gt = ae("udp-system", {
|
|
|
1354
1357
|
orgId: e.orgId,
|
|
1355
1358
|
organizationId: e.organizationId
|
|
1356
1359
|
};
|
|
1357
|
-
|
|
1360
|
+
Le.set("kCookies_param", JSON.stringify(o)), this.isAdminRole = this.employee.sysRoles.some(
|
|
1358
1361
|
(a) => a.roleCode === "admin" || ["管理员"].includes(a.roleName)
|
|
1359
1362
|
), f().setAuthButton(e.dataMenus);
|
|
1360
1363
|
}
|
|
1361
1364
|
}
|
|
1362
1365
|
});
|
|
1363
|
-
function
|
|
1364
|
-
return
|
|
1366
|
+
function z() {
|
|
1367
|
+
return Vt(q);
|
|
1365
1368
|
}
|
|
1366
|
-
function
|
|
1369
|
+
function Jt(e, t) {
|
|
1367
1370
|
return /* @__PURE__ */ A({
|
|
1368
1371
|
name: e,
|
|
1369
1372
|
components: {
|
|
1370
1373
|
asyncComponent: t
|
|
1371
1374
|
},
|
|
1372
1375
|
setup() {
|
|
1373
|
-
return () =>
|
|
1376
|
+
return () => Oe(K("async-component"), null, null);
|
|
1374
1377
|
}
|
|
1375
1378
|
});
|
|
1376
1379
|
}
|
|
1377
|
-
|
|
1378
|
-
const
|
|
1380
|
+
C.setBaseUrl(v());
|
|
1381
|
+
const Kt = () => C.get(`${v()}/uums/roleMenu`), Wt = () => C.get(`${v()}/upfm/v1/lov/selectAll`), Ce = (e) => C.get(`${v()}/uums/roleMenu/userMenu`, e), Gt = () => import("./layoutView-BBQB8pDc.js"), Yt = () => import("./frameView-BzgaLYjQ.js");
|
|
1379
1382
|
function L(e) {
|
|
1380
1383
|
return e.forEach((t) => {
|
|
1381
1384
|
var o, n;
|
|
@@ -1385,96 +1388,96 @@ function L(e) {
|
|
|
1385
1388
|
return ((n = t == null ? void 0 : t.meta) == null ? void 0 : n.rank) - ((a = o == null ? void 0 : o.meta) == null ? void 0 : a.rank);
|
|
1386
1389
|
});
|
|
1387
1390
|
}
|
|
1388
|
-
function
|
|
1391
|
+
function _e(e) {
|
|
1389
1392
|
const t = R(e, !0).filter(
|
|
1390
1393
|
(o) => {
|
|
1391
1394
|
var n;
|
|
1392
1395
|
return o && ((n = o.meta) == null ? void 0 : n.showLink) !== !1;
|
|
1393
1396
|
}
|
|
1394
1397
|
);
|
|
1395
|
-
return t.forEach((o) => o.children && (o.children =
|
|
1398
|
+
return t.forEach((o) => o.children && (o.children = _e(o.children))), t;
|
|
1396
1399
|
}
|
|
1397
|
-
function
|
|
1398
|
-
function n(a, r,
|
|
1400
|
+
function In(e, t, o = "path") {
|
|
1401
|
+
function n(a, r, i) {
|
|
1399
1402
|
for (let u = 0; u < a.length; u++) {
|
|
1400
|
-
const
|
|
1401
|
-
if (
|
|
1402
|
-
if (!(!
|
|
1403
|
-
if (
|
|
1404
|
-
|
|
1403
|
+
const m = a[u];
|
|
1404
|
+
if (m[o] === r) return i;
|
|
1405
|
+
if (!(!m.children || !m.children.length)) {
|
|
1406
|
+
if (i.push(m.path), n(m.children, r, i).length) return i;
|
|
1407
|
+
i.pop();
|
|
1405
1408
|
}
|
|
1406
1409
|
}
|
|
1407
1410
|
return [];
|
|
1408
1411
|
}
|
|
1409
1412
|
return n(t, e, []);
|
|
1410
1413
|
}
|
|
1411
|
-
function
|
|
1414
|
+
function $e(e, t) {
|
|
1412
1415
|
let o = t.find((n) => n.path == e);
|
|
1413
1416
|
if (o)
|
|
1414
|
-
return
|
|
1417
|
+
return me(o) ? ce(o) : o;
|
|
1415
1418
|
for (let n = 0; n < t.length; n++)
|
|
1416
|
-
if (t[n].children instanceof Array && t[n].children.length > 0 && (o =
|
|
1417
|
-
return
|
|
1419
|
+
if (t[n].children instanceof Array && t[n].children.length > 0 && (o = $e(e, t[n].children), o))
|
|
1420
|
+
return me(o) ? ce(o) : o;
|
|
1418
1421
|
return null;
|
|
1419
1422
|
}
|
|
1420
|
-
function
|
|
1421
|
-
|
|
1423
|
+
function Qt() {
|
|
1424
|
+
h.hasRoute("pathMatch") || h.addRoute({
|
|
1422
1425
|
path: "/:pathMatch(.*)",
|
|
1423
1426
|
name: "pathMatch",
|
|
1424
1427
|
redirect: "/error/404"
|
|
1425
1428
|
});
|
|
1426
1429
|
}
|
|
1427
|
-
function
|
|
1430
|
+
function Zt() {
|
|
1428
1431
|
var t, o;
|
|
1429
|
-
const e =
|
|
1432
|
+
const e = B();
|
|
1430
1433
|
(t = e.global) == null || t.mergeLocaleMessage("zh", N.zh), (o = e.global) == null || o.mergeLocaleMessage("en", N.en), g.setItem("menu_zh", N.zh), g.setItem("menu_en", N.en);
|
|
1431
1434
|
}
|
|
1432
|
-
function
|
|
1435
|
+
function Ee(e) {
|
|
1433
1436
|
if (e != null && e.length) {
|
|
1434
1437
|
const t = e.findIndex((n) => n.menuCode === "SysHome");
|
|
1435
1438
|
if (t !== -1) {
|
|
1436
1439
|
const n = [], a = [];
|
|
1437
1440
|
e[t].children.forEach((r) => {
|
|
1438
1441
|
r.menuCategory !== "1" ? n.push(r) : a.push(r);
|
|
1439
|
-
}), e[t].children = a,
|
|
1442
|
+
}), e[t].children = a, z().setHomeMenus(n);
|
|
1440
1443
|
}
|
|
1441
|
-
const o = R(
|
|
1442
|
-
|
|
1443
|
-
const { options: a } =
|
|
1444
|
-
a.routes[0].children.findIndex((r) => r.path === n.path) === -1 && (
|
|
1444
|
+
const o = R(He(e), !0);
|
|
1445
|
+
Zt(), H(o).map((n) => {
|
|
1446
|
+
const { options: a } = h;
|
|
1447
|
+
a.routes[0].children.findIndex((r) => r.path === n.path) === -1 && (h.options.routes[0].children.push(n), L(h.options.routes[0].children), h.hasRoute(n == null ? void 0 : n.name) || h.addRoute(n));
|
|
1445
1448
|
});
|
|
1446
1449
|
}
|
|
1447
|
-
f().changeSetting(e),
|
|
1448
|
-
...
|
|
1450
|
+
f().changeSetting(e), x().getMultiTagsCache || x().handleTags("equal", [
|
|
1451
|
+
...ne,
|
|
1449
1452
|
...f().flatteningRoutes.filter((t) => {
|
|
1450
1453
|
var o;
|
|
1451
1454
|
return (o = t == null ? void 0 : t.meta) == null ? void 0 : o.fixedTag;
|
|
1452
1455
|
})
|
|
1453
|
-
]),
|
|
1456
|
+
]), Qt();
|
|
1454
1457
|
}
|
|
1455
|
-
async function
|
|
1458
|
+
async function Xt(e) {
|
|
1456
1459
|
let t = [];
|
|
1457
1460
|
const o = `U-${e}-ROUTES`;
|
|
1458
|
-
return
|
|
1459
|
-
|
|
1461
|
+
return oe().CachingAsyncRoutes && await V.getItem(o).then((n) => t = n), Wt().then((n) => z().setDict(n)), await Kt().then(async (n) => {
|
|
1462
|
+
z().setSystemInfo(n), await $().get("/uums/cusOrganization", { pageSize: 100, pageNum: 1, orgId: n.orgId }).then((a) => z().setInvOrgList((a == null ? void 0 : a.list) || []));
|
|
1460
1463
|
}), t != null && t.length ? new Promise((n) => {
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
}), n(
|
|
1464
|
+
Ee(t), Ce({ userName: e }).then((a) => {
|
|
1465
|
+
V.setItem(o, a);
|
|
1466
|
+
}), n(h);
|
|
1464
1467
|
}) : new Promise((n) => {
|
|
1465
|
-
|
|
1466
|
-
|
|
1468
|
+
Ce({ userName: e }).then((a) => {
|
|
1469
|
+
Ee(R(a, !0)), V.setItem(o, a), n(h);
|
|
1467
1470
|
});
|
|
1468
1471
|
});
|
|
1469
1472
|
}
|
|
1470
|
-
function
|
|
1473
|
+
function H(e) {
|
|
1471
1474
|
if (e.length === 0) return e;
|
|
1472
|
-
let t =
|
|
1475
|
+
let t = Z(e);
|
|
1473
1476
|
for (let o = 0; o < t.length; o++)
|
|
1474
1477
|
t[o].children && (t = t.slice(0, o + 1).concat(t[o].children, t.slice(o + 1)));
|
|
1475
1478
|
return t;
|
|
1476
1479
|
}
|
|
1477
|
-
function
|
|
1480
|
+
function qe(e) {
|
|
1478
1481
|
if (e.length === 0) return e;
|
|
1479
1482
|
const t = [];
|
|
1480
1483
|
return e.forEach((o) => {
|
|
@@ -1488,7 +1491,7 @@ function Je(e) {
|
|
|
1488
1491
|
}) : t[0].children.push({ ...o });
|
|
1489
1492
|
}), t;
|
|
1490
1493
|
}
|
|
1491
|
-
function
|
|
1494
|
+
function eo({ name: e }, t) {
|
|
1492
1495
|
switch (t) {
|
|
1493
1496
|
case "add":
|
|
1494
1497
|
f().cacheOperate({ mode: "add", name: e });
|
|
@@ -1500,7 +1503,7 @@ function Z({ name: e }, t) {
|
|
|
1500
1503
|
f().cacheOperate({ mode: "refresh", name: e });
|
|
1501
1504
|
break;
|
|
1502
1505
|
default:
|
|
1503
|
-
f().cacheOperate({ mode: "delete", name: e }),
|
|
1506
|
+
f().cacheOperate({ mode: "delete", name: e }), pt(() => {
|
|
1504
1507
|
f().cacheOperate({ mode: "add", name: e });
|
|
1505
1508
|
}, 100);
|
|
1506
1509
|
}
|
|
@@ -1508,56 +1511,56 @@ function Z({ name: e }, t) {
|
|
|
1508
1511
|
const N = {
|
|
1509
1512
|
zh: {},
|
|
1510
1513
|
en: {}
|
|
1511
|
-
},
|
|
1514
|
+
}, He = (e) => {
|
|
1512
1515
|
var n;
|
|
1513
|
-
const t =
|
|
1516
|
+
const t = mo();
|
|
1514
1517
|
if (!e || !e.length) return;
|
|
1515
1518
|
const o = Object.keys(t);
|
|
1516
1519
|
for (let a = 0; a < e.length; a++) {
|
|
1517
1520
|
const r = e[a];
|
|
1518
1521
|
r != null && r.children && r.children.length && !r.redirect && (r.redirect = r.children[0].path);
|
|
1519
|
-
const { icon:
|
|
1520
|
-
if (r.meta = { keepAlive: !0, rank: r.sort, title: `${r.i18nField}` }, Object.assign(r.meta, { icon:
|
|
1521
|
-
r.component =
|
|
1522
|
+
const { icon: i, permissionCode: u, extraIcon: m, frameSrc: s } = r;
|
|
1523
|
+
if (r.meta = { keepAlive: !0, rank: r.sort, title: `${r.i18nField}` }, Object.assign(r.meta, { icon: i, permissionCode: u, extraIcon: m, frameSrc: s }), N.zh[r.i18nField] = r.menuName || r.menuNameEn, N.en[r.i18nField] = r.menuNameEn || r.menuName, r.name = r.menuCode || r.name, r.path = r.menuPath || r.path, !r.parentId)
|
|
1524
|
+
r.component = Gt;
|
|
1522
1525
|
else if ((n = r.meta) != null && n.frameSrc)
|
|
1523
|
-
r.component =
|
|
1526
|
+
r.component = Yt;
|
|
1524
1527
|
else if (r.menuCategory === "10") {
|
|
1525
|
-
const
|
|
1526
|
-
r.component =
|
|
1528
|
+
const d = o.findIndex((p) => p.includes("lowcode-contain"));
|
|
1529
|
+
r.component = Jt(
|
|
1527
1530
|
r.name,
|
|
1528
|
-
|
|
1531
|
+
Ze(() => import(
|
|
1529
1532
|
/* @vite-ignore */
|
|
1530
|
-
o[
|
|
1533
|
+
o[d]
|
|
1531
1534
|
))
|
|
1532
1535
|
), Object.assign(r.meta, { moduleType: r.moduleType });
|
|
1533
1536
|
} else if (r.menuCategory !== "5") {
|
|
1534
|
-
const
|
|
1535
|
-
r.component = t[o[
|
|
1537
|
+
const d = o.findIndex((p) => p.includes(r.path));
|
|
1538
|
+
r.component = t[o[d]];
|
|
1536
1539
|
}
|
|
1537
|
-
r != null && r.children && r.children.length ?
|
|
1540
|
+
r != null && r.children && r.children.length ? He(r.children) : delete r.children;
|
|
1538
1541
|
}
|
|
1539
1542
|
return e;
|
|
1540
1543
|
};
|
|
1541
|
-
function
|
|
1542
|
-
const o =
|
|
1544
|
+
function Nn(e, t = !0) {
|
|
1545
|
+
const o = x().multiTags.findIndex((n) => {
|
|
1543
1546
|
if (e.query) {
|
|
1544
1547
|
if (e.path === n.path)
|
|
1545
1548
|
return e.query === n.query;
|
|
1546
1549
|
} else
|
|
1547
1550
|
return e.path === n.path;
|
|
1548
1551
|
});
|
|
1549
|
-
if (
|
|
1550
|
-
const n =
|
|
1551
|
-
|
|
1552
|
+
if (x().handleTags("splice", "", { startIndex: o, length: 1 }), eo(e.matched, "delete"), t) {
|
|
1553
|
+
const n = x().handleTags("slice");
|
|
1554
|
+
h.push({
|
|
1552
1555
|
path: n[0].path,
|
|
1553
1556
|
query: n[0].query
|
|
1554
1557
|
});
|
|
1555
1558
|
}
|
|
1556
1559
|
}
|
|
1557
|
-
const
|
|
1560
|
+
const to = ee("udp-permission", {
|
|
1558
1561
|
state: () => ({
|
|
1559
1562
|
// 静态路由生成的菜单
|
|
1560
|
-
constantMenus:
|
|
1563
|
+
constantMenus: lo,
|
|
1561
1564
|
// 整体路由生成的菜单(静态、动态)
|
|
1562
1565
|
wholeMenus: [],
|
|
1563
1566
|
// 深拷贝一个菜单树,与导航菜单不冲突
|
|
@@ -1576,12 +1579,12 @@ const ao = ae("udp-permission", {
|
|
|
1576
1579
|
actions: {
|
|
1577
1580
|
asyncActionRoutes(e = []) {
|
|
1578
1581
|
if (this.wholeMenus.length > 0) return;
|
|
1579
|
-
const t =
|
|
1582
|
+
const t = it(e, (n) => n.menuCode === "SysHome"), o = R(this.constantMenus, !0);
|
|
1580
1583
|
if (t !== -1) {
|
|
1581
1584
|
const n = this.constantMenus.find((a) => a.name === "home");
|
|
1582
1585
|
e[t].children && n.children.push(...e[t].children), e.splice(t, 1);
|
|
1583
1586
|
}
|
|
1584
|
-
this.wholeMenus =
|
|
1587
|
+
this.wholeMenus = _e(L(this.constantMenus.concat(e))), this.flatteningRoutes = H(this.constantMenus.concat(e)), this.menusTree = R(this.wholeMenus, !0), this.constantMenus = o;
|
|
1585
1588
|
},
|
|
1586
1589
|
async changeSetting(e) {
|
|
1587
1590
|
await this.asyncActionRoutes(e);
|
|
@@ -1608,9 +1611,9 @@ const ao = ae("udp-permission", {
|
|
|
1608
1611
|
this.cachePageList = [];
|
|
1609
1612
|
break;
|
|
1610
1613
|
}
|
|
1611
|
-
|
|
1614
|
+
st(() => {
|
|
1612
1615
|
let n = this.cachePageList.length;
|
|
1613
|
-
const a =
|
|
1616
|
+
const a = At(x().multiTags, "name");
|
|
1614
1617
|
for (; n > 0; )
|
|
1615
1618
|
a.findIndex((r) => r === this.cachePageList[n - 1]) === -1 && this.cachePageList.splice(
|
|
1616
1619
|
this.cachePageList.indexOf(this.cachePageList[n - 1]),
|
|
@@ -1625,18 +1628,18 @@ const ao = ae("udp-permission", {
|
|
|
1625
1628
|
}
|
|
1626
1629
|
});
|
|
1627
1630
|
function f() {
|
|
1628
|
-
return
|
|
1631
|
+
return to(q);
|
|
1629
1632
|
}
|
|
1630
|
-
const
|
|
1633
|
+
const oo = ee("udp-multiTags", {
|
|
1631
1634
|
state: () => {
|
|
1632
1635
|
var e, t;
|
|
1633
1636
|
return {
|
|
1634
1637
|
// 存储标签页信息(路由信息)
|
|
1635
|
-
multiTags: (e = g.getItem(`${
|
|
1638
|
+
multiTags: (e = g.getItem(`${F()}configure`)) != null && e.multiTagsCache ? g.getItem(`${F()}tags`) : [...ne, ...f().flatteningRoutes.filter((o) => {
|
|
1636
1639
|
var n;
|
|
1637
1640
|
return (n = o == null ? void 0 : o.meta) == null ? void 0 : n.fixedTag;
|
|
1638
1641
|
})],
|
|
1639
|
-
multiTagsCache: (t = g.getItem(`${
|
|
1642
|
+
multiTagsCache: (t = g.getItem(`${F()}configure`)) == null ? void 0 : t.multiTagsCache
|
|
1640
1643
|
};
|
|
1641
1644
|
},
|
|
1642
1645
|
getters: {
|
|
@@ -1646,26 +1649,26 @@ const ro = ae("udp-multiTags", {
|
|
|
1646
1649
|
},
|
|
1647
1650
|
actions: {
|
|
1648
1651
|
multiTagsCacheChange(e) {
|
|
1649
|
-
this.multiTagsCache = e, e ? g.setItem(`${
|
|
1652
|
+
this.multiTagsCache = e, e ? g.setItem(`${F()}tags`, this.multiTags) : g.removeItem(`${F()}tags`);
|
|
1650
1653
|
},
|
|
1651
1654
|
tagsCache(e) {
|
|
1652
|
-
this.getMultiTagsCache && g.setItem(`${
|
|
1655
|
+
this.getMultiTagsCache && g.setItem(`${F()}tags`, e);
|
|
1653
1656
|
},
|
|
1654
1657
|
handleTags(e, t, o) {
|
|
1655
|
-
var n, a, r,
|
|
1658
|
+
var n, a, r, i, u, m;
|
|
1656
1659
|
switch (e) {
|
|
1657
1660
|
case "equal":
|
|
1658
1661
|
this.multiTags = t, this.tagsCache(this.multiTags);
|
|
1659
1662
|
break;
|
|
1660
1663
|
case "push":
|
|
1661
1664
|
{
|
|
1662
|
-
const
|
|
1663
|
-
if ((n =
|
|
1664
|
-
const
|
|
1665
|
-
if (
|
|
1666
|
-
const
|
|
1667
|
-
if (
|
|
1668
|
-
const c = this.multiTags.findIndex((l) => (l == null ? void 0 : l.path) ===
|
|
1665
|
+
const s = t;
|
|
1666
|
+
if ((n = s == null ? void 0 : s.meta) != null && n.hiddenTag || Me(s == null ? void 0 : s.name) || ((r = (a = s == null ? void 0 : s.meta) == null ? void 0 : a.title) == null ? void 0 : r.length) === 0 || ut((i = s == null ? void 0 : s.meta) == null ? void 0 : i.showLink) && !((u = s == null ? void 0 : s.meta) != null && u.showLink)) return;
|
|
1667
|
+
const d = s.path, p = this.multiTags.some((c) => c.path === d), E = this.multiTags.some((c) => pe(c == null ? void 0 : c.query, s == null ? void 0 : s.query)), T = this.multiTags.some((c) => pe(c == null ? void 0 : c.params, s == null ? void 0 : s.params));
|
|
1668
|
+
if (p && E && T) return;
|
|
1669
|
+
const w = ((m = s == null ? void 0 : s.meta) == null ? void 0 : m.dynamicLevel) ?? -1;
|
|
1670
|
+
if (w > 0 && this.multiTags.filter((c) => (c == null ? void 0 : c.path) === d).length >= w) {
|
|
1671
|
+
const c = this.multiTags.findIndex((l) => (l == null ? void 0 : l.path) === d);
|
|
1669
1672
|
c !== -1 && this.multiTags.splice(c, 1);
|
|
1670
1673
|
}
|
|
1671
1674
|
this.multiTags.push(t), this.tagsCache(this.multiTags);
|
|
@@ -1675,9 +1678,9 @@ const ro = ae("udp-multiTags", {
|
|
|
1675
1678
|
if (o)
|
|
1676
1679
|
this.multiTags.splice(o == null ? void 0 : o.startIndex, o == null ? void 0 : o.length);
|
|
1677
1680
|
else {
|
|
1678
|
-
const
|
|
1679
|
-
if (
|
|
1680
|
-
this.multiTags.splice(
|
|
1681
|
+
const s = this.multiTags.findIndex((d) => d.path === t);
|
|
1682
|
+
if (s === -1) return;
|
|
1683
|
+
this.multiTags.splice(s, 1);
|
|
1681
1684
|
}
|
|
1682
1685
|
return this.tagsCache(this.multiTags), this.multiTags;
|
|
1683
1686
|
case "slice":
|
|
@@ -1686,13 +1689,13 @@ const ro = ae("udp-multiTags", {
|
|
|
1686
1689
|
}
|
|
1687
1690
|
}
|
|
1688
1691
|
});
|
|
1689
|
-
function
|
|
1690
|
-
return
|
|
1692
|
+
function x() {
|
|
1693
|
+
return oo(q);
|
|
1691
1694
|
}
|
|
1692
|
-
const
|
|
1695
|
+
const no = () => import("./layoutView-BBQB8pDc.js"), ao = {
|
|
1693
1696
|
path: "/",
|
|
1694
1697
|
name: "home",
|
|
1695
|
-
component:
|
|
1698
|
+
component: no,
|
|
1696
1699
|
redirect: "/welcome",
|
|
1697
1700
|
meta: {
|
|
1698
1701
|
icon: "home-filled",
|
|
@@ -1703,17 +1706,17 @@ const so = () => import("./layoutView-CeJBpZb_.js"), io = {
|
|
|
1703
1706
|
{
|
|
1704
1707
|
path: "/welcome",
|
|
1705
1708
|
name: "SuHome",
|
|
1706
|
-
component: () => import("./su-welcome-
|
|
1709
|
+
component: () => import("./su-welcome-C0flTYCx.js"),
|
|
1707
1710
|
meta: {
|
|
1708
1711
|
title: "message.udp.home",
|
|
1709
1712
|
keepAlive: !0
|
|
1710
1713
|
}
|
|
1711
1714
|
}
|
|
1712
1715
|
]
|
|
1713
|
-
},
|
|
1716
|
+
}, ro = () => import("./layoutView-BBQB8pDc.js"), so = {
|
|
1714
1717
|
path: "/error",
|
|
1715
1718
|
name: "error",
|
|
1716
|
-
component:
|
|
1719
|
+
component: ro,
|
|
1717
1720
|
redirect: "/error/403",
|
|
1718
1721
|
meta: {
|
|
1719
1722
|
showLink: !1,
|
|
@@ -1725,17 +1728,17 @@ const so = () => import("./layoutView-CeJBpZb_.js"), io = {
|
|
|
1725
1728
|
{
|
|
1726
1729
|
path: "/error/403",
|
|
1727
1730
|
name: "403",
|
|
1728
|
-
component: () => import("./403-
|
|
1731
|
+
component: () => import("./403-CT4J-t-o.js"),
|
|
1729
1732
|
meta: {
|
|
1730
1733
|
title: "message.udp.fourZeroThree"
|
|
1731
1734
|
}
|
|
1732
1735
|
}
|
|
1733
1736
|
]
|
|
1734
|
-
},
|
|
1737
|
+
}, io = () => import("./layoutView-BBQB8pDc.js"), O = [
|
|
1735
1738
|
{
|
|
1736
1739
|
path: "/login",
|
|
1737
1740
|
name: "login",
|
|
1738
|
-
component: () => import("./login-
|
|
1741
|
+
component: () => import("./login-DIG7pRU7.js"),
|
|
1739
1742
|
meta: {
|
|
1740
1743
|
title: "message.udp.login",
|
|
1741
1744
|
showLink: !1
|
|
@@ -1744,7 +1747,7 @@ const so = () => import("./layoutView-CeJBpZb_.js"), io = {
|
|
|
1744
1747
|
{
|
|
1745
1748
|
path: "/error/404",
|
|
1746
1749
|
name: "404",
|
|
1747
|
-
component: () => import("./404-
|
|
1750
|
+
component: () => import("./404-BAudfnaK.js"),
|
|
1748
1751
|
meta: {
|
|
1749
1752
|
title: "message.udp.fourZeroFour",
|
|
1750
1753
|
showLink: !1
|
|
@@ -1753,41 +1756,16 @@ const so = () => import("./layoutView-CeJBpZb_.js"), io = {
|
|
|
1753
1756
|
{
|
|
1754
1757
|
path: "/error/500",
|
|
1755
1758
|
name: "500",
|
|
1756
|
-
component: () => import("./500-
|
|
1759
|
+
component: () => import("./500-BlOGtpEE.js"),
|
|
1757
1760
|
meta: {
|
|
1758
1761
|
title: "message.udp.five",
|
|
1759
1762
|
showLink: !1
|
|
1760
1763
|
}
|
|
1761
1764
|
},
|
|
1762
|
-
// {
|
|
1763
|
-
// path: '/print/checkcard',
|
|
1764
|
-
// name: 'checkcard',
|
|
1765
|
-
// component: () => import('../../views/print/check-card.vue'),
|
|
1766
|
-
// meta: {
|
|
1767
|
-
// title: 'message.checkCard',
|
|
1768
|
-
// showLink: false
|
|
1769
|
-
// }
|
|
1770
|
-
// },
|
|
1771
|
-
// {
|
|
1772
|
-
// path: '/lowcode-design-platform',
|
|
1773
|
-
// name: 'LowcodeDesigin',
|
|
1774
|
-
// component: () => import('/src/views/udev/gantt/lcd-design.vue'),
|
|
1775
|
-
// meta: {
|
|
1776
|
-
// showLink: false
|
|
1777
|
-
// }
|
|
1778
|
-
// },
|
|
1779
|
-
// {
|
|
1780
|
-
// path: '/ulcd-app-menu',
|
|
1781
|
-
// name: 'AppMenu',
|
|
1782
|
-
// component: () => import('/src/views/udev/gantt/app-menu.vue'),
|
|
1783
|
-
// meta: {
|
|
1784
|
-
// showLink: false
|
|
1785
|
-
// }
|
|
1786
|
-
// },
|
|
1787
1765
|
{
|
|
1788
1766
|
path: "/redirect",
|
|
1789
1767
|
name: "redirect",
|
|
1790
|
-
component:
|
|
1768
|
+
component: io,
|
|
1791
1769
|
meta: {
|
|
1792
1770
|
icon: "home-filled",
|
|
1793
1771
|
title: "message.udp.home",
|
|
@@ -1803,147 +1781,122 @@ const so = () => import("./layoutView-CeJBpZb_.js"), io = {
|
|
|
1803
1781
|
}
|
|
1804
1782
|
]
|
|
1805
1783
|
}
|
|
1806
|
-
],
|
|
1807
|
-
"../views/organization/company/Company.vue": () => import("./Company-
|
|
1808
|
-
"../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-
|
|
1809
|
-
"../views/organization/department/Department.vue": () => import("./Department-
|
|
1810
|
-
"../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-
|
|
1811
|
-
"../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-
|
|
1812
|
-
"../views/organization/org/Org.vue": () => import("./Org-
|
|
1813
|
-
"../views/organization/staff/Staff.vue": () => import("./Staff-
|
|
1814
|
-
"../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-
|
|
1815
|
-
"../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-
|
|
1816
|
-
"../views/system/cron/cron-task.vue": () => import("./cron-task-
|
|
1784
|
+
], uo = /* @__PURE__ */ Object.assign({
|
|
1785
|
+
"../views/organization/company/Company.vue": () => import("./Company-CIj9XgQn.js"),
|
|
1786
|
+
"../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-CublK5NN.js"),
|
|
1787
|
+
"../views/organization/department/Department.vue": () => import("./Department-BolPW-W3.js"),
|
|
1788
|
+
"../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-BttxSHfM.js"),
|
|
1789
|
+
"../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-CaAk_f7F.js"),
|
|
1790
|
+
"../views/organization/org/Org.vue": () => import("./Org-CreIihFE.js"),
|
|
1791
|
+
"../views/organization/staff/Staff.vue": () => import("./Staff-Bha-Ijax.js"),
|
|
1792
|
+
"../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-CbfYI8UW.js"),
|
|
1793
|
+
"../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-B8094e97.js"),
|
|
1794
|
+
"../views/system/cron/cron-task.vue": () => import("./cron-task-DcmGSr2D.js"),
|
|
1817
1795
|
"../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-BeBNiwqc.js"),
|
|
1818
|
-
"../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-
|
|
1819
|
-
"../views/system/menu/menuInfo.vue": () => import("./menuInfo-
|
|
1820
|
-
"../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-
|
|
1821
|
-
"../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-
|
|
1822
|
-
"../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-
|
|
1823
|
-
"../views/system/role/Role.vue": () => import("./Role-
|
|
1824
|
-
"../views/system/role/RolePanel.vue": () => import("./RolePanel-
|
|
1825
|
-
"../views/system/role/UserInfo.vue": () => import("./UserInfo-
|
|
1826
|
-
"../views/system/sys/sys-config.vue": () => import("./sys-config-
|
|
1827
|
-
"../views/system/sysUser/SysUser.vue": () => import("./SysUser-
|
|
1828
|
-
"../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-
|
|
1829
|
-
"../views/uapp/pda/pda-app.vue": () => import("./pda-app-
|
|
1830
|
-
"../views/udev/coderule/code-rule.vue": () => import("./code-rule-
|
|
1831
|
-
"../views/udev/dict/DictView.vue": () => import("./DictView-
|
|
1832
|
-
"../views/udev/dict/childView.vue": () => import("./childView-
|
|
1833
|
-
"../views/udev/lov/childView.vue": () => import("./childView-
|
|
1834
|
-
"../views/udev/lov/lov-view.vue": () => import("./lov-view-
|
|
1796
|
+
"../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-Dz8Pllh5.js"),
|
|
1797
|
+
"../views/system/menu/menuInfo.vue": () => import("./menuInfo-CPHjl7id.js"),
|
|
1798
|
+
"../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-WRk90VO2.js"),
|
|
1799
|
+
"../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-DhP0_5ur.js"),
|
|
1800
|
+
"../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-Bl03tEhF.js"),
|
|
1801
|
+
"../views/system/role/Role.vue": () => import("./Role-sfmwLiNM.js"),
|
|
1802
|
+
"../views/system/role/RolePanel.vue": () => import("./RolePanel-iWysS02n.js"),
|
|
1803
|
+
"../views/system/role/UserInfo.vue": () => import("./UserInfo-ecAJA2Yg.js"),
|
|
1804
|
+
"../views/system/sys/sys-config.vue": () => import("./sys-config-CXzGs3Nl.js"),
|
|
1805
|
+
"../views/system/sysUser/SysUser.vue": () => import("./SysUser-D1J9vPnb.js"),
|
|
1806
|
+
"../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-DGDPKKoY.js"),
|
|
1807
|
+
"../views/uapp/pda/pda-app.vue": () => import("./pda-app-BLjbMcdt.js"),
|
|
1808
|
+
"../views/udev/coderule/code-rule.vue": () => import("./code-rule-B667R66s.js"),
|
|
1809
|
+
"../views/udev/dict/DictView.vue": () => import("./DictView-D85ziNV2.js"),
|
|
1810
|
+
"../views/udev/dict/childView.vue": () => import("./childView-4uI_RT2m.js"),
|
|
1811
|
+
"../views/udev/lov/childView.vue": () => import("./childView-OXXoMFg3.js"),
|
|
1812
|
+
"../views/udev/lov/lov-view.vue": () => import("./lov-view-CSIPKZSY.js"),
|
|
1835
1813
|
"../views/upms/interface/log-in.vue": () => import("./log-in-e7D5Ss1P.js"),
|
|
1836
1814
|
"../views/upms/interface/log-out.vue": () => import("./log-out--RRncZhN.js"),
|
|
1837
1815
|
"../views/upms/user/login-log.vue": () => import("./login-log-CvVnyGi3.js"),
|
|
1838
1816
|
"../views/urpt/dataSet/DataSet.vue": () => import("./DataSet-DT-rGICv.js"),
|
|
1839
|
-
"../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-
|
|
1840
|
-
"../views/urpt/design/Preview.vue": () => import("./Preview-
|
|
1841
|
-
"../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-
|
|
1842
|
-
"../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-
|
|
1843
|
-
"../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-
|
|
1844
|
-
"../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-
|
|
1845
|
-
"../views/urpt/static-resource/resource.vue": () => import("./resource-
|
|
1846
|
-
"../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-
|
|
1847
|
-
}),
|
|
1848
|
-
|
|
1849
|
-
),
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
strict: !0,
|
|
1853
|
-
scrollBehavior(e, t, o) {
|
|
1854
|
-
return new Promise((n) => {
|
|
1855
|
-
if (o)
|
|
1856
|
-
return o;
|
|
1857
|
-
if (t.meta.saveSrollTop) {
|
|
1858
|
-
const a = document.documentElement.scrollTop || document.body.scrollTop;
|
|
1859
|
-
n({ left: 0, top: a });
|
|
1860
|
-
}
|
|
1861
|
-
});
|
|
1862
|
-
}
|
|
1863
|
-
});
|
|
1864
|
-
function Mn() {
|
|
1865
|
-
p.getRoutes().forEach((e) => {
|
|
1817
|
+
"../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-BwCbn92O.js"),
|
|
1818
|
+
"../views/urpt/design/Preview.vue": () => import("./Preview-DMGbhV6q.js"),
|
|
1819
|
+
"../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-CdSsJJeA.js"),
|
|
1820
|
+
"../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-DPvKqeUm.js"),
|
|
1821
|
+
"../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-UokkfBx_.js"),
|
|
1822
|
+
"../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-DogZwa8T.js"),
|
|
1823
|
+
"../views/urpt/static-resource/resource.vue": () => import("./resource-MxqaSJqB.js"),
|
|
1824
|
+
"../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-DCnmllXW.js")
|
|
1825
|
+
}), Pn = O, ae = [ao, so], An = qe(
|
|
1826
|
+
H(Z(L(ae)))
|
|
1827
|
+
), lo = L(ae).concat(...O), Rn = Object.keys(O).map((e) => O[e].path);
|
|
1828
|
+
function On() {
|
|
1829
|
+
h.getRoutes().forEach((e) => {
|
|
1866
1830
|
const { name: t, meta: o } = e;
|
|
1867
|
-
t &&
|
|
1868
|
-
|
|
1831
|
+
t && h.hasRoute(t) && (o != null && o.backstage) && (h.removeRoute(t), h.options.routes = qe(
|
|
1832
|
+
H(Z(L(ae)))
|
|
1869
1833
|
));
|
|
1870
1834
|
}), f().clearAllCachePage();
|
|
1871
1835
|
}
|
|
1872
|
-
let
|
|
1873
|
-
function
|
|
1874
|
-
|
|
1836
|
+
let G = null, h = null;
|
|
1837
|
+
function co(e, t) {
|
|
1838
|
+
G = e, h = t, Object.assign(G, uo);
|
|
1875
1839
|
}
|
|
1876
|
-
function
|
|
1877
|
-
return
|
|
1840
|
+
function mo() {
|
|
1841
|
+
return G;
|
|
1878
1842
|
}
|
|
1879
|
-
const
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
(s = e.meta) != null && s.keepAlive && (Z(e, "add"), (t.name === void 0 || t.name === "redirect") && Z(e));
|
|
1883
|
-
const n = ze.get(Dt);
|
|
1884
|
-
G.start();
|
|
1885
|
-
const a = je(e == null ? void 0 : e.name);
|
|
1843
|
+
const po = ["/login"], Ln = (e, t, o) => {
|
|
1844
|
+
var i, u, m;
|
|
1845
|
+
const n = Le.get(Et), a = Me(e == null ? void 0 : e.name);
|
|
1886
1846
|
function r() {
|
|
1887
|
-
|
|
1847
|
+
po.includes(e.fullPath) ? o(t.fullPath) : o();
|
|
1888
1848
|
}
|
|
1889
|
-
if (
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
k().handleTags("push", { path: l, name: I, meta: M });
|
|
1903
|
-
}
|
|
1849
|
+
if (t != null && t.name && (t == null ? void 0 : t.name) !== "login") {
|
|
1850
|
+
const s = (i = e.matched.find(
|
|
1851
|
+
(d) => d.path === e.path || d.name === e.name && e.params
|
|
1852
|
+
)) == null ? void 0 : i.components;
|
|
1853
|
+
a ? (nt(e == null ? void 0 : e.name), (u = at) == null || u.done()) : s != null && s.default || e.name === "redirect" ? r() : o({ path: "/error/404" });
|
|
1854
|
+
} else
|
|
1855
|
+
f().wholeMenus.length === 0 && Xt(n).then((s) => {
|
|
1856
|
+
var d;
|
|
1857
|
+
if (!x().getMultiTagsCache) {
|
|
1858
|
+
const { path: p } = e, T = lt(O, (c) => c.path === p) === -1 ? s.options.routes[0].children : s.options.routes, w = $e(p, T);
|
|
1859
|
+
if (w && ((d = w.meta) != null && d.title)) {
|
|
1860
|
+
const { path: c, name: l, meta: I } = w;
|
|
1861
|
+
x().handleTags("push", { path: c, name: l, meta: I });
|
|
1904
1862
|
}
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
});
|
|
1910
|
-
|
|
1911
|
-
var e;
|
|
1912
|
-
(e = G) == null || e.done();
|
|
1913
|
-
});
|
|
1914
|
-
it(Ue, { serviceApi: q(), i18n: Kt });
|
|
1915
|
-
const yo = {
|
|
1863
|
+
}
|
|
1864
|
+
ct(e.name) && s.push(e.fullPath);
|
|
1865
|
+
}), t.fullPath === "/" && e.fullPath === "/login" && !((m = e.query) != null && m.tokenExpire) ? (e.path = "/welcome", e.fullPath = "/welcome", e.name = "SuHome") : t.fullPath === "/" && e.path === "/workflow/approve/index" && (e.path = "/welcome", e.fullPath = "/welcome", e.name = "SuHome", e.query = {}), r();
|
|
1866
|
+
};
|
|
1867
|
+
rt(Be, { serviceApi: $(), i18n: Ht });
|
|
1868
|
+
const ho = {
|
|
1916
1869
|
// 对组件内置的提示语进行国际化翻译
|
|
1917
1870
|
// @ts-ignore
|
|
1918
|
-
i18n: (e, t) =>
|
|
1871
|
+
i18n: (e, t) => B().global.t(e, t),
|
|
1919
1872
|
// 可选,对参数中的列头、校验提示..等进行自动翻译(只对支持国际化的有效)
|
|
1920
1873
|
translate(e) {
|
|
1921
|
-
return e && ["message.", "el."].findIndex((o) => e.includes(o)) !== -1 ?
|
|
1874
|
+
return e && ["message.", "el."].findIndex((o) => e.includes(o)) !== -1 ? B().global.t.call(B().global.locale, e) : e;
|
|
1922
1875
|
}
|
|
1923
1876
|
};
|
|
1924
|
-
function
|
|
1925
|
-
|
|
1877
|
+
function go(e = {}) {
|
|
1878
|
+
Be.setConfig(X(ho, e)), te.interceptor.add("event.clearEdit", {
|
|
1926
1879
|
tableInterceptorMethod(t) {
|
|
1927
1880
|
const { $event: o } = t;
|
|
1928
1881
|
if (o.target.className.indexOf("vxe-table--ignore-clear") > -1) return !1;
|
|
1929
1882
|
}
|
|
1930
1883
|
});
|
|
1931
1884
|
}
|
|
1932
|
-
function
|
|
1933
|
-
|
|
1885
|
+
function Mn(e) {
|
|
1886
|
+
te.setTheme(e);
|
|
1934
1887
|
}
|
|
1935
|
-
var
|
|
1936
|
-
for (var o in t)
|
|
1937
|
-
},
|
|
1938
|
-
if (t && typeof t == "object" || typeof t == "function") for (let a of
|
|
1888
|
+
var re = Object.defineProperty, fo = Object.getOwnPropertyDescriptor, yo = Object.getOwnPropertyNames, wo = Object.prototype.hasOwnProperty, bo = (e, t, o) => t in e ? re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, vo = (e, t) => {
|
|
1889
|
+
for (var o in t) re(e, o, { get: t[o], enumerable: !0 });
|
|
1890
|
+
}, Co = (e, t, o, n) => {
|
|
1891
|
+
if (t && typeof t == "object" || typeof t == "function") for (let a of yo(t)) !wo.call(e, a) && a !== o && re(e, a, { get: () => t[a], enumerable: !(n = fo(t, a)) || n.enumerable });
|
|
1939
1892
|
return e;
|
|
1940
|
-
},
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
var
|
|
1893
|
+
}, Eo = (e, t, o) => (Co(e, t, "default"), o), Te = (e, t, o) => (bo(e, typeof t != "symbol" ? t + "" : t, o), o), se = {};
|
|
1894
|
+
vo(se, { Vue: () => Re });
|
|
1895
|
+
Eo(se, Re);
|
|
1896
|
+
var U = class {
|
|
1944
1897
|
static install(e, t) {
|
|
1945
1898
|
let { nameSpace: o = this._nameSpace, memory: n } = t;
|
|
1946
|
-
return n && this.clearAll(o, n), new
|
|
1899
|
+
return n && this.clearAll(o, n), new U(e, t);
|
|
1947
1900
|
}
|
|
1948
1901
|
static clearAll(e, t) {
|
|
1949
1902
|
Object.keys(t).forEach((o) => {
|
|
@@ -1961,25 +1914,25 @@ var _ = class {
|
|
|
1961
1914
|
if (Object.prototype.hasOwnProperty.call(window.localStorage, this._getStaticKey(t, e))) return JSON.parse(window.localStorage.getItem(this._getStaticKey(t, e)));
|
|
1962
1915
|
}
|
|
1963
1916
|
constructor(e, t) {
|
|
1964
|
-
let o =
|
|
1965
|
-
Object.keys(u).length === 0 && console.warn("key cannot be empty"), Object.keys(u).forEach((
|
|
1966
|
-
let
|
|
1967
|
-
o.set(s
|
|
1917
|
+
let o = U, { version: n = 3, nameSpace: a = o._nameSpace, memory: r } = t, i = (s) => a + s, u = n === 3 ? (0, se.reactive)(r) : r;
|
|
1918
|
+
Object.keys(u).length === 0 && console.warn("key cannot be empty"), Object.keys(u).forEach((s) => {
|
|
1919
|
+
let d = u[s];
|
|
1920
|
+
o.set(i(s), d), Reflect.defineProperty(u, s, { get: () => o.get(i(s)), set: (p) => o.set(i(s), p), configurable: !0 }), n === 2 && e.util.defineReactive(u, s, u[s]);
|
|
1968
1921
|
});
|
|
1969
|
-
let
|
|
1970
|
-
Reflect.defineProperty(
|
|
1922
|
+
let m = n === 3 ? e.config.globalProperties : e.prototype;
|
|
1923
|
+
Reflect.defineProperty(m, "$storage", { get: () => u });
|
|
1971
1924
|
}
|
|
1972
|
-
},
|
|
1973
|
-
|
|
1974
|
-
const
|
|
1975
|
-
const o =
|
|
1925
|
+
}, D = U;
|
|
1926
|
+
Te(D, "_nameSpace", "rs-"), Te(D, "_getStaticKey", (e, t) => `${e ?? U._nameSpace}${t}`);
|
|
1927
|
+
const To = (e, t) => {
|
|
1928
|
+
const o = F(), n = Object.assign(
|
|
1976
1929
|
{
|
|
1977
1930
|
// 国际化 默认中文zh
|
|
1978
|
-
locale:
|
|
1931
|
+
locale: D.getData("locale", o) ?? {
|
|
1979
1932
|
locale: t.Locale ?? "zh"
|
|
1980
1933
|
},
|
|
1981
1934
|
// layout模式以及主题
|
|
1982
|
-
layout:
|
|
1935
|
+
layout: D.getData("layout", o) ?? {
|
|
1983
1936
|
layout: t.Layout ?? "vertical",
|
|
1984
1937
|
theme: t.Theme ?? "default",
|
|
1985
1938
|
darkMode: t.DarkMode ?? !1,
|
|
@@ -1990,7 +1943,7 @@ const Do = (e, t) => {
|
|
|
1990
1943
|
overallStyle: t.OverallStyle ?? "light"
|
|
1991
1944
|
// 整体风格(浅色:light、深色:dark、自动:system)
|
|
1992
1945
|
},
|
|
1993
|
-
configure:
|
|
1946
|
+
configure: D.getData("configure", o) ?? {
|
|
1994
1947
|
grey: t.Grey ?? !1,
|
|
1995
1948
|
weak: t.Weak ?? !1,
|
|
1996
1949
|
hideTabs: t.HideTabs ?? !1,
|
|
@@ -1998,116 +1951,116 @@ const Do = (e, t) => {
|
|
|
1998
1951
|
showModel: t.ShowModel ?? "smart",
|
|
1999
1952
|
multiTagsCache: t.MultiTagsCache ?? !1
|
|
2000
1953
|
},
|
|
2001
|
-
cnd:
|
|
1954
|
+
cnd: D.getData("cnd", o) ?? {}
|
|
2002
1955
|
},
|
|
2003
1956
|
t.MultiTagsCache ? {
|
|
2004
1957
|
// 默认显示首页tag
|
|
2005
|
-
tags:
|
|
1958
|
+
tags: D.getData("tags", o) ?? ne
|
|
2006
1959
|
} : {}
|
|
2007
1960
|
);
|
|
2008
|
-
e.use(
|
|
2009
|
-
},
|
|
1961
|
+
e.use(D, { nameSpace: o, memory: n });
|
|
1962
|
+
}, So = (e) => {
|
|
2010
1963
|
var a;
|
|
2011
1964
|
if (!e) return !0;
|
|
2012
|
-
const t = (a =
|
|
1965
|
+
const t = (a = h.currentRoute.value.meta) == null ? void 0 : a.permissionCode;
|
|
2013
1966
|
if (!t) return !0;
|
|
2014
|
-
|
|
1967
|
+
mt(e) || (e = [e]);
|
|
2015
1968
|
const o = f().getButtonAuth;
|
|
2016
1969
|
if (!o) return !0;
|
|
2017
1970
|
let n = !1;
|
|
2018
1971
|
return e.forEach((r) => {
|
|
2019
1972
|
if (!n) {
|
|
2020
|
-
const
|
|
2021
|
-
n = o.includes(
|
|
1973
|
+
const i = `${t}.${r}`;
|
|
1974
|
+
n = o.includes(i);
|
|
2022
1975
|
}
|
|
2023
1976
|
}), n;
|
|
2024
|
-
},
|
|
1977
|
+
}, Ve = Object.freeze(
|
|
2025
1978
|
{
|
|
2026
1979
|
left: 0,
|
|
2027
1980
|
top: 0,
|
|
2028
1981
|
width: 16,
|
|
2029
1982
|
height: 16
|
|
2030
1983
|
}
|
|
2031
|
-
),
|
|
1984
|
+
), _ = Object.freeze({
|
|
2032
1985
|
rotate: 0,
|
|
2033
1986
|
vFlip: !1,
|
|
2034
1987
|
hFlip: !1
|
|
2035
|
-
}),
|
|
2036
|
-
...
|
|
2037
|
-
|
|
2038
|
-
}),
|
|
2039
|
-
...
|
|
1988
|
+
}), ie = Object.freeze({
|
|
1989
|
+
...Ve,
|
|
1990
|
+
..._
|
|
1991
|
+
}), Y = Object.freeze({
|
|
1992
|
+
...ie,
|
|
2040
1993
|
body: "",
|
|
2041
1994
|
hidden: !1
|
|
2042
1995
|
});
|
|
2043
|
-
function
|
|
1996
|
+
function Fo(e, t) {
|
|
2044
1997
|
const o = {};
|
|
2045
1998
|
!e.hFlip != !t.hFlip && (o.hFlip = !0), !e.vFlip != !t.vFlip && (o.vFlip = !0);
|
|
2046
1999
|
const n = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
2047
2000
|
return n && (o.rotate = n), o;
|
|
2048
2001
|
}
|
|
2049
|
-
function
|
|
2050
|
-
const o =
|
|
2051
|
-
for (const n in
|
|
2052
|
-
n in
|
|
2002
|
+
function Se(e, t) {
|
|
2003
|
+
const o = Fo(e, t);
|
|
2004
|
+
for (const n in Y)
|
|
2005
|
+
n in _ ? n in e && !(n in o) && (o[n] = _[n]) : n in t ? o[n] = t[n] : n in e && (o[n] = e[n]);
|
|
2053
2006
|
return o;
|
|
2054
2007
|
}
|
|
2055
|
-
function
|
|
2008
|
+
function Do(e, t) {
|
|
2056
2009
|
const o = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null);
|
|
2057
|
-
function r(
|
|
2058
|
-
if (o[
|
|
2059
|
-
return a[
|
|
2060
|
-
if (!(
|
|
2061
|
-
a[
|
|
2062
|
-
const u = n[
|
|
2063
|
-
|
|
2010
|
+
function r(i) {
|
|
2011
|
+
if (o[i])
|
|
2012
|
+
return a[i] = [];
|
|
2013
|
+
if (!(i in a)) {
|
|
2014
|
+
a[i] = null;
|
|
2015
|
+
const u = n[i] && n[i].parent, m = u && r(u);
|
|
2016
|
+
m && (a[i] = [u].concat(m));
|
|
2064
2017
|
}
|
|
2065
|
-
return a[
|
|
2018
|
+
return a[i];
|
|
2066
2019
|
}
|
|
2067
2020
|
return Object.keys(o).concat(Object.keys(n)).forEach(r), a;
|
|
2068
2021
|
}
|
|
2069
|
-
function
|
|
2022
|
+
function ko(e, t, o) {
|
|
2070
2023
|
const n = e.icons, a = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
2071
2024
|
let r = {};
|
|
2072
|
-
function
|
|
2073
|
-
r =
|
|
2025
|
+
function i(u) {
|
|
2026
|
+
r = Se(
|
|
2074
2027
|
n[u] || a[u],
|
|
2075
2028
|
r
|
|
2076
2029
|
);
|
|
2077
2030
|
}
|
|
2078
|
-
return
|
|
2031
|
+
return i(t), o.forEach(i), Se(e, r);
|
|
2079
2032
|
}
|
|
2080
|
-
function
|
|
2033
|
+
function xo(e, t) {
|
|
2081
2034
|
const o = [];
|
|
2082
2035
|
if (typeof e != "object" || typeof e.icons != "object")
|
|
2083
2036
|
return o;
|
|
2084
2037
|
e.not_found instanceof Array && e.not_found.forEach((a) => {
|
|
2085
2038
|
t(a, null), o.push(a);
|
|
2086
2039
|
});
|
|
2087
|
-
const n =
|
|
2040
|
+
const n = Do(e);
|
|
2088
2041
|
for (const a in n) {
|
|
2089
2042
|
const r = n[a];
|
|
2090
|
-
r && (t(a,
|
|
2043
|
+
r && (t(a, ko(e, a, r)), o.push(a));
|
|
2091
2044
|
}
|
|
2092
2045
|
return o;
|
|
2093
2046
|
}
|
|
2094
|
-
const
|
|
2047
|
+
const Io = {
|
|
2095
2048
|
provider: "",
|
|
2096
2049
|
aliases: {},
|
|
2097
2050
|
not_found: {},
|
|
2098
|
-
...
|
|
2051
|
+
...Ve
|
|
2099
2052
|
};
|
|
2100
|
-
function
|
|
2053
|
+
function J(e, t) {
|
|
2101
2054
|
for (const o in t)
|
|
2102
2055
|
if (o in e && typeof e[o] != typeof t[o])
|
|
2103
2056
|
return !1;
|
|
2104
2057
|
return !0;
|
|
2105
2058
|
}
|
|
2106
|
-
function
|
|
2059
|
+
function No(e) {
|
|
2107
2060
|
if (typeof e != "object" || e === null)
|
|
2108
2061
|
return null;
|
|
2109
2062
|
const t = e;
|
|
2110
|
-
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !
|
|
2063
|
+
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !J(e, Io))
|
|
2111
2064
|
return null;
|
|
2112
2065
|
const o = t.icons;
|
|
2113
2066
|
for (const a in o) {
|
|
@@ -2116,51 +2069,51 @@ function Ro(e) {
|
|
|
2116
2069
|
// Name cannot be empty
|
|
2117
2070
|
!a || // Must have body
|
|
2118
2071
|
typeof r.body != "string" || // Check other props
|
|
2119
|
-
!
|
|
2072
|
+
!J(
|
|
2120
2073
|
r,
|
|
2121
|
-
|
|
2074
|
+
Y
|
|
2122
2075
|
)
|
|
2123
2076
|
)
|
|
2124
2077
|
return null;
|
|
2125
2078
|
}
|
|
2126
2079
|
const n = t.aliases || /* @__PURE__ */ Object.create(null);
|
|
2127
2080
|
for (const a in n) {
|
|
2128
|
-
const r = n[a],
|
|
2081
|
+
const r = n[a], i = r.parent;
|
|
2129
2082
|
if (
|
|
2130
2083
|
// Name cannot be empty
|
|
2131
2084
|
!a || // Parent must be set and point to existing icon
|
|
2132
|
-
typeof
|
|
2133
|
-
!
|
|
2085
|
+
typeof i != "string" || !o[i] && !n[i] || // Check other props
|
|
2086
|
+
!J(
|
|
2134
2087
|
r,
|
|
2135
|
-
|
|
2088
|
+
Y
|
|
2136
2089
|
)
|
|
2137
2090
|
)
|
|
2138
2091
|
return null;
|
|
2139
2092
|
}
|
|
2140
2093
|
return t;
|
|
2141
2094
|
}
|
|
2142
|
-
const
|
|
2095
|
+
const Je = Object.freeze({
|
|
2143
2096
|
width: null,
|
|
2144
2097
|
height: null
|
|
2145
|
-
}),
|
|
2098
|
+
}), Ke = Object.freeze({
|
|
2146
2099
|
// Dimensions
|
|
2147
|
-
...
|
|
2100
|
+
...Je,
|
|
2148
2101
|
// Transformations
|
|
2149
|
-
|
|
2102
|
+
..._
|
|
2150
2103
|
});
|
|
2151
|
-
function
|
|
2104
|
+
function Po(e, t) {
|
|
2152
2105
|
const o = {
|
|
2153
2106
|
...e
|
|
2154
2107
|
};
|
|
2155
2108
|
for (const n in t) {
|
|
2156
2109
|
const a = t[n], r = typeof a;
|
|
2157
|
-
n in
|
|
2110
|
+
n in Je ? (a === null || a && (r === "string" || r === "number")) && (o[n] = a) : r === typeof o[n] && (o[n] = n === "rotate" ? a % 4 : a);
|
|
2158
2111
|
}
|
|
2159
2112
|
return o;
|
|
2160
2113
|
}
|
|
2161
|
-
const
|
|
2162
|
-
function
|
|
2163
|
-
t.split(
|
|
2114
|
+
const Ao = /[\s,]+/;
|
|
2115
|
+
function Ro(e, t) {
|
|
2116
|
+
t.split(Ao).forEach((o) => {
|
|
2164
2117
|
switch (o.trim()) {
|
|
2165
2118
|
case "horizontal":
|
|
2166
2119
|
e.hFlip = !0;
|
|
@@ -2171,7 +2124,7 @@ function Mo(e, t) {
|
|
|
2171
2124
|
}
|
|
2172
2125
|
});
|
|
2173
2126
|
}
|
|
2174
|
-
function
|
|
2127
|
+
function Oo(e, t = 0) {
|
|
2175
2128
|
const o = e.replace(/^-?[0-9.]*/, "");
|
|
2176
2129
|
function n(a) {
|
|
2177
2130
|
for (; a < 0; )
|
|
@@ -2197,61 +2150,61 @@ function Bo(e, t = 0) {
|
|
|
2197
2150
|
}
|
|
2198
2151
|
return t;
|
|
2199
2152
|
}
|
|
2200
|
-
const
|
|
2201
|
-
function
|
|
2153
|
+
const Lo = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Mo = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
2154
|
+
function Fe(e, t, o) {
|
|
2202
2155
|
if (t === 1)
|
|
2203
2156
|
return e;
|
|
2204
2157
|
if (o = o || 100, typeof e == "number")
|
|
2205
2158
|
return Math.ceil(e * t * o) / o;
|
|
2206
2159
|
if (typeof e != "string")
|
|
2207
2160
|
return e;
|
|
2208
|
-
const n = e.split(
|
|
2161
|
+
const n = e.split(Lo);
|
|
2209
2162
|
if (n === null || !n.length)
|
|
2210
2163
|
return e;
|
|
2211
2164
|
const a = [];
|
|
2212
|
-
let r = n.shift(),
|
|
2165
|
+
let r = n.shift(), i = Mo.test(r);
|
|
2213
2166
|
for (; ; ) {
|
|
2214
|
-
if (
|
|
2167
|
+
if (i) {
|
|
2215
2168
|
const u = parseFloat(r);
|
|
2216
2169
|
isNaN(u) ? a.push(r) : a.push(Math.ceil(u * t * o) / o);
|
|
2217
2170
|
} else
|
|
2218
2171
|
a.push(r);
|
|
2219
2172
|
if (r = n.shift(), r === void 0)
|
|
2220
2173
|
return a.join("");
|
|
2221
|
-
|
|
2174
|
+
i = !i;
|
|
2222
2175
|
}
|
|
2223
2176
|
}
|
|
2224
|
-
function
|
|
2177
|
+
function Bo(e, t = "defs") {
|
|
2225
2178
|
let o = "";
|
|
2226
2179
|
const n = e.indexOf("<" + t);
|
|
2227
2180
|
for (; n >= 0; ) {
|
|
2228
2181
|
const a = e.indexOf(">", n), r = e.indexOf("</" + t);
|
|
2229
2182
|
if (a === -1 || r === -1)
|
|
2230
2183
|
break;
|
|
2231
|
-
const
|
|
2232
|
-
if (
|
|
2184
|
+
const i = e.indexOf(">", r);
|
|
2185
|
+
if (i === -1)
|
|
2233
2186
|
break;
|
|
2234
|
-
o += e.slice(a + 1, r).trim(), e = e.slice(0, n).trim() + e.slice(
|
|
2187
|
+
o += e.slice(a + 1, r).trim(), e = e.slice(0, n).trim() + e.slice(i + 1);
|
|
2235
2188
|
}
|
|
2236
2189
|
return {
|
|
2237
2190
|
defs: o,
|
|
2238
2191
|
content: e
|
|
2239
2192
|
};
|
|
2240
2193
|
}
|
|
2241
|
-
function
|
|
2194
|
+
function zo(e, t) {
|
|
2242
2195
|
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
2243
2196
|
}
|
|
2244
|
-
function
|
|
2245
|
-
const n =
|
|
2246
|
-
return
|
|
2197
|
+
function jo(e, t, o) {
|
|
2198
|
+
const n = Bo(e);
|
|
2199
|
+
return zo(n.defs, t + n.content + o);
|
|
2247
2200
|
}
|
|
2248
|
-
const
|
|
2249
|
-
function
|
|
2201
|
+
const Uo = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
2202
|
+
function _o(e, t) {
|
|
2250
2203
|
const o = {
|
|
2251
|
-
...
|
|
2204
|
+
...ie,
|
|
2252
2205
|
...e
|
|
2253
2206
|
}, n = {
|
|
2254
|
-
...
|
|
2207
|
+
...Ke,
|
|
2255
2208
|
...t
|
|
2256
2209
|
}, a = {
|
|
2257
2210
|
left: o.left,
|
|
@@ -2261,15 +2214,15 @@ function Ho(e, t) {
|
|
|
2261
2214
|
};
|
|
2262
2215
|
let r = o.body;
|
|
2263
2216
|
[o, n].forEach((c) => {
|
|
2264
|
-
const l = [], I = c.hFlip,
|
|
2265
|
-
let
|
|
2266
|
-
I ?
|
|
2217
|
+
const l = [], I = c.hFlip, le = c.vFlip;
|
|
2218
|
+
let S = c.rotate;
|
|
2219
|
+
I ? le ? S += 2 : (l.push(
|
|
2267
2220
|
"translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
|
|
2268
|
-
), l.push("scale(-1 1)"), a.top = a.left = 0) :
|
|
2221
|
+
), l.push("scale(-1 1)"), a.top = a.left = 0) : le && (l.push(
|
|
2269
2222
|
"translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
|
|
2270
2223
|
), l.push("scale(1 -1)"), a.top = a.left = 0);
|
|
2271
2224
|
let b;
|
|
2272
|
-
switch (
|
|
2225
|
+
switch (S < 0 && (S -= Math.floor(S / 4) * 4), S = S % 4, S) {
|
|
2273
2226
|
case 1:
|
|
2274
2227
|
b = a.height / 2 + a.top, l.unshift(
|
|
2275
2228
|
"rotate(90 " + b.toString() + " " + b.toString() + ")"
|
|
@@ -2286,99 +2239,99 @@ function Ho(e, t) {
|
|
|
2286
2239
|
);
|
|
2287
2240
|
break;
|
|
2288
2241
|
}
|
|
2289
|
-
|
|
2242
|
+
S % 2 === 1 && (a.left !== a.top && (b = a.left, a.left = a.top, a.top = b), a.width !== a.height && (b = a.width, a.width = a.height, a.height = b)), l.length && (r = jo(
|
|
2290
2243
|
r,
|
|
2291
2244
|
'<g transform="' + l.join(" ") + '">',
|
|
2292
2245
|
"</g>"
|
|
2293
2246
|
));
|
|
2294
2247
|
});
|
|
2295
|
-
const
|
|
2296
|
-
let
|
|
2297
|
-
|
|
2298
|
-
const
|
|
2299
|
-
|
|
2248
|
+
const i = n.width, u = n.height, m = a.width, s = a.height;
|
|
2249
|
+
let d, p;
|
|
2250
|
+
i === null ? (p = u === null ? "1em" : u === "auto" ? s : u, d = Fe(p, m / s)) : (d = i === "auto" ? m : i, p = u === null ? Fe(d, s / m) : u === "auto" ? s : u);
|
|
2251
|
+
const E = {}, T = (c, l) => {
|
|
2252
|
+
Uo(l) || (E[c] = l.toString());
|
|
2300
2253
|
};
|
|
2301
|
-
|
|
2302
|
-
const
|
|
2303
|
-
return
|
|
2304
|
-
attributes:
|
|
2305
|
-
viewBox:
|
|
2254
|
+
T("width", d), T("height", p);
|
|
2255
|
+
const w = [a.left, a.top, m, s];
|
|
2256
|
+
return E.viewBox = w.join(" "), {
|
|
2257
|
+
attributes: E,
|
|
2258
|
+
viewBox: w,
|
|
2306
2259
|
body: r
|
|
2307
2260
|
};
|
|
2308
2261
|
}
|
|
2309
|
-
const
|
|
2310
|
-
let
|
|
2311
|
-
function
|
|
2262
|
+
const $o = /\sid="(\S+)"/g, qo = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
2263
|
+
let Ho = 0;
|
|
2264
|
+
function Vo(e, t = qo) {
|
|
2312
2265
|
const o = [];
|
|
2313
2266
|
let n;
|
|
2314
|
-
for (; n =
|
|
2267
|
+
for (; n = $o.exec(e); )
|
|
2315
2268
|
o.push(n[1]);
|
|
2316
2269
|
if (!o.length)
|
|
2317
2270
|
return e;
|
|
2318
2271
|
const a = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
2319
2272
|
return o.forEach((r) => {
|
|
2320
|
-
const
|
|
2273
|
+
const i = typeof t == "function" ? t(r) : t + (Ho++).toString(), u = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2321
2274
|
e = e.replace(
|
|
2322
2275
|
// Allowed characters before id: [#;"]
|
|
2323
2276
|
// Allowed characters after id: [)"], .[a-z]
|
|
2324
2277
|
new RegExp('([#;"])(' + u + ')([")]|\\.[a-z])', "g"),
|
|
2325
|
-
"$1" +
|
|
2278
|
+
"$1" + i + a + "$3"
|
|
2326
2279
|
);
|
|
2327
2280
|
}), e = e.replace(new RegExp(a, "g"), ""), e;
|
|
2328
2281
|
}
|
|
2329
|
-
function
|
|
2282
|
+
function Jo(e, t) {
|
|
2330
2283
|
let o = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
2331
2284
|
for (const n in t)
|
|
2332
2285
|
o += " " + n + '="' + t[n] + '"';
|
|
2333
2286
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" + e + "</svg>";
|
|
2334
2287
|
}
|
|
2335
|
-
function
|
|
2288
|
+
function Ko(e) {
|
|
2336
2289
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
2337
2290
|
}
|
|
2338
|
-
function
|
|
2339
|
-
return "data:image/svg+xml," +
|
|
2291
|
+
function Wo(e) {
|
|
2292
|
+
return "data:image/svg+xml," + Ko(e);
|
|
2340
2293
|
}
|
|
2341
|
-
function
|
|
2342
|
-
return 'url("' +
|
|
2294
|
+
function Go(e) {
|
|
2295
|
+
return 'url("' + Wo(e) + '")';
|
|
2343
2296
|
}
|
|
2344
|
-
const
|
|
2345
|
-
...
|
|
2297
|
+
const De = {
|
|
2298
|
+
...Ke,
|
|
2346
2299
|
inline: !1
|
|
2347
|
-
},
|
|
2300
|
+
}, Yo = {
|
|
2348
2301
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2349
2302
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
2350
2303
|
"aria-hidden": !0,
|
|
2351
2304
|
role: "img"
|
|
2352
|
-
},
|
|
2305
|
+
}, Qo = {
|
|
2353
2306
|
display: "inline-block"
|
|
2354
|
-
},
|
|
2307
|
+
}, Q = {
|
|
2355
2308
|
backgroundColor: "currentColor"
|
|
2356
|
-
},
|
|
2309
|
+
}, We = {
|
|
2357
2310
|
backgroundColor: "transparent"
|
|
2358
|
-
},
|
|
2311
|
+
}, ke = {
|
|
2359
2312
|
Image: "var(--svg)",
|
|
2360
2313
|
Repeat: "no-repeat",
|
|
2361
2314
|
Size: "100% 100%"
|
|
2362
|
-
},
|
|
2363
|
-
webkitMask:
|
|
2364
|
-
mask:
|
|
2365
|
-
background:
|
|
2315
|
+
}, xe = {
|
|
2316
|
+
webkitMask: Q,
|
|
2317
|
+
mask: Q,
|
|
2318
|
+
background: We
|
|
2366
2319
|
};
|
|
2367
|
-
for (const e in
|
|
2368
|
-
const t =
|
|
2369
|
-
for (const o in
|
|
2370
|
-
t[e + o] =
|
|
2320
|
+
for (const e in xe) {
|
|
2321
|
+
const t = xe[e];
|
|
2322
|
+
for (const o in ke)
|
|
2323
|
+
t[e + o] = ke[o];
|
|
2371
2324
|
}
|
|
2372
|
-
const
|
|
2325
|
+
const j = {};
|
|
2373
2326
|
["horizontal", "vertical"].forEach((e) => {
|
|
2374
2327
|
const t = e.slice(0, 1) + "Flip";
|
|
2375
|
-
|
|
2328
|
+
j[e + "-flip"] = t, j[e.slice(0, 1) + "-flip"] = t, j[e + "Flip"] = t;
|
|
2376
2329
|
});
|
|
2377
|
-
function
|
|
2330
|
+
function Ie(e) {
|
|
2378
2331
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
2379
2332
|
}
|
|
2380
|
-
const
|
|
2381
|
-
const o =
|
|
2333
|
+
const Zo = (e, t) => {
|
|
2334
|
+
const o = Po(De, t), n = { ...Yo }, a = t.mode || "svg", r = {}, i = t.style, u = typeof i == "object" && !(i instanceof Array) ? i : {};
|
|
2382
2335
|
for (let c in t) {
|
|
2383
2336
|
const l = t[c];
|
|
2384
2337
|
if (l !== void 0)
|
|
@@ -2398,7 +2351,7 @@ const tn = (e, t) => {
|
|
|
2398
2351
|
break;
|
|
2399
2352
|
// Flip as string: 'horizontal,vertical'
|
|
2400
2353
|
case "flip":
|
|
2401
|
-
typeof l == "string" &&
|
|
2354
|
+
typeof l == "string" && Ro(o, l);
|
|
2402
2355
|
break;
|
|
2403
2356
|
// Color: override style
|
|
2404
2357
|
case "color":
|
|
@@ -2406,7 +2359,7 @@ const tn = (e, t) => {
|
|
|
2406
2359
|
break;
|
|
2407
2360
|
// Rotation as string
|
|
2408
2361
|
case "rotate":
|
|
2409
|
-
typeof l == "string" ? o[c] =
|
|
2362
|
+
typeof l == "string" ? o[c] = Oo(l) : typeof l == "number" && (o[c] = l);
|
|
2410
2363
|
break;
|
|
2411
2364
|
// Remove aria-hidden
|
|
2412
2365
|
case "ariaHidden":
|
|
@@ -2414,68 +2367,68 @@ const tn = (e, t) => {
|
|
|
2414
2367
|
l !== !0 && l !== "true" && delete n["aria-hidden"];
|
|
2415
2368
|
break;
|
|
2416
2369
|
default: {
|
|
2417
|
-
const I =
|
|
2418
|
-
I ? (l === !0 || l === "true" || l === 1) && (o[I] = !0) :
|
|
2370
|
+
const I = j[c];
|
|
2371
|
+
I ? (l === !0 || l === "true" || l === 1) && (o[I] = !0) : De[c] === void 0 && (n[c] = l);
|
|
2419
2372
|
}
|
|
2420
2373
|
}
|
|
2421
2374
|
}
|
|
2422
|
-
const
|
|
2375
|
+
const m = _o(e, o), s = m.attributes;
|
|
2423
2376
|
if (o.inline && (r.verticalAlign = "-0.125em"), a === "svg") {
|
|
2424
2377
|
n.style = {
|
|
2425
2378
|
...r,
|
|
2426
2379
|
...u
|
|
2427
|
-
}, Object.assign(n,
|
|
2380
|
+
}, Object.assign(n, s);
|
|
2428
2381
|
let c = 0, l = t.id;
|
|
2429
|
-
return typeof l == "string" && (l = l.replace(/-/g, "_")), n.innerHTML =
|
|
2382
|
+
return typeof l == "string" && (l = l.replace(/-/g, "_")), n.innerHTML = Vo(m.body, l ? () => l + "ID" + c++ : "iconifyVue"), k("svg", n);
|
|
2430
2383
|
}
|
|
2431
|
-
const { body:
|
|
2432
|
-
...
|
|
2433
|
-
width:
|
|
2434
|
-
height:
|
|
2384
|
+
const { body: d, width: p, height: E } = e, T = a === "mask" || (a === "bg" ? !1 : d.indexOf("currentColor") !== -1), w = Jo(d, {
|
|
2385
|
+
...s,
|
|
2386
|
+
width: p + "",
|
|
2387
|
+
height: E + ""
|
|
2435
2388
|
});
|
|
2436
2389
|
return n.style = {
|
|
2437
2390
|
...r,
|
|
2438
|
-
"--svg":
|
|
2439
|
-
width:
|
|
2440
|
-
height:
|
|
2441
|
-
...
|
|
2442
|
-
...
|
|
2391
|
+
"--svg": Go(w),
|
|
2392
|
+
width: Ie(s.width),
|
|
2393
|
+
height: Ie(s.height),
|
|
2394
|
+
...Qo,
|
|
2395
|
+
...T ? Q : We,
|
|
2443
2396
|
...u
|
|
2444
|
-
},
|
|
2445
|
-
},
|
|
2446
|
-
function
|
|
2447
|
-
|
|
2397
|
+
}, k("span", n);
|
|
2398
|
+
}, ue = /* @__PURE__ */ Object.create(null);
|
|
2399
|
+
function Xo(e, t) {
|
|
2400
|
+
ue[e] = t;
|
|
2448
2401
|
}
|
|
2449
|
-
function
|
|
2402
|
+
function Bn(e, t) {
|
|
2450
2403
|
const o = typeof e.prefix == "string" ? e.prefix + ":" : "";
|
|
2451
|
-
|
|
2452
|
-
a && (
|
|
2404
|
+
No(e) && xo(e, (n, a) => {
|
|
2405
|
+
a && (ue[o + n] = a);
|
|
2453
2406
|
});
|
|
2454
2407
|
}
|
|
2455
|
-
const
|
|
2408
|
+
const Ne = A({
|
|
2456
2409
|
// Do not inherit other attributes: it is handled by render()
|
|
2457
2410
|
inheritAttrs: !1,
|
|
2458
2411
|
// Render icon
|
|
2459
2412
|
render() {
|
|
2460
|
-
const e = this.$attrs, t = e.icon, o = typeof t == "string" ?
|
|
2461
|
-
return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null :
|
|
2462
|
-
...
|
|
2413
|
+
const e = this.$attrs, t = e.icon, o = typeof t == "string" ? ue[t] : typeof t == "object" ? t : null;
|
|
2414
|
+
return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null : Zo({
|
|
2415
|
+
...ie,
|
|
2463
2416
|
...o
|
|
2464
2417
|
}, e);
|
|
2465
2418
|
}
|
|
2466
|
-
}),
|
|
2419
|
+
}), en = A({
|
|
2467
2420
|
name: "IconOffline",
|
|
2468
|
-
components: { IconifyIcon:
|
|
2421
|
+
components: { IconifyIcon: Ne },
|
|
2469
2422
|
props: {
|
|
2470
2423
|
icon: {
|
|
2471
2424
|
default: null
|
|
2472
2425
|
}
|
|
2473
2426
|
},
|
|
2474
2427
|
render() {
|
|
2475
|
-
typeof this.icon == "object" &&
|
|
2428
|
+
typeof this.icon == "object" && Xo(this.icon, this.icon);
|
|
2476
2429
|
const e = this.$attrs;
|
|
2477
|
-
return
|
|
2478
|
-
|
|
2430
|
+
return k(
|
|
2431
|
+
Ne,
|
|
2479
2432
|
{
|
|
2480
2433
|
icon: this.icon,
|
|
2481
2434
|
style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
|
|
@@ -2489,7 +2442,7 @@ const Re = A({
|
|
|
2489
2442
|
});
|
|
2490
2443
|
A({
|
|
2491
2444
|
name: "IconifyIconOnline",
|
|
2492
|
-
components: { IconifyIcon:
|
|
2445
|
+
components: { IconifyIcon: he },
|
|
2493
2446
|
props: {
|
|
2494
2447
|
icon: {
|
|
2495
2448
|
type: String,
|
|
@@ -2498,8 +2451,8 @@ A({
|
|
|
2498
2451
|
},
|
|
2499
2452
|
render() {
|
|
2500
2453
|
const e = this.$attrs;
|
|
2501
|
-
return
|
|
2502
|
-
|
|
2454
|
+
return k(
|
|
2455
|
+
he,
|
|
2503
2456
|
{
|
|
2504
2457
|
icon: `${this.icon}`,
|
|
2505
2458
|
style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
|
|
@@ -2511,7 +2464,7 @@ A({
|
|
|
2511
2464
|
);
|
|
2512
2465
|
}
|
|
2513
2466
|
});
|
|
2514
|
-
const
|
|
2467
|
+
const tn = A({
|
|
2515
2468
|
name: "FontIcon",
|
|
2516
2469
|
props: {
|
|
2517
2470
|
icon: {
|
|
@@ -2521,14 +2474,14 @@ const an = A({
|
|
|
2521
2474
|
},
|
|
2522
2475
|
render() {
|
|
2523
2476
|
const e = this.$attrs;
|
|
2524
|
-
return Object.keys(e).includes("uni") || (e == null ? void 0 : e.iconType) === "uni" ?
|
|
2477
|
+
return Object.keys(e).includes("uni") || (e == null ? void 0 : e.iconType) === "uni" ? k(
|
|
2525
2478
|
"i",
|
|
2526
2479
|
{
|
|
2527
2480
|
class: "iconfont",
|
|
2528
2481
|
...e
|
|
2529
2482
|
},
|
|
2530
2483
|
this.icon
|
|
2531
|
-
) : Object.keys(e).includes("svg") || (e == null ? void 0 : e.iconType) === "svg" ?
|
|
2484
|
+
) : Object.keys(e).includes("svg") || (e == null ? void 0 : e.iconType) === "svg" ? k(
|
|
2532
2485
|
"svg",
|
|
2533
2486
|
{
|
|
2534
2487
|
class: "icon-svg",
|
|
@@ -2536,28 +2489,28 @@ const an = A({
|
|
|
2536
2489
|
},
|
|
2537
2490
|
{
|
|
2538
2491
|
default: () => [
|
|
2539
|
-
|
|
2492
|
+
k("use", {
|
|
2540
2493
|
"xlink:href": `#${this.icon}`
|
|
2541
2494
|
})
|
|
2542
2495
|
]
|
|
2543
2496
|
}
|
|
2544
|
-
) :
|
|
2497
|
+
) : k("i", {
|
|
2545
2498
|
class: `iconfont ${this.icon}`,
|
|
2546
2499
|
...e
|
|
2547
2500
|
});
|
|
2548
2501
|
}
|
|
2549
|
-
}),
|
|
2502
|
+
}), on = en, nn = tn, an = {
|
|
2550
2503
|
mounted(e, t) {
|
|
2551
2504
|
var n;
|
|
2552
2505
|
const { value: o } = t;
|
|
2553
2506
|
if (o) {
|
|
2554
|
-
const r = `${(n =
|
|
2507
|
+
const r = `${(n = h.currentRoute.value.meta) == null ? void 0 : n.prefixAuth}.${o}`;
|
|
2555
2508
|
f().getButtonAuth.includes(r) || e.parentNode.removeChild(e);
|
|
2556
2509
|
} else
|
|
2557
2510
|
throw new Error(`need roles! Like v-auth="['admin','test']"`);
|
|
2558
2511
|
}
|
|
2559
2512
|
};
|
|
2560
|
-
function
|
|
2513
|
+
function rn(e) {
|
|
2561
2514
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, o) {
|
|
2562
2515
|
var n = e.get(t);
|
|
2563
2516
|
n ? n.push(o) : e.set(t, [o]);
|
|
@@ -2573,78 +2526,81 @@ function ln(e) {
|
|
|
2573
2526
|
});
|
|
2574
2527
|
} };
|
|
2575
2528
|
}
|
|
2576
|
-
const
|
|
2529
|
+
const sn = rn(), Pe = ft({
|
|
2577
2530
|
strategy: "scroll"
|
|
2578
|
-
}),
|
|
2531
|
+
}), un = {
|
|
2579
2532
|
mounted(e, t, o) {
|
|
2580
|
-
|
|
2533
|
+
Pe.listenTo(e, (n) => {
|
|
2581
2534
|
const a = n.offsetWidth, r = n.offsetHeight;
|
|
2582
|
-
t != null && t.instance ?
|
|
2535
|
+
t != null && t.instance ? sn.emit("resize", { detail: { width: a, height: r } }) : o.el.dispatchEvent(new CustomEvent("resize", { detail: { width: a, height: r } }));
|
|
2583
2536
|
});
|
|
2584
2537
|
},
|
|
2585
2538
|
unmounted(e) {
|
|
2586
|
-
|
|
2539
|
+
Pe.uninstall(e);
|
|
2587
2540
|
}
|
|
2588
|
-
},
|
|
2541
|
+
}, Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2589
2542
|
__proto__: null,
|
|
2590
|
-
auth:
|
|
2591
|
-
resize:
|
|
2592
|
-
}, Symbol.toStringTag, { value: "Module" })), y =
|
|
2593
|
-
y.use(
|
|
2543
|
+
auth: an,
|
|
2544
|
+
resize: un
|
|
2545
|
+
}, Symbol.toStringTag, { value: "Module" })), y = Xe(Nt);
|
|
2546
|
+
y.use(gt, {
|
|
2594
2547
|
defaultProps: { animation: "perspective" }
|
|
2595
2548
|
});
|
|
2596
|
-
const
|
|
2597
|
-
e.config.globalProperties.$hasAuthority =
|
|
2598
|
-
},
|
|
2599
|
-
Object.keys(
|
|
2600
|
-
e.directive(t,
|
|
2549
|
+
const ln = (e) => {
|
|
2550
|
+
e.config.globalProperties.$hasAuthority = So, e.config.globalProperties.$serviceApi = $(), e.config.globalProperties.$url = v();
|
|
2551
|
+
}, cn = (e) => {
|
|
2552
|
+
Object.keys(Ae).forEach((t) => {
|
|
2553
|
+
e.directive(t, Ae[t]);
|
|
2601
2554
|
});
|
|
2602
|
-
},
|
|
2603
|
-
|
|
2604
|
-
})),
|
|
2555
|
+
}, zn = ({ router: e, config: t, lang: o, views: n, env: a, tableConfig: r }) => (co(n, e), y.use(e), Ft(e), Tt(y, t), St(a), go(r), new Promise((i) => {
|
|
2556
|
+
qt(y, o), y.component("IconifyIconOffline", on), y.component("FontIcon", nn), y.use(ht, { defaultOptions: { zIndex: 9999 } }), ln(y), cn(y), Pt(y), To(y, t), i({ app: y, router: e });
|
|
2557
|
+
})), mn = {
|
|
2605
2558
|
onLogined: () => {
|
|
2606
2559
|
},
|
|
2607
2560
|
onBeforeLogout: () => {
|
|
2608
2561
|
}
|
|
2609
|
-
},
|
|
2610
|
-
|
|
2562
|
+
}, jn = () => {
|
|
2563
|
+
mn.onLogined();
|
|
2611
2564
|
};
|
|
2612
2565
|
export {
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2566
|
+
kn as A,
|
|
2567
|
+
xn as B,
|
|
2568
|
+
Nn as C,
|
|
2569
|
+
Wt as D,
|
|
2570
|
+
jn as E,
|
|
2571
|
+
nn as F,
|
|
2572
|
+
zn as G,
|
|
2573
|
+
So as H,
|
|
2574
|
+
on as I,
|
|
2575
|
+
mn as J,
|
|
2576
|
+
Ln as K,
|
|
2577
|
+
An as L,
|
|
2578
|
+
Pn as M,
|
|
2579
|
+
xt as _,
|
|
2580
|
+
Bn as a,
|
|
2581
|
+
Xo as b,
|
|
2582
|
+
In as c,
|
|
2627
2583
|
f as d,
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
q,
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2584
|
+
z as e,
|
|
2585
|
+
$e as f,
|
|
2586
|
+
oe as g,
|
|
2587
|
+
sn as h,
|
|
2588
|
+
ge as i,
|
|
2589
|
+
ne as j,
|
|
2590
|
+
Ct as k,
|
|
2591
|
+
Dn as l,
|
|
2592
|
+
Fn as m,
|
|
2593
|
+
Et as n,
|
|
2594
|
+
On as o,
|
|
2595
|
+
Rn as p,
|
|
2596
|
+
$ as q,
|
|
2597
|
+
h as r,
|
|
2598
|
+
q as s,
|
|
2599
|
+
Ht as t,
|
|
2600
|
+
x as u,
|
|
2601
|
+
F as v,
|
|
2602
|
+
eo as w,
|
|
2647
2603
|
v as x,
|
|
2648
|
-
|
|
2649
|
-
|
|
2604
|
+
oo as y,
|
|
2605
|
+
Mn as z
|
|
2650
2606
|
};
|