@utogether/udp-core 1.0.1-beta.16 → 1.0.1-beta.17
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 +39 -39
- package/dist/{403-RBzulrcG.js → 403-C3cfjZIT.js} +1 -1
- package/dist/{404-DX-dU_6C.js → 404-Bg3j7QIo.js} +1 -1
- package/dist/{500-BCTk0__d.js → 500-CMT7Zyy7.js} +1 -1
- package/dist/{AuthorityInfo-BADTOenq.js → AuthorityInfo-B1mvqs4x.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Cv46yAx_.js → AuthorityInfo.vue_vue_type_style_index_0_lang-DwoW7QWO.js} +1 -1
- package/dist/{Company-B-61KrWd.js → Company-qTguidK8.js} +3 -3
- package/dist/{CompanyPanel-CawSrEff.js → CompanyPanel-BBC-o-k3.js} +8 -8
- package/dist/{Department-CrzJPtvP.js → Department-C3mKZOnK.js} +3 -3
- package/dist/{DepartmentPanel-DYuL8H-j.js → DepartmentPanel-CNdpOHBT.js} +3 -3
- package/dist/{DesignPanel-DEAv6V68.js → DesignPanel-D9jrRCoG.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BsnXZ2td.js → DesignPanel.vue_vue_type_style_index_0_lang-A-Aj1Hl0.js} +2 -2
- package/dist/{DictView-BuO-2b-c.js → DictView-CgdVkSiP.js} +1 -1
- package/dist/{InvOrganization-CBgKBJAn.js → InvOrganization-RE7s3vBq.js} +1 -1
- package/dist/{Org-BaQw2r-o.js → Org-wXDGvTrS.js} +1 -1
- package/dist/{Preview-DvCrmKNk.js → Preview-Pvt1__BV.js} +1 -1
- package/dist/{ReportDefine-DyhWz0as.js → ReportDefine-xEQsgFyv.js} +1 -1
- package/dist/{ReportDesign-DgZ2f2zv.js → ReportDesign-jOSuEFH9.js} +2 -2
- package/dist/{ReportQuery-DTZYbCDi.js → ReportQuery-DxEmmGiN.js} +1 -1
- package/dist/{ReportQueryFrom-B-vtJegP.js → ReportQueryFrom-CFlxfS5M.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-D6izgxph.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-iHpiYz8f.js} +1 -1
- package/dist/{ReportTemplate-DA1ZqKGf.js → ReportTemplate-Dtz3aet7.js} +1 -1
- package/dist/{Role-mbqoav5t.js → Role-B_NsHIyE.js} +3 -3
- package/dist/{RoleAssign-ltEJIEcr.js → RoleAssign-C9wm4zq4.js} +8 -8
- package/dist/{RolePanel-u90v9eS0.js → RolePanel-BlHidBR0.js} +1 -1
- package/dist/{RolePanel-1g1a-G8D.js → RolePanel-DWM9mfNs.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-D9YxpGnt.js → RolePanel.vue_vue_type_script_setup_true_lang-Cn4RRzXm.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-LC4Egk-Q.js → RolePanel.vue_vue_type_script_setup_true_lang-DVQ9aqb1.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DZ3W1epK.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCm-_i8O.js} +1 -1
- package/dist/{Staff-CJ2GgCL3.js → Staff-BfDc61QS.js} +3 -3
- package/dist/{StaffInfo-3KkodDCK.js → StaffInfo-BaJFo4mg.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CW-isIxJ.js → StaffInfo.vue_vue_type_script_setup_true_lang-Bwj4x1wu.js} +1 -1
- package/dist/{StaffPanel-DoXPSoY5.js → StaffPanel-B6I2ZS6A.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DvhGnOMZ.js → StaffPanel.vue_vue_type_script_setup_true_lang-vbyS4w3V.js} +2 -2
- package/dist/{SysUser-BuIZhMPh.js → SysUser-B_r9LYc5.js} +2 -2
- package/dist/{SysUserPanel-t1GJcJGM.js → SysUserPanel-C4ajcHPV.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-CDDkFLlN.js → SysUserPanel.vue_vue_type_script_setup_true_lang-8Q0VvC9B.js} +43 -39
- package/dist/{SystemMenu-DuLEL6_l.js → SystemMenu-CyPG23uP.js} +2 -2
- package/dist/{UserInfo-WWby4lts.js → UserInfo-BkoGt4ib.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-B06ZSrJV.js → UserInfo.vue_vue_type_style_index_0_lang-DrzF1YYG.js} +1 -1
- package/dist/{childView-B0-EAoAi.js → childView-9vEO8ymO.js} +1 -1
- package/dist/{childView-IYY4L8VK.js → childView-Dh0NyiQe.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CjF8nZuj.js → childView.vue_vue_type_style_index_0_lang-BOeoZuAK.js} +2 -2
- package/dist/{childView.vue_vue_type_style_index_0_lang-B56v6yK7.js → childView.vue_vue_type_style_index_0_lang-CMOjfXBX.js} +1 -1
- package/dist/{code-rule-DDLdi3pP.js → code-rule-C7jI_1gJ.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-p3-AFN1w.js → cron-task-Dg9DJXvv.js} +1 -1
- package/dist/{frameView-B_WAZErD.js → frameView-CeR-_hjB.js} +1 -1
- package/dist/{index-24fnvUBy.js → index-Bb7gIEvu.js} +611 -569
- package/dist/{layoutView-CoEp2afn.js → layoutView-wsLHrEeX.js} +1340 -1337
- package/dist/{login-DP0oP70W.js → login-CluzzdqH.js} +2 -2
- package/dist/{lov-view-BDoZRK-v.js → lov-view-BvQCvwbW.js} +2 -2
- package/dist/{menuInfo-5Xls76qB.js → menuInfo-B8RLelIC.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BfZczW9a.js → menuInfo.vue_vue_type_style_index_0_lang-DvkapEZr.js} +1 -1
- package/dist/{pda-app-DxGYn4G7.js → pda-app-D3LNmD9a.js} +2 -2
- package/dist/{resource-BnYWe_-Q.js → resource-D8JA_03-.js} +1 -1
- package/dist/{su-welcome-B2rNhhDH.js → su-welcome-BjxeEKSo.js} +1 -1
- package/dist/{sys-config-Bb4WkxZK.js → sys-config-sbeLk9bP.js} +1 -1
- package/dist/udp-core.css +1 -9
- package/index.ts +48 -48
- package/package.json +1 -1
- package/src/App.vue +65 -65
- package/src/components/SuCharts/src/UserInfo.vue +78 -78
- package/src/components/SuScrollTree/ScrollPanel.vue +170 -175
- package/src/components/udp/{grid.vue → grid/index.vue} +27 -24
- package/src/components/udp/index.ts +2 -9
- package/src/components/udp/utils.ts +60 -107
- package/src/layout/components/lay-navbar/index.vue +239 -239
- package/src/layout/components/lay-panel/index.vue +150 -150
- package/src/layout/components/lay-search/index.vue +25 -25
- package/src/layout/components/lay-select-org/index.vue +64 -64
- package/src/layout/components/lay-sidebar/horizontal.vue +190 -190
- package/src/layout/components/lay-sidebar/mixNav.vue +260 -260
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +92 -92
- package/src/layout/components/lay-tag/index.vue +20 -48
- package/src/layout/hooks/useNav.ts +173 -173
- package/src/layout/hooks/useTag.ts +5 -3
- package/src/layout/types.ts +3 -2
- package/src/main.ts +9 -6
- package/src/plugins/i18n/en.ts +302 -302
- package/src/plugins/i18n/zh.ts +356 -354
- package/src/plugins/vxe-table/index.ts +116 -53
- package/src/plugins/vxe-table/render.tsx +956 -956
- package/src/router/index.ts +186 -177
- package/src/router/modules/remaining.ts +58 -58
- package/src/router/utils.ts +393 -377
- package/src/store/modules/app.ts +1 -3
- package/src/store/modules/multiTags.ts +110 -109
- package/src/store/modules/permission.ts +113 -100
- package/src/style/button.scss +85 -85
- package/src/style/login.css +336 -336
- package/src/style/vxetable.scss +13 -3
- package/src/views/organization/company/CompanyPanel.vue +259 -259
- package/src/views/organization/department/DepartmentPanel.vue +269 -283
- package/src/views/system/menu/SystemMenu.vue +183 -183
- package/src/views/system/menu/menuInfo.vue +363 -363
- package/src/views/system/role/UserInfo.vue +195 -195
- package/src/views/system/role-assign/RoleAssign.vue +57 -57
- package/src/views/system/role-assign/RolePanel.vue +139 -139
- package/src/views/system/sys/sys-config.vue +336 -336
- package/src/views/system/sysUser/SysUserPanel.vue +279 -278
- package/src/views/uapp/pda/pda-app.vue +208 -208
- package/src/views/udev/dict/DictView.vue +118 -118
- package/src/views/udev/dict/childView.vue +1 -1
- package/src/views/udev/lov/lov-view.vue +91 -91
- package/src/views/ulogin/login.vue +323 -323
- package/src/views/upms/interface/log-out.vue +101 -101
- package/src/views/urpt/design/DesignPanel.vue +507 -507
- package/types/global.d.ts +230 -230
- package/src/components/udp/count-down.vue +0 -536
- package/src/components/udp/flip-down/FlipCard/flip-card.vue +0 -251
- package/src/components/udp/flip-down/FlipCard/interfaces.ts +0 -4
- package/src/components/udp/flip-down/FlipClock/flip-clock.vue +0 -113
- package/src/components/udp/form-upload.vue +0 -482
- package/src/components/udp/form.vue +0 -112
- package/src/components/udp/lov.vue +0 -388
- package/src/components/udp/modal-form.vue +0 -190
- package/src/components/udp/modal-grid.vue +0 -298
- package/src/components/udp/upload.vue +0 -423
- package/src/utils/udp/http/index.ts +0 -294
- package/src/utils/udp/http/types.d.ts +0 -49
- package/src/utils/udp/useRender.ts +0 -431
|
@@ -1,18 +1,17 @@
|
|
|
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 we } from "@iconify/vue";
|
|
1
|
+
import * as je from "vue";
|
|
2
|
+
import { defineComponent as B, resolveComponent as ne, createBlock as at, openBlock as rt, withCtx as st, createVNode as Ue, toRaw as fe, isProxy as ge, defineAsyncComponent as it, h as O, createApp as lt, computed as ye, ref as X } from "vue";
|
|
3
|
+
import { ElConfigProvider as we } from "element-plus";
|
|
4
|
+
import { checkVersion as ut } from "version-rocket";
|
|
5
|
+
import { useI18n as ze, createI18n as ct } from "vue-i18n";
|
|
6
|
+
import { http as P, storageLocal as h, cookies as U, buildHierarchyTree as le, dbstorage as ee, isUrl as _e, openLink as dt, NProgress as mt, VxetableRender as pt, useGlobal as qe, deviceDetection as ht, storageSession as ft } from "@utogether/utils";
|
|
7
|
+
import { merge as ue, clone as z, findLastIndexOf as gt, isBoolean as yt, isEqual as be, findIndexOf as wt, isEmpty as bt, toDateString as v, getWhatDay as R, isArray as Ct } from "xe-utils";
|
|
8
|
+
import { createPinia as vt, defineStore as q } from "pinia";
|
|
9
|
+
import { useTimeoutFn as Tt } from "@vueuse/core";
|
|
10
|
+
import Ve, { VxeUI as k } from "vxe-table";
|
|
11
|
+
import { Icon as Ce } from "@iconify/vue";
|
|
13
12
|
import Et from "vue-tippy";
|
|
14
13
|
import St from "element-resize-detector";
|
|
15
|
-
var
|
|
14
|
+
var Dt = {
|
|
16
15
|
name: "en",
|
|
17
16
|
el: {
|
|
18
17
|
breadcrumb: {
|
|
@@ -190,7 +189,7 @@ var kt = {
|
|
|
190
189
|
indicator: "Carousel switch to index {index}"
|
|
191
190
|
}
|
|
192
191
|
}
|
|
193
|
-
},
|
|
192
|
+
}, kt = {
|
|
194
193
|
name: "zh-cn",
|
|
195
194
|
el: {
|
|
196
195
|
breadcrumb: {
|
|
@@ -368,40 +367,40 @@ var kt = {
|
|
|
368
367
|
}
|
|
369
368
|
}
|
|
370
369
|
};
|
|
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
|
-
},
|
|
370
|
+
const Ft = "menu_zh", xt = "menu_en", It = "authorized-token", Pt = "kCookies_token", Nt = "kSysConfig", He = "loginer";
|
|
371
|
+
let ae = {}, $e = {};
|
|
372
|
+
const Mt = (e, t) => {
|
|
373
|
+
ae = Object.assign(ae, t), e.config.globalProperties.$config = F();
|
|
374
|
+
}, F = () => ae, Ot = (e = {}) => {
|
|
375
|
+
$e = e;
|
|
376
|
+
}, ve = () => $e, b = () => F().ResponsiveStorageNameSpace, Q = () => ({
|
|
377
|
+
post: (e, t, o) => P.post(`${N()}${e}`, t, o),
|
|
378
|
+
get: (e, t, o) => P.get(`${N()}${e}`, t, o),
|
|
379
|
+
put: (e, t) => P.put(`${N()}${e}`, t),
|
|
380
|
+
delete: (e, t) => P.delete(`${N()}${e}`, t)
|
|
381
|
+
}), Rt = (e) => {
|
|
382
|
+
P.setRouter(e);
|
|
383
|
+
}, Lt = (e) => {
|
|
384
|
+
P.setBaseUrl(e);
|
|
385
|
+
}, At = window.location.origin + "/gateway", N = () => ve().VITE_BASE_URL === "origin" ? At : ve().VITE_BASE_URL, Bt = B({
|
|
387
386
|
name: "app",
|
|
388
387
|
components: {
|
|
389
|
-
[
|
|
388
|
+
[we.name]: we
|
|
390
389
|
},
|
|
391
390
|
beforeRouteEnter(e, t, o) {
|
|
392
|
-
|
|
391
|
+
Q().get("/upfm/v1/sysConfig", {}).then((n) => {
|
|
393
392
|
o();
|
|
394
393
|
});
|
|
395
394
|
},
|
|
396
395
|
computed: {
|
|
397
396
|
currentLocale() {
|
|
398
397
|
var e, t;
|
|
399
|
-
return ((t = (e = this.$storage) == null ? void 0 : e.locale) == null ? void 0 : t.locale) === "zh" ?
|
|
398
|
+
return ((t = (e = this.$storage) == null ? void 0 : e.locale) == null ? void 0 : t.locale) === "zh" ? kt : Dt;
|
|
400
399
|
}
|
|
401
400
|
},
|
|
402
401
|
beforeCreate() {
|
|
403
|
-
const { t: e } =
|
|
404
|
-
|
|
402
|
+
const { t: e } = ze(), n = (h.getItem(Nt) || { title: "U-DP" }).title;
|
|
403
|
+
ut(
|
|
405
404
|
{
|
|
406
405
|
pollingTime: 3e5,
|
|
407
406
|
checkOriginSpecifiedFilesUrl: [`${location.origin}/index.html`],
|
|
@@ -421,38 +420,39 @@ const Ot = (e, t) => {
|
|
|
421
420
|
o[n] = a;
|
|
422
421
|
return o;
|
|
423
422
|
};
|
|
424
|
-
function
|
|
425
|
-
const
|
|
426
|
-
return
|
|
423
|
+
function Ut(e, t, o, n, a, r) {
|
|
424
|
+
const i = ne("router-view"), u = ne("el-config-provider");
|
|
425
|
+
return rt(), at(u, {
|
|
427
426
|
size: "small",
|
|
428
427
|
"z-index": 5555,
|
|
429
428
|
locale: e.currentLocale
|
|
430
429
|
}, {
|
|
431
|
-
default:
|
|
432
|
-
|
|
430
|
+
default: st(() => [
|
|
431
|
+
Ue(i)
|
|
433
432
|
]),
|
|
434
433
|
_: 1
|
|
435
434
|
}, 8, ["locale"]);
|
|
436
435
|
}
|
|
437
|
-
const
|
|
436
|
+
const zt = /* @__PURE__ */ jt(Bt, [["render", Ut]]), j = vt();
|
|
438
437
|
function _t(e) {
|
|
439
|
-
e.use(
|
|
438
|
+
e.use(j);
|
|
440
439
|
}
|
|
441
|
-
const
|
|
440
|
+
const V = [
|
|
442
441
|
{
|
|
443
442
|
path: "/welcome",
|
|
443
|
+
name: "Welcome",
|
|
444
444
|
meta: {
|
|
445
445
|
title: "message.udp.home",
|
|
446
446
|
icon: "home-filled"
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
],
|
|
449
|
+
], Hn = (e) => {
|
|
450
450
|
const t = e.indexOf("windows nt 5.1") > -1 || e.indexOf("windows xp") > -1;
|
|
451
451
|
if (e.indexOf("windows xp") > -1, t) return "WinXP";
|
|
452
452
|
if (e.indexOf("windows nt 6.1") > -1 || e.indexOf("windows 7") > -1) return "Win7";
|
|
453
453
|
if (e.indexOf("windows nt6.2") > -1 || e.indexOf("windows 8") > -1) return "Win8";
|
|
454
454
|
if (e.indexOf("windows nt 10.0") > -1 || e.indexOf("windows 10") > -1) return "Win10";
|
|
455
|
-
},
|
|
455
|
+
}, $n = (e) => {
|
|
456
456
|
let t = null;
|
|
457
457
|
const o = {
|
|
458
458
|
Chrome: e.indexOf("chrome") > -1 && e.indexOf("safari") > -1,
|
|
@@ -481,31 +481,31 @@ const U = [
|
|
|
481
481
|
},
|
|
482
482
|
onBeforeLogout: () => {
|
|
483
483
|
}
|
|
484
|
-
},
|
|
484
|
+
}, Wn = () => {
|
|
485
485
|
qt.onLogined();
|
|
486
|
-
},
|
|
486
|
+
}, Vt = (e, t) => {
|
|
487
487
|
const o = [];
|
|
488
488
|
for (const n of e)
|
|
489
489
|
n[t] && o.push(n[t]);
|
|
490
490
|
return Array.from(new Set(o));
|
|
491
|
-
},
|
|
491
|
+
}, We = (e) => {
|
|
492
492
|
const t = e.replace("#", "").match(/../g);
|
|
493
493
|
for (let o = 0; o < 3; o++) t[o] = parseInt(t[o], 16);
|
|
494
494
|
return t;
|
|
495
|
-
},
|
|
495
|
+
}, Ge = (e, t, o) => {
|
|
496
496
|
const n = [e.toString(16), t.toString(16), o.toString(16)];
|
|
497
497
|
for (let a = 0; a < 3; a++)
|
|
498
498
|
n[a].length == 1 && (n[a] = `0${n[a]}`);
|
|
499
499
|
return `#${n.join("")}`;
|
|
500
|
-
},
|
|
501
|
-
const o =
|
|
500
|
+
}, Ht = (e, t) => {
|
|
501
|
+
const o = We(e);
|
|
502
502
|
for (let n = 0; n < 3; n++) o[n] = Math.floor(o[n] * (1 - t));
|
|
503
|
-
return
|
|
504
|
-
},
|
|
505
|
-
const o =
|
|
503
|
+
return Ge(o[0], o[1], o[2]);
|
|
504
|
+
}, $t = (e, t) => {
|
|
505
|
+
const o = We(e);
|
|
506
506
|
for (let n = 0; n < 3; n++) o[n] = Math.floor((255 - o[n]) * t + o[n]);
|
|
507
|
-
return
|
|
508
|
-
},
|
|
507
|
+
return Ge(o[0], o[1], o[2]);
|
|
508
|
+
}, Te = {
|
|
509
509
|
zh: {
|
|
510
510
|
message: {
|
|
511
511
|
reportCode: "报表编号",
|
|
@@ -556,8 +556,8 @@ const U = [
|
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
558
|
}, Wt = {
|
|
559
|
-
zh: { ...
|
|
560
|
-
en: { ...
|
|
559
|
+
zh: { ...Te.zh.message },
|
|
560
|
+
en: { ...Te.en.message }
|
|
561
561
|
}, Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
562
562
|
__proto__: null,
|
|
563
563
|
default: Wt
|
|
@@ -611,12 +611,12 @@ const U = [
|
|
|
611
611
|
flowDesign: "Flow Design"
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
},
|
|
614
|
+
}, Ee = [Kt, Jt], Yt = {
|
|
615
615
|
zh: {
|
|
616
|
-
...Object.assign({}, ...
|
|
616
|
+
...Object.assign({}, ...Ee.map((e) => e.zh.message))
|
|
617
617
|
},
|
|
618
618
|
en: {
|
|
619
|
-
...Object.assign({}, ...
|
|
619
|
+
...Object.assign({}, ...Ee.map((e) => e.en.message))
|
|
620
620
|
}
|
|
621
621
|
}, Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
622
622
|
__proto__: null,
|
|
@@ -810,7 +810,8 @@ const U = [
|
|
|
810
810
|
upload: "上传",
|
|
811
811
|
goback: "返回",
|
|
812
812
|
disabled: "禁用",
|
|
813
|
-
enable: "启用"
|
|
813
|
+
enable: "启用",
|
|
814
|
+
bankinfo: "银行账号"
|
|
814
815
|
},
|
|
815
816
|
urpt: {
|
|
816
817
|
templateName: "模版名称",
|
|
@@ -1261,41 +1262,41 @@ const U = [
|
|
|
1261
1262
|
dictDispose: "dictDispose",
|
|
1262
1263
|
isSearch: "isSearch",
|
|
1263
1264
|
isCol: "isCol"
|
|
1264
|
-
},
|
|
1265
|
-
for (const e in
|
|
1266
|
-
|
|
1267
|
-
const
|
|
1265
|
+
}, Se = /* @__PURE__ */ Object.assign({ "./module/u-report.ts": Gt, "./module/u-workflow.ts": Qt, "./module/umsg.ts": Xt }), $ = {};
|
|
1266
|
+
for (const e in Se)
|
|
1267
|
+
$[e.replace(/(\.\/module\/|\.ts)/g, "")] = Se[e].default;
|
|
1268
|
+
const De = Object.keys($).filter((e) => $[e]).map((e) => $[e]), oo = {
|
|
1268
1269
|
zh: {
|
|
1269
|
-
...
|
|
1270
|
-
message:
|
|
1270
|
+
...h.getItem(Ft),
|
|
1271
|
+
message: ue(eo, ...De.map((e) => e.zh.message))
|
|
1271
1272
|
},
|
|
1272
1273
|
en: {
|
|
1273
|
-
...
|
|
1274
|
-
message: Object.assign(to, ...
|
|
1274
|
+
...h.getItem(xt),
|
|
1275
|
+
message: Object.assign(to, ...De.map((e) => e.en.message))
|
|
1275
1276
|
}
|
|
1276
1277
|
};
|
|
1277
|
-
let
|
|
1278
|
+
let A = null;
|
|
1278
1279
|
function no(e, t = { messages: {} }) {
|
|
1279
1280
|
var o;
|
|
1280
|
-
|
|
1281
|
+
A = ct({
|
|
1281
1282
|
legacy: !1,
|
|
1282
|
-
locale: ((o =
|
|
1283
|
+
locale: ((o = h.getItem(`${b()}locale`)) == null ? void 0 : o.locale) ?? "zh",
|
|
1283
1284
|
fallbackLocale: "en",
|
|
1284
1285
|
globalInjection: !0,
|
|
1285
|
-
messages:
|
|
1286
|
-
}),
|
|
1286
|
+
messages: ue(oo, t.messages)
|
|
1287
|
+
}), k.setLanguage("zh-CN"), e.use(A);
|
|
1287
1288
|
}
|
|
1288
|
-
const
|
|
1289
|
-
function
|
|
1289
|
+
const W = () => A;
|
|
1290
|
+
function Ke(e = "", t = !0) {
|
|
1290
1291
|
if (!e)
|
|
1291
1292
|
return "";
|
|
1292
1293
|
if (typeof e == "object") {
|
|
1293
|
-
const o =
|
|
1294
|
+
const o = A.global.locale;
|
|
1294
1295
|
return e[o.value];
|
|
1295
1296
|
}
|
|
1296
|
-
return t ?
|
|
1297
|
+
return t ? A.global.t.call(A.global, e) : e;
|
|
1297
1298
|
}
|
|
1298
|
-
const ao =
|
|
1299
|
+
const ao = q("udp-system", {
|
|
1299
1300
|
state: () => ({
|
|
1300
1301
|
baseURL: "",
|
|
1301
1302
|
userInfo: {},
|
|
@@ -1407,7 +1408,7 @@ const ao = z("udp-system", {
|
|
|
1407
1408
|
setDict(e) {
|
|
1408
1409
|
this.dicts = e, e == null || e.forEach((t) => {
|
|
1409
1410
|
this.dataDict[t.dictCode] = t;
|
|
1410
|
-
}),
|
|
1411
|
+
}), h.setItem("kLov", this.dataDict);
|
|
1411
1412
|
},
|
|
1412
1413
|
// 系统信息
|
|
1413
1414
|
setSystemInfo(e) {
|
|
@@ -1419,26 +1420,26 @@ const ao = z("udp-system", {
|
|
|
1419
1420
|
orgId: e.orgId,
|
|
1420
1421
|
organizationId: e.organizationId
|
|
1421
1422
|
};
|
|
1422
|
-
|
|
1423
|
+
U.set("kCookies_param", JSON.stringify(o)), this.isAdminRole = this.employee.sysRoles.some((a) => a.roleCode === "admin" || ["管理员"].includes(a.roleName)), T().setAuthButton(e.dataMenus);
|
|
1423
1424
|
}
|
|
1424
1425
|
}
|
|
1425
1426
|
});
|
|
1426
|
-
function
|
|
1427
|
-
return ao(
|
|
1427
|
+
function G() {
|
|
1428
|
+
return ao(j);
|
|
1428
1429
|
}
|
|
1429
1430
|
function ro(e, t) {
|
|
1430
|
-
return /* @__PURE__ */
|
|
1431
|
+
return /* @__PURE__ */ B({
|
|
1431
1432
|
name: e,
|
|
1432
1433
|
components: {
|
|
1433
1434
|
asyncComponent: t
|
|
1434
1435
|
},
|
|
1435
1436
|
setup() {
|
|
1436
|
-
return () =>
|
|
1437
|
+
return () => Ue(ne("async-component"), null, null);
|
|
1437
1438
|
}
|
|
1438
1439
|
});
|
|
1439
1440
|
}
|
|
1440
|
-
const so = () =>
|
|
1441
|
-
function
|
|
1441
|
+
const so = () => P.get(`${N()}/uums/roleMenu`), io = () => P.get(`${N()}/upfm/v1/lov/selectAll`), ke = (e) => P.get(`${N()}/uums/roleMenu/userMenu`, e), lo = () => import("./layoutView-wsLHrEeX.js"), uo = () => import("./frameView-CeR-_hjB.js");
|
|
1442
|
+
function H(e) {
|
|
1442
1443
|
return e.forEach((t) => {
|
|
1443
1444
|
var o, n;
|
|
1444
1445
|
((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");
|
|
@@ -1447,40 +1448,38 @@ function _(e) {
|
|
|
1447
1448
|
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);
|
|
1448
1449
|
});
|
|
1449
1450
|
}
|
|
1450
|
-
function
|
|
1451
|
-
const t =
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
);
|
|
1457
|
-
return t.forEach((o) => o.children && (o.children = Ge(o.children))), t;
|
|
1451
|
+
function Je(e) {
|
|
1452
|
+
const t = z(e, !0).filter((o) => {
|
|
1453
|
+
var n;
|
|
1454
|
+
return o && ((n = o.meta) == null ? void 0 : n.showLink) !== !1;
|
|
1455
|
+
});
|
|
1456
|
+
return t.forEach((o) => o.children && (o.children = Je(o.children))), t;
|
|
1458
1457
|
}
|
|
1459
|
-
function
|
|
1460
|
-
function n(a, r,
|
|
1461
|
-
for (let
|
|
1462
|
-
const d = a[
|
|
1463
|
-
if (d[o] === r) return
|
|
1458
|
+
function Gn(e, t, o = "path") {
|
|
1459
|
+
function n(a, r, i) {
|
|
1460
|
+
for (let u = 0; u < a.length; u++) {
|
|
1461
|
+
const d = a[u];
|
|
1462
|
+
if (d[o] === r) return i;
|
|
1464
1463
|
if (!(!d.children || !d.children.length)) {
|
|
1465
|
-
if (
|
|
1466
|
-
|
|
1464
|
+
if (i.push(d.path), n(d.children, r, i).length) return i;
|
|
1465
|
+
i.pop();
|
|
1467
1466
|
}
|
|
1468
1467
|
}
|
|
1469
1468
|
return [];
|
|
1470
1469
|
}
|
|
1471
1470
|
return n(t, e, []);
|
|
1472
1471
|
}
|
|
1473
|
-
function
|
|
1472
|
+
function Ye(e, t) {
|
|
1474
1473
|
let o = t.find((n) => n.path == e);
|
|
1475
1474
|
if (o)
|
|
1476
|
-
return
|
|
1475
|
+
return ge(o) ? fe(o) : o;
|
|
1477
1476
|
for (let n = 0; n < t.length; n++)
|
|
1478
|
-
if (t[n].children instanceof Array && t[n].children.length > 0 && (o =
|
|
1479
|
-
return
|
|
1477
|
+
if (t[n].children instanceof Array && t[n].children.length > 0 && (o = Ye(e, t[n].children), o))
|
|
1478
|
+
return ge(o) ? fe(o) : o;
|
|
1480
1479
|
return null;
|
|
1481
1480
|
}
|
|
1482
1481
|
function co() {
|
|
1483
|
-
|
|
1482
|
+
g.hasRoute("pathMatch") || g.addRoute({
|
|
1484
1483
|
path: "/:pathMatch(.*)",
|
|
1485
1484
|
name: "pathMatch",
|
|
1486
1485
|
redirect: "/error/404"
|
|
@@ -1488,27 +1487,27 @@ function co() {
|
|
|
1488
1487
|
}
|
|
1489
1488
|
function mo() {
|
|
1490
1489
|
var t, o;
|
|
1491
|
-
const e =
|
|
1492
|
-
(t = e.global) == null || t.mergeLocaleMessage("zh",
|
|
1490
|
+
const e = W();
|
|
1491
|
+
(t = e.global) == null || t.mergeLocaleMessage("zh", L.zh), (o = e.global) == null || o.mergeLocaleMessage("en", L.en), h.setItem("menu_zh", L.zh), h.setItem("menu_en", L.en);
|
|
1493
1492
|
}
|
|
1494
|
-
function
|
|
1493
|
+
function Fe(e) {
|
|
1495
1494
|
if (e != null && e.length) {
|
|
1496
1495
|
const t = e.findIndex((n) => n.menuCode === "SysHome");
|
|
1497
1496
|
if (t !== -1) {
|
|
1498
1497
|
const n = [], a = [];
|
|
1499
1498
|
e[t].children.forEach((r) => {
|
|
1500
1499
|
r.menuCategory !== "1" ? n.push(r) : a.push(r);
|
|
1501
|
-
}), e[t].children = a,
|
|
1500
|
+
}), e[t].children = a, G().setHomeMenus(n);
|
|
1502
1501
|
}
|
|
1503
|
-
const o =
|
|
1504
|
-
mo(),
|
|
1505
|
-
const { options: a } =
|
|
1506
|
-
a.routes[0].children.findIndex((r) => r.path === n.path) === -1 && (
|
|
1502
|
+
const o = z(Ze(e), !0);
|
|
1503
|
+
mo(), Z(o).map((n) => {
|
|
1504
|
+
const { options: a } = g;
|
|
1505
|
+
a.routes[0].children.findIndex((r) => r.path === n.path) === -1 && (g.options.routes[0].children.push(n), H(g.options.routes[0].children), g.hasRoute(n == null ? void 0 : n.name) || g.addRoute(n));
|
|
1507
1506
|
});
|
|
1508
1507
|
}
|
|
1509
|
-
|
|
1510
|
-
...
|
|
1511
|
-
...
|
|
1508
|
+
T().changeSetting(e), x().getMultiTagsCache || x().handleTags("equal", [
|
|
1509
|
+
...V,
|
|
1510
|
+
...T().flatteningRoutes.filter((t) => {
|
|
1512
1511
|
var o;
|
|
1513
1512
|
return (o = t == null ? void 0 : t.meta) == null ? void 0 : o.fixedTag;
|
|
1514
1513
|
})
|
|
@@ -1517,26 +1516,26 @@ function ke(e) {
|
|
|
1517
1516
|
async function po(e) {
|
|
1518
1517
|
let t = [];
|
|
1519
1518
|
const o = `U-${e}-ROUTES`;
|
|
1520
|
-
return
|
|
1521
|
-
|
|
1519
|
+
return F().CachingAsyncRoutes && await ee.getItem(o).then((n) => t = n), io().then((n) => G().setDict(n)), await so().then(async (n) => {
|
|
1520
|
+
G().setSystemInfo(n), await Q().get("/uums/cusOrganization", { pageSize: 100, pageNum: 1, orgId: n.orgId }).then((a) => G().setInvOrgList((a == null ? void 0 : a.list) || []));
|
|
1522
1521
|
}), t != null && t.length ? new Promise((n) => {
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
}), n(
|
|
1522
|
+
Fe(t), ke({ userName: e }).then((a) => {
|
|
1523
|
+
ee.setItem(o, a);
|
|
1524
|
+
}), n(g);
|
|
1526
1525
|
}) : new Promise((n) => {
|
|
1527
|
-
|
|
1528
|
-
|
|
1526
|
+
ke({ userName: e }).then((a) => {
|
|
1527
|
+
Fe(z(a, !0)), ee.setItem(o, a), n(g);
|
|
1529
1528
|
});
|
|
1530
1529
|
});
|
|
1531
1530
|
}
|
|
1532
|
-
function
|
|
1531
|
+
function Z(e) {
|
|
1533
1532
|
if (e.length === 0) return e;
|
|
1534
|
-
let t =
|
|
1533
|
+
let t = le(e);
|
|
1535
1534
|
for (let o = 0; o < t.length; o++)
|
|
1536
1535
|
t[o].children && (t = t.slice(0, o + 1).concat(t[o].children, t.slice(o + 1)));
|
|
1537
1536
|
return t;
|
|
1538
1537
|
}
|
|
1539
|
-
function
|
|
1538
|
+
function Qe(e) {
|
|
1540
1539
|
if (e.length === 0) return e;
|
|
1541
1540
|
const t = [];
|
|
1542
1541
|
return e.forEach((o) => {
|
|
@@ -1553,70 +1552,70 @@ function Je(e) {
|
|
|
1553
1552
|
function ho({ name: e }, t) {
|
|
1554
1553
|
switch (t) {
|
|
1555
1554
|
case "add":
|
|
1556
|
-
|
|
1555
|
+
T().cacheOperate({ mode: "add", name: e });
|
|
1557
1556
|
break;
|
|
1558
1557
|
case "delete":
|
|
1559
|
-
|
|
1558
|
+
T().cacheOperate({ mode: "delete", name: e });
|
|
1560
1559
|
break;
|
|
1561
1560
|
case "refresh":
|
|
1562
|
-
|
|
1561
|
+
T().cacheOperate({ mode: "refresh", name: e });
|
|
1563
1562
|
break;
|
|
1564
1563
|
default:
|
|
1565
|
-
|
|
1566
|
-
|
|
1564
|
+
T().cacheOperate({ mode: "delete", name: e }), Tt(() => {
|
|
1565
|
+
T().cacheOperate({ mode: "add", name: e });
|
|
1567
1566
|
}, 100);
|
|
1568
1567
|
}
|
|
1569
1568
|
}
|
|
1570
|
-
const
|
|
1569
|
+
const L = {
|
|
1571
1570
|
zh: {},
|
|
1572
1571
|
en: {}
|
|
1573
|
-
},
|
|
1572
|
+
}, Ze = (e) => {
|
|
1574
1573
|
var n;
|
|
1575
|
-
const t =
|
|
1574
|
+
const t = Fo();
|
|
1576
1575
|
if (!e || !e.length) return;
|
|
1577
1576
|
const o = Object.keys(t);
|
|
1578
1577
|
for (let a = 0; a < e.length; a++) {
|
|
1579
1578
|
const r = e[a];
|
|
1580
1579
|
r != null && r.children && r.children.length && !r.redirect && (r.redirect = r.children[0].path);
|
|
1581
|
-
const { icon:
|
|
1582
|
-
if (r.meta = { keepAlive: !0, rank: r.sort, title: `${r.i18nField}` }, Object.assign(r.meta, { icon:
|
|
1580
|
+
const { icon: i, permissionCode: u, extraIcon: d, frameSrc: s } = r;
|
|
1581
|
+
if (r.meta = { keepAlive: !0, rank: r.sort, title: `${r.i18nField}` }, Object.assign(r.meta, { icon: i, permissionCode: u, extraIcon: d, frameSrc: s }), L.zh[r.i18nField] = r.menuName || r.menuNameEn, L.en[r.i18nField] = r.menuNameEn || r.menuName, r.name = r.menuCode || r.name, r.path = r.menuPath || r.path, !r.parentId)
|
|
1583
1582
|
r.component = lo;
|
|
1584
1583
|
else if ((n = r.meta) != null && n.frameSrc)
|
|
1585
1584
|
r.component = uo;
|
|
1586
1585
|
else if (r.menuCategory === "10") {
|
|
1587
|
-
const m = o.findIndex((
|
|
1586
|
+
const m = o.findIndex((f) => f.includes("lowcode-contain"));
|
|
1588
1587
|
r.component = ro(
|
|
1589
1588
|
r.name,
|
|
1590
|
-
|
|
1589
|
+
it(() => import(
|
|
1591
1590
|
/* @vite-ignore */
|
|
1592
1591
|
o[m]
|
|
1593
1592
|
))
|
|
1594
1593
|
), Object.assign(r.meta, { moduleType: r.moduleType });
|
|
1595
1594
|
} else if (r.menuCategory !== "5") {
|
|
1596
|
-
const m = o.findIndex((
|
|
1595
|
+
const m = o.findIndex((f) => f.includes(r.path));
|
|
1597
1596
|
r.component = t[o[m]];
|
|
1598
1597
|
}
|
|
1599
|
-
r != null && r.children && r.children.length ?
|
|
1598
|
+
r != null && r.children && r.children.length ? Ze(r.children) : delete r.children;
|
|
1600
1599
|
}
|
|
1601
1600
|
return e;
|
|
1602
1601
|
};
|
|
1603
|
-
function
|
|
1604
|
-
const o =
|
|
1602
|
+
function Kn(e, t = !0) {
|
|
1603
|
+
const o = x().multiTags.findIndex((n) => {
|
|
1605
1604
|
if (e.query) {
|
|
1606
1605
|
if (e.path === n.path)
|
|
1607
1606
|
return e.query === n.query;
|
|
1608
1607
|
} else
|
|
1609
1608
|
return e.path === n.path;
|
|
1610
1609
|
});
|
|
1611
|
-
if (
|
|
1612
|
-
const n =
|
|
1613
|
-
|
|
1610
|
+
if (x().handleTags("splice", "", { startIndex: o, length: 1 }), ho(e.matched, "delete"), t) {
|
|
1611
|
+
const n = x().handleTags("slice");
|
|
1612
|
+
g.push({
|
|
1614
1613
|
path: n[0].path,
|
|
1615
1614
|
query: n[0].query
|
|
1616
1615
|
});
|
|
1617
1616
|
}
|
|
1618
1617
|
}
|
|
1619
|
-
const fo =
|
|
1618
|
+
const fo = q("udp-permission", {
|
|
1620
1619
|
state: () => ({
|
|
1621
1620
|
// 静态路由生成的菜单
|
|
1622
1621
|
constantMenus: To,
|
|
@@ -1638,12 +1637,12 @@ const fo = z("udp-permission", {
|
|
|
1638
1637
|
actions: {
|
|
1639
1638
|
asyncActionRoutes(e = []) {
|
|
1640
1639
|
if (this.wholeMenus.length > 0) return;
|
|
1641
|
-
const t =
|
|
1640
|
+
const t = gt(e, (n) => n.menuCode === "SysHome"), o = z(this.constantMenus, !0);
|
|
1642
1641
|
if (t !== -1) {
|
|
1643
1642
|
const n = this.constantMenus.find((a) => a.name === "home");
|
|
1644
1643
|
e[t].children && n.children.push(...e[t].children), e.splice(t, 1);
|
|
1645
1644
|
}
|
|
1646
|
-
this.wholeMenus =
|
|
1645
|
+
this.wholeMenus = Je(H(this.constantMenus.concat(e))), this.flatteningRoutes = Z(this.constantMenus.concat(e)), this.menusTree = z(this.wholeMenus, !0), this.constantMenus = o;
|
|
1647
1646
|
},
|
|
1648
1647
|
async changeSetting(e) {
|
|
1649
1648
|
await this.asyncActionRoutes(e);
|
|
@@ -1654,28 +1653,29 @@ const fo = z("udp-permission", {
|
|
|
1654
1653
|
setWholeMenus(e) {
|
|
1655
1654
|
this.wholeMenus = e;
|
|
1656
1655
|
},
|
|
1656
|
+
/** 监听缓存页面是否存在于标签页,不存在则删除 */
|
|
1657
|
+
clearCache() {
|
|
1658
|
+
let e = this.cachePageList.length;
|
|
1659
|
+
const t = Vt(x().multiTags, "name");
|
|
1660
|
+
for (; e > 0; )
|
|
1661
|
+
t.findIndex((o) => o === this.cachePageList[e - 1]) === -1 && this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[e - 1]), 1), e--;
|
|
1662
|
+
},
|
|
1657
1663
|
cacheOperate({ mode: e, name: t }) {
|
|
1658
1664
|
const o = this.cachePageList.findIndex((n) => n === t);
|
|
1659
1665
|
switch (e) {
|
|
1660
1666
|
case "refresh":
|
|
1661
|
-
this.cachePageList = this.cachePageList.filter((n) => n !== t);
|
|
1667
|
+
this.cachePageList = this.cachePageList.filter((n) => n !== t), this.clearCache();
|
|
1662
1668
|
break;
|
|
1663
1669
|
case "add":
|
|
1664
1670
|
this.cachePageList.push(t);
|
|
1665
1671
|
break;
|
|
1666
1672
|
case "delete":
|
|
1667
|
-
o !== -1 && this.cachePageList.splice(o, 1);
|
|
1673
|
+
o !== -1 && this.cachePageList.splice(o, 1), this.clearCache();
|
|
1668
1674
|
break;
|
|
1669
1675
|
case "reset":
|
|
1670
1676
|
this.cachePageList = [];
|
|
1671
1677
|
break;
|
|
1672
1678
|
}
|
|
1673
|
-
ht(() => {
|
|
1674
|
-
let n = this.cachePageList.length;
|
|
1675
|
-
const a = Ht(F().multiTags, "name");
|
|
1676
|
-
for (; n > 0; )
|
|
1677
|
-
a.findIndex((r) => r === this.cachePageList[n - 1]) === -1 && this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[n - 1]), 1), n--;
|
|
1678
|
-
}, 500)();
|
|
1679
1679
|
},
|
|
1680
1680
|
/** 清空缓存页面 */
|
|
1681
1681
|
clearAllCachePage() {
|
|
@@ -1683,19 +1683,19 @@ const fo = z("udp-permission", {
|
|
|
1683
1683
|
}
|
|
1684
1684
|
}
|
|
1685
1685
|
});
|
|
1686
|
-
function
|
|
1687
|
-
return fo(
|
|
1686
|
+
function T() {
|
|
1687
|
+
return fo(j);
|
|
1688
1688
|
}
|
|
1689
|
-
const
|
|
1689
|
+
const Xe = q("udp-multiTags", {
|
|
1690
1690
|
state: () => {
|
|
1691
1691
|
var e, t;
|
|
1692
1692
|
return {
|
|
1693
1693
|
// 存储标签页信息(路由信息)
|
|
1694
|
-
multiTags: (e =
|
|
1694
|
+
multiTags: (e = h.getItem(`${b()}configure`)) != null && e.multiTagsCache ? h.getItem(`${b()}tags`) : [...V, ...T().flatteningRoutes.filter((o) => {
|
|
1695
1695
|
var n;
|
|
1696
1696
|
return (n = o == null ? void 0 : o.meta) == null ? void 0 : n.fixedTag;
|
|
1697
1697
|
})],
|
|
1698
|
-
multiTagsCache: (t =
|
|
1698
|
+
multiTagsCache: (t = h.getItem(`${b()}configure`)) == null ? void 0 : t.multiTagsCache
|
|
1699
1699
|
};
|
|
1700
1700
|
},
|
|
1701
1701
|
getters: {
|
|
@@ -1705,13 +1705,13 @@ const Qe = z("udp-multiTags", {
|
|
|
1705
1705
|
},
|
|
1706
1706
|
actions: {
|
|
1707
1707
|
multiTagsCacheChange(e) {
|
|
1708
|
-
this.multiTagsCache = e, e ?
|
|
1708
|
+
this.multiTagsCache = e, e ? h.setItem(`${b()}tags`, this.multiTags) : h.removeItem(`${b()}tags`);
|
|
1709
1709
|
},
|
|
1710
1710
|
tagsCache(e) {
|
|
1711
|
-
this.getMultiTagsCache &&
|
|
1711
|
+
this.getMultiTagsCache && h.setItem(`${b()}tags`, e);
|
|
1712
1712
|
},
|
|
1713
1713
|
handleTags(e, t, o) {
|
|
1714
|
-
var n, a, r,
|
|
1714
|
+
var n, a, r, i, u, d;
|
|
1715
1715
|
switch (e) {
|
|
1716
1716
|
case "equal":
|
|
1717
1717
|
this.multiTags = t, this.tagsCache(this.multiTags);
|
|
@@ -1719,13 +1719,13 @@ const Qe = z("udp-multiTags", {
|
|
|
1719
1719
|
case "push":
|
|
1720
1720
|
{
|
|
1721
1721
|
const s = t;
|
|
1722
|
-
if ((n = s == null ? void 0 : s.meta) != null && n.hiddenTag ||
|
|
1723
|
-
const m = s.path
|
|
1724
|
-
if (
|
|
1725
|
-
const
|
|
1726
|
-
if (
|
|
1727
|
-
const
|
|
1728
|
-
|
|
1722
|
+
if ((n = s == null ? void 0 : s.meta) != null && n.hiddenTag || _e(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 || yt((i = s == null ? void 0 : s.meta) == null ? void 0 : i.showLink) && !((u = s == null ? void 0 : s.meta) != null && u.showLink)) return;
|
|
1723
|
+
const m = s.path;
|
|
1724
|
+
if (this.multiTags.some((p) => p.path === m && be(p == null ? void 0 : p.query, s == null ? void 0 : s.query) && be(p == null ? void 0 : p.params, s == null ? void 0 : s.params))) return;
|
|
1725
|
+
const E = ((d = s == null ? void 0 : s.meta) == null ? void 0 : d.dynamicLevel) ?? -1;
|
|
1726
|
+
if (E > 0 && this.multiTags.filter((p) => (p == null ? void 0 : p.path) === m).length >= E) {
|
|
1727
|
+
const p = this.multiTags.findIndex((C) => (C == null ? void 0 : C.path) === m);
|
|
1728
|
+
p !== -1 && this.multiTags.splice(p, 1);
|
|
1729
1729
|
}
|
|
1730
1730
|
this.multiTags.push(t), this.tagsCache(this.multiTags);
|
|
1731
1731
|
}
|
|
@@ -1745,10 +1745,10 @@ const Qe = z("udp-multiTags", {
|
|
|
1745
1745
|
}
|
|
1746
1746
|
}
|
|
1747
1747
|
});
|
|
1748
|
-
function
|
|
1749
|
-
return
|
|
1748
|
+
function x() {
|
|
1749
|
+
return Xe(j);
|
|
1750
1750
|
}
|
|
1751
|
-
const go = () => import("./layoutView-
|
|
1751
|
+
const go = () => import("./layoutView-wsLHrEeX.js"), yo = {
|
|
1752
1752
|
path: "/",
|
|
1753
1753
|
name: "home",
|
|
1754
1754
|
component: go,
|
|
@@ -1762,14 +1762,14 @@ const go = () => import("./layoutView-CoEp2afn.js"), yo = {
|
|
|
1762
1762
|
{
|
|
1763
1763
|
path: "/welcome",
|
|
1764
1764
|
name: "SuHome",
|
|
1765
|
-
component: () => import("./su-welcome-
|
|
1765
|
+
component: () => import("./su-welcome-BjxeEKSo.js"),
|
|
1766
1766
|
meta: {
|
|
1767
1767
|
title: "message.udp.home",
|
|
1768
1768
|
keepAlive: !0
|
|
1769
1769
|
}
|
|
1770
1770
|
}
|
|
1771
1771
|
]
|
|
1772
|
-
}, wo = () => import("./layoutView-
|
|
1772
|
+
}, wo = () => import("./layoutView-wsLHrEeX.js"), bo = {
|
|
1773
1773
|
path: "/error",
|
|
1774
1774
|
name: "error",
|
|
1775
1775
|
component: wo,
|
|
@@ -1784,17 +1784,17 @@ const go = () => import("./layoutView-CoEp2afn.js"), yo = {
|
|
|
1784
1784
|
{
|
|
1785
1785
|
path: "/error/403",
|
|
1786
1786
|
name: "403",
|
|
1787
|
-
component: () => import("./403-
|
|
1787
|
+
component: () => import("./403-C3cfjZIT.js"),
|
|
1788
1788
|
meta: {
|
|
1789
1789
|
title: "message.udp.fourZeroThree"
|
|
1790
1790
|
}
|
|
1791
1791
|
}
|
|
1792
1792
|
]
|
|
1793
|
-
}, Co = () => import("./layoutView-
|
|
1793
|
+
}, Co = () => import("./layoutView-wsLHrEeX.js"), _ = [
|
|
1794
1794
|
{
|
|
1795
1795
|
path: "/login",
|
|
1796
1796
|
name: "login",
|
|
1797
|
-
component: () => import("./login-
|
|
1797
|
+
component: () => import("./login-CluzzdqH.js"),
|
|
1798
1798
|
meta: {
|
|
1799
1799
|
title: "message.udp.login",
|
|
1800
1800
|
showLink: !1
|
|
@@ -1803,7 +1803,7 @@ const go = () => import("./layoutView-CoEp2afn.js"), yo = {
|
|
|
1803
1803
|
{
|
|
1804
1804
|
path: "/error/404",
|
|
1805
1805
|
name: "404",
|
|
1806
|
-
component: () => import("./404-
|
|
1806
|
+
component: () => import("./404-Bg3j7QIo.js"),
|
|
1807
1807
|
meta: {
|
|
1808
1808
|
title: "message.udp.fourZeroFour",
|
|
1809
1809
|
showLink: !1
|
|
@@ -1812,7 +1812,7 @@ const go = () => import("./layoutView-CoEp2afn.js"), yo = {
|
|
|
1812
1812
|
{
|
|
1813
1813
|
path: "/error/500",
|
|
1814
1814
|
name: "500",
|
|
1815
|
-
component: () => import("./500-
|
|
1815
|
+
component: () => import("./500-CMT7Zyy7.js"),
|
|
1816
1816
|
meta: {
|
|
1817
1817
|
title: "message.udp.five",
|
|
1818
1818
|
showLink: !1
|
|
@@ -1838,117 +1838,159 @@ const go = () => import("./layoutView-CoEp2afn.js"), yo = {
|
|
|
1838
1838
|
]
|
|
1839
1839
|
}
|
|
1840
1840
|
], vo = /* @__PURE__ */ Object.assign({
|
|
1841
|
-
"../views/organization/company/Company.vue": () => import("./Company-
|
|
1842
|
-
"../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-
|
|
1843
|
-
"../views/organization/department/Department.vue": () => import("./Department-
|
|
1844
|
-
"../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-
|
|
1845
|
-
"../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-
|
|
1846
|
-
"../views/organization/org/Org.vue": () => import("./Org-
|
|
1847
|
-
"../views/organization/staff/Staff.vue": () => import("./Staff-
|
|
1848
|
-
"../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-
|
|
1849
|
-
"../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-
|
|
1850
|
-
"../views/system/cron/cron-task.vue": () => import("./cron-task-
|
|
1841
|
+
"../views/organization/company/Company.vue": () => import("./Company-qTguidK8.js"),
|
|
1842
|
+
"../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-BBC-o-k3.js"),
|
|
1843
|
+
"../views/organization/department/Department.vue": () => import("./Department-C3mKZOnK.js"),
|
|
1844
|
+
"../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-CNdpOHBT.js"),
|
|
1845
|
+
"../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-RE7s3vBq.js"),
|
|
1846
|
+
"../views/organization/org/Org.vue": () => import("./Org-wXDGvTrS.js"),
|
|
1847
|
+
"../views/organization/staff/Staff.vue": () => import("./Staff-BfDc61QS.js"),
|
|
1848
|
+
"../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-BaJFo4mg.js"),
|
|
1849
|
+
"../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-B6I2ZS6A.js"),
|
|
1850
|
+
"../views/system/cron/cron-task.vue": () => import("./cron-task-Dg9DJXvv.js"),
|
|
1851
1851
|
"../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-BeBNiwqc.js"),
|
|
1852
|
-
"../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-
|
|
1853
|
-
"../views/system/menu/menuInfo.vue": () => import("./menuInfo-
|
|
1854
|
-
"../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-
|
|
1855
|
-
"../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-
|
|
1856
|
-
"../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-
|
|
1857
|
-
"../views/system/role/Role.vue": () => import("./Role-
|
|
1858
|
-
"../views/system/role/RolePanel.vue": () => import("./RolePanel-
|
|
1859
|
-
"../views/system/role/UserInfo.vue": () => import("./UserInfo-
|
|
1860
|
-
"../views/system/sys/sys-config.vue": () => import("./sys-config-
|
|
1861
|
-
"../views/system/sysUser/SysUser.vue": () => import("./SysUser-
|
|
1862
|
-
"../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-
|
|
1863
|
-
"../views/uapp/pda/pda-app.vue": () => import("./pda-app-
|
|
1864
|
-
"../views/udev/coderule/code-rule.vue": () => import("./code-rule-
|
|
1865
|
-
"../views/udev/dict/DictView.vue": () => import("./DictView-
|
|
1866
|
-
"../views/udev/dict/childView.vue": () => import("./childView-
|
|
1867
|
-
"../views/udev/lov/childView.vue": () => import("./childView-
|
|
1868
|
-
"../views/udev/lov/lov-view.vue": () => import("./lov-view-
|
|
1852
|
+
"../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-CyPG23uP.js"),
|
|
1853
|
+
"../views/system/menu/menuInfo.vue": () => import("./menuInfo-B8RLelIC.js"),
|
|
1854
|
+
"../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-C9wm4zq4.js"),
|
|
1855
|
+
"../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-DWM9mfNs.js"),
|
|
1856
|
+
"../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-B1mvqs4x.js"),
|
|
1857
|
+
"../views/system/role/Role.vue": () => import("./Role-B_NsHIyE.js"),
|
|
1858
|
+
"../views/system/role/RolePanel.vue": () => import("./RolePanel-BlHidBR0.js"),
|
|
1859
|
+
"../views/system/role/UserInfo.vue": () => import("./UserInfo-BkoGt4ib.js"),
|
|
1860
|
+
"../views/system/sys/sys-config.vue": () => import("./sys-config-sbeLk9bP.js"),
|
|
1861
|
+
"../views/system/sysUser/SysUser.vue": () => import("./SysUser-B_r9LYc5.js"),
|
|
1862
|
+
"../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-C4ajcHPV.js"),
|
|
1863
|
+
"../views/uapp/pda/pda-app.vue": () => import("./pda-app-D3LNmD9a.js"),
|
|
1864
|
+
"../views/udev/coderule/code-rule.vue": () => import("./code-rule-C7jI_1gJ.js"),
|
|
1865
|
+
"../views/udev/dict/DictView.vue": () => import("./DictView-CgdVkSiP.js"),
|
|
1866
|
+
"../views/udev/dict/childView.vue": () => import("./childView-Dh0NyiQe.js"),
|
|
1867
|
+
"../views/udev/lov/childView.vue": () => import("./childView-9vEO8ymO.js"),
|
|
1868
|
+
"../views/udev/lov/lov-view.vue": () => import("./lov-view-BvQCvwbW.js"),
|
|
1869
1869
|
"../views/upms/interface/log-in.vue": () => import("./log-in-e7D5Ss1P.js"),
|
|
1870
1870
|
"../views/upms/interface/log-out.vue": () => import("./log-out-D1b4VRMZ.js"),
|
|
1871
1871
|
"../views/upms/user/login-log.vue": () => import("./login-log-kqKzKTto.js"),
|
|
1872
1872
|
"../views/urpt/dataSet/DataSet.vue": () => import("./DataSet-DT-rGICv.js"),
|
|
1873
|
-
"../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-
|
|
1874
|
-
"../views/urpt/design/Preview.vue": () => import("./Preview-
|
|
1875
|
-
"../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-
|
|
1876
|
-
"../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-
|
|
1877
|
-
"../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-
|
|
1878
|
-
"../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-
|
|
1879
|
-
"../views/urpt/static-resource/resource.vue": () => import("./resource-
|
|
1880
|
-
"../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-
|
|
1881
|
-
}),
|
|
1882
|
-
|
|
1883
|
-
), To =
|
|
1884
|
-
function
|
|
1885
|
-
|
|
1873
|
+
"../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-D9jrRCoG.js"),
|
|
1874
|
+
"../views/urpt/design/Preview.vue": () => import("./Preview-Pvt1__BV.js"),
|
|
1875
|
+
"../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-jOSuEFH9.js"),
|
|
1876
|
+
"../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-DxEmmGiN.js"),
|
|
1877
|
+
"../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-CFlxfS5M.js"),
|
|
1878
|
+
"../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-xEQsgFyv.js"),
|
|
1879
|
+
"../views/urpt/static-resource/resource.vue": () => import("./resource-D8JA_03-.js"),
|
|
1880
|
+
"../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-Dtz3aet7.js")
|
|
1881
|
+
}), Jn = _, ce = [yo, bo], Yn = Qe(
|
|
1882
|
+
Z(le(H(ce)))
|
|
1883
|
+
), To = H(ce).concat(..._), Qn = Object.keys(_).map((e) => _[e].path), Eo = /* @__PURE__ */ new Set();
|
|
1884
|
+
function So() {
|
|
1885
|
+
Eo.clear();
|
|
1886
|
+
}
|
|
1887
|
+
function Do() {
|
|
1888
|
+
g.getRoutes().forEach((e) => {
|
|
1886
1889
|
const { name: t, meta: o } = e;
|
|
1887
|
-
t &&
|
|
1888
|
-
}),
|
|
1890
|
+
t && g.hasRoute(t) && (o != null && o.backstage) && (g.removeRoute(t), g.options.routes = Qe(Z(le(H(ce)))));
|
|
1891
|
+
}), T().clearAllCachePage(), So();
|
|
1889
1892
|
}
|
|
1890
|
-
let
|
|
1891
|
-
function
|
|
1892
|
-
|
|
1893
|
+
let re = null, g = null;
|
|
1894
|
+
function ko(e, t) {
|
|
1895
|
+
re = e, g = t, Object.assign(re, vo);
|
|
1893
1896
|
}
|
|
1894
|
-
function
|
|
1895
|
-
return
|
|
1897
|
+
function Fo() {
|
|
1898
|
+
return re;
|
|
1896
1899
|
}
|
|
1897
|
-
const
|
|
1898
|
-
var
|
|
1899
|
-
const n =
|
|
1900
|
+
const xo = ["/login"], Zn = (e, t, o) => {
|
|
1901
|
+
var i, u, d;
|
|
1902
|
+
const n = U.get(He), a = _e(e == null ? void 0 : e.name);
|
|
1900
1903
|
function r() {
|
|
1901
|
-
|
|
1904
|
+
xo.includes(e.fullPath) ? o(t.fullPath) : o();
|
|
1902
1905
|
}
|
|
1903
1906
|
if (t != null && t.name && (t == null ? void 0 : t.name) !== "login") {
|
|
1904
|
-
const s = (
|
|
1905
|
-
a ? (
|
|
1907
|
+
const s = (i = e.matched.find((m) => m.path === e.path || m.name === e.name && e.params)) == null ? void 0 : i.components;
|
|
1908
|
+
a ? (dt(e == null ? void 0 : e.name), (u = mt) == null || u.done()) : s != null && s.default || e.name === "redirect" ? r() : o({ path: "/error/404" });
|
|
1906
1909
|
} else
|
|
1907
|
-
|
|
1910
|
+
T().wholeMenus.length === 0 && po(n).then((s) => {
|
|
1908
1911
|
var m;
|
|
1909
|
-
if (!
|
|
1910
|
-
const { path:
|
|
1911
|
-
if (
|
|
1912
|
-
const { path:
|
|
1913
|
-
|
|
1912
|
+
if (!x().getMultiTagsCache) {
|
|
1913
|
+
const { path: f } = e, p = wt(_, (c) => c.path === f) === -1 ? s.options.routes[0].children : s.options.routes, C = Ye(f, p);
|
|
1914
|
+
if (C && ((m = C.meta) != null && m.title)) {
|
|
1915
|
+
const { path: c, name: l, meta: w } = C;
|
|
1916
|
+
x().handleTags("push", { path: c, name: l, meta: w });
|
|
1914
1917
|
}
|
|
1915
1918
|
}
|
|
1916
|
-
|
|
1919
|
+
bt(e.name) && s.push(e.fullPath);
|
|
1917
1920
|
}), 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();
|
|
1918
1921
|
};
|
|
1919
|
-
|
|
1920
|
-
|
|
1922
|
+
pt(Ve, { serviceApi: Q(), i18n: Ke });
|
|
1923
|
+
Mo();
|
|
1924
|
+
const Io = {
|
|
1921
1925
|
// 对组件内置的提示语进行国际化翻译
|
|
1922
1926
|
// @ts-ignore
|
|
1923
|
-
i18n: (e, t) =>
|
|
1927
|
+
i18n: (e, t) => W().global.t(e, t),
|
|
1924
1928
|
// 可选,对参数中的列头、校验提示..等进行自动翻译(只对支持国际化的有效)
|
|
1925
1929
|
translate(e) {
|
|
1926
|
-
return e && ["message.", "el."].findIndex((o) => e.includes(o)) !== -1 ?
|
|
1930
|
+
return e && ["message.", "el."].findIndex((o) => e.includes(o)) !== -1 ? W().global.t.call(W().global.locale, e) : e;
|
|
1927
1931
|
}
|
|
1928
1932
|
};
|
|
1929
|
-
function
|
|
1930
|
-
|
|
1933
|
+
function Po(e = {}) {
|
|
1934
|
+
Ve.setConfig(ue(Io, e)), k.interceptor.add("event.clearEdit", {
|
|
1931
1935
|
tableInterceptorMethod(t) {
|
|
1932
1936
|
const { $event: o } = t;
|
|
1933
1937
|
if (o.target.className.indexOf("vxe-table--ignore-clear") > -1) return !1;
|
|
1934
1938
|
}
|
|
1935
1939
|
});
|
|
1936
1940
|
}
|
|
1937
|
-
function
|
|
1938
|
-
|
|
1941
|
+
function No(e) {
|
|
1942
|
+
k.setTheme(e);
|
|
1943
|
+
}
|
|
1944
|
+
function Mo() {
|
|
1945
|
+
k.commands.add("utTodyay", {
|
|
1946
|
+
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1947
|
+
const t = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
1948
|
+
e.setModelValue(t, o);
|
|
1949
|
+
}
|
|
1950
|
+
}), k.commands.add("utYesterDay", {
|
|
1951
|
+
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1952
|
+
const t = v(R(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 00:00:00"), o = v(R(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 23:59:59");
|
|
1953
|
+
e.setModelValue(t, o);
|
|
1954
|
+
}
|
|
1955
|
+
}), k.commands.add("utRecentWeek", {
|
|
1956
|
+
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1957
|
+
const t = v(R(/* @__PURE__ */ new Date(), -7), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
1958
|
+
e.setModelValue(t, o);
|
|
1959
|
+
}
|
|
1960
|
+
}), k.commands.add("utRecentMonth", {
|
|
1961
|
+
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1962
|
+
const t = v(R(/* @__PURE__ */ new Date(), -30), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
1963
|
+
e.setModelValue(t, o);
|
|
1964
|
+
}
|
|
1965
|
+
}), k.commands.add("utRecentThreeMonth", {
|
|
1966
|
+
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1967
|
+
const t = v(R(/* @__PURE__ */ new Date(), -90), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
1968
|
+
e.setModelValue(t, o);
|
|
1969
|
+
}
|
|
1970
|
+
}), k.commands.add("utRecentHalfYear", {
|
|
1971
|
+
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1972
|
+
const t = v(R(/* @__PURE__ */ new Date(), -180), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
1973
|
+
e.setModelValue(t, o);
|
|
1974
|
+
}
|
|
1975
|
+
}), k.commands.add("utRecentYear", {
|
|
1976
|
+
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1977
|
+
const t = v(R(/* @__PURE__ */ new Date(), -365), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
1978
|
+
e.setModelValue(t, o);
|
|
1979
|
+
}
|
|
1980
|
+
});
|
|
1939
1981
|
}
|
|
1940
|
-
var
|
|
1941
|
-
for (var o in t)
|
|
1942
|
-
},
|
|
1943
|
-
if (t && typeof t == "object" || typeof t == "function") for (let a of
|
|
1982
|
+
var de = Object.defineProperty, Oo = Object.getOwnPropertyDescriptor, Ro = Object.getOwnPropertyNames, Lo = Object.prototype.hasOwnProperty, Ao = (e, t, o) => t in e ? de(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Bo = (e, t) => {
|
|
1983
|
+
for (var o in t) de(e, o, { get: t[o], enumerable: !0 });
|
|
1984
|
+
}, jo = (e, t, o, n) => {
|
|
1985
|
+
if (t && typeof t == "object" || typeof t == "function") for (let a of Ro(t)) !Lo.call(e, a) && a !== o && de(e, a, { get: () => t[a], enumerable: !(n = Oo(t, a)) || n.enumerable });
|
|
1944
1986
|
return e;
|
|
1945
|
-
},
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
var
|
|
1987
|
+
}, Uo = (e, t, o) => (jo(e, t, "default"), o), xe = (e, t, o) => (Ao(e, typeof t != "symbol" ? t + "" : t, o), o), me = {};
|
|
1988
|
+
Bo(me, { Vue: () => je });
|
|
1989
|
+
Uo(me, je);
|
|
1990
|
+
var J = class {
|
|
1949
1991
|
static install(e, t) {
|
|
1950
1992
|
let { nameSpace: o = this._nameSpace, memory: n } = t;
|
|
1951
|
-
return n && this.clearAll(o, n), new
|
|
1993
|
+
return n && this.clearAll(o, n), new J(e, t);
|
|
1952
1994
|
}
|
|
1953
1995
|
static clearAll(e, t) {
|
|
1954
1996
|
Object.keys(t).forEach((o) => {
|
|
@@ -1966,25 +2008,25 @@ var W = class {
|
|
|
1966
2008
|
if (Object.prototype.hasOwnProperty.call(window.localStorage, this._getStaticKey(t, e))) return JSON.parse(window.localStorage.getItem(this._getStaticKey(t, e)));
|
|
1967
2009
|
}
|
|
1968
2010
|
constructor(e, t) {
|
|
1969
|
-
let o =
|
|
1970
|
-
Object.keys(
|
|
1971
|
-
let m =
|
|
1972
|
-
o.set(
|
|
2011
|
+
let o = J, { version: n = 3, nameSpace: a = o._nameSpace, memory: r } = t, i = (s) => a + s, u = n === 3 ? (0, me.reactive)(r) : r;
|
|
2012
|
+
Object.keys(u).length === 0 && console.warn("key cannot be empty"), Object.keys(u).forEach((s) => {
|
|
2013
|
+
let m = u[s];
|
|
2014
|
+
o.set(i(s), m), Reflect.defineProperty(u, s, { get: () => o.get(i(s)), set: (f) => o.set(i(s), f), configurable: !0 }), n === 2 && e.util.defineReactive(u, s, u[s]);
|
|
1973
2015
|
});
|
|
1974
2016
|
let d = n === 3 ? e.config.globalProperties : e.prototype;
|
|
1975
|
-
Reflect.defineProperty(d, "$storage", { get: () =>
|
|
2017
|
+
Reflect.defineProperty(d, "$storage", { get: () => u });
|
|
1976
2018
|
}
|
|
1977
|
-
},
|
|
1978
|
-
|
|
1979
|
-
const
|
|
1980
|
-
const o =
|
|
2019
|
+
}, M = J;
|
|
2020
|
+
xe(M, "_nameSpace", "rs-"), xe(M, "_getStaticKey", (e, t) => `${e ?? J._nameSpace}${t}`);
|
|
2021
|
+
const zo = (e, t) => {
|
|
2022
|
+
const o = b(), n = Object.assign(
|
|
1981
2023
|
{
|
|
1982
2024
|
// 国际化 默认中文zh
|
|
1983
|
-
locale:
|
|
2025
|
+
locale: M.getData("locale", o) ?? {
|
|
1984
2026
|
locale: t.Locale ?? "zh"
|
|
1985
2027
|
},
|
|
1986
2028
|
// layout模式以及主题
|
|
1987
|
-
layout:
|
|
2029
|
+
layout: M.getData("layout", o) ?? {
|
|
1988
2030
|
layout: t.Layout ?? "vertical",
|
|
1989
2031
|
theme: t.Theme ?? "default",
|
|
1990
2032
|
darkMode: t.DarkMode ?? !1,
|
|
@@ -1995,7 +2037,7 @@ const Bo = (e, t) => {
|
|
|
1995
2037
|
overallStyle: t.OverallStyle ?? "light"
|
|
1996
2038
|
// 整体风格(浅色:light、深色:dark、自动:system)
|
|
1997
2039
|
},
|
|
1998
|
-
configure:
|
|
2040
|
+
configure: M.getData("configure", o) ?? {
|
|
1999
2041
|
grey: t.Grey ?? !1,
|
|
2000
2042
|
weak: t.Weak ?? !1,
|
|
2001
2043
|
hideTabs: t.HideTabs ?? !1,
|
|
@@ -2003,116 +2045,116 @@ const Bo = (e, t) => {
|
|
|
2003
2045
|
showModel: t.ShowModel ?? "smart",
|
|
2004
2046
|
multiTagsCache: t.MultiTagsCache ?? !1
|
|
2005
2047
|
},
|
|
2006
|
-
cnd:
|
|
2048
|
+
cnd: M.getData("cnd", o) ?? {}
|
|
2007
2049
|
},
|
|
2008
2050
|
t.MultiTagsCache ? {
|
|
2009
2051
|
// 默认显示首页tag
|
|
2010
|
-
tags:
|
|
2052
|
+
tags: M.getData("tags", o) ?? V
|
|
2011
2053
|
} : {}
|
|
2012
2054
|
);
|
|
2013
|
-
e.use(
|
|
2014
|
-
},
|
|
2055
|
+
e.use(M, { nameSpace: o, memory: n });
|
|
2056
|
+
}, _o = (e) => {
|
|
2015
2057
|
var a;
|
|
2016
2058
|
if (!e) return !0;
|
|
2017
|
-
const t = (a =
|
|
2059
|
+
const t = (a = g.currentRoute.value.meta) == null ? void 0 : a.permissionCode;
|
|
2018
2060
|
if (!t) return !0;
|
|
2019
|
-
|
|
2020
|
-
const o =
|
|
2061
|
+
Ct(e) || (e = [e]);
|
|
2062
|
+
const o = T().getButtonAuth;
|
|
2021
2063
|
if (!o) return !0;
|
|
2022
2064
|
let n = !1;
|
|
2023
2065
|
return e.forEach((r) => {
|
|
2024
2066
|
if (!n) {
|
|
2025
|
-
const
|
|
2026
|
-
n = o.includes(
|
|
2067
|
+
const i = `${t}.${r}`;
|
|
2068
|
+
n = o.includes(i);
|
|
2027
2069
|
}
|
|
2028
2070
|
}), n;
|
|
2029
|
-
},
|
|
2071
|
+
}, et = Object.freeze(
|
|
2030
2072
|
{
|
|
2031
2073
|
left: 0,
|
|
2032
2074
|
top: 0,
|
|
2033
2075
|
width: 16,
|
|
2034
2076
|
height: 16
|
|
2035
2077
|
}
|
|
2036
|
-
),
|
|
2078
|
+
), Y = Object.freeze({
|
|
2037
2079
|
rotate: 0,
|
|
2038
2080
|
vFlip: !1,
|
|
2039
2081
|
hFlip: !1
|
|
2040
|
-
}),
|
|
2041
|
-
...
|
|
2042
|
-
...
|
|
2043
|
-
}),
|
|
2044
|
-
...
|
|
2082
|
+
}), pe = Object.freeze({
|
|
2083
|
+
...et,
|
|
2084
|
+
...Y
|
|
2085
|
+
}), se = Object.freeze({
|
|
2086
|
+
...pe,
|
|
2045
2087
|
body: "",
|
|
2046
2088
|
hidden: !1
|
|
2047
2089
|
});
|
|
2048
|
-
function
|
|
2090
|
+
function qo(e, t) {
|
|
2049
2091
|
const o = {};
|
|
2050
2092
|
!e.hFlip != !t.hFlip && (o.hFlip = !0), !e.vFlip != !t.vFlip && (o.vFlip = !0);
|
|
2051
2093
|
const n = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
2052
2094
|
return n && (o.rotate = n), o;
|
|
2053
2095
|
}
|
|
2054
|
-
function
|
|
2055
|
-
const o =
|
|
2056
|
-
for (const n in
|
|
2057
|
-
n in
|
|
2096
|
+
function Ie(e, t) {
|
|
2097
|
+
const o = qo(e, t);
|
|
2098
|
+
for (const n in se)
|
|
2099
|
+
n in Y ? n in e && !(n in o) && (o[n] = Y[n]) : n in t ? o[n] = t[n] : n in e && (o[n] = e[n]);
|
|
2058
2100
|
return o;
|
|
2059
2101
|
}
|
|
2060
|
-
function
|
|
2102
|
+
function Vo(e, t) {
|
|
2061
2103
|
const o = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null);
|
|
2062
|
-
function r(
|
|
2063
|
-
if (o[
|
|
2064
|
-
return a[
|
|
2065
|
-
if (!(
|
|
2066
|
-
a[
|
|
2067
|
-
const
|
|
2068
|
-
d && (a[
|
|
2104
|
+
function r(i) {
|
|
2105
|
+
if (o[i])
|
|
2106
|
+
return a[i] = [];
|
|
2107
|
+
if (!(i in a)) {
|
|
2108
|
+
a[i] = null;
|
|
2109
|
+
const u = n[i] && n[i].parent, d = u && r(u);
|
|
2110
|
+
d && (a[i] = [u].concat(d));
|
|
2069
2111
|
}
|
|
2070
|
-
return a[
|
|
2112
|
+
return a[i];
|
|
2071
2113
|
}
|
|
2072
2114
|
return Object.keys(o).concat(Object.keys(n)).forEach(r), a;
|
|
2073
2115
|
}
|
|
2074
|
-
function
|
|
2116
|
+
function Ho(e, t, o) {
|
|
2075
2117
|
const n = e.icons, a = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
2076
2118
|
let r = {};
|
|
2077
|
-
function
|
|
2078
|
-
r =
|
|
2079
|
-
n[
|
|
2119
|
+
function i(u) {
|
|
2120
|
+
r = Ie(
|
|
2121
|
+
n[u] || a[u],
|
|
2080
2122
|
r
|
|
2081
2123
|
);
|
|
2082
2124
|
}
|
|
2083
|
-
return
|
|
2125
|
+
return i(t), o.forEach(i), Ie(e, r);
|
|
2084
2126
|
}
|
|
2085
|
-
function
|
|
2127
|
+
function $o(e, t) {
|
|
2086
2128
|
const o = [];
|
|
2087
2129
|
if (typeof e != "object" || typeof e.icons != "object")
|
|
2088
2130
|
return o;
|
|
2089
2131
|
e.not_found instanceof Array && e.not_found.forEach((a) => {
|
|
2090
2132
|
t(a, null), o.push(a);
|
|
2091
2133
|
});
|
|
2092
|
-
const n =
|
|
2134
|
+
const n = Vo(e);
|
|
2093
2135
|
for (const a in n) {
|
|
2094
2136
|
const r = n[a];
|
|
2095
|
-
r && (t(a,
|
|
2137
|
+
r && (t(a, Ho(e, a, r)), o.push(a));
|
|
2096
2138
|
}
|
|
2097
2139
|
return o;
|
|
2098
2140
|
}
|
|
2099
|
-
const
|
|
2141
|
+
const Wo = {
|
|
2100
2142
|
provider: "",
|
|
2101
2143
|
aliases: {},
|
|
2102
2144
|
not_found: {},
|
|
2103
|
-
...
|
|
2145
|
+
...et
|
|
2104
2146
|
};
|
|
2105
|
-
function
|
|
2147
|
+
function te(e, t) {
|
|
2106
2148
|
for (const o in t)
|
|
2107
2149
|
if (o in e && typeof e[o] != typeof t[o])
|
|
2108
2150
|
return !1;
|
|
2109
2151
|
return !0;
|
|
2110
2152
|
}
|
|
2111
|
-
function
|
|
2153
|
+
function Go(e) {
|
|
2112
2154
|
if (typeof e != "object" || e === null)
|
|
2113
2155
|
return null;
|
|
2114
2156
|
const t = e;
|
|
2115
|
-
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !
|
|
2157
|
+
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !te(e, Wo))
|
|
2116
2158
|
return null;
|
|
2117
2159
|
const o = t.icons;
|
|
2118
2160
|
for (const a in o) {
|
|
@@ -2121,51 +2163,51 @@ function $o(e) {
|
|
|
2121
2163
|
// Name cannot be empty
|
|
2122
2164
|
!a || // Must have body
|
|
2123
2165
|
typeof r.body != "string" || // Check other props
|
|
2124
|
-
!
|
|
2166
|
+
!te(
|
|
2125
2167
|
r,
|
|
2126
|
-
|
|
2168
|
+
se
|
|
2127
2169
|
)
|
|
2128
2170
|
)
|
|
2129
2171
|
return null;
|
|
2130
2172
|
}
|
|
2131
2173
|
const n = t.aliases || /* @__PURE__ */ Object.create(null);
|
|
2132
2174
|
for (const a in n) {
|
|
2133
|
-
const r = n[a],
|
|
2175
|
+
const r = n[a], i = r.parent;
|
|
2134
2176
|
if (
|
|
2135
2177
|
// Name cannot be empty
|
|
2136
2178
|
!a || // Parent must be set and point to existing icon
|
|
2137
|
-
typeof
|
|
2138
|
-
!
|
|
2179
|
+
typeof i != "string" || !o[i] && !n[i] || // Check other props
|
|
2180
|
+
!te(
|
|
2139
2181
|
r,
|
|
2140
|
-
|
|
2182
|
+
se
|
|
2141
2183
|
)
|
|
2142
2184
|
)
|
|
2143
2185
|
return null;
|
|
2144
2186
|
}
|
|
2145
2187
|
return t;
|
|
2146
2188
|
}
|
|
2147
|
-
const
|
|
2189
|
+
const tt = Object.freeze({
|
|
2148
2190
|
width: null,
|
|
2149
2191
|
height: null
|
|
2150
|
-
}),
|
|
2192
|
+
}), ot = Object.freeze({
|
|
2151
2193
|
// Dimensions
|
|
2152
|
-
...
|
|
2194
|
+
...tt,
|
|
2153
2195
|
// Transformations
|
|
2154
|
-
...
|
|
2196
|
+
...Y
|
|
2155
2197
|
});
|
|
2156
|
-
function
|
|
2198
|
+
function Ko(e, t) {
|
|
2157
2199
|
const o = {
|
|
2158
2200
|
...e
|
|
2159
2201
|
};
|
|
2160
2202
|
for (const n in t) {
|
|
2161
2203
|
const a = t[n], r = typeof a;
|
|
2162
|
-
n in
|
|
2204
|
+
n in tt ? (a === null || a && (r === "string" || r === "number")) && (o[n] = a) : r === typeof o[n] && (o[n] = n === "rotate" ? a % 4 : a);
|
|
2163
2205
|
}
|
|
2164
2206
|
return o;
|
|
2165
2207
|
}
|
|
2166
|
-
const
|
|
2167
|
-
function
|
|
2168
|
-
t.split(
|
|
2208
|
+
const Jo = /[\s,]+/;
|
|
2209
|
+
function Yo(e, t) {
|
|
2210
|
+
t.split(Jo).forEach((o) => {
|
|
2169
2211
|
switch (o.trim()) {
|
|
2170
2212
|
case "horizontal":
|
|
2171
2213
|
e.hFlip = !0;
|
|
@@ -2176,7 +2218,7 @@ function Go(e, t) {
|
|
|
2176
2218
|
}
|
|
2177
2219
|
});
|
|
2178
2220
|
}
|
|
2179
|
-
function
|
|
2221
|
+
function Qo(e, t = 0) {
|
|
2180
2222
|
const o = e.replace(/^-?[0-9.]*/, "");
|
|
2181
2223
|
function n(a) {
|
|
2182
2224
|
for (; a < 0; )
|
|
@@ -2202,61 +2244,61 @@ function Ko(e, t = 0) {
|
|
|
2202
2244
|
}
|
|
2203
2245
|
return t;
|
|
2204
2246
|
}
|
|
2205
|
-
const
|
|
2206
|
-
function
|
|
2247
|
+
const Zo = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Xo = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
2248
|
+
function Pe(e, t, o) {
|
|
2207
2249
|
if (t === 1)
|
|
2208
2250
|
return e;
|
|
2209
2251
|
if (o = o || 100, typeof e == "number")
|
|
2210
2252
|
return Math.ceil(e * t * o) / o;
|
|
2211
2253
|
if (typeof e != "string")
|
|
2212
2254
|
return e;
|
|
2213
|
-
const n = e.split(
|
|
2255
|
+
const n = e.split(Zo);
|
|
2214
2256
|
if (n === null || !n.length)
|
|
2215
2257
|
return e;
|
|
2216
2258
|
const a = [];
|
|
2217
|
-
let r = n.shift(),
|
|
2259
|
+
let r = n.shift(), i = Xo.test(r);
|
|
2218
2260
|
for (; ; ) {
|
|
2219
|
-
if (
|
|
2220
|
-
const
|
|
2221
|
-
isNaN(
|
|
2261
|
+
if (i) {
|
|
2262
|
+
const u = parseFloat(r);
|
|
2263
|
+
isNaN(u) ? a.push(r) : a.push(Math.ceil(u * t * o) / o);
|
|
2222
2264
|
} else
|
|
2223
2265
|
a.push(r);
|
|
2224
2266
|
if (r = n.shift(), r === void 0)
|
|
2225
2267
|
return a.join("");
|
|
2226
|
-
|
|
2268
|
+
i = !i;
|
|
2227
2269
|
}
|
|
2228
2270
|
}
|
|
2229
|
-
function
|
|
2271
|
+
function en(e, t = "defs") {
|
|
2230
2272
|
let o = "";
|
|
2231
2273
|
const n = e.indexOf("<" + t);
|
|
2232
2274
|
for (; n >= 0; ) {
|
|
2233
2275
|
const a = e.indexOf(">", n), r = e.indexOf("</" + t);
|
|
2234
2276
|
if (a === -1 || r === -1)
|
|
2235
2277
|
break;
|
|
2236
|
-
const
|
|
2237
|
-
if (
|
|
2278
|
+
const i = e.indexOf(">", r);
|
|
2279
|
+
if (i === -1)
|
|
2238
2280
|
break;
|
|
2239
|
-
o += e.slice(a + 1, r).trim(), e = e.slice(0, n).trim() + e.slice(
|
|
2281
|
+
o += e.slice(a + 1, r).trim(), e = e.slice(0, n).trim() + e.slice(i + 1);
|
|
2240
2282
|
}
|
|
2241
2283
|
return {
|
|
2242
2284
|
defs: o,
|
|
2243
2285
|
content: e
|
|
2244
2286
|
};
|
|
2245
2287
|
}
|
|
2246
|
-
function
|
|
2288
|
+
function tn(e, t) {
|
|
2247
2289
|
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
2248
2290
|
}
|
|
2249
|
-
function
|
|
2250
|
-
const n =
|
|
2251
|
-
return
|
|
2291
|
+
function on(e, t, o) {
|
|
2292
|
+
const n = en(e);
|
|
2293
|
+
return tn(n.defs, t + n.content + o);
|
|
2252
2294
|
}
|
|
2253
|
-
const
|
|
2254
|
-
function
|
|
2295
|
+
const nn = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
2296
|
+
function an(e, t) {
|
|
2255
2297
|
const o = {
|
|
2256
|
-
...
|
|
2298
|
+
...pe,
|
|
2257
2299
|
...e
|
|
2258
2300
|
}, n = {
|
|
2259
|
-
...
|
|
2301
|
+
...ot,
|
|
2260
2302
|
...t
|
|
2261
2303
|
}, a = {
|
|
2262
2304
|
left: o.left,
|
|
@@ -2265,129 +2307,129 @@ function tn(e, t) {
|
|
|
2265
2307
|
height: o.height
|
|
2266
2308
|
};
|
|
2267
2309
|
let r = o.body;
|
|
2268
|
-
[o, n].forEach((
|
|
2269
|
-
const
|
|
2270
|
-
let
|
|
2271
|
-
|
|
2310
|
+
[o, n].forEach((c) => {
|
|
2311
|
+
const l = [], w = c.hFlip, I = c.vFlip;
|
|
2312
|
+
let y = c.rotate;
|
|
2313
|
+
w ? I ? y += 2 : (l.push(
|
|
2272
2314
|
"translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
|
|
2273
|
-
),
|
|
2315
|
+
), l.push("scale(-1 1)"), a.top = a.left = 0) : I && (l.push(
|
|
2274
2316
|
"translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
|
|
2275
|
-
),
|
|
2276
|
-
let
|
|
2277
|
-
switch (
|
|
2317
|
+
), l.push("scale(1 -1)"), a.top = a.left = 0);
|
|
2318
|
+
let D;
|
|
2319
|
+
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
|
2278
2320
|
case 1:
|
|
2279
|
-
|
|
2280
|
-
"rotate(90 " +
|
|
2321
|
+
D = a.height / 2 + a.top, l.unshift(
|
|
2322
|
+
"rotate(90 " + D.toString() + " " + D.toString() + ")"
|
|
2281
2323
|
);
|
|
2282
2324
|
break;
|
|
2283
2325
|
case 2:
|
|
2284
|
-
|
|
2326
|
+
l.unshift(
|
|
2285
2327
|
"rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")"
|
|
2286
2328
|
);
|
|
2287
2329
|
break;
|
|
2288
2330
|
case 3:
|
|
2289
|
-
|
|
2290
|
-
"rotate(-90 " +
|
|
2331
|
+
D = a.width / 2 + a.left, l.unshift(
|
|
2332
|
+
"rotate(-90 " + D.toString() + " " + D.toString() + ")"
|
|
2291
2333
|
);
|
|
2292
2334
|
break;
|
|
2293
2335
|
}
|
|
2294
|
-
|
|
2336
|
+
y % 2 === 1 && (a.left !== a.top && (D = a.left, a.left = a.top, a.top = D), a.width !== a.height && (D = a.width, a.width = a.height, a.height = D)), l.length && (r = on(
|
|
2295
2337
|
r,
|
|
2296
|
-
'<g transform="' +
|
|
2338
|
+
'<g transform="' + l.join(" ") + '">',
|
|
2297
2339
|
"</g>"
|
|
2298
2340
|
));
|
|
2299
2341
|
});
|
|
2300
|
-
const
|
|
2301
|
-
let m,
|
|
2302
|
-
|
|
2303
|
-
const E = {},
|
|
2304
|
-
|
|
2342
|
+
const i = n.width, u = n.height, d = a.width, s = a.height;
|
|
2343
|
+
let m, f;
|
|
2344
|
+
i === null ? (f = u === null ? "1em" : u === "auto" ? s : u, m = Pe(f, d / s)) : (m = i === "auto" ? d : i, f = u === null ? Pe(m, s / d) : u === "auto" ? s : u);
|
|
2345
|
+
const E = {}, p = (c, l) => {
|
|
2346
|
+
nn(l) || (E[c] = l.toString());
|
|
2305
2347
|
};
|
|
2306
|
-
|
|
2307
|
-
const
|
|
2308
|
-
return E.viewBox =
|
|
2348
|
+
p("width", m), p("height", f);
|
|
2349
|
+
const C = [a.left, a.top, d, s];
|
|
2350
|
+
return E.viewBox = C.join(" "), {
|
|
2309
2351
|
attributes: E,
|
|
2310
|
-
viewBox:
|
|
2352
|
+
viewBox: C,
|
|
2311
2353
|
body: r
|
|
2312
2354
|
};
|
|
2313
2355
|
}
|
|
2314
|
-
const
|
|
2315
|
-
let
|
|
2316
|
-
function
|
|
2356
|
+
const rn = /\sid="(\S+)"/g, sn = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
2357
|
+
let ln = 0;
|
|
2358
|
+
function un(e, t = sn) {
|
|
2317
2359
|
const o = [];
|
|
2318
2360
|
let n;
|
|
2319
|
-
for (; n =
|
|
2361
|
+
for (; n = rn.exec(e); )
|
|
2320
2362
|
o.push(n[1]);
|
|
2321
2363
|
if (!o.length)
|
|
2322
2364
|
return e;
|
|
2323
2365
|
const a = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
2324
2366
|
return o.forEach((r) => {
|
|
2325
|
-
const
|
|
2367
|
+
const i = typeof t == "function" ? t(r) : t + (ln++).toString(), u = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2326
2368
|
e = e.replace(
|
|
2327
2369
|
// Allowed characters before id: [#;"]
|
|
2328
2370
|
// Allowed characters after id: [)"], .[a-z]
|
|
2329
|
-
new RegExp('([#;"])(' +
|
|
2330
|
-
"$1" +
|
|
2371
|
+
new RegExp('([#;"])(' + u + ')([")]|\\.[a-z])', "g"),
|
|
2372
|
+
"$1" + i + a + "$3"
|
|
2331
2373
|
);
|
|
2332
2374
|
}), e = e.replace(new RegExp(a, "g"), ""), e;
|
|
2333
2375
|
}
|
|
2334
|
-
function
|
|
2376
|
+
function cn(e, t) {
|
|
2335
2377
|
let o = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
2336
2378
|
for (const n in t)
|
|
2337
2379
|
o += " " + n + '="' + t[n] + '"';
|
|
2338
2380
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" + e + "</svg>";
|
|
2339
2381
|
}
|
|
2340
|
-
function
|
|
2382
|
+
function dn(e) {
|
|
2341
2383
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
2342
2384
|
}
|
|
2343
|
-
function
|
|
2344
|
-
return "data:image/svg+xml," +
|
|
2385
|
+
function mn(e) {
|
|
2386
|
+
return "data:image/svg+xml," + dn(e);
|
|
2345
2387
|
}
|
|
2346
|
-
function
|
|
2347
|
-
return 'url("' +
|
|
2388
|
+
function pn(e) {
|
|
2389
|
+
return 'url("' + mn(e) + '")';
|
|
2348
2390
|
}
|
|
2349
|
-
const
|
|
2350
|
-
...
|
|
2391
|
+
const Ne = {
|
|
2392
|
+
...ot,
|
|
2351
2393
|
inline: !1
|
|
2352
|
-
},
|
|
2394
|
+
}, hn = {
|
|
2353
2395
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2354
2396
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
2355
2397
|
"aria-hidden": !0,
|
|
2356
2398
|
role: "img"
|
|
2357
|
-
},
|
|
2399
|
+
}, fn = {
|
|
2358
2400
|
display: "inline-block"
|
|
2359
|
-
},
|
|
2401
|
+
}, ie = {
|
|
2360
2402
|
backgroundColor: "currentColor"
|
|
2361
|
-
},
|
|
2403
|
+
}, nt = {
|
|
2362
2404
|
backgroundColor: "transparent"
|
|
2363
|
-
},
|
|
2405
|
+
}, Me = {
|
|
2364
2406
|
Image: "var(--svg)",
|
|
2365
2407
|
Repeat: "no-repeat",
|
|
2366
2408
|
Size: "100% 100%"
|
|
2367
|
-
},
|
|
2368
|
-
webkitMask:
|
|
2369
|
-
mask:
|
|
2370
|
-
background:
|
|
2409
|
+
}, Oe = {
|
|
2410
|
+
webkitMask: ie,
|
|
2411
|
+
mask: ie,
|
|
2412
|
+
background: nt
|
|
2371
2413
|
};
|
|
2372
|
-
for (const e in
|
|
2373
|
-
const t =
|
|
2374
|
-
for (const o in
|
|
2375
|
-
t[e + o] =
|
|
2414
|
+
for (const e in Oe) {
|
|
2415
|
+
const t = Oe[e];
|
|
2416
|
+
for (const o in Me)
|
|
2417
|
+
t[e + o] = Me[o];
|
|
2376
2418
|
}
|
|
2377
|
-
const
|
|
2419
|
+
const K = {};
|
|
2378
2420
|
["horizontal", "vertical"].forEach((e) => {
|
|
2379
2421
|
const t = e.slice(0, 1) + "Flip";
|
|
2380
|
-
|
|
2422
|
+
K[e + "-flip"] = t, K[e.slice(0, 1) + "-flip"] = t, K[e + "Flip"] = t;
|
|
2381
2423
|
});
|
|
2382
|
-
function
|
|
2424
|
+
function Re(e) {
|
|
2383
2425
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
2384
2426
|
}
|
|
2385
|
-
const
|
|
2386
|
-
const o =
|
|
2387
|
-
for (let
|
|
2388
|
-
const
|
|
2389
|
-
if (
|
|
2390
|
-
switch (
|
|
2427
|
+
const gn = (e, t) => {
|
|
2428
|
+
const o = Ko(Ne, t), n = { ...hn }, a = t.mode || "svg", r = {}, i = t.style, u = typeof i == "object" && !(i instanceof Array) ? i : {};
|
|
2429
|
+
for (let c in t) {
|
|
2430
|
+
const l = t[c];
|
|
2431
|
+
if (l !== void 0)
|
|
2432
|
+
switch (c) {
|
|
2391
2433
|
// Properties to ignore
|
|
2392
2434
|
case "icon":
|
|
2393
2435
|
case "style":
|
|
@@ -2399,88 +2441,88 @@ const pn = (e, t) => {
|
|
|
2399
2441
|
case "inline":
|
|
2400
2442
|
case "hFlip":
|
|
2401
2443
|
case "vFlip":
|
|
2402
|
-
o[
|
|
2444
|
+
o[c] = l === !0 || l === "true" || l === 1;
|
|
2403
2445
|
break;
|
|
2404
2446
|
// Flip as string: 'horizontal,vertical'
|
|
2405
2447
|
case "flip":
|
|
2406
|
-
typeof
|
|
2448
|
+
typeof l == "string" && Yo(o, l);
|
|
2407
2449
|
break;
|
|
2408
2450
|
// Color: override style
|
|
2409
2451
|
case "color":
|
|
2410
|
-
r.color =
|
|
2452
|
+
r.color = l;
|
|
2411
2453
|
break;
|
|
2412
2454
|
// Rotation as string
|
|
2413
2455
|
case "rotate":
|
|
2414
|
-
typeof
|
|
2456
|
+
typeof l == "string" ? o[c] = Qo(l) : typeof l == "number" && (o[c] = l);
|
|
2415
2457
|
break;
|
|
2416
2458
|
// Remove aria-hidden
|
|
2417
2459
|
case "ariaHidden":
|
|
2418
2460
|
case "aria-hidden":
|
|
2419
|
-
|
|
2461
|
+
l !== !0 && l !== "true" && delete n["aria-hidden"];
|
|
2420
2462
|
break;
|
|
2421
2463
|
default: {
|
|
2422
|
-
const
|
|
2423
|
-
|
|
2464
|
+
const w = K[c];
|
|
2465
|
+
w ? (l === !0 || l === "true" || l === 1) && (o[w] = !0) : Ne[c] === void 0 && (n[c] = l);
|
|
2424
2466
|
}
|
|
2425
2467
|
}
|
|
2426
2468
|
}
|
|
2427
|
-
const d =
|
|
2469
|
+
const d = an(e, o), s = d.attributes;
|
|
2428
2470
|
if (o.inline && (r.verticalAlign = "-0.125em"), a === "svg") {
|
|
2429
2471
|
n.style = {
|
|
2430
2472
|
...r,
|
|
2431
|
-
...
|
|
2473
|
+
...u
|
|
2432
2474
|
}, Object.assign(n, s);
|
|
2433
|
-
let
|
|
2434
|
-
return typeof
|
|
2475
|
+
let c = 0, l = t.id;
|
|
2476
|
+
return typeof l == "string" && (l = l.replace(/-/g, "_")), n.innerHTML = un(d.body, l ? () => l + "ID" + c++ : "iconifyVue"), O("svg", n);
|
|
2435
2477
|
}
|
|
2436
|
-
const { body: m, width:
|
|
2478
|
+
const { body: m, width: f, height: E } = e, p = a === "mask" || (a === "bg" ? !1 : m.indexOf("currentColor") !== -1), C = cn(m, {
|
|
2437
2479
|
...s,
|
|
2438
|
-
width:
|
|
2480
|
+
width: f + "",
|
|
2439
2481
|
height: E + ""
|
|
2440
2482
|
});
|
|
2441
2483
|
return n.style = {
|
|
2442
2484
|
...r,
|
|
2443
|
-
"--svg":
|
|
2444
|
-
width:
|
|
2445
|
-
height:
|
|
2446
|
-
...
|
|
2447
|
-
...
|
|
2448
|
-
...
|
|
2449
|
-
},
|
|
2450
|
-
},
|
|
2451
|
-
function
|
|
2452
|
-
|
|
2485
|
+
"--svg": pn(C),
|
|
2486
|
+
width: Re(s.width),
|
|
2487
|
+
height: Re(s.height),
|
|
2488
|
+
...fn,
|
|
2489
|
+
...p ? ie : nt,
|
|
2490
|
+
...u
|
|
2491
|
+
}, O("span", n);
|
|
2492
|
+
}, he = /* @__PURE__ */ Object.create(null);
|
|
2493
|
+
function yn(e, t) {
|
|
2494
|
+
he[e] = t;
|
|
2453
2495
|
}
|
|
2454
|
-
function
|
|
2496
|
+
function Xn(e, t) {
|
|
2455
2497
|
const o = typeof e.prefix == "string" ? e.prefix + ":" : "";
|
|
2456
|
-
|
|
2457
|
-
a && (
|
|
2498
|
+
Go(e) && $o(e, (n, a) => {
|
|
2499
|
+
a && (he[o + n] = a);
|
|
2458
2500
|
});
|
|
2459
2501
|
}
|
|
2460
|
-
const
|
|
2502
|
+
const Le = B({
|
|
2461
2503
|
// Do not inherit other attributes: it is handled by render()
|
|
2462
2504
|
inheritAttrs: !1,
|
|
2463
2505
|
// Render icon
|
|
2464
2506
|
render() {
|
|
2465
|
-
const e = this.$attrs, t = e.icon, o = typeof t == "string" ?
|
|
2466
|
-
return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null :
|
|
2467
|
-
...
|
|
2507
|
+
const e = this.$attrs, t = e.icon, o = typeof t == "string" ? he[t] : typeof t == "object" ? t : null;
|
|
2508
|
+
return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null : gn({
|
|
2509
|
+
...pe,
|
|
2468
2510
|
...o
|
|
2469
2511
|
}, e);
|
|
2470
2512
|
}
|
|
2471
|
-
}),
|
|
2513
|
+
}), wn = B({
|
|
2472
2514
|
name: "IconOffline",
|
|
2473
|
-
components: { IconifyIcon:
|
|
2515
|
+
components: { IconifyIcon: Le },
|
|
2474
2516
|
props: {
|
|
2475
2517
|
icon: {
|
|
2476
2518
|
default: null
|
|
2477
2519
|
}
|
|
2478
2520
|
},
|
|
2479
2521
|
render() {
|
|
2480
|
-
typeof this.icon == "object" &&
|
|
2522
|
+
typeof this.icon == "object" && yn(this.icon, this.icon);
|
|
2481
2523
|
const e = this.$attrs;
|
|
2482
|
-
return
|
|
2483
|
-
|
|
2524
|
+
return O(
|
|
2525
|
+
Le,
|
|
2484
2526
|
{
|
|
2485
2527
|
icon: this.icon,
|
|
2486
2528
|
style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
|
|
@@ -2492,9 +2534,9 @@ const Re = L({
|
|
|
2492
2534
|
);
|
|
2493
2535
|
}
|
|
2494
2536
|
});
|
|
2495
|
-
|
|
2537
|
+
B({
|
|
2496
2538
|
name: "IconifyIconOnline",
|
|
2497
|
-
components: { IconifyIcon:
|
|
2539
|
+
components: { IconifyIcon: Ce },
|
|
2498
2540
|
props: {
|
|
2499
2541
|
icon: {
|
|
2500
2542
|
type: String,
|
|
@@ -2503,8 +2545,8 @@ L({
|
|
|
2503
2545
|
},
|
|
2504
2546
|
render() {
|
|
2505
2547
|
const e = this.$attrs;
|
|
2506
|
-
return
|
|
2507
|
-
|
|
2548
|
+
return O(
|
|
2549
|
+
Ce,
|
|
2508
2550
|
{
|
|
2509
2551
|
icon: `${this.icon}`,
|
|
2510
2552
|
style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
|
|
@@ -2516,7 +2558,7 @@ L({
|
|
|
2516
2558
|
);
|
|
2517
2559
|
}
|
|
2518
2560
|
});
|
|
2519
|
-
const
|
|
2561
|
+
const bn = B({
|
|
2520
2562
|
name: "FontIcon",
|
|
2521
2563
|
props: {
|
|
2522
2564
|
icon: {
|
|
@@ -2526,14 +2568,14 @@ const gn = L({
|
|
|
2526
2568
|
},
|
|
2527
2569
|
render() {
|
|
2528
2570
|
const e = this.$attrs;
|
|
2529
|
-
return Object.keys(e).includes("uni") || (e == null ? void 0 : e.iconType) === "uni" ?
|
|
2571
|
+
return Object.keys(e).includes("uni") || (e == null ? void 0 : e.iconType) === "uni" ? O(
|
|
2530
2572
|
"i",
|
|
2531
2573
|
{
|
|
2532
2574
|
class: "iconfont",
|
|
2533
2575
|
...e
|
|
2534
2576
|
},
|
|
2535
2577
|
this.icon
|
|
2536
|
-
) : Object.keys(e).includes("svg") || (e == null ? void 0 : e.iconType) === "svg" ?
|
|
2578
|
+
) : Object.keys(e).includes("svg") || (e == null ? void 0 : e.iconType) === "svg" ? O(
|
|
2537
2579
|
"svg",
|
|
2538
2580
|
{
|
|
2539
2581
|
class: "icon-svg",
|
|
@@ -2541,28 +2583,28 @@ const gn = L({
|
|
|
2541
2583
|
},
|
|
2542
2584
|
{
|
|
2543
2585
|
default: () => [
|
|
2544
|
-
|
|
2586
|
+
O("use", {
|
|
2545
2587
|
"xlink:href": `#${this.icon}`
|
|
2546
2588
|
})
|
|
2547
2589
|
]
|
|
2548
2590
|
}
|
|
2549
|
-
) :
|
|
2591
|
+
) : O("i", {
|
|
2550
2592
|
class: `iconfont ${this.icon}`,
|
|
2551
2593
|
...e
|
|
2552
2594
|
});
|
|
2553
2595
|
}
|
|
2554
|
-
}),
|
|
2596
|
+
}), Cn = wn, vn = bn, Tn = {
|
|
2555
2597
|
mounted(e, t) {
|
|
2556
2598
|
var n;
|
|
2557
2599
|
const { value: o } = t;
|
|
2558
2600
|
if (o) {
|
|
2559
|
-
const r = `${(n =
|
|
2560
|
-
|
|
2601
|
+
const r = `${(n = g.currentRoute.value.meta) == null ? void 0 : n.prefixAuth}.${o}`;
|
|
2602
|
+
T().getButtonAuth.includes(r) || e.parentNode.removeChild(e);
|
|
2561
2603
|
} else
|
|
2562
2604
|
throw new Error(`need roles! Like v-auth="['admin','test']"`);
|
|
2563
2605
|
}
|
|
2564
2606
|
};
|
|
2565
|
-
function
|
|
2607
|
+
function En(e) {
|
|
2566
2608
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, o) {
|
|
2567
2609
|
var n = e.get(t);
|
|
2568
2610
|
n ? n.push(o) : e.set(t, [o]);
|
|
@@ -2578,38 +2620,38 @@ function Cn(e) {
|
|
|
2578
2620
|
});
|
|
2579
2621
|
} };
|
|
2580
2622
|
}
|
|
2581
|
-
const
|
|
2623
|
+
const Sn = En(), Ae = St({
|
|
2582
2624
|
strategy: "scroll"
|
|
2583
|
-
}),
|
|
2625
|
+
}), Dn = {
|
|
2584
2626
|
mounted(e, t, o) {
|
|
2585
|
-
|
|
2627
|
+
Ae.listenTo(e, (n) => {
|
|
2586
2628
|
const a = n.offsetWidth, r = n.offsetHeight;
|
|
2587
|
-
t != null && t.instance ?
|
|
2629
|
+
t != null && t.instance ? Sn.emit("resize", { detail: { width: a, height: r } }) : o.el.dispatchEvent(new CustomEvent("resize", { detail: { width: a, height: r } }));
|
|
2588
2630
|
});
|
|
2589
2631
|
},
|
|
2590
2632
|
unmounted(e) {
|
|
2591
|
-
|
|
2633
|
+
Ae.uninstall(e);
|
|
2592
2634
|
}
|
|
2593
|
-
},
|
|
2635
|
+
}, Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2594
2636
|
__proto__: null,
|
|
2595
|
-
auth:
|
|
2596
|
-
resize:
|
|
2597
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2598
|
-
|
|
2637
|
+
auth: Tn,
|
|
2638
|
+
resize: Dn
|
|
2639
|
+
}, Symbol.toStringTag, { value: "Module" })), S = lt(zt);
|
|
2640
|
+
S.use(Et, {
|
|
2599
2641
|
defaultProps: { animation: "perspective" }
|
|
2600
2642
|
});
|
|
2601
|
-
const
|
|
2602
|
-
e.config.globalProperties.$hasAuthority =
|
|
2603
|
-
},
|
|
2604
|
-
Object.keys(
|
|
2605
|
-
e.directive(t,
|
|
2643
|
+
const kn = (e) => {
|
|
2644
|
+
e.config.globalProperties.$hasAuthority = _o, e.config.globalProperties.$serviceApi = Q(), e.config.globalProperties.$url = N(), window.$i18n = Ke;
|
|
2645
|
+
}, Fn = (e) => {
|
|
2646
|
+
Object.keys(Be).forEach((t) => {
|
|
2647
|
+
e.directive(t, Be[t]);
|
|
2606
2648
|
});
|
|
2607
|
-
},
|
|
2608
|
-
no(
|
|
2649
|
+
}, ea = ({ router: e, config: t, lang: o, views: n, env: a, tableConfig: r }) => (ko(n, e), S.use(e), Rt(e), Mt(S, t), Ot(a), Po(r), new Promise((i) => {
|
|
2650
|
+
no(S, o), S.component("IconifyIconOffline", Cn), S.component("FontIcon", vn), kn(S), Lt(N()), Fn(S), _t(S), zo(S, t), i({ app: S, router: e });
|
|
2609
2651
|
}));
|
|
2610
|
-
function
|
|
2611
|
-
const { $storage: e, $config: t } =
|
|
2612
|
-
|
|
2652
|
+
function xn() {
|
|
2653
|
+
const { $storage: e, $config: t } = qe(), o = () => {
|
|
2654
|
+
Xe().multiTagsCache && (!e.tags || e.tags.length === 0) && (e.tags = V), e != null && e.locale || (ze().locale.value = (t == null ? void 0 : t.Locale) ?? "zh"), e && !(e != null && e.layout) && (e.layout = {
|
|
2613
2655
|
layout: (t == null ? void 0 : t.Layout) ?? "vertical",
|
|
2614
2656
|
theme: (t == null ? void 0 : t.Theme) ?? "default",
|
|
2615
2657
|
darkMode: (t == null ? void 0 : t.DarkMode) ?? !1,
|
|
@@ -2624,25 +2666,25 @@ function kn() {
|
|
|
2624
2666
|
showModel: (t == null ? void 0 : t.ShowModel) ?? "smart",
|
|
2625
2667
|
multiTagsCache: (t == null ? void 0 : t.MultiTagsCache) ?? !1
|
|
2626
2668
|
});
|
|
2627
|
-
}, n =
|
|
2669
|
+
}, n = ye(() => e == null ? void 0 : e.layout.layout), a = ye(() => e == null ? void 0 : e.layout);
|
|
2628
2670
|
return {
|
|
2629
2671
|
layout: n,
|
|
2630
2672
|
layoutTheme: a,
|
|
2631
2673
|
initStorage: o
|
|
2632
2674
|
};
|
|
2633
2675
|
}
|
|
2634
|
-
const
|
|
2676
|
+
const In = q("udp-app", {
|
|
2635
2677
|
state: () => {
|
|
2636
2678
|
var e, t;
|
|
2637
2679
|
return {
|
|
2638
2680
|
sidebar: {
|
|
2639
|
-
opened: ((e =
|
|
2681
|
+
opened: ((e = h.getItem(`${b()}layout`)) == null ? void 0 : e.sidebarStatus) ?? F().SidebarStatus,
|
|
2640
2682
|
withoutAnimation: !1,
|
|
2641
2683
|
isClickCollapse: !1
|
|
2642
2684
|
},
|
|
2643
2685
|
// 这里的layout用于监听容器拖拉后恢复对应的导航模式
|
|
2644
|
-
layout: ((t =
|
|
2645
|
-
device:
|
|
2686
|
+
layout: ((t = h.getItem(`${b()}layout`)) == null ? void 0 : t.layout) ?? F().Layout,
|
|
2687
|
+
device: ht() ? "mobile" : "desktop"
|
|
2646
2688
|
};
|
|
2647
2689
|
},
|
|
2648
2690
|
getters: {
|
|
@@ -2655,8 +2697,8 @@ const Fn = z("udp-app", {
|
|
|
2655
2697
|
},
|
|
2656
2698
|
actions: {
|
|
2657
2699
|
TOGGLE_SIDEBAR(e, t) {
|
|
2658
|
-
const o =
|
|
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),
|
|
2700
|
+
const o = h.getItem(`${b()}layout`);
|
|
2701
|
+
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), h.setItem(`${b()}layout`, o));
|
|
2660
2702
|
},
|
|
2661
2703
|
async toggleSideBar(e, t) {
|
|
2662
2704
|
await this.TOGGLE_SIDEBAR(e, t);
|
|
@@ -2669,15 +2711,15 @@ const Fn = z("udp-app", {
|
|
|
2669
2711
|
}
|
|
2670
2712
|
}
|
|
2671
2713
|
});
|
|
2672
|
-
function
|
|
2673
|
-
return
|
|
2714
|
+
function Pn() {
|
|
2715
|
+
return In(j);
|
|
2674
2716
|
}
|
|
2675
|
-
const
|
|
2717
|
+
const Nn = q("udp-epTheme", {
|
|
2676
2718
|
state: () => {
|
|
2677
2719
|
var e, t;
|
|
2678
2720
|
return {
|
|
2679
|
-
epThemeColor: ((e =
|
|
2680
|
-
epTheme: ((t =
|
|
2721
|
+
epThemeColor: ((e = h.getItem(`${b()}-layout`)) == null ? void 0 : e.epThemeColor) ?? F().EpThemeColor,
|
|
2722
|
+
epTheme: ((t = h.getItem(`${b()}-layout`)) == null ? void 0 : t.theme) ?? F().Theme
|
|
2681
2723
|
};
|
|
2682
2724
|
},
|
|
2683
2725
|
getters: {
|
|
@@ -2691,17 +2733,17 @@ const xn = z("udp-epTheme", {
|
|
|
2691
2733
|
},
|
|
2692
2734
|
actions: {
|
|
2693
2735
|
setEpThemeColor(e) {
|
|
2694
|
-
const t =
|
|
2695
|
-
this.epTheme = t == null ? void 0 : t.theme, this.epThemeColor = e, t && (t.epThemeColor = e,
|
|
2736
|
+
const t = h.getItem(`${b()}layout`);
|
|
2737
|
+
this.epTheme = t == null ? void 0 : t.theme, this.epThemeColor = e, t && (t.epThemeColor = e, h.setItem(`${b()}layout`, t));
|
|
2696
2738
|
}
|
|
2697
2739
|
}
|
|
2698
2740
|
});
|
|
2699
|
-
function
|
|
2700
|
-
return
|
|
2741
|
+
function oe() {
|
|
2742
|
+
return Nn(j);
|
|
2701
2743
|
}
|
|
2702
|
-
function
|
|
2703
|
-
var
|
|
2704
|
-
const { layoutTheme: e, layout: t } =
|
|
2744
|
+
function ta() {
|
|
2745
|
+
var p, C;
|
|
2746
|
+
const { layoutTheme: e, layout: t } = xn(), o = X([
|
|
2705
2747
|
/* 道奇蓝(默认) */
|
|
2706
2748
|
{ color: "#1b2a47", themeColor: "default" },
|
|
2707
2749
|
/* 亮白色 */
|
|
@@ -2720,103 +2762,103 @@ function Xn() {
|
|
|
2720
2762
|
{ color: "#eb2f96", themeColor: "pink" },
|
|
2721
2763
|
/* 深紫罗兰色 */
|
|
2722
2764
|
{ color: "#722ed1", themeColor: "saucePurple" }
|
|
2723
|
-
]), { $storage: n } =
|
|
2724
|
-
function c
|
|
2725
|
-
const
|
|
2726
|
-
let { className:
|
|
2727
|
-
|
|
2765
|
+
]), { $storage: n } = qe(), a = X((p = n == null ? void 0 : n.layout) == null ? void 0 : p.darkMode), r = X((C = n == null ? void 0 : n.layout) == null ? void 0 : C.overallStyle), i = document.documentElement;
|
|
2766
|
+
function u(c, l, w) {
|
|
2767
|
+
const I = w || document.body;
|
|
2768
|
+
let { className: y } = I;
|
|
2769
|
+
y = y.replace(l, "").trim(), I.className = c ? `${y} ${l}` : y;
|
|
2728
2770
|
}
|
|
2729
|
-
function d(
|
|
2730
|
-
var
|
|
2731
|
-
if (e.value.theme =
|
|
2771
|
+
function d(c = F().Theme ?? "default") {
|
|
2772
|
+
var l, w;
|
|
2773
|
+
if (e.value.theme = c, document.documentElement.setAttribute("data-theme", c), document.documentElement.className = "", document.documentElement.classList.add(`layout-theme-${c}`), n.layout = {
|
|
2732
2774
|
layout: t.value,
|
|
2733
|
-
theme:
|
|
2775
|
+
theme: c,
|
|
2734
2776
|
darkMode: a.value,
|
|
2735
|
-
sidebarStatus: (
|
|
2736
|
-
epThemeColor: (
|
|
2777
|
+
sidebarStatus: (l = n.layout) == null ? void 0 : l.sidebarStatus,
|
|
2778
|
+
epThemeColor: (w = n.layout) == null ? void 0 : w.epThemeColor,
|
|
2737
2779
|
overallStyle: r.value
|
|
2738
|
-
},
|
|
2739
|
-
m(
|
|
2780
|
+
}, c === "default" || c === "light")
|
|
2781
|
+
m(F().EpThemeColor || "#409EFF");
|
|
2740
2782
|
else {
|
|
2741
|
-
const
|
|
2742
|
-
m(
|
|
2783
|
+
const I = o.value.find((y) => y.themeColor === c);
|
|
2784
|
+
m(I.color);
|
|
2743
2785
|
}
|
|
2744
2786
|
}
|
|
2745
|
-
function s(
|
|
2787
|
+
function s(c, l, w) {
|
|
2746
2788
|
document.documentElement.style.setProperty(
|
|
2747
|
-
`--el-color-primary-${
|
|
2748
|
-
a.value ?
|
|
2789
|
+
`--el-color-primary-${c}-${l}`,
|
|
2790
|
+
a.value ? Ht(w, l / 10) : $t(w, l / 10)
|
|
2749
2791
|
);
|
|
2750
2792
|
}
|
|
2751
|
-
const m = (
|
|
2752
|
-
|
|
2753
|
-
for (let
|
|
2754
|
-
s("dark",
|
|
2755
|
-
for (let
|
|
2756
|
-
s("light",
|
|
2793
|
+
const m = (c) => {
|
|
2794
|
+
oe().setEpThemeColor(c), document.documentElement.style.setProperty("--el-color-primary", c);
|
|
2795
|
+
for (let l = 1; l <= 2; l++)
|
|
2796
|
+
s("dark", l, c);
|
|
2797
|
+
for (let l = 1; l <= 9; l++)
|
|
2798
|
+
s("light", l, c);
|
|
2757
2799
|
};
|
|
2758
|
-
function
|
|
2759
|
-
r.value =
|
|
2800
|
+
function f(c) {
|
|
2801
|
+
r.value = c, oe().epTheme === "light" && a.value ? d("default") : d(oe().epTheme), No(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
2802
|
}
|
|
2761
2803
|
function E() {
|
|
2762
|
-
|
|
2763
|
-
const { Grey:
|
|
2764
|
-
|
|
2804
|
+
U.remove(Pt), U.remove(It), U.remove(He), h.clear(), ft.clear();
|
|
2805
|
+
const { Grey: c, Weak: l, MultiTagsCache: w, EpThemeColor: I, Layout: y } = F();
|
|
2806
|
+
Pn().setLayout(y), m(I), x().multiTagsCacheChange(w), u(c, "html-grey", document.querySelector("html")), u(l, "html-weakness", document.querySelector("html")), g.push("/login"), x().handleTags("equal", [...V]), Do();
|
|
2765
2807
|
}
|
|
2766
2808
|
return {
|
|
2767
|
-
body:
|
|
2809
|
+
body: i,
|
|
2768
2810
|
overallStyle: r,
|
|
2769
2811
|
dataTheme: a,
|
|
2770
2812
|
layoutTheme: e,
|
|
2771
2813
|
themeColors: o,
|
|
2772
2814
|
onReset: E,
|
|
2773
|
-
toggleClass:
|
|
2774
|
-
dataThemeChange:
|
|
2815
|
+
toggleClass: u,
|
|
2816
|
+
dataThemeChange: f,
|
|
2775
2817
|
setEpThemeColor: m,
|
|
2776
2818
|
setLayoutThemeColor: d
|
|
2777
2819
|
};
|
|
2778
2820
|
}
|
|
2779
2821
|
export {
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2822
|
+
xn as A,
|
|
2823
|
+
N as B,
|
|
2824
|
+
Kn as C,
|
|
2783
2825
|
io as D,
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2826
|
+
$n as E,
|
|
2827
|
+
vn as F,
|
|
2828
|
+
Hn as G,
|
|
2829
|
+
Wn as H,
|
|
2830
|
+
Cn as I,
|
|
2831
|
+
ea as J,
|
|
2832
|
+
_o as K,
|
|
2791
2833
|
qt as L,
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2834
|
+
Zn as M,
|
|
2835
|
+
Yn as N,
|
|
2836
|
+
Jn as O,
|
|
2795
2837
|
jt as _,
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2838
|
+
Xn as a,
|
|
2839
|
+
yn as b,
|
|
2840
|
+
x as c,
|
|
2841
|
+
Gn as d,
|
|
2842
|
+
Pn as e,
|
|
2843
|
+
Ye as f,
|
|
2844
|
+
F as g,
|
|
2845
|
+
T as h,
|
|
2846
|
+
G as i,
|
|
2847
|
+
Sn as j,
|
|
2848
|
+
Nt as k,
|
|
2849
|
+
ve as l,
|
|
2850
|
+
V as m,
|
|
2851
|
+
Pt as n,
|
|
2810
2852
|
It as o,
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2853
|
+
He as p,
|
|
2854
|
+
Do as q,
|
|
2855
|
+
g as r,
|
|
2856
|
+
j as s,
|
|
2857
|
+
Ke as t,
|
|
2858
|
+
oe as u,
|
|
2859
|
+
Qn as v,
|
|
2860
|
+
Q as w,
|
|
2861
|
+
b as x,
|
|
2820
2862
|
ho as y,
|
|
2821
|
-
|
|
2863
|
+
ta as z
|
|
2822
2864
|
};
|