dlzn-ui 2.0.3 → 2.0.5
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/assets/button-Be7wyDo4.css +2 -0
- package/assets/{css-BHZbqP6m.css → css-BPkXehJY.css} +1 -1
- package/chunks/{Common-C-Megu65.mjs → Common-B5NscAh_.mjs} +2 -1
- package/chunks/{Day-rSsylmAZ.mjs → Day-Ci8nR_Ll.mjs} +2 -1
- package/chunks/DictTypeDetail-B_aSmp0m.mjs +188 -0
- package/chunks/{Hour-SINJ0DXv.mjs → Hour-C1yYXl7B.mjs} +1 -1
- package/chunks/{Index-CIfBvBlA.mjs → Index--rlVexBg.mjs} +1 -0
- package/chunks/{Index-BExLxGm4.mjs → Index-BChP9CTL.mjs} +1 -0
- package/chunks/{Index-DVQ2tnnV.mjs → Index-Bb9OwRGB.mjs} +3 -2
- package/chunks/{Index-CoDY85gh.mjs → Index-Bi44jQm2.mjs} +2 -1
- package/chunks/{Index-D0K4Ai1m.mjs → Index-Bu5a_B5n.mjs} +2 -1
- package/chunks/{Index-SSYGey9h.mjs → Index-BwWS0oPl.mjs} +1 -0
- package/chunks/{Index-IHnODKpr.mjs → Index-BxpYRhO7.mjs} +1 -0
- package/chunks/{Index-rd9a-AvJ.mjs → Index-Bye0GY_j.mjs} +1 -0
- package/chunks/{Index-ChitVvtF.mjs → Index-CHfwy4gI.mjs} +1 -1
- package/chunks/{Index-BbkM7HWR.mjs → Index-CS1bfxu7.mjs} +2 -1
- package/chunks/{Index-BXWCzgiM.mjs → Index-CwksT4hO.mjs} +1 -0
- package/chunks/{Index-BZ26MYFd.mjs → Index-DC0L_zaY.mjs} +1 -0
- package/chunks/{Index-BStfaqzV.mjs → Index-De48YIRG.mjs} +2 -1
- package/chunks/{Index-tJvyTOBT.mjs → Index-DiOdyjva.mjs} +2 -0
- package/chunks/{Index-D6BPa3kK.mjs → Index-UHMQ6ORy.mjs} +3 -1
- package/chunks/{Index-DPyouFXl.mjs → Index-Z81MxcDh.mjs} +3 -2
- package/chunks/{Index-CFqKMPsW.mjs → Index-bEWcnIHJ.mjs} +2 -0
- package/chunks/{Index-KbZFUlC6.mjs → Index-eWToVefC.mjs} +2 -0
- package/chunks/{IndexItem-BgAx4bmH.mjs → IndexItem-BWoJrz24.mjs} +3 -2
- package/chunks/{LoginBg-BPY-OcAF.mjs → LoginBg-B1auGWuJ.mjs} +2 -0
- package/chunks/{MenuNode-B8rjEp8n.mjs → MenuNode-ByutDAqI.mjs} +1 -0
- package/chunks/{MenuNode-DUrmFCgV.mjs → MenuNode-Dp1kCBvH.mjs} +2 -1
- package/chunks/{Minute-Ctvu6IHj.mjs → Minute-CA5DlXsq.mjs} +1 -1
- package/chunks/{Month-DPXdwjBM.mjs → Month-D-4ld14M.mjs} +1 -1
- package/chunks/{Second-Be8KaVxT.mjs → Second-RPGoCkey.mjs} +1 -1
- package/chunks/{UserInfo-B_BCGGsD.mjs → UserInfo-CrBlooGu.mjs} +10 -10
- package/chunks/app-DiNoDaOD.mjs +37 -0
- package/chunks/{button-fyBeTUHZ.mjs → button-BcpR95gj.mjs} +633 -376
- package/chunks/{custom-page-list-BxCouuRc.mjs → custom-page-list-DF3Qw4y7.mjs} +8 -4
- package/chunks/{custom-page-table-DcGMaOjC.mjs → custom-page-table-CH09hGDM.mjs} +4 -2
- package/chunks/{date-picker-CrH7Sg7y.mjs → date-picker-DtbDIFUH.mjs} +3 -2
- package/chunks/{input-number-D55mzch-.mjs → input-number-B4oTaRne.mjs} +1 -0
- package/chunks/{menu-ByFEkFXJ.mjs → menu-CjNx3wKR.mjs} +1 -1
- package/chunks/{overview-u-SinW-r.mjs → overview-BQQnpz4N.mjs} +1 -1
- package/chunks/{page-list-Bf99s8cJ.mjs → page-list-BjjvOqb5.mjs} +6 -3
- package/chunks/{page-query-jRa7JYz1.mjs → page-query-BCNFOYTD.mjs} +1 -1
- package/chunks/{page-table-BDZ8sxyI.mjs → page-table-VeEt8uuI.mjs} +6 -3
- package/chunks/{pagination-BRfWjsw-.mjs → pagination-BuhM6NW1.mjs} +1 -1
- package/chunks/{range-input-8ddDrOBB.mjs → range-input-CKFoK49E.mjs} +1 -0
- package/chunks/{scrollbar-Fk5p7kiM.mjs → scrollbar-CI1mysNQ.mjs} +2 -2
- package/chunks/{table-IplasFts.mjs → table-B3z8z5O8.mjs} +3 -1
- package/chunks/{tag-B-ovDWQi.mjs → tag-CfeJWJii.mjs} +1 -0
- package/components/app/index.d.ts +1 -0
- package/components/app/index.mjs +2 -0
- package/components/app/src/app.mjs +2 -0
- package/components/app/src/app.vue.d.ts +3 -0
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +10 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/date-picker/index.mjs +1 -1
- package/components/date-picker/src/date-picker.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +46 -21
- package/components/input-number/index.mjs +1 -1
- package/components/input-number/src/input-number.mjs +1 -1
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/OptionLabel/Index.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/range-input/index.mjs +1 -1
- package/components/range-input/src/range-input.mjs +1 -1
- package/components/scrollbar/index.mjs +1 -1
- package/components/scrollbar/src/scrollbar.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +3 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tag/index.mjs +1 -1
- package/components/tag/src/tag.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useContextMenu/menu/index.mjs +1 -1
- package/hooks/useContextMenu/menu/src/MenuNode.mjs +1 -1
- package/hooks/useContextMenu/menu/src/menu.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useList/index.mjs +1 -0
- package/hooks/useSysUser/index.mjs +2 -2
- package/index.d.ts +1 -1
- package/layout/Index.mjs +1 -1
- package/layout/Login.mjs +8 -6
- package/layout/NotFound.mjs +1 -1
- package/layout/index2.mjs +1 -1
- package/layout/modules/Aside.mjs +1 -1
- package/layout/modules/Breadcrumb.mjs +1 -1
- package/layout/modules/Header.mjs +1 -1
- package/layout/modules/LoginBg.mjs +1 -1
- package/layout/modules/MenuNode.mjs +1 -1
- package/layout/profile/Index.mjs +5 -2
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/package.json +1 -4
- package/plugins/autoImport/$alova/index.mjs +1 -1
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +2 -36
- package/plugins/captcha/captcha.mjs +3 -1
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/directive/index.mjs +1 -0
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/cell/Avatar/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/FormatDate/Index.mjs +1 -1
- package/plugins/tableRenders/cell/FormatNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Icon/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Image/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ImageViewer/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Input/Index.mjs +1 -1
- package/plugins/tableRenders/cell/InputNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Link/Index.mjs +1 -1
- package/plugins/tableRenders/cell/OptionLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Switch/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Tags/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +16 -16
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +2 -2
- package/store/modules/user.mjs +1 -1
- package/views/index.d.ts +4 -0
- package/views/index.mjs +7 -0
- package/views/system/dict/index.mjs +195 -0
- package/views/system/dict/index.vue.d.ts +3 -0
- package/views/system/dict/modules/DictTypeDetail.mjs +2 -0
- package/views/system/dict/modules/DictTypeDetail.vue.d.ts +6 -0
- package/assets/Provider-x1XGuNl0.css +0 -1
- package/assets/button-BIfMFDiF.css +0 -2
- package/assets/css-GF-yQkxY.css +0 -1
- package/chunks/Provider-C7LUXsAA.mjs +0 -221
- package/chunks/css-egLCmONV.mjs +0 -1
|
@@ -1,51 +1,67 @@
|
|
|
1
1
|
import { t as e } from "./icon-COjp1yrx.mjs";
|
|
2
|
+
import "../components/icon/index.mjs";
|
|
2
3
|
import { t } from "./popconfirm-DxWa7vWm.mjs";
|
|
4
|
+
import "../components/popconfirm/index.mjs";
|
|
3
5
|
import { n, t as r } from "./useAppContext-D47amIp5.mjs";
|
|
4
6
|
import i from "../plugins/autoImport/$loading/index.mjs";
|
|
5
7
|
import { t as a } from "./checkbox-CLlUEbkk.mjs";
|
|
8
|
+
import "../components/checkbox/index.mjs";
|
|
6
9
|
import o from "../plugins/autoImport/$msg/index.mjs";
|
|
7
10
|
import s from "../layout/index2.mjs";
|
|
8
|
-
import
|
|
11
|
+
import '../assets/css-BPkXehJY.css';import '../assets/button-Be7wyDo4.css';/* empty css */
|
|
12
|
+
import { t as c } from "./scrollbar-CI1mysNQ.mjs";
|
|
13
|
+
import "../components/scrollbar/index.mjs";
|
|
9
14
|
import l from "../hooks/useMQ/index.mjs";
|
|
10
15
|
import u from "../store/modules/excludeKPname.mjs";
|
|
11
16
|
import { t as d } from "./gradient-text-B6JwSk-u.mjs";
|
|
12
17
|
import { t as f } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
18
|
+
import "../components/gradient-text/index.mjs";
|
|
13
19
|
import { t as p } from "./image-BEsiUWeF.mjs";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { t as
|
|
20
|
+
import "../components/image/index.mjs";
|
|
21
|
+
import m from "../views/index.mjs";
|
|
22
|
+
import { t as h } from "./MenuNode-Dp1kCBvH.mjs";
|
|
23
|
+
import ee from "../hooks/useContextMenu/index.mjs";
|
|
17
24
|
import { passwordReg as te, passwordRegMessage as g } from "../constants/others.mjs";
|
|
18
25
|
import { isFalsy as _, isValidNumberString as v } from "../utils/boolean.mjs";
|
|
19
26
|
import { stringDisplay as y } from "../utils/string.mjs";
|
|
20
27
|
import { saveAs as b } from "../utils/tool.mjs";
|
|
28
|
+
import "../utils/index.mjs";
|
|
21
29
|
import x, { useClearList as ne } from "../hooks/useList/index.mjs";
|
|
22
|
-
import re from "
|
|
23
|
-
import
|
|
24
|
-
import { t as
|
|
25
|
-
import
|
|
26
|
-
import { t as
|
|
27
|
-
import
|
|
28
|
-
import { t as
|
|
29
|
-
import
|
|
30
|
-
import { t as
|
|
31
|
-
import
|
|
30
|
+
import { n as re, t as ie } from "./input-B8jjJrK5.mjs";
|
|
31
|
+
import "../components/input/index.mjs";
|
|
32
|
+
import { t as ae } from "./date-picker-DtbDIFUH.mjs";
|
|
33
|
+
import "../components/date-picker/index.mjs";
|
|
34
|
+
import { t as oe } from "./input-number-B4oTaRne.mjs";
|
|
35
|
+
import "../components/input-number/index.mjs";
|
|
36
|
+
import { t as se } from "./range-input-CKFoK49E.mjs";
|
|
37
|
+
import "../components/range-input/index.mjs";
|
|
38
|
+
import { n as ce, t as le } from "./tag-input-iNXrRXk2.mjs";
|
|
39
|
+
import "../components/tag-input/index.mjs";
|
|
40
|
+
import { t as ue } from "./slider-C63Gzbld.mjs";
|
|
41
|
+
import "../components/slider/index.mjs";
|
|
42
|
+
import { t as de } from "./switch-CqV3-avv.mjs";
|
|
43
|
+
import "../components/switch/index.mjs";
|
|
44
|
+
import { t as fe } from "./textarea-xkwOhNut.mjs";
|
|
45
|
+
import "../components/textarea/index.mjs";
|
|
46
|
+
import { Fragment as pe, KeepAlive as me, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as he, createSlots as ge, createTextVNode as E, createVNode as D, defineAsyncComponent as _e, defineComponent as O, getCurrentInstance as k, guardReactiveProps as ve, h as A, inject as ye, markRaw as be, mergeDefaults as j, mergeProps as M, nextTick as N, normalizeClass as xe, normalizeProps as P, onMounted as Se, openBlock as F, provide as Ce, reactive as we, ref as I, renderList as L, renderSlot as Te, resolveComponent as Ee, resolveDynamicComponent as R, shallowRef as De, toDisplayString as z, unref as B, useAttrs as Oe, useSlots as ke, useTemplateRef as Ae, watch as V, withCtx as H, withModifiers as je } from "vue";
|
|
32
47
|
import { useElementSize as Me, useElementVisibility as Ne, useFocus as Pe, useMutationObserver as Fe, useResizeObserver as Ie } from "@vueuse/core";
|
|
33
|
-
import { Breadcrumb as Le, BreadcrumbItem as Re, Button as ze, CheckboxGroup as Be,
|
|
34
|
-
import { cloneDeep as
|
|
35
|
-
import { defineStore as
|
|
36
|
-
import { createRouter as
|
|
37
|
-
import
|
|
38
|
-
import { createAlova as
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
|
|
48
|
+
import { Breadcrumb as Le, BreadcrumbItem as Re, Button as ze, CheckboxGroup as Be, ConfigProvider as Ve, Content as He, DialogPlugin as Ue, Drawer as We, DrawerPlugin as Ge, Dropdown as Ke, Form as qe, FormItem as Je, HeadMenu as Ye, Header as Xe, InputAdornment as Ze, Layout as Qe, Menu as $e, MenuItem as et, RadioGroup as tt, Select as nt, Tree as rt, TreeSelect as it, Upload as at } from "tdesign-vue-next";
|
|
49
|
+
import { cloneDeep as ot, isPlainObject as st } from "lodash-es";
|
|
50
|
+
import { defineStore as ct } from "pinia";
|
|
51
|
+
import { createRouter as lt, createWebHistory as ut, useRoute as U, useRouter as dt } from "vue-router";
|
|
52
|
+
import ft from "virtual:dlzn-ui/app-params";
|
|
53
|
+
import { createAlova as pt } from "alova";
|
|
54
|
+
import mt from "alova/fetch";
|
|
55
|
+
import ht from "alova/vue";
|
|
56
|
+
import gt from "path-browserify";
|
|
57
|
+
import { ElConfigProvider as _t } from "element-plus";
|
|
58
|
+
//#region ../../packages/dlzn-ui/components/button/src/button.ts
|
|
59
|
+
var vt = {
|
|
44
60
|
autoIcon: !0,
|
|
45
61
|
autoLoading: !0,
|
|
46
62
|
autoTheme: !0,
|
|
47
63
|
loading: void 0
|
|
48
|
-
},
|
|
64
|
+
}, yt = {
|
|
49
65
|
autoLabelWidth: !0,
|
|
50
66
|
colon: !0,
|
|
51
67
|
data: () => we({}),
|
|
@@ -61,30 +77,30 @@ var mt = {
|
|
|
61
77
|
};
|
|
62
78
|
//#endregion
|
|
63
79
|
//#region ../../packages/dlzn-ui/store/modules/common.ts
|
|
64
|
-
function
|
|
65
|
-
return
|
|
80
|
+
function bt() {
|
|
81
|
+
return Y.Get("common/appInfo", { meta: {
|
|
66
82
|
useFailMsg: !1,
|
|
67
83
|
useLoading: !1,
|
|
68
84
|
useSysFailMsg: !1,
|
|
69
85
|
useToken: !1
|
|
70
86
|
} });
|
|
71
87
|
}
|
|
72
|
-
var
|
|
73
|
-
let e =
|
|
88
|
+
var W = ct("common", () => {
|
|
89
|
+
let e = I(!0), t = I(250), n = I({
|
|
74
90
|
appName: VITE_APP_NAME,
|
|
75
91
|
version: ""
|
|
76
92
|
});
|
|
77
|
-
|
|
93
|
+
V(() => n.value.appName, (e) => {
|
|
78
94
|
e && (document.title = e);
|
|
79
95
|
});
|
|
80
96
|
function r() {
|
|
81
|
-
|
|
97
|
+
bt().then((e) => {
|
|
82
98
|
n.value = e;
|
|
83
99
|
}).catch((e) => {
|
|
84
100
|
console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
|
|
85
101
|
});
|
|
86
102
|
}
|
|
87
|
-
let i =
|
|
103
|
+
let i = I(!0), a = null;
|
|
88
104
|
function o() {
|
|
89
105
|
a !== null && (clearTimeout(a), a = null), i.value = !1, a = setTimeout(() => {
|
|
90
106
|
i.value = !0;
|
|
@@ -98,13 +114,13 @@ var K = W("common", () => {
|
|
|
98
114
|
isRequestSleep: i,
|
|
99
115
|
requestActive: o
|
|
100
116
|
};
|
|
101
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }),
|
|
102
|
-
let e =
|
|
117
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), G = ct("recentRouters", () => {
|
|
118
|
+
let e = I([]), t = U(), n = dt();
|
|
103
119
|
function r() {
|
|
104
120
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
105
121
|
}
|
|
106
122
|
function i(t, n) {
|
|
107
|
-
let r =
|
|
123
|
+
let r = ot(n), i = e.value.findIndex((e) => e.name === r.name || J(e.name).meta.title === J(r.name).meta.title);
|
|
108
124
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
109
125
|
let n = e.value.findIndex((e) => e.name === t);
|
|
110
126
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -135,16 +151,16 @@ var K = W("common", () => {
|
|
|
135
151
|
}, { persist: { pick: ["recentRouters"] } });
|
|
136
152
|
//#endregion
|
|
137
153
|
//#region ../../packages/dlzn-ui/store/modules/router.ts
|
|
138
|
-
function
|
|
139
|
-
return
|
|
154
|
+
function xt() {
|
|
155
|
+
return Y.Get("getRouters", { meta: {
|
|
140
156
|
useFailMsg: "获取用户路由失败",
|
|
141
157
|
useLoading: "正在获取用户路由..."
|
|
142
158
|
} });
|
|
143
159
|
}
|
|
144
|
-
function
|
|
160
|
+
function St(e) {
|
|
145
161
|
return e.children !== void 0 || e.component !== void 0;
|
|
146
162
|
}
|
|
147
|
-
function
|
|
163
|
+
function Ct(e) {
|
|
148
164
|
let t = [];
|
|
149
165
|
return e.forEach((e) => {
|
|
150
166
|
e.path === "/" ? t.push({
|
|
@@ -153,7 +169,7 @@ function yt(e) {
|
|
|
153
169
|
}) : t.push(e);
|
|
154
170
|
}), t;
|
|
155
171
|
}
|
|
156
|
-
function
|
|
172
|
+
function wt(e) {
|
|
157
173
|
let t = (e, n) => {
|
|
158
174
|
let r = [];
|
|
159
175
|
return e.forEach((e) => {
|
|
@@ -177,12 +193,12 @@ function bt(e) {
|
|
|
177
193
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
178
194
|
}
|
|
179
195
|
}
|
|
180
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
196
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = Ot(e)), St(i) && r.push(i);
|
|
181
197
|
}), r;
|
|
182
|
-
}, n =
|
|
198
|
+
}, n = nn();
|
|
183
199
|
return n.children.push(...e), t([n], null);
|
|
184
200
|
}
|
|
185
|
-
function
|
|
201
|
+
function Tt(e) {
|
|
186
202
|
let t = (e) => {
|
|
187
203
|
let n = [...e], r = n.length;
|
|
188
204
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -195,36 +211,36 @@ function xt(e) {
|
|
|
195
211
|
};
|
|
196
212
|
return t(e);
|
|
197
213
|
}
|
|
198
|
-
var
|
|
199
|
-
function
|
|
200
|
-
return
|
|
214
|
+
var Et = [];
|
|
215
|
+
function Dt(e) {
|
|
216
|
+
return `./${e.split("___")[0]}.vue`;
|
|
201
217
|
}
|
|
202
|
-
function
|
|
218
|
+
function Ot(e) {
|
|
203
219
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
204
|
-
let t = e.component, n = typeof t == "string" ?
|
|
220
|
+
let t = e.component, n = typeof t == "string" ? m[Dt(t)] : t;
|
|
205
221
|
if (n === void 0) {
|
|
206
|
-
let e = `路由组件${
|
|
222
|
+
let e = `路由组件${Dt(t)}不存在`;
|
|
207
223
|
return console.error(e), s["./NotFound.vue"];
|
|
208
224
|
}
|
|
209
|
-
return typeof t == "string" &&
|
|
225
|
+
return typeof t == "string" && Et.push(Dt(t)), () => n().then((t) => ({
|
|
210
226
|
...t.default,
|
|
211
227
|
name: e.name
|
|
212
228
|
}));
|
|
213
229
|
}
|
|
214
230
|
return e.component;
|
|
215
231
|
}
|
|
216
|
-
var
|
|
217
|
-
let e =
|
|
232
|
+
var kt = ct("router", () => {
|
|
233
|
+
let e = I([]), t = dt(), n = Q();
|
|
218
234
|
async function r() {
|
|
219
|
-
let r = await
|
|
220
|
-
|
|
221
|
-
if (!
|
|
235
|
+
let r = await xt();
|
|
236
|
+
Et.length = 0, e.value = be(Tt(wt(Ct(r)))), n.isAdmin && Object.keys(m).forEach((e) => {
|
|
237
|
+
if (!Et.includes(e)) {
|
|
222
238
|
let t = `${e} 页面对应的路由不存在`;
|
|
223
239
|
console.error(t);
|
|
224
240
|
}
|
|
225
241
|
}), t.hasRoute("Index") && t.removeRoute("Index"), e.value.forEach((e) => {
|
|
226
242
|
t.addRoute(e);
|
|
227
|
-
}),
|
|
243
|
+
}), G().init();
|
|
228
244
|
}
|
|
229
245
|
function i() {
|
|
230
246
|
e.value.forEach((e) => {
|
|
@@ -236,50 +252,50 @@ var Et = W("router", () => {
|
|
|
236
252
|
getRouters: r,
|
|
237
253
|
routersRaw: e
|
|
238
254
|
};
|
|
239
|
-
}),
|
|
255
|
+
}), At = { class: "ml-2! flex items-center" }, jt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
240
256
|
__name: "Aside",
|
|
241
257
|
setup(e) {
|
|
242
|
-
let t =
|
|
258
|
+
let t = U(), n = W(), r = S(() => n.appInfo.appName), i = Object.values(import.meta.glob("img/side_logo.*", {
|
|
243
259
|
eager: !0,
|
|
244
260
|
import: "default",
|
|
245
261
|
query: "?url"
|
|
246
|
-
}))[0], a =
|
|
247
|
-
|
|
262
|
+
}))[0], a = kt(), o = I([]);
|
|
263
|
+
V(() => t.name, () => {
|
|
248
264
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
249
265
|
o.value.includes(e) || o.value.push(e);
|
|
250
266
|
});
|
|
251
267
|
}, { immediate: !0 });
|
|
252
|
-
let s =
|
|
268
|
+
let s = S(() => {
|
|
253
269
|
let { hidden: e, parentName: n } = t.meta;
|
|
254
270
|
return n !== "" && e === !0 ? n : t.name;
|
|
255
271
|
});
|
|
256
|
-
return (e, t) => (
|
|
272
|
+
return (e, t) => (F(), C(B($e), {
|
|
257
273
|
expanded: o.value,
|
|
258
274
|
"onUpdate:expanded": t[0] ||= (e) => o.value = e,
|
|
259
275
|
class: "w-full!",
|
|
260
276
|
value: s.value
|
|
261
277
|
}, {
|
|
262
|
-
logo:
|
|
278
|
+
logo: H(() => [he("div", At, [D(B(p), {
|
|
263
279
|
class: "logo",
|
|
264
|
-
src:
|
|
280
|
+
src: B(i),
|
|
265
281
|
style: {
|
|
266
282
|
width: "28px",
|
|
267
283
|
height: "28px"
|
|
268
284
|
}
|
|
269
|
-
}, null, 8, ["src"]),
|
|
285
|
+
}, null, 8, ["src"]), D(B(d), {
|
|
270
286
|
"animation-speed": 8,
|
|
271
287
|
"class-name": "ml-2 text-xl !font-bold",
|
|
272
288
|
"show-border": !1,
|
|
273
289
|
text: r.value
|
|
274
290
|
}, null, 8, ["text"])])]),
|
|
275
|
-
default:
|
|
291
|
+
default: H(() => [D(h, { model: B(a).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
276
292
|
_: 1
|
|
277
293
|
}, 8, ["expanded", "value"]));
|
|
278
294
|
}
|
|
279
|
-
}), [["__scopeId", "data-v-
|
|
295
|
+
}), [["__scopeId", "data-v-8784a0a1"]]), Mt = /* @__PURE__ */ O({
|
|
280
296
|
__name: "Breadcrumb",
|
|
281
297
|
setup(e, { expose: t }) {
|
|
282
|
-
let n =
|
|
298
|
+
let n = U(), r = dt(), i = G(), a = S(() => {
|
|
283
299
|
let e = n.matched.map((e) => ({
|
|
284
300
|
name: e.name,
|
|
285
301
|
title: e.meta.title
|
|
@@ -292,30 +308,243 @@ var Et = W("router", () => {
|
|
|
292
308
|
function o(e) {
|
|
293
309
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
294
310
|
}
|
|
295
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (
|
|
311
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (F(), C(B(Le), {
|
|
296
312
|
key: 0,
|
|
297
313
|
class: "absolute top-px z-10 py-1!"
|
|
298
314
|
}, {
|
|
299
|
-
default:
|
|
315
|
+
default: H(() => [(F(!0), T(pe, null, L(a.value, (e) => (F(), C(B(Re), {
|
|
300
316
|
key: e.name,
|
|
301
317
|
disabled: e.disabled,
|
|
302
318
|
onClick: (t) => o(e.name)
|
|
303
319
|
}, {
|
|
304
|
-
default:
|
|
320
|
+
default: H(() => [E(z(e.title), 1)]),
|
|
305
321
|
_: 2
|
|
306
322
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
307
323
|
_: 1
|
|
308
|
-
})) :
|
|
324
|
+
})) : w("v-if", !0);
|
|
325
|
+
}
|
|
326
|
+
}), Nt = {
|
|
327
|
+
name: "zh-cn",
|
|
328
|
+
el: {
|
|
329
|
+
breadcrumb: { label: "面包屑" },
|
|
330
|
+
colorpicker: {
|
|
331
|
+
confirm: "确定",
|
|
332
|
+
clear: "清空",
|
|
333
|
+
defaultLabel: "颜色选择器",
|
|
334
|
+
description: "当前颜色 {color},按 Enter 键选择新颜色",
|
|
335
|
+
alphaLabel: "选择透明度的值",
|
|
336
|
+
alphaDescription: "透明度 {alpha}, 当前颜色 {color}",
|
|
337
|
+
hueLabel: "选择色相值",
|
|
338
|
+
hueDescription: "色相 {hue}, 当前颜色 {color}",
|
|
339
|
+
svLabel: "选择饱和度与明度的值",
|
|
340
|
+
svDescription: "饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",
|
|
341
|
+
predefineDescription: "选择 {value} 作为颜色"
|
|
342
|
+
},
|
|
343
|
+
datepicker: {
|
|
344
|
+
now: "此刻",
|
|
345
|
+
today: "今天",
|
|
346
|
+
cancel: "取消",
|
|
347
|
+
clear: "清空",
|
|
348
|
+
confirm: "确定",
|
|
349
|
+
dateTablePrompt: "使用方向键与 Enter 键可选择日期",
|
|
350
|
+
monthTablePrompt: "使用方向键与 Enter 键可选择月份",
|
|
351
|
+
quarterTablePrompt: "使用方向键与 Enter 键可选择季度",
|
|
352
|
+
yearTablePrompt: "使用方向键与 Enter 键可选择年份",
|
|
353
|
+
selectedDate: "已选日期",
|
|
354
|
+
selectDate: "选择日期",
|
|
355
|
+
selectTime: "选择时间",
|
|
356
|
+
startDate: "开始日期",
|
|
357
|
+
startTime: "开始时间",
|
|
358
|
+
endDate: "结束日期",
|
|
359
|
+
endTime: "结束时间",
|
|
360
|
+
prevYear: "前一年",
|
|
361
|
+
nextYear: "后一年",
|
|
362
|
+
prevMonth: "上个月",
|
|
363
|
+
nextMonth: "下个月",
|
|
364
|
+
year: "年",
|
|
365
|
+
month1: "1 月",
|
|
366
|
+
month2: "2 月",
|
|
367
|
+
month3: "3 月",
|
|
368
|
+
month4: "4 月",
|
|
369
|
+
month5: "5 月",
|
|
370
|
+
month6: "6 月",
|
|
371
|
+
month7: "7 月",
|
|
372
|
+
month8: "8 月",
|
|
373
|
+
month9: "9 月",
|
|
374
|
+
month10: "10 月",
|
|
375
|
+
month11: "11 月",
|
|
376
|
+
month12: "12 月",
|
|
377
|
+
weeks: {
|
|
378
|
+
sun: "日",
|
|
379
|
+
mon: "一",
|
|
380
|
+
tue: "二",
|
|
381
|
+
wed: "三",
|
|
382
|
+
thu: "四",
|
|
383
|
+
fri: "五",
|
|
384
|
+
sat: "六"
|
|
385
|
+
},
|
|
386
|
+
weeksFull: {
|
|
387
|
+
sun: "星期日",
|
|
388
|
+
mon: "星期一",
|
|
389
|
+
tue: "星期二",
|
|
390
|
+
wed: "星期三",
|
|
391
|
+
thu: "星期四",
|
|
392
|
+
fri: "星期五",
|
|
393
|
+
sat: "星期六"
|
|
394
|
+
},
|
|
395
|
+
months: {
|
|
396
|
+
jan: "一月",
|
|
397
|
+
feb: "二月",
|
|
398
|
+
mar: "三月",
|
|
399
|
+
apr: "四月",
|
|
400
|
+
may: "五月",
|
|
401
|
+
jun: "六月",
|
|
402
|
+
jul: "七月",
|
|
403
|
+
aug: "八月",
|
|
404
|
+
sep: "九月",
|
|
405
|
+
oct: "十月",
|
|
406
|
+
nov: "十一月",
|
|
407
|
+
dec: "十二月"
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
input: { characters: "{count} / {max} 个字符" },
|
|
411
|
+
inputNumber: {
|
|
412
|
+
decrease: "减少数值",
|
|
413
|
+
increase: "增加数值"
|
|
414
|
+
},
|
|
415
|
+
select: {
|
|
416
|
+
loading: "加载中",
|
|
417
|
+
noMatch: "无匹配数据",
|
|
418
|
+
noData: "无数据",
|
|
419
|
+
placeholder: "请选择"
|
|
420
|
+
},
|
|
421
|
+
mention: { loading: "加载中" },
|
|
422
|
+
dropdown: { toggleDropdown: "切换下拉选项" },
|
|
423
|
+
cascader: {
|
|
424
|
+
noMatch: "无匹配数据",
|
|
425
|
+
loading: "加载中",
|
|
426
|
+
placeholder: "请选择",
|
|
427
|
+
noData: "暂无数据"
|
|
428
|
+
},
|
|
429
|
+
pagination: {
|
|
430
|
+
goto: "前往",
|
|
431
|
+
pagesize: "条/页",
|
|
432
|
+
total: "共 {total} 条",
|
|
433
|
+
pageClassifier: "页",
|
|
434
|
+
page: "页",
|
|
435
|
+
prev: "上一页",
|
|
436
|
+
next: "下一页",
|
|
437
|
+
currentPage: "第 {pager} 页",
|
|
438
|
+
prevPages: "向前 {pager} 页",
|
|
439
|
+
nextPages: "向后 {pager} 页",
|
|
440
|
+
deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
|
|
441
|
+
},
|
|
442
|
+
dialog: { close: "关闭此对话框" },
|
|
443
|
+
drawer: { close: "关闭此对话框" },
|
|
444
|
+
messagebox: {
|
|
445
|
+
title: "提示",
|
|
446
|
+
confirm: "确定",
|
|
447
|
+
cancel: "取消",
|
|
448
|
+
error: "输入的数据不合法!",
|
|
449
|
+
close: "关闭此对话框"
|
|
450
|
+
},
|
|
451
|
+
upload: {
|
|
452
|
+
deleteTip: "按 Delete 键可删除",
|
|
453
|
+
delete: "删除",
|
|
454
|
+
preview: "查看图片",
|
|
455
|
+
continue: "继续上传"
|
|
456
|
+
},
|
|
457
|
+
slider: {
|
|
458
|
+
defaultLabel: "滑块介于 {min} 至 {max}",
|
|
459
|
+
defaultRangeStartLabel: "选择起始值",
|
|
460
|
+
defaultRangeEndLabel: "选择结束值"
|
|
461
|
+
},
|
|
462
|
+
table: {
|
|
463
|
+
emptyText: "暂无数据",
|
|
464
|
+
confirmFilter: "筛选",
|
|
465
|
+
resetFilter: "重置",
|
|
466
|
+
clearFilter: "全部",
|
|
467
|
+
sumText: "合计",
|
|
468
|
+
selectAllLabel: "选择所有行",
|
|
469
|
+
selectRowLabel: "选择当前行",
|
|
470
|
+
expandRowLabel: "展开当前行",
|
|
471
|
+
collapseRowLabel: "收起当前行",
|
|
472
|
+
sortLabel: "按 {column} 排序",
|
|
473
|
+
filterLabel: "按 {column} 过滤"
|
|
474
|
+
},
|
|
475
|
+
tag: { close: "关闭此标签" },
|
|
476
|
+
tour: {
|
|
477
|
+
next: "下一步",
|
|
478
|
+
previous: "上一步",
|
|
479
|
+
finish: "结束导览",
|
|
480
|
+
close: "关闭此对话框"
|
|
481
|
+
},
|
|
482
|
+
tree: { emptyText: "暂无数据" },
|
|
483
|
+
transfer: {
|
|
484
|
+
noMatch: "无匹配数据",
|
|
485
|
+
noData: "无数据",
|
|
486
|
+
titles: ["列表 1", "列表 2"],
|
|
487
|
+
filterPlaceholder: "请输入搜索内容",
|
|
488
|
+
noCheckedFormat: "共 {total} 项",
|
|
489
|
+
hasCheckedFormat: "已选 {checked}/{total} 项"
|
|
490
|
+
},
|
|
491
|
+
image: { error: "加载失败" },
|
|
492
|
+
pageHeader: { title: "返回" },
|
|
493
|
+
popconfirm: {
|
|
494
|
+
confirmButtonText: "确定",
|
|
495
|
+
cancelButtonText: "取消"
|
|
496
|
+
},
|
|
497
|
+
carousel: {
|
|
498
|
+
leftArrow: "上一张幻灯片",
|
|
499
|
+
rightArrow: "下一张幻灯片",
|
|
500
|
+
indicator: "幻灯片切换至索引 {index}"
|
|
501
|
+
},
|
|
502
|
+
inputOTP: {
|
|
503
|
+
groupLabel: "一次性密码输入框",
|
|
504
|
+
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
505
|
+
}
|
|
309
506
|
}
|
|
310
|
-
}
|
|
507
|
+
}, Pt = /* @__PURE__ */ O({
|
|
508
|
+
name: "TProvider",
|
|
509
|
+
__name: "Provider",
|
|
510
|
+
setup(t) {
|
|
511
|
+
let n = { table: {
|
|
512
|
+
expandIcon: (t) => t($, {
|
|
513
|
+
shape: "circle",
|
|
514
|
+
variant: "text"
|
|
515
|
+
}, { icon: () => t(e, { icon: "ph:caret-right-bold" }) }),
|
|
516
|
+
sortIcon: (t) => t($, {
|
|
517
|
+
shape: "circle",
|
|
518
|
+
size: "small",
|
|
519
|
+
variant: "text"
|
|
520
|
+
}, { icon: () => t(e, { icon: "heroicons-solid:sort-descending" }) }),
|
|
521
|
+
treeExpandAndFoldIcon: (t, { type: n }) => t($, {
|
|
522
|
+
shape: "circle",
|
|
523
|
+
variant: "text"
|
|
524
|
+
}, { icon: () => t(e, { icon: `ph:caret-${n === "expand" ? "right" : "down"}-bold` }) })
|
|
525
|
+
} };
|
|
526
|
+
return (e, t) => (F(), C(B(_t), {
|
|
527
|
+
"empty-values": [""],
|
|
528
|
+
locale: B(Nt),
|
|
529
|
+
"value-on-clear": "",
|
|
530
|
+
"z-index": 5500
|
|
531
|
+
}, {
|
|
532
|
+
default: H(() => [D(B(Ve), { "global-config": n }, {
|
|
533
|
+
default: H(() => [Te(e.$slots, "default")]),
|
|
534
|
+
_: 3
|
|
535
|
+
})]),
|
|
536
|
+
_: 3
|
|
537
|
+
}, 8, ["locale"]));
|
|
538
|
+
}
|
|
539
|
+
}), Ft = /* @__PURE__ */ function(e) {
|
|
311
540
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
312
|
-
}(
|
|
313
|
-
function
|
|
314
|
-
let i =
|
|
541
|
+
}(Ft || {}), It = /* @__PURE__ */ new Set();
|
|
542
|
+
function Lt(e, t, n) {
|
|
543
|
+
let i = S(() => typeof t.body == "function" ? t.body(A) : t.body), a = I(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: o, stop: s } = Ne(a, {
|
|
315
544
|
controls: !0,
|
|
316
545
|
initialValue: !0
|
|
317
546
|
}), c = {
|
|
318
|
-
closeBtn: () =>
|
|
547
|
+
closeBtn: () => A($, {
|
|
319
548
|
icon: "mdi:close",
|
|
320
549
|
shape: "circle",
|
|
321
550
|
size: "small",
|
|
@@ -332,33 +561,33 @@ function Mt(e, t, n) {
|
|
|
332
561
|
placement: "center",
|
|
333
562
|
width: "fit-content",
|
|
334
563
|
...t ?? {},
|
|
335
|
-
body: () =>
|
|
564
|
+
body: () => A(Pt, {}, { default: () => i.value })
|
|
336
565
|
}, l, u = {
|
|
337
566
|
...c,
|
|
338
567
|
onClosed: () => {
|
|
339
|
-
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(),
|
|
568
|
+
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(), It.delete(l);
|
|
340
569
|
}
|
|
341
570
|
};
|
|
342
571
|
delete u.closeWhenCloseAll;
|
|
343
572
|
let d = r();
|
|
344
|
-
return l = e === void 0 ?
|
|
573
|
+
return l = e === void 0 ? Ue(u, n ?? d) : Ue[e](u, n ?? d), c.closeWhenCloseAll && It.add(l), l;
|
|
345
574
|
}
|
|
346
|
-
var
|
|
347
|
-
return
|
|
575
|
+
var Rt = function(...e) {
|
|
576
|
+
return Lt(void 0, ...e);
|
|
348
577
|
};
|
|
349
|
-
Object.values(
|
|
350
|
-
|
|
351
|
-
|
|
578
|
+
Object.values(Ft).forEach((e) => {
|
|
579
|
+
Rt[e] = e === "closeAll" ? () => {
|
|
580
|
+
It.forEach((e) => {
|
|
352
581
|
e.hide();
|
|
353
582
|
});
|
|
354
|
-
} : (...t) =>
|
|
583
|
+
} : (...t) => Lt(e, ...t);
|
|
355
584
|
});
|
|
356
585
|
//#endregion
|
|
357
586
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
358
|
-
var
|
|
587
|
+
var zt = (e, t) => {
|
|
359
588
|
let n = { ...typeof e == "string" ? {} : e };
|
|
360
589
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
361
|
-
let a =
|
|
590
|
+
let a = Rt(typeof e == "string" ? {
|
|
362
591
|
body: e,
|
|
363
592
|
onConfirm: () => {
|
|
364
593
|
a.hide(), r();
|
|
@@ -381,81 +610,81 @@ var Pt = (e, t) => {
|
|
|
381
610
|
}
|
|
382
611
|
}), t);
|
|
383
612
|
});
|
|
384
|
-
},
|
|
385
|
-
function
|
|
386
|
-
let t =
|
|
613
|
+
}, Bt = /* @__PURE__ */ new Map();
|
|
614
|
+
function Vt(e) {
|
|
615
|
+
let t = Y.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
387
616
|
...e,
|
|
388
617
|
label: e.userName,
|
|
389
618
|
value: e.userId
|
|
390
619
|
})));
|
|
391
620
|
e.forEach((e) => {
|
|
392
|
-
|
|
621
|
+
Bt.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
393
622
|
});
|
|
394
623
|
}
|
|
395
|
-
var
|
|
396
|
-
function
|
|
397
|
-
return
|
|
624
|
+
var Ht = [];
|
|
625
|
+
function Ut(e) {
|
|
626
|
+
return Ht.includes(e) || Ht.push(e), new Promise((t) => {
|
|
398
627
|
setTimeout(() => {
|
|
399
|
-
let n =
|
|
400
|
-
n.length > 0 &&
|
|
628
|
+
let n = Ht.filter((e) => !Bt.has(e));
|
|
629
|
+
n.length > 0 && Vt(n), Ht.length = 0, Bt.get(e).then((e) => {
|
|
401
630
|
t(e);
|
|
402
631
|
});
|
|
403
632
|
});
|
|
404
633
|
});
|
|
405
634
|
}
|
|
406
|
-
var
|
|
407
|
-
function
|
|
408
|
-
|
|
635
|
+
var K = /* @__PURE__ */ new Map();
|
|
636
|
+
function Wt() {
|
|
637
|
+
Ht.length = 0, Bt.clear(), K.clear();
|
|
409
638
|
}
|
|
410
|
-
function
|
|
411
|
-
|
|
412
|
-
|
|
639
|
+
function Gt(e) {
|
|
640
|
+
Bt.delete(e), K.has(e) && Ut(e).then((t) => {
|
|
641
|
+
K.get(e).value = t;
|
|
413
642
|
});
|
|
414
643
|
}
|
|
415
|
-
function
|
|
644
|
+
function Kt(e) {
|
|
416
645
|
let t;
|
|
417
|
-
return
|
|
646
|
+
return K.has(e) ? t = K.get(e) : (t = I(null), K.set(e, t), Ut(e).then((e) => {
|
|
418
647
|
t.value = e;
|
|
419
648
|
})), t;
|
|
420
649
|
}
|
|
421
650
|
//#endregion
|
|
422
651
|
//#region ../../packages/dlzn-ui/store/modules/login.ts
|
|
423
|
-
function
|
|
424
|
-
return
|
|
652
|
+
function qt(e) {
|
|
653
|
+
return Y.Post("login", e, { meta: {
|
|
425
654
|
useLoading: "登录中...",
|
|
426
655
|
useToken: !1
|
|
427
656
|
} });
|
|
428
657
|
}
|
|
429
|
-
function
|
|
430
|
-
return
|
|
658
|
+
function Jt() {
|
|
659
|
+
return Y.Post("logout", void 0, { meta: {
|
|
431
660
|
useLoading: "退出登录中...",
|
|
432
661
|
useSuccessMsg: !0
|
|
433
662
|
} });
|
|
434
663
|
}
|
|
435
|
-
var
|
|
436
|
-
let e =
|
|
664
|
+
var Yt = ct("login", () => {
|
|
665
|
+
let e = I(""), t = U(), n = dt();
|
|
437
666
|
async function r(t) {
|
|
438
|
-
let n = await
|
|
667
|
+
let n = await qt(t);
|
|
439
668
|
e.value = n.token, await Q().getUserInfo();
|
|
440
669
|
}
|
|
441
670
|
function i() {
|
|
442
|
-
e.value = "", u().clear(),
|
|
671
|
+
e.value = "", u().clear(), kt().clear(), Q().clear(), fn(), Wt(), ne();
|
|
443
672
|
}
|
|
444
|
-
|
|
673
|
+
V(() => t.name, () => {
|
|
445
674
|
t.name === "Login" && i();
|
|
446
675
|
});
|
|
447
676
|
async function a() {
|
|
448
|
-
await
|
|
677
|
+
await Jt(), await n.push({ name: "Login" }), i();
|
|
449
678
|
}
|
|
450
679
|
return {
|
|
451
680
|
login: r,
|
|
452
681
|
logout: a,
|
|
453
682
|
token: e
|
|
454
683
|
};
|
|
455
|
-
}, { persist: { pick: ["token"] } }),
|
|
684
|
+
}, { persist: { pick: ["token"] } }), Xt = { class: "flex items-center justify-between" }, Zt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
456
685
|
__name: "Header",
|
|
457
686
|
setup(t) {
|
|
458
|
-
let n =
|
|
687
|
+
let n = U(), r = dt(), i = Q(), a = W(), o = G();
|
|
459
688
|
function s(e) {
|
|
460
689
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
461
690
|
}
|
|
@@ -464,7 +693,7 @@ var Wt = W("login", () => {
|
|
|
464
693
|
}
|
|
465
694
|
let u = async (e) => {
|
|
466
695
|
let { value: t } = e;
|
|
467
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await
|
|
696
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await zt("确定要退出登录吗?"), Yt().logout());
|
|
468
697
|
}, d = l.isMd;
|
|
469
698
|
function f(e, t) {
|
|
470
699
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
@@ -486,25 +715,25 @@ var Wt = W("login", () => {
|
|
|
486
715
|
onClick: () => {
|
|
487
716
|
l > s && r.push(u), o.recentRouters = o.recentRouters.slice(0, s + 1);
|
|
488
717
|
}
|
|
489
|
-
}),
|
|
718
|
+
}), ee(e, i);
|
|
490
719
|
}
|
|
491
|
-
return (t, r) => (
|
|
492
|
-
default:
|
|
720
|
+
return (t, r) => (F(), C(B(Xe), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
721
|
+
default: H(() => [D(B(Ye), {
|
|
493
722
|
"expand-type": "popup",
|
|
494
|
-
value:
|
|
723
|
+
value: B(n).name,
|
|
495
724
|
onChange: s
|
|
496
725
|
}, {
|
|
497
|
-
logo:
|
|
726
|
+
logo: H(() => [D(B($), {
|
|
498
727
|
class: "ml-0! shrink-0",
|
|
499
728
|
shape: "circle",
|
|
500
729
|
size: "large",
|
|
501
730
|
variant: "text",
|
|
502
|
-
onClick: r[0] ||= (e) =>
|
|
731
|
+
onClick: r[0] ||= (e) => B(a).drawerOpen = !B(a).drawerOpen
|
|
503
732
|
}, {
|
|
504
|
-
default:
|
|
733
|
+
default: H(() => [D(B(e), { icon: "lineicons:menu-hamburger-1" })]),
|
|
505
734
|
_: 1
|
|
506
735
|
})]),
|
|
507
|
-
operations:
|
|
736
|
+
operations: H(() => [D(B(Ke), {
|
|
508
737
|
options: [{
|
|
509
738
|
content: "个人中心",
|
|
510
739
|
value: "profile"
|
|
@@ -516,36 +745,36 @@ var Wt = W("login", () => {
|
|
|
516
745
|
trigger: "click",
|
|
517
746
|
onClick: u
|
|
518
747
|
}, {
|
|
519
|
-
default:
|
|
748
|
+
default: H(() => [B(d) ? (F(), C(B($), {
|
|
520
749
|
key: 0,
|
|
521
750
|
shape: "square",
|
|
522
751
|
variant: "text"
|
|
523
752
|
}, {
|
|
524
|
-
icon:
|
|
753
|
+
icon: H(() => [D(B(e), { icon: "material-symbols:account-circle" })]),
|
|
525
754
|
_: 1
|
|
526
|
-
})) : (
|
|
755
|
+
})) : (F(), C(B($), {
|
|
527
756
|
key: 1,
|
|
528
757
|
variant: "text"
|
|
529
758
|
}, {
|
|
530
|
-
icon:
|
|
759
|
+
icon: H(() => [D(B(e), {
|
|
531
760
|
class: "mr-2!",
|
|
532
761
|
icon: "material-symbols:account-circle"
|
|
533
762
|
})]),
|
|
534
|
-
suffix:
|
|
763
|
+
suffix: H(() => [D(B(e), {
|
|
535
764
|
icon: "icon-park-outline:down",
|
|
536
765
|
size: "18"
|
|
537
766
|
})]),
|
|
538
|
-
default:
|
|
767
|
+
default: H(() => [E(" " + z(B(i).userInfo.userName) + " ", 1)]),
|
|
539
768
|
_: 1
|
|
540
769
|
}))]),
|
|
541
770
|
_: 1
|
|
542
771
|
})]),
|
|
543
|
-
default:
|
|
772
|
+
default: H(() => [(F(!0), T(pe, null, L(B(o).recentRouters, (t) => (F(), C(B(et), {
|
|
544
773
|
key: t.name,
|
|
545
774
|
value: t.name,
|
|
546
775
|
onContextmenu: (e) => f(e, t.name)
|
|
547
776
|
}, {
|
|
548
|
-
default:
|
|
777
|
+
default: H(() => [he("div", Xt, [he("span", null, z(B(J)(t.name).meta.title), 1), B(o).recentRouters.length > 1 ? (F(), C(B($), {
|
|
549
778
|
key: 0,
|
|
550
779
|
class: "ml-1!",
|
|
551
780
|
shape: "square",
|
|
@@ -553,12 +782,12 @@ var Wt = W("login", () => {
|
|
|
553
782
|
variant: "text",
|
|
554
783
|
onClick: je((e) => c(t.name), ["stop"])
|
|
555
784
|
}, {
|
|
556
|
-
icon:
|
|
785
|
+
icon: H(() => [D(B(e), {
|
|
557
786
|
icon: "material-symbols:close",
|
|
558
787
|
style: { "font-size": "12px !important" }
|
|
559
788
|
})]),
|
|
560
789
|
_: 1
|
|
561
|
-
}, 8, ["onClick"])) :
|
|
790
|
+
}, 8, ["onClick"])) : w("v-if", !0)])]),
|
|
562
791
|
_: 2
|
|
563
792
|
}, 1032, ["value", "onContextmenu"]))), 128))]),
|
|
564
793
|
_: 1
|
|
@@ -566,40 +795,40 @@ var Wt = W("login", () => {
|
|
|
566
795
|
_: 1
|
|
567
796
|
}));
|
|
568
797
|
}
|
|
569
|
-
}), [["__scopeId", "data-v-cdf58b1a"]]),
|
|
798
|
+
}), [["__scopeId", "data-v-cdf58b1a"]]), Qt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
570
799
|
__name: "Index",
|
|
571
800
|
setup(e) {
|
|
572
|
-
let t =
|
|
801
|
+
let t = U(), n = W(), r = G(), i = u(), a = S(() => r.recentRouters.filter((e) => J(e.name).meta.noCache === !1).map((e) => e.name)), o = Ae("breadcrumb"), s = S(() => (o.value?.items.length ?? 0) > 0), d = S(() => l.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), f = l.isMd, p = Ae("contentRef"), { height: m } = Me(p);
|
|
573
802
|
function h({ size: e }) {
|
|
574
803
|
n.drawerSize = e;
|
|
575
804
|
}
|
|
576
|
-
let ee =
|
|
805
|
+
let ee = S(() => t.meta.fullScreen);
|
|
577
806
|
return (e, t) => {
|
|
578
807
|
let r = Ee("RouterView");
|
|
579
|
-
return ee.value ? (
|
|
580
|
-
default:
|
|
808
|
+
return ee.value ? (F(), C(r, { key: 0 }, {
|
|
809
|
+
default: H(({ Component: e }) => [(F(), C(R(e)))]),
|
|
581
810
|
_: 1
|
|
582
|
-
})) : (
|
|
811
|
+
})) : (F(), C(B(Qe), {
|
|
583
812
|
key: 1,
|
|
584
813
|
class: "h-full"
|
|
585
814
|
}, {
|
|
586
|
-
default:
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
visible:
|
|
590
|
-
"onUpdate:visible": t[0] ||= (e) =>
|
|
815
|
+
default: H(() => [
|
|
816
|
+
D(Zt),
|
|
817
|
+
D(B(We), {
|
|
818
|
+
visible: B(n).drawerOpen,
|
|
819
|
+
"onUpdate:visible": t[0] ||= (e) => B(n).drawerOpen = e,
|
|
591
820
|
footer: !1,
|
|
592
|
-
mode:
|
|
821
|
+
mode: B(f) ? "overlay" : "push",
|
|
593
822
|
placement: "left",
|
|
594
|
-
"show-overlay":
|
|
595
|
-
size:
|
|
823
|
+
"show-overlay": B(f),
|
|
824
|
+
size: B(f) ? "200px" : `${B(n).drawerSize}px`,
|
|
596
825
|
"size-draggable": {
|
|
597
826
|
max: 450,
|
|
598
827
|
min: 180
|
|
599
828
|
},
|
|
600
829
|
onSizeDragEnd: h
|
|
601
830
|
}, {
|
|
602
|
-
default:
|
|
831
|
+
default: H(() => [D(jt, { class: "no_drawer_body_padding" })]),
|
|
603
832
|
_: 1
|
|
604
833
|
}, 8, [
|
|
605
834
|
"visible",
|
|
@@ -607,12 +836,12 @@ var Wt = W("login", () => {
|
|
|
607
836
|
"show-overlay",
|
|
608
837
|
"size"
|
|
609
838
|
]),
|
|
610
|
-
|
|
839
|
+
D(B(He), {
|
|
611
840
|
ref_key: "contentRef",
|
|
612
841
|
ref: p,
|
|
613
842
|
class: "overflow-hidden"
|
|
614
843
|
}, {
|
|
615
|
-
default:
|
|
844
|
+
default: H(() => [D(B(c), {
|
|
616
845
|
always: "",
|
|
617
846
|
"view-class": xe(["relative flex flex-col", {
|
|
618
847
|
...d.value,
|
|
@@ -620,14 +849,14 @@ var Wt = W("login", () => {
|
|
|
620
849
|
}]),
|
|
621
850
|
"view-style": {
|
|
622
851
|
minWidth: "1200px",
|
|
623
|
-
minHeight: `${Math.max(
|
|
852
|
+
minHeight: `${Math.max(B(m), 438)}px`
|
|
624
853
|
}
|
|
625
854
|
}, {
|
|
626
|
-
default:
|
|
627
|
-
default:
|
|
628
|
-
exclude:
|
|
855
|
+
default: H(() => [D(Mt, { ref: "breadcrumb" }, null, 512), D(r, null, {
|
|
856
|
+
default: H(({ Component: e }) => [(F(), C(me, {
|
|
857
|
+
exclude: B(i).excludeKPname,
|
|
629
858
|
include: a.value
|
|
630
|
-
}, [(
|
|
859
|
+
}, [(F(), C(R(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
631
860
|
_: 1
|
|
632
861
|
})]),
|
|
633
862
|
_: 1
|
|
@@ -639,10 +868,38 @@ var Wt = W("login", () => {
|
|
|
639
868
|
}));
|
|
640
869
|
};
|
|
641
870
|
}
|
|
642
|
-
}), [["__scopeId", "data-v-0f5b5eef"]]);
|
|
871
|
+
}), [["__scopeId", "data-v-0f5b5eef"]]), $t = /* @__PURE__ */ new Set();
|
|
872
|
+
function en(e, t) {
|
|
873
|
+
let n = S(() => typeof e.body == "function" ? e.body(A) : e.body), i = {
|
|
874
|
+
attach: "#app",
|
|
875
|
+
closeOnEscKeydown: !1,
|
|
876
|
+
closeOnOverlayClick: !1,
|
|
877
|
+
closeWhenCloseAll: !0,
|
|
878
|
+
destroyOnClose: !0,
|
|
879
|
+
header: !1,
|
|
880
|
+
lazy: !0,
|
|
881
|
+
sizeDraggable: !0,
|
|
882
|
+
...e ?? {},
|
|
883
|
+
body: () => A(Pt, {}, { default: () => n.value })
|
|
884
|
+
}, a, o = {
|
|
885
|
+
...i,
|
|
886
|
+
onClose: (e) => {
|
|
887
|
+
i.onClose?.(e), $t.delete(a);
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
return delete o.closeWhenCloseAll, a = Ge(o, t ?? r()), i.closeWhenCloseAll && $t.add(a), a;
|
|
891
|
+
}
|
|
892
|
+
var tn = function(...e) {
|
|
893
|
+
return en(...e);
|
|
894
|
+
};
|
|
895
|
+
tn.closeAll = () => {
|
|
896
|
+
$t.forEach((e) => {
|
|
897
|
+
e.hide?.();
|
|
898
|
+
});
|
|
899
|
+
};
|
|
643
900
|
//#endregion
|
|
644
901
|
//#region ../../packages/dlzn-ui/router/index.ts
|
|
645
|
-
function
|
|
902
|
+
function nn() {
|
|
646
903
|
return {
|
|
647
904
|
children: [{
|
|
648
905
|
children: [{
|
|
@@ -670,15 +927,15 @@ function Jt() {
|
|
|
670
927
|
name: "Home",
|
|
671
928
|
path: "home"
|
|
672
929
|
}],
|
|
673
|
-
component:
|
|
930
|
+
component: Qt,
|
|
674
931
|
name: "Index",
|
|
675
932
|
path: "/"
|
|
676
933
|
};
|
|
677
934
|
}
|
|
678
|
-
var
|
|
679
|
-
history:
|
|
935
|
+
var q = lt({
|
|
936
|
+
history: ut(VITE_BASE_URL),
|
|
680
937
|
routes: [
|
|
681
|
-
|
|
938
|
+
nn(),
|
|
682
939
|
{
|
|
683
940
|
component: s["./Login.vue"],
|
|
684
941
|
meta: {
|
|
@@ -709,16 +966,16 @@ var Y = ot({
|
|
|
709
966
|
sensitive: !0,
|
|
710
967
|
strict: !0
|
|
711
968
|
});
|
|
712
|
-
|
|
713
|
-
if (e.query._fromLeftTree === "true" && u().add(e.name), e.name !== "Login") return
|
|
969
|
+
q.beforeEach(async (e) => {
|
|
970
|
+
if (e.query._fromLeftTree === "true" && u().add(e.name), e.name !== "Login") return Yt().token === "" ? { name: "Login" } : kt().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), q.resolve({
|
|
714
971
|
path: e.path,
|
|
715
972
|
query: e.query
|
|
716
973
|
}));
|
|
717
|
-
}),
|
|
718
|
-
|
|
974
|
+
}), q.afterEach((e, t, n) => {
|
|
975
|
+
Rt.closeAll(), tn.closeAll();
|
|
719
976
|
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: s } = r;
|
|
720
|
-
document.title = s ||
|
|
721
|
-
let c =
|
|
977
|
+
document.title = s || W().appInfo.appName;
|
|
978
|
+
let c = G();
|
|
722
979
|
if (!["Login", "NotFound"].includes(i) && !a) {
|
|
723
980
|
let n = o === t.name || e.query._fromLeftTree !== "true" ? t.name : void 0;
|
|
724
981
|
c.add(n, {
|
|
@@ -728,27 +985,27 @@ Y.beforeEach(async (e) => {
|
|
|
728
985
|
}
|
|
729
986
|
u().remove(i);
|
|
730
987
|
});
|
|
731
|
-
function
|
|
732
|
-
if (
|
|
988
|
+
function J(e) {
|
|
989
|
+
if (q.hasRoute(e)) return q.getRoutes().find((t) => t.name === e);
|
|
733
990
|
}
|
|
734
991
|
//#endregion
|
|
735
992
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
736
|
-
var
|
|
737
|
-
function
|
|
993
|
+
var rn = 15e3, an = "网络错误,请稍后再试";
|
|
994
|
+
function on(e, t = !0) {
|
|
738
995
|
let n = {};
|
|
739
996
|
return Object.keys(e).forEach((r) => {
|
|
740
997
|
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !_(e[r]))) && (n[r] = e[r]);
|
|
741
998
|
}), n;
|
|
742
999
|
}
|
|
743
|
-
function
|
|
744
|
-
return new URLSearchParams(
|
|
1000
|
+
function sn(e, t = !0) {
|
|
1001
|
+
return new URLSearchParams(on(e, t)).toString();
|
|
745
1002
|
}
|
|
746
|
-
var
|
|
1003
|
+
var Y = pt({
|
|
747
1004
|
baseURL: VITE_BASE_URL,
|
|
748
1005
|
beforeRequest(e) {
|
|
749
1006
|
e.config.credentials = e.config.credentials ?? "omit";
|
|
750
1007
|
let [t, ...n] = VITE_API_PREFIX_ARRAY;
|
|
751
|
-
!e.url.startsWith("http") && !n.some((t) =>
|
|
1008
|
+
!e.url.startsWith("http") && !n.some((t) => gt.join("/", e.url).startsWith(gt.join("/", t, "/"))) && (e.url = gt.join(t, e.url)), e.meta = {
|
|
752
1009
|
use600Alert: !0,
|
|
753
1010
|
useDataResult: !0,
|
|
754
1011
|
useDownload: !1,
|
|
@@ -765,10 +1022,10 @@ var X = ut({
|
|
|
765
1022
|
useToken: !0,
|
|
766
1023
|
...e.meta ?? {}
|
|
767
1024
|
};
|
|
768
|
-
let r =
|
|
769
|
-
c ||
|
|
1025
|
+
let r = Yt(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: c, useLoading: l, useResponseBlob: u, useToken: d } = e.meta;
|
|
1026
|
+
c || W().requestActive(), d && (r.token ? e.config.headers.Authorization = r.token : e.abort()), l !== !1 && i.show(l === !0 ? void 0 : l);
|
|
770
1027
|
let f = e.config.params;
|
|
771
|
-
if (typeof f != "string" && (e.config.params =
|
|
1028
|
+
if (typeof f != "string" && (e.config.params = sn(f, o)), a && st(e.data)) {
|
|
772
1029
|
let t = {}, n = e.data;
|
|
773
1030
|
Object.keys(n).forEach((e) => {
|
|
774
1031
|
_(n[e]) || (t[e] = n[e]);
|
|
@@ -780,10 +1037,10 @@ var X = ut({
|
|
|
780
1037
|
t.append(n, e.data[n]);
|
|
781
1038
|
}), e.data = t;
|
|
782
1039
|
}
|
|
783
|
-
e.config.timeout ===
|
|
1040
|
+
e.config.timeout === rn && (s || e.data instanceof FormData || u) && (e.config.timeout = 0);
|
|
784
1041
|
},
|
|
785
1042
|
cacheFor: null,
|
|
786
|
-
requestAdapter:
|
|
1043
|
+
requestAdapter: mt(),
|
|
787
1044
|
responded: {
|
|
788
1045
|
onComplete: (e) => {
|
|
789
1046
|
e.meta.useLoading !== !1 && i.hide();
|
|
@@ -795,7 +1052,7 @@ var X = ut({
|
|
|
795
1052
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
796
1053
|
if (t.toLowerCase().includes("timeout")) return n && o.error("请求超时"), Promise.reject(e);
|
|
797
1054
|
}
|
|
798
|
-
return n && o.error(
|
|
1055
|
+
return n && o.error(an), Promise.reject(e);
|
|
799
1056
|
},
|
|
800
1057
|
onSuccess: async (e, t) => {
|
|
801
1058
|
if (typeof e == "string") return e;
|
|
@@ -806,7 +1063,7 @@ var X = ut({
|
|
|
806
1063
|
403: "当前操作没有权限",
|
|
807
1064
|
404: "访问资源不存在",
|
|
808
1065
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
809
|
-
}[m] ??
|
|
1066
|
+
}[m] ?? an;
|
|
810
1067
|
o.error(e);
|
|
811
1068
|
}
|
|
812
1069
|
return Promise.reject(e);
|
|
@@ -847,11 +1104,11 @@ var X = ut({
|
|
|
847
1104
|
if (e >= 400) {
|
|
848
1105
|
if (e === 600) {
|
|
849
1106
|
if (!s) return h;
|
|
850
|
-
} else e === 401 && d ?
|
|
1107
|
+
} else e === 401 && d ? q.push({ name: "Login" }) : a !== !1 && o.error(a === !0 ? n : a);
|
|
851
1108
|
return Promise.reject(h);
|
|
852
1109
|
}
|
|
853
1110
|
{
|
|
854
|
-
let i =
|
|
1111
|
+
let i = ft.alovaResCodeSuccessCb?.({
|
|
855
1112
|
code: e,
|
|
856
1113
|
data: t,
|
|
857
1114
|
msg: n
|
|
@@ -863,11 +1120,11 @@ var X = ut({
|
|
|
863
1120
|
}
|
|
864
1121
|
},
|
|
865
1122
|
shareRequest: !1,
|
|
866
|
-
statesHook:
|
|
867
|
-
timeout:
|
|
868
|
-
}),
|
|
869
|
-
function
|
|
870
|
-
let t =
|
|
1123
|
+
statesHook: ht,
|
|
1124
|
+
timeout: rn
|
|
1125
|
+
}), cn = /* @__PURE__ */ new Map();
|
|
1126
|
+
function ln(e) {
|
|
1127
|
+
let t = Y.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
871
1128
|
cssClass: e.cssClass,
|
|
872
1129
|
dictType: e.dictType,
|
|
873
1130
|
label: e.dictLabel,
|
|
@@ -875,27 +1132,27 @@ function tn(e) {
|
|
|
875
1132
|
value: e.dictValue
|
|
876
1133
|
})));
|
|
877
1134
|
e.forEach((e) => {
|
|
878
|
-
|
|
1135
|
+
cn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
879
1136
|
});
|
|
880
1137
|
}
|
|
881
|
-
var
|
|
882
|
-
function
|
|
883
|
-
return
|
|
1138
|
+
var un = [];
|
|
1139
|
+
function dn(e) {
|
|
1140
|
+
return un.includes(e) || un.push(e), new Promise((t) => {
|
|
884
1141
|
setTimeout(() => {
|
|
885
|
-
let n =
|
|
886
|
-
n.length > 0 &&
|
|
1142
|
+
let n = un.filter((e) => !cn.has(e));
|
|
1143
|
+
n.length > 0 && ln(n), un.length = 0, cn.get(e).then((e) => {
|
|
887
1144
|
t(e);
|
|
888
1145
|
});
|
|
889
1146
|
});
|
|
890
1147
|
});
|
|
891
1148
|
}
|
|
892
|
-
var
|
|
893
|
-
function
|
|
894
|
-
|
|
1149
|
+
var X = /* @__PURE__ */ new Map();
|
|
1150
|
+
function fn() {
|
|
1151
|
+
un.length = 0, cn.clear(), X.clear();
|
|
895
1152
|
}
|
|
896
|
-
function
|
|
897
|
-
let n =
|
|
898
|
-
return
|
|
1153
|
+
function pn(e, t) {
|
|
1154
|
+
let n = Z(e);
|
|
1155
|
+
return S(() => {
|
|
899
1156
|
if (t === void 0) return n.value.map((e) => e.label);
|
|
900
1157
|
if (Array.isArray(t)) return n.value.length === 0 ? [] : t.map((e) => n.value.find((t) => String(t.value) === String(e))?.label ?? y(e));
|
|
901
1158
|
if (n.value.length === 0) return "";
|
|
@@ -906,20 +1163,20 @@ function on(e, t) {
|
|
|
906
1163
|
return n.value.find((e) => String(e.value) === String(t))?.label ?? y(t);
|
|
907
1164
|
});
|
|
908
1165
|
}
|
|
909
|
-
function
|
|
1166
|
+
function Z(e, t) {
|
|
910
1167
|
let n;
|
|
911
|
-
return
|
|
1168
|
+
return X.has(e) ? n = X.get(e) : (n = I([]), X.set(e, n), dn(e).then((e) => {
|
|
912
1169
|
n.value = e;
|
|
913
|
-
})),
|
|
1170
|
+
})), S(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
914
1171
|
}
|
|
915
|
-
function
|
|
916
|
-
|
|
917
|
-
|
|
1172
|
+
function mn(e) {
|
|
1173
|
+
cn.delete(e), X.has(e) && dn(e).then((t) => {
|
|
1174
|
+
X.get(e).value = t;
|
|
918
1175
|
});
|
|
919
1176
|
}
|
|
920
1177
|
//#endregion
|
|
921
1178
|
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
922
|
-
var
|
|
1179
|
+
var hn = /* @__PURE__ */ O({
|
|
923
1180
|
inheritAttrs: !1,
|
|
924
1181
|
name: "TCheckboxGroup",
|
|
925
1182
|
__name: "checkbox-group",
|
|
@@ -946,17 +1203,17 @@ var ln = /* @__PURE__ */ k({
|
|
|
946
1203
|
},
|
|
947
1204
|
emits: ["update:modelValue"],
|
|
948
1205
|
setup(e, { emit: t }) {
|
|
949
|
-
let r = e, i = t, a = Be, o =
|
|
1206
|
+
let r = e, i = t, a = Be, o = k();
|
|
950
1207
|
function s(e) {
|
|
951
1208
|
o.exposed = e ?? {};
|
|
952
1209
|
}
|
|
953
|
-
let c =
|
|
1210
|
+
let c = S(() => {
|
|
954
1211
|
let e;
|
|
955
|
-
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e =
|
|
1212
|
+
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e = Z(r.dicCode).value) : e = typeof r.options == "string" ? x(r.options).value : r.options, r.showCheckAll && (e === void 0 ? n.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
956
1213
|
checkAll: !0,
|
|
957
1214
|
label: "全选"
|
|
958
1215
|
})), e;
|
|
959
|
-
}), l =
|
|
1216
|
+
}), l = S(() => {
|
|
960
1217
|
if (!Array.isArray(r.modelValue)) n.error("TCheckboxGroup: modelValue must be an array");
|
|
961
1218
|
else if (c.value !== void 0) {
|
|
962
1219
|
let e = c.value.every((e) => typeof (e.value ?? e) == "string"), t = c.value.every((e) => typeof (e.value ?? e) == "number");
|
|
@@ -964,13 +1221,13 @@ var ln = /* @__PURE__ */ k({
|
|
|
964
1221
|
if (t) return r.modelValue.map((e) => v(e) ? Number(e) : e);
|
|
965
1222
|
}
|
|
966
1223
|
return r.modelValue;
|
|
967
|
-
}), u =
|
|
1224
|
+
}), u = S(() => {
|
|
968
1225
|
let e = { ...r };
|
|
969
1226
|
return delete e.dicCode, delete e.showCheckAll, Object.keys(e).forEach((t) => {
|
|
970
1227
|
e[t] === void 0 && delete e[t];
|
|
971
1228
|
}), e;
|
|
972
1229
|
});
|
|
973
|
-
return (e, t) => (
|
|
1230
|
+
return (e, t) => (F(), C(R(A(B(a), M(e.$attrs, {
|
|
974
1231
|
...u.value,
|
|
975
1232
|
options: c.value,
|
|
976
1233
|
modelValue: l.value,
|
|
@@ -980,10 +1237,10 @@ var ln = /* @__PURE__ */ k({
|
|
|
980
1237
|
ref: s
|
|
981
1238
|
}), e.$slots))));
|
|
982
1239
|
}
|
|
983
|
-
}),
|
|
1240
|
+
}), gn = /* @__PURE__ */ O({
|
|
984
1241
|
inheritAttrs: !1,
|
|
985
1242
|
__name: "cron",
|
|
986
|
-
props: /*@__PURE__*/
|
|
1243
|
+
props: /*@__PURE__*/ j({
|
|
987
1244
|
modelValue: {},
|
|
988
1245
|
adornment: {},
|
|
989
1246
|
align: {},
|
|
@@ -1028,19 +1285,19 @@ var ln = /* @__PURE__ */ k({
|
|
|
1028
1285
|
onPaste: { type: Function },
|
|
1029
1286
|
onValidate: { type: Function },
|
|
1030
1287
|
onWheel: { type: Function }
|
|
1031
|
-
},
|
|
1288
|
+
}, re),
|
|
1032
1289
|
emits: ["update:modelValue"],
|
|
1033
1290
|
setup(e, { emit: t }) {
|
|
1034
|
-
let n = e, r = t, i = ye("isFormDisabled",
|
|
1291
|
+
let n = e, r = t, i = ye("isFormDisabled", S(() => !1)), a = ye("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1035
1292
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1036
1293
|
return {
|
|
1037
1294
|
...n,
|
|
1038
|
-
adornment: { append: () =>
|
|
1295
|
+
adornment: { append: () => A($, {
|
|
1039
1296
|
default: "cron",
|
|
1040
1297
|
onClick: () => {
|
|
1041
|
-
let i =
|
|
1042
|
-
|
|
1043
|
-
body: () =>
|
|
1298
|
+
let i = I(null);
|
|
1299
|
+
zt({
|
|
1300
|
+
body: () => A(_e(() => import("../components/cron/src/Picker.mjs")), {
|
|
1044
1301
|
disabled: e,
|
|
1045
1302
|
modelValue: n.modelValue,
|
|
1046
1303
|
onVnodeMounted: (e) => {
|
|
@@ -1062,20 +1319,20 @@ var ln = /* @__PURE__ */ k({
|
|
|
1062
1319
|
variant: "text"
|
|
1063
1320
|
}) }
|
|
1064
1321
|
};
|
|
1065
|
-
}), s = Oe(), c =
|
|
1322
|
+
}), s = Oe(), c = k();
|
|
1066
1323
|
function l(e) {
|
|
1067
1324
|
c.exposed = e ?? {};
|
|
1068
1325
|
}
|
|
1069
|
-
let u =
|
|
1326
|
+
let u = S(() => M(s, {
|
|
1070
1327
|
...o.value,
|
|
1071
1328
|
onChange: (...e) => {
|
|
1072
1329
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1073
1330
|
},
|
|
1074
1331
|
ref: l
|
|
1075
1332
|
}));
|
|
1076
|
-
return (e, t) => (
|
|
1333
|
+
return (e, t) => (F(), C(B(ie), P(ve(u.value)), null, 16));
|
|
1077
1334
|
}
|
|
1078
|
-
}),
|
|
1335
|
+
}), _n = /* @__PURE__ */ O({
|
|
1079
1336
|
inheritAttrs: !1,
|
|
1080
1337
|
name: "TRadioGroup",
|
|
1081
1338
|
__name: "radio-group",
|
|
@@ -1105,16 +1362,16 @@ var ln = /* @__PURE__ */ k({
|
|
|
1105
1362
|
},
|
|
1106
1363
|
emits: ["update:modelValue"],
|
|
1107
1364
|
setup(e, { emit: t }) {
|
|
1108
|
-
let r = e, i = t, a =
|
|
1365
|
+
let r = e, i = t, a = tt, o = k();
|
|
1109
1366
|
function s(e) {
|
|
1110
1367
|
o.exposed = e ?? {};
|
|
1111
1368
|
}
|
|
1112
|
-
let c =
|
|
1369
|
+
let c = S(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"), Z(r.dicCode).value) : typeof r.options == "string" ? x(r.options).value : r.options), l = S(() => {
|
|
1113
1370
|
let e = { ...r };
|
|
1114
1371
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1115
1372
|
e[t] === void 0 && delete e[t];
|
|
1116
1373
|
}), e;
|
|
1117
|
-
}), u =
|
|
1374
|
+
}), u = S(() => {
|
|
1118
1375
|
if (c.value !== void 0 && !_(r.modelValue)) {
|
|
1119
1376
|
let e = c.value.every((e) => typeof (e.value ?? e) == "string"), t = c.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1120
1377
|
if (e) return y(r.modelValue);
|
|
@@ -1122,18 +1379,18 @@ var ln = /* @__PURE__ */ k({
|
|
|
1122
1379
|
}
|
|
1123
1380
|
return r.modelValue;
|
|
1124
1381
|
});
|
|
1125
|
-
return (e, t) => (
|
|
1382
|
+
return (e, t) => (F(), C(R(A(B(a), M(e.$attrs, {
|
|
1126
1383
|
...l.value,
|
|
1127
1384
|
options: c.value,
|
|
1128
1385
|
modelValue: u.value,
|
|
1129
1386
|
onChange: (...e) => {
|
|
1130
|
-
let [t, ...n] = e, a =
|
|
1387
|
+
let [t, ...n] = e, a = B(_)(t) ? "" : t;
|
|
1131
1388
|
i("update:modelValue", a), r.onChange?.(a, ...n);
|
|
1132
1389
|
},
|
|
1133
1390
|
ref: s
|
|
1134
1391
|
}), e.$slots))));
|
|
1135
1392
|
}
|
|
1136
|
-
}),
|
|
1393
|
+
}), vn = {
|
|
1137
1394
|
clearable: !0,
|
|
1138
1395
|
disabled: void 0,
|
|
1139
1396
|
filterable: void 0,
|
|
@@ -1154,11 +1411,11 @@ var ln = /* @__PURE__ */ k({
|
|
|
1154
1411
|
}),
|
|
1155
1412
|
showArrow: !0,
|
|
1156
1413
|
showCheckAll: !1
|
|
1157
|
-
},
|
|
1414
|
+
}, yn = /* @__PURE__ */ O({
|
|
1158
1415
|
inheritAttrs: !1,
|
|
1159
1416
|
name: "TSelect",
|
|
1160
1417
|
__name: "select",
|
|
1161
|
-
props: /*@__PURE__*/
|
|
1418
|
+
props: /*@__PURE__*/ j({
|
|
1162
1419
|
adornment: {},
|
|
1163
1420
|
dicCode: {},
|
|
1164
1421
|
modelValue: {},
|
|
@@ -1218,19 +1475,19 @@ var ln = /* @__PURE__ */ k({
|
|
|
1218
1475
|
onPopupVisibleChange: { type: Function },
|
|
1219
1476
|
onRemove: { type: Function },
|
|
1220
1477
|
onSearch: { type: Function }
|
|
1221
|
-
},
|
|
1478
|
+
}, vn),
|
|
1222
1479
|
setup(e) {
|
|
1223
|
-
let t = e, r =
|
|
1480
|
+
let t = e, r = nt, i = k();
|
|
1224
1481
|
function a(e) {
|
|
1225
1482
|
i.exposed = e ?? {};
|
|
1226
1483
|
}
|
|
1227
|
-
let o =
|
|
1484
|
+
let o = S(() => {
|
|
1228
1485
|
let e;
|
|
1229
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ? x(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e =
|
|
1486
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? x(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e = Z(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? n.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
1230
1487
|
checkAll: !0,
|
|
1231
1488
|
[t.keys?.label ?? "label"]: "全选"
|
|
1232
1489
|
}) : n.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
1233
|
-
}), s =
|
|
1490
|
+
}), s = S(() => {
|
|
1234
1491
|
if (o.value !== void 0) {
|
|
1235
1492
|
let e = o.value.flatMap((e) => e.children ?? [e]), n = t.keys?.value ?? "value", r = e.every((e) => typeof e[n] == "string"), i = e.every((e) => typeof e[n] == "number");
|
|
1236
1493
|
if (t.multiple) {
|
|
@@ -1242,7 +1499,7 @@ var ln = /* @__PURE__ */ k({
|
|
|
1242
1499
|
else if (i) return v(t.modelValue) ? Number(t.modelValue) : t.modelValue;
|
|
1243
1500
|
}
|
|
1244
1501
|
return t.modelValue;
|
|
1245
|
-
}), c =
|
|
1502
|
+
}), c = S(() => {
|
|
1246
1503
|
let e = {
|
|
1247
1504
|
...t,
|
|
1248
1505
|
filterable: t.filterable ?? o.value.length > 8
|
|
@@ -1250,15 +1507,15 @@ var ln = /* @__PURE__ */ k({
|
|
|
1250
1507
|
return delete e.dicCode, delete e.showCheckAll, delete e.adornment, Object.keys(e).forEach((t) => {
|
|
1251
1508
|
e[t] === void 0 && delete e[t];
|
|
1252
1509
|
}), e;
|
|
1253
|
-
}), l =
|
|
1510
|
+
}), l = I(0);
|
|
1254
1511
|
Se(() => {
|
|
1255
1512
|
Ie(i.exposed.$el, () => {
|
|
1256
1513
|
l.value = i.exposed.$el.offsetWidth;
|
|
1257
1514
|
}, { box: "border-box" });
|
|
1258
1515
|
});
|
|
1259
|
-
let u =
|
|
1516
|
+
let u = S(() => {
|
|
1260
1517
|
if (c.value.scroll?.type === "virtual" && o.value.length > (c.value.scroll?.threshold ?? 150)) return "300px";
|
|
1261
|
-
}), d =
|
|
1518
|
+
}), d = S(() => ({
|
|
1262
1519
|
...c.value,
|
|
1263
1520
|
modelValue: s.value,
|
|
1264
1521
|
onChange: (...e) => {
|
|
@@ -1276,16 +1533,16 @@ var ln = /* @__PURE__ */ k({
|
|
|
1276
1533
|
})
|
|
1277
1534
|
},
|
|
1278
1535
|
ref: a
|
|
1279
|
-
})), f =
|
|
1280
|
-
return (t, n) => e.adornment ? (
|
|
1536
|
+
})), f = Ze;
|
|
1537
|
+
return (t, n) => e.adornment ? (F(), C(R(A(B(f), t.$attrs, {
|
|
1281
1538
|
...e.adornment,
|
|
1282
|
-
default: () =>
|
|
1283
|
-
})), { key: 0 })) : (
|
|
1539
|
+
default: () => A(B(r), d.value, t.$slots)
|
|
1540
|
+
})), { key: 0 })) : (F(), C(R(A(B(r), M(t.$attrs, d.value), t.$slots)), { key: 1 }));
|
|
1284
1541
|
}
|
|
1285
|
-
}),
|
|
1542
|
+
}), bn = /* @__PURE__ */ O({
|
|
1286
1543
|
inheritAttrs: !1,
|
|
1287
1544
|
__name: "select-sys-user",
|
|
1288
|
-
props: /*@__PURE__*/
|
|
1545
|
+
props: /*@__PURE__*/ j({
|
|
1289
1546
|
modelValue: {},
|
|
1290
1547
|
adornment: {},
|
|
1291
1548
|
autoWidth: { type: Boolean },
|
|
@@ -1324,19 +1581,19 @@ var ln = /* @__PURE__ */ k({
|
|
|
1324
1581
|
onMouseleave: { type: Function },
|
|
1325
1582
|
onPaste: { type: Function },
|
|
1326
1583
|
onRemove: { type: Function }
|
|
1327
|
-
},
|
|
1584
|
+
}, ce),
|
|
1328
1585
|
emits: ["update:modelValue"],
|
|
1329
1586
|
setup(e, { emit: t }) {
|
|
1330
|
-
let n = e, r = t, i = ye("isFormDisabled",
|
|
1587
|
+
let n = e, r = t, i = ye("isFormDisabled", S(() => !1)), a = ye("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1331
1588
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1332
1589
|
return {
|
|
1333
1590
|
...n,
|
|
1334
|
-
adornment: e || t ? void 0 : { append: () =>
|
|
1591
|
+
adornment: e || t ? void 0 : { append: () => A($, {
|
|
1335
1592
|
default: "选择用户",
|
|
1336
1593
|
onClick: () => {
|
|
1337
|
-
let e =
|
|
1338
|
-
|
|
1339
|
-
body: () =>
|
|
1594
|
+
let e = I(null);
|
|
1595
|
+
zt({
|
|
1596
|
+
body: () => A(_e(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
1340
1597
|
max: n.max,
|
|
1341
1598
|
modelValue: n.modelValue,
|
|
1342
1599
|
onVnodeMounted: (t) => {
|
|
@@ -1357,11 +1614,11 @@ var ln = /* @__PURE__ */ k({
|
|
|
1357
1614
|
variant: "text"
|
|
1358
1615
|
}) }
|
|
1359
1616
|
};
|
|
1360
|
-
}), s = Oe(), c =
|
|
1617
|
+
}), s = Oe(), c = k();
|
|
1361
1618
|
function l(e) {
|
|
1362
1619
|
c.exposed = e ?? {};
|
|
1363
1620
|
}
|
|
1364
|
-
let u =
|
|
1621
|
+
let u = S(() => M(s, {
|
|
1365
1622
|
...o.value,
|
|
1366
1623
|
inputProps: {
|
|
1367
1624
|
readonly: !0,
|
|
@@ -1373,34 +1630,34 @@ var ln = /* @__PURE__ */ k({
|
|
|
1373
1630
|
placeholder: "请选择用户",
|
|
1374
1631
|
ref: l
|
|
1375
1632
|
}));
|
|
1376
|
-
return (e, t) => (
|
|
1377
|
-
tag:
|
|
1633
|
+
return (e, t) => (F(), C(B(le), P(ve(u.value)), {
|
|
1634
|
+
tag: H(({ value: e }) => [E(z(B(Kt)(e).value?.userName), 1)]),
|
|
1378
1635
|
_: 1
|
|
1379
1636
|
}, 16));
|
|
1380
1637
|
}
|
|
1381
|
-
}),
|
|
1638
|
+
}), xn = {
|
|
1382
1639
|
checkable: !1,
|
|
1383
1640
|
disabled: void 0,
|
|
1384
1641
|
expandOnClickNode: void 0,
|
|
1385
1642
|
hover: !0,
|
|
1386
1643
|
icon: () => (t, n) => {
|
|
1387
1644
|
let r = "";
|
|
1388
|
-
return n.getChildren && n.getChildren(!1) && (n.expanded ? (r = "cuida:caret-down-outline", n.loading && (r = "line-md:loading-twotone-loop")) : r = "cuida:caret-right-outline"), r === "" ? null :
|
|
1645
|
+
return n.getChildren && n.getChildren(!1) && (n.expanded ? (r = "cuida:caret-down-outline", n.loading && (r = "line-md:loading-twotone-loop")) : r = "cuida:caret-right-outline"), r === "" ? null : A($, {
|
|
1389
1646
|
shape: "circle",
|
|
1390
1647
|
size: "small",
|
|
1391
1648
|
variant: "outline"
|
|
1392
|
-
}, { icon: () =>
|
|
1649
|
+
}, { icon: () => A(e, { icon: r }) });
|
|
1393
1650
|
},
|
|
1394
1651
|
label: !0,
|
|
1395
1652
|
lazy: !0,
|
|
1396
1653
|
line: !0,
|
|
1397
1654
|
transition: !0,
|
|
1398
1655
|
valueMode: "all"
|
|
1399
|
-
},
|
|
1656
|
+
}, Sn = /* @__PURE__ */ O({
|
|
1400
1657
|
inheritAttrs: !1,
|
|
1401
1658
|
name: "TTree",
|
|
1402
1659
|
__name: "tree",
|
|
1403
|
-
props: /*@__PURE__*/
|
|
1660
|
+
props: /*@__PURE__*/ j({
|
|
1404
1661
|
"onUpdate:actived": { type: Function },
|
|
1405
1662
|
"onUpdate:expanded": { type: Function },
|
|
1406
1663
|
"onUpdate:modelValue": { type: Function },
|
|
@@ -1453,23 +1710,23 @@ var ln = /* @__PURE__ */ k({
|
|
|
1453
1710
|
onLoad: { type: Function },
|
|
1454
1711
|
onScroll: { type: Function },
|
|
1455
1712
|
treeStore: {}
|
|
1456
|
-
},
|
|
1713
|
+
}, xn),
|
|
1457
1714
|
setup(e, { expose: t }) {
|
|
1458
|
-
let n = e, r = ke(), i =
|
|
1715
|
+
let n = e, r = ke(), i = S(() => {
|
|
1459
1716
|
let e = { ...n };
|
|
1460
1717
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1461
1718
|
e[t] === void 0 && delete e[t];
|
|
1462
1719
|
}), e;
|
|
1463
|
-
}), a =
|
|
1720
|
+
}), a = rt, o = k();
|
|
1464
1721
|
function s(e) {
|
|
1465
1722
|
o.exposed = e ?? {};
|
|
1466
1723
|
}
|
|
1467
|
-
return t({}), (e, t) => (
|
|
1724
|
+
return t({}), (e, t) => (F(), C(R(A(B(a), M(e.$attrs, {
|
|
1468
1725
|
...i.value,
|
|
1469
1726
|
ref: s
|
|
1470
1727
|
}), e.$slots))));
|
|
1471
1728
|
}
|
|
1472
|
-
}),
|
|
1729
|
+
}), Cn = /* @__PURE__ */ O({
|
|
1473
1730
|
inheritAttrs: !1,
|
|
1474
1731
|
name: "TTreeSelect",
|
|
1475
1732
|
__name: "tree-select",
|
|
@@ -1536,30 +1793,30 @@ var ln = /* @__PURE__ */ k({
|
|
|
1536
1793
|
onSearch: {}
|
|
1537
1794
|
},
|
|
1538
1795
|
setup(e) {
|
|
1539
|
-
let t = e, n =
|
|
1796
|
+
let t = e, n = S(() => typeof t.data == "string" ? x(t.data).value : t.data), r = S(() => {
|
|
1540
1797
|
let e = { ...t };
|
|
1541
1798
|
return e.selectInputProps = {
|
|
1542
1799
|
minCollapsedNum: 2,
|
|
1543
1800
|
...e.selectInputProps ?? {}
|
|
1544
1801
|
}, e.treeProps = {
|
|
1545
|
-
...
|
|
1802
|
+
...xn,
|
|
1546
1803
|
checkable: !!t.multiple,
|
|
1547
1804
|
expandOnClickNode: !!t.multiple,
|
|
1548
|
-
icon:
|
|
1805
|
+
icon: xn.icon(),
|
|
1549
1806
|
...e.treeProps ?? {}
|
|
1550
1807
|
}, Object.keys(e).forEach((t) => {
|
|
1551
1808
|
e[t] === void 0 && delete e[t];
|
|
1552
1809
|
}), e;
|
|
1553
|
-
}), i =
|
|
1810
|
+
}), i = it, a = k();
|
|
1554
1811
|
function o(e) {
|
|
1555
1812
|
a.exposed = e ?? {};
|
|
1556
1813
|
}
|
|
1557
|
-
let s =
|
|
1814
|
+
let s = I(0);
|
|
1558
1815
|
return Se(() => {
|
|
1559
1816
|
Ie(a.exposed.$el, () => {
|
|
1560
1817
|
s.value = a.exposed.$el.offsetWidth;
|
|
1561
1818
|
}, { box: "border-box" });
|
|
1562
|
-
}), (e, t) => (
|
|
1819
|
+
}), (e, t) => (F(), C(R(A(B(i), M(e.$attrs, {
|
|
1563
1820
|
...r.value,
|
|
1564
1821
|
data: n.value,
|
|
1565
1822
|
ref: o,
|
|
@@ -1573,10 +1830,10 @@ var ln = /* @__PURE__ */ k({
|
|
|
1573
1830
|
}
|
|
1574
1831
|
}), e.$slots))));
|
|
1575
1832
|
}
|
|
1576
|
-
}),
|
|
1833
|
+
}), wn = ".xlsx,.xls", Tn = { class: "flex items-center" }, En = {
|
|
1577
1834
|
key: 1,
|
|
1578
1835
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1579
|
-
},
|
|
1836
|
+
}, Dn = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
1580
1837
|
inheritAttrs: !1,
|
|
1581
1838
|
name: "TUpload",
|
|
1582
1839
|
__name: "upload",
|
|
@@ -1585,7 +1842,7 @@ var ln = /* @__PURE__ */ k({
|
|
|
1585
1842
|
"onUpdate:modelValue": {},
|
|
1586
1843
|
requestMethod: {},
|
|
1587
1844
|
abridgeName: {},
|
|
1588
|
-
accept: { default:
|
|
1845
|
+
accept: { default: wn },
|
|
1589
1846
|
allowUploadDuplicateFile: { type: Boolean },
|
|
1590
1847
|
autoUpload: { type: Boolean },
|
|
1591
1848
|
beforeAllFilesUpload: {},
|
|
@@ -1645,7 +1902,7 @@ var ln = /* @__PURE__ */ k({
|
|
|
1645
1902
|
onWaitingUploadFilesChange: {}
|
|
1646
1903
|
},
|
|
1647
1904
|
setup(e, { expose: t }) {
|
|
1648
|
-
let n = e, r =
|
|
1905
|
+
let n = e, r = S(() => {
|
|
1649
1906
|
if (n.requestMethod !== void 0) return (e) => new Promise((t) => {
|
|
1650
1907
|
typeof n.requestMethod == "function" ? n.requestMethod(e).then((e) => {
|
|
1651
1908
|
t({
|
|
@@ -1658,7 +1915,7 @@ var ln = /* @__PURE__ */ k({
|
|
|
1658
1915
|
response: {},
|
|
1659
1916
|
status: "fail"
|
|
1660
1917
|
});
|
|
1661
|
-
}) :
|
|
1918
|
+
}) : Y.Post(n.requestMethod.ossUrl ?? "common/uploadOss", {
|
|
1662
1919
|
biz: n.requestMethod.biz,
|
|
1663
1920
|
file: e.raw
|
|
1664
1921
|
}, { meta: { useFormData: !0 } }).then((e) => {
|
|
@@ -1678,48 +1935,48 @@ var ln = /* @__PURE__ */ k({
|
|
|
1678
1935
|
function i() {
|
|
1679
1936
|
typeof n.downloadTemplate == "string" ? b(n.downloadTemplate) : n.downloadTemplate.send();
|
|
1680
1937
|
}
|
|
1681
|
-
let a =
|
|
1938
|
+
let a = S(() => {
|
|
1682
1939
|
let e = { ...n };
|
|
1683
1940
|
return ["image", "image-flow"].includes(e.theme) && (e.accept = e.accept === ".xlsx,.xls" ? "image/*" : e.accept), Object.keys(e).forEach((t) => {
|
|
1684
1941
|
e[t] === void 0 && delete e[t];
|
|
1685
1942
|
}), delete e.downloadTemplate, e.theme === "file" && delete e.tips, e;
|
|
1686
|
-
}), o =
|
|
1943
|
+
}), o = at, s = k();
|
|
1687
1944
|
function c(e) {
|
|
1688
1945
|
s.exposed = e ?? {};
|
|
1689
1946
|
}
|
|
1690
|
-
return t({}), (t, s) => (
|
|
1947
|
+
return t({}), (t, s) => (F(), C(R(A(B(o), M(t.$attrs, {
|
|
1691
1948
|
...a.value,
|
|
1692
1949
|
requestMethod: r.value,
|
|
1693
1950
|
ref: c
|
|
1694
|
-
}, { class: a.value.theme }))), null, ge({ _: 2 }, [
|
|
1951
|
+
}, { class: a.value.theme }))), null, ge({ _: 2 }, [L(Object.keys(t.$slots), (e) => ({
|
|
1695
1952
|
name: e,
|
|
1696
|
-
fn:
|
|
1953
|
+
fn: H((n) => [Te(t.$slots, e, P(ve(n)), void 0, !0)])
|
|
1697
1954
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
1698
1955
|
name: "trigger",
|
|
1699
|
-
fn:
|
|
1700
|
-
|
|
1701
|
-
default:
|
|
1956
|
+
fn: H(({ files: t }) => [he("div", Tn, [
|
|
1957
|
+
D(B($), { theme: "primary" }, {
|
|
1958
|
+
default: H(() => [E(z(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
1702
1959
|
_: 2
|
|
1703
1960
|
}, 1024),
|
|
1704
|
-
e.downloadTemplate ? (
|
|
1961
|
+
e.downloadTemplate ? (F(), C(B($), {
|
|
1705
1962
|
key: 0,
|
|
1706
1963
|
theme: "primary",
|
|
1707
1964
|
variant: "outline",
|
|
1708
1965
|
onClick: je(i, ["stop"])
|
|
1709
1966
|
}, {
|
|
1710
|
-
default:
|
|
1967
|
+
default: H(() => [...s[0] ||= [E("下载模板", -1)]]),
|
|
1711
1968
|
_: 1
|
|
1712
|
-
})) :
|
|
1713
|
-
n.tips ? (
|
|
1969
|
+
})) : w("v-if", !0),
|
|
1970
|
+
n.tips ? (F(), T("span", En, z(n.tips), 1)) : w("v-if", !0)
|
|
1714
1971
|
])]),
|
|
1715
1972
|
key: "0"
|
|
1716
1973
|
} : void 0]), 1024));
|
|
1717
1974
|
}
|
|
1718
|
-
}), [["__scopeId", "data-v-730cff70"]]),
|
|
1975
|
+
}), [["__scopeId", "data-v-730cff70"]]), On = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
1719
1976
|
inheritAttrs: !1,
|
|
1720
1977
|
name: "TForm",
|
|
1721
1978
|
__name: "form",
|
|
1722
|
-
props: /*@__PURE__*/
|
|
1979
|
+
props: /*@__PURE__*/ j({
|
|
1723
1980
|
autoLabelWidth: { type: Boolean },
|
|
1724
1981
|
data: {},
|
|
1725
1982
|
items: {},
|
|
@@ -1743,9 +2000,9 @@ var ln = /* @__PURE__ */ k({
|
|
|
1743
2000
|
onReset: { type: Function },
|
|
1744
2001
|
onSubmit: { type: Function },
|
|
1745
2002
|
onValidate: { type: Function }
|
|
1746
|
-
},
|
|
2003
|
+
}, yt),
|
|
1747
2004
|
setup(e, { expose: t }) {
|
|
1748
|
-
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: s = /* @__PURE__ */ new Map() } =
|
|
2005
|
+
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: s = /* @__PURE__ */ new Map() } = ft, c = k(), l = I(null), u = S(() => r.items.map((e) => {
|
|
1749
2006
|
if (typeof e.__others == "function") {
|
|
1750
2007
|
let t = {
|
|
1751
2008
|
...e,
|
|
@@ -1785,33 +2042,33 @@ var ln = /* @__PURE__ */ k({
|
|
|
1785
2042
|
}
|
|
1786
2043
|
});
|
|
1787
2044
|
}
|
|
1788
|
-
|
|
2045
|
+
V(u, d, {
|
|
1789
2046
|
deep: 2,
|
|
1790
2047
|
immediate: !0
|
|
1791
|
-
}),
|
|
2048
|
+
}), V(() => r.data, () => {
|
|
1792
2049
|
n.error("TForm: data is changed");
|
|
1793
2050
|
});
|
|
1794
2051
|
let f = /* @__PURE__ */ new Map(), p = {
|
|
1795
2052
|
TCheckbox: a,
|
|
1796
|
-
TCheckboxGroup:
|
|
1797
|
-
TCron:
|
|
1798
|
-
TDatePicker:
|
|
1799
|
-
TInput:
|
|
1800
|
-
TInputNumber:
|
|
1801
|
-
TRadioGroup:
|
|
1802
|
-
TRangeInput:
|
|
1803
|
-
TSelect:
|
|
1804
|
-
TSelectSysUser:
|
|
1805
|
-
TSlider:
|
|
1806
|
-
TSwitch:
|
|
1807
|
-
TTagInput:
|
|
1808
|
-
TTextarea:
|
|
1809
|
-
TTree:
|
|
1810
|
-
TTreeSelect:
|
|
1811
|
-
TUpload:
|
|
2053
|
+
TCheckboxGroup: hn,
|
|
2054
|
+
TCron: gn,
|
|
2055
|
+
TDatePicker: ae,
|
|
2056
|
+
TInput: ie,
|
|
2057
|
+
TInputNumber: oe,
|
|
2058
|
+
TRadioGroup: _n,
|
|
2059
|
+
TRangeInput: se,
|
|
2060
|
+
TSelect: yn,
|
|
2061
|
+
TSelectSysUser: bn,
|
|
2062
|
+
TSlider: ue,
|
|
2063
|
+
TSwitch: de,
|
|
2064
|
+
TTagInput: le,
|
|
2065
|
+
TTextarea: fe,
|
|
2066
|
+
TTree: Sn,
|
|
2067
|
+
TTreeSelect: Cn,
|
|
2068
|
+
TUpload: Dn
|
|
1812
2069
|
};
|
|
1813
2070
|
function m(e) {
|
|
1814
|
-
return typeof e == "string" ? s.has(e) ? (f.has(e) || f.set(e, _e(s.get(e))), f.get(e)) : p[e] :
|
|
2071
|
+
return typeof e == "string" ? s.has(e) ? (f.has(e) || f.set(e, _e(s.get(e))), f.get(e)) : p[e] : ie;
|
|
1815
2072
|
}
|
|
1816
2073
|
function h(e) {
|
|
1817
2074
|
let t = {};
|
|
@@ -1841,7 +2098,7 @@ var ln = /* @__PURE__ */ k({
|
|
|
1841
2098
|
whitespace: !0
|
|
1842
2099
|
}), t;
|
|
1843
2100
|
}
|
|
1844
|
-
let te =
|
|
2101
|
+
let te = S(() => {
|
|
1845
2102
|
let e = { ...r };
|
|
1846
2103
|
if (e.rules !== void 0) {
|
|
1847
2104
|
let t = {};
|
|
@@ -1859,7 +2116,7 @@ var ln = /* @__PURE__ */ k({
|
|
|
1859
2116
|
return delete e.items, delete e.msgErrorWhenValidate, delete e.autoLabelWidth, Object.keys(e).forEach((t) => {
|
|
1860
2117
|
e[t] === void 0 && delete e[t];
|
|
1861
2118
|
}), e;
|
|
1862
|
-
}), g =
|
|
2119
|
+
}), g = qe, v = () => {
|
|
1863
2120
|
let e = { ...r.data };
|
|
1864
2121
|
return u.value.forEach((t) => {
|
|
1865
2122
|
t.show === !1 && delete e[t.model];
|
|
@@ -1891,11 +2148,11 @@ var ln = /* @__PURE__ */ k({
|
|
|
1891
2148
|
if (!t.clearValidate._alreadyReplace) {
|
|
1892
2149
|
let e = t.clearValidate;
|
|
1893
2150
|
t.clearValidate = (...t) => {
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
2151
|
+
N(() => {
|
|
2152
|
+
N(() => {
|
|
2153
|
+
N(() => {
|
|
2154
|
+
N(() => {
|
|
2155
|
+
N(() => {
|
|
1899
2156
|
e(...t);
|
|
1900
2157
|
});
|
|
1901
2158
|
});
|
|
@@ -1939,12 +2196,12 @@ var ln = /* @__PURE__ */ k({
|
|
|
1939
2196
|
e.style.minWidth = `${t}px`;
|
|
1940
2197
|
});
|
|
1941
2198
|
}
|
|
1942
|
-
return Ce("formData", r.data), Ce("formExposed", l), Ce("isFormDisabled",
|
|
2199
|
+
return Ce("formData", r.data), Ce("formExposed", l), Ce("isFormDisabled", S(() => r.disabled)), Ce("isFormReadonly", S(() => r.readonly)), t({}), (t, n) => (F(), T(pe, null, [w(" eslint-disable vue/no-mutating-props "), (F(), C(R(B(g)), M(M(t.$attrs, {
|
|
1943
2200
|
...te.value,
|
|
1944
2201
|
ref: y
|
|
1945
2202
|
}), { "label-width": "fit-content" }), {
|
|
1946
|
-
default:
|
|
1947
|
-
default:
|
|
2203
|
+
default: H(() => [(F(!0), T(pe, null, L(u.value.filter((e) => e.show !== !1), (n) => (F(), C(B(Je), M({ key: n.model ?? n.slot }, { ref_for: !0 }, M({ ...ee(n) }, { class: { no_label_item: B(_)(n._label) } }), { name: n.model }), {
|
|
2204
|
+
default: H(() => [n.slot ? Te(t.$slots, n.slot, {}, void 0, !0, 0) : (F(), C(R(m(n.component)), M({
|
|
1948
2205
|
key: 1,
|
|
1949
2206
|
modelValue: e.data[n.model],
|
|
1950
2207
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
@@ -1954,14 +2211,14 @@ var ln = /* @__PURE__ */ k({
|
|
|
1954
2211
|
_: 3
|
|
1955
2212
|
}, 16))], 2112));
|
|
1956
2213
|
}
|
|
1957
|
-
}), [["__scopeId", "data-v-b3c2c148"]]),
|
|
2214
|
+
}), [["__scopeId", "data-v-b3c2c148"]]), kn = /* @__PURE__ */ O({
|
|
1958
2215
|
__name: "ResetPwd",
|
|
1959
2216
|
props: { showFooter: {
|
|
1960
2217
|
type: Boolean,
|
|
1961
2218
|
default: !0
|
|
1962
2219
|
} },
|
|
1963
2220
|
setup(e, { expose: t }) {
|
|
1964
|
-
let n =
|
|
2221
|
+
let n = U(), r = [
|
|
1965
2222
|
{
|
|
1966
2223
|
_label: "旧密码",
|
|
1967
2224
|
_required: !0,
|
|
@@ -1994,11 +2251,11 @@ var ln = /* @__PURE__ */ k({
|
|
|
1994
2251
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
1995
2252
|
], i = Ae("form");
|
|
1996
2253
|
function a() {
|
|
1997
|
-
|
|
2254
|
+
G().close(n.name);
|
|
1998
2255
|
}
|
|
1999
2256
|
async function o() {
|
|
2000
2257
|
let e = await i.value.validate();
|
|
2001
|
-
await
|
|
2258
|
+
await Y.Put("system/user/profile/updatePwd", void 0, {
|
|
2002
2259
|
meta: {
|
|
2003
2260
|
useLoading: "保存中...",
|
|
2004
2261
|
useSuccessMsg: !0
|
|
@@ -2007,23 +2264,23 @@ var ln = /* @__PURE__ */ k({
|
|
|
2007
2264
|
newPassword: e.newPassword,
|
|
2008
2265
|
oldPassword: e.oldPassword
|
|
2009
2266
|
}
|
|
2010
|
-
}),
|
|
2267
|
+
}), Yt().logout();
|
|
2011
2268
|
}
|
|
2012
|
-
return t({ handleSubmit: o }), (e, t) => (
|
|
2269
|
+
return t({ handleSubmit: o }), (e, t) => (F(), C(B(On), {
|
|
2013
2270
|
ref: "form",
|
|
2014
2271
|
items: r,
|
|
2015
2272
|
"label-align": "right",
|
|
2016
2273
|
layout: "vertical"
|
|
2017
2274
|
}, {
|
|
2018
|
-
footer:
|
|
2019
|
-
default:
|
|
2275
|
+
footer: H(() => [D(B($), { onClick: o }, {
|
|
2276
|
+
default: H(() => [...t[0] ||= [E("保存", -1)]]),
|
|
2020
2277
|
_: 1
|
|
2021
|
-
}),
|
|
2278
|
+
}), D(B($), {
|
|
2022
2279
|
class: "ml-4!",
|
|
2023
2280
|
theme: "default",
|
|
2024
2281
|
onClick: a
|
|
2025
2282
|
}, {
|
|
2026
|
-
default:
|
|
2283
|
+
default: H(() => [...t[1] ||= [E("关闭", -1)]]),
|
|
2027
2284
|
_: 1
|
|
2028
2285
|
})]),
|
|
2029
2286
|
_: 1
|
|
@@ -2032,34 +2289,34 @@ var ln = /* @__PURE__ */ k({
|
|
|
2032
2289
|
});
|
|
2033
2290
|
//#endregion
|
|
2034
2291
|
//#region ../../packages/dlzn-ui/store/modules/user.ts
|
|
2035
|
-
function
|
|
2036
|
-
return
|
|
2292
|
+
function An() {
|
|
2293
|
+
return Y.Get("getInfo", { meta: {
|
|
2037
2294
|
useFailMsg: "获取用户信息失败",
|
|
2038
2295
|
useLoading: "正在获取用户信息..."
|
|
2039
2296
|
} });
|
|
2040
2297
|
}
|
|
2041
|
-
var
|
|
2298
|
+
var jn = {
|
|
2042
2299
|
admin: !1,
|
|
2043
2300
|
dept: { deptName: "" },
|
|
2044
2301
|
needChangePwd: 0,
|
|
2045
2302
|
nickName: "",
|
|
2046
2303
|
userId: "",
|
|
2047
2304
|
userName: ""
|
|
2048
|
-
}, Q =
|
|
2049
|
-
let e =
|
|
2305
|
+
}, Q = ct("user", () => {
|
|
2306
|
+
let e = I(ot(jn)), t = I([]), n = I([]);
|
|
2050
2307
|
function r() {
|
|
2051
|
-
e.value =
|
|
2308
|
+
e.value = ot(jn), t.value = [], n.value = [];
|
|
2052
2309
|
}
|
|
2053
|
-
let i =
|
|
2310
|
+
let i = S(() => e.value.admin), a = I("");
|
|
2054
2311
|
async function o(r = !0) {
|
|
2055
|
-
let i = await
|
|
2056
|
-
e.value = i.user, a.value !== e.value.userId &&
|
|
2312
|
+
let i = await An();
|
|
2313
|
+
e.value = i.user, a.value !== e.value.userId && G().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await kt().getRouters();
|
|
2057
2314
|
}
|
|
2058
|
-
|
|
2059
|
-
e === 1 && VITE_FORCE_PWD_CHANGE &&
|
|
2060
|
-
let e =
|
|
2061
|
-
|
|
2062
|
-
body: () =>
|
|
2315
|
+
V(() => e.value.needChangePwd, (e) => {
|
|
2316
|
+
e === 1 && VITE_FORCE_PWD_CHANGE && N(() => {
|
|
2317
|
+
let e = I(null);
|
|
2318
|
+
zt({
|
|
2319
|
+
body: () => A(kn, {
|
|
2063
2320
|
labelAlign: "top",
|
|
2064
2321
|
ref: e,
|
|
2065
2322
|
showFooter: !1
|
|
@@ -2090,11 +2347,11 @@ var Tn = {
|
|
|
2090
2347
|
roles: n,
|
|
2091
2348
|
userInfo: e
|
|
2092
2349
|
};
|
|
2093
|
-
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ f(/* @__PURE__ */
|
|
2350
|
+
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
2094
2351
|
inheritAttrs: !1,
|
|
2095
2352
|
name: "TButton",
|
|
2096
2353
|
__name: "button",
|
|
2097
|
-
props: /*@__PURE__*/
|
|
2354
|
+
props: /*@__PURE__*/ j({
|
|
2098
2355
|
autoIcon: { type: Boolean },
|
|
2099
2356
|
autoLoading: { type: Boolean },
|
|
2100
2357
|
autoTheme: { type: Boolean },
|
|
@@ -2131,9 +2388,9 @@ var Tn = {
|
|
|
2131
2388
|
Object,
|
|
2132
2389
|
Array
|
|
2133
2390
|
] }
|
|
2134
|
-
},
|
|
2391
|
+
}, vt),
|
|
2135
2392
|
setup(n) {
|
|
2136
|
-
let r = n, a =
|
|
2393
|
+
let r = n, a = I("");
|
|
2137
2394
|
function o() {
|
|
2138
2395
|
if (!r.autoTheme || a.value.trim() === "") return {};
|
|
2139
2396
|
let e = /* @__PURE__ */ new Map([
|
|
@@ -2155,17 +2412,17 @@ var Tn = {
|
|
|
2155
2412
|
}
|
|
2156
2413
|
return t;
|
|
2157
2414
|
}
|
|
2158
|
-
let s =
|
|
2159
|
-
|
|
2415
|
+
let s = I(!1), c = i.isLoading, l = I(null), { focused: u } = Pe(l), d, f;
|
|
2416
|
+
V(c, (e) => {
|
|
2160
2417
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2161
2418
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
2162
2419
|
}, 150)) : d === void 0 ? f = setTimeout(() => {
|
|
2163
2420
|
s.value = !1;
|
|
2164
2421
|
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
2165
|
-
}, { immediate: !0 }),
|
|
2422
|
+
}, { immediate: !0 }), V(u, (e) => {
|
|
2166
2423
|
e && c.value && (s.value = !0);
|
|
2167
2424
|
});
|
|
2168
|
-
let p =
|
|
2425
|
+
let p = S(() => r.loading === void 0 ? r.autoLoading ? s.value : !1 : r.loading), m = S(() => {
|
|
2169
2426
|
let e = {
|
|
2170
2427
|
...r,
|
|
2171
2428
|
...o(),
|
|
@@ -2174,7 +2431,7 @@ var Tn = {
|
|
|
2174
2431
|
return Object.keys(e).forEach((t) => {
|
|
2175
2432
|
e[t] === void 0 && delete e[t];
|
|
2176
2433
|
}), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
|
|
2177
|
-
}), h = ze, ee =
|
|
2434
|
+
}), h = ze, ee = k();
|
|
2178
2435
|
function te(e) {
|
|
2179
2436
|
let t = e ?? {};
|
|
2180
2437
|
ee.exposed = t, l.value = t.$el;
|
|
@@ -2182,7 +2439,7 @@ var Tn = {
|
|
|
2182
2439
|
function g() {
|
|
2183
2440
|
a.value = l.value?.textContent ?? "";
|
|
2184
2441
|
}
|
|
2185
|
-
let _ =
|
|
2442
|
+
let _ = S(() => {
|
|
2186
2443
|
if (!r.autoIcon || a.value.trim() === "") return;
|
|
2187
2444
|
let e = {
|
|
2188
2445
|
"mdi:plus": [
|
|
@@ -2238,10 +2495,10 @@ var Tn = {
|
|
|
2238
2495
|
break;
|
|
2239
2496
|
}
|
|
2240
2497
|
if (t !== void 0) return t;
|
|
2241
|
-
}), v = Oe(), y =
|
|
2498
|
+
}), v = Oe(), y = S(() => M(v, {
|
|
2242
2499
|
...m.value,
|
|
2243
2500
|
ref: te
|
|
2244
|
-
}, { class: "flex-shrink-0" })), b =
|
|
2501
|
+
}, { class: "flex-shrink-0" })), b = S(() => {
|
|
2245
2502
|
if (r.popconfirm) return {
|
|
2246
2503
|
...r.popconfirm,
|
|
2247
2504
|
onVisibleChange: (...e) => {
|
|
@@ -2249,32 +2506,32 @@ var Tn = {
|
|
|
2249
2506
|
}
|
|
2250
2507
|
};
|
|
2251
2508
|
});
|
|
2252
|
-
return (r, i) =>
|
|
2253
|
-
default:
|
|
2509
|
+
return (r, i) => B(Q)().checkPermissions(n.permission) ? (F(), T(pe, { key: 0 }, [b.value ? (F(), C(B(t), P(M({ key: 0 }, b.value)), {
|
|
2510
|
+
default: H(() => [(F(), C(R(A(B(h), y.value)), {
|
|
2254
2511
|
onVnodeMounted: g,
|
|
2255
2512
|
onVnodeUpdated: g
|
|
2256
2513
|
}, ge({ _: 2 }, [n.icon || _.value ? {
|
|
2257
2514
|
name: "icon",
|
|
2258
|
-
fn:
|
|
2515
|
+
fn: H(() => [D(B(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
|
|
2259
2516
|
key: "0"
|
|
2260
|
-
} : void 0,
|
|
2517
|
+
} : void 0, L(Object.keys(r.$slots), (e) => ({
|
|
2261
2518
|
name: e,
|
|
2262
|
-
fn:
|
|
2519
|
+
fn: H((t) => [Te(r.$slots, e, P(ve(t)), void 0, !0)])
|
|
2263
2520
|
}))]), 1536))]),
|
|
2264
2521
|
_: 3
|
|
2265
|
-
}, 16)) : (
|
|
2522
|
+
}, 16)) : (F(), C(R(A(B(h), y.value)), {
|
|
2266
2523
|
key: 1,
|
|
2267
2524
|
onVnodeMounted: g,
|
|
2268
2525
|
onVnodeUpdated: g
|
|
2269
2526
|
}, ge({ _: 2 }, [n.icon || _.value ? {
|
|
2270
2527
|
name: "icon",
|
|
2271
|
-
fn:
|
|
2528
|
+
fn: H(() => [D(B(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
|
|
2272
2529
|
key: "0"
|
|
2273
|
-
} : void 0,
|
|
2530
|
+
} : void 0, L(Object.keys(r.$slots), (e) => ({
|
|
2274
2531
|
name: e,
|
|
2275
|
-
fn:
|
|
2276
|
-
}))]), 1536))], 64)) :
|
|
2532
|
+
fn: H((t) => [Te(r.$slots, e, P(ve(t)), void 0, !0)])
|
|
2533
|
+
}))]), 1536))], 64)) : w("v-if", !0);
|
|
2277
2534
|
}
|
|
2278
2535
|
}), [["__scopeId", "data-v-41e01020"]]);
|
|
2279
2536
|
//#endregion
|
|
2280
|
-
export {
|
|
2537
|
+
export { Yt as A, kt as B, sn as C, tn as D, q as E, Rt as F, W as H, Pt as I, Mt as L, Gt as M, Kt as N, Qt as O, zt as P, jt as R, on as S, nn as T, yt as U, G as V, vt as W, fn as _, On as a, mn as b, Cn as c, bn as d, yn as f, hn as g, gn as h, kn as i, Wt as j, Zt as k, Sn as l, _n as m, An as n, Dn as o, vn as p, Q as r, wn as s, $ as t, xn as u, pn as v, J as w, Y as x, Z as y, xt as z };
|