@utogether/udp-core 1.0.1-beta.14 → 1.0.1-beta.16
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/{403-pRpb9luy.js → 403-RBzulrcG.js} +1 -1
- package/dist/{404-Bsowhpja.js → 404-DX-dU_6C.js} +1 -1
- package/dist/{500-DZuJN9lQ.js → 500-BCTk0__d.js} +1 -1
- package/dist/{AuthorityInfo-DsSMdxQ1.js → AuthorityInfo-BADTOenq.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DCRZ7hKU.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Cv46yAx_.js} +3 -3
- package/dist/{Company-JFHxazkc.js → Company-B-61KrWd.js} +3 -3
- package/dist/{CompanyPanel-Bt-5OX8x.js → CompanyPanel-CawSrEff.js} +10 -10
- package/dist/{Department-B1bTl93X.js → Department-CrzJPtvP.js} +3 -3
- package/dist/{DepartmentPanel-CVIvI8sf.js → DepartmentPanel-DYuL8H-j.js} +23 -23
- package/dist/{DesignPanel-snVLq3Gi.js → DesignPanel-DEAv6V68.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Cvb54DDl.js → DesignPanel.vue_vue_type_style_index_0_lang-BsnXZ2td.js} +6 -6
- package/dist/{DictView-OoNA8vMb.js → DictView-BuO-2b-c.js} +15 -16
- package/dist/{InvOrganization-CINznAuo.js → InvOrganization-CBgKBJAn.js} +1 -1
- package/dist/{Org-BA3ZHIpa.js → Org-BaQw2r-o.js} +3 -3
- package/dist/{Preview-C9rFs95x.js → Preview-DvCrmKNk.js} +2 -2
- package/dist/{ReportDefine-D2CXXxZp.js → ReportDefine-DyhWz0as.js} +1 -1
- package/dist/{ReportDesign-DWmFLxO_.js → ReportDesign-DgZ2f2zv.js} +10 -10
- package/dist/{ReportQuery-BBMEls-l.js → ReportQuery-DTZYbCDi.js} +1 -1
- package/dist/{ReportQueryFrom-CIeGY6UD.js → ReportQueryFrom-B-vtJegP.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-qtLKZPIW.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-D6izgxph.js} +1 -1
- package/dist/{ReportTemplate-CWxGNxLg.js → ReportTemplate-DA1ZqKGf.js} +11 -11
- package/dist/{Role-CF93718B.js → Role-mbqoav5t.js} +3 -3
- package/dist/{RoleAssign-BjoNSr6O.js → RoleAssign-ltEJIEcr.js} +3 -3
- package/dist/{RolePanel-qBGK6Ilt.js → RolePanel-1g1a-G8D.js} +1 -1
- package/dist/{RolePanel-DmQaKkm5.js → RolePanel-u90v9eS0.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BeNdAkYp.js → RolePanel.vue_vue_type_script_setup_true_lang-D9YxpGnt.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DdK59XHp.js → RolePanel.vue_vue_type_script_setup_true_lang-LC4Egk-Q.js} +9 -9
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-LU6W_QVY.js → ScrollPanel.vue_vue_type_style_index_0_lang-DZ3W1epK.js} +8 -8
- package/dist/{Staff-BrjfdZU2.js → Staff-CJ2GgCL3.js} +3 -3
- package/dist/{StaffInfo-DYmftNDC.js → StaffInfo-3KkodDCK.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DVLhL8tz.js → StaffInfo.vue_vue_type_script_setup_true_lang-CW-isIxJ.js} +7 -7
- package/dist/{StaffPanel-DJERIwT_.js → StaffPanel-DoXPSoY5.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-D_leV5A8.js → StaffPanel.vue_vue_type_script_setup_true_lang-DvhGnOMZ.js} +2 -2
- package/dist/{SysUser-WO0whf-F.js → SysUser-BuIZhMPh.js} +2 -2
- package/dist/{SysUserPanel-C64mSt4O.js → SysUserPanel-t1GJcJGM.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-B19FuxOZ.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CDDkFLlN.js} +6 -6
- package/dist/{SystemMenu-CY1EDfzl.js → SystemMenu-DuLEL6_l.js} +10 -10
- package/dist/{UserInfo-DWXmMOD1.js → UserInfo-WWby4lts.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-pjHVXRtK.js → UserInfo.vue_vue_type_style_index_0_lang-B06ZSrJV.js} +10 -10
- package/dist/{childView-CMBPpTyj.js → childView-B0-EAoAi.js} +1 -1
- package/dist/{childView-Czd4yk_A.js → childView-IYY4L8VK.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-C9wXL52o.js → childView.vue_vue_type_style_index_0_lang-B56v6yK7.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CaMQbFZm.js → childView.vue_vue_type_style_index_0_lang-CjF8nZuj.js} +6 -6
- package/dist/{code-rule-kHfdPgGA.js → code-rule-DDLdi3pP.js} +6 -6
- package/dist/core.es.js +17 -12
- package/dist/{cron-task-D1bbdvVP.js → cron-task-p3-AFN1w.js} +11 -11
- package/dist/{frameView-B5JStsSt.js → frameView-B_WAZErD.js} +1 -1
- package/dist/{index-Ce51XQgg.js → index-24fnvUBy.js} +748 -544
- package/dist/{layoutView-DR39l27s.js → layoutView-CoEp2afn.js} +25 -27
- package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
- package/dist/login-DP0oP70W.js +249 -0
- package/dist/{lov-view-wdnYE7wy.js → lov-view-BDoZRK-v.js} +5 -5
- package/dist/{menuInfo-D0746839.js → menuInfo-5Xls76qB.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-p_yYtGl2.js → menuInfo.vue_vue_type_style_index_0_lang-BfZczW9a.js} +7 -7
- package/dist/{pda-app-zzzZfBj5.js → pda-app-DxGYn4G7.js} +20 -20
- package/dist/{resource-B7wnjBVW.js → resource-BnYWe_-Q.js} +7 -7
- package/dist/{su-welcome-CeajjyWS.js → su-welcome-B2rNhhDH.js} +88 -88
- package/dist/sys-config-Bb4WkxZK.js +355 -0
- package/dist/udp-core.css +2 -2
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/index.ts +12 -4
- package/package.json +18 -18
- package/src/components/udp/form.vue +2 -2
- package/src/components/udp/utils.ts +11 -7
- package/src/layout/hooks/useTag.ts +221 -233
- package/src/main.ts +114 -113
- package/src/plugins/i18n/zh.ts +6 -1
- package/src/store/modules/system.ts +1 -3
- package/src/style/login.css +336 -336
- package/src/style/vxetable.scss +32 -0
- package/src/utils/index.ts +3 -1
- package/src/views/system/sys/sys-config.vue +50 -1
- package/src/views/uapp/pda/pda-app.vue +1 -1
- package/src/views/udev/dict/DictView.vue +2 -2
- package/src/views/ulogin/login.vue +323 -321
- package/src/views/upms/interface/log-out.vue +101 -107
- package/src/views/urpt/design/Preview.vue +1 -0
- package/src/views/urpt/design/ReportDesign.vue +2 -4
- package/types/global.d.ts +230 -236
- package/dist/login-d5LMP32l.js +0 -253
- package/dist/sys-config-CpfSg66g.js +0 -290
- package/dist/utogether-B_dUqXea.js +0 -182
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { ElConfigProvider as
|
|
4
|
-
import { checkVersion as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { http as
|
|
7
|
-
import { merge as
|
|
8
|
-
import { createPinia as
|
|
9
|
-
import { useTimeoutFn as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { Icon as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
var
|
|
1
|
+
import * as Me from "vue";
|
|
2
|
+
import { defineComponent as L, resolveComponent as ee, createBlock as ot, openBlock as nt, withCtx as at, createVNode as Be, toRaw as pe, isProxy as he, defineAsyncComponent as rt, h as P, createApp as st, computed as fe, ref as Y } from "vue";
|
|
3
|
+
import { ElConfigProvider as ge } from "element-plus";
|
|
4
|
+
import { checkVersion as it } from "version-rocket";
|
|
5
|
+
import { useI18n as je, createI18n as lt } from "vue-i18n";
|
|
6
|
+
import { http as x, storageLocal as p, cookies as M, buildHierarchyTree as re, dbstorage as Q, isUrl as ze, openLink as ut, NProgress as ct, VxetableRender as dt, useGlobal as Ue, deviceDetection as mt, storageSession as pt } from "@utogether/utils";
|
|
7
|
+
import { merge as se, clone as B, debounce as ht, findLastIndexOf as ft, isBoolean as gt, isEqual as ye, findIndexOf as yt, isEmpty as wt, isArray as bt } from "xe-utils";
|
|
8
|
+
import { createPinia as Ct, defineStore as z } from "pinia";
|
|
9
|
+
import { useTimeoutFn as vt } from "@vueuse/core";
|
|
10
|
+
import _e, { VxeUI as ie } from "vxe-table";
|
|
11
|
+
import Tt from "v-viewer";
|
|
12
|
+
import { Icon as we } from "@iconify/vue";
|
|
13
|
+
import Et from "vue-tippy";
|
|
14
|
+
import St from "element-resize-detector";
|
|
15
|
+
var kt = {
|
|
16
16
|
name: "en",
|
|
17
17
|
el: {
|
|
18
18
|
breadcrumb: {
|
|
@@ -190,7 +190,7 @@ var ft = {
|
|
|
190
190
|
indicator: "Carousel switch to index {index}"
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
},
|
|
193
|
+
}, Ft = {
|
|
194
194
|
name: "zh-cn",
|
|
195
195
|
el: {
|
|
196
196
|
breadcrumb: {
|
|
@@ -368,40 +368,40 @@ var ft = {
|
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
};
|
|
371
|
-
const
|
|
372
|
-
let
|
|
373
|
-
const
|
|
374
|
-
|
|
375
|
-
},
|
|
376
|
-
|
|
377
|
-
},
|
|
378
|
-
post: (e, t, o) =>
|
|
379
|
-
get: (e, t, o) =>
|
|
380
|
-
put: (e, t) =>
|
|
381
|
-
delete: (e, t) =>
|
|
382
|
-
}),
|
|
383
|
-
|
|
384
|
-
},
|
|
385
|
-
|
|
386
|
-
},
|
|
371
|
+
const Dt = "menu_zh", xt = "menu_en", It = "authorized-token", Nt = "kCookies_token", Pt = "kSysConfig", qe = "loginer";
|
|
372
|
+
let te = {}, He = {};
|
|
373
|
+
const Ot = (e, t) => {
|
|
374
|
+
te = Object.assign(te, t), e.config.globalProperties.$config = k();
|
|
375
|
+
}, k = () => te, Rt = (e = {}) => {
|
|
376
|
+
He = e;
|
|
377
|
+
}, be = () => He, w = () => k().ResponsiveStorageNameSpace, K = () => ({
|
|
378
|
+
post: (e, t, o) => x.post(`${I()}${e}`, t, o),
|
|
379
|
+
get: (e, t, o) => x.get(`${I()}${e}`, t, o),
|
|
380
|
+
put: (e, t) => x.put(`${I()}${e}`, t),
|
|
381
|
+
delete: (e, t) => x.delete(`${I()}${e}`, t)
|
|
382
|
+
}), Lt = (e) => {
|
|
383
|
+
x.setRouter(e);
|
|
384
|
+
}, At = (e) => {
|
|
385
|
+
x.setBaseUrl(e);
|
|
386
|
+
}, Mt = window.location.origin + "/gateway", I = () => be().VITE_BASE_URL === "origin" ? Mt : be().VITE_BASE_URL, Bt = L({
|
|
387
387
|
name: "app",
|
|
388
388
|
components: {
|
|
389
|
-
[
|
|
389
|
+
[ge.name]: ge
|
|
390
390
|
},
|
|
391
391
|
beforeRouteEnter(e, t, o) {
|
|
392
|
-
|
|
392
|
+
K().get("/upfm/v1/sysConfig", {}).then((n) => {
|
|
393
393
|
o();
|
|
394
394
|
});
|
|
395
395
|
},
|
|
396
396
|
computed: {
|
|
397
397
|
currentLocale() {
|
|
398
398
|
var e, t;
|
|
399
|
-
return ((t = (e = this.$storage) == null ? void 0 : e.locale) == null ? void 0 : t.locale) === "zh" ?
|
|
399
|
+
return ((t = (e = this.$storage) == null ? void 0 : e.locale) == null ? void 0 : t.locale) === "zh" ? Ft : kt;
|
|
400
400
|
}
|
|
401
401
|
},
|
|
402
402
|
beforeCreate() {
|
|
403
|
-
const { t: e } =
|
|
404
|
-
|
|
403
|
+
const { t: e } = je(), n = (p.getItem(Pt) || { title: "U-DP" }).title;
|
|
404
|
+
it(
|
|
405
405
|
{
|
|
406
406
|
pollingTime: 3e5,
|
|
407
407
|
checkOriginSpecifiedFilesUrl: [`${location.origin}/index.html`],
|
|
@@ -415,30 +415,30 @@ const Et = (e, t) => {
|
|
|
415
415
|
}
|
|
416
416
|
);
|
|
417
417
|
}
|
|
418
|
-
}),
|
|
418
|
+
}), jt = (e, t) => {
|
|
419
419
|
const o = e.__vccOpts || e;
|
|
420
420
|
for (const [n, a] of t)
|
|
421
421
|
o[n] = a;
|
|
422
422
|
return o;
|
|
423
423
|
};
|
|
424
|
-
function
|
|
425
|
-
const
|
|
426
|
-
return
|
|
424
|
+
function zt(e, t, o, n, a, r) {
|
|
425
|
+
const l = ee("router-view"), c = ee("el-config-provider");
|
|
426
|
+
return nt(), ot(c, {
|
|
427
427
|
size: "small",
|
|
428
428
|
"z-index": 5555,
|
|
429
429
|
locale: e.currentLocale
|
|
430
430
|
}, {
|
|
431
|
-
default:
|
|
432
|
-
|
|
431
|
+
default: at(() => [
|
|
432
|
+
Be(l)
|
|
433
433
|
]),
|
|
434
434
|
_: 1
|
|
435
435
|
}, 8, ["locale"]);
|
|
436
436
|
}
|
|
437
|
-
const
|
|
438
|
-
function
|
|
439
|
-
e.use(
|
|
437
|
+
const Ut = /* @__PURE__ */ jt(Bt, [["render", zt]]), A = Ct();
|
|
438
|
+
function _t(e) {
|
|
439
|
+
e.use(A);
|
|
440
440
|
}
|
|
441
|
-
const
|
|
441
|
+
const U = [
|
|
442
442
|
{
|
|
443
443
|
path: "/welcome",
|
|
444
444
|
meta: {
|
|
@@ -446,29 +446,66 @@ const ne = [
|
|
|
446
446
|
icon: "home-filled"
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
],
|
|
449
|
+
], qn = (e) => {
|
|
450
|
+
const t = e.indexOf("windows nt 5.1") > -1 || e.indexOf("windows xp") > -1;
|
|
451
|
+
if (e.indexOf("windows xp") > -1, t) return "WinXP";
|
|
452
|
+
if (e.indexOf("windows nt 6.1") > -1 || e.indexOf("windows 7") > -1) return "Win7";
|
|
453
|
+
if (e.indexOf("windows nt6.2") > -1 || e.indexOf("windows 8") > -1) return "Win8";
|
|
454
|
+
if (e.indexOf("windows nt 10.0") > -1 || e.indexOf("windows 10") > -1) return "Win10";
|
|
455
|
+
}, Hn = (e) => {
|
|
456
|
+
let t = null;
|
|
457
|
+
const o = {
|
|
458
|
+
Chrome: e.indexOf("chrome") > -1 && e.indexOf("safari") > -1,
|
|
459
|
+
// Chrome浏览器
|
|
460
|
+
Firefox: e.indexOf("firefox") > -1,
|
|
461
|
+
// 火狐浏览器
|
|
462
|
+
Opera: e.indexOf("opera") > -1,
|
|
463
|
+
// Opera浏览器
|
|
464
|
+
Safari: e.indexOf("safari") > -1 && e.indexOf("chrome") == -1,
|
|
465
|
+
// safari浏览器
|
|
466
|
+
Edge: e.indexOf("edg") > -1,
|
|
467
|
+
// Edge浏览器
|
|
468
|
+
MetaSr: e.indexOf("metaSr") > -1,
|
|
469
|
+
// 搜狗浏览器
|
|
470
|
+
QQBrowser: /qqbrowser/.test(e),
|
|
471
|
+
// qq浏览器
|
|
472
|
+
WeixinBrowser: /MicroMessenger/i.test(e)
|
|
473
|
+
// 微信浏览器
|
|
474
|
+
};
|
|
475
|
+
let n = "";
|
|
476
|
+
for (const a in o)
|
|
477
|
+
o[a] && (n = e.match(/chrome\/([\d.]+)/)[1], t = a);
|
|
478
|
+
return { browser: t, browserVersion: n };
|
|
479
|
+
}, qt = {
|
|
480
|
+
onLogined: () => {
|
|
481
|
+
},
|
|
482
|
+
onBeforeLogout: () => {
|
|
483
|
+
}
|
|
484
|
+
}, $n = () => {
|
|
485
|
+
qt.onLogined();
|
|
486
|
+
}, Ht = (e, t) => {
|
|
450
487
|
const o = [];
|
|
451
488
|
for (const n of e)
|
|
452
489
|
n[t] && o.push(n[t]);
|
|
453
490
|
return Array.from(new Set(o));
|
|
454
|
-
},
|
|
491
|
+
}, $e = (e) => {
|
|
455
492
|
const t = e.replace("#", "").match(/../g);
|
|
456
493
|
for (let o = 0; o < 3; o++) t[o] = parseInt(t[o], 16);
|
|
457
494
|
return t;
|
|
458
|
-
},
|
|
495
|
+
}, Ve = (e, t, o) => {
|
|
459
496
|
const n = [e.toString(16), t.toString(16), o.toString(16)];
|
|
460
497
|
for (let a = 0; a < 3; a++)
|
|
461
498
|
n[a].length == 1 && (n[a] = `0${n[a]}`);
|
|
462
499
|
return `#${n.join("")}`;
|
|
463
|
-
},
|
|
464
|
-
const o =
|
|
500
|
+
}, $t = (e, t) => {
|
|
501
|
+
const o = $e(e);
|
|
465
502
|
for (let n = 0; n < 3; n++) o[n] = Math.floor(o[n] * (1 - t));
|
|
466
|
-
return
|
|
467
|
-
},
|
|
468
|
-
const o =
|
|
503
|
+
return Ve(o[0], o[1], o[2]);
|
|
504
|
+
}, Vt = (e, t) => {
|
|
505
|
+
const o = $e(e);
|
|
469
506
|
for (let n = 0; n < 3; n++) o[n] = Math.floor((255 - o[n]) * t + o[n]);
|
|
470
|
-
return
|
|
471
|
-
},
|
|
507
|
+
return Ve(o[0], o[1], o[2]);
|
|
508
|
+
}, Ce = {
|
|
472
509
|
zh: {
|
|
473
510
|
message: {
|
|
474
511
|
reportCode: "报表编号",
|
|
@@ -518,13 +555,13 @@ const ne = [
|
|
|
518
555
|
isRequired: "Required"
|
|
519
556
|
}
|
|
520
557
|
}
|
|
521
|
-
},
|
|
522
|
-
zh: { ...
|
|
523
|
-
en: { ...
|
|
524
|
-
},
|
|
558
|
+
}, Wt = {
|
|
559
|
+
zh: { ...Ce.zh.message },
|
|
560
|
+
en: { ...Ce.en.message }
|
|
561
|
+
}, Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
525
562
|
__proto__: null,
|
|
526
|
-
default:
|
|
527
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
563
|
+
default: Wt
|
|
564
|
+
}, Symbol.toStringTag, { value: "Module" })), Kt = {
|
|
528
565
|
zh: {
|
|
529
566
|
message: {
|
|
530
567
|
taskName: "任务名称",
|
|
@@ -553,7 +590,7 @@ const ne = [
|
|
|
553
590
|
actuatorAddress: "Actuator Adress"
|
|
554
591
|
}
|
|
555
592
|
}
|
|
556
|
-
},
|
|
593
|
+
}, Jt = {
|
|
557
594
|
zh: {
|
|
558
595
|
message: {
|
|
559
596
|
flowId: "流程标识",
|
|
@@ -574,17 +611,17 @@ const ne = [
|
|
|
574
611
|
flowDesign: "Flow Design"
|
|
575
612
|
}
|
|
576
613
|
}
|
|
577
|
-
},
|
|
614
|
+
}, ve = [Kt, Jt], Yt = {
|
|
578
615
|
zh: {
|
|
579
|
-
...Object.assign({}, ...
|
|
616
|
+
...Object.assign({}, ...ve.map((e) => e.zh.message))
|
|
580
617
|
},
|
|
581
618
|
en: {
|
|
582
|
-
...Object.assign({}, ...
|
|
619
|
+
...Object.assign({}, ...ve.map((e) => e.en.message))
|
|
583
620
|
}
|
|
584
|
-
},
|
|
621
|
+
}, Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
585
622
|
__proto__: null,
|
|
586
|
-
default:
|
|
587
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
623
|
+
default: Yt
|
|
624
|
+
}, Symbol.toStringTag, { value: "Module" })), Zt = {
|
|
588
625
|
zh: {
|
|
589
626
|
message: {
|
|
590
627
|
msgtemplateCode: "模板代码",
|
|
@@ -604,10 +641,10 @@ const ne = [
|
|
|
604
641
|
xx: "xxx"
|
|
605
642
|
}
|
|
606
643
|
}
|
|
607
|
-
},
|
|
644
|
+
}, Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
608
645
|
__proto__: null,
|
|
609
|
-
default:
|
|
610
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
646
|
+
default: Zt
|
|
647
|
+
}, Symbol.toStringTag, { value: "Module" })), eo = {
|
|
611
648
|
udp: {
|
|
612
649
|
dark: "深色",
|
|
613
650
|
light: "浅色",
|
|
@@ -652,6 +689,8 @@ const ne = [
|
|
|
652
689
|
copyright: "版权信息",
|
|
653
690
|
i18nEnabled: "国际化",
|
|
654
691
|
orgTaggle: "启用组织切换",
|
|
692
|
+
baseColor: "基准色",
|
|
693
|
+
techSupport: "技术支持",
|
|
655
694
|
defaultLanguage: "默认语言",
|
|
656
695
|
roleName: "角色名称",
|
|
657
696
|
roleCode: "角色编码",
|
|
@@ -696,6 +735,7 @@ const ne = [
|
|
|
696
735
|
downloadUrl: "APK文件",
|
|
697
736
|
forceUpdate: "强制更新",
|
|
698
737
|
freeUpdate: "自主更新",
|
|
738
|
+
placeholder: "请录入",
|
|
699
739
|
userName: "用户姓名",
|
|
700
740
|
userCode: "用户编码",
|
|
701
741
|
userType: "用户类型",
|
|
@@ -706,7 +746,9 @@ const ne = [
|
|
|
706
746
|
orgAlias: "业务实体简称",
|
|
707
747
|
orgDesc: "业务实体描述",
|
|
708
748
|
organizationName: "组织名称",
|
|
709
|
-
organizationCode: "组织编码"
|
|
749
|
+
organizationCode: "组织编码",
|
|
750
|
+
appupper: "已上架",
|
|
751
|
+
applower: "已下架"
|
|
710
752
|
},
|
|
711
753
|
btn: {
|
|
712
754
|
passwordReset: "密码重置",
|
|
@@ -937,7 +979,7 @@ const ne = [
|
|
|
937
979
|
lovColConfig: "值集列配置",
|
|
938
980
|
sequenceInfo: "{name}单据序列配置"
|
|
939
981
|
}
|
|
940
|
-
},
|
|
982
|
+
}, to = {
|
|
941
983
|
udp: {
|
|
942
984
|
dark: "深色",
|
|
943
985
|
light: "浅色",
|
|
@@ -1219,41 +1261,41 @@ const ne = [
|
|
|
1219
1261
|
dictDispose: "dictDispose",
|
|
1220
1262
|
isSearch: "isSearch",
|
|
1221
1263
|
isCol: "isCol"
|
|
1222
|
-
},
|
|
1223
|
-
for (const e in
|
|
1224
|
-
|
|
1225
|
-
const
|
|
1264
|
+
}, Te = /* @__PURE__ */ Object.assign({ "./module/u-report.ts": Gt, "./module/u-workflow.ts": Qt, "./module/umsg.ts": Xt }), q = {};
|
|
1265
|
+
for (const e in Te)
|
|
1266
|
+
q[e.replace(/(\.\/module\/|\.ts)/g, "")] = Te[e].default;
|
|
1267
|
+
const Ee = Object.keys(q).filter((e) => q[e]).map((e) => q[e]), oo = {
|
|
1226
1268
|
zh: {
|
|
1227
|
-
...
|
|
1228
|
-
message:
|
|
1269
|
+
...p.getItem(Dt),
|
|
1270
|
+
message: se(eo, ...Ee.map((e) => e.zh.message))
|
|
1229
1271
|
},
|
|
1230
1272
|
en: {
|
|
1231
|
-
...
|
|
1232
|
-
message: Object.assign(
|
|
1273
|
+
...p.getItem(xt),
|
|
1274
|
+
message: Object.assign(to, ...Ee.map((e) => e.en.message))
|
|
1233
1275
|
}
|
|
1234
1276
|
};
|
|
1235
|
-
let
|
|
1236
|
-
function
|
|
1277
|
+
let R = null;
|
|
1278
|
+
function no(e, t = { messages: {} }) {
|
|
1237
1279
|
var o;
|
|
1238
|
-
|
|
1280
|
+
R = lt({
|
|
1239
1281
|
legacy: !1,
|
|
1240
|
-
locale: ((o =
|
|
1282
|
+
locale: ((o = p.getItem(`${w()}locale`)) == null ? void 0 : o.locale) ?? "zh",
|
|
1241
1283
|
fallbackLocale: "en",
|
|
1242
1284
|
globalInjection: !0,
|
|
1243
|
-
messages:
|
|
1244
|
-
}),
|
|
1285
|
+
messages: se(oo, t.messages)
|
|
1286
|
+
}), ie.setLanguage("zh-CN"), e.use(R);
|
|
1245
1287
|
}
|
|
1246
|
-
const
|
|
1247
|
-
function
|
|
1288
|
+
const H = () => R;
|
|
1289
|
+
function We(e = "", t = !0) {
|
|
1248
1290
|
if (!e)
|
|
1249
1291
|
return "";
|
|
1250
1292
|
if (typeof e == "object") {
|
|
1251
|
-
const o =
|
|
1293
|
+
const o = R.global.locale;
|
|
1252
1294
|
return e[o.value];
|
|
1253
1295
|
}
|
|
1254
|
-
return t ?
|
|
1296
|
+
return t ? R.global.t.call(R.global, e) : e;
|
|
1255
1297
|
}
|
|
1256
|
-
const
|
|
1298
|
+
const ao = z("udp-system", {
|
|
1257
1299
|
state: () => ({
|
|
1258
1300
|
baseURL: "",
|
|
1259
1301
|
userInfo: {},
|
|
@@ -1365,7 +1407,7 @@ const Kt = ee("udp-system", {
|
|
|
1365
1407
|
setDict(e) {
|
|
1366
1408
|
this.dicts = e, e == null || e.forEach((t) => {
|
|
1367
1409
|
this.dataDict[t.dictCode] = t;
|
|
1368
|
-
}),
|
|
1410
|
+
}), p.setItem("kLov", this.dataDict);
|
|
1369
1411
|
},
|
|
1370
1412
|
// 系统信息
|
|
1371
1413
|
setSystemInfo(e) {
|
|
@@ -1377,28 +1419,26 @@ const Kt = ee("udp-system", {
|
|
|
1377
1419
|
orgId: e.orgId,
|
|
1378
1420
|
organizationId: e.organizationId
|
|
1379
1421
|
};
|
|
1380
|
-
|
|
1381
|
-
(a) => a.roleCode === "admin" || ["管理员"].includes(a.roleName)
|
|
1382
|
-
), f().setAuthButton(e.dataMenus);
|
|
1422
|
+
M.set("kCookies_param", JSON.stringify(o)), this.isAdminRole = this.employee.sysRoles.some((a) => a.roleCode === "admin" || ["管理员"].includes(a.roleName)), C().setAuthButton(e.dataMenus);
|
|
1383
1423
|
}
|
|
1384
1424
|
}
|
|
1385
1425
|
});
|
|
1386
|
-
function
|
|
1387
|
-
return
|
|
1426
|
+
function $() {
|
|
1427
|
+
return ao(A);
|
|
1388
1428
|
}
|
|
1389
|
-
function
|
|
1390
|
-
return /* @__PURE__ */
|
|
1429
|
+
function ro(e, t) {
|
|
1430
|
+
return /* @__PURE__ */ L({
|
|
1391
1431
|
name: e,
|
|
1392
1432
|
components: {
|
|
1393
1433
|
asyncComponent: t
|
|
1394
1434
|
},
|
|
1395
1435
|
setup() {
|
|
1396
|
-
return () =>
|
|
1436
|
+
return () => Be(ee("async-component"), null, null);
|
|
1397
1437
|
}
|
|
1398
1438
|
});
|
|
1399
1439
|
}
|
|
1400
|
-
const
|
|
1401
|
-
function
|
|
1440
|
+
const so = () => x.get(`${I()}/uums/roleMenu`), io = () => x.get(`${I()}/upfm/v1/lov/selectAll`), Se = (e) => x.get(`${I()}/uums/roleMenu/userMenu`, e), lo = () => import("./layoutView-CoEp2afn.js"), uo = () => import("./frameView-B_WAZErD.js");
|
|
1441
|
+
function _(e) {
|
|
1402
1442
|
return e.forEach((t) => {
|
|
1403
1443
|
var o, n;
|
|
1404
1444
|
((o = t == null ? void 0 : t.meta) == null ? void 0 : o.rank) === null && (t.meta.rank = void 0), ((n = t == null ? void 0 : t.meta) == null ? void 0 : n.rank) === 0 && t.name !== "home" && t.path !== "/" && console.warn("rank only the home page can be 0");
|
|
@@ -1407,96 +1447,96 @@ function L(e) {
|
|
|
1407
1447
|
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);
|
|
1408
1448
|
});
|
|
1409
1449
|
}
|
|
1410
|
-
function
|
|
1411
|
-
const t =
|
|
1450
|
+
function Ge(e) {
|
|
1451
|
+
const t = B(e, !0).filter(
|
|
1412
1452
|
(o) => {
|
|
1413
1453
|
var n;
|
|
1414
1454
|
return o && ((n = o.meta) == null ? void 0 : n.showLink) !== !1;
|
|
1415
1455
|
}
|
|
1416
1456
|
);
|
|
1417
|
-
return t.forEach((o) => o.children && (o.children =
|
|
1457
|
+
return t.forEach((o) => o.children && (o.children = Ge(o.children))), t;
|
|
1418
1458
|
}
|
|
1419
|
-
function
|
|
1420
|
-
function n(a, r,
|
|
1421
|
-
for (let
|
|
1422
|
-
const d = a[
|
|
1423
|
-
if (d[o] === r) return
|
|
1459
|
+
function Vn(e, t, o = "path") {
|
|
1460
|
+
function n(a, r, l) {
|
|
1461
|
+
for (let c = 0; c < a.length; c++) {
|
|
1462
|
+
const d = a[c];
|
|
1463
|
+
if (d[o] === r) return l;
|
|
1424
1464
|
if (!(!d.children || !d.children.length)) {
|
|
1425
|
-
if (
|
|
1426
|
-
|
|
1465
|
+
if (l.push(d.path), n(d.children, r, l).length) return l;
|
|
1466
|
+
l.pop();
|
|
1427
1467
|
}
|
|
1428
1468
|
}
|
|
1429
1469
|
return [];
|
|
1430
1470
|
}
|
|
1431
1471
|
return n(t, e, []);
|
|
1432
1472
|
}
|
|
1433
|
-
function
|
|
1473
|
+
function Ke(e, t) {
|
|
1434
1474
|
let o = t.find((n) => n.path == e);
|
|
1435
1475
|
if (o)
|
|
1436
|
-
return
|
|
1476
|
+
return he(o) ? pe(o) : o;
|
|
1437
1477
|
for (let n = 0; n < t.length; n++)
|
|
1438
|
-
if (t[n].children instanceof Array && t[n].children.length > 0 && (o =
|
|
1439
|
-
return
|
|
1478
|
+
if (t[n].children instanceof Array && t[n].children.length > 0 && (o = Ke(e, t[n].children), o))
|
|
1479
|
+
return he(o) ? pe(o) : o;
|
|
1440
1480
|
return null;
|
|
1441
1481
|
}
|
|
1442
|
-
function
|
|
1443
|
-
|
|
1482
|
+
function co() {
|
|
1483
|
+
f.hasRoute("pathMatch") || f.addRoute({
|
|
1444
1484
|
path: "/:pathMatch(.*)",
|
|
1445
1485
|
name: "pathMatch",
|
|
1446
1486
|
redirect: "/error/404"
|
|
1447
1487
|
});
|
|
1448
1488
|
}
|
|
1449
|
-
function
|
|
1489
|
+
function mo() {
|
|
1450
1490
|
var t, o;
|
|
1451
|
-
const e =
|
|
1452
|
-
(t = e.global) == null || t.mergeLocaleMessage("zh",
|
|
1491
|
+
const e = H();
|
|
1492
|
+
(t = e.global) == null || t.mergeLocaleMessage("zh", O.zh), (o = e.global) == null || o.mergeLocaleMessage("en", O.en), p.setItem("menu_zh", O.zh), p.setItem("menu_en", O.en);
|
|
1453
1493
|
}
|
|
1454
|
-
function
|
|
1494
|
+
function ke(e) {
|
|
1455
1495
|
if (e != null && e.length) {
|
|
1456
1496
|
const t = e.findIndex((n) => n.menuCode === "SysHome");
|
|
1457
1497
|
if (t !== -1) {
|
|
1458
1498
|
const n = [], a = [];
|
|
1459
1499
|
e[t].children.forEach((r) => {
|
|
1460
1500
|
r.menuCategory !== "1" ? n.push(r) : a.push(r);
|
|
1461
|
-
}), e[t].children = a,
|
|
1501
|
+
}), e[t].children = a, $().setHomeMenus(n);
|
|
1462
1502
|
}
|
|
1463
|
-
const o =
|
|
1464
|
-
|
|
1465
|
-
const { options: a } =
|
|
1466
|
-
a.routes[0].children.findIndex((r) => r.path === n.path) === -1 && (
|
|
1503
|
+
const o = B(Ye(e), !0);
|
|
1504
|
+
mo(), J(o).map((n) => {
|
|
1505
|
+
const { options: a } = f;
|
|
1506
|
+
a.routes[0].children.findIndex((r) => r.path === n.path) === -1 && (f.options.routes[0].children.push(n), _(f.options.routes[0].children), f.hasRoute(n == null ? void 0 : n.name) || f.addRoute(n));
|
|
1467
1507
|
});
|
|
1468
1508
|
}
|
|
1469
|
-
|
|
1470
|
-
...
|
|
1471
|
-
...
|
|
1509
|
+
C().changeSetting(e), F().getMultiTagsCache || F().handleTags("equal", [
|
|
1510
|
+
...U,
|
|
1511
|
+
...C().flatteningRoutes.filter((t) => {
|
|
1472
1512
|
var o;
|
|
1473
1513
|
return (o = t == null ? void 0 : t.meta) == null ? void 0 : o.fixedTag;
|
|
1474
1514
|
})
|
|
1475
|
-
]),
|
|
1515
|
+
]), co();
|
|
1476
1516
|
}
|
|
1477
|
-
async function
|
|
1517
|
+
async function po(e) {
|
|
1478
1518
|
let t = [];
|
|
1479
1519
|
const o = `U-${e}-ROUTES`;
|
|
1480
|
-
return
|
|
1481
|
-
|
|
1520
|
+
return k().CachingAsyncRoutes && await Q.getItem(o).then((n) => t = n), io().then((n) => $().setDict(n)), await so().then(async (n) => {
|
|
1521
|
+
$().setSystemInfo(n), await K().get("/uums/cusOrganization", { pageSize: 100, pageNum: 1, orgId: n.orgId }).then((a) => $().setInvOrgList((a == null ? void 0 : a.list) || []));
|
|
1482
1522
|
}), t != null && t.length ? new Promise((n) => {
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
}), n(
|
|
1523
|
+
ke(t), Se({ userName: e }).then((a) => {
|
|
1524
|
+
Q.setItem(o, a);
|
|
1525
|
+
}), n(f);
|
|
1486
1526
|
}) : new Promise((n) => {
|
|
1487
|
-
|
|
1488
|
-
|
|
1527
|
+
Se({ userName: e }).then((a) => {
|
|
1528
|
+
ke(B(a, !0)), Q.setItem(o, a), n(f);
|
|
1489
1529
|
});
|
|
1490
1530
|
});
|
|
1491
1531
|
}
|
|
1492
|
-
function
|
|
1532
|
+
function J(e) {
|
|
1493
1533
|
if (e.length === 0) return e;
|
|
1494
|
-
let t =
|
|
1534
|
+
let t = re(e);
|
|
1495
1535
|
for (let o = 0; o < t.length; o++)
|
|
1496
1536
|
t[o].children && (t = t.slice(0, o + 1).concat(t[o].children, t.slice(o + 1)));
|
|
1497
1537
|
return t;
|
|
1498
1538
|
}
|
|
1499
|
-
function
|
|
1539
|
+
function Je(e) {
|
|
1500
1540
|
if (e.length === 0) return e;
|
|
1501
1541
|
const t = [];
|
|
1502
1542
|
return e.forEach((o) => {
|
|
@@ -1510,76 +1550,76 @@ function $e(e) {
|
|
|
1510
1550
|
}) : t[0].children.push({ ...o });
|
|
1511
1551
|
}), t;
|
|
1512
1552
|
}
|
|
1513
|
-
function
|
|
1553
|
+
function ho({ name: e }, t) {
|
|
1514
1554
|
switch (t) {
|
|
1515
1555
|
case "add":
|
|
1516
|
-
|
|
1556
|
+
C().cacheOperate({ mode: "add", name: e });
|
|
1517
1557
|
break;
|
|
1518
1558
|
case "delete":
|
|
1519
|
-
|
|
1559
|
+
C().cacheOperate({ mode: "delete", name: e });
|
|
1520
1560
|
break;
|
|
1521
1561
|
case "refresh":
|
|
1522
|
-
|
|
1562
|
+
C().cacheOperate({ mode: "refresh", name: e });
|
|
1523
1563
|
break;
|
|
1524
1564
|
default:
|
|
1525
|
-
|
|
1526
|
-
|
|
1565
|
+
C().cacheOperate({ mode: "delete", name: e }), vt(() => {
|
|
1566
|
+
C().cacheOperate({ mode: "add", name: e });
|
|
1527
1567
|
}, 100);
|
|
1528
1568
|
}
|
|
1529
1569
|
}
|
|
1530
|
-
const
|
|
1570
|
+
const O = {
|
|
1531
1571
|
zh: {},
|
|
1532
1572
|
en: {}
|
|
1533
|
-
},
|
|
1573
|
+
}, Ye = (e) => {
|
|
1534
1574
|
var n;
|
|
1535
|
-
const t =
|
|
1575
|
+
const t = ko();
|
|
1536
1576
|
if (!e || !e.length) return;
|
|
1537
1577
|
const o = Object.keys(t);
|
|
1538
1578
|
for (let a = 0; a < e.length; a++) {
|
|
1539
1579
|
const r = e[a];
|
|
1540
1580
|
r != null && r.children && r.children.length && !r.redirect && (r.redirect = r.children[0].path);
|
|
1541
|
-
const { icon:
|
|
1542
|
-
if (r.meta = { keepAlive: !0, rank: r.sort, title: `${r.i18nField}` }, Object.assign(r.meta, { icon:
|
|
1543
|
-
r.component =
|
|
1581
|
+
const { icon: l, permissionCode: c, extraIcon: d, frameSrc: s } = r;
|
|
1582
|
+
if (r.meta = { keepAlive: !0, rank: r.sort, title: `${r.i18nField}` }, Object.assign(r.meta, { icon: l, permissionCode: c, extraIcon: d, frameSrc: s }), O.zh[r.i18nField] = r.menuName || r.menuNameEn, O.en[r.i18nField] = r.menuNameEn || r.menuName, r.name = r.menuCode || r.name, r.path = r.menuPath || r.path, !r.parentId)
|
|
1583
|
+
r.component = lo;
|
|
1544
1584
|
else if ((n = r.meta) != null && n.frameSrc)
|
|
1545
|
-
r.component =
|
|
1585
|
+
r.component = uo;
|
|
1546
1586
|
else if (r.menuCategory === "10") {
|
|
1547
|
-
const m = o.findIndex((
|
|
1548
|
-
r.component =
|
|
1587
|
+
const m = o.findIndex((h) => h.includes("lowcode-contain"));
|
|
1588
|
+
r.component = ro(
|
|
1549
1589
|
r.name,
|
|
1550
|
-
|
|
1590
|
+
rt(() => import(
|
|
1551
1591
|
/* @vite-ignore */
|
|
1552
1592
|
o[m]
|
|
1553
1593
|
))
|
|
1554
1594
|
), Object.assign(r.meta, { moduleType: r.moduleType });
|
|
1555
1595
|
} else if (r.menuCategory !== "5") {
|
|
1556
|
-
const m = o.findIndex((
|
|
1596
|
+
const m = o.findIndex((h) => h.includes(r.path));
|
|
1557
1597
|
r.component = t[o[m]];
|
|
1558
1598
|
}
|
|
1559
|
-
r != null && r.children && r.children.length ?
|
|
1599
|
+
r != null && r.children && r.children.length ? Ye(r.children) : delete r.children;
|
|
1560
1600
|
}
|
|
1561
1601
|
return e;
|
|
1562
1602
|
};
|
|
1563
|
-
function
|
|
1564
|
-
const o =
|
|
1603
|
+
function Wn(e, t = !0) {
|
|
1604
|
+
const o = F().multiTags.findIndex((n) => {
|
|
1565
1605
|
if (e.query) {
|
|
1566
1606
|
if (e.path === n.path)
|
|
1567
1607
|
return e.query === n.query;
|
|
1568
1608
|
} else
|
|
1569
1609
|
return e.path === n.path;
|
|
1570
1610
|
});
|
|
1571
|
-
if (
|
|
1572
|
-
const n =
|
|
1573
|
-
|
|
1611
|
+
if (F().handleTags("splice", "", { startIndex: o, length: 1 }), ho(e.matched, "delete"), t) {
|
|
1612
|
+
const n = F().handleTags("slice");
|
|
1613
|
+
f.push({
|
|
1574
1614
|
path: n[0].path,
|
|
1575
1615
|
query: n[0].query
|
|
1576
1616
|
});
|
|
1577
1617
|
}
|
|
1578
1618
|
}
|
|
1579
|
-
const
|
|
1619
|
+
const fo = z("udp-permission", {
|
|
1580
1620
|
state: () => ({
|
|
1581
1621
|
// 静态路由生成的菜单
|
|
1582
|
-
constantMenus:
|
|
1622
|
+
constantMenus: To,
|
|
1583
1623
|
// 整体路由生成的菜单(静态、动态)
|
|
1584
1624
|
wholeMenus: [],
|
|
1585
1625
|
// 深拷贝一个菜单树,与导航菜单不冲突
|
|
@@ -1598,12 +1638,12 @@ const oo = ee("udp-permission", {
|
|
|
1598
1638
|
actions: {
|
|
1599
1639
|
asyncActionRoutes(e = []) {
|
|
1600
1640
|
if (this.wholeMenus.length > 0) return;
|
|
1601
|
-
const t =
|
|
1641
|
+
const t = ft(e, (n) => n.menuCode === "SysHome"), o = B(this.constantMenus, !0);
|
|
1602
1642
|
if (t !== -1) {
|
|
1603
1643
|
const n = this.constantMenus.find((a) => a.name === "home");
|
|
1604
1644
|
e[t].children && n.children.push(...e[t].children), e.splice(t, 1);
|
|
1605
1645
|
}
|
|
1606
|
-
this.wholeMenus =
|
|
1646
|
+
this.wholeMenus = Ge(_(this.constantMenus.concat(e))), this.flatteningRoutes = J(this.constantMenus.concat(e)), this.menusTree = B(this.wholeMenus, !0), this.constantMenus = o;
|
|
1607
1647
|
},
|
|
1608
1648
|
async changeSetting(e) {
|
|
1609
1649
|
await this.asyncActionRoutes(e);
|
|
@@ -1630,9 +1670,9 @@ const oo = ee("udp-permission", {
|
|
|
1630
1670
|
this.cachePageList = [];
|
|
1631
1671
|
break;
|
|
1632
1672
|
}
|
|
1633
|
-
|
|
1673
|
+
ht(() => {
|
|
1634
1674
|
let n = this.cachePageList.length;
|
|
1635
|
-
const a =
|
|
1675
|
+
const a = Ht(F().multiTags, "name");
|
|
1636
1676
|
for (; n > 0; )
|
|
1637
1677
|
a.findIndex((r) => r === this.cachePageList[n - 1]) === -1 && this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[n - 1]), 1), n--;
|
|
1638
1678
|
}, 500)();
|
|
@@ -1643,19 +1683,19 @@ const oo = ee("udp-permission", {
|
|
|
1643
1683
|
}
|
|
1644
1684
|
}
|
|
1645
1685
|
});
|
|
1646
|
-
function
|
|
1647
|
-
return
|
|
1686
|
+
function C() {
|
|
1687
|
+
return fo(A);
|
|
1648
1688
|
}
|
|
1649
|
-
const
|
|
1689
|
+
const Qe = z("udp-multiTags", {
|
|
1650
1690
|
state: () => {
|
|
1651
1691
|
var e, t;
|
|
1652
1692
|
return {
|
|
1653
1693
|
// 存储标签页信息(路由信息)
|
|
1654
|
-
multiTags: (e =
|
|
1694
|
+
multiTags: (e = p.getItem(`${w()}configure`)) != null && e.multiTagsCache ? p.getItem(`${w()}tags`) : [...U, ...C().flatteningRoutes.filter((o) => {
|
|
1655
1695
|
var n;
|
|
1656
1696
|
return (n = o == null ? void 0 : o.meta) == null ? void 0 : n.fixedTag;
|
|
1657
1697
|
})],
|
|
1658
|
-
multiTagsCache: (t =
|
|
1698
|
+
multiTagsCache: (t = p.getItem(`${w()}configure`)) == null ? void 0 : t.multiTagsCache
|
|
1659
1699
|
};
|
|
1660
1700
|
},
|
|
1661
1701
|
getters: {
|
|
@@ -1665,13 +1705,13 @@ const no = ee("udp-multiTags", {
|
|
|
1665
1705
|
},
|
|
1666
1706
|
actions: {
|
|
1667
1707
|
multiTagsCacheChange(e) {
|
|
1668
|
-
this.multiTagsCache = e, e ?
|
|
1708
|
+
this.multiTagsCache = e, e ? p.setItem(`${w()}tags`, this.multiTags) : p.removeItem(`${w()}tags`);
|
|
1669
1709
|
},
|
|
1670
1710
|
tagsCache(e) {
|
|
1671
|
-
this.getMultiTagsCache &&
|
|
1711
|
+
this.getMultiTagsCache && p.setItem(`${w()}tags`, e);
|
|
1672
1712
|
},
|
|
1673
1713
|
handleTags(e, t, o) {
|
|
1674
|
-
var n, a, r,
|
|
1714
|
+
var n, a, r, l, c, d;
|
|
1675
1715
|
switch (e) {
|
|
1676
1716
|
case "equal":
|
|
1677
1717
|
this.multiTags = t, this.tagsCache(this.multiTags);
|
|
@@ -1679,13 +1719,13 @@ const no = ee("udp-multiTags", {
|
|
|
1679
1719
|
case "push":
|
|
1680
1720
|
{
|
|
1681
1721
|
const s = t;
|
|
1682
|
-
if ((n = s == null ? void 0 : s.meta) != null && n.hiddenTag ||
|
|
1683
|
-
const m = s.path,
|
|
1684
|
-
if (
|
|
1685
|
-
const
|
|
1686
|
-
if (
|
|
1687
|
-
const
|
|
1688
|
-
|
|
1722
|
+
if ((n = s == null ? void 0 : s.meta) != null && n.hiddenTag || ze(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 || gt((l = s == null ? void 0 : s.meta) == null ? void 0 : l.showLink) && !((c = s == null ? void 0 : s.meta) != null && c.showLink)) return;
|
|
1723
|
+
const m = s.path, h = this.multiTags.some((u) => u.path === m), E = this.multiTags.some((u) => ye(u == null ? void 0 : u.query, s == null ? void 0 : s.query)), T = this.multiTags.some((u) => ye(u == null ? void 0 : u.params, s == null ? void 0 : s.params));
|
|
1724
|
+
if (h && E && T) return;
|
|
1725
|
+
const b = ((d = s == null ? void 0 : s.meta) == null ? void 0 : d.dynamicLevel) ?? -1;
|
|
1726
|
+
if (b > 0 && this.multiTags.filter((u) => (u == null ? void 0 : u.path) === m).length >= b) {
|
|
1727
|
+
const u = this.multiTags.findIndex((i) => (i == null ? void 0 : i.path) === m);
|
|
1728
|
+
u !== -1 && this.multiTags.splice(u, 1);
|
|
1689
1729
|
}
|
|
1690
1730
|
this.multiTags.push(t), this.tagsCache(this.multiTags);
|
|
1691
1731
|
}
|
|
@@ -1705,13 +1745,13 @@ const no = ee("udp-multiTags", {
|
|
|
1705
1745
|
}
|
|
1706
1746
|
}
|
|
1707
1747
|
});
|
|
1708
|
-
function
|
|
1709
|
-
return
|
|
1748
|
+
function F() {
|
|
1749
|
+
return Qe(A);
|
|
1710
1750
|
}
|
|
1711
|
-
const
|
|
1751
|
+
const go = () => import("./layoutView-CoEp2afn.js"), yo = {
|
|
1712
1752
|
path: "/",
|
|
1713
1753
|
name: "home",
|
|
1714
|
-
component:
|
|
1754
|
+
component: go,
|
|
1715
1755
|
redirect: "/welcome",
|
|
1716
1756
|
meta: {
|
|
1717
1757
|
icon: "home-filled",
|
|
@@ -1722,17 +1762,17 @@ const ao = () => import("./layoutView-DR39l27s.js"), ro = {
|
|
|
1722
1762
|
{
|
|
1723
1763
|
path: "/welcome",
|
|
1724
1764
|
name: "SuHome",
|
|
1725
|
-
component: () => import("./su-welcome-
|
|
1765
|
+
component: () => import("./su-welcome-B2rNhhDH.js"),
|
|
1726
1766
|
meta: {
|
|
1727
1767
|
title: "message.udp.home",
|
|
1728
1768
|
keepAlive: !0
|
|
1729
1769
|
}
|
|
1730
1770
|
}
|
|
1731
1771
|
]
|
|
1732
|
-
},
|
|
1772
|
+
}, wo = () => import("./layoutView-CoEp2afn.js"), bo = {
|
|
1733
1773
|
path: "/error",
|
|
1734
1774
|
name: "error",
|
|
1735
|
-
component:
|
|
1775
|
+
component: wo,
|
|
1736
1776
|
redirect: "/error/403",
|
|
1737
1777
|
meta: {
|
|
1738
1778
|
showLink: !1,
|
|
@@ -1744,17 +1784,17 @@ const ao = () => import("./layoutView-DR39l27s.js"), ro = {
|
|
|
1744
1784
|
{
|
|
1745
1785
|
path: "/error/403",
|
|
1746
1786
|
name: "403",
|
|
1747
|
-
component: () => import("./403-
|
|
1787
|
+
component: () => import("./403-RBzulrcG.js"),
|
|
1748
1788
|
meta: {
|
|
1749
1789
|
title: "message.udp.fourZeroThree"
|
|
1750
1790
|
}
|
|
1751
1791
|
}
|
|
1752
1792
|
]
|
|
1753
|
-
},
|
|
1793
|
+
}, Co = () => import("./layoutView-CoEp2afn.js"), j = [
|
|
1754
1794
|
{
|
|
1755
1795
|
path: "/login",
|
|
1756
1796
|
name: "login",
|
|
1757
|
-
component: () => import("./login-
|
|
1797
|
+
component: () => import("./login-DP0oP70W.js"),
|
|
1758
1798
|
meta: {
|
|
1759
1799
|
title: "message.udp.login",
|
|
1760
1800
|
showLink: !1
|
|
@@ -1763,7 +1803,7 @@ const ao = () => import("./layoutView-DR39l27s.js"), ro = {
|
|
|
1763
1803
|
{
|
|
1764
1804
|
path: "/error/404",
|
|
1765
1805
|
name: "404",
|
|
1766
|
-
component: () => import("./404-
|
|
1806
|
+
component: () => import("./404-DX-dU_6C.js"),
|
|
1767
1807
|
meta: {
|
|
1768
1808
|
title: "message.udp.fourZeroFour",
|
|
1769
1809
|
showLink: !1
|
|
@@ -1772,7 +1812,7 @@ const ao = () => import("./layoutView-DR39l27s.js"), ro = {
|
|
|
1772
1812
|
{
|
|
1773
1813
|
path: "/error/500",
|
|
1774
1814
|
name: "500",
|
|
1775
|
-
component: () => import("./500-
|
|
1815
|
+
component: () => import("./500-BCTk0__d.js"),
|
|
1776
1816
|
meta: {
|
|
1777
1817
|
title: "message.udp.five",
|
|
1778
1818
|
showLink: !1
|
|
@@ -1781,7 +1821,7 @@ const ao = () => import("./layoutView-DR39l27s.js"), ro = {
|
|
|
1781
1821
|
{
|
|
1782
1822
|
path: "/redirect",
|
|
1783
1823
|
name: "redirect",
|
|
1784
|
-
component:
|
|
1824
|
+
component: Co,
|
|
1785
1825
|
meta: {
|
|
1786
1826
|
icon: "home-filled",
|
|
1787
1827
|
title: "message.udp.home",
|
|
@@ -1797,118 +1837,118 @@ const ao = () => import("./layoutView-DR39l27s.js"), ro = {
|
|
|
1797
1837
|
}
|
|
1798
1838
|
]
|
|
1799
1839
|
}
|
|
1800
|
-
],
|
|
1801
|
-
"../views/organization/company/Company.vue": () => import("./Company-
|
|
1802
|
-
"../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-
|
|
1803
|
-
"../views/organization/department/Department.vue": () => import("./Department-
|
|
1804
|
-
"../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-
|
|
1805
|
-
"../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-
|
|
1806
|
-
"../views/organization/org/Org.vue": () => import("./Org-
|
|
1807
|
-
"../views/organization/staff/Staff.vue": () => import("./Staff-
|
|
1808
|
-
"../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-
|
|
1809
|
-
"../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-
|
|
1810
|
-
"../views/system/cron/cron-task.vue": () => import("./cron-task-
|
|
1840
|
+
], vo = /* @__PURE__ */ Object.assign({
|
|
1841
|
+
"../views/organization/company/Company.vue": () => import("./Company-B-61KrWd.js"),
|
|
1842
|
+
"../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-CawSrEff.js"),
|
|
1843
|
+
"../views/organization/department/Department.vue": () => import("./Department-CrzJPtvP.js"),
|
|
1844
|
+
"../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-DYuL8H-j.js"),
|
|
1845
|
+
"../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-CBgKBJAn.js"),
|
|
1846
|
+
"../views/organization/org/Org.vue": () => import("./Org-BaQw2r-o.js"),
|
|
1847
|
+
"../views/organization/staff/Staff.vue": () => import("./Staff-CJ2GgCL3.js"),
|
|
1848
|
+
"../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-3KkodDCK.js"),
|
|
1849
|
+
"../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-DoXPSoY5.js"),
|
|
1850
|
+
"../views/system/cron/cron-task.vue": () => import("./cron-task-p3-AFN1w.js"),
|
|
1811
1851
|
"../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-BeBNiwqc.js"),
|
|
1812
|
-
"../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-
|
|
1813
|
-
"../views/system/menu/menuInfo.vue": () => import("./menuInfo-
|
|
1814
|
-
"../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-
|
|
1815
|
-
"../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-
|
|
1816
|
-
"../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-
|
|
1817
|
-
"../views/system/role/Role.vue": () => import("./Role-
|
|
1818
|
-
"../views/system/role/RolePanel.vue": () => import("./RolePanel-
|
|
1819
|
-
"../views/system/role/UserInfo.vue": () => import("./UserInfo-
|
|
1820
|
-
"../views/system/sys/sys-config.vue": () => import("./sys-config-
|
|
1821
|
-
"../views/system/sysUser/SysUser.vue": () => import("./SysUser-
|
|
1822
|
-
"../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-
|
|
1823
|
-
"../views/uapp/pda/pda-app.vue": () => import("./pda-app-
|
|
1824
|
-
"../views/udev/coderule/code-rule.vue": () => import("./code-rule-
|
|
1825
|
-
"../views/udev/dict/DictView.vue": () => import("./DictView-
|
|
1826
|
-
"../views/udev/dict/childView.vue": () => import("./childView-
|
|
1827
|
-
"../views/udev/lov/childView.vue": () => import("./childView-
|
|
1828
|
-
"../views/udev/lov/lov-view.vue": () => import("./lov-view-
|
|
1852
|
+
"../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-DuLEL6_l.js"),
|
|
1853
|
+
"../views/system/menu/menuInfo.vue": () => import("./menuInfo-5Xls76qB.js"),
|
|
1854
|
+
"../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-ltEJIEcr.js"),
|
|
1855
|
+
"../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-1g1a-G8D.js"),
|
|
1856
|
+
"../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-BADTOenq.js"),
|
|
1857
|
+
"../views/system/role/Role.vue": () => import("./Role-mbqoav5t.js"),
|
|
1858
|
+
"../views/system/role/RolePanel.vue": () => import("./RolePanel-u90v9eS0.js"),
|
|
1859
|
+
"../views/system/role/UserInfo.vue": () => import("./UserInfo-WWby4lts.js"),
|
|
1860
|
+
"../views/system/sys/sys-config.vue": () => import("./sys-config-Bb4WkxZK.js"),
|
|
1861
|
+
"../views/system/sysUser/SysUser.vue": () => import("./SysUser-BuIZhMPh.js"),
|
|
1862
|
+
"../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-t1GJcJGM.js"),
|
|
1863
|
+
"../views/uapp/pda/pda-app.vue": () => import("./pda-app-DxGYn4G7.js"),
|
|
1864
|
+
"../views/udev/coderule/code-rule.vue": () => import("./code-rule-DDLdi3pP.js"),
|
|
1865
|
+
"../views/udev/dict/DictView.vue": () => import("./DictView-BuO-2b-c.js"),
|
|
1866
|
+
"../views/udev/dict/childView.vue": () => import("./childView-B0-EAoAi.js"),
|
|
1867
|
+
"../views/udev/lov/childView.vue": () => import("./childView-IYY4L8VK.js"),
|
|
1868
|
+
"../views/udev/lov/lov-view.vue": () => import("./lov-view-BDoZRK-v.js"),
|
|
1829
1869
|
"../views/upms/interface/log-in.vue": () => import("./log-in-e7D5Ss1P.js"),
|
|
1830
|
-
"../views/upms/interface/log-out.vue": () => import("./log-out
|
|
1870
|
+
"../views/upms/interface/log-out.vue": () => import("./log-out-D1b4VRMZ.js"),
|
|
1831
1871
|
"../views/upms/user/login-log.vue": () => import("./login-log-kqKzKTto.js"),
|
|
1832
1872
|
"../views/urpt/dataSet/DataSet.vue": () => import("./DataSet-DT-rGICv.js"),
|
|
1833
|
-
"../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-
|
|
1834
|
-
"../views/urpt/design/Preview.vue": () => import("./Preview-
|
|
1835
|
-
"../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-
|
|
1836
|
-
"../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-
|
|
1837
|
-
"../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-
|
|
1838
|
-
"../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-
|
|
1839
|
-
"../views/urpt/static-resource/resource.vue": () => import("./resource-
|
|
1840
|
-
"../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-
|
|
1841
|
-
}),
|
|
1842
|
-
|
|
1843
|
-
),
|
|
1844
|
-
function
|
|
1845
|
-
|
|
1873
|
+
"../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-DEAv6V68.js"),
|
|
1874
|
+
"../views/urpt/design/Preview.vue": () => import("./Preview-DvCrmKNk.js"),
|
|
1875
|
+
"../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-DgZ2f2zv.js"),
|
|
1876
|
+
"../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-DTZYbCDi.js"),
|
|
1877
|
+
"../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-B-vtJegP.js"),
|
|
1878
|
+
"../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-DyhWz0as.js"),
|
|
1879
|
+
"../views/urpt/static-resource/resource.vue": () => import("./resource-BnYWe_-Q.js"),
|
|
1880
|
+
"../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-DA1ZqKGf.js")
|
|
1881
|
+
}), Gn = j, le = [yo, bo], Kn = Je(
|
|
1882
|
+
J(re(_(le)))
|
|
1883
|
+
), To = _(le).concat(...j), Jn = Object.keys(j).map((e) => j[e].path);
|
|
1884
|
+
function Eo() {
|
|
1885
|
+
f.getRoutes().forEach((e) => {
|
|
1846
1886
|
const { name: t, meta: o } = e;
|
|
1847
|
-
t &&
|
|
1848
|
-
}),
|
|
1887
|
+
t && f.hasRoute(t) && (o != null && o.backstage) && (f.removeRoute(t), f.options.routes = Je(J(re(_(le)))));
|
|
1888
|
+
}), C().clearAllCachePage();
|
|
1849
1889
|
}
|
|
1850
|
-
let
|
|
1851
|
-
function
|
|
1852
|
-
|
|
1890
|
+
let oe = null, f = null;
|
|
1891
|
+
function So(e, t) {
|
|
1892
|
+
oe = e, f = t, Object.assign(oe, vo);
|
|
1853
1893
|
}
|
|
1854
|
-
function
|
|
1855
|
-
return
|
|
1894
|
+
function ko() {
|
|
1895
|
+
return oe;
|
|
1856
1896
|
}
|
|
1857
|
-
const
|
|
1858
|
-
var
|
|
1859
|
-
const n =
|
|
1897
|
+
const Fo = ["/login"], Yn = (e, t, o) => {
|
|
1898
|
+
var l, c, d;
|
|
1899
|
+
const n = M.get(qe), a = ze(e == null ? void 0 : e.name);
|
|
1860
1900
|
function r() {
|
|
1861
|
-
|
|
1901
|
+
Fo.includes(e.fullPath) ? o(t.fullPath) : o();
|
|
1862
1902
|
}
|
|
1863
1903
|
if (t != null && t.name && (t == null ? void 0 : t.name) !== "login") {
|
|
1864
|
-
const s = (
|
|
1865
|
-
a ? (
|
|
1904
|
+
const s = (l = e.matched.find((m) => m.path === e.path || m.name === e.name && e.params)) == null ? void 0 : l.components;
|
|
1905
|
+
a ? (ut(e == null ? void 0 : e.name), (c = ct) == null || c.done()) : s != null && s.default || e.name === "redirect" ? r() : o({ path: "/error/404" });
|
|
1866
1906
|
} else
|
|
1867
|
-
|
|
1907
|
+
C().wholeMenus.length === 0 && po(n).then((s) => {
|
|
1868
1908
|
var m;
|
|
1869
|
-
if (!
|
|
1870
|
-
const { path:
|
|
1871
|
-
if (
|
|
1872
|
-
const { path:
|
|
1873
|
-
|
|
1909
|
+
if (!F().getMultiTagsCache) {
|
|
1910
|
+
const { path: h } = e, T = yt(j, (u) => u.path === h) === -1 ? s.options.routes[0].children : s.options.routes, b = Ke(h, T);
|
|
1911
|
+
if (b && ((m = b.meta) != null && m.title)) {
|
|
1912
|
+
const { path: u, name: i, meta: y } = b;
|
|
1913
|
+
F().handleTags("push", { path: u, name: i, meta: y });
|
|
1874
1914
|
}
|
|
1875
1915
|
}
|
|
1876
|
-
|
|
1916
|
+
wt(e.name) && s.push(e.fullPath);
|
|
1877
1917
|
}), t.fullPath === "/" && e.fullPath === "/login" && !((d = e.query) != null && d.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();
|
|
1878
1918
|
};
|
|
1879
|
-
|
|
1880
|
-
const
|
|
1919
|
+
dt(_e, { serviceApi: K(), i18n: We });
|
|
1920
|
+
const Do = {
|
|
1881
1921
|
// 对组件内置的提示语进行国际化翻译
|
|
1882
1922
|
// @ts-ignore
|
|
1883
|
-
i18n: (e, t) =>
|
|
1923
|
+
i18n: (e, t) => H().global.t(e, t),
|
|
1884
1924
|
// 可选,对参数中的列头、校验提示..等进行自动翻译(只对支持国际化的有效)
|
|
1885
1925
|
translate(e) {
|
|
1886
|
-
return e && ["message.", "el."].findIndex((o) => e.includes(o)) !== -1 ?
|
|
1926
|
+
return e && ["message.", "el."].findIndex((o) => e.includes(o)) !== -1 ? H().global.t.call(H().global.locale, e) : e;
|
|
1887
1927
|
}
|
|
1888
1928
|
};
|
|
1889
|
-
function
|
|
1890
|
-
|
|
1929
|
+
function xo(e = {}) {
|
|
1930
|
+
_e.setConfig(se(Do, e)), ie.interceptor.add("event.clearEdit", {
|
|
1891
1931
|
tableInterceptorMethod(t) {
|
|
1892
1932
|
const { $event: o } = t;
|
|
1893
1933
|
if (o.target.className.indexOf("vxe-table--ignore-clear") > -1) return !1;
|
|
1894
1934
|
}
|
|
1895
1935
|
});
|
|
1896
1936
|
}
|
|
1897
|
-
function
|
|
1898
|
-
|
|
1937
|
+
function Io(e) {
|
|
1938
|
+
ie.setTheme(e);
|
|
1899
1939
|
}
|
|
1900
|
-
var
|
|
1901
|
-
for (var o in t)
|
|
1902
|
-
},
|
|
1903
|
-
if (t && typeof t == "object" || typeof t == "function") for (let a of
|
|
1940
|
+
var ue = Object.defineProperty, No = Object.getOwnPropertyDescriptor, Po = Object.getOwnPropertyNames, Oo = Object.prototype.hasOwnProperty, Ro = (e, t, o) => t in e ? ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Lo = (e, t) => {
|
|
1941
|
+
for (var o in t) ue(e, o, { get: t[o], enumerable: !0 });
|
|
1942
|
+
}, Ao = (e, t, o, n) => {
|
|
1943
|
+
if (t && typeof t == "object" || typeof t == "function") for (let a of Po(t)) !Oo.call(e, a) && a !== o && ue(e, a, { get: () => t[a], enumerable: !(n = No(t, a)) || n.enumerable });
|
|
1904
1944
|
return e;
|
|
1905
|
-
},
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
var
|
|
1945
|
+
}, Mo = (e, t, o) => (Ao(e, t, "default"), o), Fe = (e, t, o) => (Ro(e, typeof t != "symbol" ? t + "" : t, o), o), ce = {};
|
|
1946
|
+
Lo(ce, { Vue: () => Me });
|
|
1947
|
+
Mo(ce, Me);
|
|
1948
|
+
var W = class {
|
|
1909
1949
|
static install(e, t) {
|
|
1910
1950
|
let { nameSpace: o = this._nameSpace, memory: n } = t;
|
|
1911
|
-
return n && this.clearAll(o, n), new
|
|
1951
|
+
return n && this.clearAll(o, n), new W(e, t);
|
|
1912
1952
|
}
|
|
1913
1953
|
static clearAll(e, t) {
|
|
1914
1954
|
Object.keys(t).forEach((o) => {
|
|
@@ -1926,25 +1966,25 @@ var U = class {
|
|
|
1926
1966
|
if (Object.prototype.hasOwnProperty.call(window.localStorage, this._getStaticKey(t, e))) return JSON.parse(window.localStorage.getItem(this._getStaticKey(t, e)));
|
|
1927
1967
|
}
|
|
1928
1968
|
constructor(e, t) {
|
|
1929
|
-
let o =
|
|
1930
|
-
Object.keys(
|
|
1931
|
-
let m =
|
|
1932
|
-
o.set(
|
|
1969
|
+
let o = W, { version: n = 3, nameSpace: a = o._nameSpace, memory: r } = t, l = (s) => a + s, c = n === 3 ? (0, ce.reactive)(r) : r;
|
|
1970
|
+
Object.keys(c).length === 0 && console.warn("key cannot be empty"), Object.keys(c).forEach((s) => {
|
|
1971
|
+
let m = c[s];
|
|
1972
|
+
o.set(l(s), m), Reflect.defineProperty(c, s, { get: () => o.get(l(s)), set: (h) => o.set(l(s), h), configurable: !0 }), n === 2 && e.util.defineReactive(c, s, c[s]);
|
|
1933
1973
|
});
|
|
1934
1974
|
let d = n === 3 ? e.config.globalProperties : e.prototype;
|
|
1935
|
-
Reflect.defineProperty(d, "$storage", { get: () =>
|
|
1975
|
+
Reflect.defineProperty(d, "$storage", { get: () => c });
|
|
1936
1976
|
}
|
|
1937
|
-
},
|
|
1938
|
-
|
|
1939
|
-
const
|
|
1940
|
-
const o =
|
|
1977
|
+
}, N = W;
|
|
1978
|
+
Fe(N, "_nameSpace", "rs-"), Fe(N, "_getStaticKey", (e, t) => `${e ?? W._nameSpace}${t}`);
|
|
1979
|
+
const Bo = (e, t) => {
|
|
1980
|
+
const o = w(), n = Object.assign(
|
|
1941
1981
|
{
|
|
1942
1982
|
// 国际化 默认中文zh
|
|
1943
|
-
locale:
|
|
1983
|
+
locale: N.getData("locale", o) ?? {
|
|
1944
1984
|
locale: t.Locale ?? "zh"
|
|
1945
1985
|
},
|
|
1946
1986
|
// layout模式以及主题
|
|
1947
|
-
layout:
|
|
1987
|
+
layout: N.getData("layout", o) ?? {
|
|
1948
1988
|
layout: t.Layout ?? "vertical",
|
|
1949
1989
|
theme: t.Theme ?? "default",
|
|
1950
1990
|
darkMode: t.DarkMode ?? !1,
|
|
@@ -1955,7 +1995,7 @@ const So = (e, t) => {
|
|
|
1955
1995
|
overallStyle: t.OverallStyle ?? "light"
|
|
1956
1996
|
// 整体风格(浅色:light、深色:dark、自动:system)
|
|
1957
1997
|
},
|
|
1958
|
-
configure:
|
|
1998
|
+
configure: N.getData("configure", o) ?? {
|
|
1959
1999
|
grey: t.Grey ?? !1,
|
|
1960
2000
|
weak: t.Weak ?? !1,
|
|
1961
2001
|
hideTabs: t.HideTabs ?? !1,
|
|
@@ -1963,116 +2003,116 @@ const So = (e, t) => {
|
|
|
1963
2003
|
showModel: t.ShowModel ?? "smart",
|
|
1964
2004
|
multiTagsCache: t.MultiTagsCache ?? !1
|
|
1965
2005
|
},
|
|
1966
|
-
cnd:
|
|
2006
|
+
cnd: N.getData("cnd", o) ?? {}
|
|
1967
2007
|
},
|
|
1968
2008
|
t.MultiTagsCache ? {
|
|
1969
2009
|
// 默认显示首页tag
|
|
1970
|
-
tags:
|
|
2010
|
+
tags: N.getData("tags", o) ?? U
|
|
1971
2011
|
} : {}
|
|
1972
2012
|
);
|
|
1973
|
-
e.use(
|
|
1974
|
-
},
|
|
2013
|
+
e.use(N, { nameSpace: o, memory: n });
|
|
2014
|
+
}, jo = (e) => {
|
|
1975
2015
|
var a;
|
|
1976
2016
|
if (!e) return !0;
|
|
1977
|
-
const t = (a =
|
|
2017
|
+
const t = (a = f.currentRoute.value.meta) == null ? void 0 : a.permissionCode;
|
|
1978
2018
|
if (!t) return !0;
|
|
1979
|
-
|
|
1980
|
-
const o =
|
|
2019
|
+
bt(e) || (e = [e]);
|
|
2020
|
+
const o = C().getButtonAuth;
|
|
1981
2021
|
if (!o) return !0;
|
|
1982
2022
|
let n = !1;
|
|
1983
2023
|
return e.forEach((r) => {
|
|
1984
2024
|
if (!n) {
|
|
1985
|
-
const
|
|
1986
|
-
n = o.includes(
|
|
2025
|
+
const l = `${t}.${r}`;
|
|
2026
|
+
n = o.includes(l);
|
|
1987
2027
|
}
|
|
1988
2028
|
}), n;
|
|
1989
|
-
},
|
|
2029
|
+
}, Ze = Object.freeze(
|
|
1990
2030
|
{
|
|
1991
2031
|
left: 0,
|
|
1992
2032
|
top: 0,
|
|
1993
2033
|
width: 16,
|
|
1994
2034
|
height: 16
|
|
1995
2035
|
}
|
|
1996
|
-
),
|
|
2036
|
+
), G = Object.freeze({
|
|
1997
2037
|
rotate: 0,
|
|
1998
2038
|
vFlip: !1,
|
|
1999
2039
|
hFlip: !1
|
|
2000
|
-
}),
|
|
2001
|
-
...
|
|
2002
|
-
...
|
|
2003
|
-
}),
|
|
2004
|
-
...
|
|
2040
|
+
}), de = Object.freeze({
|
|
2041
|
+
...Ze,
|
|
2042
|
+
...G
|
|
2043
|
+
}), ne = Object.freeze({
|
|
2044
|
+
...de,
|
|
2005
2045
|
body: "",
|
|
2006
2046
|
hidden: !1
|
|
2007
2047
|
});
|
|
2008
|
-
function
|
|
2048
|
+
function zo(e, t) {
|
|
2009
2049
|
const o = {};
|
|
2010
2050
|
!e.hFlip != !t.hFlip && (o.hFlip = !0), !e.vFlip != !t.vFlip && (o.vFlip = !0);
|
|
2011
2051
|
const n = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
2012
2052
|
return n && (o.rotate = n), o;
|
|
2013
2053
|
}
|
|
2014
|
-
function
|
|
2015
|
-
const o =
|
|
2016
|
-
for (const n in
|
|
2017
|
-
n in
|
|
2054
|
+
function De(e, t) {
|
|
2055
|
+
const o = zo(e, t);
|
|
2056
|
+
for (const n in ne)
|
|
2057
|
+
n in G ? n in e && !(n in o) && (o[n] = G[n]) : n in t ? o[n] = t[n] : n in e && (o[n] = e[n]);
|
|
2018
2058
|
return o;
|
|
2019
2059
|
}
|
|
2020
|
-
function
|
|
2060
|
+
function Uo(e, t) {
|
|
2021
2061
|
const o = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null);
|
|
2022
|
-
function r(
|
|
2023
|
-
if (o[
|
|
2024
|
-
return a[
|
|
2025
|
-
if (!(
|
|
2026
|
-
a[
|
|
2027
|
-
const
|
|
2028
|
-
d && (a[
|
|
2062
|
+
function r(l) {
|
|
2063
|
+
if (o[l])
|
|
2064
|
+
return a[l] = [];
|
|
2065
|
+
if (!(l in a)) {
|
|
2066
|
+
a[l] = null;
|
|
2067
|
+
const c = n[l] && n[l].parent, d = c && r(c);
|
|
2068
|
+
d && (a[l] = [c].concat(d));
|
|
2029
2069
|
}
|
|
2030
|
-
return a[
|
|
2070
|
+
return a[l];
|
|
2031
2071
|
}
|
|
2032
2072
|
return Object.keys(o).concat(Object.keys(n)).forEach(r), a;
|
|
2033
2073
|
}
|
|
2034
|
-
function
|
|
2074
|
+
function _o(e, t, o) {
|
|
2035
2075
|
const n = e.icons, a = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
2036
2076
|
let r = {};
|
|
2037
|
-
function
|
|
2038
|
-
r =
|
|
2039
|
-
n[
|
|
2077
|
+
function l(c) {
|
|
2078
|
+
r = De(
|
|
2079
|
+
n[c] || a[c],
|
|
2040
2080
|
r
|
|
2041
2081
|
);
|
|
2042
2082
|
}
|
|
2043
|
-
return
|
|
2083
|
+
return l(t), o.forEach(l), De(e, r);
|
|
2044
2084
|
}
|
|
2045
|
-
function
|
|
2085
|
+
function qo(e, t) {
|
|
2046
2086
|
const o = [];
|
|
2047
2087
|
if (typeof e != "object" || typeof e.icons != "object")
|
|
2048
2088
|
return o;
|
|
2049
2089
|
e.not_found instanceof Array && e.not_found.forEach((a) => {
|
|
2050
2090
|
t(a, null), o.push(a);
|
|
2051
2091
|
});
|
|
2052
|
-
const n =
|
|
2092
|
+
const n = Uo(e);
|
|
2053
2093
|
for (const a in n) {
|
|
2054
2094
|
const r = n[a];
|
|
2055
|
-
r && (t(a,
|
|
2095
|
+
r && (t(a, _o(e, a, r)), o.push(a));
|
|
2056
2096
|
}
|
|
2057
2097
|
return o;
|
|
2058
2098
|
}
|
|
2059
|
-
const
|
|
2099
|
+
const Ho = {
|
|
2060
2100
|
provider: "",
|
|
2061
2101
|
aliases: {},
|
|
2062
2102
|
not_found: {},
|
|
2063
|
-
...
|
|
2103
|
+
...Ze
|
|
2064
2104
|
};
|
|
2065
|
-
function
|
|
2105
|
+
function Z(e, t) {
|
|
2066
2106
|
for (const o in t)
|
|
2067
2107
|
if (o in e && typeof e[o] != typeof t[o])
|
|
2068
2108
|
return !1;
|
|
2069
2109
|
return !0;
|
|
2070
2110
|
}
|
|
2071
|
-
function
|
|
2111
|
+
function $o(e) {
|
|
2072
2112
|
if (typeof e != "object" || e === null)
|
|
2073
2113
|
return null;
|
|
2074
2114
|
const t = e;
|
|
2075
|
-
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !
|
|
2115
|
+
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !Z(e, Ho))
|
|
2076
2116
|
return null;
|
|
2077
2117
|
const o = t.icons;
|
|
2078
2118
|
for (const a in o) {
|
|
@@ -2081,51 +2121,51 @@ function Po(e) {
|
|
|
2081
2121
|
// Name cannot be empty
|
|
2082
2122
|
!a || // Must have body
|
|
2083
2123
|
typeof r.body != "string" || // Check other props
|
|
2084
|
-
!
|
|
2124
|
+
!Z(
|
|
2085
2125
|
r,
|
|
2086
|
-
|
|
2126
|
+
ne
|
|
2087
2127
|
)
|
|
2088
2128
|
)
|
|
2089
2129
|
return null;
|
|
2090
2130
|
}
|
|
2091
2131
|
const n = t.aliases || /* @__PURE__ */ Object.create(null);
|
|
2092
2132
|
for (const a in n) {
|
|
2093
|
-
const r = n[a],
|
|
2133
|
+
const r = n[a], l = r.parent;
|
|
2094
2134
|
if (
|
|
2095
2135
|
// Name cannot be empty
|
|
2096
2136
|
!a || // Parent must be set and point to existing icon
|
|
2097
|
-
typeof
|
|
2098
|
-
!
|
|
2137
|
+
typeof l != "string" || !o[l] && !n[l] || // Check other props
|
|
2138
|
+
!Z(
|
|
2099
2139
|
r,
|
|
2100
|
-
|
|
2140
|
+
ne
|
|
2101
2141
|
)
|
|
2102
2142
|
)
|
|
2103
2143
|
return null;
|
|
2104
2144
|
}
|
|
2105
2145
|
return t;
|
|
2106
2146
|
}
|
|
2107
|
-
const
|
|
2147
|
+
const Xe = Object.freeze({
|
|
2108
2148
|
width: null,
|
|
2109
2149
|
height: null
|
|
2110
|
-
}),
|
|
2150
|
+
}), et = Object.freeze({
|
|
2111
2151
|
// Dimensions
|
|
2112
|
-
...
|
|
2152
|
+
...Xe,
|
|
2113
2153
|
// Transformations
|
|
2114
|
-
...
|
|
2154
|
+
...G
|
|
2115
2155
|
});
|
|
2116
|
-
function
|
|
2156
|
+
function Vo(e, t) {
|
|
2117
2157
|
const o = {
|
|
2118
2158
|
...e
|
|
2119
2159
|
};
|
|
2120
2160
|
for (const n in t) {
|
|
2121
2161
|
const a = t[n], r = typeof a;
|
|
2122
|
-
n in
|
|
2162
|
+
n in Xe ? (a === null || a && (r === "string" || r === "number")) && (o[n] = a) : r === typeof o[n] && (o[n] = n === "rotate" ? a % 4 : a);
|
|
2123
2163
|
}
|
|
2124
2164
|
return o;
|
|
2125
2165
|
}
|
|
2126
|
-
const
|
|
2127
|
-
function
|
|
2128
|
-
t.split(
|
|
2166
|
+
const Wo = /[\s,]+/;
|
|
2167
|
+
function Go(e, t) {
|
|
2168
|
+
t.split(Wo).forEach((o) => {
|
|
2129
2169
|
switch (o.trim()) {
|
|
2130
2170
|
case "horizontal":
|
|
2131
2171
|
e.hFlip = !0;
|
|
@@ -2136,7 +2176,7 @@ function Oo(e, t) {
|
|
|
2136
2176
|
}
|
|
2137
2177
|
});
|
|
2138
2178
|
}
|
|
2139
|
-
function
|
|
2179
|
+
function Ko(e, t = 0) {
|
|
2140
2180
|
const o = e.replace(/^-?[0-9.]*/, "");
|
|
2141
2181
|
function n(a) {
|
|
2142
2182
|
for (; a < 0; )
|
|
@@ -2162,61 +2202,61 @@ function Lo(e, t = 0) {
|
|
|
2162
2202
|
}
|
|
2163
2203
|
return t;
|
|
2164
2204
|
}
|
|
2165
|
-
const
|
|
2166
|
-
function
|
|
2205
|
+
const Jo = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Yo = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
2206
|
+
function xe(e, t, o) {
|
|
2167
2207
|
if (t === 1)
|
|
2168
2208
|
return e;
|
|
2169
2209
|
if (o = o || 100, typeof e == "number")
|
|
2170
2210
|
return Math.ceil(e * t * o) / o;
|
|
2171
2211
|
if (typeof e != "string")
|
|
2172
2212
|
return e;
|
|
2173
|
-
const n = e.split(
|
|
2213
|
+
const n = e.split(Jo);
|
|
2174
2214
|
if (n === null || !n.length)
|
|
2175
2215
|
return e;
|
|
2176
2216
|
const a = [];
|
|
2177
|
-
let r = n.shift(),
|
|
2217
|
+
let r = n.shift(), l = Yo.test(r);
|
|
2178
2218
|
for (; ; ) {
|
|
2179
|
-
if (
|
|
2180
|
-
const
|
|
2181
|
-
isNaN(
|
|
2219
|
+
if (l) {
|
|
2220
|
+
const c = parseFloat(r);
|
|
2221
|
+
isNaN(c) ? a.push(r) : a.push(Math.ceil(c * t * o) / o);
|
|
2182
2222
|
} else
|
|
2183
2223
|
a.push(r);
|
|
2184
2224
|
if (r = n.shift(), r === void 0)
|
|
2185
2225
|
return a.join("");
|
|
2186
|
-
|
|
2226
|
+
l = !l;
|
|
2187
2227
|
}
|
|
2188
2228
|
}
|
|
2189
|
-
function
|
|
2229
|
+
function Qo(e, t = "defs") {
|
|
2190
2230
|
let o = "";
|
|
2191
2231
|
const n = e.indexOf("<" + t);
|
|
2192
2232
|
for (; n >= 0; ) {
|
|
2193
2233
|
const a = e.indexOf(">", n), r = e.indexOf("</" + t);
|
|
2194
2234
|
if (a === -1 || r === -1)
|
|
2195
2235
|
break;
|
|
2196
|
-
const
|
|
2197
|
-
if (
|
|
2236
|
+
const l = e.indexOf(">", r);
|
|
2237
|
+
if (l === -1)
|
|
2198
2238
|
break;
|
|
2199
|
-
o += e.slice(a + 1, r).trim(), e = e.slice(0, n).trim() + e.slice(
|
|
2239
|
+
o += e.slice(a + 1, r).trim(), e = e.slice(0, n).trim() + e.slice(l + 1);
|
|
2200
2240
|
}
|
|
2201
2241
|
return {
|
|
2202
2242
|
defs: o,
|
|
2203
2243
|
content: e
|
|
2204
2244
|
};
|
|
2205
2245
|
}
|
|
2206
|
-
function
|
|
2246
|
+
function Zo(e, t) {
|
|
2207
2247
|
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
2208
2248
|
}
|
|
2209
|
-
function
|
|
2210
|
-
const n =
|
|
2211
|
-
return
|
|
2249
|
+
function Xo(e, t, o) {
|
|
2250
|
+
const n = Qo(e);
|
|
2251
|
+
return Zo(n.defs, t + n.content + o);
|
|
2212
2252
|
}
|
|
2213
|
-
const
|
|
2214
|
-
function
|
|
2253
|
+
const en = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
2254
|
+
function tn(e, t) {
|
|
2215
2255
|
const o = {
|
|
2216
|
-
...
|
|
2256
|
+
...de,
|
|
2217
2257
|
...e
|
|
2218
2258
|
}, n = {
|
|
2219
|
-
...
|
|
2259
|
+
...et,
|
|
2220
2260
|
...t
|
|
2221
2261
|
}, a = {
|
|
2222
2262
|
left: o.left,
|
|
@@ -2225,129 +2265,129 @@ function $o(e, t) {
|
|
|
2225
2265
|
height: o.height
|
|
2226
2266
|
};
|
|
2227
2267
|
let r = o.body;
|
|
2228
|
-
[o, n].forEach((
|
|
2229
|
-
const
|
|
2230
|
-
let
|
|
2231
|
-
|
|
2268
|
+
[o, n].forEach((u) => {
|
|
2269
|
+
const i = [], y = u.hFlip, D = u.vFlip;
|
|
2270
|
+
let g = u.rotate;
|
|
2271
|
+
y ? D ? g += 2 : (i.push(
|
|
2232
2272
|
"translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
|
|
2233
|
-
),
|
|
2273
|
+
), i.push("scale(-1 1)"), a.top = a.left = 0) : D && (i.push(
|
|
2234
2274
|
"translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
|
|
2235
|
-
),
|
|
2236
|
-
let
|
|
2237
|
-
switch (
|
|
2275
|
+
), i.push("scale(1 -1)"), a.top = a.left = 0);
|
|
2276
|
+
let S;
|
|
2277
|
+
switch (g < 0 && (g -= Math.floor(g / 4) * 4), g = g % 4, g) {
|
|
2238
2278
|
case 1:
|
|
2239
|
-
|
|
2240
|
-
"rotate(90 " +
|
|
2279
|
+
S = a.height / 2 + a.top, i.unshift(
|
|
2280
|
+
"rotate(90 " + S.toString() + " " + S.toString() + ")"
|
|
2241
2281
|
);
|
|
2242
2282
|
break;
|
|
2243
2283
|
case 2:
|
|
2244
|
-
|
|
2284
|
+
i.unshift(
|
|
2245
2285
|
"rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")"
|
|
2246
2286
|
);
|
|
2247
2287
|
break;
|
|
2248
2288
|
case 3:
|
|
2249
|
-
|
|
2250
|
-
"rotate(-90 " +
|
|
2289
|
+
S = a.width / 2 + a.left, i.unshift(
|
|
2290
|
+
"rotate(-90 " + S.toString() + " " + S.toString() + ")"
|
|
2251
2291
|
);
|
|
2252
2292
|
break;
|
|
2253
2293
|
}
|
|
2254
|
-
|
|
2294
|
+
g % 2 === 1 && (a.left !== a.top && (S = a.left, a.left = a.top, a.top = S), a.width !== a.height && (S = a.width, a.width = a.height, a.height = S)), i.length && (r = Xo(
|
|
2255
2295
|
r,
|
|
2256
|
-
'<g transform="' +
|
|
2296
|
+
'<g transform="' + i.join(" ") + '">',
|
|
2257
2297
|
"</g>"
|
|
2258
2298
|
));
|
|
2259
2299
|
});
|
|
2260
|
-
const
|
|
2261
|
-
let m,
|
|
2262
|
-
|
|
2263
|
-
const E = {}, T = (
|
|
2264
|
-
|
|
2300
|
+
const l = n.width, c = n.height, d = a.width, s = a.height;
|
|
2301
|
+
let m, h;
|
|
2302
|
+
l === null ? (h = c === null ? "1em" : c === "auto" ? s : c, m = xe(h, d / s)) : (m = l === "auto" ? d : l, h = c === null ? xe(m, s / d) : c === "auto" ? s : c);
|
|
2303
|
+
const E = {}, T = (u, i) => {
|
|
2304
|
+
en(i) || (E[u] = i.toString());
|
|
2265
2305
|
};
|
|
2266
|
-
T("width", m), T("height",
|
|
2267
|
-
const
|
|
2268
|
-
return E.viewBox =
|
|
2306
|
+
T("width", m), T("height", h);
|
|
2307
|
+
const b = [a.left, a.top, d, s];
|
|
2308
|
+
return E.viewBox = b.join(" "), {
|
|
2269
2309
|
attributes: E,
|
|
2270
|
-
viewBox:
|
|
2310
|
+
viewBox: b,
|
|
2271
2311
|
body: r
|
|
2272
2312
|
};
|
|
2273
2313
|
}
|
|
2274
|
-
const
|
|
2275
|
-
let
|
|
2276
|
-
function
|
|
2314
|
+
const on = /\sid="(\S+)"/g, nn = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
2315
|
+
let an = 0;
|
|
2316
|
+
function rn(e, t = nn) {
|
|
2277
2317
|
const o = [];
|
|
2278
2318
|
let n;
|
|
2279
|
-
for (; n =
|
|
2319
|
+
for (; n = on.exec(e); )
|
|
2280
2320
|
o.push(n[1]);
|
|
2281
2321
|
if (!o.length)
|
|
2282
2322
|
return e;
|
|
2283
2323
|
const a = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
2284
2324
|
return o.forEach((r) => {
|
|
2285
|
-
const
|
|
2325
|
+
const l = typeof t == "function" ? t(r) : t + (an++).toString(), c = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2286
2326
|
e = e.replace(
|
|
2287
2327
|
// Allowed characters before id: [#;"]
|
|
2288
2328
|
// Allowed characters after id: [)"], .[a-z]
|
|
2289
|
-
new RegExp('([#;"])(' +
|
|
2290
|
-
"$1" +
|
|
2329
|
+
new RegExp('([#;"])(' + c + ')([")]|\\.[a-z])', "g"),
|
|
2330
|
+
"$1" + l + a + "$3"
|
|
2291
2331
|
);
|
|
2292
2332
|
}), e = e.replace(new RegExp(a, "g"), ""), e;
|
|
2293
2333
|
}
|
|
2294
|
-
function
|
|
2334
|
+
function sn(e, t) {
|
|
2295
2335
|
let o = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
2296
2336
|
for (const n in t)
|
|
2297
2337
|
o += " " + n + '="' + t[n] + '"';
|
|
2298
2338
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" + e + "</svg>";
|
|
2299
2339
|
}
|
|
2300
|
-
function
|
|
2340
|
+
function ln(e) {
|
|
2301
2341
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
2302
2342
|
}
|
|
2303
|
-
function
|
|
2304
|
-
return "data:image/svg+xml," +
|
|
2343
|
+
function un(e) {
|
|
2344
|
+
return "data:image/svg+xml," + ln(e);
|
|
2305
2345
|
}
|
|
2306
|
-
function
|
|
2307
|
-
return 'url("' +
|
|
2346
|
+
function cn(e) {
|
|
2347
|
+
return 'url("' + un(e) + '")';
|
|
2308
2348
|
}
|
|
2309
|
-
const
|
|
2310
|
-
...
|
|
2349
|
+
const Ie = {
|
|
2350
|
+
...et,
|
|
2311
2351
|
inline: !1
|
|
2312
|
-
},
|
|
2352
|
+
}, dn = {
|
|
2313
2353
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2314
2354
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
2315
2355
|
"aria-hidden": !0,
|
|
2316
2356
|
role: "img"
|
|
2317
|
-
},
|
|
2357
|
+
}, mn = {
|
|
2318
2358
|
display: "inline-block"
|
|
2319
|
-
},
|
|
2359
|
+
}, ae = {
|
|
2320
2360
|
backgroundColor: "currentColor"
|
|
2321
|
-
},
|
|
2361
|
+
}, tt = {
|
|
2322
2362
|
backgroundColor: "transparent"
|
|
2323
|
-
},
|
|
2363
|
+
}, Ne = {
|
|
2324
2364
|
Image: "var(--svg)",
|
|
2325
2365
|
Repeat: "no-repeat",
|
|
2326
2366
|
Size: "100% 100%"
|
|
2327
|
-
},
|
|
2328
|
-
webkitMask:
|
|
2329
|
-
mask:
|
|
2330
|
-
background:
|
|
2367
|
+
}, Pe = {
|
|
2368
|
+
webkitMask: ae,
|
|
2369
|
+
mask: ae,
|
|
2370
|
+
background: tt
|
|
2331
2371
|
};
|
|
2332
|
-
for (const e in
|
|
2333
|
-
const t =
|
|
2334
|
-
for (const o in
|
|
2335
|
-
t[e + o] =
|
|
2372
|
+
for (const e in Pe) {
|
|
2373
|
+
const t = Pe[e];
|
|
2374
|
+
for (const o in Ne)
|
|
2375
|
+
t[e + o] = Ne[o];
|
|
2336
2376
|
}
|
|
2337
|
-
const
|
|
2377
|
+
const V = {};
|
|
2338
2378
|
["horizontal", "vertical"].forEach((e) => {
|
|
2339
2379
|
const t = e.slice(0, 1) + "Flip";
|
|
2340
|
-
|
|
2380
|
+
V[e + "-flip"] = t, V[e.slice(0, 1) + "-flip"] = t, V[e + "Flip"] = t;
|
|
2341
2381
|
});
|
|
2342
|
-
function
|
|
2382
|
+
function Oe(e) {
|
|
2343
2383
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
2344
2384
|
}
|
|
2345
|
-
const
|
|
2346
|
-
const o =
|
|
2347
|
-
for (let
|
|
2348
|
-
const
|
|
2349
|
-
if (
|
|
2350
|
-
switch (
|
|
2385
|
+
const pn = (e, t) => {
|
|
2386
|
+
const o = Vo(Ie, t), n = { ...dn }, a = t.mode || "svg", r = {}, l = t.style, c = typeof l == "object" && !(l instanceof Array) ? l : {};
|
|
2387
|
+
for (let u in t) {
|
|
2388
|
+
const i = t[u];
|
|
2389
|
+
if (i !== void 0)
|
|
2390
|
+
switch (u) {
|
|
2351
2391
|
// Properties to ignore
|
|
2352
2392
|
case "icon":
|
|
2353
2393
|
case "style":
|
|
@@ -2359,88 +2399,88 @@ const Xo = (e, t) => {
|
|
|
2359
2399
|
case "inline":
|
|
2360
2400
|
case "hFlip":
|
|
2361
2401
|
case "vFlip":
|
|
2362
|
-
o[
|
|
2402
|
+
o[u] = i === !0 || i === "true" || i === 1;
|
|
2363
2403
|
break;
|
|
2364
2404
|
// Flip as string: 'horizontal,vertical'
|
|
2365
2405
|
case "flip":
|
|
2366
|
-
typeof
|
|
2406
|
+
typeof i == "string" && Go(o, i);
|
|
2367
2407
|
break;
|
|
2368
2408
|
// Color: override style
|
|
2369
2409
|
case "color":
|
|
2370
|
-
r.color =
|
|
2410
|
+
r.color = i;
|
|
2371
2411
|
break;
|
|
2372
2412
|
// Rotation as string
|
|
2373
2413
|
case "rotate":
|
|
2374
|
-
typeof
|
|
2414
|
+
typeof i == "string" ? o[u] = Ko(i) : typeof i == "number" && (o[u] = i);
|
|
2375
2415
|
break;
|
|
2376
2416
|
// Remove aria-hidden
|
|
2377
2417
|
case "ariaHidden":
|
|
2378
2418
|
case "aria-hidden":
|
|
2379
|
-
|
|
2419
|
+
i !== !0 && i !== "true" && delete n["aria-hidden"];
|
|
2380
2420
|
break;
|
|
2381
2421
|
default: {
|
|
2382
|
-
const
|
|
2383
|
-
|
|
2422
|
+
const y = V[u];
|
|
2423
|
+
y ? (i === !0 || i === "true" || i === 1) && (o[y] = !0) : Ie[u] === void 0 && (n[u] = i);
|
|
2384
2424
|
}
|
|
2385
2425
|
}
|
|
2386
2426
|
}
|
|
2387
|
-
const d =
|
|
2427
|
+
const d = tn(e, o), s = d.attributes;
|
|
2388
2428
|
if (o.inline && (r.verticalAlign = "-0.125em"), a === "svg") {
|
|
2389
2429
|
n.style = {
|
|
2390
2430
|
...r,
|
|
2391
|
-
...
|
|
2431
|
+
...c
|
|
2392
2432
|
}, Object.assign(n, s);
|
|
2393
|
-
let
|
|
2394
|
-
return typeof
|
|
2433
|
+
let u = 0, i = t.id;
|
|
2434
|
+
return typeof i == "string" && (i = i.replace(/-/g, "_")), n.innerHTML = rn(d.body, i ? () => i + "ID" + u++ : "iconifyVue"), P("svg", n);
|
|
2395
2435
|
}
|
|
2396
|
-
const { body: m, width:
|
|
2436
|
+
const { body: m, width: h, height: E } = e, T = a === "mask" || (a === "bg" ? !1 : m.indexOf("currentColor") !== -1), b = sn(m, {
|
|
2397
2437
|
...s,
|
|
2398
|
-
width:
|
|
2438
|
+
width: h + "",
|
|
2399
2439
|
height: E + ""
|
|
2400
2440
|
});
|
|
2401
2441
|
return n.style = {
|
|
2402
2442
|
...r,
|
|
2403
|
-
"--svg":
|
|
2404
|
-
width:
|
|
2405
|
-
height:
|
|
2406
|
-
...
|
|
2407
|
-
...T ?
|
|
2408
|
-
...
|
|
2409
|
-
},
|
|
2410
|
-
},
|
|
2411
|
-
function
|
|
2412
|
-
|
|
2443
|
+
"--svg": cn(b),
|
|
2444
|
+
width: Oe(s.width),
|
|
2445
|
+
height: Oe(s.height),
|
|
2446
|
+
...mn,
|
|
2447
|
+
...T ? ae : tt,
|
|
2448
|
+
...c
|
|
2449
|
+
}, P("span", n);
|
|
2450
|
+
}, me = /* @__PURE__ */ Object.create(null);
|
|
2451
|
+
function hn(e, t) {
|
|
2452
|
+
me[e] = t;
|
|
2413
2453
|
}
|
|
2414
|
-
function
|
|
2454
|
+
function Qn(e, t) {
|
|
2415
2455
|
const o = typeof e.prefix == "string" ? e.prefix + ":" : "";
|
|
2416
|
-
|
|
2417
|
-
a && (
|
|
2456
|
+
$o(e) && qo(e, (n, a) => {
|
|
2457
|
+
a && (me[o + n] = a);
|
|
2418
2458
|
});
|
|
2419
2459
|
}
|
|
2420
|
-
const
|
|
2460
|
+
const Re = L({
|
|
2421
2461
|
// Do not inherit other attributes: it is handled by render()
|
|
2422
2462
|
inheritAttrs: !1,
|
|
2423
2463
|
// Render icon
|
|
2424
2464
|
render() {
|
|
2425
|
-
const e = this.$attrs, t = e.icon, o = typeof t == "string" ?
|
|
2426
|
-
return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null :
|
|
2427
|
-
...
|
|
2465
|
+
const e = this.$attrs, t = e.icon, o = typeof t == "string" ? me[t] : typeof t == "object" ? t : null;
|
|
2466
|
+
return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null : pn({
|
|
2467
|
+
...de,
|
|
2428
2468
|
...o
|
|
2429
2469
|
}, e);
|
|
2430
2470
|
}
|
|
2431
|
-
}),
|
|
2471
|
+
}), fn = L({
|
|
2432
2472
|
name: "IconOffline",
|
|
2433
|
-
components: { IconifyIcon:
|
|
2473
|
+
components: { IconifyIcon: Re },
|
|
2434
2474
|
props: {
|
|
2435
2475
|
icon: {
|
|
2436
2476
|
default: null
|
|
2437
2477
|
}
|
|
2438
2478
|
},
|
|
2439
2479
|
render() {
|
|
2440
|
-
typeof this.icon == "object" &&
|
|
2480
|
+
typeof this.icon == "object" && hn(this.icon, this.icon);
|
|
2441
2481
|
const e = this.$attrs;
|
|
2442
|
-
return
|
|
2443
|
-
|
|
2482
|
+
return P(
|
|
2483
|
+
Re,
|
|
2444
2484
|
{
|
|
2445
2485
|
icon: this.icon,
|
|
2446
2486
|
style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
|
|
@@ -2452,9 +2492,9 @@ const Ie = A({
|
|
|
2452
2492
|
);
|
|
2453
2493
|
}
|
|
2454
2494
|
});
|
|
2455
|
-
|
|
2495
|
+
L({
|
|
2456
2496
|
name: "IconifyIconOnline",
|
|
2457
|
-
components: { IconifyIcon:
|
|
2497
|
+
components: { IconifyIcon: we },
|
|
2458
2498
|
props: {
|
|
2459
2499
|
icon: {
|
|
2460
2500
|
type: String,
|
|
@@ -2463,8 +2503,8 @@ A({
|
|
|
2463
2503
|
},
|
|
2464
2504
|
render() {
|
|
2465
2505
|
const e = this.$attrs;
|
|
2466
|
-
return
|
|
2467
|
-
|
|
2506
|
+
return P(
|
|
2507
|
+
we,
|
|
2468
2508
|
{
|
|
2469
2509
|
icon: `${this.icon}`,
|
|
2470
2510
|
style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
|
|
@@ -2476,7 +2516,7 @@ A({
|
|
|
2476
2516
|
);
|
|
2477
2517
|
}
|
|
2478
2518
|
});
|
|
2479
|
-
const
|
|
2519
|
+
const gn = L({
|
|
2480
2520
|
name: "FontIcon",
|
|
2481
2521
|
props: {
|
|
2482
2522
|
icon: {
|
|
@@ -2486,14 +2526,14 @@ const on = A({
|
|
|
2486
2526
|
},
|
|
2487
2527
|
render() {
|
|
2488
2528
|
const e = this.$attrs;
|
|
2489
|
-
return Object.keys(e).includes("uni") || (e == null ? void 0 : e.iconType) === "uni" ?
|
|
2529
|
+
return Object.keys(e).includes("uni") || (e == null ? void 0 : e.iconType) === "uni" ? P(
|
|
2490
2530
|
"i",
|
|
2491
2531
|
{
|
|
2492
2532
|
class: "iconfont",
|
|
2493
2533
|
...e
|
|
2494
2534
|
},
|
|
2495
2535
|
this.icon
|
|
2496
|
-
) : Object.keys(e).includes("svg") || (e == null ? void 0 : e.iconType) === "svg" ?
|
|
2536
|
+
) : Object.keys(e).includes("svg") || (e == null ? void 0 : e.iconType) === "svg" ? P(
|
|
2497
2537
|
"svg",
|
|
2498
2538
|
{
|
|
2499
2539
|
class: "icon-svg",
|
|
@@ -2501,28 +2541,28 @@ const on = A({
|
|
|
2501
2541
|
},
|
|
2502
2542
|
{
|
|
2503
2543
|
default: () => [
|
|
2504
|
-
|
|
2544
|
+
P("use", {
|
|
2505
2545
|
"xlink:href": `#${this.icon}`
|
|
2506
2546
|
})
|
|
2507
2547
|
]
|
|
2508
2548
|
}
|
|
2509
|
-
) :
|
|
2549
|
+
) : P("i", {
|
|
2510
2550
|
class: `iconfont ${this.icon}`,
|
|
2511
2551
|
...e
|
|
2512
2552
|
});
|
|
2513
2553
|
}
|
|
2514
|
-
}),
|
|
2554
|
+
}), yn = fn, wn = gn, bn = {
|
|
2515
2555
|
mounted(e, t) {
|
|
2516
2556
|
var n;
|
|
2517
2557
|
const { value: o } = t;
|
|
2518
2558
|
if (o) {
|
|
2519
|
-
const r = `${(n =
|
|
2520
|
-
|
|
2559
|
+
const r = `${(n = f.currentRoute.value.meta) == null ? void 0 : n.prefixAuth}.${o}`;
|
|
2560
|
+
C().getButtonAuth.includes(r) || e.parentNode.removeChild(e);
|
|
2521
2561
|
} else
|
|
2522
2562
|
throw new Error(`need roles! Like v-auth="['admin','test']"`);
|
|
2523
2563
|
}
|
|
2524
2564
|
};
|
|
2525
|
-
function
|
|
2565
|
+
function Cn(e) {
|
|
2526
2566
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, o) {
|
|
2527
2567
|
var n = e.get(t);
|
|
2528
2568
|
n ? n.push(o) : e.set(t, [o]);
|
|
@@ -2538,81 +2578,245 @@ function sn(e) {
|
|
|
2538
2578
|
});
|
|
2539
2579
|
} };
|
|
2540
2580
|
}
|
|
2541
|
-
const
|
|
2581
|
+
const vn = Cn(), Le = St({
|
|
2542
2582
|
strategy: "scroll"
|
|
2543
|
-
}),
|
|
2583
|
+
}), Tn = {
|
|
2544
2584
|
mounted(e, t, o) {
|
|
2545
|
-
|
|
2585
|
+
Le.listenTo(e, (n) => {
|
|
2546
2586
|
const a = n.offsetWidth, r = n.offsetHeight;
|
|
2547
|
-
t != null && t.instance ?
|
|
2587
|
+
t != null && t.instance ? vn.emit("resize", { detail: { width: a, height: r } }) : o.el.dispatchEvent(new CustomEvent("resize", { detail: { width: a, height: r } }));
|
|
2548
2588
|
});
|
|
2549
2589
|
},
|
|
2550
2590
|
unmounted(e) {
|
|
2551
|
-
|
|
2591
|
+
Le.uninstall(e);
|
|
2552
2592
|
}
|
|
2553
|
-
},
|
|
2593
|
+
}, Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2554
2594
|
__proto__: null,
|
|
2555
|
-
auth:
|
|
2556
|
-
resize:
|
|
2557
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2558
|
-
|
|
2595
|
+
auth: bn,
|
|
2596
|
+
resize: Tn
|
|
2597
|
+
}, Symbol.toStringTag, { value: "Module" })), v = st(Ut);
|
|
2598
|
+
v.use(Et, {
|
|
2559
2599
|
defaultProps: { animation: "perspective" }
|
|
2560
2600
|
});
|
|
2561
|
-
const
|
|
2562
|
-
e.config.globalProperties.$hasAuthority =
|
|
2563
|
-
},
|
|
2564
|
-
Object.keys(
|
|
2565
|
-
e.directive(t,
|
|
2601
|
+
const En = (e) => {
|
|
2602
|
+
e.config.globalProperties.$hasAuthority = jo, e.config.globalProperties.$serviceApi = K(), e.config.globalProperties.$url = I(), window.$i18n = We;
|
|
2603
|
+
}, Sn = (e) => {
|
|
2604
|
+
Object.keys(Ae).forEach((t) => {
|
|
2605
|
+
e.directive(t, Ae[t]);
|
|
2566
2606
|
});
|
|
2567
|
-
},
|
|
2568
|
-
|
|
2569
|
-
}))
|
|
2570
|
-
|
|
2607
|
+
}, Zn = ({ router: e, config: t, lang: o, views: n, env: a, tableConfig: r }) => (So(n, e), v.use(e), Lt(e), Ot(v, t), Rt(a), xo(r), new Promise((l) => {
|
|
2608
|
+
no(v, o), v.component("IconifyIconOffline", yn), v.component("FontIcon", wn), v.use(Tt, { defaultOptions: { zIndex: 9999 } }), En(v), At(I()), Sn(v), _t(v), Bo(v, t), l({ app: v, router: e });
|
|
2609
|
+
}));
|
|
2610
|
+
function kn() {
|
|
2611
|
+
const { $storage: e, $config: t } = Ue(), o = () => {
|
|
2612
|
+
Qe().multiTagsCache && (!e.tags || e.tags.length === 0) && (e.tags = U), e != null && e.locale || (je().locale.value = (t == null ? void 0 : t.Locale) ?? "zh"), e && !(e != null && e.layout) && (e.layout = {
|
|
2613
|
+
layout: (t == null ? void 0 : t.Layout) ?? "vertical",
|
|
2614
|
+
theme: (t == null ? void 0 : t.Theme) ?? "default",
|
|
2615
|
+
darkMode: (t == null ? void 0 : t.DarkMode) ?? !1,
|
|
2616
|
+
sidebarStatus: (t == null ? void 0 : t.SidebarStatus) ?? !0,
|
|
2617
|
+
epThemeColor: (t == null ? void 0 : t.EpThemeColor) ?? "#409EFF",
|
|
2618
|
+
overallStyle: (t == null ? void 0 : t.OverallStyle) ?? "light"
|
|
2619
|
+
}), e && !(e != null && e.configure) && (e.configure = {
|
|
2620
|
+
grey: (t == null ? void 0 : t.Grey) ?? !1,
|
|
2621
|
+
weak: (t == null ? void 0 : t.Weak) ?? !1,
|
|
2622
|
+
hideTabs: (t == null ? void 0 : t.HideTabs) ?? !1,
|
|
2623
|
+
showLogo: (t == null ? void 0 : t.ShowLogo) ?? !0,
|
|
2624
|
+
showModel: (t == null ? void 0 : t.ShowModel) ?? "smart",
|
|
2625
|
+
multiTagsCache: (t == null ? void 0 : t.MultiTagsCache) ?? !1
|
|
2626
|
+
});
|
|
2627
|
+
}, n = fe(() => e == null ? void 0 : e.layout.layout), a = fe(() => e == null ? void 0 : e.layout);
|
|
2628
|
+
return {
|
|
2629
|
+
layout: n,
|
|
2630
|
+
layoutTheme: a,
|
|
2631
|
+
initStorage: o
|
|
2632
|
+
};
|
|
2633
|
+
}
|
|
2634
|
+
const Fn = z("udp-app", {
|
|
2635
|
+
state: () => {
|
|
2636
|
+
var e, t;
|
|
2637
|
+
return {
|
|
2638
|
+
sidebar: {
|
|
2639
|
+
opened: ((e = p.getItem(`${w()}layout`)) == null ? void 0 : e.sidebarStatus) ?? k().SidebarStatus,
|
|
2640
|
+
withoutAnimation: !1,
|
|
2641
|
+
isClickCollapse: !1
|
|
2642
|
+
},
|
|
2643
|
+
// 这里的layout用于监听容器拖拉后恢复对应的导航模式
|
|
2644
|
+
layout: ((t = p.getItem(`${w()}layout`)) == null ? void 0 : t.layout) ?? k().Layout,
|
|
2645
|
+
device: mt() ? "mobile" : "desktop"
|
|
2646
|
+
};
|
|
2571
2647
|
},
|
|
2572
|
-
|
|
2648
|
+
getters: {
|
|
2649
|
+
getSidebarStatus() {
|
|
2650
|
+
return this.sidebar.opened;
|
|
2651
|
+
},
|
|
2652
|
+
getDevice() {
|
|
2653
|
+
return this.device;
|
|
2654
|
+
}
|
|
2655
|
+
},
|
|
2656
|
+
actions: {
|
|
2657
|
+
TOGGLE_SIDEBAR(e, t) {
|
|
2658
|
+
const o = p.getItem(`${w()}layout`);
|
|
2659
|
+
o && (e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !0, o.sidebarStatus = !0) : !e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !1, o.sidebarStatus = !1) : !e && !t && (this.sidebar.withoutAnimation = !1, this.sidebar.opened = !this.sidebar.opened, this.sidebar.isClickCollapse = !this.sidebar.opened, o.sidebarStatus = this.sidebar.opened), p.setItem(`${w()}layout`, o));
|
|
2660
|
+
},
|
|
2661
|
+
async toggleSideBar(e, t) {
|
|
2662
|
+
await this.TOGGLE_SIDEBAR(e, t);
|
|
2663
|
+
},
|
|
2664
|
+
toggleDevice(e) {
|
|
2665
|
+
this.device = e;
|
|
2666
|
+
},
|
|
2667
|
+
setLayout(e) {
|
|
2668
|
+
this.layout = e;
|
|
2669
|
+
}
|
|
2573
2670
|
}
|
|
2574
|
-
}
|
|
2575
|
-
|
|
2576
|
-
|
|
2671
|
+
});
|
|
2672
|
+
function Dn() {
|
|
2673
|
+
return Fn(A);
|
|
2674
|
+
}
|
|
2675
|
+
const xn = z("udp-epTheme", {
|
|
2676
|
+
state: () => {
|
|
2677
|
+
var e, t;
|
|
2678
|
+
return {
|
|
2679
|
+
epThemeColor: ((e = p.getItem(`${w()}-layout`)) == null ? void 0 : e.epThemeColor) ?? k().EpThemeColor,
|
|
2680
|
+
epTheme: ((t = p.getItem(`${w()}-layout`)) == null ? void 0 : t.theme) ?? k().Theme
|
|
2681
|
+
};
|
|
2682
|
+
},
|
|
2683
|
+
getters: {
|
|
2684
|
+
getEpThemeColor() {
|
|
2685
|
+
return this.epThemeColor;
|
|
2686
|
+
},
|
|
2687
|
+
// 用于mix导航模式下hamburger-svg的fill属性
|
|
2688
|
+
fill() {
|
|
2689
|
+
return this.epTheme === "light" ? "#409eff" : this.epTheme === "yellow" ? "#d25f00" : "#fff";
|
|
2690
|
+
}
|
|
2691
|
+
},
|
|
2692
|
+
actions: {
|
|
2693
|
+
setEpThemeColor(e) {
|
|
2694
|
+
const t = p.getItem(`${w()}layout`);
|
|
2695
|
+
this.epTheme = t == null ? void 0 : t.theme, this.epThemeColor = e, t && (t.epThemeColor = e, p.setItem(`${w()}layout`, t));
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
});
|
|
2699
|
+
function X() {
|
|
2700
|
+
return xn(A);
|
|
2701
|
+
}
|
|
2702
|
+
function Xn() {
|
|
2703
|
+
var T, b;
|
|
2704
|
+
const { layoutTheme: e, layout: t } = kn(), o = Y([
|
|
2705
|
+
/* 道奇蓝(默认) */
|
|
2706
|
+
{ color: "#1b2a47", themeColor: "default" },
|
|
2707
|
+
/* 亮白色 */
|
|
2708
|
+
{ color: "#ffffff", themeColor: "light" },
|
|
2709
|
+
/* 猩红色 */
|
|
2710
|
+
{ color: "#f5222d", themeColor: "dusk" },
|
|
2711
|
+
/* 橙红色 */
|
|
2712
|
+
{ color: "#fa541c", themeColor: "volcano" },
|
|
2713
|
+
/* 金色 */
|
|
2714
|
+
{ color: "#fadb14", themeColor: "yellow" },
|
|
2715
|
+
/* 绿宝石 */
|
|
2716
|
+
{ color: "#13c2c2", themeColor: "mingQing" },
|
|
2717
|
+
/* 酸橙绿 */
|
|
2718
|
+
{ color: "#52c41a", themeColor: "auroraGreen" },
|
|
2719
|
+
/* 深粉色 */
|
|
2720
|
+
{ color: "#eb2f96", themeColor: "pink" },
|
|
2721
|
+
/* 深紫罗兰色 */
|
|
2722
|
+
{ color: "#722ed1", themeColor: "saucePurple" }
|
|
2723
|
+
]), { $storage: n } = Ue(), a = Y((T = n == null ? void 0 : n.layout) == null ? void 0 : T.darkMode), r = Y((b = n == null ? void 0 : n.layout) == null ? void 0 : b.overallStyle), l = document.documentElement;
|
|
2724
|
+
function c(u, i, y) {
|
|
2725
|
+
const D = y || document.body;
|
|
2726
|
+
let { className: g } = D;
|
|
2727
|
+
g = g.replace(i, "").trim(), D.className = u ? `${g} ${i}` : g;
|
|
2728
|
+
}
|
|
2729
|
+
function d(u = k().Theme ?? "default") {
|
|
2730
|
+
var i, y;
|
|
2731
|
+
if (e.value.theme = u, document.documentElement.setAttribute("data-theme", u), document.documentElement.className = "", document.documentElement.classList.add(`layout-theme-${u}`), n.layout = {
|
|
2732
|
+
layout: t.value,
|
|
2733
|
+
theme: u,
|
|
2734
|
+
darkMode: a.value,
|
|
2735
|
+
sidebarStatus: (i = n.layout) == null ? void 0 : i.sidebarStatus,
|
|
2736
|
+
epThemeColor: (y = n.layout) == null ? void 0 : y.epThemeColor,
|
|
2737
|
+
overallStyle: r.value
|
|
2738
|
+
}, u === "default" || u === "light")
|
|
2739
|
+
m(k().EpThemeColor || "#409EFF");
|
|
2740
|
+
else {
|
|
2741
|
+
const D = o.value.find((g) => g.themeColor === u);
|
|
2742
|
+
m(D.color);
|
|
2743
|
+
}
|
|
2744
|
+
}
|
|
2745
|
+
function s(u, i, y) {
|
|
2746
|
+
document.documentElement.style.setProperty(
|
|
2747
|
+
`--el-color-primary-${u}-${i}`,
|
|
2748
|
+
a.value ? $t(y, i / 10) : Vt(y, i / 10)
|
|
2749
|
+
);
|
|
2750
|
+
}
|
|
2751
|
+
const m = (u) => {
|
|
2752
|
+
X().setEpThemeColor(u), document.documentElement.style.setProperty("--el-color-primary", u);
|
|
2753
|
+
for (let i = 1; i <= 2; i++)
|
|
2754
|
+
s("dark", i, u);
|
|
2755
|
+
for (let i = 1; i <= 9; i++)
|
|
2756
|
+
s("light", i, u);
|
|
2757
|
+
};
|
|
2758
|
+
function h(u) {
|
|
2759
|
+
r.value = u, X().epTheme === "light" && a.value ? d("default") : d(X().epTheme), Io(a.value ? "dark" : "light"), a.value ? (document.documentElement.classList.add("dark"), document.documentElement.classList.remove("default")) : (document.documentElement.classList.add("default"), document.documentElement.classList.remove("dark"));
|
|
2760
|
+
}
|
|
2761
|
+
function E() {
|
|
2762
|
+
M.remove(Nt), M.remove(It), M.remove(qe), p.clear(), pt.clear();
|
|
2763
|
+
const { Grey: u, Weak: i, MultiTagsCache: y, EpThemeColor: D, Layout: g } = k();
|
|
2764
|
+
Dn().setLayout(g), m(D), F().multiTagsCacheChange(y), c(u, "html-grey", document.querySelector("html")), c(i, "html-weakness", document.querySelector("html")), f.push("/login"), F().handleTags("equal", [...U]), Eo();
|
|
2765
|
+
}
|
|
2766
|
+
return {
|
|
2767
|
+
body: l,
|
|
2768
|
+
overallStyle: r,
|
|
2769
|
+
dataTheme: a,
|
|
2770
|
+
layoutTheme: e,
|
|
2771
|
+
themeColors: o,
|
|
2772
|
+
onReset: E,
|
|
2773
|
+
toggleClass: c,
|
|
2774
|
+
dataThemeChange: h,
|
|
2775
|
+
setEpThemeColor: m,
|
|
2776
|
+
setLayoutThemeColor: d
|
|
2777
|
+
};
|
|
2778
|
+
}
|
|
2577
2779
|
export {
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2780
|
+
kn as A,
|
|
2781
|
+
I as B,
|
|
2782
|
+
Wn as C,
|
|
2783
|
+
io as D,
|
|
2784
|
+
Hn as E,
|
|
2785
|
+
wn as F,
|
|
2786
|
+
qn as G,
|
|
2787
|
+
$n as H,
|
|
2788
|
+
yn as I,
|
|
2789
|
+
Zn as J,
|
|
2790
|
+
jo as K,
|
|
2791
|
+
qt as L,
|
|
2792
|
+
Yn as M,
|
|
2793
|
+
Kn as N,
|
|
2794
|
+
Gn as O,
|
|
2795
|
+
jt as _,
|
|
2796
|
+
Qn as a,
|
|
2797
|
+
hn as b,
|
|
2798
|
+
F as c,
|
|
2799
|
+
Vn as d,
|
|
2800
|
+
Dn as e,
|
|
2801
|
+
Ke as f,
|
|
2802
|
+
k as g,
|
|
2803
|
+
C as h,
|
|
2804
|
+
$ as i,
|
|
2805
|
+
vn as j,
|
|
2806
|
+
Pt as k,
|
|
2807
|
+
be as l,
|
|
2808
|
+
U as m,
|
|
2809
|
+
Nt as n,
|
|
2810
|
+
It as o,
|
|
2811
|
+
qe as p,
|
|
2812
|
+
Eo as q,
|
|
2813
|
+
f as r,
|
|
2814
|
+
A as s,
|
|
2815
|
+
We as t,
|
|
2816
|
+
X as u,
|
|
2817
|
+
Jn as v,
|
|
2818
|
+
K as w,
|
|
2819
|
+
w as x,
|
|
2820
|
+
ho as y,
|
|
2821
|
+
Xn as z
|
|
2618
2822
|
};
|