dlzn-ui 2.0.8 → 2.0.11
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/chunks/{AssignUser-Dj8rq5gH.mjs → AssignUser-BPrzGjCg.mjs} +3 -3
- package/chunks/{Common-CnrITpXz.mjs → Common-Ds4A0g73.mjs} +1 -1
- package/chunks/{Day-tjS-0iDA.mjs → Day-CWWVjsXu.mjs} +1 -1
- package/chunks/{DictTypeDetail-CcohOVfN.mjs → DictTypeDetail-ijxK2MDm.mjs} +2 -2
- package/chunks/{Hour-B9fx59cM.mjs → Hour-D-2s4xgR.mjs} +1 -1
- package/chunks/{Index-CrxoIuR-.mjs → Index-Bi44jQm2.mjs} +1 -1
- package/chunks/{Index-B-_PVf5U.mjs → Index-Bu5a_B5n.mjs} +1 -1
- package/chunks/{Index-D-gi1OVy.mjs → Index-D0dEcWw2.mjs} +2 -2
- package/chunks/{Index-baebFewJ.mjs → Index-De48YIRG.mjs} +1 -1
- package/chunks/{Index-DlrNiiDp.mjs → Index-DhkEiAro.mjs} +1 -1
- package/chunks/{Index-BTEVAXbg.mjs → Index-DoPLbOv7.mjs} +2 -2
- package/chunks/{Index-z9vUMzmS.mjs → Index-az-w01U3.mjs} +2 -2
- package/chunks/{Index-BxfxoY-l.mjs → Index-bEWcnIHJ.mjs} +1 -1
- package/chunks/{IndexItem-rt5wZA39.mjs → IndexItem-KlRJte7i.mjs} +2 -2
- package/chunks/{Log-DK5aduPG.mjs → Log-LYCmf0zI.mjs} +2 -2
- package/chunks/{MenuNode-DEBSfNz9.mjs → MenuNode-6Nca-v9i.mjs} +1 -1
- package/chunks/{MenuNode-B0M4WpOn.mjs → MenuNode-ByutDAqI.mjs} +1 -1
- package/chunks/{Minute-hPwzkaCM.mjs → Minute-8BpPY8V6.mjs} +1 -1
- package/chunks/{Month-Cnjhbs28.mjs → Month-C5iIZpY7.mjs} +1 -1
- package/chunks/{Second-DAYKul2s.mjs → Second-BKF09AKl.mjs} +1 -1
- package/chunks/{SelectDept-CC4ckbbt.mjs → SelectDept-C78pnJtp.mjs} +1 -1
- package/chunks/{SelectMenu-pBim6_Lj.mjs → SelectMenu-B2-QkHU2.mjs} +1 -1
- package/chunks/{SelectUser-D6dBXxlL.mjs → SelectUser-BuE4Lgm0.mjs} +2 -2
- package/chunks/{UserInfo-BUlPdKge.mjs → UserInfo-uDVj4WPH.mjs} +1 -1
- package/chunks/{app-Dk-mybzX.mjs → app-BXskd1Ae.mjs} +2 -2
- package/chunks/{custom-page-list-EQhltX7t.mjs → custom-page-list-r5EUcg98.mjs} +4 -4
- package/chunks/{custom-page-table-CYLFzT4F.mjs → custom-page-table-D1FmkEop.mjs} +2 -2
- package/chunks/date-picker-D15OhWnK.mjs +378 -0
- package/chunks/icon-COjp1yrx.mjs +21 -0
- package/chunks/{menu-DYwAudY3.mjs → menu-CjNx3wKR.mjs} +1 -1
- package/chunks/{overview-D9YB44O0.mjs → overview-BCXuALeB.mjs} +1 -1
- package/chunks/{page-list-BnGVTcad.mjs → page-list-Zp_EiMZd.mjs} +3 -3
- package/chunks/{page-query-QCT-mat_.mjs → page-query-CxZBtQht.mjs} +1 -1
- package/chunks/{page-table-DMOjg44G.mjs → page-table-BpyyKTMq.mjs} +3 -3
- package/chunks/{pagination-BNAZYVJk.mjs → pagination-y5tkmGDM.mjs} +1 -1
- package/chunks/{provider-DQIMA4mE.mjs → provider-C6TTHGoz.mjs} +600 -635
- package/chunks/{scrollbar-B0u39t4J.mjs → scrollbar-CI1mysNQ.mjs} +10 -9
- package/chunks/{table-BFP90EA0.mjs → table-2Eqd8Kcx.mjs} +2 -2
- package/chunks/{tag-BDpZ8-Fj.mjs → tag-CfeJWJii.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- 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 +103 -6206
- 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/icon/index.mjs +1 -1
- package/components/icon/src/icon.mjs +1 -1
- package/components/index.mjs +19 -19
- 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/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 +2 -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/useAnimateAuto/index.mjs +6 -6
- 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/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Login.mjs +2 -2
- package/layout/NotFound.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/MenuNode.mjs +1 -1
- package/layout/profile/Index.mjs +2 -2
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/layout/vueBits/LightRays.mjs +47 -47
- package/layout/vueBits/Plasma.mjs +29 -29
- package/layout/vueBits/Prism.mjs +51 -51
- package/main.mjs +9 -36
- package/package.json +3 -3
- 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 +1 -1
- package/plugins/autoImport/$loading/index.mjs +38 -2
- package/plugins/captcha/captcha.mjs +2 -2
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/echarts/index.mjs +25 -705
- package/plugins/initialize/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.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/Icon/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/Tags/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +6 -6
- package/router/index.mjs +1 -1
- package/store/index.mjs +7 -2
- 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 +1 -1
- package/store/modules/user.mjs +1 -1
- package/utils/tool.mjs +15 -16
- package/views/system/dept/index.mjs +2 -2
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +3 -3
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +3 -3
- package/views/system/post/index.mjs +2 -2
- package/views/system/role/index.mjs +5 -5
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +3 -3
- package/views/tool/job/index.mjs +3 -3
- package/views/tool/job/modules/Log.mjs +1 -1
- package/assets/$loading-D_Zs2VgL.css +0 -1
- package/assets/main-CxSb5Gqw.css +0 -2
- package/chunks/$loading-Df3COGfW.mjs +0 -241
- package/chunks/FileSaver.min-BAG7TK0U.mjs +0 -70
- package/chunks/Triangle-C5ogSVp9.mjs +0 -1140
- package/chunks/__vite-browser-external-D1GT_Hx9.mjs +0 -7
- package/chunks/auto-animate-FPySn19g.mjs +0 -341
- package/chunks/crypto-js-DWj_rBsG.mjs +0 -3695
- package/chunks/css-Cw_qlmlv.mjs +0 -521
- package/chunks/date-picker-C_5NJHjq.mjs +0 -8186
- package/chunks/icon-jnCbW4iu.mjs +0 -1013
- package/chunks/rolldown-runtime-D_tDV3RV.mjs +0 -23
- package/chunks/store-C46_JI7q.mjs +0 -112
- /package/{ejs → assets/ejs}/slide-puzzle.ejs +0 -0
|
@@ -1,97 +1,62 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { t as s } from "./icon-jnCbW4iu.mjs";
|
|
1
|
+
import '../assets/css-BPkXehJY.css';import '../assets/provider-1BcdscQq.css';/* empty css */
|
|
2
|
+
import { t as e } from "./icon-COjp1yrx.mjs";
|
|
4
3
|
import "../components/icon/index.mjs";
|
|
5
|
-
import { t
|
|
4
|
+
import { t } from "./popconfirm-DxWa7vWm.mjs";
|
|
6
5
|
import "../components/popconfirm/index.mjs";
|
|
7
|
-
import { t as
|
|
8
|
-
import
|
|
9
|
-
import { t as
|
|
6
|
+
import { n, t as r } from "./useAppContext-D47amIp5.mjs";
|
|
7
|
+
import i from "../plugins/autoImport/$loading/index.mjs";
|
|
8
|
+
import { t as a } from "./checkbox-CLlUEbkk.mjs";
|
|
10
9
|
import "../components/checkbox/index.mjs";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { t as
|
|
10
|
+
import o from "../plugins/autoImport/$msg/index.mjs";
|
|
11
|
+
import s from "../layout/index.mjs";
|
|
12
|
+
import { t as c } from "./scrollbar-CI1mysNQ.mjs";
|
|
14
13
|
import "../components/scrollbar/index.mjs";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
14
|
+
import l from "../hooks/useMQ/index.mjs";
|
|
15
|
+
import u from "../store/modules/excludeKPname.mjs";
|
|
16
|
+
import { t as d } from "./gradient-text-B6JwSk-u.mjs";
|
|
17
|
+
import { t as f } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
19
18
|
import "../components/gradient-text/index.mjs";
|
|
20
|
-
import { t as
|
|
19
|
+
import { t as p } from "./image-BEsiUWeF.mjs";
|
|
21
20
|
import "../components/image/index.mjs";
|
|
22
|
-
import
|
|
23
|
-
import { t as
|
|
24
|
-
import
|
|
25
|
-
import { passwordReg as
|
|
26
|
-
import { isFalsy as
|
|
27
|
-
import { stringDisplay as
|
|
28
|
-
import { saveAs as
|
|
21
|
+
import m from "../views/index.mjs";
|
|
22
|
+
import { t as h } from "./MenuNode-6Nca-v9i.mjs";
|
|
23
|
+
import ee from "../hooks/useContextMenu/index.mjs";
|
|
24
|
+
import { passwordReg as te, passwordRegMessage as g } from "../constants/others.mjs";
|
|
25
|
+
import { isFalsy as _, isValidNumberString as v } from "../utils/boolean.mjs";
|
|
26
|
+
import { stringDisplay as y } from "../utils/string.mjs";
|
|
27
|
+
import { saveAs as b } from "../utils/tool.mjs";
|
|
29
28
|
import "../utils/index.mjs";
|
|
30
|
-
import
|
|
31
|
-
import { n as
|
|
29
|
+
import x, { useClearList as ne } from "../hooks/useList/index.mjs";
|
|
30
|
+
import { n as re, t as ie } from "./input-B8jjJrK5.mjs";
|
|
32
31
|
import "../components/input/index.mjs";
|
|
32
|
+
import { t as ae } from "./date-picker-D15OhWnK.mjs";
|
|
33
33
|
import "../components/date-picker/index.mjs";
|
|
34
|
-
import { t as
|
|
34
|
+
import { t as oe } from "./input-number-B4oTaRne.mjs";
|
|
35
35
|
import "../components/input-number/index.mjs";
|
|
36
|
-
import { t as
|
|
36
|
+
import { t as se } from "./range-input-CKFoK49E.mjs";
|
|
37
37
|
import "../components/range-input/index.mjs";
|
|
38
|
-
import { n as
|
|
38
|
+
import { n as ce, t as le } from "./tag-input-iNXrRXk2.mjs";
|
|
39
39
|
import "../components/tag-input/index.mjs";
|
|
40
|
-
import { t as
|
|
40
|
+
import { t as ue } from "./slider-C63Gzbld.mjs";
|
|
41
41
|
import "../components/slider/index.mjs";
|
|
42
|
-
import { t as
|
|
42
|
+
import { t as de } from "./switch-CqV3-avv.mjs";
|
|
43
43
|
import "../components/switch/index.mjs";
|
|
44
|
-
import { t as
|
|
44
|
+
import { t as fe } from "./textarea-xkwOhNut.mjs";
|
|
45
45
|
import "../components/textarea/index.mjs";
|
|
46
|
-
import { Fragment as
|
|
47
|
-
import { Breadcrumb as
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: !0
|
|
62
|
-
},
|
|
63
|
-
locale: { type: i(Object) },
|
|
64
|
-
size: e,
|
|
65
|
-
button: { type: i(Object) },
|
|
66
|
-
card: { type: i(Object) },
|
|
67
|
-
dialog: { type: i(Object) },
|
|
68
|
-
link: { type: i(Object) },
|
|
69
|
-
experimentalFeatures: { type: i(Object) },
|
|
70
|
-
keyboardNavigation: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
default: !0
|
|
73
|
-
},
|
|
74
|
-
message: { type: i(Object) },
|
|
75
|
-
zIndex: Number,
|
|
76
|
-
namespace: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: "el"
|
|
79
|
-
},
|
|
80
|
-
table: { type: i(Object) },
|
|
81
|
-
...n
|
|
82
|
-
}), St = { placement: "top" }, Ct = O({
|
|
83
|
-
name: "ElConfigProvider",
|
|
84
|
-
props: xt,
|
|
85
|
-
setup(e, { slots: n }) {
|
|
86
|
-
let r = t(e);
|
|
87
|
-
return U(() => e.message, (e) => {
|
|
88
|
-
Object.assign(St, r?.value?.message ?? {}, e ?? {});
|
|
89
|
-
}, {
|
|
90
|
-
immediate: !0,
|
|
91
|
-
deep: !0
|
|
92
|
-
}), () => z(n, "default", { config: r?.value });
|
|
93
|
-
}
|
|
94
|
-
}), wt = a(Ct), Tt = {
|
|
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";
|
|
47
|
+
import { Breadcrumb as Me, BreadcrumbItem as Ne, Button as Pe, CheckboxGroup as Fe, ConfigProvider as Ie, Content as Le, DialogPlugin as Re, Drawer as ze, DrawerPlugin as Be, Dropdown as Ve, Form as He, FormItem as Ue, HeadMenu as We, Header as Ge, InputAdornment as Ke, Layout as qe, Menu as Je, MenuItem as Ye, RadioGroup as Xe, Select as Ze, Tree as Qe, TreeSelect as $e, Upload as et } from "tdesign-vue-next";
|
|
48
|
+
import { ElConfigProvider as tt } from "element-plus";
|
|
49
|
+
import { useElementSize as nt, useElementVisibility as rt, useFocus as it, useMutationObserver as at, useResizeObserver as ot } from "@vueuse/core";
|
|
50
|
+
import { cloneDeep as st, isPlainObject as ct } from "lodash-es";
|
|
51
|
+
import { defineStore as lt } from "pinia";
|
|
52
|
+
import { createRouter as ut, createWebHistory as dt, useRoute as U, useRouter as ft } from "vue-router";
|
|
53
|
+
import pt from "virtual:dlzn-ui/app-params";
|
|
54
|
+
import { createAlova as mt } from "alova";
|
|
55
|
+
import ht from "alova/fetch";
|
|
56
|
+
import gt from "alova/vue";
|
|
57
|
+
import _t from "path-browserify";
|
|
58
|
+
//#region ../../node_modules/.pnpm/element-plus@2.14.5_vue@3.5.41/node_modules/element-plus/es/locale/lang/zh-cn.mjs
|
|
59
|
+
var vt = {
|
|
95
60
|
name: "zh-cn",
|
|
96
61
|
el: {
|
|
97
62
|
breadcrumb: { label: "面包屑" },
|
|
@@ -272,15 +237,15 @@ var xt = o({
|
|
|
272
237
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
273
238
|
}
|
|
274
239
|
}
|
|
275
|
-
},
|
|
240
|
+
}, yt = {
|
|
276
241
|
autoIcon: !0,
|
|
277
242
|
autoLoading: !0,
|
|
278
243
|
autoTheme: !0,
|
|
279
244
|
loading: void 0
|
|
280
|
-
},
|
|
245
|
+
}, bt = {
|
|
281
246
|
autoLabelWidth: !0,
|
|
282
247
|
colon: !0,
|
|
283
|
-
data: () =>
|
|
248
|
+
data: () => we({}),
|
|
284
249
|
disabled: !1,
|
|
285
250
|
labelAlign: "top",
|
|
286
251
|
layout: "inline",
|
|
@@ -293,30 +258,30 @@ var xt = o({
|
|
|
293
258
|
};
|
|
294
259
|
//#endregion
|
|
295
260
|
//#region ../../packages/dlzn-ui/store/modules/common.ts
|
|
296
|
-
function
|
|
297
|
-
return
|
|
261
|
+
function xt() {
|
|
262
|
+
return Y.Get("common/appInfo", { meta: {
|
|
298
263
|
useFailMsg: !1,
|
|
299
264
|
useLoading: !1,
|
|
300
265
|
useSysFailMsg: !1,
|
|
301
266
|
useToken: !1
|
|
302
267
|
} });
|
|
303
268
|
}
|
|
304
|
-
var
|
|
305
|
-
let e =
|
|
269
|
+
var W = lt("common", () => {
|
|
270
|
+
let e = I(!0), t = I(250), n = I({
|
|
306
271
|
appName: VITE_APP_NAME,
|
|
307
272
|
version: ""
|
|
308
273
|
});
|
|
309
|
-
|
|
274
|
+
V(() => n.value.appName, (e) => {
|
|
310
275
|
e && (document.title = e);
|
|
311
276
|
});
|
|
312
277
|
function r() {
|
|
313
|
-
|
|
278
|
+
xt().then((e) => {
|
|
314
279
|
n.value = e;
|
|
315
280
|
}).catch((e) => {
|
|
316
281
|
console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
|
|
317
282
|
});
|
|
318
283
|
}
|
|
319
|
-
let i =
|
|
284
|
+
let i = I(!0), a = null;
|
|
320
285
|
function o() {
|
|
321
286
|
a !== null && (clearTimeout(a), a = null), i.value = !1, a = setTimeout(() => {
|
|
322
287
|
i.value = !0;
|
|
@@ -330,13 +295,13 @@ var K = ft("common", () => {
|
|
|
330
295
|
isRequestSleep: i,
|
|
331
296
|
requestActive: o
|
|
332
297
|
};
|
|
333
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }),
|
|
334
|
-
let e =
|
|
298
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), G = lt("recentRouters", () => {
|
|
299
|
+
let e = I([]), t = U(), n = ft();
|
|
335
300
|
function r() {
|
|
336
301
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
337
302
|
}
|
|
338
303
|
function i(t, n) {
|
|
339
|
-
let r =
|
|
304
|
+
let r = st(n), i = e.value.findIndex((e) => e.name === r.name || J(e.name).meta.title === J(r.name).meta.title);
|
|
340
305
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
341
306
|
let n = e.value.findIndex((e) => e.name === t);
|
|
342
307
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -367,16 +332,16 @@ var K = ft("common", () => {
|
|
|
367
332
|
}, { persist: { pick: ["recentRouters"] } });
|
|
368
333
|
//#endregion
|
|
369
334
|
//#region ../../packages/dlzn-ui/store/modules/router.ts
|
|
370
|
-
function
|
|
371
|
-
return
|
|
335
|
+
function St() {
|
|
336
|
+
return Y.Get("getRouters", { meta: {
|
|
372
337
|
useFailMsg: "获取用户路由失败",
|
|
373
338
|
useLoading: "正在获取用户路由..."
|
|
374
339
|
} });
|
|
375
340
|
}
|
|
376
|
-
function
|
|
341
|
+
function Ct(e) {
|
|
377
342
|
return e.children !== void 0 || e.component !== void 0;
|
|
378
343
|
}
|
|
379
|
-
function
|
|
344
|
+
function wt(e) {
|
|
380
345
|
let t = [];
|
|
381
346
|
return e.forEach((e) => {
|
|
382
347
|
e.path === "/" ? t.push({
|
|
@@ -385,7 +350,7 @@ function jt(e) {
|
|
|
385
350
|
}) : t.push(e);
|
|
386
351
|
}), t;
|
|
387
352
|
}
|
|
388
|
-
function
|
|
353
|
+
function Tt(e) {
|
|
389
354
|
let t = (e, n) => {
|
|
390
355
|
let r = [];
|
|
391
356
|
return e.forEach((e) => {
|
|
@@ -409,12 +374,12 @@ function Mt(e) {
|
|
|
409
374
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
410
375
|
}
|
|
411
376
|
}
|
|
412
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
377
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = kt(e)), Ct(i) && r.push(i);
|
|
413
378
|
}), r;
|
|
414
|
-
}, n =
|
|
379
|
+
}, n = tn();
|
|
415
380
|
return n.children.push(...e), t([n], null);
|
|
416
381
|
}
|
|
417
|
-
function
|
|
382
|
+
function Et(e) {
|
|
418
383
|
let t = (e) => {
|
|
419
384
|
let n = [...e], r = n.length;
|
|
420
385
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -427,36 +392,36 @@ function Nt(e) {
|
|
|
427
392
|
};
|
|
428
393
|
return t(e);
|
|
429
394
|
}
|
|
430
|
-
var
|
|
431
|
-
function
|
|
395
|
+
var Dt = [];
|
|
396
|
+
function Ot(e) {
|
|
432
397
|
return `./${e.split("___")[0]}.vue`;
|
|
433
398
|
}
|
|
434
|
-
function
|
|
399
|
+
function kt(e) {
|
|
435
400
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
436
|
-
let t = e.component, n = typeof t == "string" ?
|
|
401
|
+
let t = e.component, n = typeof t == "string" ? m[Ot(t)] : t;
|
|
437
402
|
if (n === void 0) {
|
|
438
|
-
let e = `路由组件${
|
|
439
|
-
return console.error(e),
|
|
403
|
+
let e = `路由组件${Ot(t)}不存在`;
|
|
404
|
+
return console.error(e), s["./NotFound.vue"];
|
|
440
405
|
}
|
|
441
|
-
return typeof t == "string" &&
|
|
406
|
+
return typeof t == "string" && Dt.push(Ot(t)), () => n().then((t) => ({
|
|
442
407
|
...t.default,
|
|
443
408
|
name: e.name
|
|
444
409
|
}));
|
|
445
410
|
}
|
|
446
411
|
return e.component;
|
|
447
412
|
}
|
|
448
|
-
var
|
|
449
|
-
let e =
|
|
413
|
+
var At = lt("router", () => {
|
|
414
|
+
let e = I([]), t = ft(), n = Q();
|
|
450
415
|
async function r() {
|
|
451
|
-
let r = await
|
|
452
|
-
|
|
453
|
-
if (!
|
|
416
|
+
let r = await St();
|
|
417
|
+
Dt.length = 0, e.value = be(Et(Tt(wt(r)))), n.isAdmin && Object.keys(m).forEach((e) => {
|
|
418
|
+
if (!Dt.includes(e)) {
|
|
454
419
|
let t = `${e} 页面对应的路由不存在`;
|
|
455
420
|
console.error(t);
|
|
456
421
|
}
|
|
457
422
|
}), t.hasRoute("Index") && t.removeRoute("Index"), e.value.forEach((e) => {
|
|
458
423
|
t.addRoute(e);
|
|
459
|
-
}),
|
|
424
|
+
}), G().init();
|
|
460
425
|
}
|
|
461
426
|
function i() {
|
|
462
427
|
e.value.forEach((e) => {
|
|
@@ -468,11 +433,11 @@ var Lt = ft("router", () => {
|
|
|
468
433
|
getRouters: r,
|
|
469
434
|
routersRaw: e
|
|
470
435
|
};
|
|
471
|
-
}),
|
|
436
|
+
}), jt = { class: "ml-2! flex items-center" }, Mt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
472
437
|
__name: "Aside",
|
|
473
438
|
setup(e) {
|
|
474
|
-
let t =
|
|
475
|
-
|
|
439
|
+
let t = U(), n = W(), r = S(() => n.appInfo.appName), i = At(), a = I([]);
|
|
440
|
+
V(() => t.name, () => {
|
|
476
441
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
477
442
|
a.value.includes(e) || a.value.push(e);
|
|
478
443
|
});
|
|
@@ -481,33 +446,33 @@ var Lt = ft("router", () => {
|
|
|
481
446
|
let { hidden: e, parentName: n } = t.meta;
|
|
482
447
|
return n !== "" && e === !0 ? n : t.name;
|
|
483
448
|
});
|
|
484
|
-
return (e, t) => (
|
|
449
|
+
return (e, t) => (F(), C(B(Je), {
|
|
485
450
|
expanded: a.value,
|
|
486
451
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
487
452
|
class: "w-full!",
|
|
488
453
|
value: o.value
|
|
489
454
|
}, {
|
|
490
|
-
logo:
|
|
455
|
+
logo: H(() => [he("div", jt, [D(B(p), {
|
|
491
456
|
class: "logo",
|
|
492
|
-
src:
|
|
457
|
+
src: B(pt).asideTopLogoUrl,
|
|
493
458
|
style: {
|
|
494
459
|
width: "28px",
|
|
495
460
|
height: "28px"
|
|
496
461
|
}
|
|
497
|
-
}, null, 8, ["src"]), D(
|
|
462
|
+
}, null, 8, ["src"]), D(B(d), {
|
|
498
463
|
"animation-speed": 8,
|
|
499
464
|
"class-name": "ml-2 text-xl !font-bold",
|
|
500
465
|
"show-border": !1,
|
|
501
466
|
text: r.value
|
|
502
467
|
}, null, 8, ["text"])])]),
|
|
503
|
-
default:
|
|
468
|
+
default: H(() => [D(h, { model: B(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
504
469
|
_: 1
|
|
505
470
|
}, 8, ["expanded", "value"]));
|
|
506
471
|
}
|
|
507
|
-
}), [["__scopeId", "data-v-b32f75fd"]]),
|
|
472
|
+
}), [["__scopeId", "data-v-b32f75fd"]]), Nt = /* @__PURE__ */ O({
|
|
508
473
|
__name: "Breadcrumb",
|
|
509
474
|
setup(e, { expose: t }) {
|
|
510
|
-
let n =
|
|
475
|
+
let n = U(), r = ft(), i = G(), a = S(() => {
|
|
511
476
|
let e = n.matched.map((e) => ({
|
|
512
477
|
name: e.name,
|
|
513
478
|
title: e.meta.title
|
|
@@ -520,30 +485,30 @@ var Lt = ft("router", () => {
|
|
|
520
485
|
function o(e) {
|
|
521
486
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
522
487
|
}
|
|
523
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (
|
|
488
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (F(), C(B(Me), {
|
|
524
489
|
key: 0,
|
|
525
490
|
class: "absolute top-px z-10 py-1!"
|
|
526
491
|
}, {
|
|
527
|
-
default:
|
|
492
|
+
default: H(() => [(F(!0), T(pe, null, L(a.value, (e) => (F(), C(B(Ne), {
|
|
528
493
|
key: e.name,
|
|
529
494
|
disabled: e.disabled,
|
|
530
495
|
onClick: (t) => o(e.name)
|
|
531
496
|
}, {
|
|
532
|
-
default:
|
|
497
|
+
default: H(() => [E(z(e.title), 1)]),
|
|
533
498
|
_: 2
|
|
534
499
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
535
500
|
_: 1
|
|
536
501
|
})) : w("v-if", !0);
|
|
537
502
|
}
|
|
538
|
-
}),
|
|
503
|
+
}), Pt = /* @__PURE__ */ function(e) {
|
|
539
504
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
540
|
-
}(
|
|
541
|
-
function
|
|
542
|
-
let
|
|
505
|
+
}(Pt || {}), Ft = /* @__PURE__ */ new Set();
|
|
506
|
+
function It(e, t, n) {
|
|
507
|
+
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 } = rt(a, {
|
|
543
508
|
controls: !0,
|
|
544
509
|
initialValue: !0
|
|
545
|
-
}),
|
|
546
|
-
closeBtn: () =>
|
|
510
|
+
}), c = {
|
|
511
|
+
closeBtn: () => A($, {
|
|
547
512
|
icon: "mdi:close",
|
|
548
513
|
shape: "circle",
|
|
549
514
|
size: "small",
|
|
@@ -560,39 +525,39 @@ function Ut(e, t, n) {
|
|
|
560
525
|
placement: "center",
|
|
561
526
|
width: "fit-content",
|
|
562
527
|
...t ?? {},
|
|
563
|
-
body: () =>
|
|
564
|
-
},
|
|
565
|
-
...
|
|
528
|
+
body: () => A(jn, {}, { default: () => i.value })
|
|
529
|
+
}, l, u = {
|
|
530
|
+
...c,
|
|
566
531
|
onClosed: () => {
|
|
567
|
-
|
|
532
|
+
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(), Ft.delete(l);
|
|
568
533
|
}
|
|
569
534
|
};
|
|
570
|
-
delete
|
|
571
|
-
let
|
|
572
|
-
return
|
|
535
|
+
delete u.closeWhenCloseAll;
|
|
536
|
+
let d = r();
|
|
537
|
+
return l = e === void 0 ? Re(u, n ?? d) : Re[e](u, n ?? d), c.closeWhenCloseAll && Ft.add(l), l;
|
|
573
538
|
}
|
|
574
|
-
var
|
|
575
|
-
return
|
|
539
|
+
var Lt = function(...e) {
|
|
540
|
+
return It(void 0, ...e);
|
|
576
541
|
};
|
|
577
|
-
Object.values(
|
|
578
|
-
|
|
579
|
-
|
|
542
|
+
Object.values(Pt).forEach((e) => {
|
|
543
|
+
Lt[e] = e === "closeAll" ? () => {
|
|
544
|
+
Ft.forEach((e) => {
|
|
580
545
|
e.hide();
|
|
581
546
|
});
|
|
582
|
-
} : (...t) =>
|
|
547
|
+
} : (...t) => It(e, ...t);
|
|
583
548
|
});
|
|
584
549
|
//#endregion
|
|
585
550
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
586
|
-
var
|
|
551
|
+
var Rt = (e, t) => {
|
|
587
552
|
let n = { ...typeof e == "string" ? {} : e };
|
|
588
553
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
589
|
-
let a =
|
|
554
|
+
let a = Lt(typeof e == "string" ? {
|
|
590
555
|
body: e,
|
|
591
556
|
onConfirm: () => {
|
|
592
557
|
a.hide(), r();
|
|
593
558
|
},
|
|
594
559
|
theme: "warning"
|
|
595
|
-
} :
|
|
560
|
+
} : we({
|
|
596
561
|
...n,
|
|
597
562
|
onClose: (t) => {
|
|
598
563
|
let { trigger: n } = t;
|
|
@@ -609,130 +574,130 @@ var Gt = (e, t) => {
|
|
|
609
574
|
}
|
|
610
575
|
}), t);
|
|
611
576
|
});
|
|
612
|
-
},
|
|
613
|
-
function
|
|
614
|
-
let t =
|
|
577
|
+
}, zt = /* @__PURE__ */ new Map();
|
|
578
|
+
function Bt(e) {
|
|
579
|
+
let t = Y.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
615
580
|
...e,
|
|
616
581
|
label: e.userName,
|
|
617
582
|
value: e.userId
|
|
618
583
|
})));
|
|
619
584
|
e.forEach((e) => {
|
|
620
|
-
|
|
585
|
+
zt.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
621
586
|
});
|
|
622
587
|
}
|
|
623
|
-
var
|
|
624
|
-
function
|
|
625
|
-
return
|
|
588
|
+
var Vt = [];
|
|
589
|
+
function Ht(e) {
|
|
590
|
+
return Vt.includes(e) || Vt.push(e), new Promise((t) => {
|
|
626
591
|
setTimeout(() => {
|
|
627
|
-
let n =
|
|
628
|
-
n.length > 0 &&
|
|
592
|
+
let n = Vt.filter((e) => !zt.has(e));
|
|
593
|
+
n.length > 0 && Bt(n), Vt.length = 0, zt.get(e).then((e) => {
|
|
629
594
|
t(e);
|
|
630
595
|
});
|
|
631
596
|
});
|
|
632
597
|
});
|
|
633
598
|
}
|
|
634
|
-
var
|
|
635
|
-
function
|
|
636
|
-
|
|
599
|
+
var K = /* @__PURE__ */ new Map();
|
|
600
|
+
function Ut() {
|
|
601
|
+
Vt.length = 0, zt.clear(), K.clear();
|
|
637
602
|
}
|
|
638
|
-
function
|
|
639
|
-
|
|
640
|
-
|
|
603
|
+
function Wt(e) {
|
|
604
|
+
zt.delete(e), K.has(e) && Ht(e).then((t) => {
|
|
605
|
+
K.get(e).value = t;
|
|
641
606
|
});
|
|
642
607
|
}
|
|
643
|
-
function
|
|
608
|
+
function Gt(e) {
|
|
644
609
|
let t;
|
|
645
|
-
return
|
|
610
|
+
return K.has(e) ? t = K.get(e) : (t = I(null), K.set(e, t), Ht(e).then((e) => {
|
|
646
611
|
t.value = e;
|
|
647
612
|
})), t;
|
|
648
613
|
}
|
|
649
614
|
//#endregion
|
|
650
615
|
//#region ../../packages/dlzn-ui/store/modules/login.ts
|
|
651
|
-
function
|
|
652
|
-
return
|
|
616
|
+
function Kt(e) {
|
|
617
|
+
return Y.Post("login", e, { meta: {
|
|
653
618
|
useLoading: "登录中...",
|
|
654
619
|
useToken: !1
|
|
655
620
|
} });
|
|
656
621
|
}
|
|
657
|
-
function
|
|
658
|
-
return
|
|
622
|
+
function qt() {
|
|
623
|
+
return Y.Post("logout", void 0, { meta: {
|
|
659
624
|
useLoading: "退出登录中...",
|
|
660
625
|
useSuccessMsg: !0
|
|
661
626
|
} });
|
|
662
627
|
}
|
|
663
|
-
var
|
|
664
|
-
let e =
|
|
628
|
+
var Jt = lt("login", () => {
|
|
629
|
+
let e = I(""), t = U(), n = ft();
|
|
665
630
|
async function r(t) {
|
|
666
|
-
let n = await
|
|
631
|
+
let n = await Kt(t);
|
|
667
632
|
e.value = n.token, await Q().getUserInfo();
|
|
668
633
|
}
|
|
669
634
|
function i() {
|
|
670
|
-
e.value = "",
|
|
635
|
+
e.value = "", u().clear(), At().clear(), Q().clear(), dn(), Ut(), ne();
|
|
671
636
|
}
|
|
672
|
-
|
|
637
|
+
V(() => t.name, () => {
|
|
673
638
|
t.name === "Login" && i();
|
|
674
639
|
});
|
|
675
640
|
async function a() {
|
|
676
|
-
await
|
|
641
|
+
await qt(), await n.push({ name: "Login" }), i();
|
|
677
642
|
}
|
|
678
643
|
return {
|
|
679
644
|
login: r,
|
|
680
645
|
logout: a,
|
|
681
646
|
token: e
|
|
682
647
|
};
|
|
683
|
-
}, { persist: { pick: ["token"] } }),
|
|
648
|
+
}, { persist: { pick: ["token"] } }), Yt = { class: "flex items-center justify-between" }, Xt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
684
649
|
__name: "Header",
|
|
685
|
-
setup(
|
|
686
|
-
let
|
|
687
|
-
function
|
|
688
|
-
|
|
650
|
+
setup(t) {
|
|
651
|
+
let n = U(), r = ft(), i = Q(), a = W(), o = G();
|
|
652
|
+
function s(e) {
|
|
653
|
+
r.push(o.recentRouters.find((t) => t.name === e));
|
|
689
654
|
}
|
|
690
655
|
function c(e) {
|
|
691
|
-
|
|
656
|
+
o.close(e);
|
|
692
657
|
}
|
|
693
|
-
let
|
|
658
|
+
let u = async (e) => {
|
|
694
659
|
let { value: t } = e;
|
|
695
|
-
t === "profile" ?
|
|
696
|
-
},
|
|
697
|
-
function
|
|
698
|
-
let i = [],
|
|
699
|
-
|
|
660
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await Rt("确定要退出登录吗?"), Jt().logout());
|
|
661
|
+
}, d = l.isMd;
|
|
662
|
+
function f(e, t) {
|
|
663
|
+
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
664
|
+
o.recentRouters.length > 1 && i.push({
|
|
700
665
|
content: "关闭",
|
|
701
|
-
onClick: () => c(
|
|
666
|
+
onClick: () => c(t)
|
|
702
667
|
}, {
|
|
703
668
|
content: "关闭其他",
|
|
704
669
|
onClick: () => {
|
|
705
|
-
l !== s &&
|
|
670
|
+
l !== s && r.push(u), o.recentRouters = [u];
|
|
706
671
|
}
|
|
707
672
|
}), s > 0 && i.push({
|
|
708
673
|
content: "关闭左侧",
|
|
709
674
|
onClick: () => {
|
|
710
|
-
l < s &&
|
|
675
|
+
l < s && r.push(u), o.recentRouters = o.recentRouters.slice(s);
|
|
711
676
|
}
|
|
712
|
-
}), s <
|
|
677
|
+
}), s < o.recentRouters.length - 1 && i.push({
|
|
713
678
|
content: "关闭右侧",
|
|
714
679
|
onClick: () => {
|
|
715
|
-
l > s &&
|
|
680
|
+
l > s && r.push(u), o.recentRouters = o.recentRouters.slice(0, s + 1);
|
|
716
681
|
}
|
|
717
|
-
}),
|
|
682
|
+
}), ee(e, i);
|
|
718
683
|
}
|
|
719
|
-
return (
|
|
720
|
-
default:
|
|
684
|
+
return (t, r) => (F(), C(B(Ge), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
685
|
+
default: H(() => [D(B(We), {
|
|
721
686
|
"expand-type": "popup",
|
|
722
|
-
value:
|
|
723
|
-
onChange:
|
|
687
|
+
value: B(n).name,
|
|
688
|
+
onChange: s
|
|
724
689
|
}, {
|
|
725
|
-
logo:
|
|
690
|
+
logo: H(() => [D(B($), {
|
|
726
691
|
class: "ml-0! shrink-0",
|
|
727
692
|
shape: "circle",
|
|
728
693
|
size: "large",
|
|
729
694
|
variant: "text",
|
|
730
|
-
onClick:
|
|
695
|
+
onClick: r[0] ||= (e) => B(a).drawerOpen = !B(a).drawerOpen
|
|
731
696
|
}, {
|
|
732
|
-
default:
|
|
697
|
+
default: H(() => [D(B(e), { icon: "lineicons:menu-hamburger-1" })]),
|
|
733
698
|
_: 1
|
|
734
699
|
})]),
|
|
735
|
-
operations:
|
|
700
|
+
operations: H(() => [D(B(Ve), {
|
|
736
701
|
options: [{
|
|
737
702
|
content: "个人中心",
|
|
738
703
|
value: "profile"
|
|
@@ -742,46 +707,46 @@ var tn = ft("login", () => {
|
|
|
742
707
|
}],
|
|
743
708
|
placement: "bottom",
|
|
744
709
|
trigger: "click",
|
|
745
|
-
onClick:
|
|
710
|
+
onClick: u
|
|
746
711
|
}, {
|
|
747
|
-
default:
|
|
712
|
+
default: H(() => [B(d) ? (F(), C(B($), {
|
|
748
713
|
key: 0,
|
|
749
714
|
shape: "square",
|
|
750
715
|
variant: "text"
|
|
751
716
|
}, {
|
|
752
|
-
icon:
|
|
717
|
+
icon: H(() => [D(B(e), { icon: "material-symbols:account-circle" })]),
|
|
753
718
|
_: 1
|
|
754
|
-
})) : (
|
|
719
|
+
})) : (F(), C(B($), {
|
|
755
720
|
key: 1,
|
|
756
721
|
variant: "text"
|
|
757
722
|
}, {
|
|
758
|
-
icon:
|
|
723
|
+
icon: H(() => [D(B(e), {
|
|
759
724
|
class: "mr-2!",
|
|
760
725
|
icon: "material-symbols:account-circle"
|
|
761
726
|
})]),
|
|
762
|
-
suffix:
|
|
727
|
+
suffix: H(() => [D(B(e), {
|
|
763
728
|
icon: "icon-park-outline:down",
|
|
764
729
|
size: "18"
|
|
765
730
|
})]),
|
|
766
|
-
default:
|
|
731
|
+
default: H(() => [E(" " + z(B(i).userInfo.userName) + " ", 1)]),
|
|
767
732
|
_: 1
|
|
768
733
|
}))]),
|
|
769
734
|
_: 1
|
|
770
735
|
})]),
|
|
771
|
-
default:
|
|
772
|
-
key:
|
|
773
|
-
value:
|
|
774
|
-
onContextmenu: (
|
|
736
|
+
default: H(() => [(F(!0), T(pe, null, L(B(o).recentRouters, (t) => (F(), C(B(Ye), {
|
|
737
|
+
key: t.name,
|
|
738
|
+
value: t.name,
|
|
739
|
+
onContextmenu: (e) => f(e, t.name)
|
|
775
740
|
}, {
|
|
776
|
-
default:
|
|
741
|
+
default: H(() => [he("div", Yt, [he("span", null, z(B(J)(t.name).meta.title), 1), B(o).recentRouters.length > 1 ? (F(), C(B($), {
|
|
777
742
|
key: 0,
|
|
778
743
|
class: "ml-1!",
|
|
779
744
|
shape: "square",
|
|
780
745
|
size: "small",
|
|
781
746
|
variant: "text",
|
|
782
|
-
onClick:
|
|
747
|
+
onClick: je((e) => c(t.name), ["stop"])
|
|
783
748
|
}, {
|
|
784
|
-
icon:
|
|
749
|
+
icon: H(() => [D(B(e), {
|
|
785
750
|
icon: "material-symbols:close",
|
|
786
751
|
style: { "font-size": "12px !important" }
|
|
787
752
|
})]),
|
|
@@ -794,40 +759,40 @@ var tn = ft("login", () => {
|
|
|
794
759
|
_: 1
|
|
795
760
|
}));
|
|
796
761
|
}
|
|
797
|
-
}), [["__scopeId", "data-v-cdf58b1a"]]),
|
|
762
|
+
}), [["__scopeId", "data-v-cdf58b1a"]]), Zt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
798
763
|
__name: "Entry",
|
|
799
764
|
setup(e) {
|
|
800
|
-
let t =
|
|
801
|
-
function
|
|
765
|
+
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 } = nt(p);
|
|
766
|
+
function h({ size: e }) {
|
|
802
767
|
n.drawerSize = e;
|
|
803
768
|
}
|
|
804
|
-
let
|
|
769
|
+
let ee = S(() => t.meta.fullScreen);
|
|
805
770
|
return (e, t) => {
|
|
806
|
-
let r =
|
|
807
|
-
return
|
|
808
|
-
default:
|
|
771
|
+
let r = Ee("RouterView");
|
|
772
|
+
return ee.value ? (F(), C(r, { key: 0 }, {
|
|
773
|
+
default: H(({ Component: e }) => [(F(), C(R(e)))]),
|
|
809
774
|
_: 1
|
|
810
|
-
})) : (
|
|
775
|
+
})) : (F(), C(B(qe), {
|
|
811
776
|
key: 1,
|
|
812
777
|
class: "h-full"
|
|
813
778
|
}, {
|
|
814
|
-
default:
|
|
815
|
-
D(
|
|
816
|
-
D(
|
|
817
|
-
visible:
|
|
818
|
-
"onUpdate:visible": t[0] ||= (e) =>
|
|
779
|
+
default: H(() => [
|
|
780
|
+
D(Xt),
|
|
781
|
+
D(B(ze), {
|
|
782
|
+
visible: B(n).drawerOpen,
|
|
783
|
+
"onUpdate:visible": t[0] ||= (e) => B(n).drawerOpen = e,
|
|
819
784
|
footer: !1,
|
|
820
|
-
mode:
|
|
785
|
+
mode: B(f) ? "overlay" : "push",
|
|
821
786
|
placement: "left",
|
|
822
|
-
"show-overlay":
|
|
823
|
-
size:
|
|
787
|
+
"show-overlay": B(f),
|
|
788
|
+
size: B(f) ? "200px" : `${B(n).drawerSize}px`,
|
|
824
789
|
"size-draggable": {
|
|
825
790
|
max: 450,
|
|
826
791
|
min: 180
|
|
827
792
|
},
|
|
828
|
-
onSizeDragEnd:
|
|
793
|
+
onSizeDragEnd: h
|
|
829
794
|
}, {
|
|
830
|
-
default:
|
|
795
|
+
default: H(() => [D(Mt, { class: "no_drawer_body_padding" })]),
|
|
831
796
|
_: 1
|
|
832
797
|
}, 8, [
|
|
833
798
|
"visible",
|
|
@@ -835,27 +800,27 @@ var tn = ft("login", () => {
|
|
|
835
800
|
"show-overlay",
|
|
836
801
|
"size"
|
|
837
802
|
]),
|
|
838
|
-
D(
|
|
803
|
+
D(B(Le), {
|
|
839
804
|
ref_key: "contentRef",
|
|
840
|
-
ref:
|
|
805
|
+
ref: p,
|
|
841
806
|
class: "overflow-hidden"
|
|
842
807
|
}, {
|
|
843
|
-
default:
|
|
808
|
+
default: H(() => [D(B(c), {
|
|
844
809
|
always: "",
|
|
845
|
-
"view-class":
|
|
846
|
-
...
|
|
810
|
+
"view-class": xe(["relative flex flex-col", {
|
|
811
|
+
...d.value,
|
|
847
812
|
"pt-8": s.value
|
|
848
813
|
}]),
|
|
849
814
|
"view-style": {
|
|
850
815
|
minWidth: "1200px",
|
|
851
|
-
minHeight: `${Math.max(
|
|
816
|
+
minHeight: `${Math.max(B(m), 438)}px`
|
|
852
817
|
}
|
|
853
818
|
}, {
|
|
854
|
-
default:
|
|
855
|
-
default:
|
|
856
|
-
exclude:
|
|
819
|
+
default: H(() => [D(Nt, { ref: "breadcrumb" }, null, 512), D(r, null, {
|
|
820
|
+
default: H(({ Component: e }) => [(F(), C(me, {
|
|
821
|
+
exclude: B(i).excludeKPname,
|
|
857
822
|
include: a.value
|
|
858
|
-
}, [(
|
|
823
|
+
}, [(F(), C(R(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
859
824
|
_: 1
|
|
860
825
|
})]),
|
|
861
826
|
_: 1
|
|
@@ -867,9 +832,9 @@ var tn = ft("login", () => {
|
|
|
867
832
|
}));
|
|
868
833
|
};
|
|
869
834
|
}
|
|
870
|
-
}), [["__scopeId", "data-v-de5cbc76"]]),
|
|
871
|
-
function
|
|
872
|
-
let n = S(() => typeof e.body == "function" ? e.body(
|
|
835
|
+
}), [["__scopeId", "data-v-de5cbc76"]]), Qt = /* @__PURE__ */ new Set();
|
|
836
|
+
function $t(e, t) {
|
|
837
|
+
let n = S(() => typeof e.body == "function" ? e.body(A) : e.body), i = {
|
|
873
838
|
attach: "#app",
|
|
874
839
|
closeOnEscKeydown: !1,
|
|
875
840
|
closeOnOverlayClick: !1,
|
|
@@ -879,30 +844,30 @@ function sn(e, t) {
|
|
|
879
844
|
lazy: !0,
|
|
880
845
|
sizeDraggable: !0,
|
|
881
846
|
...e ?? {},
|
|
882
|
-
body: () =>
|
|
883
|
-
},
|
|
884
|
-
...
|
|
847
|
+
body: () => A(jn, {}, { default: () => n.value })
|
|
848
|
+
}, a, o = {
|
|
849
|
+
...i,
|
|
885
850
|
onClose: (e) => {
|
|
886
|
-
|
|
851
|
+
i.onClose?.(e), Qt.delete(a);
|
|
887
852
|
}
|
|
888
853
|
};
|
|
889
|
-
return delete
|
|
854
|
+
return delete o.closeWhenCloseAll, a = Be(o, t ?? r()), i.closeWhenCloseAll && Qt.add(a), a;
|
|
890
855
|
}
|
|
891
|
-
var
|
|
892
|
-
return
|
|
856
|
+
var en = function(...e) {
|
|
857
|
+
return $t(...e);
|
|
893
858
|
};
|
|
894
|
-
|
|
895
|
-
|
|
859
|
+
en.closeAll = () => {
|
|
860
|
+
Qt.forEach((e) => {
|
|
896
861
|
e.hide?.();
|
|
897
862
|
});
|
|
898
863
|
};
|
|
899
864
|
//#endregion
|
|
900
865
|
//#region ../../packages/dlzn-ui/router/index.ts
|
|
901
|
-
function
|
|
866
|
+
function tn() {
|
|
902
867
|
return {
|
|
903
868
|
children: [{
|
|
904
869
|
children: [{
|
|
905
|
-
component:
|
|
870
|
+
component: s["./profile/Index.vue"],
|
|
906
871
|
meta: {
|
|
907
872
|
fullScreen: !1,
|
|
908
873
|
hidden: !0,
|
|
@@ -914,7 +879,7 @@ function ln() {
|
|
|
914
879
|
name: "Profile",
|
|
915
880
|
path: "profile"
|
|
916
881
|
}],
|
|
917
|
-
component:
|
|
882
|
+
component: s["./Home.vue"],
|
|
918
883
|
meta: {
|
|
919
884
|
fullScreen: !1,
|
|
920
885
|
hidden: !1,
|
|
@@ -926,17 +891,17 @@ function ln() {
|
|
|
926
891
|
name: "Home",
|
|
927
892
|
path: "home"
|
|
928
893
|
}],
|
|
929
|
-
component:
|
|
894
|
+
component: Zt,
|
|
930
895
|
name: "Index",
|
|
931
896
|
path: "/"
|
|
932
897
|
};
|
|
933
898
|
}
|
|
934
|
-
var
|
|
935
|
-
history:
|
|
899
|
+
var q = ut({
|
|
900
|
+
history: dt(VITE_BASE_URL),
|
|
936
901
|
routes: [
|
|
937
|
-
|
|
902
|
+
tn(),
|
|
938
903
|
{
|
|
939
|
-
component:
|
|
904
|
+
component: s["./Login.vue"],
|
|
940
905
|
meta: {
|
|
941
906
|
fullScreen: !1,
|
|
942
907
|
hidden: !0,
|
|
@@ -949,7 +914,7 @@ var Y = pt({
|
|
|
949
914
|
path: "/login"
|
|
950
915
|
},
|
|
951
916
|
{
|
|
952
|
-
component:
|
|
917
|
+
component: s["./NotFound.vue"],
|
|
953
918
|
meta: {
|
|
954
919
|
fullScreen: !1,
|
|
955
920
|
hidden: !0,
|
|
@@ -965,16 +930,16 @@ var Y = pt({
|
|
|
965
930
|
sensitive: !0,
|
|
966
931
|
strict: !0
|
|
967
932
|
});
|
|
968
|
-
|
|
969
|
-
if (e.query._fromLeftTree === "true" &&
|
|
933
|
+
q.beforeEach(async (e) => {
|
|
934
|
+
if (e.query._fromLeftTree === "true" && u().add(e.name), e.name !== "Login") return Jt().token === "" ? { name: "Login" } : At().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), q.resolve({
|
|
970
935
|
path: e.path,
|
|
971
936
|
query: e.query
|
|
972
937
|
}));
|
|
973
|
-
}),
|
|
974
|
-
|
|
938
|
+
}), q.afterEach((e, t, n) => {
|
|
939
|
+
Lt.closeAll(), en.closeAll();
|
|
975
940
|
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: s } = r;
|
|
976
|
-
document.title = s ||
|
|
977
|
-
let c =
|
|
941
|
+
document.title = s || W().appInfo.appName;
|
|
942
|
+
let c = G();
|
|
978
943
|
if (!["Login", "NotFound"].includes(i) && !a) {
|
|
979
944
|
let n = o === t.name || e.query._fromLeftTree !== "true" ? t.name : void 0;
|
|
980
945
|
c.add(n, {
|
|
@@ -982,29 +947,29 @@ Y.beforeEach(async (e) => {
|
|
|
982
947
|
query: e.query
|
|
983
948
|
});
|
|
984
949
|
}
|
|
985
|
-
|
|
950
|
+
u().remove(i);
|
|
986
951
|
});
|
|
987
|
-
function
|
|
988
|
-
if (
|
|
952
|
+
function J(e) {
|
|
953
|
+
if (q.hasRoute(e)) return q.getRoutes().find((t) => t.name === e);
|
|
989
954
|
}
|
|
990
955
|
//#endregion
|
|
991
956
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
992
|
-
var
|
|
993
|
-
function
|
|
957
|
+
var nn = 15e3, rn = "网络错误,请稍后再试";
|
|
958
|
+
function an(e, t = !0) {
|
|
994
959
|
let n = {};
|
|
995
960
|
return Object.keys(e).forEach((r) => {
|
|
996
|
-
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !
|
|
961
|
+
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !_(e[r]))) && (n[r] = e[r]);
|
|
997
962
|
}), n;
|
|
998
963
|
}
|
|
999
|
-
function
|
|
1000
|
-
return new URLSearchParams(
|
|
964
|
+
function on(e, t = !0) {
|
|
965
|
+
return new URLSearchParams(an(e, t)).toString();
|
|
1001
966
|
}
|
|
1002
|
-
var
|
|
967
|
+
var Y = mt({
|
|
1003
968
|
baseURL: VITE_BASE_URL,
|
|
1004
969
|
beforeRequest(e) {
|
|
1005
970
|
e.config.credentials = e.config.credentials ?? "omit";
|
|
1006
971
|
let [t, ...n] = VITE_API_PREFIX_ARRAY;
|
|
1007
|
-
!e.url.startsWith("http") && !n.some((t) =>
|
|
972
|
+
!e.url.startsWith("http") && !n.some((t) => _t.join("/", e.url).startsWith(_t.join("/", t, "/"))) && (e.url = _t.join(t, e.url)), e.meta = {
|
|
1008
973
|
use600Alert: !0,
|
|
1009
974
|
useDataResult: !0,
|
|
1010
975
|
useDownload: !1,
|
|
@@ -1021,74 +986,74 @@ var X = _t({
|
|
|
1021
986
|
useToken: !0,
|
|
1022
987
|
...e.meta ?? {}
|
|
1023
988
|
};
|
|
1024
|
-
let r =
|
|
1025
|
-
|
|
989
|
+
let r = Jt(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: c, useLoading: l, useResponseBlob: u, useToken: d } = e.meta;
|
|
990
|
+
c || W().requestActive(), d && (r.token ? e.config.headers.Authorization = r.token : e.abort()), l !== !1 && i.show(l === !0 ? void 0 : l);
|
|
1026
991
|
let f = e.config.params;
|
|
1027
|
-
if (typeof f != "string" && (e.config.params =
|
|
992
|
+
if (typeof f != "string" && (e.config.params = on(f, o)), a && ct(e.data)) {
|
|
1028
993
|
let t = {}, n = e.data;
|
|
1029
994
|
Object.keys(n).forEach((e) => {
|
|
1030
|
-
|
|
995
|
+
_(n[e]) || (t[e] = n[e]);
|
|
1031
996
|
}), e.data = t;
|
|
1032
997
|
}
|
|
1033
|
-
if (
|
|
998
|
+
if (s) {
|
|
1034
999
|
let t = new FormData();
|
|
1035
1000
|
Object.keys(e.data).forEach((n) => {
|
|
1036
1001
|
t.append(n, e.data[n]);
|
|
1037
1002
|
}), e.data = t;
|
|
1038
1003
|
}
|
|
1039
|
-
e.config.timeout ===
|
|
1004
|
+
e.config.timeout === nn && (s || e.data instanceof FormData || u) && (e.config.timeout = 0);
|
|
1040
1005
|
},
|
|
1041
1006
|
cacheFor: null,
|
|
1042
|
-
requestAdapter:
|
|
1007
|
+
requestAdapter: ht(),
|
|
1043
1008
|
responded: {
|
|
1044
1009
|
onComplete: (e) => {
|
|
1045
|
-
e.meta.useLoading !== !1 &&
|
|
1010
|
+
e.meta.useLoading !== !1 && i.hide();
|
|
1046
1011
|
},
|
|
1047
1012
|
onError: async (e, t) => {
|
|
1048
1013
|
let { useSysFailMsg: n } = t.meta;
|
|
1049
1014
|
if (e instanceof Error) {
|
|
1050
1015
|
let { message: t } = e;
|
|
1051
1016
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1052
|
-
if (t.toLowerCase().includes("timeout")) return n &&
|
|
1017
|
+
if (t.toLowerCase().includes("timeout")) return n && o.error("请求超时"), Promise.reject(e);
|
|
1053
1018
|
}
|
|
1054
|
-
return n &&
|
|
1019
|
+
return n && o.error(rn), Promise.reject(e);
|
|
1055
1020
|
},
|
|
1056
1021
|
onSuccess: async (e, t) => {
|
|
1057
1022
|
if (typeof e == "string") return e;
|
|
1058
|
-
let { useDataResult:
|
|
1059
|
-
if (
|
|
1060
|
-
if (
|
|
1023
|
+
let { useDataResult: r, useDownload: i, useFailMsg: a, useResponseBlob: s, useResponseText: c, useSuccessMsg: l, useSysFailMsg: u, useToken: d } = t.meta, { headers: f, ok: p, status: m } = e;
|
|
1024
|
+
if (p === !1) {
|
|
1025
|
+
if (u) {
|
|
1061
1026
|
let e = {
|
|
1062
1027
|
403: "当前操作没有权限",
|
|
1063
1028
|
404: "访问资源不存在",
|
|
1064
1029
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1065
|
-
}[m] ??
|
|
1066
|
-
|
|
1030
|
+
}[m] ?? rn;
|
|
1031
|
+
o.error(e);
|
|
1067
1032
|
}
|
|
1068
1033
|
return Promise.reject(e);
|
|
1069
1034
|
}
|
|
1070
|
-
if (
|
|
1035
|
+
if (s && !f.get("content-type")?.includes("application/json")) {
|
|
1071
1036
|
let t;
|
|
1072
1037
|
try {
|
|
1073
1038
|
t = await e.blob();
|
|
1074
1039
|
} catch (e) {
|
|
1075
|
-
return
|
|
1040
|
+
return n.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1076
1041
|
}
|
|
1077
|
-
if (
|
|
1078
|
-
if (typeof
|
|
1042
|
+
if (i !== !1) {
|
|
1043
|
+
if (typeof i == "string") b(t, i);
|
|
1079
1044
|
else {
|
|
1080
|
-
let
|
|
1081
|
-
|
|
1045
|
+
let r = new URLSearchParams((e.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename");
|
|
1046
|
+
r ? b(t, r) : n.error("返回的 response header 没有文件名");
|
|
1082
1047
|
}
|
|
1083
1048
|
}
|
|
1084
1049
|
return t;
|
|
1085
1050
|
}
|
|
1086
|
-
if (
|
|
1051
|
+
if (c && !f.get("content-type")?.includes("application/json")) {
|
|
1087
1052
|
let t;
|
|
1088
1053
|
try {
|
|
1089
1054
|
t = await e.text();
|
|
1090
1055
|
} catch (e) {
|
|
1091
|
-
return
|
|
1056
|
+
return n.error("返回的 response text() 方法所解析"), Promise.reject(e);
|
|
1092
1057
|
}
|
|
1093
1058
|
return t;
|
|
1094
1059
|
}
|
|
@@ -1096,34 +1061,34 @@ var X = _t({
|
|
|
1096
1061
|
try {
|
|
1097
1062
|
h = await e.json();
|
|
1098
1063
|
} catch (e) {
|
|
1099
|
-
return
|
|
1064
|
+
return n.error("返回的 response 不能被json() 方法所解析"), Promise.reject(e);
|
|
1100
1065
|
}
|
|
1101
1066
|
if (h?.code !== void 0) {
|
|
1102
|
-
let { code: e, data: t, msg:
|
|
1067
|
+
let { code: e, data: t, msg: n } = h;
|
|
1103
1068
|
if (e >= 400) {
|
|
1104
1069
|
if (e === 600) {
|
|
1105
|
-
if (!
|
|
1106
|
-
} else e === 401 &&
|
|
1070
|
+
if (!s) return h;
|
|
1071
|
+
} else e === 401 && d ? q.push({ name: "Login" }) : a !== !1 && o.error(a === !0 ? n : a);
|
|
1107
1072
|
return Promise.reject(h);
|
|
1108
1073
|
}
|
|
1109
1074
|
{
|
|
1110
|
-
let i =
|
|
1075
|
+
let i = pt.alovaResCodeSuccessCb?.({
|
|
1111
1076
|
code: e,
|
|
1112
1077
|
data: t,
|
|
1113
|
-
msg:
|
|
1078
|
+
msg: n
|
|
1114
1079
|
});
|
|
1115
|
-
return i === void 0 ? (
|
|
1080
|
+
return i === void 0 ? (l && o(n), r ? t === void 0 ? h : t : h) : i;
|
|
1116
1081
|
}
|
|
1117
1082
|
}
|
|
1118
1083
|
return h;
|
|
1119
1084
|
}
|
|
1120
1085
|
},
|
|
1121
1086
|
shareRequest: !1,
|
|
1122
|
-
statesHook:
|
|
1123
|
-
timeout:
|
|
1124
|
-
}),
|
|
1125
|
-
function
|
|
1126
|
-
let t =
|
|
1087
|
+
statesHook: gt,
|
|
1088
|
+
timeout: nn
|
|
1089
|
+
}), sn = /* @__PURE__ */ new Map();
|
|
1090
|
+
function cn(e) {
|
|
1091
|
+
let t = Y.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
1127
1092
|
cssClass: e.cssClass,
|
|
1128
1093
|
dictType: e.dictType,
|
|
1129
1094
|
label: e.dictLabel,
|
|
@@ -1131,51 +1096,51 @@ function gn(e) {
|
|
|
1131
1096
|
value: e.dictValue
|
|
1132
1097
|
})));
|
|
1133
1098
|
e.forEach((e) => {
|
|
1134
|
-
|
|
1099
|
+
sn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
1135
1100
|
});
|
|
1136
1101
|
}
|
|
1137
|
-
var
|
|
1138
|
-
function
|
|
1139
|
-
return
|
|
1102
|
+
var ln = [];
|
|
1103
|
+
function un(e) {
|
|
1104
|
+
return ln.includes(e) || ln.push(e), new Promise((t) => {
|
|
1140
1105
|
setTimeout(() => {
|
|
1141
|
-
let n =
|
|
1142
|
-
n.length > 0 &&
|
|
1106
|
+
let n = ln.filter((e) => !sn.has(e));
|
|
1107
|
+
n.length > 0 && cn(n), ln.length = 0, sn.get(e).then((e) => {
|
|
1143
1108
|
t(e);
|
|
1144
1109
|
});
|
|
1145
1110
|
});
|
|
1146
1111
|
});
|
|
1147
1112
|
}
|
|
1148
|
-
var
|
|
1149
|
-
function
|
|
1150
|
-
|
|
1113
|
+
var X = /* @__PURE__ */ new Map();
|
|
1114
|
+
function dn() {
|
|
1115
|
+
ln.length = 0, sn.clear(), X.clear();
|
|
1151
1116
|
}
|
|
1152
|
-
function
|
|
1153
|
-
let n =
|
|
1117
|
+
function fn(e, t) {
|
|
1118
|
+
let n = Z(e);
|
|
1154
1119
|
return S(() => {
|
|
1155
1120
|
if (t === void 0) return n.value.map((e) => e.label);
|
|
1156
|
-
if (Array.isArray(t)) return n.value.length === 0 ? [] : t.map((e) => n.value.find((t) => String(t.value) === String(e))?.label ??
|
|
1121
|
+
if (Array.isArray(t)) return n.value.length === 0 ? [] : t.map((e) => n.value.find((t) => String(t.value) === String(e))?.label ?? y(e));
|
|
1157
1122
|
if (n.value.length === 0) return "";
|
|
1158
1123
|
if (typeof t == "string") {
|
|
1159
1124
|
let e = t.split(",").filter(Boolean);
|
|
1160
1125
|
if (e.length > 0) return e.map((e) => n.value.find((t) => String(t.value) === e)?.label ?? e).join(",");
|
|
1161
1126
|
}
|
|
1162
|
-
return n.value.find((e) => String(e.value) === String(t))?.label ??
|
|
1127
|
+
return n.value.find((e) => String(e.value) === String(t))?.label ?? y(t);
|
|
1163
1128
|
});
|
|
1164
1129
|
}
|
|
1165
|
-
function
|
|
1130
|
+
function Z(e, t) {
|
|
1166
1131
|
let n;
|
|
1167
|
-
return
|
|
1132
|
+
return X.has(e) ? n = X.get(e) : (n = I([]), X.set(e, n), un(e).then((e) => {
|
|
1168
1133
|
n.value = e;
|
|
1169
1134
|
})), S(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1170
1135
|
}
|
|
1171
|
-
function
|
|
1172
|
-
|
|
1173
|
-
|
|
1136
|
+
function pn(e) {
|
|
1137
|
+
sn.delete(e), X.has(e) && un(e).then((t) => {
|
|
1138
|
+
X.get(e).value = t;
|
|
1174
1139
|
});
|
|
1175
1140
|
}
|
|
1176
1141
|
//#endregion
|
|
1177
1142
|
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
1178
|
-
var
|
|
1143
|
+
var mn = /* @__PURE__ */ O({
|
|
1179
1144
|
inheritAttrs: !1,
|
|
1180
1145
|
name: "TCheckboxGroup",
|
|
1181
1146
|
__name: "checkbox-group",
|
|
@@ -1202,44 +1167,44 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1202
1167
|
},
|
|
1203
1168
|
emits: ["update:modelValue"],
|
|
1204
1169
|
setup(e, { emit: t }) {
|
|
1205
|
-
let
|
|
1206
|
-
function
|
|
1207
|
-
|
|
1170
|
+
let r = e, i = t, a = Fe, o = k();
|
|
1171
|
+
function s(e) {
|
|
1172
|
+
o.exposed = e ?? {};
|
|
1208
1173
|
}
|
|
1209
|
-
let
|
|
1174
|
+
let c = S(() => {
|
|
1210
1175
|
let e;
|
|
1211
|
-
return
|
|
1176
|
+
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({
|
|
1212
1177
|
checkAll: !0,
|
|
1213
1178
|
label: "全选"
|
|
1214
1179
|
})), e;
|
|
1215
|
-
}), c = S(() => {
|
|
1216
|
-
if (!Array.isArray(n.modelValue)) u.error("TCheckboxGroup: modelValue must be an array");
|
|
1217
|
-
else if (s.value !== void 0) {
|
|
1218
|
-
let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1219
|
-
if (e) return n.modelValue.map((e) => x(e) ? e : String(e));
|
|
1220
|
-
if (t) return n.modelValue.map((e) => ae(e) ? Number(e) : e);
|
|
1221
|
-
}
|
|
1222
|
-
return n.modelValue;
|
|
1223
1180
|
}), l = S(() => {
|
|
1224
|
-
|
|
1181
|
+
if (!Array.isArray(r.modelValue)) n.error("TCheckboxGroup: modelValue must be an array");
|
|
1182
|
+
else if (c.value !== void 0) {
|
|
1183
|
+
let e = c.value.every((e) => typeof (e.value ?? e) == "string"), t = c.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1184
|
+
if (e) return r.modelValue.map((e) => _(e) ? e : String(e));
|
|
1185
|
+
if (t) return r.modelValue.map((e) => v(e) ? Number(e) : e);
|
|
1186
|
+
}
|
|
1187
|
+
return r.modelValue;
|
|
1188
|
+
}), u = S(() => {
|
|
1189
|
+
let e = { ...r };
|
|
1225
1190
|
return delete e.dicCode, delete e.showCheckAll, Object.keys(e).forEach((t) => {
|
|
1226
1191
|
e[t] === void 0 && delete e[t];
|
|
1227
1192
|
}), e;
|
|
1228
1193
|
});
|
|
1229
|
-
return (e, t) => (
|
|
1230
|
-
...
|
|
1231
|
-
options:
|
|
1232
|
-
modelValue:
|
|
1194
|
+
return (e, t) => (F(), C(R(A(B(a), M(e.$attrs, {
|
|
1195
|
+
...u.value,
|
|
1196
|
+
options: c.value,
|
|
1197
|
+
modelValue: l.value,
|
|
1233
1198
|
onChange: (...e) => {
|
|
1234
|
-
|
|
1199
|
+
i("update:modelValue", e[0]), r.onChange?.(...e);
|
|
1235
1200
|
},
|
|
1236
|
-
ref:
|
|
1201
|
+
ref: s
|
|
1237
1202
|
}), e.$slots))));
|
|
1238
1203
|
}
|
|
1239
|
-
}),
|
|
1204
|
+
}), hn = /* @__PURE__ */ O({
|
|
1240
1205
|
inheritAttrs: !1,
|
|
1241
1206
|
__name: "cron",
|
|
1242
|
-
props: /*@__PURE__*/
|
|
1207
|
+
props: /*@__PURE__*/ j({
|
|
1243
1208
|
modelValue: {},
|
|
1244
1209
|
adornment: {},
|
|
1245
1210
|
align: {},
|
|
@@ -1284,19 +1249,19 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1284
1249
|
onPaste: { type: Function },
|
|
1285
1250
|
onValidate: { type: Function },
|
|
1286
1251
|
onWheel: { type: Function }
|
|
1287
|
-
},
|
|
1252
|
+
}, re),
|
|
1288
1253
|
emits: ["update:modelValue"],
|
|
1289
1254
|
setup(e, { emit: t }) {
|
|
1290
|
-
let n = e, r = t, i =
|
|
1255
|
+
let n = e, r = t, i = ye("isFormDisabled", S(() => !1)), a = ye("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1291
1256
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1292
1257
|
return {
|
|
1293
1258
|
...n,
|
|
1294
|
-
adornment: { append: () =>
|
|
1259
|
+
adornment: { append: () => A($, {
|
|
1295
1260
|
default: "cron",
|
|
1296
1261
|
onClick: () => {
|
|
1297
|
-
let i =
|
|
1298
|
-
|
|
1299
|
-
body: () =>
|
|
1262
|
+
let i = I(null);
|
|
1263
|
+
Rt({
|
|
1264
|
+
body: () => A(_e(() => import("../components/cron/src/Picker.mjs")), {
|
|
1300
1265
|
disabled: e,
|
|
1301
1266
|
modelValue: n.modelValue,
|
|
1302
1267
|
onVnodeMounted: (e) => {
|
|
@@ -1318,20 +1283,20 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1318
1283
|
variant: "text"
|
|
1319
1284
|
}) }
|
|
1320
1285
|
};
|
|
1321
|
-
}), s =
|
|
1286
|
+
}), s = Oe(), c = k();
|
|
1322
1287
|
function l(e) {
|
|
1323
1288
|
c.exposed = e ?? {};
|
|
1324
1289
|
}
|
|
1325
|
-
let u = S(() =>
|
|
1290
|
+
let u = S(() => M(s, {
|
|
1326
1291
|
...o.value,
|
|
1327
1292
|
onChange: (...e) => {
|
|
1328
1293
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1329
1294
|
},
|
|
1330
1295
|
ref: l
|
|
1331
1296
|
}));
|
|
1332
|
-
return (e, t) => (
|
|
1297
|
+
return (e, t) => (F(), C(B(ie), P(ve(u.value)), null, 16));
|
|
1333
1298
|
}
|
|
1334
|
-
}),
|
|
1299
|
+
}), gn = /* @__PURE__ */ O({
|
|
1335
1300
|
inheritAttrs: !1,
|
|
1336
1301
|
name: "TRadioGroup",
|
|
1337
1302
|
__name: "radio-group",
|
|
@@ -1361,35 +1326,35 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1361
1326
|
},
|
|
1362
1327
|
emits: ["update:modelValue"],
|
|
1363
1328
|
setup(e, { emit: t }) {
|
|
1364
|
-
let
|
|
1365
|
-
function
|
|
1366
|
-
|
|
1329
|
+
let r = e, i = t, a = Xe, o = k();
|
|
1330
|
+
function s(e) {
|
|
1331
|
+
o.exposed = e ?? {};
|
|
1367
1332
|
}
|
|
1368
|
-
let
|
|
1369
|
-
let e = { ...
|
|
1333
|
+
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(() => {
|
|
1334
|
+
let e = { ...r };
|
|
1370
1335
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1371
1336
|
e[t] === void 0 && delete e[t];
|
|
1372
1337
|
}), e;
|
|
1373
|
-
}),
|
|
1374
|
-
if (
|
|
1375
|
-
let e =
|
|
1376
|
-
if (e) return
|
|
1377
|
-
if (t) return
|
|
1338
|
+
}), u = S(() => {
|
|
1339
|
+
if (c.value !== void 0 && !_(r.modelValue)) {
|
|
1340
|
+
let e = c.value.every((e) => typeof (e.value ?? e) == "string"), t = c.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1341
|
+
if (e) return y(r.modelValue);
|
|
1342
|
+
if (t) return v(r.modelValue) ? Number(r.modelValue) : r.modelValue;
|
|
1378
1343
|
}
|
|
1379
|
-
return
|
|
1344
|
+
return r.modelValue;
|
|
1380
1345
|
});
|
|
1381
|
-
return (e, t) => (
|
|
1382
|
-
...
|
|
1383
|
-
options:
|
|
1384
|
-
modelValue:
|
|
1346
|
+
return (e, t) => (F(), C(R(A(B(a), M(e.$attrs, {
|
|
1347
|
+
...l.value,
|
|
1348
|
+
options: c.value,
|
|
1349
|
+
modelValue: u.value,
|
|
1385
1350
|
onChange: (...e) => {
|
|
1386
|
-
let [t, ...
|
|
1387
|
-
|
|
1351
|
+
let [t, ...n] = e, a = B(_)(t) ? "" : t;
|
|
1352
|
+
i("update:modelValue", a), r.onChange?.(a, ...n);
|
|
1388
1353
|
},
|
|
1389
|
-
ref:
|
|
1354
|
+
ref: s
|
|
1390
1355
|
}), e.$slots))));
|
|
1391
1356
|
}
|
|
1392
|
-
}),
|
|
1357
|
+
}), _n = {
|
|
1393
1358
|
clearable: !0,
|
|
1394
1359
|
disabled: void 0,
|
|
1395
1360
|
filterable: void 0,
|
|
@@ -1410,11 +1375,11 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1410
1375
|
}),
|
|
1411
1376
|
showArrow: !0,
|
|
1412
1377
|
showCheckAll: !1
|
|
1413
|
-
},
|
|
1378
|
+
}, vn = /* @__PURE__ */ O({
|
|
1414
1379
|
inheritAttrs: !1,
|
|
1415
1380
|
name: "TSelect",
|
|
1416
1381
|
__name: "select",
|
|
1417
|
-
props: /*@__PURE__*/
|
|
1382
|
+
props: /*@__PURE__*/ j({
|
|
1418
1383
|
adornment: {},
|
|
1419
1384
|
dicCode: {},
|
|
1420
1385
|
modelValue: {},
|
|
@@ -1474,74 +1439,74 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1474
1439
|
onPopupVisibleChange: { type: Function },
|
|
1475
1440
|
onRemove: { type: Function },
|
|
1476
1441
|
onSearch: { type: Function }
|
|
1477
|
-
},
|
|
1442
|
+
}, _n),
|
|
1478
1443
|
setup(e) {
|
|
1479
|
-
let t = e,
|
|
1480
|
-
function
|
|
1481
|
-
|
|
1444
|
+
let t = e, r = Ze, i = k();
|
|
1445
|
+
function a(e) {
|
|
1446
|
+
i.exposed = e ?? {};
|
|
1482
1447
|
}
|
|
1483
|
-
let
|
|
1448
|
+
let o = S(() => {
|
|
1484
1449
|
let e;
|
|
1485
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ?
|
|
1450
|
+
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({
|
|
1486
1451
|
checkAll: !0,
|
|
1487
1452
|
[t.keys?.label ?? "label"]: "全选"
|
|
1488
|
-
}) :
|
|
1489
|
-
}),
|
|
1490
|
-
if (
|
|
1491
|
-
let e =
|
|
1453
|
+
}) : n.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
1454
|
+
}), s = S(() => {
|
|
1455
|
+
if (o.value !== void 0) {
|
|
1456
|
+
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");
|
|
1492
1457
|
if (t.multiple) {
|
|
1493
1458
|
if (Array.isArray(t.modelValue)) {
|
|
1494
|
-
if (r) return t.modelValue.map((e) =>
|
|
1495
|
-
if (i) return t.modelValue.map((e) =>
|
|
1459
|
+
if (r) return t.modelValue.map((e) => _(e) ? e : String(e));
|
|
1460
|
+
if (i) return t.modelValue.map((e) => v(e) ? Number(e) : e);
|
|
1496
1461
|
}
|
|
1497
|
-
} else if (r) return
|
|
1498
|
-
else if (i) return
|
|
1462
|
+
} else if (r) return y(t.modelValue);
|
|
1463
|
+
else if (i) return v(t.modelValue) ? Number(t.modelValue) : t.modelValue;
|
|
1499
1464
|
}
|
|
1500
1465
|
return t.modelValue;
|
|
1501
|
-
}),
|
|
1466
|
+
}), c = S(() => {
|
|
1502
1467
|
let e = {
|
|
1503
1468
|
...t,
|
|
1504
|
-
filterable: t.filterable ??
|
|
1469
|
+
filterable: t.filterable ?? o.value.length > 8
|
|
1505
1470
|
};
|
|
1506
1471
|
return delete e.dicCode, delete e.showCheckAll, delete e.adornment, Object.keys(e).forEach((t) => {
|
|
1507
1472
|
e[t] === void 0 && delete e[t];
|
|
1508
1473
|
}), e;
|
|
1509
|
-
}),
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1474
|
+
}), l = I(0);
|
|
1475
|
+
Se(() => {
|
|
1476
|
+
ot(i.exposed.$el, () => {
|
|
1477
|
+
l.value = i.exposed.$el.offsetWidth;
|
|
1513
1478
|
}, { box: "border-box" });
|
|
1514
1479
|
});
|
|
1515
|
-
let
|
|
1516
|
-
if (
|
|
1480
|
+
let u = S(() => {
|
|
1481
|
+
if (c.value.scroll?.type === "virtual" && o.value.length > (c.value.scroll?.threshold ?? 150)) return "300px";
|
|
1517
1482
|
}), d = S(() => ({
|
|
1518
|
-
...
|
|
1519
|
-
modelValue:
|
|
1483
|
+
...c.value,
|
|
1484
|
+
modelValue: s.value,
|
|
1520
1485
|
onChange: (...e) => {
|
|
1521
|
-
let [n, ...r] = e, i =
|
|
1486
|
+
let [n, ...r] = e, i = _(n) ? "" : n;
|
|
1522
1487
|
t["onUpdate:modelValue"]?.(i), t.onChange?.(i, ...r);
|
|
1523
1488
|
},
|
|
1524
|
-
options:
|
|
1489
|
+
options: o.value,
|
|
1525
1490
|
popupProps: {
|
|
1526
|
-
...
|
|
1491
|
+
...c.value.popupProps ?? {},
|
|
1527
1492
|
overlayInnerStyle: (e, t) => ({
|
|
1528
|
-
...
|
|
1529
|
-
minWidth: `${
|
|
1493
|
+
...u.value === void 0 ? {} : { height: u.value },
|
|
1494
|
+
minWidth: `${l.value}px`,
|
|
1530
1495
|
width: "auto",
|
|
1531
|
-
...typeof
|
|
1496
|
+
...typeof c.value.popupProps?.overlayInnerStyle == "function" ? c.value.popupProps.overlayInnerStyle(e, t) : c.value.popupProps?.overlayInnerStyle ?? {}
|
|
1532
1497
|
})
|
|
1533
1498
|
},
|
|
1534
|
-
ref:
|
|
1535
|
-
})), f =
|
|
1536
|
-
return (t,
|
|
1499
|
+
ref: a
|
|
1500
|
+
})), f = Ke;
|
|
1501
|
+
return (t, n) => e.adornment ? (F(), C(R(A(B(f), t.$attrs, {
|
|
1537
1502
|
...e.adornment,
|
|
1538
|
-
default: () =>
|
|
1539
|
-
})), { key: 0 })) : (
|
|
1503
|
+
default: () => A(B(r), d.value, t.$slots)
|
|
1504
|
+
})), { key: 0 })) : (F(), C(R(A(B(r), M(t.$attrs, d.value), t.$slots)), { key: 1 }));
|
|
1540
1505
|
}
|
|
1541
|
-
}),
|
|
1506
|
+
}), yn = /* @__PURE__ */ O({
|
|
1542
1507
|
inheritAttrs: !1,
|
|
1543
1508
|
__name: "select-sys-user",
|
|
1544
|
-
props: /*@__PURE__*/
|
|
1509
|
+
props: /*@__PURE__*/ j({
|
|
1545
1510
|
modelValue: {},
|
|
1546
1511
|
adornment: {},
|
|
1547
1512
|
autoWidth: { type: Boolean },
|
|
@@ -1580,19 +1545,19 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1580
1545
|
onMouseleave: { type: Function },
|
|
1581
1546
|
onPaste: { type: Function },
|
|
1582
1547
|
onRemove: { type: Function }
|
|
1583
|
-
},
|
|
1548
|
+
}, ce),
|
|
1584
1549
|
emits: ["update:modelValue"],
|
|
1585
1550
|
setup(e, { emit: t }) {
|
|
1586
|
-
let n = e, r = t, i =
|
|
1551
|
+
let n = e, r = t, i = ye("isFormDisabled", S(() => !1)), a = ye("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1587
1552
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1588
1553
|
return {
|
|
1589
1554
|
...n,
|
|
1590
|
-
adornment: e || t ? void 0 : { append: () =>
|
|
1555
|
+
adornment: e || t ? void 0 : { append: () => A($, {
|
|
1591
1556
|
default: "选择用户",
|
|
1592
1557
|
onClick: () => {
|
|
1593
|
-
let e =
|
|
1594
|
-
|
|
1595
|
-
body: () =>
|
|
1558
|
+
let e = I(null);
|
|
1559
|
+
Rt({
|
|
1560
|
+
body: () => A(_e(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
1596
1561
|
max: n.max,
|
|
1597
1562
|
modelValue: n.modelValue,
|
|
1598
1563
|
onVnodeMounted: (t) => {
|
|
@@ -1613,11 +1578,11 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1613
1578
|
variant: "text"
|
|
1614
1579
|
}) }
|
|
1615
1580
|
};
|
|
1616
|
-
}), s =
|
|
1581
|
+
}), s = Oe(), c = k();
|
|
1617
1582
|
function l(e) {
|
|
1618
1583
|
c.exposed = e ?? {};
|
|
1619
1584
|
}
|
|
1620
|
-
let u = S(() =>
|
|
1585
|
+
let u = S(() => M(s, {
|
|
1621
1586
|
...o.value,
|
|
1622
1587
|
inputProps: {
|
|
1623
1588
|
readonly: !0,
|
|
@@ -1629,34 +1594,34 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1629
1594
|
placeholder: "请选择用户",
|
|
1630
1595
|
ref: l
|
|
1631
1596
|
}));
|
|
1632
|
-
return (e, t) => (
|
|
1633
|
-
tag:
|
|
1597
|
+
return (e, t) => (F(), C(B(le), P(ve(u.value)), {
|
|
1598
|
+
tag: H(({ value: e }) => [E(z(B(Gt)(e).value?.userName), 1)]),
|
|
1634
1599
|
_: 1
|
|
1635
1600
|
}, 16));
|
|
1636
1601
|
}
|
|
1637
|
-
}),
|
|
1602
|
+
}), bn = {
|
|
1638
1603
|
checkable: !1,
|
|
1639
1604
|
disabled: void 0,
|
|
1640
1605
|
expandOnClickNode: void 0,
|
|
1641
1606
|
hover: !0,
|
|
1642
|
-
icon: () => (
|
|
1643
|
-
let
|
|
1644
|
-
return
|
|
1607
|
+
icon: () => (t, n) => {
|
|
1608
|
+
let r = "";
|
|
1609
|
+
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($, {
|
|
1645
1610
|
shape: "circle",
|
|
1646
1611
|
size: "small",
|
|
1647
1612
|
variant: "outline"
|
|
1648
|
-
}, { icon: () =>
|
|
1613
|
+
}, { icon: () => A(e, { icon: r }) });
|
|
1649
1614
|
},
|
|
1650
1615
|
label: !0,
|
|
1651
1616
|
lazy: !0,
|
|
1652
1617
|
line: !0,
|
|
1653
1618
|
transition: !0,
|
|
1654
1619
|
valueMode: "all"
|
|
1655
|
-
},
|
|
1620
|
+
}, xn = /* @__PURE__ */ O({
|
|
1656
1621
|
inheritAttrs: !1,
|
|
1657
1622
|
name: "TTree",
|
|
1658
1623
|
__name: "tree",
|
|
1659
|
-
props: /*@__PURE__*/
|
|
1624
|
+
props: /*@__PURE__*/ j({
|
|
1660
1625
|
"onUpdate:actived": { type: Function },
|
|
1661
1626
|
"onUpdate:expanded": { type: Function },
|
|
1662
1627
|
"onUpdate:modelValue": { type: Function },
|
|
@@ -1709,23 +1674,23 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1709
1674
|
onLoad: { type: Function },
|
|
1710
1675
|
onScroll: { type: Function },
|
|
1711
1676
|
treeStore: {}
|
|
1712
|
-
},
|
|
1677
|
+
}, bn),
|
|
1713
1678
|
setup(e, { expose: t }) {
|
|
1714
|
-
let n = e, r =
|
|
1679
|
+
let n = e, r = ke(), i = S(() => {
|
|
1715
1680
|
let e = { ...n };
|
|
1716
1681
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1717
1682
|
e[t] === void 0 && delete e[t];
|
|
1718
1683
|
}), e;
|
|
1719
|
-
}), a =
|
|
1684
|
+
}), a = Qe, o = k();
|
|
1720
1685
|
function s(e) {
|
|
1721
1686
|
o.exposed = e ?? {};
|
|
1722
1687
|
}
|
|
1723
|
-
return t({}), (e, t) => (
|
|
1688
|
+
return t({}), (e, t) => (F(), C(R(A(B(a), M(e.$attrs, {
|
|
1724
1689
|
...i.value,
|
|
1725
1690
|
ref: s
|
|
1726
1691
|
}), e.$slots))));
|
|
1727
1692
|
}
|
|
1728
|
-
}),
|
|
1693
|
+
}), Sn = /* @__PURE__ */ O({
|
|
1729
1694
|
inheritAttrs: !1,
|
|
1730
1695
|
name: "TTreeSelect",
|
|
1731
1696
|
__name: "tree-select",
|
|
@@ -1792,30 +1757,30 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1792
1757
|
onSearch: {}
|
|
1793
1758
|
},
|
|
1794
1759
|
setup(e) {
|
|
1795
|
-
let t = e, n = S(() => typeof t.data == "string" ?
|
|
1760
|
+
let t = e, n = S(() => typeof t.data == "string" ? x(t.data).value : t.data), r = S(() => {
|
|
1796
1761
|
let e = { ...t };
|
|
1797
1762
|
return e.selectInputProps = {
|
|
1798
1763
|
minCollapsedNum: 2,
|
|
1799
1764
|
...e.selectInputProps ?? {}
|
|
1800
1765
|
}, e.treeProps = {
|
|
1801
|
-
...
|
|
1766
|
+
...bn,
|
|
1802
1767
|
checkable: !!t.multiple,
|
|
1803
1768
|
expandOnClickNode: !!t.multiple,
|
|
1804
|
-
icon:
|
|
1769
|
+
icon: bn.icon(),
|
|
1805
1770
|
...e.treeProps ?? {}
|
|
1806
1771
|
}, Object.keys(e).forEach((t) => {
|
|
1807
1772
|
e[t] === void 0 && delete e[t];
|
|
1808
1773
|
}), e;
|
|
1809
|
-
}), i =
|
|
1774
|
+
}), i = $e, a = k();
|
|
1810
1775
|
function o(e) {
|
|
1811
1776
|
a.exposed = e ?? {};
|
|
1812
1777
|
}
|
|
1813
|
-
let s =
|
|
1814
|
-
return
|
|
1815
|
-
|
|
1778
|
+
let s = I(0);
|
|
1779
|
+
return Se(() => {
|
|
1780
|
+
ot(a.exposed.$el, () => {
|
|
1816
1781
|
s.value = a.exposed.$el.offsetWidth;
|
|
1817
1782
|
}, { box: "border-box" });
|
|
1818
|
-
}), (e, t) => (
|
|
1783
|
+
}), (e, t) => (F(), C(R(A(B(i), M(e.$attrs, {
|
|
1819
1784
|
...r.value,
|
|
1820
1785
|
data: n.value,
|
|
1821
1786
|
ref: o,
|
|
@@ -1829,10 +1794,10 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1829
1794
|
}
|
|
1830
1795
|
}), e.$slots))));
|
|
1831
1796
|
}
|
|
1832
|
-
}),
|
|
1797
|
+
}), Cn = ".xlsx,.xls", wn = { class: "flex items-center" }, Tn = {
|
|
1833
1798
|
key: 1,
|
|
1834
1799
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1835
|
-
},
|
|
1800
|
+
}, En = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
1836
1801
|
inheritAttrs: !1,
|
|
1837
1802
|
name: "TUpload",
|
|
1838
1803
|
__name: "upload",
|
|
@@ -1841,7 +1806,7 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1841
1806
|
"onUpdate:modelValue": {},
|
|
1842
1807
|
requestMethod: {},
|
|
1843
1808
|
abridgeName: {},
|
|
1844
|
-
accept: { default:
|
|
1809
|
+
accept: { default: Cn },
|
|
1845
1810
|
allowUploadDuplicateFile: { type: Boolean },
|
|
1846
1811
|
autoUpload: { type: Boolean },
|
|
1847
1812
|
beforeAllFilesUpload: {},
|
|
@@ -1914,7 +1879,7 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1914
1879
|
response: {},
|
|
1915
1880
|
status: "fail"
|
|
1916
1881
|
});
|
|
1917
|
-
}) :
|
|
1882
|
+
}) : Y.Post(n.requestMethod.ossUrl ?? "common/uploadOss", {
|
|
1918
1883
|
biz: n.requestMethod.biz,
|
|
1919
1884
|
file: e.raw
|
|
1920
1885
|
}, { meta: { useFormData: !0 } }).then((e) => {
|
|
@@ -1932,50 +1897,50 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1932
1897
|
});
|
|
1933
1898
|
});
|
|
1934
1899
|
function i() {
|
|
1935
|
-
typeof n.downloadTemplate == "string" ?
|
|
1900
|
+
typeof n.downloadTemplate == "string" ? b(n.downloadTemplate) : n.downloadTemplate.send();
|
|
1936
1901
|
}
|
|
1937
1902
|
let a = S(() => {
|
|
1938
1903
|
let e = { ...n };
|
|
1939
1904
|
return ["image", "image-flow"].includes(e.theme) && (e.accept = e.accept === ".xlsx,.xls" ? "image/*" : e.accept), Object.keys(e).forEach((t) => {
|
|
1940
1905
|
e[t] === void 0 && delete e[t];
|
|
1941
1906
|
}), delete e.downloadTemplate, e.theme === "file" && delete e.tips, e;
|
|
1942
|
-
}), o =
|
|
1907
|
+
}), o = et, s = k();
|
|
1943
1908
|
function c(e) {
|
|
1944
1909
|
s.exposed = e ?? {};
|
|
1945
1910
|
}
|
|
1946
|
-
return t({}), (t, s) => (
|
|
1911
|
+
return t({}), (t, s) => (F(), C(R(A(B(o), M(t.$attrs, {
|
|
1947
1912
|
...a.value,
|
|
1948
1913
|
requestMethod: r.value,
|
|
1949
1914
|
ref: c
|
|
1950
|
-
}, { class: a.value.theme }))), null,
|
|
1915
|
+
}, { class: a.value.theme }))), null, ge({ _: 2 }, [L(Object.keys(t.$slots), (e) => ({
|
|
1951
1916
|
name: e,
|
|
1952
|
-
fn:
|
|
1917
|
+
fn: H((n) => [Te(t.$slots, e, P(ve(n)), void 0, !0)])
|
|
1953
1918
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
1954
1919
|
name: "trigger",
|
|
1955
|
-
fn:
|
|
1956
|
-
D(
|
|
1957
|
-
default:
|
|
1920
|
+
fn: H(({ files: t }) => [he("div", wn, [
|
|
1921
|
+
D(B($), { theme: "primary" }, {
|
|
1922
|
+
default: H(() => [E(z(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
1958
1923
|
_: 2
|
|
1959
1924
|
}, 1024),
|
|
1960
|
-
e.downloadTemplate ? (
|
|
1925
|
+
e.downloadTemplate ? (F(), C(B($), {
|
|
1961
1926
|
key: 0,
|
|
1962
1927
|
theme: "primary",
|
|
1963
1928
|
variant: "outline",
|
|
1964
|
-
onClick:
|
|
1929
|
+
onClick: je(i, ["stop"])
|
|
1965
1930
|
}, {
|
|
1966
|
-
default:
|
|
1931
|
+
default: H(() => [...s[0] ||= [E("下载模板", -1)]]),
|
|
1967
1932
|
_: 1
|
|
1968
1933
|
})) : w("v-if", !0),
|
|
1969
|
-
n.tips ? (
|
|
1934
|
+
n.tips ? (F(), T("span", Tn, z(n.tips), 1)) : w("v-if", !0)
|
|
1970
1935
|
])]),
|
|
1971
1936
|
key: "0"
|
|
1972
1937
|
} : void 0]), 1024));
|
|
1973
1938
|
}
|
|
1974
|
-
}), [["__scopeId", "data-v-730cff70"]]),
|
|
1939
|
+
}), [["__scopeId", "data-v-730cff70"]]), Dn = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
1975
1940
|
inheritAttrs: !1,
|
|
1976
1941
|
name: "TForm",
|
|
1977
1942
|
__name: "form",
|
|
1978
|
-
props: /*@__PURE__*/
|
|
1943
|
+
props: /*@__PURE__*/ j({
|
|
1979
1944
|
autoLabelWidth: { type: Boolean },
|
|
1980
1945
|
data: {},
|
|
1981
1946
|
items: {},
|
|
@@ -1999,27 +1964,27 @@ var Cn = /* @__PURE__ */ O({
|
|
|
1999
1964
|
onReset: { type: Function },
|
|
2000
1965
|
onSubmit: { type: Function },
|
|
2001
1966
|
onValidate: { type: Function }
|
|
2002
|
-
},
|
|
1967
|
+
}, bt),
|
|
2003
1968
|
setup(e, { expose: t }) {
|
|
2004
|
-
let
|
|
1969
|
+
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: s = /* @__PURE__ */ new Map() } = pt, c = k(), l = I(null), u = S(() => r.items.map((e) => {
|
|
2005
1970
|
if (typeof e.__others == "function") {
|
|
2006
1971
|
let t = {
|
|
2007
1972
|
...e,
|
|
2008
1973
|
...e.__others({
|
|
2009
|
-
exposed:
|
|
2010
|
-
formData:
|
|
1974
|
+
exposed: l,
|
|
1975
|
+
formData: r.data
|
|
2011
1976
|
})
|
|
2012
1977
|
};
|
|
2013
1978
|
return delete t.__others, t;
|
|
2014
1979
|
}
|
|
2015
1980
|
return e;
|
|
2016
1981
|
}));
|
|
2017
|
-
function
|
|
2018
|
-
|
|
2019
|
-
if (e.model !== void 0 && !Object.hasOwn(
|
|
1982
|
+
function d() {
|
|
1983
|
+
u.value.forEach((e) => {
|
|
1984
|
+
if (e.model !== void 0 && !Object.hasOwn(r.data, e.model)) {
|
|
2020
1985
|
if (i.has(e.component)) {
|
|
2021
1986
|
let t = i.get(e.component);
|
|
2022
|
-
|
|
1987
|
+
r.data[e.model] = t(e);
|
|
2023
1988
|
return;
|
|
2024
1989
|
}
|
|
2025
1990
|
let t = [
|
|
@@ -2037,39 +2002,39 @@ var Cn = /* @__PURE__ */ O({
|
|
|
2037
2002
|
"yearrange",
|
|
2038
2003
|
"years"
|
|
2039
2004
|
].includes(e.type) || e.component === "TSlider" && e.range === !0;
|
|
2040
|
-
|
|
2005
|
+
r.data[e.model] = t ? [] : e.component === "TCheckbox" ? !1 : e.component === "TSwitch" ? Array.isArray(e.customValue) ? e.customValue[1] : !1 : "";
|
|
2041
2006
|
}
|
|
2042
2007
|
});
|
|
2043
2008
|
}
|
|
2044
|
-
|
|
2009
|
+
V(u, d, {
|
|
2045
2010
|
deep: 2,
|
|
2046
2011
|
immediate: !0
|
|
2047
|
-
}),
|
|
2048
|
-
|
|
2012
|
+
}), V(() => r.data, () => {
|
|
2013
|
+
n.error("TForm: data is changed");
|
|
2049
2014
|
});
|
|
2050
|
-
let
|
|
2051
|
-
TCheckbox:
|
|
2052
|
-
TCheckboxGroup:
|
|
2053
|
-
TCron:
|
|
2054
|
-
TDatePicker:
|
|
2055
|
-
TInput:
|
|
2056
|
-
TInputNumber:
|
|
2057
|
-
TRadioGroup:
|
|
2058
|
-
TRangeInput:
|
|
2059
|
-
TSelect:
|
|
2060
|
-
TSelectSysUser:
|
|
2061
|
-
TSlider:
|
|
2062
|
-
TSwitch:
|
|
2063
|
-
TTagInput:
|
|
2064
|
-
TTextarea:
|
|
2065
|
-
TTree:
|
|
2066
|
-
TTreeSelect:
|
|
2067
|
-
TUpload:
|
|
2015
|
+
let f = /* @__PURE__ */ new Map(), p = {
|
|
2016
|
+
TCheckbox: a,
|
|
2017
|
+
TCheckboxGroup: mn,
|
|
2018
|
+
TCron: hn,
|
|
2019
|
+
TDatePicker: ae,
|
|
2020
|
+
TInput: ie,
|
|
2021
|
+
TInputNumber: oe,
|
|
2022
|
+
TRadioGroup: gn,
|
|
2023
|
+
TRangeInput: se,
|
|
2024
|
+
TSelect: vn,
|
|
2025
|
+
TSelectSysUser: yn,
|
|
2026
|
+
TSlider: ue,
|
|
2027
|
+
TSwitch: de,
|
|
2028
|
+
TTagInput: le,
|
|
2029
|
+
TTextarea: fe,
|
|
2030
|
+
TTree: xn,
|
|
2031
|
+
TTreeSelect: Sn,
|
|
2032
|
+
TUpload: En
|
|
2068
2033
|
};
|
|
2069
|
-
function
|
|
2070
|
-
return typeof e == "string" ?
|
|
2034
|
+
function m(e) {
|
|
2035
|
+
return typeof e == "string" ? s.has(e) ? (f.has(e) || f.set(e, _e(s.get(e))), f.get(e)) : p[e] : ie;
|
|
2071
2036
|
}
|
|
2072
|
-
function
|
|
2037
|
+
function h(e) {
|
|
2073
2038
|
let t = {};
|
|
2074
2039
|
for (let n in e) !n.startsWith("_") && ![
|
|
2075
2040
|
"component",
|
|
@@ -2078,15 +2043,15 @@ var Cn = /* @__PURE__ */ O({
|
|
|
2078
2043
|
].includes(n) && (t[n] = e[n]);
|
|
2079
2044
|
return t;
|
|
2080
2045
|
}
|
|
2081
|
-
function
|
|
2046
|
+
function ee(e) {
|
|
2082
2047
|
let t = {};
|
|
2083
2048
|
for (let n in e) n.startsWith("_") && (t[n.slice(1)] = e[n]);
|
|
2084
|
-
let
|
|
2049
|
+
let n = [
|
|
2085
2050
|
"TCheckbox",
|
|
2086
2051
|
"TCheckboxGroup",
|
|
2087
2052
|
"TRadioGroup"
|
|
2088
|
-
].includes(e.component), i = e.component === "TUpload" ? "请上传文件" : typeof t.label == "string" ?
|
|
2089
|
-
return t.required === !0 && (t.rules === void 0 && (t.rules = []), !t.rules.some((e) => e.required === !0) &&
|
|
2053
|
+
].includes(e.component), i = e.component === "TUpload" ? "请上传文件" : typeof t.label == "string" ? n ? `请选择${t.label}` : `请填写${t.label}` : "必填";
|
|
2054
|
+
return t.required === !0 && (t.rules === void 0 && (t.rules = []), !t.rules.some((e) => e.required === !0) && r.rules?.[e.model ?? ""] === void 0 && t.rules.unshift({
|
|
2090
2055
|
message: i,
|
|
2091
2056
|
required: !0
|
|
2092
2057
|
}, {
|
|
@@ -2097,8 +2062,8 @@ var Cn = /* @__PURE__ */ O({
|
|
|
2097
2062
|
whitespace: !0
|
|
2098
2063
|
}), t;
|
|
2099
2064
|
}
|
|
2100
|
-
let
|
|
2101
|
-
let e = { ...
|
|
2065
|
+
let te = S(() => {
|
|
2066
|
+
let e = { ...r };
|
|
2102
2067
|
if (e.rules !== void 0) {
|
|
2103
2068
|
let t = {};
|
|
2104
2069
|
Object.keys(e.rules).forEach((n) => {
|
|
@@ -2115,9 +2080,9 @@ var Cn = /* @__PURE__ */ O({
|
|
|
2115
2080
|
return delete e.items, delete e.msgErrorWhenValidate, delete e.autoLabelWidth, Object.keys(e).forEach((t) => {
|
|
2116
2081
|
e[t] === void 0 && delete e[t];
|
|
2117
2082
|
}), e;
|
|
2118
|
-
}),
|
|
2119
|
-
let e = { ...
|
|
2120
|
-
return
|
|
2083
|
+
}), g = He, v = () => {
|
|
2084
|
+
let e = { ...r.data };
|
|
2085
|
+
return u.value.forEach((t) => {
|
|
2121
2086
|
t.show === !1 && delete e[t.model];
|
|
2122
2087
|
}), e;
|
|
2123
2088
|
};
|
|
@@ -2126,11 +2091,11 @@ var Cn = /* @__PURE__ */ O({
|
|
|
2126
2091
|
let t = e;
|
|
2127
2092
|
if (!t.validate._alreadyReplace) {
|
|
2128
2093
|
let e = t.validate;
|
|
2129
|
-
t.validate = (...t) => new Promise((
|
|
2094
|
+
t.validate = (...t) => new Promise((n, i) => {
|
|
2130
2095
|
e(...t).then((e) => {
|
|
2131
|
-
e === !0 ?
|
|
2096
|
+
e === !0 ? n(v()) : (r.msgErrorWhenValidate && Object.keys(e).forEach((t) => {
|
|
2132
2097
|
e[t].forEach((e) => {
|
|
2133
|
-
e.result === !1 &&
|
|
2098
|
+
e.result === !1 && o.error(e.message);
|
|
2134
2099
|
});
|
|
2135
2100
|
}), i(e));
|
|
2136
2101
|
});
|
|
@@ -2140,18 +2105,18 @@ var Cn = /* @__PURE__ */ O({
|
|
|
2140
2105
|
let e = t.validateOnly;
|
|
2141
2106
|
t.validateOnly = (...t) => new Promise((n, r) => {
|
|
2142
2107
|
e(...t).then((e) => {
|
|
2143
|
-
e === !0 ? n(
|
|
2108
|
+
e === !0 ? n(v()) : r(e);
|
|
2144
2109
|
});
|
|
2145
2110
|
}), t.validateOnly._alreadyReplace = !0;
|
|
2146
2111
|
}
|
|
2147
2112
|
if (!t.clearValidate._alreadyReplace) {
|
|
2148
2113
|
let e = t.clearValidate;
|
|
2149
2114
|
t.clearValidate = (...t) => {
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2115
|
+
N(() => {
|
|
2116
|
+
N(() => {
|
|
2117
|
+
N(() => {
|
|
2118
|
+
N(() => {
|
|
2119
|
+
N(() => {
|
|
2155
2120
|
e(...t);
|
|
2156
2121
|
});
|
|
2157
2122
|
});
|
|
@@ -2160,34 +2125,34 @@ var Cn = /* @__PURE__ */ O({
|
|
|
2160
2125
|
});
|
|
2161
2126
|
}, t.clearValidate._alreadyReplace = !0;
|
|
2162
2127
|
}
|
|
2163
|
-
t.getFormData =
|
|
2164
|
-
let { ignoreKeys:
|
|
2165
|
-
Object.keys(
|
|
2166
|
-
|
|
2167
|
-
}), Object.assign(
|
|
2128
|
+
t.getFormData = v, t.setFormData = (e, t) => {
|
|
2129
|
+
let { ignoreKeys: n = [], isNotFalsy: i = !0, numberToStringKeys: a = [], override: o = {}, splitToArrKeys: s = [] } = t ?? {};
|
|
2130
|
+
Object.keys(r.data).forEach((t) => {
|
|
2131
|
+
n.includes(t) || (s.includes(t) ? r.data[t] = typeof e[t] == "string" ? e[t].split(",").filter(Boolean) : [] : i && _(e[t]) || (r.data[t] = e[t]), a.includes(t) && typeof r.data[t] == "number" && (r.data[t] = String(r.data[t])));
|
|
2132
|
+
}), Object.assign(r.data, o);
|
|
2168
2133
|
};
|
|
2169
2134
|
}
|
|
2170
2135
|
let t = e ?? {};
|
|
2171
|
-
|
|
2136
|
+
l.value = t, c.exposed = t;
|
|
2172
2137
|
}
|
|
2173
|
-
let b =
|
|
2174
|
-
|
|
2175
|
-
b.value =
|
|
2176
|
-
|
|
2138
|
+
let b = De();
|
|
2139
|
+
Se(() => {
|
|
2140
|
+
b.value = c.exposed.$el.getElementsByClassName("t-form__label"), x(), at(c.exposed.$el, () => {
|
|
2141
|
+
x();
|
|
2177
2142
|
}, {
|
|
2178
2143
|
attributeFilter: ["class"],
|
|
2179
2144
|
characterData: !0,
|
|
2180
2145
|
childList: !0,
|
|
2181
2146
|
subtree: !0
|
|
2182
|
-
}),
|
|
2183
|
-
|
|
2147
|
+
}), ot(c.exposed.$el, () => {
|
|
2148
|
+
x();
|
|
2184
2149
|
});
|
|
2185
2150
|
});
|
|
2186
|
-
function
|
|
2151
|
+
function x() {
|
|
2187
2152
|
let e = [...b.value];
|
|
2188
2153
|
if (e.forEach((e) => {
|
|
2189
2154
|
e.style.minWidth = "auto";
|
|
2190
|
-
}),
|
|
2155
|
+
}), r.labelAlign === "top" || !r.autoLabelWidth) return;
|
|
2191
2156
|
let t = 0;
|
|
2192
2157
|
e.forEach((e) => {
|
|
2193
2158
|
t = Math.max(t, e.offsetWidth);
|
|
@@ -2195,29 +2160,29 @@ var Cn = /* @__PURE__ */ O({
|
|
|
2195
2160
|
e.style.minWidth = `${t}px`;
|
|
2196
2161
|
});
|
|
2197
2162
|
}
|
|
2198
|
-
return
|
|
2199
|
-
...
|
|
2163
|
+
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, {
|
|
2164
|
+
...te.value,
|
|
2200
2165
|
ref: y
|
|
2201
2166
|
}), { "label-width": "fit-content" }), {
|
|
2202
|
-
default:
|
|
2203
|
-
default:
|
|
2167
|
+
default: H(() => [(F(!0), T(pe, null, L(u.value.filter((e) => e.show !== !1), (n) => (F(), C(B(Ue), M({ key: n.model ?? n.slot }, { ref_for: !0 }, M({ ...ee(n) }, { class: { no_label_item: B(_)(n._label) } }), { name: n.model }), {
|
|
2168
|
+
default: H(() => [n.slot ? Te(t.$slots, n.slot, {}, void 0, !0, 0) : (F(), C(R(m(n.component)), M({
|
|
2204
2169
|
key: 1,
|
|
2205
2170
|
modelValue: e.data[n.model],
|
|
2206
2171
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
2207
|
-
}, { ref_for: !0 },
|
|
2172
|
+
}, { ref_for: !0 }, h(n)), null, 16, ["modelValue", "onUpdate:modelValue"]))]),
|
|
2208
2173
|
_: 2
|
|
2209
2174
|
}, 1040, ["name"]))), 128))]),
|
|
2210
2175
|
_: 3
|
|
2211
2176
|
}, 16))], 2112));
|
|
2212
2177
|
}
|
|
2213
|
-
}), [["__scopeId", "data-v-b3c2c148"]]),
|
|
2178
|
+
}), [["__scopeId", "data-v-b3c2c148"]]), On = /* @__PURE__ */ O({
|
|
2214
2179
|
__name: "ResetPwd",
|
|
2215
2180
|
props: { showFooter: {
|
|
2216
2181
|
type: Boolean,
|
|
2217
2182
|
default: !0
|
|
2218
2183
|
} },
|
|
2219
2184
|
setup(e, { expose: t }) {
|
|
2220
|
-
let n =
|
|
2185
|
+
let n = U(), r = [
|
|
2221
2186
|
{
|
|
2222
2187
|
_label: "旧密码",
|
|
2223
2188
|
_required: !0,
|
|
@@ -2229,8 +2194,8 @@ var Cn = /* @__PURE__ */ O({
|
|
|
2229
2194
|
_label: "新密码",
|
|
2230
2195
|
_required: !0,
|
|
2231
2196
|
_rules: [{
|
|
2232
|
-
message:
|
|
2233
|
-
pattern:
|
|
2197
|
+
message: g,
|
|
2198
|
+
pattern: te
|
|
2234
2199
|
}],
|
|
2235
2200
|
component: "TInput",
|
|
2236
2201
|
model: "newPassword",
|
|
@@ -2248,13 +2213,13 @@ var Cn = /* @__PURE__ */ O({
|
|
|
2248
2213
|
type: "password"
|
|
2249
2214
|
},
|
|
2250
2215
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
2251
|
-
], i =
|
|
2216
|
+
], i = Ae("form");
|
|
2252
2217
|
function a() {
|
|
2253
|
-
|
|
2218
|
+
G().close(n.name);
|
|
2254
2219
|
}
|
|
2255
2220
|
async function o() {
|
|
2256
2221
|
let e = await i.value.validate();
|
|
2257
|
-
await
|
|
2222
|
+
await Y.Put("system/user/profile/updatePwd", void 0, {
|
|
2258
2223
|
meta: {
|
|
2259
2224
|
useLoading: "保存中...",
|
|
2260
2225
|
useSuccessMsg: !0
|
|
@@ -2263,23 +2228,23 @@ var Cn = /* @__PURE__ */ O({
|
|
|
2263
2228
|
newPassword: e.newPassword,
|
|
2264
2229
|
oldPassword: e.oldPassword
|
|
2265
2230
|
}
|
|
2266
|
-
}),
|
|
2231
|
+
}), Jt().logout();
|
|
2267
2232
|
}
|
|
2268
|
-
return t({ handleSubmit: o }), (e, t) => (
|
|
2233
|
+
return t({ handleSubmit: o }), (e, t) => (F(), C(B(Dn), {
|
|
2269
2234
|
ref: "form",
|
|
2270
2235
|
items: r,
|
|
2271
2236
|
"label-align": "right",
|
|
2272
2237
|
layout: "vertical"
|
|
2273
2238
|
}, {
|
|
2274
|
-
footer:
|
|
2275
|
-
default:
|
|
2239
|
+
footer: H(() => [D(B($), { onClick: o }, {
|
|
2240
|
+
default: H(() => [...t[0] ||= [E("保存", -1)]]),
|
|
2276
2241
|
_: 1
|
|
2277
|
-
}), D(
|
|
2242
|
+
}), D(B($), {
|
|
2278
2243
|
class: "ml-4!",
|
|
2279
2244
|
theme: "default",
|
|
2280
2245
|
onClick: a
|
|
2281
2246
|
}, {
|
|
2282
|
-
default:
|
|
2247
|
+
default: H(() => [...t[1] ||= [E("关闭", -1)]]),
|
|
2283
2248
|
_: 1
|
|
2284
2249
|
})]),
|
|
2285
2250
|
_: 1
|
|
@@ -2288,34 +2253,34 @@ var Cn = /* @__PURE__ */ O({
|
|
|
2288
2253
|
});
|
|
2289
2254
|
//#endregion
|
|
2290
2255
|
//#region ../../packages/dlzn-ui/store/modules/user.ts
|
|
2291
|
-
function
|
|
2292
|
-
return
|
|
2256
|
+
function kn() {
|
|
2257
|
+
return Y.Get("getInfo", { meta: {
|
|
2293
2258
|
useFailMsg: "获取用户信息失败",
|
|
2294
2259
|
useLoading: "正在获取用户信息..."
|
|
2295
2260
|
} });
|
|
2296
2261
|
}
|
|
2297
|
-
var
|
|
2262
|
+
var An = {
|
|
2298
2263
|
admin: !1,
|
|
2299
2264
|
dept: { deptName: "" },
|
|
2300
2265
|
needChangePwd: 0,
|
|
2301
2266
|
nickName: "",
|
|
2302
2267
|
userId: "",
|
|
2303
2268
|
userName: ""
|
|
2304
|
-
}, Q =
|
|
2305
|
-
let e =
|
|
2269
|
+
}, Q = lt("user", () => {
|
|
2270
|
+
let e = I(st(An)), t = I([]), n = I([]);
|
|
2306
2271
|
function r() {
|
|
2307
|
-
e.value =
|
|
2272
|
+
e.value = st(An), t.value = [], n.value = [];
|
|
2308
2273
|
}
|
|
2309
|
-
let i = S(() => e.value.admin), a =
|
|
2274
|
+
let i = S(() => e.value.admin), a = I("");
|
|
2310
2275
|
async function o(r = !0) {
|
|
2311
|
-
let i = await
|
|
2312
|
-
e.value = i.user, a.value !== e.value.userId &&
|
|
2276
|
+
let i = await kn();
|
|
2277
|
+
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 At().getRouters();
|
|
2313
2278
|
}
|
|
2314
|
-
|
|
2315
|
-
e === 1 && VITE_FORCE_PWD_CHANGE &&
|
|
2316
|
-
let e =
|
|
2317
|
-
|
|
2318
|
-
body: () =>
|
|
2279
|
+
V(() => e.value.needChangePwd, (e) => {
|
|
2280
|
+
e === 1 && VITE_FORCE_PWD_CHANGE && N(() => {
|
|
2281
|
+
let e = I(null);
|
|
2282
|
+
Rt({
|
|
2283
|
+
body: () => A(On, {
|
|
2319
2284
|
labelAlign: "top",
|
|
2320
2285
|
ref: e,
|
|
2321
2286
|
showFooter: !1
|
|
@@ -2346,11 +2311,11 @@ var zn = {
|
|
|
2346
2311
|
roles: n,
|
|
2347
2312
|
userInfo: e
|
|
2348
2313
|
};
|
|
2349
|
-
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/
|
|
2314
|
+
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
2350
2315
|
inheritAttrs: !1,
|
|
2351
2316
|
name: "TButton",
|
|
2352
2317
|
__name: "button",
|
|
2353
|
-
props: /*@__PURE__*/
|
|
2318
|
+
props: /*@__PURE__*/ j({
|
|
2354
2319
|
autoIcon: { type: Boolean },
|
|
2355
2320
|
autoLoading: { type: Boolean },
|
|
2356
2321
|
autoTheme: { type: Boolean },
|
|
@@ -2387,11 +2352,11 @@ var zn = {
|
|
|
2387
2352
|
Object,
|
|
2388
2353
|
Array
|
|
2389
2354
|
] }
|
|
2390
|
-
},
|
|
2391
|
-
setup(
|
|
2392
|
-
let
|
|
2393
|
-
function
|
|
2394
|
-
if (!
|
|
2355
|
+
}, yt),
|
|
2356
|
+
setup(n) {
|
|
2357
|
+
let r = n, a = I("");
|
|
2358
|
+
function o() {
|
|
2359
|
+
if (!r.autoTheme || a.value.trim() === "") return {};
|
|
2395
2360
|
let e = /* @__PURE__ */ new Map([
|
|
2396
2361
|
[{ theme: "danger" }, ["删除", "清除"]],
|
|
2397
2362
|
[{
|
|
@@ -2404,42 +2369,42 @@ var zn = {
|
|
|
2404
2369
|
"下载"
|
|
2405
2370
|
]],
|
|
2406
2371
|
[{ theme: "warning" }, ["预警"]]
|
|
2407
|
-
]),
|
|
2408
|
-
for (let [
|
|
2409
|
-
|
|
2372
|
+
]), t = {};
|
|
2373
|
+
for (let [n, r] of e) if (r.some((e) => a.value.includes(e))) {
|
|
2374
|
+
t = n;
|
|
2410
2375
|
break;
|
|
2411
2376
|
}
|
|
2412
|
-
return
|
|
2377
|
+
return t;
|
|
2413
2378
|
}
|
|
2414
|
-
let
|
|
2415
|
-
|
|
2379
|
+
let s = I(!1), c = i.isLoading, l = I(null), { focused: u } = it(l), d, f;
|
|
2380
|
+
V(c, (e) => {
|
|
2416
2381
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2417
|
-
|
|
2382
|
+
s.value = u.value, clearTimeout(d), d = void 0;
|
|
2418
2383
|
}, 150)) : d === void 0 ? f = setTimeout(() => {
|
|
2419
|
-
|
|
2420
|
-
}, 150) : (clearTimeout(d), d = void 0,
|
|
2421
|
-
}, { immediate: !0 }),
|
|
2422
|
-
e &&
|
|
2384
|
+
s.value = !1;
|
|
2385
|
+
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
2386
|
+
}, { immediate: !0 }), V(u, (e) => {
|
|
2387
|
+
e && c.value && (s.value = !0);
|
|
2423
2388
|
});
|
|
2424
|
-
let p = S(() =>
|
|
2389
|
+
let p = S(() => r.loading === void 0 ? r.autoLoading ? s.value : !1 : r.loading), m = S(() => {
|
|
2425
2390
|
let e = {
|
|
2426
|
-
...
|
|
2427
|
-
...
|
|
2391
|
+
...r,
|
|
2392
|
+
...o(),
|
|
2428
2393
|
loading: p.value
|
|
2429
2394
|
};
|
|
2430
2395
|
return Object.keys(e).forEach((t) => {
|
|
2431
2396
|
e[t] === void 0 && delete e[t];
|
|
2432
2397
|
}), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
|
|
2433
|
-
}), h =
|
|
2434
|
-
function
|
|
2398
|
+
}), h = Pe, ee = k();
|
|
2399
|
+
function te(e) {
|
|
2435
2400
|
let t = e ?? {};
|
|
2436
|
-
ee.exposed = t,
|
|
2401
|
+
ee.exposed = t, l.value = t.$el;
|
|
2437
2402
|
}
|
|
2438
|
-
function
|
|
2439
|
-
|
|
2403
|
+
function g() {
|
|
2404
|
+
a.value = l.value?.textContent ?? "";
|
|
2440
2405
|
}
|
|
2441
|
-
let
|
|
2442
|
-
if (!
|
|
2406
|
+
let _ = S(() => {
|
|
2407
|
+
if (!r.autoIcon || a.value.trim() === "") return;
|
|
2443
2408
|
let e = {
|
|
2444
2409
|
"mdi:plus": [
|
|
2445
2410
|
"新增",
|
|
@@ -2488,76 +2453,76 @@ var zn = {
|
|
|
2488
2453
|
"mdi:file-outline": ["文件"],
|
|
2489
2454
|
"bi:journal-text": ["日志"],
|
|
2490
2455
|
"material-symbols:security": ["权限"]
|
|
2491
|
-
},
|
|
2492
|
-
for (let [
|
|
2493
|
-
|
|
2456
|
+
}, t;
|
|
2457
|
+
for (let [n, r] of Object.entries(e)) if (r.some((e) => a.value.includes(e))) {
|
|
2458
|
+
t = n;
|
|
2494
2459
|
break;
|
|
2495
2460
|
}
|
|
2496
|
-
if (
|
|
2497
|
-
}),
|
|
2461
|
+
if (t !== void 0) return t;
|
|
2462
|
+
}), v = Oe(), y = S(() => M(v, {
|
|
2498
2463
|
...m.value,
|
|
2499
|
-
ref:
|
|
2464
|
+
ref: te
|
|
2500
2465
|
}, { class: "flex-shrink-0" })), b = S(() => {
|
|
2501
|
-
if (
|
|
2502
|
-
...
|
|
2466
|
+
if (r.popconfirm) return {
|
|
2467
|
+
...r.popconfirm,
|
|
2503
2468
|
onVisibleChange: (...e) => {
|
|
2504
|
-
|
|
2469
|
+
r.popconfirm?.onVisibleChange?.(...e), !e[0] && (document.activeElement?.classList.contains("t-popconfirm__confirm") || document.activeElement?.classList.contains("t-popconfirm__cancel")) && (u.value = !0);
|
|
2505
2470
|
}
|
|
2506
2471
|
};
|
|
2507
2472
|
});
|
|
2508
|
-
return (
|
|
2509
|
-
default:
|
|
2510
|
-
onVnodeMounted:
|
|
2511
|
-
onVnodeUpdated:
|
|
2512
|
-
},
|
|
2473
|
+
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)), {
|
|
2474
|
+
default: H(() => [(F(), C(R(A(B(h), y.value)), {
|
|
2475
|
+
onVnodeMounted: g,
|
|
2476
|
+
onVnodeUpdated: g
|
|
2477
|
+
}, ge({ _: 2 }, [n.icon || _.value ? {
|
|
2513
2478
|
name: "icon",
|
|
2514
|
-
fn:
|
|
2479
|
+
fn: H(() => [D(B(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
|
|
2515
2480
|
key: "0"
|
|
2516
|
-
} : void 0,
|
|
2481
|
+
} : void 0, L(Object.keys(r.$slots), (e) => ({
|
|
2517
2482
|
name: e,
|
|
2518
|
-
fn:
|
|
2483
|
+
fn: H((t) => [Te(r.$slots, e, P(ve(t)), void 0, !0)])
|
|
2519
2484
|
}))]), 1536))]),
|
|
2520
2485
|
_: 3
|
|
2521
|
-
}, 16)) : (
|
|
2486
|
+
}, 16)) : (F(), C(R(A(B(h), y.value)), {
|
|
2522
2487
|
key: 1,
|
|
2523
|
-
onVnodeMounted:
|
|
2524
|
-
onVnodeUpdated:
|
|
2525
|
-
},
|
|
2488
|
+
onVnodeMounted: g,
|
|
2489
|
+
onVnodeUpdated: g
|
|
2490
|
+
}, ge({ _: 2 }, [n.icon || _.value ? {
|
|
2526
2491
|
name: "icon",
|
|
2527
|
-
fn:
|
|
2492
|
+
fn: H(() => [D(B(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
|
|
2528
2493
|
key: "0"
|
|
2529
|
-
} : void 0,
|
|
2494
|
+
} : void 0, L(Object.keys(r.$slots), (e) => ({
|
|
2530
2495
|
name: e,
|
|
2531
|
-
fn:
|
|
2496
|
+
fn: H((t) => [Te(r.$slots, e, P(ve(t)), void 0, !0)])
|
|
2532
2497
|
}))]), 1536))], 64)) : w("v-if", !0);
|
|
2533
2498
|
}
|
|
2534
|
-
}), [["__scopeId", "data-v-41e01020"]]),
|
|
2499
|
+
}), [["__scopeId", "data-v-41e01020"]]), jn = /* @__PURE__ */ O({
|
|
2535
2500
|
name: "TProvider",
|
|
2536
2501
|
__name: "Provider",
|
|
2537
|
-
setup(
|
|
2538
|
-
let
|
|
2539
|
-
expandIcon: (
|
|
2502
|
+
setup(t) {
|
|
2503
|
+
let n = { table: {
|
|
2504
|
+
expandIcon: (t) => t($, {
|
|
2540
2505
|
shape: "circle",
|
|
2541
2506
|
variant: "text"
|
|
2542
|
-
}, { icon: () => e
|
|
2543
|
-
sortIcon: (
|
|
2507
|
+
}, { icon: () => t(e, { icon: "ph:caret-right-bold" }) }),
|
|
2508
|
+
sortIcon: (t) => t($, {
|
|
2544
2509
|
shape: "circle",
|
|
2545
2510
|
size: "small",
|
|
2546
2511
|
variant: "text"
|
|
2547
|
-
}, { icon: () => e
|
|
2548
|
-
treeExpandAndFoldIcon: (
|
|
2512
|
+
}, { icon: () => t(e, { icon: "heroicons-solid:sort-descending" }) }),
|
|
2513
|
+
treeExpandAndFoldIcon: (t, { type: n }) => t($, {
|
|
2549
2514
|
shape: "circle",
|
|
2550
2515
|
variant: "text"
|
|
2551
|
-
}, { icon: () => e
|
|
2516
|
+
}, { icon: () => t(e, { icon: `ph:caret-${n === "expand" ? "right" : "down"}-bold` }) })
|
|
2552
2517
|
} };
|
|
2553
|
-
return (e,
|
|
2518
|
+
return (e, t) => (F(), C(B(tt), {
|
|
2554
2519
|
"empty-values": [""],
|
|
2555
|
-
locale:
|
|
2520
|
+
locale: B(vt),
|
|
2556
2521
|
"value-on-clear": "",
|
|
2557
2522
|
"z-index": 5500
|
|
2558
2523
|
}, {
|
|
2559
|
-
default:
|
|
2560
|
-
default:
|
|
2524
|
+
default: H(() => [D(B(Ie), { "global-config": n }, {
|
|
2525
|
+
default: H(() => [Te(e.$slots, "default")]),
|
|
2561
2526
|
_: 3
|
|
2562
2527
|
})]),
|
|
2563
2528
|
_: 3
|
|
@@ -2565,4 +2530,4 @@ var zn = {
|
|
|
2565
2530
|
}
|
|
2566
2531
|
});
|
|
2567
2532
|
//#endregion
|
|
2568
|
-
export {
|
|
2533
|
+
export { Xt as A, At as B, an as C, q as D, tn as E, Rt as F, W as H, Lt as I, Nt as L, Ut as M, Wt as N, en as O, Gt as P, Mt as R, Y as S, J as T, bt as U, G as V, yt as W, mn as _, On as a, Z as b, Cn as c, bn as d, yn as f, hn as g, gn as h, Q as i, Jt as j, Zt as k, Sn as l, _n as m, $ as n, Dn as o, vn as p, kn as r, En as s, jn as t, xn as u, dn as v, on as w, pn as x, fn as y, St as z };
|