@utogether/udp-core 1.0.1-beta.33 → 1.0.1-beta.36
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-kwxf8yCK.js → 403-DyXUGKoE.js} +5 -5
- package/dist/{404-HtCKNMVs.js → 404-BMsHU2ES.js} +4 -4
- package/dist/{500-ClrRGqKR.js → 500-CbNyGD7D.js} +1 -1
- package/dist/{AuthorityInfo-CtRBjzja.js → AuthorityInfo-KsKY-NZ6.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DMwwnDTE.js → AuthorityInfo.vue_vue_type_style_index_0_lang-CZN4ifJY.js} +1 -1
- package/dist/{Company-DTjplho_.js → Company-BLz2bsPR.js} +3 -3
- package/dist/{CompanyPanel-Cjy6fVPj.js → CompanyPanel-CR3Mw_9O.js} +12 -12
- package/dist/{Department-CH6Yt7f4.js → Department-CXTPaA3G.js} +3 -3
- package/dist/{DepartmentPanel-rqSEit_s.js → DepartmentPanel-sdMIyWli.js} +7 -7
- package/dist/{DesignPanel-DJ1RlhRO.js → DesignPanel-CDj1NhGj.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Wb6xMGH-.js → DesignPanel.vue_vue_type_style_index_0_lang-CHP7KFmA.js} +2 -2
- package/dist/{DictView-BveOTSOM.js → DictView-CesILqIR.js} +1 -1
- package/dist/{InvOrganization-DWOGgrPo.js → InvOrganization-BiiaUIkE.js} +1 -1
- package/dist/{Org-BN2xMKd6.js → Org-Btuon-rf.js} +3 -3
- package/dist/{Preview-DHjo8tzC.js → Preview-yU3fj1g5.js} +1 -1
- package/dist/{ReportDefine-_dQiM9xA.js → ReportDefine-B0BKZ8qQ.js} +1 -1
- package/dist/{ReportDesign-CdEO2lRV.js → ReportDesign-0KCUda0R.js} +8 -8
- package/dist/{ReportQuery-BpkUbbK6.js → ReportQuery-BLKvmD12.js} +1 -1
- package/dist/{ReportQueryFrom-CbP80_sr.js → ReportQueryFrom-CgqwICUU.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-BVL6ZoEt.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CYTj6VPj.js} +1 -1
- package/dist/{ReportTemplate-DSusiJ71.js → ReportTemplate-C4sqLywu.js} +1 -1
- package/dist/{Role-C6hy0KuJ.js → Role-yZITpgPO.js} +3 -3
- package/dist/{RoleAssign-xKFsJ7Kx.js → RoleAssign-L97nmCrU.js} +3 -3
- package/dist/{RolePanel-DfD9rJzO.js → RolePanel-BJXG0B6A.js} +1 -1
- package/dist/{RolePanel-B7Q58kiG.js → RolePanel-qj_GbWD7.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Bv-uI4Dl.js → RolePanel.vue_vue_type_script_setup_true_lang-BfZoUyAJ.js} +7 -7
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CehA2NNV.js → RolePanel.vue_vue_type_script_setup_true_lang-DPiskBzz.js} +7 -7
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-Wk3ehyH5.js → ScrollPanel.vue_vue_type_style_index_0_lang-B6Q3ctvz.js} +5 -5
- package/dist/{Staff-BVUFcmsm.js → Staff-BPITcOkP.js} +3 -3
- package/dist/{StaffInfo-Do7TRY0M.js → StaffInfo-BogMLe9z.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-baun5eMA.js → StaffInfo.vue_vue_type_script_setup_true_lang-sH4qyCfh.js} +4 -4
- package/dist/{StaffPanel-5N37v8nE.js → StaffPanel-CgFVMYwO.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-Du_AgvPd.js → StaffPanel.vue_vue_type_script_setup_true_lang-DyhCyFnF.js} +5 -5
- package/dist/{SysUser-DwbDMnb-.js → SysUser-DzdliLaI.js} +2 -2
- package/dist/{SysUserPanel-CZOyQYb6.js → SysUserPanel-IUraCbnt.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-w2cJYId_.js → SysUserPanel.vue_vue_type_script_setup_true_lang-DF2GWJTk.js} +1 -1
- package/dist/{SystemMenu-Dt6G8ZoP.js → SystemMenu-DlIb28uw.js} +6 -6
- package/dist/{UserInfo-DkqXLpcs.js → UserInfo-DgeRuJCk.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CaynWglM.js → UserInfo.vue_vue_type_style_index_0_lang-BmKfJyXE.js} +1 -1
- package/dist/{childView-BFFWXXUx.js → childView-C4phKrcY.js} +1 -1
- package/dist/{childView-BfeXnKqn.js → childView-DQ-3g54z.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-D3UswIrw.js → childView.vue_vue_type_style_index_0_lang-Cl71-OUq.js} +7 -7
- package/dist/{childView.vue_vue_type_style_index_0_lang-BJsDq027.js → childView.vue_vue_type_style_index_0_lang-maAkY1Sp.js} +8 -8
- package/dist/{code-rule-DG6acadZ.js → code-rule-CxzU64Hb.js} +1 -1
- package/dist/core.es.js +8 -8
- package/dist/{cron-task-BcSJarq3.js → cron-task-CKLeTK7O.js} +5 -5
- package/dist/{frameView-D64-T4BV.js → frameView-CgNT6_Bq.js} +1 -1
- package/dist/{index-1BOi1amY.js → index-Da0zJqlp.js} +383 -370
- package/dist/{layoutView-CQJ9c3ZV.js → layoutView-CHhWcHC7.js} +244 -244
- package/dist/{log-in-EOn9ci11.js → log-in-pet8Awpr.js} +4 -4
- package/dist/{log-out-Dw-n4tmS.js → log-out-CPwT8--B.js} +3 -3
- package/dist/{login-DHC4RPod.js → login-BGU4ViTq.js} +50 -48
- package/dist/{lov-view-BG0lV86e.js → lov-view-HgPnQV9D.js} +9 -9
- package/dist/{menuInfo-CC5u9H-w.js → menuInfo-BOg6T9ah.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-vnxmY_ro.js → menuInfo.vue_vue_type_style_index_0_lang-DRfGRBJU.js} +1 -1
- package/dist/{pda-app-DU1gkWj4.js → pda-app-DiKwdZX9.js} +18 -18
- package/dist/{resource-B9x_rSE_.js → resource-ig8i-9QR.js} +7 -7
- package/dist/{su-welcome-DGOeEb4b.js → su-welcome-1ZnlQyQu.js} +1 -1
- package/dist/{sys-config-C1bZxKpe.js → sys-config-DFrgaSmn.js} +1 -1
- package/dist/udp-core.css +1 -1
- package/package.json +1 -1
- package/src/layout/hooks/useNav.ts +176 -173
- package/src/utils/lifecycle.ts +39 -20
- package/src/views/ulogin/login.vue +325 -323
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { defineComponent as B, resolveComponent as
|
|
3
|
-
import { ElConfigProvider as
|
|
4
|
-
import { checkVersion as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { http as I, storageLocal as h, cookies as U, buildHierarchyTree as
|
|
7
|
-
import { merge as
|
|
8
|
-
import { createPinia as
|
|
9
|
-
import { useTimeoutFn as
|
|
10
|
-
import
|
|
11
|
-
import { Icon as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
var
|
|
1
|
+
import * as Ue from "vue";
|
|
2
|
+
import { defineComponent as B, resolveComponent as ae, createBlock as st, openBlock as it, withCtx as lt, createVNode as ze, toRaw as ge, isProxy as ye, defineAsyncComponent as ut, h as R, createApp as ct, computed as we, ref as ee } from "vue";
|
|
3
|
+
import { ElConfigProvider as be } from "element-plus";
|
|
4
|
+
import { checkVersion as dt } from "version-rocket";
|
|
5
|
+
import { useI18n as _e, createI18n as mt } from "vue-i18n";
|
|
6
|
+
import { http as I, storageLocal as h, cookies as U, buildHierarchyTree as ue, dbstorage as te, isUrl as qe, openLink as pt, NProgress as ht, VxetableRender as ft, useGlobal as Ve, deviceDetection as gt, storageSession as yt } from "@utogether/utils";
|
|
7
|
+
import { merge as ce, clone as z, findLastIndexOf as wt, isEqual as Ce, findIndexOf as bt, isEmpty as Ct, toDateString as b, getWhatDay as L, isArray as vt } from "xe-utils";
|
|
8
|
+
import { createPinia as Tt, defineStore as q } from "pinia";
|
|
9
|
+
import { useTimeoutFn as Et } from "@vueuse/core";
|
|
10
|
+
import $e, { VxeUI as D } from "vxe-table";
|
|
11
|
+
import { Icon as ve } from "@iconify/vue";
|
|
12
|
+
import St from "vue-tippy";
|
|
13
|
+
import Dt from "element-resize-detector";
|
|
14
|
+
var kt = {
|
|
15
15
|
name: "en",
|
|
16
16
|
el: {
|
|
17
17
|
breadcrumb: {
|
|
@@ -189,7 +189,7 @@ var Dt = {
|
|
|
189
189
|
indicator: "Carousel switch to index {index}"
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
},
|
|
192
|
+
}, Ft = {
|
|
193
193
|
name: "zh-cn",
|
|
194
194
|
el: {
|
|
195
195
|
breadcrumb: {
|
|
@@ -367,25 +367,25 @@ var Dt = {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
|
-
const
|
|
371
|
-
let
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
}, k = () =>
|
|
375
|
-
|
|
376
|
-
},
|
|
370
|
+
const xt = "menu_zh", Pt = "menu_en", It = "authorized-token", Nt = "kCookies_token", Mt = "kSysConfig", He = "loginer";
|
|
371
|
+
let re = {}, We = {};
|
|
372
|
+
const Rt = (e, t) => {
|
|
373
|
+
re = Object.assign(re, t), e.config.globalProperties.$config = k();
|
|
374
|
+
}, k = () => re, Lt = (e = {}) => {
|
|
375
|
+
We = e;
|
|
376
|
+
}, Te = () => We, w = () => k().ResponsiveStorageNameSpace, Q = () => ({
|
|
377
377
|
post: (e, t, o) => I.post(`${N()}${e}`, t, o),
|
|
378
378
|
get: (e, t, o) => I.get(`${N()}${e}`, t, o),
|
|
379
379
|
put: (e, t) => I.put(`${N()}${e}`, t),
|
|
380
380
|
delete: (e, t) => I.delete(`${N()}${e}`, t)
|
|
381
381
|
}), Ot = (e) => {
|
|
382
382
|
I.setRouter(e);
|
|
383
|
-
},
|
|
383
|
+
}, At = (e) => {
|
|
384
384
|
I.setBaseUrl(e);
|
|
385
|
-
},
|
|
385
|
+
}, Bt = window.location.origin + "/gateway", N = () => Te().VITE_BASE_URL === "origin" ? Bt : Te().VITE_BASE_URL, jt = B({
|
|
386
386
|
name: "app",
|
|
387
387
|
components: {
|
|
388
|
-
[
|
|
388
|
+
[be.name]: be
|
|
389
389
|
},
|
|
390
390
|
beforeRouteEnter(e, t, o) {
|
|
391
391
|
Q().get("/upfm/v1/sysConfig", {}).then((n) => {
|
|
@@ -395,12 +395,12 @@ const Mt = (e, t) => {
|
|
|
395
395
|
computed: {
|
|
396
396
|
currentLocale() {
|
|
397
397
|
var e, t;
|
|
398
|
-
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" ? Ft : kt;
|
|
399
399
|
}
|
|
400
400
|
},
|
|
401
401
|
beforeCreate() {
|
|
402
|
-
const { t: e } =
|
|
403
|
-
|
|
402
|
+
const { t: e } = _e(), n = (h.getItem(Mt) || { title: "U-DP" }).title;
|
|
403
|
+
dt(
|
|
404
404
|
{
|
|
405
405
|
pollingTime: 3e5,
|
|
406
406
|
checkOriginSpecifiedFilesUrl: [`${location.origin}/index.html`],
|
|
@@ -414,27 +414,27 @@ const Mt = (e, t) => {
|
|
|
414
414
|
}
|
|
415
415
|
);
|
|
416
416
|
}
|
|
417
|
-
}),
|
|
417
|
+
}), Ut = (e, t) => {
|
|
418
418
|
const o = e.__vccOpts || e;
|
|
419
419
|
for (const [n, a] of t)
|
|
420
420
|
o[n] = a;
|
|
421
421
|
return o;
|
|
422
422
|
};
|
|
423
|
-
function
|
|
424
|
-
const i =
|
|
425
|
-
return
|
|
423
|
+
function zt(e, t, o, n, a, r) {
|
|
424
|
+
const i = ae("router-view"), s = ae("el-config-provider");
|
|
425
|
+
return it(), st(s, {
|
|
426
426
|
size: "small",
|
|
427
427
|
"z-index": 5555,
|
|
428
428
|
locale: e.currentLocale
|
|
429
429
|
}, {
|
|
430
|
-
default:
|
|
431
|
-
|
|
430
|
+
default: lt(() => [
|
|
431
|
+
ze(i)
|
|
432
432
|
]),
|
|
433
433
|
_: 1
|
|
434
434
|
}, 8, ["locale"]);
|
|
435
435
|
}
|
|
436
|
-
const
|
|
437
|
-
function
|
|
436
|
+
const _t = /* @__PURE__ */ Ut(jt, [["render", zt]]), j = Tt();
|
|
437
|
+
function qt(e) {
|
|
438
438
|
e.use(j);
|
|
439
439
|
}
|
|
440
440
|
const V = [
|
|
@@ -476,36 +476,46 @@ const V = [
|
|
|
476
476
|
for (const a in o)
|
|
477
477
|
o[a] && (n = e.match(/chrome\/([\d.]+)/)[1], t = a);
|
|
478
478
|
return { browser: t, browserVersion: n };
|
|
479
|
-
},
|
|
479
|
+
}, Z = {
|
|
480
|
+
onBeforeLogined: () => {
|
|
481
|
+
},
|
|
480
482
|
onLogined: () => {
|
|
481
483
|
},
|
|
482
484
|
onBeforeLogout: () => {
|
|
485
|
+
},
|
|
486
|
+
onAfterLogout: () => {
|
|
483
487
|
}
|
|
484
488
|
}, Kn = () => {
|
|
485
|
-
|
|
489
|
+
Z.onBeforeLogined();
|
|
490
|
+
}, Jn = () => {
|
|
491
|
+
Z.onLogined();
|
|
492
|
+
}, Yn = () => {
|
|
493
|
+
Z.onBeforeLogout();
|
|
494
|
+
}, Qn = () => {
|
|
495
|
+
Z.onAfterLogout();
|
|
486
496
|
}, Vt = (e, t) => {
|
|
487
497
|
const o = [];
|
|
488
498
|
for (const n of e)
|
|
489
499
|
n[t] && o.push(n[t]);
|
|
490
500
|
return Array.from(new Set(o));
|
|
491
|
-
},
|
|
501
|
+
}, Ge = (e) => {
|
|
492
502
|
const t = e.replace("#", "").match(/../g);
|
|
493
503
|
for (let o = 0; o < 3; o++) t[o] = parseInt(t[o], 16);
|
|
494
504
|
return t;
|
|
495
|
-
},
|
|
505
|
+
}, Ke = (e, t, o) => {
|
|
496
506
|
const n = [e.toString(16), t.toString(16), o.toString(16)];
|
|
497
507
|
for (let a = 0; a < 3; a++)
|
|
498
508
|
n[a].length == 1 && (n[a] = `0${n[a]}`);
|
|
499
509
|
return `#${n.join("")}`;
|
|
500
510
|
}, $t = (e, t) => {
|
|
501
|
-
const o =
|
|
511
|
+
const o = Ge(e);
|
|
502
512
|
for (let n = 0; n < 3; n++) o[n] = Math.floor(o[n] * (1 - t));
|
|
503
|
-
return
|
|
513
|
+
return Ke(o[0], o[1], o[2]);
|
|
504
514
|
}, Ht = (e, t) => {
|
|
505
|
-
const o =
|
|
515
|
+
const o = Ge(e);
|
|
506
516
|
for (let n = 0; n < 3; n++) o[n] = Math.floor((255 - o[n]) * t + o[n]);
|
|
507
|
-
return
|
|
508
|
-
},
|
|
517
|
+
return Ke(o[0], o[1], o[2]);
|
|
518
|
+
}, Ee = {
|
|
509
519
|
zh: {
|
|
510
520
|
message: {
|
|
511
521
|
reportCode: "报表编号",
|
|
@@ -556,8 +566,8 @@ const V = [
|
|
|
556
566
|
}
|
|
557
567
|
}
|
|
558
568
|
}, Wt = {
|
|
559
|
-
zh: { ...
|
|
560
|
-
en: { ...
|
|
569
|
+
zh: { ...Ee.zh.message },
|
|
570
|
+
en: { ...Ee.en.message }
|
|
561
571
|
}, Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
562
572
|
__proto__: null,
|
|
563
573
|
default: Wt
|
|
@@ -611,12 +621,12 @@ const V = [
|
|
|
611
621
|
flowDesign: "Flow Design"
|
|
612
622
|
}
|
|
613
623
|
}
|
|
614
|
-
},
|
|
624
|
+
}, Se = [Kt, Jt], Yt = {
|
|
615
625
|
zh: {
|
|
616
|
-
...Object.assign({}, ...
|
|
626
|
+
...Object.assign({}, ...Se.map((e) => e.zh.message))
|
|
617
627
|
},
|
|
618
628
|
en: {
|
|
619
|
-
...Object.assign({}, ...
|
|
629
|
+
...Object.assign({}, ...Se.map((e) => e.en.message))
|
|
620
630
|
}
|
|
621
631
|
}, Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
622
632
|
__proto__: null,
|
|
@@ -1268,32 +1278,32 @@ const V = [
|
|
|
1268
1278
|
dictDispose: "dictDispose",
|
|
1269
1279
|
isSearch: "isSearch",
|
|
1270
1280
|
isCol: "isCol"
|
|
1271
|
-
},
|
|
1272
|
-
for (const e in
|
|
1273
|
-
H[e.replace(/(\.\/module\/|\.ts)/g, "")] =
|
|
1274
|
-
const
|
|
1281
|
+
}, De = /* @__PURE__ */ Object.assign({ "./module/u-report.ts": Gt, "./module/u-workflow.ts": Qt, "./module/umsg.ts": Xt }), H = {};
|
|
1282
|
+
for (const e in De)
|
|
1283
|
+
H[e.replace(/(\.\/module\/|\.ts)/g, "")] = De[e].default;
|
|
1284
|
+
const ke = Object.keys(H).filter((e) => H[e]).map((e) => H[e]), oo = {
|
|
1275
1285
|
zh: {
|
|
1276
|
-
...h.getItem(
|
|
1277
|
-
message:
|
|
1286
|
+
...h.getItem(xt),
|
|
1287
|
+
message: ce(eo, ...ke.map((e) => e.zh.message))
|
|
1278
1288
|
},
|
|
1279
1289
|
en: {
|
|
1280
|
-
...h.getItem(
|
|
1281
|
-
message: Object.assign(to, ...
|
|
1290
|
+
...h.getItem(Pt),
|
|
1291
|
+
message: Object.assign(to, ...ke.map((e) => e.en.message))
|
|
1282
1292
|
}
|
|
1283
1293
|
};
|
|
1284
1294
|
let A = null;
|
|
1285
1295
|
function no(e, t = { messages: {} }) {
|
|
1286
1296
|
var o;
|
|
1287
|
-
A =
|
|
1297
|
+
A = mt({
|
|
1288
1298
|
legacy: !1,
|
|
1289
1299
|
locale: ((o = h.getItem(`${w()}locale`)) == null ? void 0 : o.locale) ?? "zh",
|
|
1290
1300
|
fallbackLocale: "en",
|
|
1291
1301
|
globalInjection: !0,
|
|
1292
|
-
messages:
|
|
1302
|
+
messages: ce(oo, t.messages)
|
|
1293
1303
|
}), D.setLanguage("zh-CN"), e.use(A);
|
|
1294
1304
|
}
|
|
1295
1305
|
const W = () => A;
|
|
1296
|
-
function
|
|
1306
|
+
function Je(e = "", t = !0) {
|
|
1297
1307
|
if (!e)
|
|
1298
1308
|
return "";
|
|
1299
1309
|
if (typeof e == "object") {
|
|
@@ -1433,18 +1443,18 @@ const ao = q("udp-system", {
|
|
|
1433
1443
|
function G() {
|
|
1434
1444
|
return ao(j);
|
|
1435
1445
|
}
|
|
1436
|
-
function
|
|
1446
|
+
function ro(e, t) {
|
|
1437
1447
|
return /* @__PURE__ */ B({
|
|
1438
1448
|
name: e,
|
|
1439
1449
|
components: {
|
|
1440
1450
|
asyncComponent: t
|
|
1441
1451
|
},
|
|
1442
1452
|
setup() {
|
|
1443
|
-
return () =>
|
|
1453
|
+
return () => ze(ae("async-component"), null, null);
|
|
1444
1454
|
}
|
|
1445
1455
|
});
|
|
1446
1456
|
}
|
|
1447
|
-
const
|
|
1457
|
+
const so = () => I.get(`${N()}/uums/roleMenu`), io = () => I.get(`${N()}/upfm/v1/lov/selectAll`), Fe = (e) => I.get(`${N()}/uums/roleMenu/userMenu`, e), lo = () => import("./layoutView-CHhWcHC7.js"), uo = () => import("./frameView-CgNT6_Bq.js");
|
|
1448
1458
|
function $(e) {
|
|
1449
1459
|
return e.forEach((t) => {
|
|
1450
1460
|
var o, n;
|
|
@@ -1454,20 +1464,20 @@ function $(e) {
|
|
|
1454
1464
|
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);
|
|
1455
1465
|
});
|
|
1456
1466
|
}
|
|
1457
|
-
function
|
|
1467
|
+
function Ye(e) {
|
|
1458
1468
|
const t = z(e, !0).filter((o) => {
|
|
1459
1469
|
var n;
|
|
1460
1470
|
return o && ((n = o.meta) == null ? void 0 : n.showLink) !== !1;
|
|
1461
1471
|
});
|
|
1462
|
-
return t.forEach((o) => o.children && (o.children =
|
|
1472
|
+
return t.forEach((o) => o.children && (o.children = Ye(o.children))), t;
|
|
1463
1473
|
}
|
|
1464
|
-
function
|
|
1465
|
-
function n(a,
|
|
1466
|
-
for (let
|
|
1467
|
-
const d = a[
|
|
1468
|
-
if (d[o] ===
|
|
1474
|
+
function Zn(e, t, o = "path") {
|
|
1475
|
+
function n(a, r, i) {
|
|
1476
|
+
for (let s = 0; s < a.length; s++) {
|
|
1477
|
+
const d = a[s];
|
|
1478
|
+
if (d[o] === r) return i;
|
|
1469
1479
|
if (!(!d.children || !d.children.length)) {
|
|
1470
|
-
if (i.push(d.path), n(d.children,
|
|
1480
|
+
if (i.push(d.path), n(d.children, r, i).length) return i;
|
|
1471
1481
|
i.pop();
|
|
1472
1482
|
}
|
|
1473
1483
|
}
|
|
@@ -1475,13 +1485,13 @@ function Jn(e, t, o = "path") {
|
|
|
1475
1485
|
}
|
|
1476
1486
|
return n(t, e, []);
|
|
1477
1487
|
}
|
|
1478
|
-
function
|
|
1488
|
+
function Qe(e, t) {
|
|
1479
1489
|
let o = t.find((n) => n.path == e);
|
|
1480
1490
|
if (o)
|
|
1481
|
-
return
|
|
1491
|
+
return ye(o) ? ge(o) : o;
|
|
1482
1492
|
for (let n = 0; n < t.length; n++)
|
|
1483
|
-
if (t[n].children instanceof Array && t[n].children.length > 0 && (o =
|
|
1484
|
-
return
|
|
1493
|
+
if (t[n].children instanceof Array && t[n].children.length > 0 && (o = Qe(e, t[n].children), o))
|
|
1494
|
+
return ye(o) ? ge(o) : o;
|
|
1485
1495
|
return null;
|
|
1486
1496
|
}
|
|
1487
1497
|
function co() {
|
|
@@ -1494,21 +1504,21 @@ function co() {
|
|
|
1494
1504
|
function mo() {
|
|
1495
1505
|
var t, o;
|
|
1496
1506
|
const e = W();
|
|
1497
|
-
(t = e.global) == null || t.mergeLocaleMessage("zh",
|
|
1507
|
+
(t = e.global) == null || t.mergeLocaleMessage("zh", O.zh), (o = e.global) == null || o.mergeLocaleMessage("en", O.en), h.setItem("menu_zh", O.zh), h.setItem("menu_en", O.en);
|
|
1498
1508
|
}
|
|
1499
|
-
function
|
|
1509
|
+
function xe(e) {
|
|
1500
1510
|
if (e != null && e.length) {
|
|
1501
1511
|
const t = e.findIndex((n) => n.menuCode === "SysHome");
|
|
1502
1512
|
if (t !== -1) {
|
|
1503
1513
|
const n = [], a = [];
|
|
1504
|
-
e[t].children.forEach((
|
|
1505
|
-
|
|
1514
|
+
e[t].children.forEach((r) => {
|
|
1515
|
+
r.menuCategory !== "1" ? n.push(r) : a.push(r);
|
|
1506
1516
|
}), e[t].children = a, G().setHomeMenus(n);
|
|
1507
1517
|
}
|
|
1508
|
-
const o = z(
|
|
1509
|
-
mo(),
|
|
1518
|
+
const o = z(et(e), !0);
|
|
1519
|
+
mo(), X(o).map((n) => {
|
|
1510
1520
|
const { options: a } = f;
|
|
1511
|
-
a.routes[0].children.findIndex((
|
|
1521
|
+
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));
|
|
1512
1522
|
});
|
|
1513
1523
|
}
|
|
1514
1524
|
C().changeSetting(e), F().getMultiTagsCache || F().handleTags("equal", [
|
|
@@ -1522,26 +1532,26 @@ function Fe(e) {
|
|
|
1522
1532
|
async function po(e) {
|
|
1523
1533
|
let t = [];
|
|
1524
1534
|
const o = `U-${e}-ROUTES`;
|
|
1525
|
-
return k().CachingAsyncRoutes && await
|
|
1535
|
+
return k().CachingAsyncRoutes && await te.getItem(o).then((n) => t = n), io().then((n) => G().setDict(n)), await so().then(async (n) => {
|
|
1526
1536
|
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) || []));
|
|
1527
1537
|
}), t != null && t.length ? new Promise((n) => {
|
|
1528
|
-
|
|
1529
|
-
|
|
1538
|
+
xe(t), Fe({ userName: e }).then((a) => {
|
|
1539
|
+
te.setItem(o, a);
|
|
1530
1540
|
}), n(f);
|
|
1531
1541
|
}) : new Promise((n) => {
|
|
1532
|
-
|
|
1533
|
-
|
|
1542
|
+
Fe({ userName: e }).then((a) => {
|
|
1543
|
+
xe(z(a, !0)), te.setItem(o, a), n(f);
|
|
1534
1544
|
});
|
|
1535
1545
|
});
|
|
1536
1546
|
}
|
|
1537
|
-
function
|
|
1547
|
+
function X(e) {
|
|
1538
1548
|
if (e.length === 0) return e;
|
|
1539
|
-
let t =
|
|
1549
|
+
let t = ue(e);
|
|
1540
1550
|
for (let o = 0; o < t.length; o++)
|
|
1541
1551
|
t[o].children && (t = t.slice(0, o + 1).concat(t[o].children, t.slice(o + 1)));
|
|
1542
1552
|
return t;
|
|
1543
1553
|
}
|
|
1544
|
-
function
|
|
1554
|
+
function Ze(e) {
|
|
1545
1555
|
if (e.length === 0) return e;
|
|
1546
1556
|
const t = [];
|
|
1547
1557
|
return e.forEach((o) => {
|
|
@@ -1567,52 +1577,52 @@ function ho({ name: e }, t) {
|
|
|
1567
1577
|
C().cacheOperate({ mode: "refresh", name: e });
|
|
1568
1578
|
break;
|
|
1569
1579
|
default:
|
|
1570
|
-
C().cacheOperate({ mode: "delete", name: e }),
|
|
1580
|
+
C().cacheOperate({ mode: "delete", name: e }), Et(() => {
|
|
1571
1581
|
C().cacheOperate({ mode: "add", name: e });
|
|
1572
1582
|
}, 100);
|
|
1573
1583
|
}
|
|
1574
1584
|
}
|
|
1575
|
-
const
|
|
1585
|
+
const O = {
|
|
1576
1586
|
zh: {},
|
|
1577
1587
|
en: {}
|
|
1578
|
-
},
|
|
1588
|
+
}, Xe = [], et = (e) => {
|
|
1579
1589
|
var n;
|
|
1580
1590
|
const t = Po();
|
|
1581
1591
|
if (!e || !e.length) return;
|
|
1582
1592
|
const o = Object.keys(t);
|
|
1583
1593
|
for (let a = 0; a < e.length; a++) {
|
|
1584
|
-
const
|
|
1585
|
-
|
|
1586
|
-
const { icon: i, permissionCode:
|
|
1587
|
-
if (
|
|
1594
|
+
const r = e[a];
|
|
1595
|
+
r != null && r.children && r.children.length && !r.redirect && (r.redirect = r.children[0].path);
|
|
1596
|
+
const { icon: i, permissionCode: s, extraIcon: d, frameSrc: c } = r;
|
|
1597
|
+
if (r.isApprovalPage === "Y" && Xe.push(r), r.meta = {
|
|
1588
1598
|
keepAlive: !0,
|
|
1589
|
-
rank:
|
|
1590
|
-
title: `${
|
|
1599
|
+
rank: r.sort,
|
|
1600
|
+
title: `${r.i18nField}`,
|
|
1591
1601
|
// 审批流设计页面和审批页面的code写死,只需配置页面即可(保底方式)
|
|
1592
1602
|
// showLink: !['UDPFlowTask'].includes(v.menuCode) ? null : false
|
|
1593
|
-
showLink:
|
|
1594
|
-
},
|
|
1595
|
-
|
|
1596
|
-
else if ((n =
|
|
1597
|
-
|
|
1598
|
-
else if (
|
|
1603
|
+
showLink: r.showLink !== "N"
|
|
1604
|
+
}, r.hiddenTag = null, Object.assign(r.meta, { icon: i, permissionCode: s, extraIcon: d, frameSrc: c }), 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)
|
|
1605
|
+
r.component = lo;
|
|
1606
|
+
else if ((n = r.meta) != null && n.frameSrc)
|
|
1607
|
+
r.component = uo;
|
|
1608
|
+
else if (r.menuCategory === "10") {
|
|
1599
1609
|
const p = o.findIndex((m) => m.includes("lowcode-contain"));
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1610
|
+
r.component = ro(
|
|
1611
|
+
r.name,
|
|
1612
|
+
ut(() => import(
|
|
1603
1613
|
/* @vite-ignore */
|
|
1604
1614
|
o[p]
|
|
1605
1615
|
))
|
|
1606
|
-
), Object.assign(
|
|
1607
|
-
} else if (
|
|
1608
|
-
const p = o.findIndex((m) => m.includes(
|
|
1609
|
-
|
|
1616
|
+
), Object.assign(r.meta, { moduleType: r.moduleType });
|
|
1617
|
+
} else if (r.menuCategory !== "5") {
|
|
1618
|
+
const p = o.findIndex((m) => m.includes(r.path));
|
|
1619
|
+
r.component = t[o[p]];
|
|
1610
1620
|
}
|
|
1611
|
-
|
|
1621
|
+
r != null && r.children && r.children.length ? et(r.children) : delete r.children;
|
|
1612
1622
|
}
|
|
1613
1623
|
return e;
|
|
1614
1624
|
};
|
|
1615
|
-
function
|
|
1625
|
+
function Xn(e, t = !0) {
|
|
1616
1626
|
const o = F().multiTags.findIndex((n) => {
|
|
1617
1627
|
if (e.query) {
|
|
1618
1628
|
if (e.path === n.path)
|
|
@@ -1628,8 +1638,8 @@ function Yn(e, t = !0) {
|
|
|
1628
1638
|
});
|
|
1629
1639
|
}
|
|
1630
1640
|
}
|
|
1631
|
-
function
|
|
1632
|
-
return
|
|
1641
|
+
function ea() {
|
|
1642
|
+
return Xe;
|
|
1633
1643
|
}
|
|
1634
1644
|
const fo = q("udp-permission", {
|
|
1635
1645
|
state: () => ({
|
|
@@ -1653,12 +1663,12 @@ const fo = q("udp-permission", {
|
|
|
1653
1663
|
actions: {
|
|
1654
1664
|
asyncActionRoutes(e = []) {
|
|
1655
1665
|
if (this.wholeMenus.length > 0) return;
|
|
1656
|
-
const t =
|
|
1666
|
+
const t = wt(e, (n) => n.menuCode === "SysHome"), o = z(this.constantMenus, !0);
|
|
1657
1667
|
if (t !== -1) {
|
|
1658
1668
|
const n = this.constantMenus.find((a) => a.name === "home");
|
|
1659
1669
|
e[t].children && n.children.push(...e[t].children), e.splice(t, 1);
|
|
1660
1670
|
}
|
|
1661
|
-
this.wholeMenus =
|
|
1671
|
+
this.wholeMenus = Ye($(this.constantMenus.concat(e))), this.flatteningRoutes = X(this.constantMenus.concat(e)), this.menusTree = z(this.wholeMenus, !0), this.constantMenus = o;
|
|
1662
1672
|
},
|
|
1663
1673
|
async changeSetting(e) {
|
|
1664
1674
|
await this.asyncActionRoutes(e);
|
|
@@ -1702,7 +1712,7 @@ const fo = q("udp-permission", {
|
|
|
1702
1712
|
function C() {
|
|
1703
1713
|
return fo(j);
|
|
1704
1714
|
}
|
|
1705
|
-
const
|
|
1715
|
+
const tt = q("udp-multiTags", {
|
|
1706
1716
|
state: () => {
|
|
1707
1717
|
var e, t;
|
|
1708
1718
|
return {
|
|
@@ -1727,18 +1737,18 @@ const et = q("udp-multiTags", {
|
|
|
1727
1737
|
this.getMultiTagsCache && h.setItem(`${w()}tags`, e);
|
|
1728
1738
|
},
|
|
1729
1739
|
handleTags(e, t, o) {
|
|
1730
|
-
var n, a,
|
|
1740
|
+
var n, a, r, i;
|
|
1731
1741
|
switch (e) {
|
|
1732
1742
|
case "equal":
|
|
1733
1743
|
this.multiTags = t, this.tagsCache(this.multiTags);
|
|
1734
1744
|
break;
|
|
1735
1745
|
case "push":
|
|
1736
1746
|
{
|
|
1737
|
-
const
|
|
1738
|
-
if ((n =
|
|
1739
|
-
const d =
|
|
1740
|
-
if (this.multiTags.some((m) => m.path === d &&
|
|
1741
|
-
const p = ((i =
|
|
1747
|
+
const s = t;
|
|
1748
|
+
if ((n = s == null ? void 0 : s.meta) != null && n.hiddenTag || qe(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) return;
|
|
1749
|
+
const d = s.path;
|
|
1750
|
+
if (this.multiTags.some((m) => m.path === d && Ce(m == null ? void 0 : m.query, s == null ? void 0 : s.query) && Ce(m == null ? void 0 : m.params, s == null ? void 0 : s.params))) return;
|
|
1751
|
+
const p = ((i = s == null ? void 0 : s.meta) == null ? void 0 : i.dynamicLevel) ?? -1;
|
|
1742
1752
|
if (p > 0 && this.multiTags.filter((m) => (m == null ? void 0 : m.path) === d).length >= p) {
|
|
1743
1753
|
const m = this.multiTags.findIndex((v) => (v == null ? void 0 : v.path) === d);
|
|
1744
1754
|
m !== -1 && this.multiTags.splice(m, 1);
|
|
@@ -1750,9 +1760,9 @@ const et = q("udp-multiTags", {
|
|
|
1750
1760
|
if (o)
|
|
1751
1761
|
this.multiTags.splice(o == null ? void 0 : o.startIndex, o == null ? void 0 : o.length);
|
|
1752
1762
|
else {
|
|
1753
|
-
const
|
|
1754
|
-
if (
|
|
1755
|
-
this.multiTags.splice(
|
|
1763
|
+
const s = this.multiTags.findIndex((d) => d.path === t);
|
|
1764
|
+
if (s === -1) return;
|
|
1765
|
+
this.multiTags.splice(s, 1);
|
|
1756
1766
|
}
|
|
1757
1767
|
return this.tagsCache(this.multiTags), this.multiTags;
|
|
1758
1768
|
case "slice":
|
|
@@ -1762,9 +1772,9 @@ const et = q("udp-multiTags", {
|
|
|
1762
1772
|
}
|
|
1763
1773
|
});
|
|
1764
1774
|
function F() {
|
|
1765
|
-
return
|
|
1775
|
+
return tt(j);
|
|
1766
1776
|
}
|
|
1767
|
-
const go = () => import("./layoutView-
|
|
1777
|
+
const go = () => import("./layoutView-CHhWcHC7.js"), yo = {
|
|
1768
1778
|
path: "/",
|
|
1769
1779
|
name: "home",
|
|
1770
1780
|
component: go,
|
|
@@ -1778,14 +1788,14 @@ const go = () => import("./layoutView-CQJ9c3ZV.js"), yo = {
|
|
|
1778
1788
|
{
|
|
1779
1789
|
path: "/welcome",
|
|
1780
1790
|
name: "SuHome",
|
|
1781
|
-
component: () => import("./su-welcome-
|
|
1791
|
+
component: () => import("./su-welcome-1ZnlQyQu.js"),
|
|
1782
1792
|
meta: {
|
|
1783
1793
|
title: "message.udp.home",
|
|
1784
1794
|
keepAlive: !0
|
|
1785
1795
|
}
|
|
1786
1796
|
}
|
|
1787
1797
|
]
|
|
1788
|
-
}, wo = () => import("./layoutView-
|
|
1798
|
+
}, wo = () => import("./layoutView-CHhWcHC7.js"), bo = {
|
|
1789
1799
|
path: "/error",
|
|
1790
1800
|
name: "error",
|
|
1791
1801
|
component: wo,
|
|
@@ -1800,17 +1810,17 @@ const go = () => import("./layoutView-CQJ9c3ZV.js"), yo = {
|
|
|
1800
1810
|
{
|
|
1801
1811
|
path: "/error/403",
|
|
1802
1812
|
name: "403",
|
|
1803
|
-
component: () => import("./403-
|
|
1813
|
+
component: () => import("./403-DyXUGKoE.js"),
|
|
1804
1814
|
meta: {
|
|
1805
1815
|
title: "message.udp.fourZeroThree"
|
|
1806
1816
|
}
|
|
1807
1817
|
}
|
|
1808
1818
|
]
|
|
1809
|
-
}, Co = () => import("./layoutView-
|
|
1819
|
+
}, Co = () => import("./layoutView-CHhWcHC7.js"), _ = [
|
|
1810
1820
|
{
|
|
1811
1821
|
path: "/login",
|
|
1812
1822
|
name: "login",
|
|
1813
|
-
component: () => import("./login-
|
|
1823
|
+
component: () => import("./login-BGU4ViTq.js"),
|
|
1814
1824
|
meta: {
|
|
1815
1825
|
title: "message.udp.login",
|
|
1816
1826
|
showLink: !1
|
|
@@ -1819,7 +1829,7 @@ const go = () => import("./layoutView-CQJ9c3ZV.js"), yo = {
|
|
|
1819
1829
|
{
|
|
1820
1830
|
path: "/error/404",
|
|
1821
1831
|
name: "404",
|
|
1822
|
-
component: () => import("./404-
|
|
1832
|
+
component: () => import("./404-BMsHU2ES.js"),
|
|
1823
1833
|
meta: {
|
|
1824
1834
|
title: "message.udp.fourZeroFour",
|
|
1825
1835
|
showLink: !1
|
|
@@ -1828,7 +1838,7 @@ const go = () => import("./layoutView-CQJ9c3ZV.js"), yo = {
|
|
|
1828
1838
|
{
|
|
1829
1839
|
path: "/error/500",
|
|
1830
1840
|
name: "500",
|
|
1831
|
-
component: () => import("./500-
|
|
1841
|
+
component: () => import("./500-CbNyGD7D.js"),
|
|
1832
1842
|
meta: {
|
|
1833
1843
|
title: "message.udp.five",
|
|
1834
1844
|
showLink: !1
|
|
@@ -1853,7 +1863,7 @@ const go = () => import("./layoutView-CQJ9c3ZV.js"), yo = {
|
|
|
1853
1863
|
}
|
|
1854
1864
|
]
|
|
1855
1865
|
}
|
|
1856
|
-
], vo = () => import("./layoutView-
|
|
1866
|
+
], vo = () => import("./layoutView-CHhWcHC7.js"), To = {
|
|
1857
1867
|
component: vo,
|
|
1858
1868
|
path: "/utask",
|
|
1859
1869
|
redirect: "/utask/task/flow-task",
|
|
@@ -1877,56 +1887,56 @@ const go = () => import("./layoutView-CQJ9c3ZV.js"), yo = {
|
|
|
1877
1887
|
}
|
|
1878
1888
|
]
|
|
1879
1889
|
}, Eo = /* @__PURE__ */ Object.assign({
|
|
1880
|
-
"../views/organization/company/Company.vue": () => import("./Company-
|
|
1881
|
-
"../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-
|
|
1882
|
-
"../views/organization/department/Department.vue": () => import("./Department-
|
|
1883
|
-
"../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-
|
|
1884
|
-
"../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-
|
|
1885
|
-
"../views/organization/org/Org.vue": () => import("./Org-
|
|
1886
|
-
"../views/organization/staff/Staff.vue": () => import("./Staff-
|
|
1887
|
-
"../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-
|
|
1888
|
-
"../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-
|
|
1889
|
-
"../views/system/cron/cron-task.vue": () => import("./cron-task-
|
|
1890
|
+
"../views/organization/company/Company.vue": () => import("./Company-BLz2bsPR.js"),
|
|
1891
|
+
"../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-CR3Mw_9O.js"),
|
|
1892
|
+
"../views/organization/department/Department.vue": () => import("./Department-CXTPaA3G.js"),
|
|
1893
|
+
"../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-sdMIyWli.js"),
|
|
1894
|
+
"../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-BiiaUIkE.js"),
|
|
1895
|
+
"../views/organization/org/Org.vue": () => import("./Org-Btuon-rf.js"),
|
|
1896
|
+
"../views/organization/staff/Staff.vue": () => import("./Staff-BPITcOkP.js"),
|
|
1897
|
+
"../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-BogMLe9z.js"),
|
|
1898
|
+
"../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-CgFVMYwO.js"),
|
|
1899
|
+
"../views/system/cron/cron-task.vue": () => import("./cron-task-CKLeTK7O.js"),
|
|
1890
1900
|
"../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-BeBNiwqc.js"),
|
|
1891
|
-
"../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-
|
|
1892
|
-
"../views/system/menu/menuInfo.vue": () => import("./menuInfo-
|
|
1893
|
-
"../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-
|
|
1894
|
-
"../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-
|
|
1895
|
-
"../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-
|
|
1896
|
-
"../views/system/role/Role.vue": () => import("./Role-
|
|
1897
|
-
"../views/system/role/RolePanel.vue": () => import("./RolePanel-
|
|
1898
|
-
"../views/system/role/UserInfo.vue": () => import("./UserInfo-
|
|
1899
|
-
"../views/system/sys/sys-config.vue": () => import("./sys-config-
|
|
1900
|
-
"../views/system/sysUser/SysUser.vue": () => import("./SysUser-
|
|
1901
|
-
"../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-
|
|
1902
|
-
"../views/uapp/pda/pda-app.vue": () => import("./pda-app-
|
|
1903
|
-
"../views/udev/coderule/code-rule.vue": () => import("./code-rule-
|
|
1904
|
-
"../views/udev/dict/DictView.vue": () => import("./DictView-
|
|
1905
|
-
"../views/udev/dict/childView.vue": () => import("./childView-
|
|
1906
|
-
"../views/udev/lov/childView.vue": () => import("./childView-
|
|
1907
|
-
"../views/udev/lov/lov-view.vue": () => import("./lov-view-
|
|
1908
|
-
"../views/upms/interface/log-in.vue": () => import("./log-in-
|
|
1909
|
-
"../views/upms/interface/log-out.vue": () => import("./log-out-
|
|
1901
|
+
"../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-DlIb28uw.js"),
|
|
1902
|
+
"../views/system/menu/menuInfo.vue": () => import("./menuInfo-BOg6T9ah.js"),
|
|
1903
|
+
"../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-L97nmCrU.js"),
|
|
1904
|
+
"../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-qj_GbWD7.js"),
|
|
1905
|
+
"../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-KsKY-NZ6.js"),
|
|
1906
|
+
"../views/system/role/Role.vue": () => import("./Role-yZITpgPO.js"),
|
|
1907
|
+
"../views/system/role/RolePanel.vue": () => import("./RolePanel-BJXG0B6A.js"),
|
|
1908
|
+
"../views/system/role/UserInfo.vue": () => import("./UserInfo-DgeRuJCk.js"),
|
|
1909
|
+
"../views/system/sys/sys-config.vue": () => import("./sys-config-DFrgaSmn.js"),
|
|
1910
|
+
"../views/system/sysUser/SysUser.vue": () => import("./SysUser-DzdliLaI.js"),
|
|
1911
|
+
"../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-IUraCbnt.js"),
|
|
1912
|
+
"../views/uapp/pda/pda-app.vue": () => import("./pda-app-DiKwdZX9.js"),
|
|
1913
|
+
"../views/udev/coderule/code-rule.vue": () => import("./code-rule-CxzU64Hb.js"),
|
|
1914
|
+
"../views/udev/dict/DictView.vue": () => import("./DictView-CesILqIR.js"),
|
|
1915
|
+
"../views/udev/dict/childView.vue": () => import("./childView-DQ-3g54z.js"),
|
|
1916
|
+
"../views/udev/lov/childView.vue": () => import("./childView-C4phKrcY.js"),
|
|
1917
|
+
"../views/udev/lov/lov-view.vue": () => import("./lov-view-HgPnQV9D.js"),
|
|
1918
|
+
"../views/upms/interface/log-in.vue": () => import("./log-in-pet8Awpr.js"),
|
|
1919
|
+
"../views/upms/interface/log-out.vue": () => import("./log-out-CPwT8--B.js"),
|
|
1910
1920
|
"../views/upms/user/login-log.vue": () => import("./login-log-C0V-_l3F.js"),
|
|
1911
1921
|
"../views/urpt/dataSet/DataSet.vue": () => import("./DataSet-DT-rGICv.js"),
|
|
1912
|
-
"../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-
|
|
1913
|
-
"../views/urpt/design/Preview.vue": () => import("./Preview-
|
|
1914
|
-
"../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-
|
|
1915
|
-
"../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-
|
|
1916
|
-
"../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-
|
|
1917
|
-
"../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-
|
|
1918
|
-
"../views/urpt/static-resource/resource.vue": () => import("./resource-
|
|
1919
|
-
"../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-
|
|
1920
|
-
}),
|
|
1921
|
-
|
|
1922
|
-
), So = $(
|
|
1922
|
+
"../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-CDj1NhGj.js"),
|
|
1923
|
+
"../views/urpt/design/Preview.vue": () => import("./Preview-yU3fj1g5.js"),
|
|
1924
|
+
"../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-0KCUda0R.js"),
|
|
1925
|
+
"../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-BLKvmD12.js"),
|
|
1926
|
+
"../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-CgqwICUU.js"),
|
|
1927
|
+
"../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-B0BKZ8qQ.js"),
|
|
1928
|
+
"../views/urpt/static-resource/resource.vue": () => import("./resource-ig8i-9QR.js"),
|
|
1929
|
+
"../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-C4sqLywu.js")
|
|
1930
|
+
}), ta = _, de = [yo, bo, To], oa = Ze(
|
|
1931
|
+
X(ue($(de)))
|
|
1932
|
+
), So = $(de).concat(..._), na = Object.keys(_).map((e) => _[e].path), Do = /* @__PURE__ */ new Set();
|
|
1923
1933
|
function ko() {
|
|
1924
1934
|
Do.clear();
|
|
1925
1935
|
}
|
|
1926
1936
|
function Fo() {
|
|
1927
1937
|
f.getRoutes().forEach((e) => {
|
|
1928
1938
|
const { name: t, meta: o } = e;
|
|
1929
|
-
t && f.hasRoute(t) && (o != null && o.backstage) && (f.removeRoute(t), f.options.routes =
|
|
1939
|
+
t && f.hasRoute(t) && (o != null && o.backstage) && (f.removeRoute(t), f.options.routes = Ze(X(ue($(de)))));
|
|
1930
1940
|
}), C().clearAllCachePage(), ko();
|
|
1931
1941
|
}
|
|
1932
1942
|
let se = null, f = null;
|
|
@@ -1936,30 +1946,30 @@ function xo(e, t) {
|
|
|
1936
1946
|
function Po() {
|
|
1937
1947
|
return se;
|
|
1938
1948
|
}
|
|
1939
|
-
const Io = ["/login"],
|
|
1940
|
-
var i,
|
|
1941
|
-
const n = U.get(
|
|
1942
|
-
function
|
|
1949
|
+
const Io = ["/login"], aa = (e, t, o) => {
|
|
1950
|
+
var i, s, d;
|
|
1951
|
+
const n = U.get(He), a = qe(e == null ? void 0 : e.name);
|
|
1952
|
+
function r() {
|
|
1943
1953
|
Io.includes(e.fullPath) ? o(t.fullPath) : o();
|
|
1944
1954
|
}
|
|
1945
1955
|
if (t != null && t.name && (t == null ? void 0 : t.name) !== "login") {
|
|
1946
1956
|
const c = (i = e.matched.find((p) => p.path === e.path || p.name === e.name && e.params)) == null ? void 0 : i.components;
|
|
1947
|
-
a ? (
|
|
1957
|
+
a ? (pt(e == null ? void 0 : e.name), (s = ht) == null || s.done()) : c != null && c.default || e.name === "redirect" ? r() : o({ path: "/error/404" });
|
|
1948
1958
|
} else
|
|
1949
1959
|
C().wholeMenus.length === 0 && po(n).then((c) => {
|
|
1950
1960
|
var p;
|
|
1951
1961
|
if (!F().getMultiTagsCache) {
|
|
1952
|
-
const { path: m } = e, x =
|
|
1962
|
+
const { path: m } = e, x = bt(_, (u) => u.path === m) === -1 ? c.options.routes[0].children : c.options.routes, T = Qe(m, x);
|
|
1953
1963
|
if (T && ((p = T.meta) != null && p.title)) {
|
|
1954
1964
|
const { path: u, name: l, meta: y } = T;
|
|
1955
1965
|
F().handleTags("push", { path: u, name: l, meta: y });
|
|
1956
1966
|
}
|
|
1957
1967
|
}
|
|
1958
|
-
|
|
1959
|
-
}), 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 = {}),
|
|
1968
|
+
Ct(e.name) && c.push(e.fullPath);
|
|
1969
|
+
}), 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();
|
|
1960
1970
|
};
|
|
1961
|
-
|
|
1962
|
-
|
|
1971
|
+
ft($e, { serviceApi: Q(), i18n: Je });
|
|
1972
|
+
Lo();
|
|
1963
1973
|
const No = {
|
|
1964
1974
|
// 对组件内置的提示语进行国际化翻译
|
|
1965
1975
|
// @ts-ignore
|
|
@@ -1970,7 +1980,7 @@ const No = {
|
|
|
1970
1980
|
}
|
|
1971
1981
|
};
|
|
1972
1982
|
function Mo(e = {}) {
|
|
1973
|
-
|
|
1983
|
+
$e.setConfig(ce(No, e)), D.interceptor.add("event.clearEdit", {
|
|
1974
1984
|
tableInterceptorMethod(t) {
|
|
1975
1985
|
const { $event: o } = t;
|
|
1976
1986
|
if (o.target.className.indexOf("vxe-table--ignore-clear") > -1) return !1;
|
|
@@ -1980,7 +1990,7 @@ function Mo(e = {}) {
|
|
|
1980
1990
|
function Ro(e) {
|
|
1981
1991
|
D.setTheme(e);
|
|
1982
1992
|
}
|
|
1983
|
-
function
|
|
1993
|
+
function Lo() {
|
|
1984
1994
|
D.commands.add("utTodyay", {
|
|
1985
1995
|
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1986
1996
|
const t = b(/* @__PURE__ */ new Date(), "yyyy-MM-dd 00:00:00"), o = b(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
@@ -1988,44 +1998,44 @@ function Oo() {
|
|
|
1988
1998
|
}
|
|
1989
1999
|
}), D.commands.add("utYesterDay", {
|
|
1990
2000
|
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1991
|
-
const t = b(
|
|
2001
|
+
const t = b(L(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 00:00:00"), o = b(L(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 23:59:59");
|
|
1992
2002
|
e.setModelValue(t, o);
|
|
1993
2003
|
}
|
|
1994
2004
|
}), D.commands.add("utRecentWeek", {
|
|
1995
2005
|
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1996
|
-
const t = b(
|
|
2006
|
+
const t = b(L(/* @__PURE__ */ new Date(), -7), "yyyy-MM-dd 00:00:00"), o = b(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
1997
2007
|
e.setModelValue(t, o);
|
|
1998
2008
|
}
|
|
1999
2009
|
}), D.commands.add("utRecentMonth", {
|
|
2000
2010
|
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
2001
|
-
const t = b(
|
|
2011
|
+
const t = b(L(/* @__PURE__ */ new Date(), -30), "yyyy-MM-dd 00:00:00"), o = b(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
2002
2012
|
e.setModelValue(t, o);
|
|
2003
2013
|
}
|
|
2004
2014
|
}), D.commands.add("utRecentThreeMonth", {
|
|
2005
2015
|
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
2006
|
-
const t = b(
|
|
2016
|
+
const t = b(L(/* @__PURE__ */ new Date(), -90), "yyyy-MM-dd 00:00:00"), o = b(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
2007
2017
|
e.setModelValue(t, o);
|
|
2008
2018
|
}
|
|
2009
2019
|
}), D.commands.add("utRecentHalfYear", {
|
|
2010
2020
|
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
2011
|
-
const t = b(
|
|
2021
|
+
const t = b(L(/* @__PURE__ */ new Date(), -180), "yyyy-MM-dd 00:00:00"), o = b(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
2012
2022
|
e.setModelValue(t, o);
|
|
2013
2023
|
}
|
|
2014
2024
|
}), D.commands.add("utRecentYear", {
|
|
2015
2025
|
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
2016
|
-
const t = b(
|
|
2026
|
+
const t = b(L(/* @__PURE__ */ new Date(), -365), "yyyy-MM-dd 00:00:00"), o = b(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
2017
2027
|
e.setModelValue(t, o);
|
|
2018
2028
|
}
|
|
2019
2029
|
});
|
|
2020
2030
|
}
|
|
2021
|
-
var
|
|
2022
|
-
for (var o in t)
|
|
2031
|
+
var me = Object.defineProperty, Oo = Object.getOwnPropertyDescriptor, Ao = Object.getOwnPropertyNames, Bo = Object.prototype.hasOwnProperty, jo = (e, t, o) => t in e ? me(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Uo = (e, t) => {
|
|
2032
|
+
for (var o in t) me(e, o, { get: t[o], enumerable: !0 });
|
|
2023
2033
|
}, zo = (e, t, o, n) => {
|
|
2024
|
-
if (t && typeof t == "object" || typeof t == "function") for (let a of Ao(t)) !Bo.call(e, a) && a !== o &&
|
|
2034
|
+
if (t && typeof t == "object" || typeof t == "function") for (let a of Ao(t)) !Bo.call(e, a) && a !== o && me(e, a, { get: () => t[a], enumerable: !(n = Oo(t, a)) || n.enumerable });
|
|
2025
2035
|
return e;
|
|
2026
|
-
}, _o = (e, t, o) => (zo(e, t, "default"), o),
|
|
2027
|
-
Uo(
|
|
2028
|
-
_o(
|
|
2036
|
+
}, _o = (e, t, o) => (zo(e, t, "default"), o), Pe = (e, t, o) => (jo(e, typeof t != "symbol" ? t + "" : t, o), o), pe = {};
|
|
2037
|
+
Uo(pe, { Vue: () => Ue });
|
|
2038
|
+
_o(pe, Ue);
|
|
2029
2039
|
var J = class {
|
|
2030
2040
|
static install(e, t) {
|
|
2031
2041
|
let { nameSpace: o = this._nameSpace, memory: n } = t;
|
|
@@ -2047,16 +2057,16 @@ var J = class {
|
|
|
2047
2057
|
if (Object.prototype.hasOwnProperty.call(window.localStorage, this._getStaticKey(t, e))) return JSON.parse(window.localStorage.getItem(this._getStaticKey(t, e)));
|
|
2048
2058
|
}
|
|
2049
2059
|
constructor(e, t) {
|
|
2050
|
-
let o = J, { version: n = 3, nameSpace: a = o._nameSpace, memory:
|
|
2051
|
-
Object.keys(
|
|
2052
|
-
let p =
|
|
2053
|
-
o.set(i(c), p), Reflect.defineProperty(
|
|
2060
|
+
let o = J, { version: n = 3, nameSpace: a = o._nameSpace, memory: r } = t, i = (c) => a + c, s = n === 3 ? (0, pe.reactive)(r) : r;
|
|
2061
|
+
Object.keys(s).length === 0 && console.warn("key cannot be empty"), Object.keys(s).forEach((c) => {
|
|
2062
|
+
let p = s[c];
|
|
2063
|
+
o.set(i(c), p), Reflect.defineProperty(s, c, { get: () => o.get(i(c)), set: (m) => o.set(i(c), m), configurable: !0 }), n === 2 && e.util.defineReactive(s, c, s[c]);
|
|
2054
2064
|
});
|
|
2055
2065
|
let d = n === 3 ? e.config.globalProperties : e.prototype;
|
|
2056
|
-
Reflect.defineProperty(d, "$storage", { get: () =>
|
|
2066
|
+
Reflect.defineProperty(d, "$storage", { get: () => s });
|
|
2057
2067
|
}
|
|
2058
2068
|
}, M = J;
|
|
2059
|
-
|
|
2069
|
+
Pe(M, "_nameSpace", "rs-"), Pe(M, "_getStaticKey", (e, t) => `${e ?? J._nameSpace}${t}`);
|
|
2060
2070
|
const qo = (e, t) => {
|
|
2061
2071
|
const o = w(), n = Object.assign(
|
|
2062
2072
|
{
|
|
@@ -2097,17 +2107,17 @@ const qo = (e, t) => {
|
|
|
2097
2107
|
if (!e) return !0;
|
|
2098
2108
|
const t = (a = f.currentRoute.value.meta) == null ? void 0 : a.permissionCode;
|
|
2099
2109
|
if (!t) return !0;
|
|
2100
|
-
|
|
2110
|
+
vt(e) || (e = [e]);
|
|
2101
2111
|
const o = C().getButtonAuth;
|
|
2102
2112
|
if (!o) return !0;
|
|
2103
2113
|
let n = !1;
|
|
2104
|
-
return e.forEach((
|
|
2114
|
+
return e.forEach((r) => {
|
|
2105
2115
|
if (!n) {
|
|
2106
|
-
const i = `${t}.${
|
|
2116
|
+
const i = `${t}.${r}`;
|
|
2107
2117
|
n = o.includes(i);
|
|
2108
2118
|
}
|
|
2109
2119
|
}), n;
|
|
2110
|
-
},
|
|
2120
|
+
}, ot = Object.freeze(
|
|
2111
2121
|
{
|
|
2112
2122
|
left: 0,
|
|
2113
2123
|
top: 0,
|
|
@@ -2118,11 +2128,11 @@ const qo = (e, t) => {
|
|
|
2118
2128
|
rotate: 0,
|
|
2119
2129
|
vFlip: !1,
|
|
2120
2130
|
hFlip: !1
|
|
2121
|
-
}),
|
|
2122
|
-
...
|
|
2131
|
+
}), he = Object.freeze({
|
|
2132
|
+
...ot,
|
|
2123
2133
|
...Y
|
|
2124
|
-
}),
|
|
2125
|
-
...
|
|
2134
|
+
}), ie = Object.freeze({
|
|
2135
|
+
...he,
|
|
2126
2136
|
body: "",
|
|
2127
2137
|
hidden: !1
|
|
2128
2138
|
});
|
|
@@ -2132,36 +2142,36 @@ function $o(e, t) {
|
|
|
2132
2142
|
const n = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
2133
2143
|
return n && (o.rotate = n), o;
|
|
2134
2144
|
}
|
|
2135
|
-
function
|
|
2145
|
+
function Ie(e, t) {
|
|
2136
2146
|
const o = $o(e, t);
|
|
2137
|
-
for (const n in
|
|
2147
|
+
for (const n in ie)
|
|
2138
2148
|
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]);
|
|
2139
2149
|
return o;
|
|
2140
2150
|
}
|
|
2141
2151
|
function Ho(e, t) {
|
|
2142
2152
|
const o = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null);
|
|
2143
|
-
function
|
|
2153
|
+
function r(i) {
|
|
2144
2154
|
if (o[i])
|
|
2145
2155
|
return a[i] = [];
|
|
2146
2156
|
if (!(i in a)) {
|
|
2147
2157
|
a[i] = null;
|
|
2148
|
-
const
|
|
2149
|
-
d && (a[i] = [
|
|
2158
|
+
const s = n[i] && n[i].parent, d = s && r(s);
|
|
2159
|
+
d && (a[i] = [s].concat(d));
|
|
2150
2160
|
}
|
|
2151
2161
|
return a[i];
|
|
2152
2162
|
}
|
|
2153
|
-
return Object.keys(o).concat(Object.keys(n)).forEach(
|
|
2163
|
+
return Object.keys(o).concat(Object.keys(n)).forEach(r), a;
|
|
2154
2164
|
}
|
|
2155
2165
|
function Wo(e, t, o) {
|
|
2156
2166
|
const n = e.icons, a = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
2157
|
-
let
|
|
2158
|
-
function i(
|
|
2159
|
-
|
|
2160
|
-
n[
|
|
2161
|
-
|
|
2167
|
+
let r = {};
|
|
2168
|
+
function i(s) {
|
|
2169
|
+
r = Ie(
|
|
2170
|
+
n[s] || a[s],
|
|
2171
|
+
r
|
|
2162
2172
|
);
|
|
2163
2173
|
}
|
|
2164
|
-
return i(t), o.forEach(i),
|
|
2174
|
+
return i(t), o.forEach(i), Ie(e, r);
|
|
2165
2175
|
}
|
|
2166
2176
|
function Go(e, t) {
|
|
2167
2177
|
const o = [];
|
|
@@ -2172,8 +2182,8 @@ function Go(e, t) {
|
|
|
2172
2182
|
});
|
|
2173
2183
|
const n = Ho(e);
|
|
2174
2184
|
for (const a in n) {
|
|
2175
|
-
const
|
|
2176
|
-
|
|
2185
|
+
const r = n[a];
|
|
2186
|
+
r && (t(a, Wo(e, a, r)), o.push(a));
|
|
2177
2187
|
}
|
|
2178
2188
|
return o;
|
|
2179
2189
|
}
|
|
@@ -2181,9 +2191,9 @@ const Ko = {
|
|
|
2181
2191
|
provider: "",
|
|
2182
2192
|
aliases: {},
|
|
2183
2193
|
not_found: {},
|
|
2184
|
-
...
|
|
2194
|
+
...ot
|
|
2185
2195
|
};
|
|
2186
|
-
function
|
|
2196
|
+
function oe(e, t) {
|
|
2187
2197
|
for (const o in t)
|
|
2188
2198
|
if (o in e && typeof e[o] != typeof t[o])
|
|
2189
2199
|
return !1;
|
|
@@ -2193,44 +2203,44 @@ function Jo(e) {
|
|
|
2193
2203
|
if (typeof e != "object" || e === null)
|
|
2194
2204
|
return null;
|
|
2195
2205
|
const t = e;
|
|
2196
|
-
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !
|
|
2206
|
+
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !oe(e, Ko))
|
|
2197
2207
|
return null;
|
|
2198
2208
|
const o = t.icons;
|
|
2199
2209
|
for (const a in o) {
|
|
2200
|
-
const
|
|
2210
|
+
const r = o[a];
|
|
2201
2211
|
if (
|
|
2202
2212
|
// Name cannot be empty
|
|
2203
2213
|
!a || // Must have body
|
|
2204
|
-
typeof
|
|
2205
|
-
!
|
|
2206
|
-
|
|
2207
|
-
|
|
2214
|
+
typeof r.body != "string" || // Check other props
|
|
2215
|
+
!oe(
|
|
2216
|
+
r,
|
|
2217
|
+
ie
|
|
2208
2218
|
)
|
|
2209
2219
|
)
|
|
2210
2220
|
return null;
|
|
2211
2221
|
}
|
|
2212
2222
|
const n = t.aliases || /* @__PURE__ */ Object.create(null);
|
|
2213
2223
|
for (const a in n) {
|
|
2214
|
-
const
|
|
2224
|
+
const r = n[a], i = r.parent;
|
|
2215
2225
|
if (
|
|
2216
2226
|
// Name cannot be empty
|
|
2217
2227
|
!a || // Parent must be set and point to existing icon
|
|
2218
2228
|
typeof i != "string" || !o[i] && !n[i] || // Check other props
|
|
2219
|
-
!
|
|
2220
|
-
|
|
2221
|
-
|
|
2229
|
+
!oe(
|
|
2230
|
+
r,
|
|
2231
|
+
ie
|
|
2222
2232
|
)
|
|
2223
2233
|
)
|
|
2224
2234
|
return null;
|
|
2225
2235
|
}
|
|
2226
2236
|
return t;
|
|
2227
2237
|
}
|
|
2228
|
-
const
|
|
2238
|
+
const nt = Object.freeze({
|
|
2229
2239
|
width: null,
|
|
2230
2240
|
height: null
|
|
2231
|
-
}),
|
|
2241
|
+
}), at = Object.freeze({
|
|
2232
2242
|
// Dimensions
|
|
2233
|
-
...
|
|
2243
|
+
...nt,
|
|
2234
2244
|
// Transformations
|
|
2235
2245
|
...Y
|
|
2236
2246
|
});
|
|
@@ -2239,8 +2249,8 @@ function Yo(e, t) {
|
|
|
2239
2249
|
...e
|
|
2240
2250
|
};
|
|
2241
2251
|
for (const n in t) {
|
|
2242
|
-
const a = t[n],
|
|
2243
|
-
n in
|
|
2252
|
+
const a = t[n], r = typeof a;
|
|
2253
|
+
n in nt ? (a === null || a && (r === "string" || r === "number")) && (o[n] = a) : r === typeof o[n] && (o[n] = n === "rotate" ? a % 4 : a);
|
|
2244
2254
|
}
|
|
2245
2255
|
return o;
|
|
2246
2256
|
}
|
|
@@ -2277,14 +2287,14 @@ function Xo(e, t = 0) {
|
|
|
2277
2287
|
a = 90;
|
|
2278
2288
|
}
|
|
2279
2289
|
if (a) {
|
|
2280
|
-
let
|
|
2281
|
-
return isNaN(
|
|
2290
|
+
let r = parseFloat(e.slice(0, e.length - o.length));
|
|
2291
|
+
return isNaN(r) ? 0 : (r = r / a, r % 1 === 0 ? n(r) : 0);
|
|
2282
2292
|
}
|
|
2283
2293
|
}
|
|
2284
2294
|
return t;
|
|
2285
2295
|
}
|
|
2286
2296
|
const en = /(-?[0-9.]*[0-9]+[0-9.]*)/g, tn = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
2287
|
-
function
|
|
2297
|
+
function Ne(e, t, o) {
|
|
2288
2298
|
if (t === 1)
|
|
2289
2299
|
return e;
|
|
2290
2300
|
if (o = o || 100, typeof e == "number")
|
|
@@ -2295,14 +2305,14 @@ function Ie(e, t, o) {
|
|
|
2295
2305
|
if (n === null || !n.length)
|
|
2296
2306
|
return e;
|
|
2297
2307
|
const a = [];
|
|
2298
|
-
let
|
|
2308
|
+
let r = n.shift(), i = tn.test(r);
|
|
2299
2309
|
for (; ; ) {
|
|
2300
2310
|
if (i) {
|
|
2301
|
-
const
|
|
2302
|
-
isNaN(
|
|
2311
|
+
const s = parseFloat(r);
|
|
2312
|
+
isNaN(s) ? a.push(r) : a.push(Math.ceil(s * t * o) / o);
|
|
2303
2313
|
} else
|
|
2304
|
-
a.push(
|
|
2305
|
-
if (
|
|
2314
|
+
a.push(r);
|
|
2315
|
+
if (r = n.shift(), r === void 0)
|
|
2306
2316
|
return a.join("");
|
|
2307
2317
|
i = !i;
|
|
2308
2318
|
}
|
|
@@ -2311,13 +2321,13 @@ function on(e, t = "defs") {
|
|
|
2311
2321
|
let o = "";
|
|
2312
2322
|
const n = e.indexOf("<" + t);
|
|
2313
2323
|
for (; n >= 0; ) {
|
|
2314
|
-
const a = e.indexOf(">", n),
|
|
2315
|
-
if (a === -1 ||
|
|
2324
|
+
const a = e.indexOf(">", n), r = e.indexOf("</" + t);
|
|
2325
|
+
if (a === -1 || r === -1)
|
|
2316
2326
|
break;
|
|
2317
|
-
const i = e.indexOf(">",
|
|
2327
|
+
const i = e.indexOf(">", r);
|
|
2318
2328
|
if (i === -1)
|
|
2319
2329
|
break;
|
|
2320
|
-
o += e.slice(a + 1,
|
|
2330
|
+
o += e.slice(a + 1, r).trim(), e = e.slice(0, n).trim() + e.slice(i + 1);
|
|
2321
2331
|
}
|
|
2322
2332
|
return {
|
|
2323
2333
|
defs: o,
|
|
@@ -2331,13 +2341,13 @@ function an(e, t, o) {
|
|
|
2331
2341
|
const n = on(e);
|
|
2332
2342
|
return nn(n.defs, t + n.content + o);
|
|
2333
2343
|
}
|
|
2334
|
-
const
|
|
2335
|
-
function
|
|
2344
|
+
const rn = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
2345
|
+
function sn(e, t) {
|
|
2336
2346
|
const o = {
|
|
2337
|
-
...
|
|
2347
|
+
...he,
|
|
2338
2348
|
...e
|
|
2339
2349
|
}, n = {
|
|
2340
|
-
...
|
|
2350
|
+
...at,
|
|
2341
2351
|
...t
|
|
2342
2352
|
}, a = {
|
|
2343
2353
|
left: o.left,
|
|
@@ -2345,7 +2355,7 @@ function rn(e, t) {
|
|
|
2345
2355
|
width: o.width,
|
|
2346
2356
|
height: o.height
|
|
2347
2357
|
};
|
|
2348
|
-
let
|
|
2358
|
+
let r = o.body;
|
|
2349
2359
|
[o, n].forEach((u) => {
|
|
2350
2360
|
const l = [], y = u.hFlip, P = u.vFlip;
|
|
2351
2361
|
let g = u.rotate;
|
|
@@ -2372,24 +2382,24 @@ function rn(e, t) {
|
|
|
2372
2382
|
);
|
|
2373
2383
|
break;
|
|
2374
2384
|
}
|
|
2375
|
-
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)), l.length && (
|
|
2376
|
-
|
|
2385
|
+
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)), l.length && (r = an(
|
|
2386
|
+
r,
|
|
2377
2387
|
'<g transform="' + l.join(" ") + '">',
|
|
2378
2388
|
"</g>"
|
|
2379
2389
|
));
|
|
2380
2390
|
});
|
|
2381
|
-
const i = n.width,
|
|
2391
|
+
const i = n.width, s = n.height, d = a.width, c = a.height;
|
|
2382
2392
|
let p, m;
|
|
2383
|
-
i === null ? (m =
|
|
2393
|
+
i === null ? (m = s === null ? "1em" : s === "auto" ? c : s, p = Ne(m, d / c)) : (p = i === "auto" ? d : i, m = s === null ? Ne(p, c / d) : s === "auto" ? c : s);
|
|
2384
2394
|
const v = {}, x = (u, l) => {
|
|
2385
|
-
|
|
2395
|
+
rn(l) || (v[u] = l.toString());
|
|
2386
2396
|
};
|
|
2387
2397
|
x("width", p), x("height", m);
|
|
2388
2398
|
const T = [a.left, a.top, d, c];
|
|
2389
2399
|
return v.viewBox = T.join(" "), {
|
|
2390
2400
|
attributes: v,
|
|
2391
2401
|
viewBox: T,
|
|
2392
|
-
body:
|
|
2402
|
+
body: r
|
|
2393
2403
|
};
|
|
2394
2404
|
}
|
|
2395
2405
|
const ln = /\sid="(\S+)"/g, un = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
@@ -2402,12 +2412,12 @@ function dn(e, t = un) {
|
|
|
2402
2412
|
if (!o.length)
|
|
2403
2413
|
return e;
|
|
2404
2414
|
const a = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
2405
|
-
return o.forEach((
|
|
2406
|
-
const i = typeof t == "function" ? t(
|
|
2415
|
+
return o.forEach((r) => {
|
|
2416
|
+
const i = typeof t == "function" ? t(r) : t + (cn++).toString(), s = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2407
2417
|
e = e.replace(
|
|
2408
2418
|
// Allowed characters before id: [#;"]
|
|
2409
2419
|
// Allowed characters after id: [)"], .[a-z]
|
|
2410
|
-
new RegExp('([#;"])(' +
|
|
2420
|
+
new RegExp('([#;"])(' + s + ')([")]|\\.[a-z])', "g"),
|
|
2411
2421
|
"$1" + i + a + "$3"
|
|
2412
2422
|
);
|
|
2413
2423
|
}), e = e.replace(new RegExp(a, "g"), ""), e;
|
|
@@ -2427,8 +2437,8 @@ function hn(e) {
|
|
|
2427
2437
|
function fn(e) {
|
|
2428
2438
|
return 'url("' + hn(e) + '")';
|
|
2429
2439
|
}
|
|
2430
|
-
const
|
|
2431
|
-
...
|
|
2440
|
+
const Me = {
|
|
2441
|
+
...at,
|
|
2432
2442
|
inline: !1
|
|
2433
2443
|
}, gn = {
|
|
2434
2444
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2437,23 +2447,23 @@ const Ne = {
|
|
|
2437
2447
|
role: "img"
|
|
2438
2448
|
}, yn = {
|
|
2439
2449
|
display: "inline-block"
|
|
2440
|
-
},
|
|
2450
|
+
}, le = {
|
|
2441
2451
|
backgroundColor: "currentColor"
|
|
2442
|
-
},
|
|
2452
|
+
}, rt = {
|
|
2443
2453
|
backgroundColor: "transparent"
|
|
2444
|
-
},
|
|
2454
|
+
}, Re = {
|
|
2445
2455
|
Image: "var(--svg)",
|
|
2446
2456
|
Repeat: "no-repeat",
|
|
2447
2457
|
Size: "100% 100%"
|
|
2448
|
-
},
|
|
2449
|
-
webkitMask:
|
|
2450
|
-
mask:
|
|
2451
|
-
background:
|
|
2458
|
+
}, Le = {
|
|
2459
|
+
webkitMask: le,
|
|
2460
|
+
mask: le,
|
|
2461
|
+
background: rt
|
|
2452
2462
|
};
|
|
2453
|
-
for (const e in
|
|
2454
|
-
const t =
|
|
2455
|
-
for (const o in
|
|
2456
|
-
t[e + o] =
|
|
2463
|
+
for (const e in Le) {
|
|
2464
|
+
const t = Le[e];
|
|
2465
|
+
for (const o in Re)
|
|
2466
|
+
t[e + o] = Re[o];
|
|
2457
2467
|
}
|
|
2458
2468
|
const K = {};
|
|
2459
2469
|
["horizontal", "vertical"].forEach((e) => {
|
|
@@ -2464,7 +2474,7 @@ function Oe(e) {
|
|
|
2464
2474
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
2465
2475
|
}
|
|
2466
2476
|
const wn = (e, t) => {
|
|
2467
|
-
const o = Yo(
|
|
2477
|
+
const o = Yo(Me, t), n = { ...gn }, a = t.mode || "svg", r = {}, i = t.style, s = typeof i == "object" && !(i instanceof Array) ? i : {};
|
|
2468
2478
|
for (let u in t) {
|
|
2469
2479
|
const l = t[u];
|
|
2470
2480
|
if (l !== void 0)
|
|
@@ -2488,7 +2498,7 @@ const wn = (e, t) => {
|
|
|
2488
2498
|
break;
|
|
2489
2499
|
// Color: override style
|
|
2490
2500
|
case "color":
|
|
2491
|
-
|
|
2501
|
+
r.color = l;
|
|
2492
2502
|
break;
|
|
2493
2503
|
// Rotation as string
|
|
2494
2504
|
case "rotate":
|
|
@@ -2501,15 +2511,15 @@ const wn = (e, t) => {
|
|
|
2501
2511
|
break;
|
|
2502
2512
|
default: {
|
|
2503
2513
|
const y = K[u];
|
|
2504
|
-
y ? (l === !0 || l === "true" || l === 1) && (o[y] = !0) :
|
|
2514
|
+
y ? (l === !0 || l === "true" || l === 1) && (o[y] = !0) : Me[u] === void 0 && (n[u] = l);
|
|
2505
2515
|
}
|
|
2506
2516
|
}
|
|
2507
2517
|
}
|
|
2508
|
-
const d =
|
|
2509
|
-
if (o.inline && (
|
|
2518
|
+
const d = sn(e, o), c = d.attributes;
|
|
2519
|
+
if (o.inline && (r.verticalAlign = "-0.125em"), a === "svg") {
|
|
2510
2520
|
n.style = {
|
|
2511
|
-
...
|
|
2512
|
-
...
|
|
2521
|
+
...r,
|
|
2522
|
+
...s
|
|
2513
2523
|
}, Object.assign(n, c);
|
|
2514
2524
|
let u = 0, l = t.id;
|
|
2515
2525
|
return typeof l == "string" && (l = l.replace(/-/g, "_")), n.innerHTML = dn(d.body, l ? () => l + "ID" + u++ : "iconifyVue"), R("svg", n);
|
|
@@ -2520,38 +2530,38 @@ const wn = (e, t) => {
|
|
|
2520
2530
|
height: v + ""
|
|
2521
2531
|
});
|
|
2522
2532
|
return n.style = {
|
|
2523
|
-
...
|
|
2533
|
+
...r,
|
|
2524
2534
|
"--svg": fn(T),
|
|
2525
2535
|
width: Oe(c.width),
|
|
2526
2536
|
height: Oe(c.height),
|
|
2527
2537
|
...yn,
|
|
2528
|
-
...x ?
|
|
2529
|
-
...
|
|
2538
|
+
...x ? le : rt,
|
|
2539
|
+
...s
|
|
2530
2540
|
}, R("span", n);
|
|
2531
|
-
},
|
|
2541
|
+
}, fe = /* @__PURE__ */ Object.create(null);
|
|
2532
2542
|
function bn(e, t) {
|
|
2533
|
-
|
|
2543
|
+
fe[e] = t;
|
|
2534
2544
|
}
|
|
2535
|
-
function
|
|
2545
|
+
function ra(e, t) {
|
|
2536
2546
|
const o = typeof e.prefix == "string" ? e.prefix + ":" : "";
|
|
2537
2547
|
Jo(e) && Go(e, (n, a) => {
|
|
2538
|
-
a && (
|
|
2548
|
+
a && (fe[o + n] = a);
|
|
2539
2549
|
});
|
|
2540
2550
|
}
|
|
2541
|
-
const
|
|
2551
|
+
const Ae = B({
|
|
2542
2552
|
// Do not inherit other attributes: it is handled by render()
|
|
2543
2553
|
inheritAttrs: !1,
|
|
2544
2554
|
// Render icon
|
|
2545
2555
|
render() {
|
|
2546
|
-
const e = this.$attrs, t = e.icon, o = typeof t == "string" ?
|
|
2556
|
+
const e = this.$attrs, t = e.icon, o = typeof t == "string" ? fe[t] : typeof t == "object" ? t : null;
|
|
2547
2557
|
return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null : wn({
|
|
2548
|
-
...
|
|
2558
|
+
...he,
|
|
2549
2559
|
...o
|
|
2550
2560
|
}, e);
|
|
2551
2561
|
}
|
|
2552
2562
|
}), Cn = B({
|
|
2553
2563
|
name: "IconOffline",
|
|
2554
|
-
components: { IconifyIcon:
|
|
2564
|
+
components: { IconifyIcon: Ae },
|
|
2555
2565
|
props: {
|
|
2556
2566
|
icon: {
|
|
2557
2567
|
default: null
|
|
@@ -2561,7 +2571,7 @@ const Le = B({
|
|
|
2561
2571
|
typeof this.icon == "object" && bn(this.icon, this.icon);
|
|
2562
2572
|
const e = this.$attrs;
|
|
2563
2573
|
return R(
|
|
2564
|
-
|
|
2574
|
+
Ae,
|
|
2565
2575
|
{
|
|
2566
2576
|
icon: this.icon,
|
|
2567
2577
|
style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
|
|
@@ -2575,7 +2585,7 @@ const Le = B({
|
|
|
2575
2585
|
});
|
|
2576
2586
|
B({
|
|
2577
2587
|
name: "IconifyIconOnline",
|
|
2578
|
-
components: { IconifyIcon:
|
|
2588
|
+
components: { IconifyIcon: ve },
|
|
2579
2589
|
props: {
|
|
2580
2590
|
icon: {
|
|
2581
2591
|
type: String,
|
|
@@ -2585,7 +2595,7 @@ B({
|
|
|
2585
2595
|
render() {
|
|
2586
2596
|
const e = this.$attrs;
|
|
2587
2597
|
return R(
|
|
2588
|
-
|
|
2598
|
+
ve,
|
|
2589
2599
|
{
|
|
2590
2600
|
icon: `${this.icon}`,
|
|
2591
2601
|
style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
|
|
@@ -2637,8 +2647,8 @@ const vn = B({
|
|
|
2637
2647
|
var n;
|
|
2638
2648
|
const { value: o } = t;
|
|
2639
2649
|
if (o) {
|
|
2640
|
-
const
|
|
2641
|
-
C().getButtonAuth.includes(
|
|
2650
|
+
const r = `${(n = f.currentRoute.value.meta) == null ? void 0 : n.prefixAuth}.${o}`;
|
|
2651
|
+
C().getButtonAuth.includes(r) || e.parentNode.removeChild(e);
|
|
2642
2652
|
} else
|
|
2643
2653
|
throw new Error(`need roles! Like v-auth="['admin','test']"`);
|
|
2644
2654
|
}
|
|
@@ -2659,38 +2669,38 @@ function Dn(e) {
|
|
|
2659
2669
|
});
|
|
2660
2670
|
} };
|
|
2661
2671
|
}
|
|
2662
|
-
const kn = Dn(),
|
|
2672
|
+
const kn = Dn(), Be = Dt({
|
|
2663
2673
|
strategy: "scroll"
|
|
2664
2674
|
}), Fn = {
|
|
2665
2675
|
mounted(e, t, o) {
|
|
2666
|
-
|
|
2667
|
-
const a = n.offsetWidth,
|
|
2668
|
-
t != null && t.instance ? kn.emit("resize", { detail: { width: a, height:
|
|
2676
|
+
Be.listenTo(e, (n) => {
|
|
2677
|
+
const a = n.offsetWidth, r = n.offsetHeight;
|
|
2678
|
+
t != null && t.instance ? kn.emit("resize", { detail: { width: a, height: r } }) : o.el.dispatchEvent(new CustomEvent("resize", { detail: { width: a, height: r } }));
|
|
2669
2679
|
});
|
|
2670
2680
|
},
|
|
2671
2681
|
unmounted(e) {
|
|
2672
|
-
|
|
2682
|
+
Be.uninstall(e);
|
|
2673
2683
|
}
|
|
2674
|
-
},
|
|
2684
|
+
}, je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2675
2685
|
__proto__: null,
|
|
2676
2686
|
auth: Sn,
|
|
2677
2687
|
resize: Fn
|
|
2678
|
-
}, Symbol.toStringTag, { value: "Module" })), E =
|
|
2679
|
-
E.use(
|
|
2688
|
+
}, Symbol.toStringTag, { value: "Module" })), E = ct(_t);
|
|
2689
|
+
E.use(St, {
|
|
2680
2690
|
defaultProps: { animation: "perspective" }
|
|
2681
2691
|
});
|
|
2682
2692
|
const xn = (e) => {
|
|
2683
|
-
e.config.globalProperties.$hasAuthority = Vo, e.config.globalProperties.$serviceApi = Q(), e.config.globalProperties.$url = N(), window.$i18n =
|
|
2693
|
+
e.config.globalProperties.$hasAuthority = Vo, e.config.globalProperties.$serviceApi = Q(), e.config.globalProperties.$url = N(), window.$i18n = Je;
|
|
2684
2694
|
}, Pn = (e) => {
|
|
2685
|
-
Object.keys(
|
|
2686
|
-
e.directive(t,
|
|
2695
|
+
Object.keys(je).forEach((t) => {
|
|
2696
|
+
e.directive(t, je[t]);
|
|
2687
2697
|
});
|
|
2688
|
-
},
|
|
2689
|
-
no(E, o), E.component("IconifyIconOffline", Tn), E.component("FontIcon", En), xn(E),
|
|
2698
|
+
}, sa = ({ router: e, config: t, lang: o, views: n, env: a, tableConfig: r }) => (xo(n, e), E.use(e), Ot(e), Rt(E, t), Lt(a), Mo(r), new Promise((i) => {
|
|
2699
|
+
no(E, o), E.component("IconifyIconOffline", Tn), E.component("FontIcon", En), xn(E), At(N()), Pn(E), qt(E), qo(E, t), i({ app: E, router: e });
|
|
2690
2700
|
}));
|
|
2691
2701
|
function In() {
|
|
2692
|
-
const { $storage: e, $config: t } =
|
|
2693
|
-
|
|
2702
|
+
const { $storage: e, $config: t } = Ve(), o = () => {
|
|
2703
|
+
tt().multiTagsCache && (!e.tags || e.tags.length === 0) && (e.tags = V), e != null && e.locale || (_e().locale.value = (t == null ? void 0 : t.Locale) ?? "zh"), e && !(e != null && e.layout) && (e.layout = {
|
|
2694
2704
|
layout: (t == null ? void 0 : t.Layout) ?? "vertical",
|
|
2695
2705
|
theme: (t == null ? void 0 : t.Theme) ?? "default",
|
|
2696
2706
|
darkMode: (t == null ? void 0 : t.DarkMode) ?? !1,
|
|
@@ -2705,7 +2715,7 @@ function In() {
|
|
|
2705
2715
|
showModel: (t == null ? void 0 : t.ShowModel) ?? "smart",
|
|
2706
2716
|
multiTagsCache: (t == null ? void 0 : t.MultiTagsCache) ?? !1
|
|
2707
2717
|
});
|
|
2708
|
-
}, n =
|
|
2718
|
+
}, n = we(() => e == null ? void 0 : e.layout.layout), a = we(() => e == null ? void 0 : e.layout);
|
|
2709
2719
|
return {
|
|
2710
2720
|
layout: n,
|
|
2711
2721
|
layoutTheme: a,
|
|
@@ -2723,7 +2733,7 @@ const Nn = q("udp-app", {
|
|
|
2723
2733
|
},
|
|
2724
2734
|
// 这里的layout用于监听容器拖拉后恢复对应的导航模式
|
|
2725
2735
|
layout: ((t = h.getItem(`${w()}layout`)) == null ? void 0 : t.layout) ?? k().Layout,
|
|
2726
|
-
device:
|
|
2736
|
+
device: gt() ? "mobile" : "desktop"
|
|
2727
2737
|
};
|
|
2728
2738
|
},
|
|
2729
2739
|
getters: {
|
|
@@ -2777,12 +2787,12 @@ const Rn = q("udp-epTheme", {
|
|
|
2777
2787
|
}
|
|
2778
2788
|
}
|
|
2779
2789
|
});
|
|
2780
|
-
function
|
|
2790
|
+
function ne() {
|
|
2781
2791
|
return Rn(j);
|
|
2782
2792
|
}
|
|
2783
|
-
function
|
|
2793
|
+
function ia() {
|
|
2784
2794
|
var x, T;
|
|
2785
|
-
const { layoutTheme: e, layout: t } = In(), o =
|
|
2795
|
+
const { layoutTheme: e, layout: t } = In(), o = ee([
|
|
2786
2796
|
/* 道奇蓝(默认) */
|
|
2787
2797
|
{ color: "#1b2a47", themeColor: "default" },
|
|
2788
2798
|
/* 亮白色 */
|
|
@@ -2801,8 +2811,8 @@ function aa() {
|
|
|
2801
2811
|
{ color: "#eb2f96", themeColor: "pink" },
|
|
2802
2812
|
/* 深紫罗兰色 */
|
|
2803
2813
|
{ color: "#722ed1", themeColor: "saucePurple" }
|
|
2804
|
-
]), { $storage: n } =
|
|
2805
|
-
function
|
|
2814
|
+
]), { $storage: n } = Ve(), a = ee((x = n == null ? void 0 : n.layout) == null ? void 0 : x.darkMode), r = ee((T = n == null ? void 0 : n.layout) == null ? void 0 : T.overallStyle), i = document.documentElement;
|
|
2815
|
+
function s(u, l, y) {
|
|
2806
2816
|
const P = y || document.body;
|
|
2807
2817
|
let { className: g } = P;
|
|
2808
2818
|
g = g.replace(l, "").trim(), P.className = u ? `${g} ${l}` : g;
|
|
@@ -2815,7 +2825,7 @@ function aa() {
|
|
|
2815
2825
|
darkMode: a.value,
|
|
2816
2826
|
sidebarStatus: (l = n.layout) == null ? void 0 : l.sidebarStatus,
|
|
2817
2827
|
epThemeColor: (y = n.layout) == null ? void 0 : y.epThemeColor,
|
|
2818
|
-
overallStyle:
|
|
2828
|
+
overallStyle: r.value
|
|
2819
2829
|
}, u === "default" || u === "light")
|
|
2820
2830
|
p(k().EpThemeColor || "#409EFF");
|
|
2821
2831
|
else {
|
|
@@ -2830,75 +2840,78 @@ function aa() {
|
|
|
2830
2840
|
);
|
|
2831
2841
|
}
|
|
2832
2842
|
const p = (u) => {
|
|
2833
|
-
|
|
2843
|
+
ne().setEpThemeColor(u), document.documentElement.style.setProperty("--el-color-primary", u);
|
|
2834
2844
|
for (let l = 1; l <= 2; l++)
|
|
2835
2845
|
c("dark", l, u);
|
|
2836
2846
|
for (let l = 1; l <= 9; l++)
|
|
2837
2847
|
c("light", l, u);
|
|
2838
2848
|
};
|
|
2839
2849
|
function m(u) {
|
|
2840
|
-
|
|
2850
|
+
r.value = u, ne().epTheme === "light" && a.value ? d("default") : d(ne().epTheme), Ro(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"));
|
|
2841
2851
|
}
|
|
2842
2852
|
function v() {
|
|
2843
|
-
U.remove(
|
|
2853
|
+
U.remove(Nt), U.remove(It), U.remove(He), h.clear(), yt.clear();
|
|
2844
2854
|
const { Grey: u, Weak: l, MultiTagsCache: y, EpThemeColor: P, Layout: g } = k();
|
|
2845
|
-
Mn().setLayout(g), p(P), F().multiTagsCacheChange(y),
|
|
2855
|
+
Mn().setLayout(g), p(P), F().multiTagsCacheChange(y), s(u, "html-grey", document.querySelector("html")), s(l, "html-weakness", document.querySelector("html")), f.push("/login"), F().handleTags("equal", [...V]), Fo();
|
|
2846
2856
|
}
|
|
2847
2857
|
return {
|
|
2848
2858
|
body: i,
|
|
2849
|
-
overallStyle:
|
|
2859
|
+
overallStyle: r,
|
|
2850
2860
|
dataTheme: a,
|
|
2851
2861
|
layoutTheme: e,
|
|
2852
2862
|
themeColors: o,
|
|
2853
2863
|
onReset: v,
|
|
2854
|
-
toggleClass:
|
|
2864
|
+
toggleClass: s,
|
|
2855
2865
|
dataThemeChange: m,
|
|
2856
2866
|
setEpThemeColor: p,
|
|
2857
2867
|
setLayoutThemeColor: d
|
|
2858
2868
|
};
|
|
2859
2869
|
}
|
|
2860
2870
|
export {
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2871
|
+
ho as A,
|
|
2872
|
+
ia as B,
|
|
2873
|
+
In as C,
|
|
2874
|
+
N as D,
|
|
2875
|
+
Xn as E,
|
|
2866
2876
|
En as F,
|
|
2867
|
-
|
|
2868
|
-
|
|
2877
|
+
io as G,
|
|
2878
|
+
Gn as H,
|
|
2869
2879
|
Tn as I,
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2880
|
+
Wn as J,
|
|
2881
|
+
Kn as K,
|
|
2882
|
+
Jn as L,
|
|
2883
|
+
sa as M,
|
|
2884
|
+
Vo as N,
|
|
2885
|
+
Z as O,
|
|
2886
|
+
aa as P,
|
|
2887
|
+
oa as Q,
|
|
2888
|
+
ta as R,
|
|
2889
|
+
ea as S,
|
|
2890
|
+
Ut as _,
|
|
2891
|
+
ra as a,
|
|
2879
2892
|
bn as b,
|
|
2880
2893
|
F as c,
|
|
2881
|
-
|
|
2894
|
+
Zn as d,
|
|
2882
2895
|
Mn as e,
|
|
2883
|
-
|
|
2896
|
+
Qe as f,
|
|
2884
2897
|
k as g,
|
|
2885
2898
|
C as h,
|
|
2886
2899
|
G as i,
|
|
2887
2900
|
kn as j,
|
|
2888
|
-
|
|
2889
|
-
|
|
2901
|
+
Mt as k,
|
|
2902
|
+
Te as l,
|
|
2890
2903
|
V as m,
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2904
|
+
Nt as n,
|
|
2905
|
+
It as o,
|
|
2906
|
+
He as p,
|
|
2894
2907
|
Fo as q,
|
|
2895
2908
|
f as r,
|
|
2896
2909
|
j as s,
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2910
|
+
Je as t,
|
|
2911
|
+
ne as u,
|
|
2912
|
+
na as v,
|
|
2913
|
+
Yn as w,
|
|
2914
|
+
Qn as x,
|
|
2915
|
+
Q as y,
|
|
2916
|
+
w as z
|
|
2904
2917
|
};
|