@utogether/udp-core 1.0.1-beta.15 → 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-DpJevH-h.js → 403-C3cfjZIT.js} +1 -1
- package/dist/{404-BpqJK3YD.js → 404-Bg3j7QIo.js} +1 -1
- package/dist/{500-DyvRbMD_.js → 500-CMT7Zyy7.js} +1 -1
- package/dist/{AuthorityInfo-Cyu4XHXx.js → AuthorityInfo-B1mvqs4x.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-BxmnEEFq.js → AuthorityInfo.vue_vue_type_style_index_0_lang-DwoW7QWO.js} +3 -3
- package/dist/{Company-BLygcYrI.js → Company-qTguidK8.js} +3 -3
- package/dist/{CompanyPanel-D5Tgw6LF.js → CompanyPanel-BBC-o-k3.js} +17 -17
- package/dist/{Department-qI9OninZ.js → Department-C3mKZOnK.js} +3 -3
- package/dist/{DepartmentPanel-P-P8fPZQ.js → DepartmentPanel-CNdpOHBT.js} +25 -25
- package/dist/{DesignPanel-BxjD0AZi.js → DesignPanel-D9jrRCoG.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DN_OKxCu.js → DesignPanel.vue_vue_type_style_index_0_lang-A-Aj1Hl0.js} +6 -6
- package/dist/{DictView-PWL_Vf0T.js → DictView-CgdVkSiP.js} +15 -16
- package/dist/{InvOrganization-JXBXyn3G.js → InvOrganization-RE7s3vBq.js} +1 -1
- package/dist/{Org-DcTJn6YQ.js → Org-wXDGvTrS.js} +3 -3
- package/dist/{Preview-IKvbHI8a.js → Preview-Pvt1__BV.js} +1 -1
- package/dist/{ReportDefine-_G7ts7Ch.js → ReportDefine-xEQsgFyv.js} +1 -1
- package/dist/{ReportDesign-7h5oFklh.js → ReportDesign-jOSuEFH9.js} +9 -9
- package/dist/{ReportQuery-dj0BQUyi.js → ReportQuery-DxEmmGiN.js} +1 -1
- package/dist/{ReportQueryFrom-6WaZPg9i.js → ReportQueryFrom-CFlxfS5M.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-ChhcBPqa.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-iHpiYz8f.js} +1 -1
- package/dist/{ReportTemplate-DIvJ3RrB.js → ReportTemplate-Dtz3aet7.js} +11 -11
- package/dist/{Role-ia_3qAZU.js → Role-B_NsHIyE.js} +3 -3
- package/dist/{RoleAssign-D0zVl4y3.js → RoleAssign-C9wm4zq4.js} +8 -8
- package/dist/{RolePanel-CQxOiAzj.js → RolePanel-BlHidBR0.js} +1 -1
- package/dist/{RolePanel-BiGGmP2w.js → RolePanel-DWM9mfNs.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BYDLRS_x.js → RolePanel.vue_vue_type_script_setup_true_lang-Cn4RRzXm.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Dwv5LFbf.js → RolePanel.vue_vue_type_script_setup_true_lang-DVQ9aqb1.js} +9 -9
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-gPP4duO8.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCm-_i8O.js} +8 -8
- package/dist/{Staff-Bf_oUqF6.js → Staff-BfDc61QS.js} +3 -3
- package/dist/{StaffInfo-D5aisjx2.js → StaffInfo-BaJFo4mg.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-6PX7Bx6A.js → StaffInfo.vue_vue_type_script_setup_true_lang-Bwj4x1wu.js} +7 -7
- package/dist/{StaffPanel--zKzd4rt.js → StaffPanel-B6I2ZS6A.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BWZSIFpq.js → StaffPanel.vue_vue_type_script_setup_true_lang-vbyS4w3V.js} +2 -2
- package/dist/{SysUser-BelbESLR.js → SysUser-B_r9LYc5.js} +2 -2
- package/dist/{SysUserPanel-BixKqQcA.js → SysUserPanel-C4ajcHPV.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BhaWZEfo.js → SysUserPanel.vue_vue_type_script_setup_true_lang-8Q0VvC9B.js} +41 -37
- package/dist/{SystemMenu-D40tzcSj.js → SystemMenu-CyPG23uP.js} +10 -10
- package/dist/{UserInfo-DTyk071j.js → UserInfo-BkoGt4ib.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-p9MByikC.js → UserInfo.vue_vue_type_style_index_0_lang-DrzF1YYG.js} +10 -10
- package/dist/{childView-so5qSxr0.js → childView-9vEO8ymO.js} +1 -1
- package/dist/{childView-xL3iE1yN.js → childView-Dh0NyiQe.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CKcXpSqa.js → childView.vue_vue_type_style_index_0_lang-BOeoZuAK.js} +7 -7
- package/dist/{childView.vue_vue_type_style_index_0_lang-DK1ei5uM.js → childView.vue_vue_type_style_index_0_lang-CMOjfXBX.js} +1 -1
- package/dist/{code-rule-DC35y76w.js → code-rule-C7jI_1gJ.js} +6 -6
- package/dist/core.es.js +17 -12
- package/dist/{cron-task-BhjQ4S68.js → cron-task-Dg9DJXvv.js} +11 -11
- package/dist/{frameView-G_zhG9pf.js → frameView-CeR-_hjB.js} +1 -1
- package/dist/{index-C6ehxLLO.js → index-Bb7gIEvu.js} +739 -496
- package/dist/{layoutView-CO2U8qCQ.js → layoutView-wsLHrEeX.js} +1347 -1346
- package/dist/login-CluzzdqH.js +249 -0
- package/dist/{lov-view-Cr929NMD.js → lov-view-BvQCvwbW.js} +5 -5
- package/dist/{menuInfo-BWuROp7u.js → menuInfo-B8RLelIC.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-9nouHUjO.js → menuInfo.vue_vue_type_style_index_0_lang-DvkapEZr.js} +7 -7
- package/dist/{pda-app-CQP1sMAI.js → pda-app-D3LNmD9a.js} +19 -19
- package/dist/{resource-BDQLrMpK.js → resource-D8JA_03-.js} +7 -7
- package/dist/{su-welcome-CZysrZQ1.js → su-welcome-BjxeEKSo.js} +88 -88
- package/dist/{sys-config-BiGNMYSA.js → sys-config-sbeLk9bP.js} +6 -6
- package/dist/udp-core.css +1 -9
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/index.ts +48 -40
- 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 +223 -233
- package/src/layout/types.ts +3 -2
- package/src/main.ts +117 -113
- 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 +1 -1
- package/src/style/vxetable.scss +25 -2
- package/src/utils/index.ts +3 -1
- 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 +2 -2
- package/src/views/upms/interface/log-out.vue +101 -101
- package/src/views/urpt/design/DesignPanel.vue +507 -507
- package/types/global.d.ts +2 -8
- package/dist/login-DzyK2soP.js +0 -278
- package/dist/utogether-BRirriOz.js +0 -182
- 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
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
var ft = {
|
|
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";
|
|
12
|
+
import Et from "vue-tippy";
|
|
13
|
+
import St from "element-resize-detector";
|
|
14
|
+
var Dt = {
|
|
16
15
|
name: "en",
|
|
17
16
|
el: {
|
|
18
17
|
breadcrumb: {
|
|
@@ -190,7 +189,7 @@ var ft = {
|
|
|
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 ft = {
|
|
|
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`],
|
|
@@ -415,60 +414,98 @@ const Et = (e, t) => {
|
|
|
415
414
|
}
|
|
416
415
|
);
|
|
417
416
|
}
|
|
418
|
-
}),
|
|
417
|
+
}), jt = (e, t) => {
|
|
419
418
|
const o = e.__vccOpts || e;
|
|
420
419
|
for (const [n, a] of t)
|
|
421
420
|
o[n] = a;
|
|
422
421
|
return o;
|
|
423
422
|
};
|
|
424
|
-
function
|
|
425
|
-
const i =
|
|
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
|
|
438
|
-
function
|
|
439
|
-
e.use(
|
|
436
|
+
const zt = /* @__PURE__ */ jt(Bt, [["render", Ut]]), j = vt();
|
|
437
|
+
function _t(e) {
|
|
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
|
+
const t = e.indexOf("windows nt 5.1") > -1 || e.indexOf("windows xp") > -1;
|
|
451
|
+
if (e.indexOf("windows xp") > -1, t) return "WinXP";
|
|
452
|
+
if (e.indexOf("windows nt 6.1") > -1 || e.indexOf("windows 7") > -1) return "Win7";
|
|
453
|
+
if (e.indexOf("windows nt6.2") > -1 || e.indexOf("windows 8") > -1) return "Win8";
|
|
454
|
+
if (e.indexOf("windows nt 10.0") > -1 || e.indexOf("windows 10") > -1) return "Win10";
|
|
455
|
+
}, $n = (e) => {
|
|
456
|
+
let t = null;
|
|
457
|
+
const o = {
|
|
458
|
+
Chrome: e.indexOf("chrome") > -1 && e.indexOf("safari") > -1,
|
|
459
|
+
// Chrome浏览器
|
|
460
|
+
Firefox: e.indexOf("firefox") > -1,
|
|
461
|
+
// 火狐浏览器
|
|
462
|
+
Opera: e.indexOf("opera") > -1,
|
|
463
|
+
// Opera浏览器
|
|
464
|
+
Safari: e.indexOf("safari") > -1 && e.indexOf("chrome") == -1,
|
|
465
|
+
// safari浏览器
|
|
466
|
+
Edge: e.indexOf("edg") > -1,
|
|
467
|
+
// Edge浏览器
|
|
468
|
+
MetaSr: e.indexOf("metaSr") > -1,
|
|
469
|
+
// 搜狗浏览器
|
|
470
|
+
QQBrowser: /qqbrowser/.test(e),
|
|
471
|
+
// qq浏览器
|
|
472
|
+
WeixinBrowser: /MicroMessenger/i.test(e)
|
|
473
|
+
// 微信浏览器
|
|
474
|
+
};
|
|
475
|
+
let n = "";
|
|
476
|
+
for (const a in o)
|
|
477
|
+
o[a] && (n = e.match(/chrome\/([\d.]+)/)[1], t = a);
|
|
478
|
+
return { browser: t, browserVersion: n };
|
|
479
|
+
}, qt = {
|
|
480
|
+
onLogined: () => {
|
|
481
|
+
},
|
|
482
|
+
onBeforeLogout: () => {
|
|
483
|
+
}
|
|
484
|
+
}, Wn = () => {
|
|
485
|
+
qt.onLogined();
|
|
486
|
+
}, Vt = (e, t) => {
|
|
450
487
|
const o = [];
|
|
451
488
|
for (const n of e)
|
|
452
489
|
n[t] && o.push(n[t]);
|
|
453
490
|
return Array.from(new Set(o));
|
|
454
|
-
},
|
|
491
|
+
}, We = (e) => {
|
|
455
492
|
const t = e.replace("#", "").match(/../g);
|
|
456
493
|
for (let o = 0; o < 3; o++) t[o] = parseInt(t[o], 16);
|
|
457
494
|
return t;
|
|
458
|
-
},
|
|
495
|
+
}, Ge = (e, t, o) => {
|
|
459
496
|
const n = [e.toString(16), t.toString(16), o.toString(16)];
|
|
460
497
|
for (let a = 0; a < 3; a++)
|
|
461
498
|
n[a].length == 1 && (n[a] = `0${n[a]}`);
|
|
462
499
|
return `#${n.join("")}`;
|
|
463
|
-
},
|
|
464
|
-
const o =
|
|
500
|
+
}, Ht = (e, t) => {
|
|
501
|
+
const o = We(e);
|
|
465
502
|
for (let n = 0; n < 3; n++) o[n] = Math.floor(o[n] * (1 - t));
|
|
466
|
-
return
|
|
467
|
-
},
|
|
468
|
-
const o =
|
|
503
|
+
return Ge(o[0], o[1], o[2]);
|
|
504
|
+
}, $t = (e, t) => {
|
|
505
|
+
const o = We(e);
|
|
469
506
|
for (let n = 0; n < 3; n++) o[n] = Math.floor((255 - o[n]) * t + o[n]);
|
|
470
|
-
return
|
|
471
|
-
},
|
|
507
|
+
return Ge(o[0], o[1], o[2]);
|
|
508
|
+
}, Te = {
|
|
472
509
|
zh: {
|
|
473
510
|
message: {
|
|
474
511
|
reportCode: "报表编号",
|
|
@@ -518,13 +555,13 @@ const ne = [
|
|
|
518
555
|
isRequired: "Required"
|
|
519
556
|
}
|
|
520
557
|
}
|
|
521
|
-
},
|
|
522
|
-
zh: { ...
|
|
523
|
-
en: { ...
|
|
524
|
-
},
|
|
558
|
+
}, Wt = {
|
|
559
|
+
zh: { ...Te.zh.message },
|
|
560
|
+
en: { ...Te.en.message }
|
|
561
|
+
}, Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
525
562
|
__proto__: null,
|
|
526
|
-
default:
|
|
527
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
563
|
+
default: Wt
|
|
564
|
+
}, Symbol.toStringTag, { value: "Module" })), Kt = {
|
|
528
565
|
zh: {
|
|
529
566
|
message: {
|
|
530
567
|
taskName: "任务名称",
|
|
@@ -553,7 +590,7 @@ const ne = [
|
|
|
553
590
|
actuatorAddress: "Actuator Adress"
|
|
554
591
|
}
|
|
555
592
|
}
|
|
556
|
-
},
|
|
593
|
+
}, Jt = {
|
|
557
594
|
zh: {
|
|
558
595
|
message: {
|
|
559
596
|
flowId: "流程标识",
|
|
@@ -574,17 +611,17 @@ const ne = [
|
|
|
574
611
|
flowDesign: "Flow Design"
|
|
575
612
|
}
|
|
576
613
|
}
|
|
577
|
-
},
|
|
614
|
+
}, Ee = [Kt, Jt], Yt = {
|
|
578
615
|
zh: {
|
|
579
|
-
...Object.assign({}, ...
|
|
616
|
+
...Object.assign({}, ...Ee.map((e) => e.zh.message))
|
|
580
617
|
},
|
|
581
618
|
en: {
|
|
582
|
-
...Object.assign({}, ...
|
|
619
|
+
...Object.assign({}, ...Ee.map((e) => e.en.message))
|
|
583
620
|
}
|
|
584
|
-
},
|
|
621
|
+
}, Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
585
622
|
__proto__: null,
|
|
586
|
-
default:
|
|
587
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
623
|
+
default: Yt
|
|
624
|
+
}, Symbol.toStringTag, { value: "Module" })), Zt = {
|
|
588
625
|
zh: {
|
|
589
626
|
message: {
|
|
590
627
|
msgtemplateCode: "模板代码",
|
|
@@ -604,10 +641,10 @@ const ne = [
|
|
|
604
641
|
xx: "xxx"
|
|
605
642
|
}
|
|
606
643
|
}
|
|
607
|
-
},
|
|
644
|
+
}, Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
608
645
|
__proto__: null,
|
|
609
|
-
default:
|
|
610
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
646
|
+
default: Zt
|
|
647
|
+
}, Symbol.toStringTag, { value: "Module" })), eo = {
|
|
611
648
|
udp: {
|
|
612
649
|
dark: "深色",
|
|
613
650
|
light: "浅色",
|
|
@@ -773,7 +810,8 @@ const ne = [
|
|
|
773
810
|
upload: "上传",
|
|
774
811
|
goback: "返回",
|
|
775
812
|
disabled: "禁用",
|
|
776
|
-
enable: "启用"
|
|
813
|
+
enable: "启用",
|
|
814
|
+
bankinfo: "银行账号"
|
|
777
815
|
},
|
|
778
816
|
urpt: {
|
|
779
817
|
templateName: "模版名称",
|
|
@@ -942,7 +980,7 @@ const ne = [
|
|
|
942
980
|
lovColConfig: "值集列配置",
|
|
943
981
|
sequenceInfo: "{name}单据序列配置"
|
|
944
982
|
}
|
|
945
|
-
},
|
|
983
|
+
}, to = {
|
|
946
984
|
udp: {
|
|
947
985
|
dark: "深色",
|
|
948
986
|
light: "浅色",
|
|
@@ -1224,41 +1262,41 @@ const ne = [
|
|
|
1224
1262
|
dictDispose: "dictDispose",
|
|
1225
1263
|
isSearch: "isSearch",
|
|
1226
1264
|
isCol: "isCol"
|
|
1227
|
-
},
|
|
1228
|
-
for (const e in
|
|
1229
|
-
|
|
1230
|
-
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 = {
|
|
1231
1269
|
zh: {
|
|
1232
|
-
...
|
|
1233
|
-
message:
|
|
1270
|
+
...h.getItem(Ft),
|
|
1271
|
+
message: ue(eo, ...De.map((e) => e.zh.message))
|
|
1234
1272
|
},
|
|
1235
1273
|
en: {
|
|
1236
|
-
...
|
|
1237
|
-
message: Object.assign(
|
|
1274
|
+
...h.getItem(xt),
|
|
1275
|
+
message: Object.assign(to, ...De.map((e) => e.en.message))
|
|
1238
1276
|
}
|
|
1239
1277
|
};
|
|
1240
|
-
let
|
|
1241
|
-
function
|
|
1278
|
+
let A = null;
|
|
1279
|
+
function no(e, t = { messages: {} }) {
|
|
1242
1280
|
var o;
|
|
1243
|
-
|
|
1281
|
+
A = ct({
|
|
1244
1282
|
legacy: !1,
|
|
1245
|
-
locale: ((o =
|
|
1283
|
+
locale: ((o = h.getItem(`${b()}locale`)) == null ? void 0 : o.locale) ?? "zh",
|
|
1246
1284
|
fallbackLocale: "en",
|
|
1247
1285
|
globalInjection: !0,
|
|
1248
|
-
messages:
|
|
1249
|
-
}),
|
|
1286
|
+
messages: ue(oo, t.messages)
|
|
1287
|
+
}), k.setLanguage("zh-CN"), e.use(A);
|
|
1250
1288
|
}
|
|
1251
|
-
const
|
|
1252
|
-
function
|
|
1289
|
+
const W = () => A;
|
|
1290
|
+
function Ke(e = "", t = !0) {
|
|
1253
1291
|
if (!e)
|
|
1254
1292
|
return "";
|
|
1255
1293
|
if (typeof e == "object") {
|
|
1256
|
-
const o =
|
|
1294
|
+
const o = A.global.locale;
|
|
1257
1295
|
return e[o.value];
|
|
1258
1296
|
}
|
|
1259
|
-
return t ?
|
|
1297
|
+
return t ? A.global.t.call(A.global, e) : e;
|
|
1260
1298
|
}
|
|
1261
|
-
const
|
|
1299
|
+
const ao = q("udp-system", {
|
|
1262
1300
|
state: () => ({
|
|
1263
1301
|
baseURL: "",
|
|
1264
1302
|
userInfo: {},
|
|
@@ -1370,7 +1408,7 @@ const Kt = ee("udp-system", {
|
|
|
1370
1408
|
setDict(e) {
|
|
1371
1409
|
this.dicts = e, e == null || e.forEach((t) => {
|
|
1372
1410
|
this.dataDict[t.dictCode] = t;
|
|
1373
|
-
}),
|
|
1411
|
+
}), h.setItem("kLov", this.dataDict);
|
|
1374
1412
|
},
|
|
1375
1413
|
// 系统信息
|
|
1376
1414
|
setSystemInfo(e) {
|
|
@@ -1382,26 +1420,26 @@ const Kt = ee("udp-system", {
|
|
|
1382
1420
|
orgId: e.orgId,
|
|
1383
1421
|
organizationId: e.organizationId
|
|
1384
1422
|
};
|
|
1385
|
-
|
|
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);
|
|
1386
1424
|
}
|
|
1387
1425
|
}
|
|
1388
1426
|
});
|
|
1389
|
-
function
|
|
1390
|
-
return
|
|
1427
|
+
function G() {
|
|
1428
|
+
return ao(j);
|
|
1391
1429
|
}
|
|
1392
|
-
function
|
|
1393
|
-
return /* @__PURE__ */
|
|
1430
|
+
function ro(e, t) {
|
|
1431
|
+
return /* @__PURE__ */ B({
|
|
1394
1432
|
name: e,
|
|
1395
1433
|
components: {
|
|
1396
1434
|
asyncComponent: t
|
|
1397
1435
|
},
|
|
1398
1436
|
setup() {
|
|
1399
|
-
return () =>
|
|
1437
|
+
return () => Ue(ne("async-component"), null, null);
|
|
1400
1438
|
}
|
|
1401
1439
|
});
|
|
1402
1440
|
}
|
|
1403
|
-
const
|
|
1404
|
-
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) {
|
|
1405
1443
|
return e.forEach((t) => {
|
|
1406
1444
|
var o, n;
|
|
1407
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");
|
|
@@ -1410,16 +1448,14 @@ function L(e) {
|
|
|
1410
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);
|
|
1411
1449
|
});
|
|
1412
1450
|
}
|
|
1413
|
-
function
|
|
1414
|
-
const t =
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
);
|
|
1420
|
-
return t.forEach((o) => o.children && (o.children = Ue(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;
|
|
1421
1457
|
}
|
|
1422
|
-
function
|
|
1458
|
+
function Gn(e, t, o = "path") {
|
|
1423
1459
|
function n(a, r, i) {
|
|
1424
1460
|
for (let u = 0; u < a.length; u++) {
|
|
1425
1461
|
const d = a[u];
|
|
@@ -1433,73 +1469,73 @@ function Nn(e, t, o = "path") {
|
|
|
1433
1469
|
}
|
|
1434
1470
|
return n(t, e, []);
|
|
1435
1471
|
}
|
|
1436
|
-
function
|
|
1472
|
+
function Ye(e, t) {
|
|
1437
1473
|
let o = t.find((n) => n.path == e);
|
|
1438
1474
|
if (o)
|
|
1439
|
-
return
|
|
1475
|
+
return ge(o) ? fe(o) : o;
|
|
1440
1476
|
for (let n = 0; n < t.length; n++)
|
|
1441
|
-
if (t[n].children instanceof Array && t[n].children.length > 0 && (o =
|
|
1442
|
-
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;
|
|
1443
1479
|
return null;
|
|
1444
1480
|
}
|
|
1445
|
-
function
|
|
1446
|
-
|
|
1481
|
+
function co() {
|
|
1482
|
+
g.hasRoute("pathMatch") || g.addRoute({
|
|
1447
1483
|
path: "/:pathMatch(.*)",
|
|
1448
1484
|
name: "pathMatch",
|
|
1449
1485
|
redirect: "/error/404"
|
|
1450
1486
|
});
|
|
1451
1487
|
}
|
|
1452
|
-
function
|
|
1488
|
+
function mo() {
|
|
1453
1489
|
var t, o;
|
|
1454
|
-
const e =
|
|
1455
|
-
(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);
|
|
1456
1492
|
}
|
|
1457
|
-
function
|
|
1493
|
+
function Fe(e) {
|
|
1458
1494
|
if (e != null && e.length) {
|
|
1459
1495
|
const t = e.findIndex((n) => n.menuCode === "SysHome");
|
|
1460
1496
|
if (t !== -1) {
|
|
1461
1497
|
const n = [], a = [];
|
|
1462
1498
|
e[t].children.forEach((r) => {
|
|
1463
1499
|
r.menuCategory !== "1" ? n.push(r) : a.push(r);
|
|
1464
|
-
}), e[t].children = a,
|
|
1500
|
+
}), e[t].children = a, G().setHomeMenus(n);
|
|
1465
1501
|
}
|
|
1466
|
-
const o =
|
|
1467
|
-
|
|
1468
|
-
const { options: a } =
|
|
1469
|
-
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));
|
|
1470
1506
|
});
|
|
1471
1507
|
}
|
|
1472
|
-
|
|
1473
|
-
...
|
|
1474
|
-
...
|
|
1508
|
+
T().changeSetting(e), x().getMultiTagsCache || x().handleTags("equal", [
|
|
1509
|
+
...V,
|
|
1510
|
+
...T().flatteningRoutes.filter((t) => {
|
|
1475
1511
|
var o;
|
|
1476
1512
|
return (o = t == null ? void 0 : t.meta) == null ? void 0 : o.fixedTag;
|
|
1477
1513
|
})
|
|
1478
|
-
]),
|
|
1514
|
+
]), co();
|
|
1479
1515
|
}
|
|
1480
|
-
async function
|
|
1516
|
+
async function po(e) {
|
|
1481
1517
|
let t = [];
|
|
1482
1518
|
const o = `U-${e}-ROUTES`;
|
|
1483
|
-
return
|
|
1484
|
-
|
|
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) || []));
|
|
1485
1521
|
}), t != null && t.length ? new Promise((n) => {
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
}), n(
|
|
1522
|
+
Fe(t), ke({ userName: e }).then((a) => {
|
|
1523
|
+
ee.setItem(o, a);
|
|
1524
|
+
}), n(g);
|
|
1489
1525
|
}) : new Promise((n) => {
|
|
1490
|
-
|
|
1491
|
-
|
|
1526
|
+
ke({ userName: e }).then((a) => {
|
|
1527
|
+
Fe(z(a, !0)), ee.setItem(o, a), n(g);
|
|
1492
1528
|
});
|
|
1493
1529
|
});
|
|
1494
1530
|
}
|
|
1495
|
-
function
|
|
1531
|
+
function Z(e) {
|
|
1496
1532
|
if (e.length === 0) return e;
|
|
1497
|
-
let t =
|
|
1533
|
+
let t = le(e);
|
|
1498
1534
|
for (let o = 0; o < t.length; o++)
|
|
1499
1535
|
t[o].children && (t = t.slice(0, o + 1).concat(t[o].children, t.slice(o + 1)));
|
|
1500
1536
|
return t;
|
|
1501
1537
|
}
|
|
1502
|
-
function
|
|
1538
|
+
function Qe(e) {
|
|
1503
1539
|
if (e.length === 0) return e;
|
|
1504
1540
|
const t = [];
|
|
1505
1541
|
return e.forEach((o) => {
|
|
@@ -1513,57 +1549,57 @@ function $e(e) {
|
|
|
1513
1549
|
}) : t[0].children.push({ ...o });
|
|
1514
1550
|
}), t;
|
|
1515
1551
|
}
|
|
1516
|
-
function
|
|
1552
|
+
function ho({ name: e }, t) {
|
|
1517
1553
|
switch (t) {
|
|
1518
1554
|
case "add":
|
|
1519
|
-
|
|
1555
|
+
T().cacheOperate({ mode: "add", name: e });
|
|
1520
1556
|
break;
|
|
1521
1557
|
case "delete":
|
|
1522
|
-
|
|
1558
|
+
T().cacheOperate({ mode: "delete", name: e });
|
|
1523
1559
|
break;
|
|
1524
1560
|
case "refresh":
|
|
1525
|
-
|
|
1561
|
+
T().cacheOperate({ mode: "refresh", name: e });
|
|
1526
1562
|
break;
|
|
1527
1563
|
default:
|
|
1528
|
-
|
|
1529
|
-
|
|
1564
|
+
T().cacheOperate({ mode: "delete", name: e }), Tt(() => {
|
|
1565
|
+
T().cacheOperate({ mode: "add", name: e });
|
|
1530
1566
|
}, 100);
|
|
1531
1567
|
}
|
|
1532
1568
|
}
|
|
1533
|
-
const
|
|
1569
|
+
const L = {
|
|
1534
1570
|
zh: {},
|
|
1535
1571
|
en: {}
|
|
1536
|
-
},
|
|
1572
|
+
}, Ze = (e) => {
|
|
1537
1573
|
var n;
|
|
1538
|
-
const t =
|
|
1574
|
+
const t = Fo();
|
|
1539
1575
|
if (!e || !e.length) return;
|
|
1540
1576
|
const o = Object.keys(t);
|
|
1541
1577
|
for (let a = 0; a < e.length; a++) {
|
|
1542
1578
|
const r = e[a];
|
|
1543
1579
|
r != null && r.children && r.children.length && !r.redirect && (r.redirect = r.children[0].path);
|
|
1544
1580
|
const { icon: i, permissionCode: u, extraIcon: d, frameSrc: s } = r;
|
|
1545
|
-
if (r.meta = { keepAlive: !0, rank: r.sort, title: `${r.i18nField}` }, Object.assign(r.meta, { icon: i, permissionCode: u, extraIcon: d, frameSrc: s }),
|
|
1546
|
-
r.component =
|
|
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)
|
|
1582
|
+
r.component = lo;
|
|
1547
1583
|
else if ((n = r.meta) != null && n.frameSrc)
|
|
1548
|
-
r.component =
|
|
1584
|
+
r.component = uo;
|
|
1549
1585
|
else if (r.menuCategory === "10") {
|
|
1550
|
-
const m = o.findIndex((
|
|
1551
|
-
r.component =
|
|
1586
|
+
const m = o.findIndex((f) => f.includes("lowcode-contain"));
|
|
1587
|
+
r.component = ro(
|
|
1552
1588
|
r.name,
|
|
1553
|
-
|
|
1589
|
+
it(() => import(
|
|
1554
1590
|
/* @vite-ignore */
|
|
1555
1591
|
o[m]
|
|
1556
1592
|
))
|
|
1557
1593
|
), Object.assign(r.meta, { moduleType: r.moduleType });
|
|
1558
1594
|
} else if (r.menuCategory !== "5") {
|
|
1559
|
-
const m = o.findIndex((
|
|
1595
|
+
const m = o.findIndex((f) => f.includes(r.path));
|
|
1560
1596
|
r.component = t[o[m]];
|
|
1561
1597
|
}
|
|
1562
|
-
r != null && r.children && r.children.length ?
|
|
1598
|
+
r != null && r.children && r.children.length ? Ze(r.children) : delete r.children;
|
|
1563
1599
|
}
|
|
1564
1600
|
return e;
|
|
1565
1601
|
};
|
|
1566
|
-
function
|
|
1602
|
+
function Kn(e, t = !0) {
|
|
1567
1603
|
const o = x().multiTags.findIndex((n) => {
|
|
1568
1604
|
if (e.query) {
|
|
1569
1605
|
if (e.path === n.path)
|
|
@@ -1571,18 +1607,18 @@ function Pn(e, t = !0) {
|
|
|
1571
1607
|
} else
|
|
1572
1608
|
return e.path === n.path;
|
|
1573
1609
|
});
|
|
1574
|
-
if (x().handleTags("splice", "", { startIndex: o, length: 1 }),
|
|
1610
|
+
if (x().handleTags("splice", "", { startIndex: o, length: 1 }), ho(e.matched, "delete"), t) {
|
|
1575
1611
|
const n = x().handleTags("slice");
|
|
1576
|
-
|
|
1612
|
+
g.push({
|
|
1577
1613
|
path: n[0].path,
|
|
1578
1614
|
query: n[0].query
|
|
1579
1615
|
});
|
|
1580
1616
|
}
|
|
1581
1617
|
}
|
|
1582
|
-
const
|
|
1618
|
+
const fo = q("udp-permission", {
|
|
1583
1619
|
state: () => ({
|
|
1584
1620
|
// 静态路由生成的菜单
|
|
1585
|
-
constantMenus:
|
|
1621
|
+
constantMenus: To,
|
|
1586
1622
|
// 整体路由生成的菜单(静态、动态)
|
|
1587
1623
|
wholeMenus: [],
|
|
1588
1624
|
// 深拷贝一个菜单树,与导航菜单不冲突
|
|
@@ -1601,12 +1637,12 @@ const oo = ee("udp-permission", {
|
|
|
1601
1637
|
actions: {
|
|
1602
1638
|
asyncActionRoutes(e = []) {
|
|
1603
1639
|
if (this.wholeMenus.length > 0) return;
|
|
1604
|
-
const t =
|
|
1640
|
+
const t = gt(e, (n) => n.menuCode === "SysHome"), o = z(this.constantMenus, !0);
|
|
1605
1641
|
if (t !== -1) {
|
|
1606
1642
|
const n = this.constantMenus.find((a) => a.name === "home");
|
|
1607
1643
|
e[t].children && n.children.push(...e[t].children), e.splice(t, 1);
|
|
1608
1644
|
}
|
|
1609
|
-
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;
|
|
1610
1646
|
},
|
|
1611
1647
|
async changeSetting(e) {
|
|
1612
1648
|
await this.asyncActionRoutes(e);
|
|
@@ -1617,28 +1653,29 @@ const oo = ee("udp-permission", {
|
|
|
1617
1653
|
setWholeMenus(e) {
|
|
1618
1654
|
this.wholeMenus = e;
|
|
1619
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
|
+
},
|
|
1620
1663
|
cacheOperate({ mode: e, name: t }) {
|
|
1621
1664
|
const o = this.cachePageList.findIndex((n) => n === t);
|
|
1622
1665
|
switch (e) {
|
|
1623
1666
|
case "refresh":
|
|
1624
|
-
this.cachePageList = this.cachePageList.filter((n) => n !== t);
|
|
1667
|
+
this.cachePageList = this.cachePageList.filter((n) => n !== t), this.clearCache();
|
|
1625
1668
|
break;
|
|
1626
1669
|
case "add":
|
|
1627
1670
|
this.cachePageList.push(t);
|
|
1628
1671
|
break;
|
|
1629
1672
|
case "delete":
|
|
1630
|
-
o !== -1 && this.cachePageList.splice(o, 1);
|
|
1673
|
+
o !== -1 && this.cachePageList.splice(o, 1), this.clearCache();
|
|
1631
1674
|
break;
|
|
1632
1675
|
case "reset":
|
|
1633
1676
|
this.cachePageList = [];
|
|
1634
1677
|
break;
|
|
1635
1678
|
}
|
|
1636
|
-
rt(() => {
|
|
1637
|
-
let n = this.cachePageList.length;
|
|
1638
|
-
const a = At(x().multiTags, "name");
|
|
1639
|
-
for (; n > 0; )
|
|
1640
|
-
a.findIndex((r) => r === this.cachePageList[n - 1]) === -1 && this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[n - 1]), 1), n--;
|
|
1641
|
-
}, 500)();
|
|
1642
1679
|
},
|
|
1643
1680
|
/** 清空缓存页面 */
|
|
1644
1681
|
clearAllCachePage() {
|
|
@@ -1646,19 +1683,19 @@ const oo = ee("udp-permission", {
|
|
|
1646
1683
|
}
|
|
1647
1684
|
}
|
|
1648
1685
|
});
|
|
1649
|
-
function
|
|
1650
|
-
return
|
|
1686
|
+
function T() {
|
|
1687
|
+
return fo(j);
|
|
1651
1688
|
}
|
|
1652
|
-
const
|
|
1689
|
+
const Xe = q("udp-multiTags", {
|
|
1653
1690
|
state: () => {
|
|
1654
1691
|
var e, t;
|
|
1655
1692
|
return {
|
|
1656
1693
|
// 存储标签页信息(路由信息)
|
|
1657
|
-
multiTags: (e =
|
|
1694
|
+
multiTags: (e = h.getItem(`${b()}configure`)) != null && e.multiTagsCache ? h.getItem(`${b()}tags`) : [...V, ...T().flatteningRoutes.filter((o) => {
|
|
1658
1695
|
var n;
|
|
1659
1696
|
return (n = o == null ? void 0 : o.meta) == null ? void 0 : n.fixedTag;
|
|
1660
1697
|
})],
|
|
1661
|
-
multiTagsCache: (t =
|
|
1698
|
+
multiTagsCache: (t = h.getItem(`${b()}configure`)) == null ? void 0 : t.multiTagsCache
|
|
1662
1699
|
};
|
|
1663
1700
|
},
|
|
1664
1701
|
getters: {
|
|
@@ -1668,10 +1705,10 @@ const no = ee("udp-multiTags", {
|
|
|
1668
1705
|
},
|
|
1669
1706
|
actions: {
|
|
1670
1707
|
multiTagsCacheChange(e) {
|
|
1671
|
-
this.multiTagsCache = e, e ?
|
|
1708
|
+
this.multiTagsCache = e, e ? h.setItem(`${b()}tags`, this.multiTags) : h.removeItem(`${b()}tags`);
|
|
1672
1709
|
},
|
|
1673
1710
|
tagsCache(e) {
|
|
1674
|
-
this.getMultiTagsCache &&
|
|
1711
|
+
this.getMultiTagsCache && h.setItem(`${b()}tags`, e);
|
|
1675
1712
|
},
|
|
1676
1713
|
handleTags(e, t, o) {
|
|
1677
1714
|
var n, a, r, i, u, d;
|
|
@@ -1682,13 +1719,13 @@ const no = ee("udp-multiTags", {
|
|
|
1682
1719
|
case "push":
|
|
1683
1720
|
{
|
|
1684
1721
|
const s = t;
|
|
1685
|
-
if ((n = s == null ? void 0 : s.meta) != null && n.hiddenTag ||
|
|
1686
|
-
const m = s.path
|
|
1687
|
-
if (p &&
|
|
1688
|
-
const
|
|
1689
|
-
if (
|
|
1690
|
-
const
|
|
1691
|
-
|
|
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);
|
|
1692
1729
|
}
|
|
1693
1730
|
this.multiTags.push(t), this.tagsCache(this.multiTags);
|
|
1694
1731
|
}
|
|
@@ -1709,12 +1746,12 @@ const no = ee("udp-multiTags", {
|
|
|
1709
1746
|
}
|
|
1710
1747
|
});
|
|
1711
1748
|
function x() {
|
|
1712
|
-
return
|
|
1749
|
+
return Xe(j);
|
|
1713
1750
|
}
|
|
1714
|
-
const
|
|
1751
|
+
const go = () => import("./layoutView-wsLHrEeX.js"), yo = {
|
|
1715
1752
|
path: "/",
|
|
1716
1753
|
name: "home",
|
|
1717
|
-
component:
|
|
1754
|
+
component: go,
|
|
1718
1755
|
redirect: "/welcome",
|
|
1719
1756
|
meta: {
|
|
1720
1757
|
icon: "home-filled",
|
|
@@ -1725,17 +1762,17 @@ const ao = () => import("./layoutView-CO2U8qCQ.js"), ro = {
|
|
|
1725
1762
|
{
|
|
1726
1763
|
path: "/welcome",
|
|
1727
1764
|
name: "SuHome",
|
|
1728
|
-
component: () => import("./su-welcome-
|
|
1765
|
+
component: () => import("./su-welcome-BjxeEKSo.js"),
|
|
1729
1766
|
meta: {
|
|
1730
1767
|
title: "message.udp.home",
|
|
1731
1768
|
keepAlive: !0
|
|
1732
1769
|
}
|
|
1733
1770
|
}
|
|
1734
1771
|
]
|
|
1735
|
-
},
|
|
1772
|
+
}, wo = () => import("./layoutView-wsLHrEeX.js"), bo = {
|
|
1736
1773
|
path: "/error",
|
|
1737
1774
|
name: "error",
|
|
1738
|
-
component:
|
|
1775
|
+
component: wo,
|
|
1739
1776
|
redirect: "/error/403",
|
|
1740
1777
|
meta: {
|
|
1741
1778
|
showLink: !1,
|
|
@@ -1747,17 +1784,17 @@ const ao = () => import("./layoutView-CO2U8qCQ.js"), ro = {
|
|
|
1747
1784
|
{
|
|
1748
1785
|
path: "/error/403",
|
|
1749
1786
|
name: "403",
|
|
1750
|
-
component: () => import("./403-
|
|
1787
|
+
component: () => import("./403-C3cfjZIT.js"),
|
|
1751
1788
|
meta: {
|
|
1752
1789
|
title: "message.udp.fourZeroThree"
|
|
1753
1790
|
}
|
|
1754
1791
|
}
|
|
1755
1792
|
]
|
|
1756
|
-
},
|
|
1793
|
+
}, Co = () => import("./layoutView-wsLHrEeX.js"), _ = [
|
|
1757
1794
|
{
|
|
1758
1795
|
path: "/login",
|
|
1759
1796
|
name: "login",
|
|
1760
|
-
component: () => import("./login-
|
|
1797
|
+
component: () => import("./login-CluzzdqH.js"),
|
|
1761
1798
|
meta: {
|
|
1762
1799
|
title: "message.udp.login",
|
|
1763
1800
|
showLink: !1
|
|
@@ -1766,7 +1803,7 @@ const ao = () => import("./layoutView-CO2U8qCQ.js"), ro = {
|
|
|
1766
1803
|
{
|
|
1767
1804
|
path: "/error/404",
|
|
1768
1805
|
name: "404",
|
|
1769
|
-
component: () => import("./404-
|
|
1806
|
+
component: () => import("./404-Bg3j7QIo.js"),
|
|
1770
1807
|
meta: {
|
|
1771
1808
|
title: "message.udp.fourZeroFour",
|
|
1772
1809
|
showLink: !1
|
|
@@ -1775,7 +1812,7 @@ const ao = () => import("./layoutView-CO2U8qCQ.js"), ro = {
|
|
|
1775
1812
|
{
|
|
1776
1813
|
path: "/error/500",
|
|
1777
1814
|
name: "500",
|
|
1778
|
-
component: () => import("./500-
|
|
1815
|
+
component: () => import("./500-CMT7Zyy7.js"),
|
|
1779
1816
|
meta: {
|
|
1780
1817
|
title: "message.udp.five",
|
|
1781
1818
|
showLink: !1
|
|
@@ -1784,7 +1821,7 @@ const ao = () => import("./layoutView-CO2U8qCQ.js"), ro = {
|
|
|
1784
1821
|
{
|
|
1785
1822
|
path: "/redirect",
|
|
1786
1823
|
name: "redirect",
|
|
1787
|
-
component:
|
|
1824
|
+
component: Co,
|
|
1788
1825
|
meta: {
|
|
1789
1826
|
icon: "home-filled",
|
|
1790
1827
|
title: "message.udp.home",
|
|
@@ -1800,118 +1837,160 @@ const ao = () => import("./layoutView-CO2U8qCQ.js"), ro = {
|
|
|
1800
1837
|
}
|
|
1801
1838
|
]
|
|
1802
1839
|
}
|
|
1803
|
-
],
|
|
1804
|
-
"../views/organization/company/Company.vue": () => import("./Company-
|
|
1805
|
-
"../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-
|
|
1806
|
-
"../views/organization/department/Department.vue": () => import("./Department-
|
|
1807
|
-
"../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-
|
|
1808
|
-
"../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-
|
|
1809
|
-
"../views/organization/org/Org.vue": () => import("./Org-
|
|
1810
|
-
"../views/organization/staff/Staff.vue": () => import("./Staff-
|
|
1811
|
-
"../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-
|
|
1812
|
-
"../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel
|
|
1813
|
-
"../views/system/cron/cron-task.vue": () => import("./cron-task-
|
|
1840
|
+
], vo = /* @__PURE__ */ Object.assign({
|
|
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"),
|
|
1814
1851
|
"../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-BeBNiwqc.js"),
|
|
1815
|
-
"../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-
|
|
1816
|
-
"../views/system/menu/menuInfo.vue": () => import("./menuInfo-
|
|
1817
|
-
"../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-
|
|
1818
|
-
"../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-
|
|
1819
|
-
"../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-
|
|
1820
|
-
"../views/system/role/Role.vue": () => import("./Role-
|
|
1821
|
-
"../views/system/role/RolePanel.vue": () => import("./RolePanel-
|
|
1822
|
-
"../views/system/role/UserInfo.vue": () => import("./UserInfo-
|
|
1823
|
-
"../views/system/sys/sys-config.vue": () => import("./sys-config-
|
|
1824
|
-
"../views/system/sysUser/SysUser.vue": () => import("./SysUser-
|
|
1825
|
-
"../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-
|
|
1826
|
-
"../views/uapp/pda/pda-app.vue": () => import("./pda-app-
|
|
1827
|
-
"../views/udev/coderule/code-rule.vue": () => import("./code-rule-
|
|
1828
|
-
"../views/udev/dict/DictView.vue": () => import("./DictView-
|
|
1829
|
-
"../views/udev/dict/childView.vue": () => import("./childView-
|
|
1830
|
-
"../views/udev/lov/childView.vue": () => import("./childView-
|
|
1831
|
-
"../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"),
|
|
1832
1869
|
"../views/upms/interface/log-in.vue": () => import("./log-in-e7D5Ss1P.js"),
|
|
1833
1870
|
"../views/upms/interface/log-out.vue": () => import("./log-out-D1b4VRMZ.js"),
|
|
1834
1871
|
"../views/upms/user/login-log.vue": () => import("./login-log-kqKzKTto.js"),
|
|
1835
1872
|
"../views/urpt/dataSet/DataSet.vue": () => import("./DataSet-DT-rGICv.js"),
|
|
1836
|
-
"../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-
|
|
1837
|
-
"../views/urpt/design/Preview.vue": () => import("./Preview-
|
|
1838
|
-
"../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-
|
|
1839
|
-
"../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-
|
|
1840
|
-
"../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-
|
|
1841
|
-
"../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-
|
|
1842
|
-
"../views/urpt/static-resource/resource.vue": () => import("./resource-
|
|
1843
|
-
"../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-
|
|
1844
|
-
}),
|
|
1845
|
-
|
|
1846
|
-
),
|
|
1847
|
-
function
|
|
1848
|
-
|
|
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) => {
|
|
1849
1889
|
const { name: t, meta: o } = e;
|
|
1850
|
-
t &&
|
|
1851
|
-
}),
|
|
1890
|
+
t && g.hasRoute(t) && (o != null && o.backstage) && (g.removeRoute(t), g.options.routes = Qe(Z(le(H(ce)))));
|
|
1891
|
+
}), T().clearAllCachePage(), So();
|
|
1852
1892
|
}
|
|
1853
|
-
let
|
|
1854
|
-
function
|
|
1855
|
-
|
|
1893
|
+
let re = null, g = null;
|
|
1894
|
+
function ko(e, t) {
|
|
1895
|
+
re = e, g = t, Object.assign(re, vo);
|
|
1856
1896
|
}
|
|
1857
|
-
function
|
|
1858
|
-
return
|
|
1897
|
+
function Fo() {
|
|
1898
|
+
return re;
|
|
1859
1899
|
}
|
|
1860
|
-
const
|
|
1900
|
+
const xo = ["/login"], Zn = (e, t, o) => {
|
|
1861
1901
|
var i, u, d;
|
|
1862
|
-
const n =
|
|
1902
|
+
const n = U.get(He), a = _e(e == null ? void 0 : e.name);
|
|
1863
1903
|
function r() {
|
|
1864
|
-
|
|
1904
|
+
xo.includes(e.fullPath) ? o(t.fullPath) : o();
|
|
1865
1905
|
}
|
|
1866
1906
|
if (t != null && t.name && (t == null ? void 0 : t.name) !== "login") {
|
|
1867
1907
|
const s = (i = e.matched.find((m) => m.path === e.path || m.name === e.name && e.params)) == null ? void 0 : i.components;
|
|
1868
|
-
a ? (
|
|
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" });
|
|
1869
1909
|
} else
|
|
1870
|
-
|
|
1910
|
+
T().wholeMenus.length === 0 && po(n).then((s) => {
|
|
1871
1911
|
var m;
|
|
1872
1912
|
if (!x().getMultiTagsCache) {
|
|
1873
|
-
const { path:
|
|
1874
|
-
if (
|
|
1875
|
-
const { path: c, name: l, meta:
|
|
1876
|
-
x().handleTags("push", { path: c, name: l, meta:
|
|
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 });
|
|
1877
1917
|
}
|
|
1878
1918
|
}
|
|
1879
|
-
|
|
1919
|
+
bt(e.name) && s.push(e.fullPath);
|
|
1880
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();
|
|
1881
1921
|
};
|
|
1882
|
-
|
|
1883
|
-
|
|
1922
|
+
pt(Ve, { serviceApi: Q(), i18n: Ke });
|
|
1923
|
+
Mo();
|
|
1924
|
+
const Io = {
|
|
1884
1925
|
// 对组件内置的提示语进行国际化翻译
|
|
1885
1926
|
// @ts-ignore
|
|
1886
|
-
i18n: (e, t) =>
|
|
1927
|
+
i18n: (e, t) => W().global.t(e, t),
|
|
1887
1928
|
// 可选,对参数中的列头、校验提示..等进行自动翻译(只对支持国际化的有效)
|
|
1888
1929
|
translate(e) {
|
|
1889
|
-
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;
|
|
1890
1931
|
}
|
|
1891
1932
|
};
|
|
1892
|
-
function
|
|
1893
|
-
|
|
1933
|
+
function Po(e = {}) {
|
|
1934
|
+
Ve.setConfig(ue(Io, e)), k.interceptor.add("event.clearEdit", {
|
|
1894
1935
|
tableInterceptorMethod(t) {
|
|
1895
1936
|
const { $event: o } = t;
|
|
1896
1937
|
if (o.target.className.indexOf("vxe-table--ignore-clear") > -1) return !1;
|
|
1897
1938
|
}
|
|
1898
1939
|
});
|
|
1899
1940
|
}
|
|
1900
|
-
function
|
|
1901
|
-
|
|
1941
|
+
function No(e) {
|
|
1942
|
+
k.setTheme(e);
|
|
1902
1943
|
}
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
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
|
+
});
|
|
1981
|
+
}
|
|
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 });
|
|
1907
1986
|
return e;
|
|
1908
|
-
},
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
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 {
|
|
1912
1991
|
static install(e, t) {
|
|
1913
1992
|
let { nameSpace: o = this._nameSpace, memory: n } = t;
|
|
1914
|
-
return n && this.clearAll(o, n), new
|
|
1993
|
+
return n && this.clearAll(o, n), new J(e, t);
|
|
1915
1994
|
}
|
|
1916
1995
|
static clearAll(e, t) {
|
|
1917
1996
|
Object.keys(t).forEach((o) => {
|
|
@@ -1929,25 +2008,25 @@ var U = class {
|
|
|
1929
2008
|
if (Object.prototype.hasOwnProperty.call(window.localStorage, this._getStaticKey(t, e))) return JSON.parse(window.localStorage.getItem(this._getStaticKey(t, e)));
|
|
1930
2009
|
}
|
|
1931
2010
|
constructor(e, t) {
|
|
1932
|
-
let o =
|
|
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;
|
|
1933
2012
|
Object.keys(u).length === 0 && console.warn("key cannot be empty"), Object.keys(u).forEach((s) => {
|
|
1934
2013
|
let m = u[s];
|
|
1935
|
-
o.set(i(s), m), Reflect.defineProperty(u, s, { get: () => o.get(i(s)), set: (
|
|
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]);
|
|
1936
2015
|
});
|
|
1937
2016
|
let d = n === 3 ? e.config.globalProperties : e.prototype;
|
|
1938
2017
|
Reflect.defineProperty(d, "$storage", { get: () => u });
|
|
1939
2018
|
}
|
|
1940
|
-
},
|
|
1941
|
-
|
|
1942
|
-
const
|
|
1943
|
-
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(
|
|
1944
2023
|
{
|
|
1945
2024
|
// 国际化 默认中文zh
|
|
1946
|
-
locale:
|
|
2025
|
+
locale: M.getData("locale", o) ?? {
|
|
1947
2026
|
locale: t.Locale ?? "zh"
|
|
1948
2027
|
},
|
|
1949
2028
|
// layout模式以及主题
|
|
1950
|
-
layout:
|
|
2029
|
+
layout: M.getData("layout", o) ?? {
|
|
1951
2030
|
layout: t.Layout ?? "vertical",
|
|
1952
2031
|
theme: t.Theme ?? "default",
|
|
1953
2032
|
darkMode: t.DarkMode ?? !1,
|
|
@@ -1958,7 +2037,7 @@ const So = (e, t) => {
|
|
|
1958
2037
|
overallStyle: t.OverallStyle ?? "light"
|
|
1959
2038
|
// 整体风格(浅色:light、深色:dark、自动:system)
|
|
1960
2039
|
},
|
|
1961
|
-
configure:
|
|
2040
|
+
configure: M.getData("configure", o) ?? {
|
|
1962
2041
|
grey: t.Grey ?? !1,
|
|
1963
2042
|
weak: t.Weak ?? !1,
|
|
1964
2043
|
hideTabs: t.HideTabs ?? !1,
|
|
@@ -1966,21 +2045,21 @@ const So = (e, t) => {
|
|
|
1966
2045
|
showModel: t.ShowModel ?? "smart",
|
|
1967
2046
|
multiTagsCache: t.MultiTagsCache ?? !1
|
|
1968
2047
|
},
|
|
1969
|
-
cnd:
|
|
2048
|
+
cnd: M.getData("cnd", o) ?? {}
|
|
1970
2049
|
},
|
|
1971
2050
|
t.MultiTagsCache ? {
|
|
1972
2051
|
// 默认显示首页tag
|
|
1973
|
-
tags:
|
|
2052
|
+
tags: M.getData("tags", o) ?? V
|
|
1974
2053
|
} : {}
|
|
1975
2054
|
);
|
|
1976
|
-
e.use(
|
|
1977
|
-
},
|
|
2055
|
+
e.use(M, { nameSpace: o, memory: n });
|
|
2056
|
+
}, _o = (e) => {
|
|
1978
2057
|
var a;
|
|
1979
2058
|
if (!e) return !0;
|
|
1980
|
-
const t = (a =
|
|
2059
|
+
const t = (a = g.currentRoute.value.meta) == null ? void 0 : a.permissionCode;
|
|
1981
2060
|
if (!t) return !0;
|
|
1982
|
-
|
|
1983
|
-
const o =
|
|
2061
|
+
Ct(e) || (e = [e]);
|
|
2062
|
+
const o = T().getButtonAuth;
|
|
1984
2063
|
if (!o) return !0;
|
|
1985
2064
|
let n = !1;
|
|
1986
2065
|
return e.forEach((r) => {
|
|
@@ -1989,38 +2068,38 @@ const So = (e, t) => {
|
|
|
1989
2068
|
n = o.includes(i);
|
|
1990
2069
|
}
|
|
1991
2070
|
}), n;
|
|
1992
|
-
},
|
|
2071
|
+
}, et = Object.freeze(
|
|
1993
2072
|
{
|
|
1994
2073
|
left: 0,
|
|
1995
2074
|
top: 0,
|
|
1996
2075
|
width: 16,
|
|
1997
2076
|
height: 16
|
|
1998
2077
|
}
|
|
1999
|
-
),
|
|
2078
|
+
), Y = Object.freeze({
|
|
2000
2079
|
rotate: 0,
|
|
2001
2080
|
vFlip: !1,
|
|
2002
2081
|
hFlip: !1
|
|
2003
|
-
}),
|
|
2004
|
-
...
|
|
2005
|
-
...
|
|
2006
|
-
}),
|
|
2007
|
-
...
|
|
2082
|
+
}), pe = Object.freeze({
|
|
2083
|
+
...et,
|
|
2084
|
+
...Y
|
|
2085
|
+
}), se = Object.freeze({
|
|
2086
|
+
...pe,
|
|
2008
2087
|
body: "",
|
|
2009
2088
|
hidden: !1
|
|
2010
2089
|
});
|
|
2011
|
-
function
|
|
2090
|
+
function qo(e, t) {
|
|
2012
2091
|
const o = {};
|
|
2013
2092
|
!e.hFlip != !t.hFlip && (o.hFlip = !0), !e.vFlip != !t.vFlip && (o.vFlip = !0);
|
|
2014
2093
|
const n = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
2015
2094
|
return n && (o.rotate = n), o;
|
|
2016
2095
|
}
|
|
2017
|
-
function
|
|
2018
|
-
const o =
|
|
2019
|
-
for (const n in
|
|
2020
|
-
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]);
|
|
2021
2100
|
return o;
|
|
2022
2101
|
}
|
|
2023
|
-
function
|
|
2102
|
+
function Vo(e, t) {
|
|
2024
2103
|
const o = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null);
|
|
2025
2104
|
function r(i) {
|
|
2026
2105
|
if (o[i])
|
|
@@ -2034,48 +2113,48 @@ function ko(e, t) {
|
|
|
2034
2113
|
}
|
|
2035
2114
|
return Object.keys(o).concat(Object.keys(n)).forEach(r), a;
|
|
2036
2115
|
}
|
|
2037
|
-
function
|
|
2116
|
+
function Ho(e, t, o) {
|
|
2038
2117
|
const n = e.icons, a = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
2039
2118
|
let r = {};
|
|
2040
2119
|
function i(u) {
|
|
2041
|
-
r =
|
|
2120
|
+
r = Ie(
|
|
2042
2121
|
n[u] || a[u],
|
|
2043
2122
|
r
|
|
2044
2123
|
);
|
|
2045
2124
|
}
|
|
2046
|
-
return i(t), o.forEach(i),
|
|
2125
|
+
return i(t), o.forEach(i), Ie(e, r);
|
|
2047
2126
|
}
|
|
2048
|
-
function
|
|
2127
|
+
function $o(e, t) {
|
|
2049
2128
|
const o = [];
|
|
2050
2129
|
if (typeof e != "object" || typeof e.icons != "object")
|
|
2051
2130
|
return o;
|
|
2052
2131
|
e.not_found instanceof Array && e.not_found.forEach((a) => {
|
|
2053
2132
|
t(a, null), o.push(a);
|
|
2054
2133
|
});
|
|
2055
|
-
const n =
|
|
2134
|
+
const n = Vo(e);
|
|
2056
2135
|
for (const a in n) {
|
|
2057
2136
|
const r = n[a];
|
|
2058
|
-
r && (t(a,
|
|
2137
|
+
r && (t(a, Ho(e, a, r)), o.push(a));
|
|
2059
2138
|
}
|
|
2060
2139
|
return o;
|
|
2061
2140
|
}
|
|
2062
|
-
const
|
|
2141
|
+
const Wo = {
|
|
2063
2142
|
provider: "",
|
|
2064
2143
|
aliases: {},
|
|
2065
2144
|
not_found: {},
|
|
2066
|
-
...
|
|
2145
|
+
...et
|
|
2067
2146
|
};
|
|
2068
|
-
function
|
|
2147
|
+
function te(e, t) {
|
|
2069
2148
|
for (const o in t)
|
|
2070
2149
|
if (o in e && typeof e[o] != typeof t[o])
|
|
2071
2150
|
return !1;
|
|
2072
2151
|
return !0;
|
|
2073
2152
|
}
|
|
2074
|
-
function
|
|
2153
|
+
function Go(e) {
|
|
2075
2154
|
if (typeof e != "object" || e === null)
|
|
2076
2155
|
return null;
|
|
2077
2156
|
const t = e;
|
|
2078
|
-
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))
|
|
2079
2158
|
return null;
|
|
2080
2159
|
const o = t.icons;
|
|
2081
2160
|
for (const a in o) {
|
|
@@ -2084,9 +2163,9 @@ function Po(e) {
|
|
|
2084
2163
|
// Name cannot be empty
|
|
2085
2164
|
!a || // Must have body
|
|
2086
2165
|
typeof r.body != "string" || // Check other props
|
|
2087
|
-
!
|
|
2166
|
+
!te(
|
|
2088
2167
|
r,
|
|
2089
|
-
|
|
2168
|
+
se
|
|
2090
2169
|
)
|
|
2091
2170
|
)
|
|
2092
2171
|
return null;
|
|
@@ -2098,37 +2177,37 @@ function Po(e) {
|
|
|
2098
2177
|
// Name cannot be empty
|
|
2099
2178
|
!a || // Parent must be set and point to existing icon
|
|
2100
2179
|
typeof i != "string" || !o[i] && !n[i] || // Check other props
|
|
2101
|
-
!
|
|
2180
|
+
!te(
|
|
2102
2181
|
r,
|
|
2103
|
-
|
|
2182
|
+
se
|
|
2104
2183
|
)
|
|
2105
2184
|
)
|
|
2106
2185
|
return null;
|
|
2107
2186
|
}
|
|
2108
2187
|
return t;
|
|
2109
2188
|
}
|
|
2110
|
-
const
|
|
2189
|
+
const tt = Object.freeze({
|
|
2111
2190
|
width: null,
|
|
2112
2191
|
height: null
|
|
2113
|
-
}),
|
|
2192
|
+
}), ot = Object.freeze({
|
|
2114
2193
|
// Dimensions
|
|
2115
|
-
...
|
|
2194
|
+
...tt,
|
|
2116
2195
|
// Transformations
|
|
2117
|
-
...
|
|
2196
|
+
...Y
|
|
2118
2197
|
});
|
|
2119
|
-
function
|
|
2198
|
+
function Ko(e, t) {
|
|
2120
2199
|
const o = {
|
|
2121
2200
|
...e
|
|
2122
2201
|
};
|
|
2123
2202
|
for (const n in t) {
|
|
2124
2203
|
const a = t[n], r = typeof a;
|
|
2125
|
-
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);
|
|
2126
2205
|
}
|
|
2127
2206
|
return o;
|
|
2128
2207
|
}
|
|
2129
|
-
const
|
|
2130
|
-
function
|
|
2131
|
-
t.split(
|
|
2208
|
+
const Jo = /[\s,]+/;
|
|
2209
|
+
function Yo(e, t) {
|
|
2210
|
+
t.split(Jo).forEach((o) => {
|
|
2132
2211
|
switch (o.trim()) {
|
|
2133
2212
|
case "horizontal":
|
|
2134
2213
|
e.hFlip = !0;
|
|
@@ -2139,7 +2218,7 @@ function Oo(e, t) {
|
|
|
2139
2218
|
}
|
|
2140
2219
|
});
|
|
2141
2220
|
}
|
|
2142
|
-
function
|
|
2221
|
+
function Qo(e, t = 0) {
|
|
2143
2222
|
const o = e.replace(/^-?[0-9.]*/, "");
|
|
2144
2223
|
function n(a) {
|
|
2145
2224
|
for (; a < 0; )
|
|
@@ -2165,19 +2244,19 @@ function Lo(e, t = 0) {
|
|
|
2165
2244
|
}
|
|
2166
2245
|
return t;
|
|
2167
2246
|
}
|
|
2168
|
-
const
|
|
2169
|
-
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) {
|
|
2170
2249
|
if (t === 1)
|
|
2171
2250
|
return e;
|
|
2172
2251
|
if (o = o || 100, typeof e == "number")
|
|
2173
2252
|
return Math.ceil(e * t * o) / o;
|
|
2174
2253
|
if (typeof e != "string")
|
|
2175
2254
|
return e;
|
|
2176
|
-
const n = e.split(
|
|
2255
|
+
const n = e.split(Zo);
|
|
2177
2256
|
if (n === null || !n.length)
|
|
2178
2257
|
return e;
|
|
2179
2258
|
const a = [];
|
|
2180
|
-
let r = n.shift(), i =
|
|
2259
|
+
let r = n.shift(), i = Xo.test(r);
|
|
2181
2260
|
for (; ; ) {
|
|
2182
2261
|
if (i) {
|
|
2183
2262
|
const u = parseFloat(r);
|
|
@@ -2189,7 +2268,7 @@ function Se(e, t, o) {
|
|
|
2189
2268
|
i = !i;
|
|
2190
2269
|
}
|
|
2191
2270
|
}
|
|
2192
|
-
function
|
|
2271
|
+
function en(e, t = "defs") {
|
|
2193
2272
|
let o = "";
|
|
2194
2273
|
const n = e.indexOf("<" + t);
|
|
2195
2274
|
for (; n >= 0; ) {
|
|
@@ -2206,20 +2285,20 @@ function zo(e, t = "defs") {
|
|
|
2206
2285
|
content: e
|
|
2207
2286
|
};
|
|
2208
2287
|
}
|
|
2209
|
-
function
|
|
2288
|
+
function tn(e, t) {
|
|
2210
2289
|
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
2211
2290
|
}
|
|
2212
|
-
function
|
|
2213
|
-
const n =
|
|
2214
|
-
return
|
|
2291
|
+
function on(e, t, o) {
|
|
2292
|
+
const n = en(e);
|
|
2293
|
+
return tn(n.defs, t + n.content + o);
|
|
2215
2294
|
}
|
|
2216
|
-
const
|
|
2217
|
-
function
|
|
2295
|
+
const nn = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
2296
|
+
function an(e, t) {
|
|
2218
2297
|
const o = {
|
|
2219
|
-
...
|
|
2298
|
+
...pe,
|
|
2220
2299
|
...e
|
|
2221
2300
|
}, n = {
|
|
2222
|
-
...
|
|
2301
|
+
...ot,
|
|
2223
2302
|
...t
|
|
2224
2303
|
}, a = {
|
|
2225
2304
|
left: o.left,
|
|
@@ -2229,18 +2308,18 @@ function $o(e, t) {
|
|
|
2229
2308
|
};
|
|
2230
2309
|
let r = o.body;
|
|
2231
2310
|
[o, n].forEach((c) => {
|
|
2232
|
-
const l = [],
|
|
2233
|
-
let
|
|
2234
|
-
|
|
2311
|
+
const l = [], w = c.hFlip, I = c.vFlip;
|
|
2312
|
+
let y = c.rotate;
|
|
2313
|
+
w ? I ? y += 2 : (l.push(
|
|
2235
2314
|
"translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
|
|
2236
|
-
), l.push("scale(-1 1)"), a.top = a.left = 0) :
|
|
2315
|
+
), l.push("scale(-1 1)"), a.top = a.left = 0) : I && (l.push(
|
|
2237
2316
|
"translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
|
|
2238
2317
|
), l.push("scale(1 -1)"), a.top = a.left = 0);
|
|
2239
|
-
let
|
|
2240
|
-
switch (
|
|
2318
|
+
let D;
|
|
2319
|
+
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
|
2241
2320
|
case 1:
|
|
2242
|
-
|
|
2243
|
-
"rotate(90 " +
|
|
2321
|
+
D = a.height / 2 + a.top, l.unshift(
|
|
2322
|
+
"rotate(90 " + D.toString() + " " + D.toString() + ")"
|
|
2244
2323
|
);
|
|
2245
2324
|
break;
|
|
2246
2325
|
case 2:
|
|
@@ -2249,43 +2328,43 @@ function $o(e, t) {
|
|
|
2249
2328
|
);
|
|
2250
2329
|
break;
|
|
2251
2330
|
case 3:
|
|
2252
|
-
|
|
2253
|
-
"rotate(-90 " +
|
|
2331
|
+
D = a.width / 2 + a.left, l.unshift(
|
|
2332
|
+
"rotate(-90 " + D.toString() + " " + D.toString() + ")"
|
|
2254
2333
|
);
|
|
2255
2334
|
break;
|
|
2256
2335
|
}
|
|
2257
|
-
|
|
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(
|
|
2258
2337
|
r,
|
|
2259
2338
|
'<g transform="' + l.join(" ") + '">',
|
|
2260
2339
|
"</g>"
|
|
2261
2340
|
));
|
|
2262
2341
|
});
|
|
2263
2342
|
const i = n.width, u = n.height, d = a.width, s = a.height;
|
|
2264
|
-
let m,
|
|
2265
|
-
i === null ? (
|
|
2266
|
-
const E = {},
|
|
2267
|
-
|
|
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());
|
|
2268
2347
|
};
|
|
2269
|
-
|
|
2270
|
-
const
|
|
2271
|
-
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(" "), {
|
|
2272
2351
|
attributes: E,
|
|
2273
|
-
viewBox:
|
|
2352
|
+
viewBox: C,
|
|
2274
2353
|
body: r
|
|
2275
2354
|
};
|
|
2276
2355
|
}
|
|
2277
|
-
const
|
|
2278
|
-
let
|
|
2279
|
-
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) {
|
|
2280
2359
|
const o = [];
|
|
2281
2360
|
let n;
|
|
2282
|
-
for (; n =
|
|
2361
|
+
for (; n = rn.exec(e); )
|
|
2283
2362
|
o.push(n[1]);
|
|
2284
2363
|
if (!o.length)
|
|
2285
2364
|
return e;
|
|
2286
2365
|
const a = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
2287
2366
|
return o.forEach((r) => {
|
|
2288
|
-
const i = typeof t == "function" ? t(r) : t + (
|
|
2367
|
+
const i = typeof t == "function" ? t(r) : t + (ln++).toString(), u = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2289
2368
|
e = e.replace(
|
|
2290
2369
|
// Allowed characters before id: [#;"]
|
|
2291
2370
|
// Allowed characters after id: [)"], .[a-z]
|
|
@@ -2294,59 +2373,59 @@ function Ko(e, t = Ho) {
|
|
|
2294
2373
|
);
|
|
2295
2374
|
}), e = e.replace(new RegExp(a, "g"), ""), e;
|
|
2296
2375
|
}
|
|
2297
|
-
function
|
|
2376
|
+
function cn(e, t) {
|
|
2298
2377
|
let o = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
2299
2378
|
for (const n in t)
|
|
2300
2379
|
o += " " + n + '="' + t[n] + '"';
|
|
2301
2380
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" + e + "</svg>";
|
|
2302
2381
|
}
|
|
2303
|
-
function
|
|
2382
|
+
function dn(e) {
|
|
2304
2383
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
2305
2384
|
}
|
|
2306
|
-
function
|
|
2307
|
-
return "data:image/svg+xml," +
|
|
2385
|
+
function mn(e) {
|
|
2386
|
+
return "data:image/svg+xml," + dn(e);
|
|
2308
2387
|
}
|
|
2309
|
-
function
|
|
2310
|
-
return 'url("' +
|
|
2388
|
+
function pn(e) {
|
|
2389
|
+
return 'url("' + mn(e) + '")';
|
|
2311
2390
|
}
|
|
2312
|
-
const
|
|
2313
|
-
...
|
|
2391
|
+
const Ne = {
|
|
2392
|
+
...ot,
|
|
2314
2393
|
inline: !1
|
|
2315
|
-
},
|
|
2394
|
+
}, hn = {
|
|
2316
2395
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2317
2396
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
2318
2397
|
"aria-hidden": !0,
|
|
2319
2398
|
role: "img"
|
|
2320
|
-
},
|
|
2399
|
+
}, fn = {
|
|
2321
2400
|
display: "inline-block"
|
|
2322
|
-
},
|
|
2401
|
+
}, ie = {
|
|
2323
2402
|
backgroundColor: "currentColor"
|
|
2324
|
-
},
|
|
2403
|
+
}, nt = {
|
|
2325
2404
|
backgroundColor: "transparent"
|
|
2326
|
-
},
|
|
2405
|
+
}, Me = {
|
|
2327
2406
|
Image: "var(--svg)",
|
|
2328
2407
|
Repeat: "no-repeat",
|
|
2329
2408
|
Size: "100% 100%"
|
|
2330
|
-
},
|
|
2331
|
-
webkitMask:
|
|
2332
|
-
mask:
|
|
2333
|
-
background:
|
|
2409
|
+
}, Oe = {
|
|
2410
|
+
webkitMask: ie,
|
|
2411
|
+
mask: ie,
|
|
2412
|
+
background: nt
|
|
2334
2413
|
};
|
|
2335
|
-
for (const e in
|
|
2336
|
-
const t =
|
|
2337
|
-
for (const o in
|
|
2338
|
-
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];
|
|
2339
2418
|
}
|
|
2340
|
-
const
|
|
2419
|
+
const K = {};
|
|
2341
2420
|
["horizontal", "vertical"].forEach((e) => {
|
|
2342
2421
|
const t = e.slice(0, 1) + "Flip";
|
|
2343
|
-
|
|
2422
|
+
K[e + "-flip"] = t, K[e.slice(0, 1) + "-flip"] = t, K[e + "Flip"] = t;
|
|
2344
2423
|
});
|
|
2345
|
-
function
|
|
2424
|
+
function Re(e) {
|
|
2346
2425
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
2347
2426
|
}
|
|
2348
|
-
const
|
|
2349
|
-
const o =
|
|
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 : {};
|
|
2350
2429
|
for (let c in t) {
|
|
2351
2430
|
const l = t[c];
|
|
2352
2431
|
if (l !== void 0)
|
|
@@ -2366,7 +2445,7 @@ const Xo = (e, t) => {
|
|
|
2366
2445
|
break;
|
|
2367
2446
|
// Flip as string: 'horizontal,vertical'
|
|
2368
2447
|
case "flip":
|
|
2369
|
-
typeof l == "string" &&
|
|
2448
|
+
typeof l == "string" && Yo(o, l);
|
|
2370
2449
|
break;
|
|
2371
2450
|
// Color: override style
|
|
2372
2451
|
case "color":
|
|
@@ -2374,7 +2453,7 @@ const Xo = (e, t) => {
|
|
|
2374
2453
|
break;
|
|
2375
2454
|
// Rotation as string
|
|
2376
2455
|
case "rotate":
|
|
2377
|
-
typeof l == "string" ? o[c] =
|
|
2456
|
+
typeof l == "string" ? o[c] = Qo(l) : typeof l == "number" && (o[c] = l);
|
|
2378
2457
|
break;
|
|
2379
2458
|
// Remove aria-hidden
|
|
2380
2459
|
case "ariaHidden":
|
|
@@ -2382,68 +2461,68 @@ const Xo = (e, t) => {
|
|
|
2382
2461
|
l !== !0 && l !== "true" && delete n["aria-hidden"];
|
|
2383
2462
|
break;
|
|
2384
2463
|
default: {
|
|
2385
|
-
const
|
|
2386
|
-
|
|
2464
|
+
const w = K[c];
|
|
2465
|
+
w ? (l === !0 || l === "true" || l === 1) && (o[w] = !0) : Ne[c] === void 0 && (n[c] = l);
|
|
2387
2466
|
}
|
|
2388
2467
|
}
|
|
2389
2468
|
}
|
|
2390
|
-
const d =
|
|
2469
|
+
const d = an(e, o), s = d.attributes;
|
|
2391
2470
|
if (o.inline && (r.verticalAlign = "-0.125em"), a === "svg") {
|
|
2392
2471
|
n.style = {
|
|
2393
2472
|
...r,
|
|
2394
2473
|
...u
|
|
2395
2474
|
}, Object.assign(n, s);
|
|
2396
2475
|
let c = 0, l = t.id;
|
|
2397
|
-
return typeof l == "string" && (l = l.replace(/-/g, "_")), n.innerHTML =
|
|
2476
|
+
return typeof l == "string" && (l = l.replace(/-/g, "_")), n.innerHTML = un(d.body, l ? () => l + "ID" + c++ : "iconifyVue"), O("svg", n);
|
|
2398
2477
|
}
|
|
2399
|
-
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, {
|
|
2400
2479
|
...s,
|
|
2401
|
-
width:
|
|
2480
|
+
width: f + "",
|
|
2402
2481
|
height: E + ""
|
|
2403
2482
|
});
|
|
2404
2483
|
return n.style = {
|
|
2405
2484
|
...r,
|
|
2406
|
-
"--svg":
|
|
2407
|
-
width:
|
|
2408
|
-
height:
|
|
2409
|
-
...
|
|
2410
|
-
...
|
|
2485
|
+
"--svg": pn(C),
|
|
2486
|
+
width: Re(s.width),
|
|
2487
|
+
height: Re(s.height),
|
|
2488
|
+
...fn,
|
|
2489
|
+
...p ? ie : nt,
|
|
2411
2490
|
...u
|
|
2412
|
-
},
|
|
2413
|
-
},
|
|
2414
|
-
function
|
|
2415
|
-
|
|
2491
|
+
}, O("span", n);
|
|
2492
|
+
}, he = /* @__PURE__ */ Object.create(null);
|
|
2493
|
+
function yn(e, t) {
|
|
2494
|
+
he[e] = t;
|
|
2416
2495
|
}
|
|
2417
|
-
function
|
|
2496
|
+
function Xn(e, t) {
|
|
2418
2497
|
const o = typeof e.prefix == "string" ? e.prefix + ":" : "";
|
|
2419
|
-
|
|
2420
|
-
a && (
|
|
2498
|
+
Go(e) && $o(e, (n, a) => {
|
|
2499
|
+
a && (he[o + n] = a);
|
|
2421
2500
|
});
|
|
2422
2501
|
}
|
|
2423
|
-
const
|
|
2502
|
+
const Le = B({
|
|
2424
2503
|
// Do not inherit other attributes: it is handled by render()
|
|
2425
2504
|
inheritAttrs: !1,
|
|
2426
2505
|
// Render icon
|
|
2427
2506
|
render() {
|
|
2428
|
-
const e = this.$attrs, t = e.icon, o = typeof t == "string" ?
|
|
2429
|
-
return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null :
|
|
2430
|
-
...
|
|
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,
|
|
2431
2510
|
...o
|
|
2432
2511
|
}, e);
|
|
2433
2512
|
}
|
|
2434
|
-
}),
|
|
2513
|
+
}), wn = B({
|
|
2435
2514
|
name: "IconOffline",
|
|
2436
|
-
components: { IconifyIcon:
|
|
2515
|
+
components: { IconifyIcon: Le },
|
|
2437
2516
|
props: {
|
|
2438
2517
|
icon: {
|
|
2439
2518
|
default: null
|
|
2440
2519
|
}
|
|
2441
2520
|
},
|
|
2442
2521
|
render() {
|
|
2443
|
-
typeof this.icon == "object" &&
|
|
2522
|
+
typeof this.icon == "object" && yn(this.icon, this.icon);
|
|
2444
2523
|
const e = this.$attrs;
|
|
2445
|
-
return
|
|
2446
|
-
|
|
2524
|
+
return O(
|
|
2525
|
+
Le,
|
|
2447
2526
|
{
|
|
2448
2527
|
icon: this.icon,
|
|
2449
2528
|
style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
|
|
@@ -2455,9 +2534,9 @@ const Ie = A({
|
|
|
2455
2534
|
);
|
|
2456
2535
|
}
|
|
2457
2536
|
});
|
|
2458
|
-
|
|
2537
|
+
B({
|
|
2459
2538
|
name: "IconifyIconOnline",
|
|
2460
|
-
components: { IconifyIcon:
|
|
2539
|
+
components: { IconifyIcon: Ce },
|
|
2461
2540
|
props: {
|
|
2462
2541
|
icon: {
|
|
2463
2542
|
type: String,
|
|
@@ -2466,8 +2545,8 @@ A({
|
|
|
2466
2545
|
},
|
|
2467
2546
|
render() {
|
|
2468
2547
|
const e = this.$attrs;
|
|
2469
|
-
return
|
|
2470
|
-
|
|
2548
|
+
return O(
|
|
2549
|
+
Ce,
|
|
2471
2550
|
{
|
|
2472
2551
|
icon: `${this.icon}`,
|
|
2473
2552
|
style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
|
|
@@ -2479,7 +2558,7 @@ A({
|
|
|
2479
2558
|
);
|
|
2480
2559
|
}
|
|
2481
2560
|
});
|
|
2482
|
-
const
|
|
2561
|
+
const bn = B({
|
|
2483
2562
|
name: "FontIcon",
|
|
2484
2563
|
props: {
|
|
2485
2564
|
icon: {
|
|
@@ -2489,14 +2568,14 @@ const on = A({
|
|
|
2489
2568
|
},
|
|
2490
2569
|
render() {
|
|
2491
2570
|
const e = this.$attrs;
|
|
2492
|
-
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(
|
|
2493
2572
|
"i",
|
|
2494
2573
|
{
|
|
2495
2574
|
class: "iconfont",
|
|
2496
2575
|
...e
|
|
2497
2576
|
},
|
|
2498
2577
|
this.icon
|
|
2499
|
-
) : 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(
|
|
2500
2579
|
"svg",
|
|
2501
2580
|
{
|
|
2502
2581
|
class: "icon-svg",
|
|
@@ -2504,28 +2583,28 @@ const on = A({
|
|
|
2504
2583
|
},
|
|
2505
2584
|
{
|
|
2506
2585
|
default: () => [
|
|
2507
|
-
|
|
2586
|
+
O("use", {
|
|
2508
2587
|
"xlink:href": `#${this.icon}`
|
|
2509
2588
|
})
|
|
2510
2589
|
]
|
|
2511
2590
|
}
|
|
2512
|
-
) :
|
|
2591
|
+
) : O("i", {
|
|
2513
2592
|
class: `iconfont ${this.icon}`,
|
|
2514
2593
|
...e
|
|
2515
2594
|
});
|
|
2516
2595
|
}
|
|
2517
|
-
}),
|
|
2596
|
+
}), Cn = wn, vn = bn, Tn = {
|
|
2518
2597
|
mounted(e, t) {
|
|
2519
2598
|
var n;
|
|
2520
2599
|
const { value: o } = t;
|
|
2521
2600
|
if (o) {
|
|
2522
|
-
const r = `${(n =
|
|
2523
|
-
|
|
2601
|
+
const r = `${(n = g.currentRoute.value.meta) == null ? void 0 : n.prefixAuth}.${o}`;
|
|
2602
|
+
T().getButtonAuth.includes(r) || e.parentNode.removeChild(e);
|
|
2524
2603
|
} else
|
|
2525
2604
|
throw new Error(`need roles! Like v-auth="['admin','test']"`);
|
|
2526
2605
|
}
|
|
2527
2606
|
};
|
|
2528
|
-
function
|
|
2607
|
+
function En(e) {
|
|
2529
2608
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, o) {
|
|
2530
2609
|
var n = e.get(t);
|
|
2531
2610
|
n ? n.push(o) : e.set(t, [o]);
|
|
@@ -2541,81 +2620,245 @@ function sn(e) {
|
|
|
2541
2620
|
});
|
|
2542
2621
|
} };
|
|
2543
2622
|
}
|
|
2544
|
-
const
|
|
2623
|
+
const Sn = En(), Ae = St({
|
|
2545
2624
|
strategy: "scroll"
|
|
2546
|
-
}),
|
|
2625
|
+
}), Dn = {
|
|
2547
2626
|
mounted(e, t, o) {
|
|
2548
|
-
|
|
2627
|
+
Ae.listenTo(e, (n) => {
|
|
2549
2628
|
const a = n.offsetWidth, r = n.offsetHeight;
|
|
2550
|
-
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 } }));
|
|
2551
2630
|
});
|
|
2552
2631
|
},
|
|
2553
2632
|
unmounted(e) {
|
|
2554
|
-
|
|
2633
|
+
Ae.uninstall(e);
|
|
2555
2634
|
}
|
|
2556
|
-
},
|
|
2635
|
+
}, Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2557
2636
|
__proto__: null,
|
|
2558
|
-
auth:
|
|
2559
|
-
resize:
|
|
2560
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2561
|
-
|
|
2637
|
+
auth: Tn,
|
|
2638
|
+
resize: Dn
|
|
2639
|
+
}, Symbol.toStringTag, { value: "Module" })), S = lt(zt);
|
|
2640
|
+
S.use(Et, {
|
|
2562
2641
|
defaultProps: { animation: "perspective" }
|
|
2563
2642
|
});
|
|
2564
|
-
const
|
|
2565
|
-
e.config.globalProperties.$hasAuthority =
|
|
2566
|
-
},
|
|
2567
|
-
Object.keys(
|
|
2568
|
-
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]);
|
|
2569
2648
|
});
|
|
2570
|
-
},
|
|
2571
|
-
|
|
2572
|
-
}))
|
|
2573
|
-
|
|
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 });
|
|
2651
|
+
}));
|
|
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 = {
|
|
2655
|
+
layout: (t == null ? void 0 : t.Layout) ?? "vertical",
|
|
2656
|
+
theme: (t == null ? void 0 : t.Theme) ?? "default",
|
|
2657
|
+
darkMode: (t == null ? void 0 : t.DarkMode) ?? !1,
|
|
2658
|
+
sidebarStatus: (t == null ? void 0 : t.SidebarStatus) ?? !0,
|
|
2659
|
+
epThemeColor: (t == null ? void 0 : t.EpThemeColor) ?? "#409EFF",
|
|
2660
|
+
overallStyle: (t == null ? void 0 : t.OverallStyle) ?? "light"
|
|
2661
|
+
}), e && !(e != null && e.configure) && (e.configure = {
|
|
2662
|
+
grey: (t == null ? void 0 : t.Grey) ?? !1,
|
|
2663
|
+
weak: (t == null ? void 0 : t.Weak) ?? !1,
|
|
2664
|
+
hideTabs: (t == null ? void 0 : t.HideTabs) ?? !1,
|
|
2665
|
+
showLogo: (t == null ? void 0 : t.ShowLogo) ?? !0,
|
|
2666
|
+
showModel: (t == null ? void 0 : t.ShowModel) ?? "smart",
|
|
2667
|
+
multiTagsCache: (t == null ? void 0 : t.MultiTagsCache) ?? !1
|
|
2668
|
+
});
|
|
2669
|
+
}, n = ye(() => e == null ? void 0 : e.layout.layout), a = ye(() => e == null ? void 0 : e.layout);
|
|
2670
|
+
return {
|
|
2671
|
+
layout: n,
|
|
2672
|
+
layoutTheme: a,
|
|
2673
|
+
initStorage: o
|
|
2674
|
+
};
|
|
2675
|
+
}
|
|
2676
|
+
const In = q("udp-app", {
|
|
2677
|
+
state: () => {
|
|
2678
|
+
var e, t;
|
|
2679
|
+
return {
|
|
2680
|
+
sidebar: {
|
|
2681
|
+
opened: ((e = h.getItem(`${b()}layout`)) == null ? void 0 : e.sidebarStatus) ?? F().SidebarStatus,
|
|
2682
|
+
withoutAnimation: !1,
|
|
2683
|
+
isClickCollapse: !1
|
|
2684
|
+
},
|
|
2685
|
+
// 这里的layout用于监听容器拖拉后恢复对应的导航模式
|
|
2686
|
+
layout: ((t = h.getItem(`${b()}layout`)) == null ? void 0 : t.layout) ?? F().Layout,
|
|
2687
|
+
device: ht() ? "mobile" : "desktop"
|
|
2688
|
+
};
|
|
2574
2689
|
},
|
|
2575
|
-
|
|
2690
|
+
getters: {
|
|
2691
|
+
getSidebarStatus() {
|
|
2692
|
+
return this.sidebar.opened;
|
|
2693
|
+
},
|
|
2694
|
+
getDevice() {
|
|
2695
|
+
return this.device;
|
|
2696
|
+
}
|
|
2697
|
+
},
|
|
2698
|
+
actions: {
|
|
2699
|
+
TOGGLE_SIDEBAR(e, t) {
|
|
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));
|
|
2702
|
+
},
|
|
2703
|
+
async toggleSideBar(e, t) {
|
|
2704
|
+
await this.TOGGLE_SIDEBAR(e, t);
|
|
2705
|
+
},
|
|
2706
|
+
toggleDevice(e) {
|
|
2707
|
+
this.device = e;
|
|
2708
|
+
},
|
|
2709
|
+
setLayout(e) {
|
|
2710
|
+
this.layout = e;
|
|
2711
|
+
}
|
|
2576
2712
|
}
|
|
2577
|
-
}
|
|
2578
|
-
|
|
2579
|
-
|
|
2713
|
+
});
|
|
2714
|
+
function Pn() {
|
|
2715
|
+
return In(j);
|
|
2716
|
+
}
|
|
2717
|
+
const Nn = q("udp-epTheme", {
|
|
2718
|
+
state: () => {
|
|
2719
|
+
var e, t;
|
|
2720
|
+
return {
|
|
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
|
|
2723
|
+
};
|
|
2724
|
+
},
|
|
2725
|
+
getters: {
|
|
2726
|
+
getEpThemeColor() {
|
|
2727
|
+
return this.epThemeColor;
|
|
2728
|
+
},
|
|
2729
|
+
// 用于mix导航模式下hamburger-svg的fill属性
|
|
2730
|
+
fill() {
|
|
2731
|
+
return this.epTheme === "light" ? "#409eff" : this.epTheme === "yellow" ? "#d25f00" : "#fff";
|
|
2732
|
+
}
|
|
2733
|
+
},
|
|
2734
|
+
actions: {
|
|
2735
|
+
setEpThemeColor(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));
|
|
2738
|
+
}
|
|
2739
|
+
}
|
|
2740
|
+
});
|
|
2741
|
+
function oe() {
|
|
2742
|
+
return Nn(j);
|
|
2743
|
+
}
|
|
2744
|
+
function ta() {
|
|
2745
|
+
var p, C;
|
|
2746
|
+
const { layoutTheme: e, layout: t } = xn(), o = X([
|
|
2747
|
+
/* 道奇蓝(默认) */
|
|
2748
|
+
{ color: "#1b2a47", themeColor: "default" },
|
|
2749
|
+
/* 亮白色 */
|
|
2750
|
+
{ color: "#ffffff", themeColor: "light" },
|
|
2751
|
+
/* 猩红色 */
|
|
2752
|
+
{ color: "#f5222d", themeColor: "dusk" },
|
|
2753
|
+
/* 橙红色 */
|
|
2754
|
+
{ color: "#fa541c", themeColor: "volcano" },
|
|
2755
|
+
/* 金色 */
|
|
2756
|
+
{ color: "#fadb14", themeColor: "yellow" },
|
|
2757
|
+
/* 绿宝石 */
|
|
2758
|
+
{ color: "#13c2c2", themeColor: "mingQing" },
|
|
2759
|
+
/* 酸橙绿 */
|
|
2760
|
+
{ color: "#52c41a", themeColor: "auroraGreen" },
|
|
2761
|
+
/* 深粉色 */
|
|
2762
|
+
{ color: "#eb2f96", themeColor: "pink" },
|
|
2763
|
+
/* 深紫罗兰色 */
|
|
2764
|
+
{ color: "#722ed1", themeColor: "saucePurple" }
|
|
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;
|
|
2770
|
+
}
|
|
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 = {
|
|
2774
|
+
layout: t.value,
|
|
2775
|
+
theme: c,
|
|
2776
|
+
darkMode: a.value,
|
|
2777
|
+
sidebarStatus: (l = n.layout) == null ? void 0 : l.sidebarStatus,
|
|
2778
|
+
epThemeColor: (w = n.layout) == null ? void 0 : w.epThemeColor,
|
|
2779
|
+
overallStyle: r.value
|
|
2780
|
+
}, c === "default" || c === "light")
|
|
2781
|
+
m(F().EpThemeColor || "#409EFF");
|
|
2782
|
+
else {
|
|
2783
|
+
const I = o.value.find((y) => y.themeColor === c);
|
|
2784
|
+
m(I.color);
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
function s(c, l, w) {
|
|
2788
|
+
document.documentElement.style.setProperty(
|
|
2789
|
+
`--el-color-primary-${c}-${l}`,
|
|
2790
|
+
a.value ? Ht(w, l / 10) : $t(w, l / 10)
|
|
2791
|
+
);
|
|
2792
|
+
}
|
|
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);
|
|
2799
|
+
};
|
|
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"));
|
|
2802
|
+
}
|
|
2803
|
+
function E() {
|
|
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();
|
|
2807
|
+
}
|
|
2808
|
+
return {
|
|
2809
|
+
body: i,
|
|
2810
|
+
overallStyle: r,
|
|
2811
|
+
dataTheme: a,
|
|
2812
|
+
layoutTheme: e,
|
|
2813
|
+
themeColors: o,
|
|
2814
|
+
onReset: E,
|
|
2815
|
+
toggleClass: u,
|
|
2816
|
+
dataThemeChange: f,
|
|
2817
|
+
setEpThemeColor: m,
|
|
2818
|
+
setLayoutThemeColor: d
|
|
2819
|
+
};
|
|
2820
|
+
}
|
|
2580
2821
|
export {
|
|
2581
2822
|
xn as A,
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2823
|
+
N as B,
|
|
2824
|
+
Kn as C,
|
|
2825
|
+
io as D,
|
|
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,
|
|
2833
|
+
qt as L,
|
|
2834
|
+
Zn as M,
|
|
2835
|
+
Yn as N,
|
|
2836
|
+
Jn as O,
|
|
2837
|
+
jt as _,
|
|
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,
|
|
2852
|
+
It as o,
|
|
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,
|
|
2862
|
+
ho as y,
|
|
2863
|
+
ta as z
|
|
2621
2864
|
};
|