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