dlzn-ui 2.0.93 → 2.0.95
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/provider-Bh_VYGit.css +2 -0
- package/assets/{css-CZQicoxs.css → scrollbar-To1tAaeV.css} +1 -1
- package/chunks/{AssignUser-Bjm-tcxL.mjs → AssignUser-pMMpNO27.mjs} +14 -14
- package/chunks/{BasicInfo-BWfSZ_HQ.mjs → BasicInfo-dMwF0ziF.mjs} +1 -1
- package/chunks/{ColumnInfo-sxd5S5fj.mjs → ColumnInfo-0WJQWMbG.mjs} +2 -2
- package/chunks/{Common-DtHjLp8S.mjs → Common-DE7thNTn.mjs} +7 -8
- package/chunks/{Day-DXmvbaA-.mjs → Day-Dj8dheNY.mjs} +12 -13
- package/chunks/{DictTypeDetail-DExEs2pD.mjs → DictTypeDetail-BIVPm9kz.mjs} +10 -10
- package/chunks/{GenInfo-zHlSR8Xi.mjs → GenInfo-CVmGFfUf.mjs} +1 -1
- package/chunks/{Hour-og6bObii.mjs → Hour-fmUnJG03.mjs} +1 -1
- package/chunks/{Import-CB1QuML4.mjs → Import-DWlcNGih.mjs} +2 -2
- package/chunks/{Index-CJCfI-r7.mjs → Index--FTIsWxL.mjs} +5 -6
- package/chunks/{Index-Djtx-Hvr.mjs → Index-BU7G9MXR.mjs} +1 -1
- package/chunks/{Index-kmSafJeE.mjs → Index-BloAp662.mjs} +1 -1
- package/chunks/{Index-B71kfXN0.mjs → Index-C97pCXnX.mjs} +2 -2
- package/chunks/{Index-DPsmE1uN.mjs → Index-CFtIabpU.mjs} +1 -1
- package/chunks/{Index-DJa6TvxZ.mjs → Index-CPJZlyGD.mjs} +2 -2
- package/chunks/{Index-Cm8ZetsA.mjs → Index-CSiH5LGc.mjs} +2 -2
- package/chunks/{Index-CN4X_4BO.mjs → Index-CiiLzD8p.mjs} +2 -2
- package/chunks/Index-D3ymPHcw.mjs +46 -0
- package/chunks/Index-D447iwxd.mjs +128 -0
- package/chunks/{Index-iSZ25oa5.mjs → Index-D4ys8Z_X.mjs} +1 -1
- package/chunks/{Index-DNWEV6qX.mjs → Index-DGf3QrKq.mjs} +1 -1
- package/chunks/{Index-cb1Euao4.mjs → Index-Dp_dwqU5.mjs} +1 -1
- package/chunks/{Index-D0Rcw6_y.mjs → Index-GJJawnRZ.mjs} +1 -1
- package/chunks/{Index-DMar4Ak5.mjs → Index-nLSG5esH.mjs} +2 -2
- package/chunks/{Index-CiXTiCPv.mjs → Index-rcLOiKUG.mjs} +5 -5
- package/chunks/{Index-Cl3E8sdW.mjs → Index-vepbJg-2.mjs} +1 -1
- package/chunks/{IndexItem-DabXJCE1.mjs → IndexItem-D5Ngo4ux.mjs} +7 -7
- package/chunks/{Log-Bdl4dLs2.mjs → Log-DiPyKgVW.mjs} +12 -12
- package/chunks/{LoginBg-CMSDCnPF.mjs → LoginBg-DK-FxB2n.mjs} +1 -1
- package/chunks/{Minute-BNXg2byx.mjs → Minute-D_mesp23.mjs} +1 -1
- package/chunks/{Month-BJSN_RQi.mjs → Month-BEnKEFGO.mjs} +1 -1
- package/chunks/{Preview-B0gJ53SG.mjs → Preview-DwWeDzEq.mjs} +1 -1
- package/chunks/{Second-CwPCm_aA.mjs → Second-DmBfCWw4.mjs} +1 -1
- package/chunks/{SelectDept-sNeYNdzH.mjs → SelectDept-DqkpUrLX.mjs} +1 -2
- package/chunks/{SelectMenu-27KCnGVX.mjs → SelectMenu-BG2aO4dr.mjs} +1 -2
- package/chunks/{SelectUser-Cx0YM3ds.mjs → SelectUser-UL3WHxqY.mjs} +2 -2
- package/chunks/{UserInfo-Bb1tmRjV.mjs → UserInfo-CJ1LUaSs.mjs} +9 -9
- package/chunks/{Wrapper-D6hdJKG5.mjs → Wrapper-Dd5a1AeJ.mjs} +1 -1
- package/chunks/{app-BBa29b74.mjs → app-Q4BryaGi.mjs} +1 -1
- package/chunks/{custom-page-list-Cu3uysuq.mjs → custom-page-list-BfwM6BZj.mjs} +4 -4
- package/chunks/{custom-page-table-4RY6Lrxk.mjs → custom-page-table-DiSUr7km.mjs} +2 -2
- package/chunks/{job-BCL4Boa7.mjs → job-CF59695q.mjs} +33 -33
- package/chunks/{overview-CZjS_5ws.mjs → overview-C_YMhM9g.mjs} +1 -1
- package/chunks/{page-list-Dyusjn67.mjs → page-list-Da4eL_wk.mjs} +3 -3
- package/chunks/{page-query-10dZRPbn.mjs → page-query-jPlr6ld9.mjs} +1 -1
- package/chunks/{page-table-D33Gigz2.mjs → page-table-BX-Inp9P.mjs} +24 -25
- package/chunks/{pagination-voqexobJ.mjs → pagination-BAsYYvcR.mjs} +1 -1
- package/chunks/{provider-BipQBIc8.mjs → provider-ofhdEHHM.mjs} +1287 -565
- package/chunks/{scrollbar-DR0tchN3.mjs → scrollbar-CFNjWbWr.mjs} +1 -2
- package/chunks/{table-CR8g_CQd.mjs → table-CEHUFrgD.mjs} +7 -8
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/audio-play/index.d.ts +2 -0
- package/components/audio-play/src/audio-play.d.ts +7 -0
- package/components/audio-play/src/audio-play.vue.d.ts +6 -0
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/cron/src/cron.vue.d.ts +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-list/src/custom-page-list.vue.d.ts +3 -3
- 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/date-picker/src/date-picker.vue.d.ts +1 -1
- package/components/dialog/index.mjs +1 -1
- package/components/dialog/src/dialog.mjs +1 -1
- package/components/dialog/src/dialog.vue.d.ts +10 -10
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/form/src/form.vue.d.ts +1 -1
- package/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
- package/components/index.mjs +26 -32
- package/components/input/src/input.vue.d.ts +1 -1
- package/components/input-number/index.mjs +1 -1
- package/components/input-number/src/input-number.mjs +1 -1
- package/components/input-number/src/input-number.vue.d.ts +2 -2
- package/components/link/src/link.vue.d.ts +1 -1
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/OptionLabel/Index.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.d.ts +77 -77
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-list/src/page-list.vue.d.ts +15 -15
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-query/src/page-query.vue.d.ts +4 -4
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/page-table/src/page-table.vue.d.ts +16 -16
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/popconfirm/src/popconfirm.vue.d.ts +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/range-input/index.mjs +1 -1
- package/components/range-input/src/range-input.mjs +1 -1
- package/components/range-input/src/range-input.vue.d.ts +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/src/select.vue.d.ts +2 -2
- 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/tab-panel/src/tab-panel.vue.d.ts +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/table/src/table.vue.d.ts +3 -3
- package/components/textarea/src/textarea.vue.d.ts +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree/src/tree.vue.d.ts +2 -2
- 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/useDicOptions/index.mjs +1 -1
- package/hooks/useLabel/index.mjs +1 -16
- package/hooks/useList/index.mjs +1 -28
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +8 -9
- package/layout/Home1.mjs +15 -8
- package/layout/Login.mjs +8 -8
- 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/LoginBg.mjs +1 -1
- package/layout/profile/Index.mjs +9 -10
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/layout/vueBits/Plasma.vue.d.ts +1 -1
- package/main.mjs +3 -3
- package/package.json +2 -1
- 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/captcha/captcha.mjs +15 -17
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/directive/index.mjs +7 -7
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/Wrapper.mjs +1 -1
- package/plugins/tableRenders/cell/AudioPlay/Index.mjs +1 -0
- package/plugins/tableRenders/cell/AudioPlay/Index.vue.d.ts +6 -0
- package/plugins/tableRenders/cell/AudioPlay/index.d.ts +2 -0
- package/plugins/tableRenders/cell/AudioPlay/index2.mjs +0 -0
- package/plugins/tableRenders/cell/Avatar/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/FormatDate/Index.mjs +1 -1
- package/plugins/tableRenders/cell/FormatNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Icon/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Image/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ImageViewer/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ImageViewer/Index.vue.d.ts +2 -2
- package/plugins/tableRenders/cell/Input/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/InputNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/InputNumber/Index.vue.d.ts +2 -2
- package/plugins/tableRenders/cell/Link/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/OptionLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.vue.d.ts +2 -2
- package/plugins/tableRenders/cell/TypographyText/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyTextLink/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/index.d.ts +2 -0
- package/plugins/tableRenders/cell/index.mjs +54 -52
- package/plugins/tableRenders/title/TypographyText/Index.mjs +1 -1
- package/plugins/tableRenders/title/index.mjs +2 -2
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +1 -1
- package/utils/audio/getAudioElement.d.ts +2 -0
- package/utils/audio/getAudioElement.mjs +9 -0
- package/utils/audio/playMediaStream.d.ts +6 -0
- package/utils/audio/playUrl.d.ts +6 -0
- package/utils/gather.mjs +1 -1
- package/utils/index.d.ts +2 -0
- package/utils/index.mjs +7 -8
- package/utils/tool.d.ts +4 -0
- package/utils/tool.mjs +1 -28
- package/views/monitor/cache/index.mjs +2 -2
- package/views/monitor/cacheList/index.mjs +2 -2
- package/views/monitor/job/index.mjs +1 -1
- package/views/monitor/logininfor/index.mjs +2 -2
- package/views/monitor/online/index.mjs +2 -2
- package/views/monitor/operlog/index.mjs +2 -2
- package/views/monitor/server/index.mjs +2 -2
- package/views/system/config/index.mjs +13 -13
- package/views/system/dept/index.mjs +27 -28
- package/views/system/dept/utils.mjs +1 -2
- package/views/system/dict/index.mjs +23 -23
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +36 -37
- package/views/system/menu/utils.mjs +1 -2
- package/views/system/notice/index.mjs +8 -8
- package/views/system/post/index.mjs +8 -8
- package/views/system/role/index.mjs +43 -43
- 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 +49 -49
- package/views/tool/gen/editTable/index.mjs +14 -14
- package/views/tool/gen/editTable/modules/BasicInfo.mjs +1 -1
- package/views/tool/gen/editTable/modules/ColumnInfo.mjs +1 -1
- package/views/tool/gen/editTable/modules/GenInfo.mjs +1 -1
- package/views/tool/gen/index.mjs +22 -22
- package/views/tool/gen/modules/Import.mjs +1 -1
- package/views/tool/gen/modules/Preview.mjs +1 -1
- package/views/tool/job/index.mjs +1 -1
- package/views/tool/job/modules/Log.mjs +1 -1
- package/assets/date-picker-CKUanIvh.css +0 -1
- package/assets/input-number-DHmV6oBX.css +0 -2
- package/assets/provider-yh_xhvsD.css +0 -2
- package/assets/scrollbar-CWhno35V.css +0 -1
- package/chunks/Index-Cuc40XIY.mjs +0 -44
- package/chunks/date-picker-CoQEj1PX.mjs +0 -376
- package/chunks/input-number-DZeNW9Jv.mjs +0 -73
- package/chunks/range-input-CTpZmB-d.mjs +0 -109
- package/chunks/utils-TGX_Jb3e.mjs +0 -10
|
@@ -1,68 +1,60 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { t
|
|
1
|
+
import { t as e } from "./scrollbar-CFNjWbWr.mjs";
|
|
2
|
+
import { t } from "./icon-DnBGEq-n.mjs";
|
|
3
3
|
import "../components/icon/index.mjs";
|
|
4
|
-
import { t } from "./popconfirm-BbpDvib_.mjs";
|
|
4
|
+
import { t as n } from "./popconfirm-BbpDvib_.mjs";
|
|
5
5
|
import "../components/popconfirm/index.mjs";
|
|
6
|
-
import
|
|
6
|
+
import r from "../plugins/autoImport/$loading/index.mjs";
|
|
7
7
|
import "../components/checkbox/index.mjs";
|
|
8
|
-
import { t as
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import { isFalsy as
|
|
12
|
-
import
|
|
13
|
-
import { stringDisplay as
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
8
|
+
import { t as i } from "./checkbox-CVOChDUu.mjs";
|
|
9
|
+
import a from "../plugins/autoImport/$msg/index.mjs";
|
|
10
|
+
import { getAudioElement as o, releaseAudioElement as s } from "../utils/audio/getAudioElement.mjs";
|
|
11
|
+
import { isFalsy as c, isNotEmpty as l, isValidNumberString as u } from "../utils/boolean.mjs";
|
|
12
|
+
import { formatNumber as d } from "../utils/number.mjs";
|
|
13
|
+
import { stringDisplay as f } from "../utils/string.mjs";
|
|
14
|
+
import { n as p, t as m } from "./useAppContext-DAxNLHY9.mjs";
|
|
15
|
+
import h from "../layout/index.mjs";
|
|
16
16
|
import "../components/scrollbar/index.mjs";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import _ from "../
|
|
20
|
-
import v from "../store/modules/excludeKPname.mjs";
|
|
17
|
+
import ee from "../hooks/useMQ/index.mjs";
|
|
18
|
+
import g from "../hooks/usePrimaryColor/index.mjs";
|
|
19
|
+
import _ from "../store/modules/excludeKPname.mjs";
|
|
21
20
|
import "../components/gradient-text/index.mjs";
|
|
21
|
+
import { t as te } from "./gradient-text-9F_lDxuO.mjs";
|
|
22
22
|
import "../components/image/index.mjs";
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as b } from "./plugin-vue_export-helper-Djzt4Yr7.mjs";
|
|
23
|
+
import ne from "../views/index.mjs";
|
|
24
|
+
import { t as re } from "./image-u3num5z6.mjs";
|
|
25
|
+
import { t as ie } from "./MenuNode-BAy8nht3.mjs";
|
|
26
|
+
import { t as v } from "./plugin-vue_export-helper-Djzt4Yr7.mjs";
|
|
28
27
|
import "../components/dropdown/index.mjs";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import ae, { useClearList as oe } from "../hooks/useList/index.mjs";
|
|
32
|
-
import "./utils-TGX_Jb3e.mjs";
|
|
28
|
+
import { t as ae } from "./dropdown-Bvarrr3c.mjs";
|
|
29
|
+
import oe from "../hooks/useContextMenu/index.mjs";
|
|
33
30
|
import "../components/color-picker/index.mjs";
|
|
34
31
|
import { t as se } from "./color-picker-Czz7J_78.mjs";
|
|
35
32
|
import "../components/input/index.mjs";
|
|
36
33
|
import { n as ce, t as le } from "./input-CiSr3rcu.mjs";
|
|
37
|
-
import "../
|
|
38
|
-
import { t as ue } from "./date-picker-CoQEj1PX.mjs";
|
|
39
|
-
import "../components/input-number/index.mjs";
|
|
40
|
-
import { t as de } from "./input-number-DZeNW9Jv.mjs";
|
|
41
|
-
import "../components/range-input/index.mjs";
|
|
42
|
-
import { t as fe } from "./range-input-CTpZmB-d.mjs";
|
|
34
|
+
import y from "../plugins/autoImport/dayjs/index.mjs";
|
|
43
35
|
import "../components/tag-input/index.mjs";
|
|
44
|
-
import { n as
|
|
36
|
+
import { n as ue, t as de } from "./tag-input-Df_v5AwS.mjs";
|
|
45
37
|
import "../components/slider/index.mjs";
|
|
46
|
-
import { t as
|
|
38
|
+
import { t as fe } from "./slider-B8m9TxnK.mjs";
|
|
47
39
|
import "../components/switch/index.mjs";
|
|
48
|
-
import { t as
|
|
40
|
+
import { t as pe } from "./switch-BByqwNgy.mjs";
|
|
49
41
|
import "../components/textarea/index.mjs";
|
|
50
|
-
import { t as
|
|
51
|
-
import { passwordReg as
|
|
52
|
-
import { Fragment as
|
|
53
|
-
import { Breadcrumb as
|
|
54
|
-
import { ElConfigProvider as ut } from "element-plus";
|
|
55
|
-
import { useElementSize as
|
|
56
|
-
import { cloneDeep as
|
|
57
|
-
import { defineStore as
|
|
58
|
-
import
|
|
59
|
-
import { NavigationFailureType as
|
|
60
|
-
import { createAlova as
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
|
|
65
|
-
var
|
|
42
|
+
import { t as me } from "./textarea-C9VbFXpr.mjs";
|
|
43
|
+
import { passwordReg as he, passwordRegMessage as ge } from "../constants/regs.mjs";
|
|
44
|
+
import { Fragment as _e, KeepAlive as ve, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as ye, createSlots as be, createTextVNode as w, createVNode as T, defineAsyncComponent as xe, defineComponent as E, getCurrentInstance as D, guardReactiveProps as Se, h as O, inject as Ce, markRaw as we, mergeDefaults as k, mergeModels as Te, mergeProps as A, nextTick as Ee, normalizeClass as De, normalizeProps as j, onMounted as Oe, openBlock as M, provide as ke, reactive as Ae, ref as N, renderList as P, renderSlot as je, resolveComponent as Me, resolveDynamicComponent as F, shallowRef as Ne, toDisplayString as I, unref as L, useAttrs as Pe, useModel as Fe, useSlots as Ie, useTemplateRef as Le, watch as R, withCtx as z, withModifiers as Re } from "vue";
|
|
45
|
+
import { Breadcrumb as ze, BreadcrumbItem as Be, Button as Ve, CheckboxGroup as He, ConfigProvider as Ue, Content as We, Dialog as Ge, DialogPlugin as Ke, Drawer as qe, DrawerPlugin as Je, Form as Ye, FormItem as Xe, HeadMenu as Ze, Header as Qe, InputAdornment as $e, InputNumber as et, Layout as tt, Menu as nt, MenuItem as rt, RadioGroup as it, RangeInput as at, Select as ot, Tree as st, TreeSelect as ct, Upload as lt } from "tdesign-vue-next";
|
|
46
|
+
import { ElConfigProvider as ut, ElDatePicker as dt } from "element-plus";
|
|
47
|
+
import { useElementSize as ft, useElementVisibility as pt, useFavicon as mt, useFocus as ht, useMutationObserver as gt, useResizeObserver as _t } from "@vueuse/core";
|
|
48
|
+
import { cloneDeep as vt, isPlainObject as yt } from "lodash-es";
|
|
49
|
+
import { defineStore as bt } from "pinia";
|
|
50
|
+
import xt from "virtual:dlzn-ui/app-params";
|
|
51
|
+
import { NavigationFailureType as St, createRouter as Ct, createWebHistory as wt, isNavigationFailure as Tt, useRoute as B, useRouter as Et } from "vue-router";
|
|
52
|
+
import { createAlova as Dt } from "alova";
|
|
53
|
+
import Ot from "alova/fetch";
|
|
54
|
+
import kt from "alova/vue";
|
|
55
|
+
import At from "path-browserify";
|
|
56
|
+
import '../assets/provider-Bh_VYGit.css';// ../../node_modules/.pnpm/element-plus@2.14.8_vue@3.5.45/node_modules/element-plus/es/locale/lang/zh-cn.mjs
|
|
57
|
+
var jt = {
|
|
66
58
|
name: "zh-cn",
|
|
67
59
|
el: {
|
|
68
60
|
breadcrumb: { label: "面包屑" },
|
|
@@ -243,15 +235,15 @@ var Ot = {
|
|
|
243
235
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
244
236
|
}
|
|
245
237
|
}
|
|
246
|
-
},
|
|
238
|
+
}, Mt = {
|
|
247
239
|
autoIcon: !0,
|
|
248
240
|
autoLoading: !0,
|
|
249
241
|
autoTheme: !0,
|
|
250
242
|
loading: void 0
|
|
251
|
-
},
|
|
243
|
+
}, Nt = {
|
|
252
244
|
autoLabelWidth: !0,
|
|
253
245
|
colon: !0,
|
|
254
|
-
data: () =>
|
|
246
|
+
data: () => Ae({}),
|
|
255
247
|
disabled: !1,
|
|
256
248
|
labelAlign: "top",
|
|
257
249
|
layout: "inline",
|
|
@@ -261,8 +253,126 @@ var Ot = {
|
|
|
261
253
|
requiredMark: void 0,
|
|
262
254
|
resetType: "initial",
|
|
263
255
|
showErrorMessage: !0
|
|
264
|
-
},
|
|
265
|
-
|
|
256
|
+
}, Pt = class {
|
|
257
|
+
stream;
|
|
258
|
+
onDisposed;
|
|
259
|
+
isLoading = N(!1);
|
|
260
|
+
isPlaying = N(!1);
|
|
261
|
+
audioElement;
|
|
262
|
+
disposed = !1;
|
|
263
|
+
tracks;
|
|
264
|
+
constructor(e, t) {
|
|
265
|
+
this.stream = e, this.onDisposed = t, this.tracks = e.getAudioTracks(), this.audioElement = o();
|
|
266
|
+
for (let e of this.tracks) e.addEventListener("ended", this.onTrackEnded);
|
|
267
|
+
this.audioElement.srcObject = e, this.isLoading.value = !0, this.audioElement.play().then(() => {
|
|
268
|
+
this.isPlaying.value = !0;
|
|
269
|
+
}).catch(() => {
|
|
270
|
+
a.error("音频播放失败"), this.dispose();
|
|
271
|
+
}).finally(() => {
|
|
272
|
+
this.isLoading.value = !1;
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
dispose() {
|
|
276
|
+
if (this.isPlaying.value = !1, !this.disposed) {
|
|
277
|
+
this.disposed = !0;
|
|
278
|
+
for (let e of this.tracks) e.removeEventListener("ended", this.onTrackEnded);
|
|
279
|
+
s(this.audioElement), this.onDisposed(this.stream);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
onTrackEnded = () => {
|
|
283
|
+
this.dispose();
|
|
284
|
+
};
|
|
285
|
+
}, Ft = new class {
|
|
286
|
+
players = /* @__PURE__ */ new Map();
|
|
287
|
+
play(e, t) {
|
|
288
|
+
if (this.players.has(e)) {
|
|
289
|
+
let t = this.players.get(e);
|
|
290
|
+
return {
|
|
291
|
+
isLoading: t.isLoading,
|
|
292
|
+
isPlaying: t.isPlaying
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
t && this.release();
|
|
296
|
+
let n = new Pt(e, (e) => {
|
|
297
|
+
this.players.delete(e);
|
|
298
|
+
});
|
|
299
|
+
return this.players.set(e, n), {
|
|
300
|
+
isLoading: n.isLoading,
|
|
301
|
+
isPlaying: n.isPlaying
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
release(e) {
|
|
305
|
+
if (e !== void 0) this.players.get(e)?.dispose();
|
|
306
|
+
else for (let e of [...this.players.values()]) e.dispose();
|
|
307
|
+
}
|
|
308
|
+
}();
|
|
309
|
+
function It(e, t = !0) {
|
|
310
|
+
return Ft.play(e, t);
|
|
311
|
+
}
|
|
312
|
+
function Lt(e) {
|
|
313
|
+
Ft.release(e);
|
|
314
|
+
}
|
|
315
|
+
// ../../packages/dlzn-ui/utils/audio/playUrl.ts
|
|
316
|
+
var Rt = class {
|
|
317
|
+
url;
|
|
318
|
+
onDisposed;
|
|
319
|
+
isLoading = N(!1);
|
|
320
|
+
isPlaying = N(!1);
|
|
321
|
+
audioElement;
|
|
322
|
+
disposed = !1;
|
|
323
|
+
constructor(e, t) {
|
|
324
|
+
this.url = e, this.onDisposed = t, this.audioElement = o(), this.audioElement.addEventListener("ended", this.onEnded), this.audioElement.src = e, this.isLoading.value = !0, this.audioElement.play().then(() => {
|
|
325
|
+
this.isPlaying.value = !0;
|
|
326
|
+
}).catch(() => {
|
|
327
|
+
a.error("音频播放失败"), this.dispose();
|
|
328
|
+
}).finally(() => {
|
|
329
|
+
this.isLoading.value = !1;
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
dispose() {
|
|
333
|
+
this.isPlaying.value = !1, this.disposed || (this.disposed = !0, this.audioElement.removeEventListener("ended", this.onEnded), s(this.audioElement), this.onDisposed(this.url));
|
|
334
|
+
}
|
|
335
|
+
onEnded = () => {
|
|
336
|
+
this.dispose();
|
|
337
|
+
};
|
|
338
|
+
}, zt = new class {
|
|
339
|
+
players = /* @__PURE__ */ new Map();
|
|
340
|
+
play(e, t) {
|
|
341
|
+
if (this.players.has(e)) {
|
|
342
|
+
let t = this.players.get(e);
|
|
343
|
+
return {
|
|
344
|
+
isLoading: t.isLoading,
|
|
345
|
+
isPlaying: t.isPlaying
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
t && this.release();
|
|
349
|
+
let n = new Rt(e, (e) => {
|
|
350
|
+
this.players.delete(e);
|
|
351
|
+
});
|
|
352
|
+
return this.players.set(e, n), {
|
|
353
|
+
isLoading: n.isLoading,
|
|
354
|
+
isPlaying: n.isPlaying
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
release(e) {
|
|
358
|
+
if (e !== void 0) this.players.get(e)?.dispose();
|
|
359
|
+
else for (let e of [...this.players.values()]) e.dispose();
|
|
360
|
+
}
|
|
361
|
+
}();
|
|
362
|
+
function Bt(e, t = !0) {
|
|
363
|
+
return zt.play(e, t);
|
|
364
|
+
}
|
|
365
|
+
function Vt(e) {
|
|
366
|
+
zt.release(e);
|
|
367
|
+
}
|
|
368
|
+
// ../../packages/dlzn-ui/utils/gather.ts
|
|
369
|
+
function Ht(e, t) {
|
|
370
|
+
let n = Array.isArray(t), r = (n ? t : [t]).map((t) => e.find((e) => String(e.value) === String(t))?.label ?? f(t));
|
|
371
|
+
return n ? r : r[0];
|
|
372
|
+
}
|
|
373
|
+
// ../../packages/dlzn-ui/components/dialog/src/dialog.ts
|
|
374
|
+
var Ut = {
|
|
375
|
+
closeBtn: () => O($, {
|
|
266
376
|
icon: "mdi:close",
|
|
267
377
|
shape: "circle",
|
|
268
378
|
size: "small",
|
|
@@ -282,11 +392,11 @@ var Ot = {
|
|
|
282
392
|
preventScrollThrough: !0,
|
|
283
393
|
showOverlay: !0,
|
|
284
394
|
width: "fit-content"
|
|
285
|
-
},
|
|
395
|
+
}, Wt = /* @__PURE__ */ E({
|
|
286
396
|
inheritAttrs: !1,
|
|
287
397
|
name: "TDialog",
|
|
288
398
|
__name: "dialog",
|
|
289
|
-
props: /*@__PURE__*/
|
|
399
|
+
props: /*@__PURE__*/ k({
|
|
290
400
|
attach: { type: [String, Function] },
|
|
291
401
|
body: {},
|
|
292
402
|
cancelBtn: {},
|
|
@@ -329,69 +439,69 @@ var Ot = {
|
|
|
329
439
|
"onUpdate:visible": { type: Function },
|
|
330
440
|
visible: { type: Boolean }
|
|
331
441
|
}, {
|
|
332
|
-
...
|
|
442
|
+
...Ut,
|
|
333
443
|
attach: "body",
|
|
334
|
-
closeBtn: () =>
|
|
444
|
+
closeBtn: () => Ut.closeBtn,
|
|
335
445
|
showInAttachedElement: !1
|
|
336
446
|
}),
|
|
337
447
|
setup(e) {
|
|
338
|
-
let t = e, n =
|
|
448
|
+
let t = e, n = b(() => {
|
|
339
449
|
let e = { ...t };
|
|
340
450
|
return Object.keys(e).forEach((t) => {
|
|
341
451
|
e[t] === void 0 && delete e[t];
|
|
342
452
|
}), e;
|
|
343
|
-
}), r =
|
|
453
|
+
}), r = D();
|
|
344
454
|
function i(e) {
|
|
345
455
|
r.exposed = e ?? {};
|
|
346
456
|
}
|
|
347
|
-
return (e, t) => (
|
|
457
|
+
return (e, t) => (M(), x(F(O(L(Ge), A(e.$attrs, {
|
|
348
458
|
...n.value,
|
|
349
459
|
ref: i
|
|
350
460
|
}), e.$slots))));
|
|
351
461
|
}
|
|
352
|
-
}),
|
|
462
|
+
}), Gt = /* @__PURE__ */ function(e) {
|
|
353
463
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
354
|
-
}(
|
|
355
|
-
function
|
|
356
|
-
let r =
|
|
464
|
+
}(Gt || {}), Kt = /* @__PURE__ */ new Set();
|
|
465
|
+
function qt(e, t, n) {
|
|
466
|
+
let r = b(() => typeof t.body == "function" ? t.body(O) : t.body), i = N(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: a, stop: o } = pt(i, {
|
|
357
467
|
controls: !0,
|
|
358
468
|
initialValue: !0
|
|
359
|
-
}),
|
|
360
|
-
...
|
|
469
|
+
}), s = {
|
|
470
|
+
...Ut,
|
|
361
471
|
closeWhenCloseAll: !0,
|
|
362
472
|
...t ?? {},
|
|
363
|
-
body: () =>
|
|
364
|
-
},
|
|
365
|
-
...
|
|
473
|
+
body: () => O(vr, {}, { default: () => r.value })
|
|
474
|
+
}, c, l = {
|
|
475
|
+
...s,
|
|
366
476
|
onClosed: () => {
|
|
367
|
-
i.value !== null && a.value && i.value.focus(),
|
|
477
|
+
i.value !== null && a.value && i.value.focus(), o(), s.onClosed?.(), Kt.delete(c);
|
|
368
478
|
}
|
|
369
479
|
};
|
|
370
|
-
delete
|
|
371
|
-
let
|
|
372
|
-
return
|
|
480
|
+
delete l.closeWhenCloseAll;
|
|
481
|
+
let u = m();
|
|
482
|
+
return c = e === void 0 ? Ke(l, n ?? u) : Ke[e](l, n ?? u), s.closeWhenCloseAll && Kt.add(c), c;
|
|
373
483
|
}
|
|
374
|
-
var
|
|
375
|
-
return
|
|
484
|
+
var Jt = function(...e) {
|
|
485
|
+
return qt(void 0, ...e);
|
|
376
486
|
};
|
|
377
|
-
Object.values(
|
|
378
|
-
|
|
379
|
-
|
|
487
|
+
Object.values(Gt).forEach((e) => {
|
|
488
|
+
Jt[e] = e === "closeAll" ? () => {
|
|
489
|
+
Kt.forEach((e) => {
|
|
380
490
|
e.hide();
|
|
381
491
|
});
|
|
382
|
-
} : (...t) =>
|
|
492
|
+
} : (...t) => qt(e, ...t);
|
|
383
493
|
});
|
|
384
494
|
// ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
385
|
-
var
|
|
495
|
+
var V = (e, t) => {
|
|
386
496
|
let n = { ...typeof e == "string" ? {} : e };
|
|
387
497
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
388
|
-
let a =
|
|
498
|
+
let a = Jt(typeof e == "string" ? {
|
|
389
499
|
body: e,
|
|
390
500
|
onConfirm: () => {
|
|
391
501
|
a.hide(), r();
|
|
392
502
|
},
|
|
393
503
|
theme: "warning"
|
|
394
|
-
} :
|
|
504
|
+
} : Ae({
|
|
395
505
|
...n,
|
|
396
506
|
onClose: (t) => {
|
|
397
507
|
let { trigger: n } = t;
|
|
@@ -410,8 +520,8 @@ var W = (e, t) => {
|
|
|
410
520
|
});
|
|
411
521
|
};
|
|
412
522
|
// ../../packages/dlzn-ui/store/modules/common.ts
|
|
413
|
-
function
|
|
414
|
-
return VITE_APP_ID === "1" ?
|
|
523
|
+
function Yt() {
|
|
524
|
+
return VITE_APP_ID === "1" ? Y.Get(`yq/oemConfig/getByDomain/${window.location.hostname}`, {
|
|
415
525
|
meta: { useToken: !1 },
|
|
416
526
|
transform(e) {
|
|
417
527
|
if (e === null) throw Error("oemConfig getByDomain return null");
|
|
@@ -422,26 +532,26 @@ function Lt() {
|
|
|
422
532
|
version: ""
|
|
423
533
|
};
|
|
424
534
|
}
|
|
425
|
-
}) :
|
|
535
|
+
}) : Y.Get("common/appInfo", { meta: {
|
|
426
536
|
useFailMsg: !1,
|
|
427
537
|
useSysFailMsg: !1,
|
|
428
538
|
useToken: !1
|
|
429
539
|
} });
|
|
430
540
|
}
|
|
431
|
-
var
|
|
432
|
-
let e =
|
|
541
|
+
var H = bt("common", () => {
|
|
542
|
+
let e = N(!0), t = N(250), n = N({
|
|
433
543
|
appName: "",
|
|
434
544
|
color: "",
|
|
435
545
|
logo: "",
|
|
436
546
|
version: ""
|
|
437
547
|
});
|
|
438
|
-
|
|
548
|
+
R(() => n.value.appName, (e) => {
|
|
439
549
|
e && (document.title = e);
|
|
440
|
-
}),
|
|
441
|
-
e && (
|
|
442
|
-
}),
|
|
550
|
+
}), R(() => n.value.color, (e) => {
|
|
551
|
+
e && (g().value = e);
|
|
552
|
+
}), mt(b(() => n.value.logo || "/favicon.ico"));
|
|
443
553
|
function r() {
|
|
444
|
-
|
|
554
|
+
Yt().then((e) => {
|
|
445
555
|
n.value = e;
|
|
446
556
|
}).catch((e) => {
|
|
447
557
|
n.value = {
|
|
@@ -452,7 +562,7 @@ var G = V("common", () => {
|
|
|
452
562
|
}, console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
|
|
453
563
|
});
|
|
454
564
|
}
|
|
455
|
-
let i =
|
|
565
|
+
let i = N(!0), a = null;
|
|
456
566
|
function o() {
|
|
457
567
|
a !== null && (clearTimeout(a), a = null), i.value = !1, a = setTimeout(() => {
|
|
458
568
|
i.value = !0;
|
|
@@ -466,13 +576,13 @@ var G = V("common", () => {
|
|
|
466
576
|
isRequestSleep: i,
|
|
467
577
|
requestActive: o
|
|
468
578
|
};
|
|
469
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }),
|
|
470
|
-
let e =
|
|
579
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), U = bt("recentRouters", () => {
|
|
580
|
+
let e = N([]), t = B(), n = Et();
|
|
471
581
|
function r() {
|
|
472
582
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
473
583
|
}
|
|
474
584
|
function i(t, n) {
|
|
475
|
-
let r =
|
|
585
|
+
let r = vt(n), i = e.value.findIndex((e) => e.name === r.name || An(e.name).meta.title === An(r.name).meta.title);
|
|
476
586
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
477
587
|
let n = e.value.findIndex((e) => e.name === t);
|
|
478
588
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -502,16 +612,16 @@ var G = V("common", () => {
|
|
|
502
612
|
};
|
|
503
613
|
}, { persist: { pick: ["recentRouters"] } });
|
|
504
614
|
// ../../packages/dlzn-ui/store/modules/router.ts
|
|
505
|
-
function
|
|
506
|
-
return
|
|
615
|
+
function Xt() {
|
|
616
|
+
return Y.Get("getRouters", { meta: {
|
|
507
617
|
useFailMsg: "获取用户路由失败",
|
|
508
618
|
useLoading: "正在获取用户路由..."
|
|
509
619
|
} });
|
|
510
620
|
}
|
|
511
|
-
function
|
|
621
|
+
function Zt(e) {
|
|
512
622
|
return e.children !== void 0 || e.component !== void 0;
|
|
513
623
|
}
|
|
514
|
-
function
|
|
624
|
+
function Qt(e) {
|
|
515
625
|
let t = [];
|
|
516
626
|
return e.forEach((e) => {
|
|
517
627
|
e.path === "/" ? t.push({
|
|
@@ -520,7 +630,7 @@ function Bt(e) {
|
|
|
520
630
|
}) : t.push(e);
|
|
521
631
|
}), t;
|
|
522
632
|
}
|
|
523
|
-
function
|
|
633
|
+
function $t(e) {
|
|
524
634
|
let t = (e, n) => {
|
|
525
635
|
let r = [];
|
|
526
636
|
return e.forEach((e) => {
|
|
@@ -544,12 +654,12 @@ function Vt(e) {
|
|
|
544
654
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
545
655
|
}
|
|
546
656
|
}
|
|
547
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
657
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = rn(e)), Zt(i) && r.push(i);
|
|
548
658
|
}), r;
|
|
549
|
-
}, n =
|
|
659
|
+
}, n = kn();
|
|
550
660
|
return n.children.push(...e), t([n], null);
|
|
551
661
|
}
|
|
552
|
-
function
|
|
662
|
+
function en(e) {
|
|
553
663
|
let t = (e) => {
|
|
554
664
|
let n = [...e], r = n.length;
|
|
555
665
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -562,46 +672,46 @@ function Ht(e) {
|
|
|
562
672
|
};
|
|
563
673
|
return t(e);
|
|
564
674
|
}
|
|
565
|
-
var
|
|
566
|
-
function
|
|
675
|
+
var tn = [];
|
|
676
|
+
function nn(e) {
|
|
567
677
|
return `./${e.split("___")[0]}.vue`;
|
|
568
678
|
}
|
|
569
|
-
function
|
|
679
|
+
function rn(e) {
|
|
570
680
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
571
|
-
let t = e.component, n = typeof t == "string" ?
|
|
681
|
+
let t = e.component, n = typeof t == "string" ? ne[nn(t)] : t;
|
|
572
682
|
if (n === void 0) {
|
|
573
|
-
let e = `路由组件${
|
|
574
|
-
return console.error(e),
|
|
683
|
+
let e = `路由组件${nn(t)}不存在`;
|
|
684
|
+
return console.error(e), h["./NotFound.vue"];
|
|
575
685
|
}
|
|
576
|
-
return typeof t == "string" &&
|
|
686
|
+
return typeof t == "string" && tn.push(nn(t)), () => n().then((t) => ({
|
|
577
687
|
...t.default,
|
|
578
688
|
name: e.name
|
|
579
689
|
}));
|
|
580
690
|
}
|
|
581
691
|
return e.component;
|
|
582
692
|
}
|
|
583
|
-
var
|
|
584
|
-
let e =
|
|
693
|
+
var an = bt("router", () => {
|
|
694
|
+
let e = N([]), t = Et(), n = Q();
|
|
585
695
|
async function r() {
|
|
586
|
-
let r = await
|
|
696
|
+
let r = await Xt();
|
|
587
697
|
VITE_MODE === "development" && n.isAdmin && fetch("/__dev__/save-folder-alias", {
|
|
588
698
|
body: JSON.stringify(r),
|
|
589
699
|
headers: { "Content-Type": "application/json" },
|
|
590
700
|
method: "POST"
|
|
591
701
|
}).catch((e) => {
|
|
592
702
|
console.warn("[dev-save-folder-alias] 写入本地 json 失败", e);
|
|
593
|
-
}),
|
|
594
|
-
if (!
|
|
703
|
+
}), tn.length = 0, e.value = we(en($t(Qt(r)))), n.isAdmin && Object.keys(ne).forEach((e) => {
|
|
704
|
+
if (!tn.includes(e) && ![
|
|
595
705
|
"./tool",
|
|
596
706
|
"./system",
|
|
597
707
|
"./monitor"
|
|
598
708
|
].some((t) => e.startsWith(t))) {
|
|
599
709
|
let t = `${e} 页面对应的路由不存在`;
|
|
600
|
-
VITE_MODE === "development" ?
|
|
710
|
+
VITE_MODE === "development" ? p.error(t) : console.error(t);
|
|
601
711
|
}
|
|
602
712
|
}), t.hasRoute("Index") && t.removeRoute("Index"), e.value.forEach((e) => {
|
|
603
713
|
t.addRoute(e);
|
|
604
|
-
}),
|
|
714
|
+
}), U().init();
|
|
605
715
|
}
|
|
606
716
|
function i() {
|
|
607
717
|
e.value.forEach((e) => {
|
|
@@ -613,46 +723,46 @@ var Kt = V("router", () => {
|
|
|
613
723
|
getRouters: r,
|
|
614
724
|
routersRaw: e
|
|
615
725
|
};
|
|
616
|
-
}),
|
|
726
|
+
}), on = { class: "ml-2! flex items-center" }, sn = /*#__PURE__*/ v(/* @__PURE__ */ E({
|
|
617
727
|
__name: "Aside",
|
|
618
728
|
setup(e) {
|
|
619
|
-
let t =
|
|
620
|
-
|
|
729
|
+
let t = B(), n = H(), r = b(() => n.appInfo.appName), i = an(), a = N([]);
|
|
730
|
+
R(() => t.name, () => {
|
|
621
731
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
622
732
|
a.value.includes(e) || a.value.push(e);
|
|
623
733
|
});
|
|
624
734
|
}, { immediate: !0 });
|
|
625
|
-
let o =
|
|
735
|
+
let o = b(() => {
|
|
626
736
|
let { hidden: e, parentName: n } = t.meta;
|
|
627
737
|
return n !== "" && e === !0 ? n : t.name;
|
|
628
|
-
}), s =
|
|
629
|
-
return (e, t) => (
|
|
738
|
+
}), s = b(() => n.appInfo.logo || xt.asideTopLogoUrl);
|
|
739
|
+
return (e, t) => (M(), x(L(nt), {
|
|
630
740
|
expanded: a.value,
|
|
631
741
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
632
742
|
class: "w-full!",
|
|
633
743
|
value: o.value
|
|
634
744
|
}, {
|
|
635
|
-
logo:
|
|
745
|
+
logo: z(() => [ye("div", on, [T(L(re), {
|
|
636
746
|
class: "logo",
|
|
637
747
|
src: s.value,
|
|
638
748
|
style: {
|
|
639
749
|
width: "28px",
|
|
640
750
|
height: "28px"
|
|
641
751
|
}
|
|
642
|
-
}, null, 8, ["src"]),
|
|
752
|
+
}, null, 8, ["src"]), T(L(te), {
|
|
643
753
|
"animation-speed": 8,
|
|
644
754
|
"class-name": "ml-2 text-xl !font-bold",
|
|
645
755
|
"show-border": !1,
|
|
646
756
|
text: r.value
|
|
647
757
|
}, null, 8, ["text"])])]),
|
|
648
|
-
default:
|
|
758
|
+
default: z(() => [T(ie, { model: L(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
649
759
|
_: 1
|
|
650
760
|
}, 8, ["expanded", "value"]));
|
|
651
761
|
}
|
|
652
|
-
}), [["__scopeId", "data-v-36275803"]]),
|
|
762
|
+
}), [["__scopeId", "data-v-36275803"]]), cn = /* @__PURE__ */ E({
|
|
653
763
|
__name: "Breadcrumb",
|
|
654
764
|
setup(e, { expose: t }) {
|
|
655
|
-
let n =
|
|
765
|
+
let n = B(), r = Et(), i = U(), a = b(() => {
|
|
656
766
|
let e = n.matched.map((e) => ({
|
|
657
767
|
name: e.name,
|
|
658
768
|
title: e.meta.title
|
|
@@ -665,95 +775,119 @@ var Kt = V("router", () => {
|
|
|
665
775
|
function o(e) {
|
|
666
776
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
667
777
|
}
|
|
668
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (
|
|
778
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (M(), x(L(ze), {
|
|
669
779
|
key: 0,
|
|
670
780
|
class: "absolute top-px z-10 py-1!"
|
|
671
781
|
}, {
|
|
672
|
-
default:
|
|
782
|
+
default: z(() => [(M(!0), C(_e, null, P(a.value, (e) => (M(), x(L(Be), {
|
|
673
783
|
key: e.name,
|
|
674
784
|
disabled: e.disabled,
|
|
675
785
|
onClick: (t) => o(e.name)
|
|
676
786
|
}, {
|
|
677
|
-
default:
|
|
787
|
+
default: z(() => [w(I(e.title), 1)]),
|
|
678
788
|
_: 2
|
|
679
789
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
680
790
|
_: 1
|
|
681
|
-
})) :
|
|
791
|
+
})) : S("v-if", !0);
|
|
682
792
|
}
|
|
683
|
-
}),
|
|
684
|
-
function
|
|
685
|
-
|
|
793
|
+
}), W = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map(), ln = xt.useListPromiseMap ?? {};
|
|
794
|
+
function un() {
|
|
795
|
+
W.clear(), G.clear();
|
|
796
|
+
}
|
|
797
|
+
function K(e) {
|
|
798
|
+
let t = W.has(e) ? W.get(e) : N([]);
|
|
799
|
+
return W.has(e) || W.set(e, t), t.value.length === 0 && (G.has(e) && G.get(e) !== !1 || (G.set(e, !0), ln[e]().then((e) => {
|
|
800
|
+
t.value = e;
|
|
801
|
+
}).finally(() => {
|
|
802
|
+
G.set(e, !1);
|
|
803
|
+
}))), t;
|
|
804
|
+
}
|
|
805
|
+
function dn(e, t) {
|
|
806
|
+
let n = K(e);
|
|
807
|
+
return t === void 0 ? Hn(n) : Hn(n, t);
|
|
808
|
+
}
|
|
809
|
+
function fn(e) {
|
|
810
|
+
W.has(e) && (G.has(e) && G.get(e) !== !1 || (G.set(e, !0), ln[e]().then((t) => {
|
|
811
|
+
W.get(e).value = t;
|
|
812
|
+
}).finally(() => {
|
|
813
|
+
G.set(e, !1);
|
|
814
|
+
})));
|
|
815
|
+
}
|
|
816
|
+
// ../../packages/dlzn-ui/hooks/useSysUser/index.ts
|
|
817
|
+
var pn = /* @__PURE__ */ new Map();
|
|
818
|
+
function mn(e) {
|
|
819
|
+
let t = Y.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
686
820
|
...e,
|
|
687
821
|
label: e.userName,
|
|
688
822
|
value: e.userId
|
|
689
823
|
})));
|
|
690
824
|
e.forEach((e) => {
|
|
691
|
-
|
|
825
|
+
pn.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
692
826
|
});
|
|
693
827
|
}
|
|
694
|
-
var
|
|
695
|
-
function
|
|
696
|
-
return
|
|
828
|
+
var hn = [];
|
|
829
|
+
function gn(e) {
|
|
830
|
+
return hn.includes(e) || hn.push(e), new Promise((t) => {
|
|
697
831
|
setTimeout(() => {
|
|
698
|
-
let n =
|
|
699
|
-
n.length > 0 &&
|
|
832
|
+
let n = hn.filter((e) => !pn.has(e));
|
|
833
|
+
n.length > 0 && mn(n), hn.length = 0, pn.get(e).then((e) => {
|
|
700
834
|
t(e);
|
|
701
835
|
});
|
|
702
836
|
});
|
|
703
837
|
});
|
|
704
838
|
}
|
|
705
839
|
var q = /* @__PURE__ */ new Map();
|
|
706
|
-
function
|
|
707
|
-
|
|
840
|
+
function _n() {
|
|
841
|
+
hn.length = 0, pn.clear(), q.clear();
|
|
708
842
|
}
|
|
709
|
-
function
|
|
710
|
-
|
|
843
|
+
function vn(e) {
|
|
844
|
+
pn.delete(e), q.has(e) && gn(e).then((t) => {
|
|
711
845
|
q.get(e).value = t;
|
|
712
846
|
});
|
|
713
847
|
}
|
|
714
|
-
function
|
|
848
|
+
function yn(e) {
|
|
715
849
|
let t;
|
|
716
|
-
return q.has(e) ? t = q.get(e) : (t =
|
|
850
|
+
return q.has(e) ? t = q.get(e) : (t = N(null), q.set(e, t), gn(e).then((e) => {
|
|
717
851
|
t.value = e;
|
|
718
852
|
})), t;
|
|
719
853
|
}
|
|
720
854
|
// ../../packages/dlzn-ui/store/modules/login.ts
|
|
721
|
-
function
|
|
722
|
-
return
|
|
855
|
+
function bn(e) {
|
|
856
|
+
return Y.Post("login", e, { meta: {
|
|
723
857
|
useLoading: "登录中...",
|
|
724
858
|
useToken: !1
|
|
725
859
|
} });
|
|
726
860
|
}
|
|
727
|
-
function
|
|
728
|
-
return
|
|
861
|
+
function xn() {
|
|
862
|
+
return Y.Post("logout", void 0, { meta: {
|
|
729
863
|
useLoading: "退出登录中...",
|
|
730
864
|
useSuccessMsg: !0
|
|
731
865
|
} });
|
|
732
866
|
}
|
|
733
|
-
var
|
|
734
|
-
let e =
|
|
867
|
+
var Sn = bt("login", () => {
|
|
868
|
+
let e = N(""), t = B(), n = Et();
|
|
735
869
|
async function r(t) {
|
|
736
|
-
let n = await
|
|
870
|
+
let n = await bn(t);
|
|
737
871
|
e.value = n.token, await Q().getUserInfo();
|
|
738
872
|
}
|
|
739
873
|
function i() {
|
|
740
|
-
e.value = "",
|
|
874
|
+
e.value = "", _().clear(), an().clear(), Q().clear(), qn(), _n(), un();
|
|
741
875
|
}
|
|
742
|
-
|
|
876
|
+
R(() => t.name, () => {
|
|
743
877
|
t.name === "Login" && i();
|
|
744
878
|
});
|
|
745
879
|
async function a() {
|
|
746
|
-
await
|
|
880
|
+
await xn(), await n.push({ name: "Login" }), i();
|
|
747
881
|
}
|
|
748
882
|
return {
|
|
749
883
|
login: r,
|
|
750
884
|
logout: a,
|
|
751
885
|
token: e
|
|
752
886
|
};
|
|
753
|
-
}, { persist: { pick: ["token"] } }),
|
|
887
|
+
}, { persist: { pick: ["token"] } }), Cn = { class: "flex items-center justify-between" }, wn = /*#__PURE__*/ v(/* @__PURE__ */ E({
|
|
754
888
|
__name: "Header",
|
|
755
|
-
setup(
|
|
756
|
-
let n =
|
|
889
|
+
setup(e) {
|
|
890
|
+
let n = B(), r = Et(), i = Q(), a = H(), o = U();
|
|
757
891
|
function s(e) {
|
|
758
892
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
759
893
|
}
|
|
@@ -762,8 +896,8 @@ var on = V("login", () => {
|
|
|
762
896
|
}
|
|
763
897
|
let l = async (e) => {
|
|
764
898
|
let { value: t } = e;
|
|
765
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await
|
|
766
|
-
}, u =
|
|
899
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await V("确定要退出登录吗?"), Sn().logout());
|
|
900
|
+
}, u = ee.isMd;
|
|
767
901
|
function d(e, t) {
|
|
768
902
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
769
903
|
o.recentRouters.length > 1 && i.push({
|
|
@@ -784,81 +918,81 @@ var on = V("login", () => {
|
|
|
784
918
|
onClick: () => {
|
|
785
919
|
l > s && r.push(u), o.recentRouters = o.recentRouters.slice(0, s + 1);
|
|
786
920
|
}
|
|
787
|
-
}),
|
|
921
|
+
}), oe(e, i);
|
|
788
922
|
}
|
|
789
|
-
let f =
|
|
790
|
-
return (
|
|
791
|
-
default:
|
|
923
|
+
let f = h["./modules/HeaderOperations.vue"] ? xe(h["./modules/HeaderOperations.vue"]) : void 0;
|
|
924
|
+
return (e, r) => (M(), x(L(Qe), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
925
|
+
default: z(() => [T(L(Ze), {
|
|
792
926
|
"expand-type": "popup",
|
|
793
|
-
value:
|
|
927
|
+
value: L(n).name,
|
|
794
928
|
onChange: s
|
|
795
929
|
}, {
|
|
796
|
-
logo:
|
|
930
|
+
logo: z(() => [T(L($), {
|
|
797
931
|
class: "ml-0! shrink-0",
|
|
798
932
|
shape: "circle",
|
|
799
933
|
size: "large",
|
|
800
934
|
variant: "text",
|
|
801
|
-
onClick: r[0] ||= (e) =>
|
|
935
|
+
onClick: r[0] ||= (e) => L(a).drawerOpen = !L(a).drawerOpen
|
|
802
936
|
}, {
|
|
803
|
-
default:
|
|
937
|
+
default: z(() => [T(L(t), { icon: "lineicons:menu-hamburger-1" })]),
|
|
804
938
|
_: 1
|
|
805
939
|
})]),
|
|
806
|
-
operations:
|
|
940
|
+
operations: z(() => [L(f) ? (M(), x(L(f), { key: 0 })) : S("v-if", !0), T(L(ae), {
|
|
807
941
|
options: [{
|
|
808
942
|
content: "个人中心",
|
|
809
943
|
value: "profile",
|
|
810
|
-
prefixIcon: () =>
|
|
944
|
+
prefixIcon: () => O(L(t), {
|
|
811
945
|
icon: "material-symbols:account-circle",
|
|
812
946
|
size: "16"
|
|
813
947
|
})
|
|
814
948
|
}, {
|
|
815
949
|
content: "退出登录",
|
|
816
950
|
value: "logout",
|
|
817
|
-
prefixIcon: () =>
|
|
951
|
+
prefixIcon: () => O(L(t), {
|
|
818
952
|
icon: "material-symbols:logout",
|
|
819
953
|
size: "16"
|
|
820
954
|
})
|
|
821
955
|
}],
|
|
822
956
|
onClick: l
|
|
823
957
|
}, {
|
|
824
|
-
default:
|
|
958
|
+
default: z(() => [L(u) ? (M(), x(L($), {
|
|
825
959
|
key: 0,
|
|
826
960
|
icon: "material-symbols:account-circle",
|
|
827
961
|
shape: "square",
|
|
828
962
|
variant: "text"
|
|
829
|
-
})) : (
|
|
963
|
+
})) : (M(), x(L($), {
|
|
830
964
|
key: 1,
|
|
831
965
|
icon: "material-symbols:account-circle",
|
|
832
966
|
variant: "text"
|
|
833
967
|
}, {
|
|
834
|
-
suffix:
|
|
968
|
+
suffix: z(() => [T(L(t), {
|
|
835
969
|
icon: "icon-park-outline:down",
|
|
836
970
|
size: "18"
|
|
837
971
|
})]),
|
|
838
|
-
default:
|
|
972
|
+
default: z(() => [w(I(L(i).userInfo.userName) + " ", 1)]),
|
|
839
973
|
_: 1
|
|
840
974
|
}))]),
|
|
841
975
|
_: 1
|
|
842
976
|
}, 8, ["options"])]),
|
|
843
|
-
default:
|
|
844
|
-
key:
|
|
845
|
-
value:
|
|
846
|
-
onContextmenu: (
|
|
977
|
+
default: z(() => [(M(!0), C(_e, null, P(L(o).recentRouters, (e) => (M(), x(L(rt), {
|
|
978
|
+
key: e.name,
|
|
979
|
+
value: e.name,
|
|
980
|
+
onContextmenu: (t) => d(t, e.name)
|
|
847
981
|
}, {
|
|
848
|
-
default:
|
|
982
|
+
default: z(() => [ye("div", Cn, [ye("span", null, I(L(An)(e.name).meta.title), 1), L(o).recentRouters.length > 1 ? (M(), x(L($), {
|
|
849
983
|
key: 0,
|
|
850
984
|
class: "ml-1!",
|
|
851
985
|
shape: "square",
|
|
852
986
|
size: "small",
|
|
853
987
|
variant: "text",
|
|
854
|
-
onClick:
|
|
988
|
+
onClick: Re((t) => c(e.name), ["stop"])
|
|
855
989
|
}, {
|
|
856
|
-
icon:
|
|
990
|
+
icon: z(() => [T(L(t), {
|
|
857
991
|
icon: "material-symbols:close",
|
|
858
992
|
style: { "font-size": "12px !important" }
|
|
859
993
|
})]),
|
|
860
994
|
_: 1
|
|
861
|
-
}, 8, ["onClick"])) :
|
|
995
|
+
}, 8, ["onClick"])) : S("v-if", !0)])]),
|
|
862
996
|
_: 2
|
|
863
997
|
}, 1032, ["value", "onContextmenu"]))), 128))]),
|
|
864
998
|
_: 1
|
|
@@ -866,40 +1000,40 @@ var on = V("login", () => {
|
|
|
866
1000
|
_: 1
|
|
867
1001
|
}));
|
|
868
1002
|
}
|
|
869
|
-
}), [["__scopeId", "data-v-6c2c986c"]]),
|
|
1003
|
+
}), [["__scopeId", "data-v-6c2c986c"]]), Tn = /*#__PURE__*/ v(/* @__PURE__ */ E({
|
|
870
1004
|
__name: "Entry",
|
|
871
|
-
setup(
|
|
872
|
-
let
|
|
873
|
-
function
|
|
874
|
-
|
|
1005
|
+
setup(t) {
|
|
1006
|
+
let n = B(), r = H(), i = U(), a = _(), o = b(() => i.recentRouters.filter((e) => An(e.name).meta.noCache === !1).map((e) => e.name)), s = Le("breadcrumb"), c = b(() => (s.value?.items.length ?? 0) > 0), l = b(() => ee.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), u = ee.isMd, d = Le("contentRef"), { height: f } = ft(d);
|
|
1007
|
+
function p({ size: e }) {
|
|
1008
|
+
r.drawerSize = e;
|
|
875
1009
|
}
|
|
876
|
-
let
|
|
877
|
-
return (
|
|
878
|
-
let
|
|
879
|
-
return
|
|
880
|
-
default:
|
|
1010
|
+
let m = b(() => n.meta.fullScreen);
|
|
1011
|
+
return (t, n) => {
|
|
1012
|
+
let i = Me("RouterView");
|
|
1013
|
+
return m.value ? (M(), x(i, { key: 0 }, {
|
|
1014
|
+
default: z(({ Component: e }) => [(M(), x(F(e)))]),
|
|
881
1015
|
_: 1
|
|
882
|
-
})) : (
|
|
1016
|
+
})) : (M(), x(L(tt), {
|
|
883
1017
|
key: 1,
|
|
884
1018
|
class: "h-full"
|
|
885
1019
|
}, {
|
|
886
|
-
default:
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
visible:
|
|
890
|
-
"onUpdate:visible":
|
|
1020
|
+
default: z(() => [
|
|
1021
|
+
T(wn),
|
|
1022
|
+
T(L(qe), {
|
|
1023
|
+
visible: L(r).drawerOpen,
|
|
1024
|
+
"onUpdate:visible": n[0] ||= (e) => L(r).drawerOpen = e,
|
|
891
1025
|
footer: !1,
|
|
892
|
-
mode:
|
|
1026
|
+
mode: L(u) ? "overlay" : "push",
|
|
893
1027
|
placement: "left",
|
|
894
|
-
"show-overlay":
|
|
895
|
-
size:
|
|
1028
|
+
"show-overlay": L(u),
|
|
1029
|
+
size: L(u) ? "200px" : `${L(r).drawerSize}px`,
|
|
896
1030
|
"size-draggable": {
|
|
897
1031
|
max: 450,
|
|
898
1032
|
min: 180
|
|
899
1033
|
},
|
|
900
|
-
onSizeDragEnd:
|
|
1034
|
+
onSizeDragEnd: p
|
|
901
1035
|
}, {
|
|
902
|
-
default:
|
|
1036
|
+
default: z(() => [T(sn, { class: "no_drawer_body_padding" })]),
|
|
903
1037
|
_: 1
|
|
904
1038
|
}, 8, [
|
|
905
1039
|
"visible",
|
|
@@ -907,30 +1041,27 @@ var on = V("login", () => {
|
|
|
907
1041
|
"show-overlay",
|
|
908
1042
|
"size"
|
|
909
1043
|
]),
|
|
910
|
-
|
|
1044
|
+
T(L(We), {
|
|
911
1045
|
ref_key: "contentRef",
|
|
912
|
-
ref:
|
|
1046
|
+
ref: d,
|
|
913
1047
|
class: "overflow-hidden"
|
|
914
1048
|
}, {
|
|
915
|
-
default:
|
|
1049
|
+
default: z(() => [T(L(e), {
|
|
916
1050
|
always: "",
|
|
917
|
-
"view-class":
|
|
918
|
-
...
|
|
919
|
-
"pt-8":
|
|
1051
|
+
"view-class": De(["relative flex flex-col", {
|
|
1052
|
+
...l.value,
|
|
1053
|
+
"pt-8": c.value
|
|
920
1054
|
}]),
|
|
921
1055
|
"view-style": {
|
|
922
1056
|
minWidth: "1200px",
|
|
923
|
-
minHeight: `${Math.max(
|
|
1057
|
+
minHeight: `${Math.max(L(f), 438)}px`
|
|
924
1058
|
}
|
|
925
1059
|
}, {
|
|
926
|
-
default:
|
|
927
|
-
default:
|
|
928
|
-
exclude:
|
|
929
|
-
include:
|
|
930
|
-
}, [(
|
|
931
|
-
default: B(() => [(N(), S(I(e), { class: "flex-auto" }))]),
|
|
932
|
-
_: 2
|
|
933
|
-
}, 1024))], 1032, ["exclude", "include"]))]),
|
|
1060
|
+
default: z(() => [T(cn, { ref: "breadcrumb" }, null, 512), T(i, null, {
|
|
1061
|
+
default: z(({ Component: e }) => [(M(), x(ve, {
|
|
1062
|
+
exclude: L(a).excludeKPname,
|
|
1063
|
+
include: o.value
|
|
1064
|
+
}, [(M(), x(F(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
934
1065
|
_: 1
|
|
935
1066
|
})]),
|
|
936
1067
|
_: 1
|
|
@@ -942,9 +1073,9 @@ var on = V("login", () => {
|
|
|
942
1073
|
}));
|
|
943
1074
|
};
|
|
944
1075
|
}
|
|
945
|
-
}), [["__scopeId", "data-v-
|
|
946
|
-
function
|
|
947
|
-
let n =
|
|
1076
|
+
}), [["__scopeId", "data-v-de5cbc76"]]), En = /* @__PURE__ */ new Set();
|
|
1077
|
+
function Dn(e, t) {
|
|
1078
|
+
let n = b(() => typeof e.body == "function" ? e.body(O) : e.body), r = {
|
|
948
1079
|
attach: "#app",
|
|
949
1080
|
closeOnEscKeydown: !1,
|
|
950
1081
|
closeOnOverlayClick: !1,
|
|
@@ -954,29 +1085,29 @@ function dn(e, t) {
|
|
|
954
1085
|
lazy: !0,
|
|
955
1086
|
sizeDraggable: !0,
|
|
956
1087
|
...e ?? {},
|
|
957
|
-
body: () =>
|
|
1088
|
+
body: () => O(vr, {}, { default: () => n.value })
|
|
958
1089
|
}, i, a = {
|
|
959
1090
|
...r,
|
|
960
1091
|
onClose: (e) => {
|
|
961
|
-
r.onClose?.(e),
|
|
1092
|
+
r.onClose?.(e), En.delete(i);
|
|
962
1093
|
}
|
|
963
1094
|
};
|
|
964
|
-
return delete a.closeWhenCloseAll, i =
|
|
1095
|
+
return delete a.closeWhenCloseAll, i = Je(a, t ?? m()), r.closeWhenCloseAll && En.add(i), i;
|
|
965
1096
|
}
|
|
966
|
-
var
|
|
967
|
-
return
|
|
1097
|
+
var On = function(...e) {
|
|
1098
|
+
return Dn(...e);
|
|
968
1099
|
};
|
|
969
|
-
|
|
970
|
-
|
|
1100
|
+
On.closeAll = () => {
|
|
1101
|
+
En.forEach((e) => {
|
|
971
1102
|
e.hide?.();
|
|
972
1103
|
});
|
|
973
1104
|
};
|
|
974
1105
|
// ../../packages/dlzn-ui/router/index.ts
|
|
975
|
-
function
|
|
1106
|
+
function kn() {
|
|
976
1107
|
return {
|
|
977
1108
|
children: [{
|
|
978
1109
|
children: [{
|
|
979
|
-
component:
|
|
1110
|
+
component: h["./profile/Index.vue"],
|
|
980
1111
|
meta: {
|
|
981
1112
|
fullScreen: !1,
|
|
982
1113
|
hidden: !0,
|
|
@@ -988,7 +1119,7 @@ function pn() {
|
|
|
988
1119
|
name: "Profile",
|
|
989
1120
|
path: "profile"
|
|
990
1121
|
}],
|
|
991
|
-
component:
|
|
1122
|
+
component: h["./Home.vue"],
|
|
992
1123
|
meta: {
|
|
993
1124
|
fullScreen: !1,
|
|
994
1125
|
hidden: !1,
|
|
@@ -1000,17 +1131,17 @@ function pn() {
|
|
|
1000
1131
|
name: "Home",
|
|
1001
1132
|
path: "home"
|
|
1002
1133
|
}],
|
|
1003
|
-
component:
|
|
1134
|
+
component: Tn,
|
|
1004
1135
|
name: "Index",
|
|
1005
1136
|
path: "/"
|
|
1006
1137
|
};
|
|
1007
1138
|
}
|
|
1008
|
-
var J =
|
|
1009
|
-
history:
|
|
1139
|
+
var J = Ct({
|
|
1140
|
+
history: wt(VITE_BASE_URL),
|
|
1010
1141
|
routes: [
|
|
1011
|
-
|
|
1142
|
+
kn(),
|
|
1012
1143
|
{
|
|
1013
|
-
component:
|
|
1144
|
+
component: h["./Login.vue"],
|
|
1014
1145
|
meta: {
|
|
1015
1146
|
fullScreen: !1,
|
|
1016
1147
|
hidden: !0,
|
|
@@ -1022,8 +1153,8 @@ var J = xt({
|
|
|
1022
1153
|
name: "Login",
|
|
1023
1154
|
path: "/login"
|
|
1024
1155
|
},
|
|
1025
|
-
...
|
|
1026
|
-
component:
|
|
1156
|
+
...h["./Register.vue"] === void 0 ? [] : [{
|
|
1157
|
+
component: h["./Register.vue"],
|
|
1027
1158
|
meta: {
|
|
1028
1159
|
fullScreen: !1,
|
|
1029
1160
|
hidden: !0,
|
|
@@ -1036,7 +1167,7 @@ var J = xt({
|
|
|
1036
1167
|
path: "/register"
|
|
1037
1168
|
}],
|
|
1038
1169
|
{
|
|
1039
|
-
component:
|
|
1170
|
+
component: h["./NotFound.vue"],
|
|
1040
1171
|
meta: {
|
|
1041
1172
|
fullScreen: !1,
|
|
1042
1173
|
hidden: !0,
|
|
@@ -1053,62 +1184,62 @@ var J = xt({
|
|
|
1053
1184
|
strict: !0
|
|
1054
1185
|
});
|
|
1055
1186
|
J.beforeEach(async (e) => {
|
|
1056
|
-
if (e.query._fromLeftTree === "true" &&
|
|
1187
|
+
if (e.query._fromLeftTree === "true" && _().add(e.name), !["Login", "Register"].includes(e.name)) return Sn().token === "" ? { name: "Login" } : an().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), J.resolve({
|
|
1057
1188
|
path: e.path,
|
|
1058
1189
|
query: e.query
|
|
1059
1190
|
}));
|
|
1060
1191
|
}), J.afterEach((e, t, n) => {
|
|
1061
|
-
|
|
1062
|
-
let { meta: r, name: i } = e, { fullScreen:
|
|
1063
|
-
document.title =
|
|
1064
|
-
let
|
|
1192
|
+
Jt.closeAll(), On.closeAll();
|
|
1193
|
+
let { meta: r, name: i } = e, { fullScreen: o, parentName: s, title: c } = r;
|
|
1194
|
+
document.title = c || H().appInfo.appName;
|
|
1195
|
+
let l = U();
|
|
1065
1196
|
if (![
|
|
1066
1197
|
"Login",
|
|
1067
1198
|
"NotFound",
|
|
1068
1199
|
"Register"
|
|
1069
|
-
].includes(i) && !
|
|
1070
|
-
let n =
|
|
1071
|
-
|
|
1200
|
+
].includes(i) && !o) {
|
|
1201
|
+
let n = s === t.name || e.query._fromLeftTree !== "true" ? t.name : void 0;
|
|
1202
|
+
l.add(n, {
|
|
1072
1203
|
name: i,
|
|
1073
1204
|
query: e.query
|
|
1074
1205
|
});
|
|
1075
1206
|
}
|
|
1076
|
-
|
|
1207
|
+
_().remove(i), VITE_MODE === "development" && (Tt(n, St.aborted) ? a.info("导航被中断") : Tt(n, St.cancelled) ? a.info("导航被取消,因为有一个新的导航") : Tt(n, St.duplicated) && a.info("导航被阻止,因为我们已经在目标位置了"));
|
|
1077
1208
|
});
|
|
1078
|
-
function
|
|
1209
|
+
function An(e) {
|
|
1079
1210
|
if (J.hasRoute(e)) return J.getRoutes().find((t) => t.name === e);
|
|
1080
1211
|
}
|
|
1081
1212
|
// ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
1082
|
-
var
|
|
1083
|
-
function
|
|
1213
|
+
var jn = 15e3, Mn = "网络错误,请稍后再试";
|
|
1214
|
+
function Nn(e, t = !1) {
|
|
1084
1215
|
let n = {};
|
|
1085
1216
|
return Object.keys(e).forEach((r) => {
|
|
1086
|
-
(!t ||
|
|
1217
|
+
(!t || l(e[r])) && (n[r] = e[r]);
|
|
1087
1218
|
}), n;
|
|
1088
1219
|
}
|
|
1089
|
-
function
|
|
1220
|
+
function Pn(e, t = !0) {
|
|
1090
1221
|
let n = {};
|
|
1091
1222
|
return Object.keys(e).forEach((r) => {
|
|
1092
|
-
(!t ||
|
|
1223
|
+
(!t || l(e[r])) && (n[r] = e[r]);
|
|
1093
1224
|
}), n;
|
|
1094
1225
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return new URLSearchParams(
|
|
1226
|
+
function Fn(e, t = !0) {
|
|
1227
|
+
return new URLSearchParams(Pn(e, t)).toString();
|
|
1097
1228
|
}
|
|
1098
|
-
function
|
|
1229
|
+
function In(e) {
|
|
1099
1230
|
let { data: t, response: n, useDownload: r } = e;
|
|
1100
|
-
if (typeof r == "string")
|
|
1231
|
+
if (typeof r == "string") X(t, r);
|
|
1101
1232
|
else {
|
|
1102
1233
|
let e = new URLSearchParams((n.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename");
|
|
1103
|
-
e ?
|
|
1234
|
+
e ? X(t, e) : p.error("返回的 response header 没有文件名");
|
|
1104
1235
|
}
|
|
1105
1236
|
}
|
|
1106
|
-
var
|
|
1237
|
+
var Y = Dt({
|
|
1107
1238
|
baseURL: VITE_BASE_URL,
|
|
1108
1239
|
beforeRequest(e) {
|
|
1109
1240
|
e.config.credentials = e.config.credentials ?? "omit";
|
|
1110
|
-
let [t, ...
|
|
1111
|
-
!e.url.startsWith("http") && !
|
|
1241
|
+
let [t, ...n] = VITE_API_PROXY_PREFIX_ARRAY;
|
|
1242
|
+
!e.url.startsWith("http") && !n.some((t) => At.join("/", e.url).startsWith(At.join("/", t, "/"))) && (e.url = At.join(t, e.url)), e.meta = {
|
|
1112
1243
|
use600Alert: !0,
|
|
1113
1244
|
useDataResult: !0,
|
|
1114
1245
|
useDownload: !1,
|
|
@@ -1125,109 +1256,170 @@ var X = wt({
|
|
|
1125
1256
|
useToken: !e.url.startsWith("http"),
|
|
1126
1257
|
...e.meta ?? {}
|
|
1127
1258
|
};
|
|
1128
|
-
let i =
|
|
1129
|
-
c ||
|
|
1259
|
+
let i = Sn(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: c, useLoading: l, useResponseBlob: u, useToken: d } = e.meta;
|
|
1260
|
+
c || H().requestActive(), d && (i.token ? e.config.headers.Authorization = i.token : e.abort()), l !== !1 && r.show(l === !0 ? void 0 : l);
|
|
1130
1261
|
let f = e.config.params;
|
|
1131
|
-
if (typeof f != "string" && (e.config.params =
|
|
1262
|
+
if (typeof f != "string" && (e.config.params = Fn(f, o)), yt(e.data) && (e.data = Nn(e.data, a)), s) {
|
|
1132
1263
|
let t = new FormData();
|
|
1133
1264
|
Object.keys(e.data).forEach((n) => {
|
|
1134
1265
|
t.append(n, e.data[n]);
|
|
1135
1266
|
}), e.data = t;
|
|
1136
1267
|
}
|
|
1137
|
-
e.config.timeout ===
|
|
1268
|
+
e.config.timeout === jn && (s || e.data instanceof FormData || u) && (e.config.timeout = 0);
|
|
1138
1269
|
},
|
|
1139
1270
|
cacheFor: null,
|
|
1140
|
-
requestAdapter:
|
|
1271
|
+
requestAdapter: Ot(),
|
|
1141
1272
|
responded: {
|
|
1142
1273
|
onComplete: (e) => {
|
|
1143
|
-
e.meta.useLoading !== !1 &&
|
|
1274
|
+
e.meta.useLoading !== !1 && r.hide();
|
|
1144
1275
|
},
|
|
1145
1276
|
onError: async (e, t) => {
|
|
1146
1277
|
let { useSysFailMsg: n } = t.meta;
|
|
1147
1278
|
if (e instanceof Error) {
|
|
1148
1279
|
let { message: t } = e;
|
|
1149
1280
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1150
|
-
if (t.toLowerCase().includes("timeout")) return n &&
|
|
1281
|
+
if (t.toLowerCase().includes("timeout")) return n && a.error("请求超时"), Promise.reject(e);
|
|
1151
1282
|
}
|
|
1152
|
-
return n &&
|
|
1283
|
+
return n && a.error(Mn), Promise.reject(e);
|
|
1153
1284
|
},
|
|
1154
1285
|
onSuccess: async (e, t) => {
|
|
1155
1286
|
if (typeof e == "string") return e;
|
|
1156
|
-
let { useDataResult: n, useDownload: r, useFailMsg: i, useResponseBlob: o, useResponseText: s, useSuccessMsg: c, useSysFailMsg: l, useToken:
|
|
1157
|
-
if (
|
|
1287
|
+
let { useDataResult: n, useDownload: r, useFailMsg: i, useResponseBlob: o, useResponseText: s, useSuccessMsg: c, useSysFailMsg: l, useToken: u } = t.meta, { headers: d, ok: f, status: m } = e;
|
|
1288
|
+
if (f === !1) {
|
|
1158
1289
|
if (l) {
|
|
1159
1290
|
let e = {
|
|
1160
1291
|
403: "当前操作没有权限",
|
|
1161
1292
|
404: "访问资源不存在",
|
|
1162
1293
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1163
|
-
}[
|
|
1164
|
-
|
|
1294
|
+
}[m] ?? Mn;
|
|
1295
|
+
a.error(e);
|
|
1165
1296
|
}
|
|
1166
1297
|
return Promise.reject(e);
|
|
1167
1298
|
}
|
|
1168
|
-
if (o && !
|
|
1299
|
+
if (o && !d.get("content-type")?.includes("application/json")) {
|
|
1169
1300
|
let t;
|
|
1170
1301
|
try {
|
|
1171
1302
|
t = await e.blob();
|
|
1172
1303
|
} catch (e) {
|
|
1173
|
-
return
|
|
1304
|
+
return p.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1174
1305
|
}
|
|
1175
|
-
return r !== !1 &&
|
|
1306
|
+
return r !== !1 && In({
|
|
1176
1307
|
data: t,
|
|
1177
1308
|
response: e,
|
|
1178
1309
|
useDownload: r
|
|
1179
1310
|
}), t;
|
|
1180
1311
|
}
|
|
1181
|
-
if (s && !
|
|
1312
|
+
if (s && !d.get("content-type")?.includes("application/json")) {
|
|
1182
1313
|
let t;
|
|
1183
1314
|
try {
|
|
1184
1315
|
t = await e.text();
|
|
1185
1316
|
} catch (e) {
|
|
1186
|
-
return
|
|
1317
|
+
return p.error("返回的 response 不能被text() 方法所解析"), Promise.reject(e);
|
|
1187
1318
|
}
|
|
1188
1319
|
return t;
|
|
1189
1320
|
}
|
|
1190
|
-
let
|
|
1321
|
+
let h;
|
|
1191
1322
|
try {
|
|
1192
|
-
|
|
1323
|
+
h = await e.json();
|
|
1193
1324
|
} catch (e) {
|
|
1194
|
-
return
|
|
1325
|
+
return p.error("返回的 response 不能被json() 方法所解析"), Promise.reject(e);
|
|
1195
1326
|
}
|
|
1196
|
-
if (
|
|
1197
|
-
let { code: t, data: s, msg: l } =
|
|
1327
|
+
if (h?.code !== void 0) {
|
|
1328
|
+
let { code: t, data: s, msg: l } = h;
|
|
1198
1329
|
if (t >= 400) {
|
|
1199
1330
|
if (t === 600) {
|
|
1200
|
-
if (
|
|
1201
|
-
|
|
1202
|
-
body: () =>
|
|
1331
|
+
if (Vn(l).then((e) => {
|
|
1332
|
+
V({
|
|
1333
|
+
body: () => O("div", { innerHTML: e }),
|
|
1203
1334
|
cancelBtn: null
|
|
1204
1335
|
});
|
|
1205
|
-
}), !o) return
|
|
1206
|
-
} else t === 401 &&
|
|
1207
|
-
return Promise.reject(
|
|
1336
|
+
}), !o) return h;
|
|
1337
|
+
} else t === 401 && u ? J.push({ name: "Login" }) : i !== !1 && a.error(i === !0 ? l : i);
|
|
1338
|
+
return Promise.reject(h);
|
|
1208
1339
|
}
|
|
1209
1340
|
{
|
|
1210
|
-
let i =
|
|
1341
|
+
let i = xt.alovaResCodeSuccessCb?.({
|
|
1211
1342
|
code: t,
|
|
1212
1343
|
data: s,
|
|
1213
1344
|
msg: l
|
|
1214
1345
|
});
|
|
1215
|
-
return i === void 0 ? (r !== !1 && (typeof r == "string" ?
|
|
1346
|
+
return i === void 0 ? (r !== !1 && (typeof r == "string" ? In({
|
|
1216
1347
|
data: s,
|
|
1217
1348
|
response: e,
|
|
1218
1349
|
useDownload: r
|
|
1219
|
-
}) :
|
|
1350
|
+
}) : p.error("下载失败,返回的不是一个有效的地址")), c && a(l), n ? s === void 0 ? h : s : h) : i;
|
|
1220
1351
|
}
|
|
1221
1352
|
}
|
|
1222
|
-
return
|
|
1353
|
+
return h;
|
|
1223
1354
|
}
|
|
1224
1355
|
},
|
|
1225
1356
|
shareRequest: !1,
|
|
1226
|
-
statesHook:
|
|
1227
|
-
timeout:
|
|
1228
|
-
})
|
|
1229
|
-
|
|
1230
|
-
|
|
1357
|
+
statesHook: kt,
|
|
1358
|
+
timeout: jn
|
|
1359
|
+
});
|
|
1360
|
+
// ../../packages/dlzn-ui/utils/tool.ts
|
|
1361
|
+
async function Ln(e, t) {
|
|
1362
|
+
let { default: n } = await import("crypto-js"), r = n.enc.Utf8.parse(t);
|
|
1363
|
+
return n.AES.decrypt(e, r, {
|
|
1364
|
+
mode: n.mode.ECB,
|
|
1365
|
+
padding: n.pad.Pkcs7
|
|
1366
|
+
}).toString(n.enc.Utf8);
|
|
1367
|
+
}
|
|
1368
|
+
async function Rn(e, t) {
|
|
1369
|
+
let { default: n } = await import("crypto-js"), r = n.enc.Utf8.parse(t), i = n.enc.Utf8.parse(e);
|
|
1370
|
+
return n.AES.encrypt(i, r, {
|
|
1371
|
+
mode: n.mode.ECB,
|
|
1372
|
+
padding: n.pad.Pkcs7
|
|
1373
|
+
}).toString();
|
|
1374
|
+
}
|
|
1375
|
+
async function zn(e, t) {
|
|
1376
|
+
let n = e.map((e) => new Promise((t) => {
|
|
1377
|
+
e.source instanceof Blob ? t({
|
|
1378
|
+
blob: e.source,
|
|
1379
|
+
name: e.name
|
|
1380
|
+
}) : Y.Get(e.source).then((n) => {
|
|
1381
|
+
t({
|
|
1382
|
+
blob: n,
|
|
1383
|
+
name: e.name
|
|
1384
|
+
});
|
|
1385
|
+
});
|
|
1386
|
+
}));
|
|
1387
|
+
return Promise.all(n).then((e) => e.length === 1 ? X(e[0].blob, e[0].name) : import("jszip").then(({ default: n }) => {
|
|
1388
|
+
let r = new n(), i = r.folder(t);
|
|
1389
|
+
return i === null ? Promise.reject("zip文件夹创建失败,请检查zipName是否合法") : (e.forEach((e) => {
|
|
1390
|
+
i.file(e.name, e.blob);
|
|
1391
|
+
}), r.generateAsync({ type: "blob" }).then((e) => X(e, t)));
|
|
1392
|
+
}));
|
|
1393
|
+
}
|
|
1394
|
+
async function Bn() {
|
|
1395
|
+
let { default: e } = await import("@fingerprintjs/fingerprintjs");
|
|
1396
|
+
return (await (await e.load()).get()).visitorId;
|
|
1397
|
+
}
|
|
1398
|
+
async function Vn(e, t) {
|
|
1399
|
+
let { default: n } = await import("dompurify");
|
|
1400
|
+
return n.sanitize(e, t);
|
|
1401
|
+
}
|
|
1402
|
+
async function X(e, t, n) {
|
|
1403
|
+
let { default: r } = await import("file-saver");
|
|
1404
|
+
r(e, t, n);
|
|
1405
|
+
}
|
|
1406
|
+
// ../../packages/dlzn-ui/hooks/useLabel/index.ts
|
|
1407
|
+
function Hn(e, t) {
|
|
1408
|
+
return b(() => {
|
|
1409
|
+
if (t === void 0) return e.value.map((e) => e.label);
|
|
1410
|
+
if (Array.isArray(t)) return e.value.length === 0 ? [] : Ht(e.value, t);
|
|
1411
|
+
if (e.value.length === 0) return "";
|
|
1412
|
+
if (typeof t == "string") {
|
|
1413
|
+
let n = t.split(",").filter(Boolean);
|
|
1414
|
+
if (n.length > 0) return Ht(e.value, n).join(",");
|
|
1415
|
+
}
|
|
1416
|
+
return Ht(e.value, t);
|
|
1417
|
+
});
|
|
1418
|
+
}
|
|
1419
|
+
// ../../packages/dlzn-ui/hooks/useDicOptions/index.ts
|
|
1420
|
+
var Un = /* @__PURE__ */ new Map();
|
|
1421
|
+
function Wn(e) {
|
|
1422
|
+
let t = Y.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
1231
1423
|
cssClass: e.cssClass,
|
|
1232
1424
|
dictType: e.dictType,
|
|
1233
1425
|
label: e.dictLabel,
|
|
@@ -1235,41 +1427,41 @@ function xn(e) {
|
|
|
1235
1427
|
value: e.dictValue
|
|
1236
1428
|
})));
|
|
1237
1429
|
e.forEach((e) => {
|
|
1238
|
-
|
|
1430
|
+
Un.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
1239
1431
|
});
|
|
1240
1432
|
}
|
|
1241
|
-
var
|
|
1242
|
-
function
|
|
1243
|
-
return
|
|
1433
|
+
var Gn = [];
|
|
1434
|
+
function Kn(e) {
|
|
1435
|
+
return Gn.includes(e) || Gn.push(e), new Promise((t) => {
|
|
1244
1436
|
setTimeout(() => {
|
|
1245
|
-
let n =
|
|
1246
|
-
n.length > 0 &&
|
|
1437
|
+
let n = Gn.filter((e) => !Un.has(e));
|
|
1438
|
+
n.length > 0 && Wn(n), Gn.length = 0, Un.get(e).then((e) => {
|
|
1247
1439
|
t(e);
|
|
1248
1440
|
});
|
|
1249
1441
|
});
|
|
1250
1442
|
});
|
|
1251
1443
|
}
|
|
1252
1444
|
var Z = /* @__PURE__ */ new Map();
|
|
1253
|
-
function
|
|
1254
|
-
|
|
1445
|
+
function qn() {
|
|
1446
|
+
Gn.length = 0, Un.clear(), Z.clear();
|
|
1255
1447
|
}
|
|
1256
|
-
function
|
|
1257
|
-
let n =
|
|
1258
|
-
return t === void 0 ?
|
|
1448
|
+
function Jn(e, t) {
|
|
1449
|
+
let n = Yn(e);
|
|
1450
|
+
return t === void 0 ? Hn(n) : Hn(n, t);
|
|
1259
1451
|
}
|
|
1260
|
-
function
|
|
1452
|
+
function Yn(e, t) {
|
|
1261
1453
|
let n;
|
|
1262
|
-
return Z.has(e) ? n = Z.get(e) : (n =
|
|
1454
|
+
return Z.has(e) ? n = Z.get(e) : (n = N([]), Z.set(e, n), Kn(e).then((e) => {
|
|
1263
1455
|
n.value = e;
|
|
1264
|
-
})),
|
|
1456
|
+
})), b(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1265
1457
|
}
|
|
1266
|
-
function
|
|
1267
|
-
|
|
1458
|
+
function Xn(e) {
|
|
1459
|
+
Un.delete(e), Z.has(e) && Kn(e).then((t) => {
|
|
1268
1460
|
Z.get(e).value = t;
|
|
1269
1461
|
});
|
|
1270
1462
|
}
|
|
1271
1463
|
// ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
1272
|
-
var
|
|
1464
|
+
var Zn = /* @__PURE__ */ E({
|
|
1273
1465
|
inheritAttrs: !1,
|
|
1274
1466
|
name: "TCheckboxGroup",
|
|
1275
1467
|
__name: "checkbox-group",
|
|
@@ -1296,44 +1488,44 @@ var On = /* @__PURE__ */ D({
|
|
|
1296
1488
|
},
|
|
1297
1489
|
emits: ["update:modelValue"],
|
|
1298
1490
|
setup(e, { emit: t }) {
|
|
1299
|
-
let n = e, r = t, i =
|
|
1300
|
-
function
|
|
1491
|
+
let n = e, r = t, i = D();
|
|
1492
|
+
function a(e) {
|
|
1301
1493
|
i.exposed = e ?? {};
|
|
1302
1494
|
}
|
|
1303
|
-
let
|
|
1495
|
+
let o = b(() => {
|
|
1304
1496
|
let e;
|
|
1305
|
-
return n.dicCode ? (n.options &&
|
|
1497
|
+
return n.dicCode ? (n.options && p.error("TCheckboxGroup: dicCode and options cannot be used together"), e = Yn(n.dicCode).value) : e = typeof n.options == "string" ? K(n.options).value : n.options, n.showCheckAll && (e === void 0 ? p.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
1306
1498
|
checkAll: !0,
|
|
1307
1499
|
label: "全选"
|
|
1308
1500
|
})), e;
|
|
1309
|
-
}),
|
|
1310
|
-
if (!Array.isArray(n.modelValue))
|
|
1311
|
-
else if (
|
|
1312
|
-
let e =
|
|
1313
|
-
if (e) return n.modelValue.map((e) =>
|
|
1314
|
-
if (t) return n.modelValue.map((e) =>
|
|
1501
|
+
}), s = b(() => {
|
|
1502
|
+
if (!Array.isArray(n.modelValue)) p.error("TCheckboxGroup: modelValue must be an array");
|
|
1503
|
+
else if (o.value !== void 0) {
|
|
1504
|
+
let e = o.value.every((e) => typeof (e.value ?? e) == "string"), t = o.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1505
|
+
if (e) return n.modelValue.map((e) => c(e) ? e : String(e));
|
|
1506
|
+
if (t) return n.modelValue.map((e) => u(e) ? Number(e) : e);
|
|
1315
1507
|
}
|
|
1316
1508
|
return n.modelValue;
|
|
1317
|
-
}),
|
|
1509
|
+
}), l = b(() => {
|
|
1318
1510
|
let e = { ...n };
|
|
1319
1511
|
return delete e.dicCode, delete e.showCheckAll, Object.keys(e).forEach((t) => {
|
|
1320
1512
|
e[t] === void 0 && delete e[t];
|
|
1321
1513
|
}), e;
|
|
1322
1514
|
});
|
|
1323
|
-
return (e, t) => (
|
|
1324
|
-
...
|
|
1325
|
-
options:
|
|
1326
|
-
modelValue:
|
|
1515
|
+
return (e, t) => (M(), x(F(O(L(He), A(e.$attrs, {
|
|
1516
|
+
...l.value,
|
|
1517
|
+
options: o.value,
|
|
1518
|
+
modelValue: s.value,
|
|
1327
1519
|
onChange: (...e) => {
|
|
1328
1520
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1329
1521
|
},
|
|
1330
|
-
ref:
|
|
1522
|
+
ref: a
|
|
1331
1523
|
}), e.$slots))));
|
|
1332
1524
|
}
|
|
1333
|
-
}),
|
|
1525
|
+
}), Qn = /* @__PURE__ */ E({
|
|
1334
1526
|
inheritAttrs: !1,
|
|
1335
1527
|
__name: "cron",
|
|
1336
|
-
props: /*@__PURE__*/
|
|
1528
|
+
props: /*@__PURE__*/ k({
|
|
1337
1529
|
modelValue: {},
|
|
1338
1530
|
adornment: {},
|
|
1339
1531
|
align: {},
|
|
@@ -1381,16 +1573,16 @@ var On = /* @__PURE__ */ D({
|
|
|
1381
1573
|
}, ce),
|
|
1382
1574
|
emits: ["update:modelValue"],
|
|
1383
1575
|
setup(e, { emit: t }) {
|
|
1384
|
-
let n = e, r = t, i =
|
|
1576
|
+
let n = e, r = t, i = Ce("isFormDisabled", b(() => !1)), a = Ce("isFormReadonly", b(() => !1)), o = b(() => {
|
|
1385
1577
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1386
1578
|
return {
|
|
1387
1579
|
...n,
|
|
1388
|
-
adornment: { append: () =>
|
|
1580
|
+
adornment: { append: () => O($, {
|
|
1389
1581
|
default: "cron",
|
|
1390
1582
|
onClick: () => {
|
|
1391
|
-
let i =
|
|
1392
|
-
|
|
1393
|
-
body: () =>
|
|
1583
|
+
let i = N(null);
|
|
1584
|
+
V({
|
|
1585
|
+
body: () => O(xe(() => import("../components/cron/src/Picker.mjs")), {
|
|
1394
1586
|
disabled: e,
|
|
1395
1587
|
modelValue: n.modelValue,
|
|
1396
1588
|
onVnodeMounted: (e) => {
|
|
@@ -1412,20 +1604,449 @@ var On = /* @__PURE__ */ D({
|
|
|
1412
1604
|
variant: "text"
|
|
1413
1605
|
}) }
|
|
1414
1606
|
};
|
|
1415
|
-
}), s =
|
|
1607
|
+
}), s = Pe(), c = D();
|
|
1416
1608
|
function l(e) {
|
|
1417
1609
|
c.exposed = e ?? {};
|
|
1418
1610
|
}
|
|
1419
|
-
let u =
|
|
1611
|
+
let u = b(() => A(s, {
|
|
1420
1612
|
...o.value,
|
|
1421
1613
|
onChange: (...e) => {
|
|
1422
1614
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1423
1615
|
},
|
|
1424
1616
|
ref: l
|
|
1425
1617
|
}));
|
|
1426
|
-
return (e, t) => (
|
|
1618
|
+
return (e, t) => (M(), x(L(le), j(Se(u.value)), null, 16));
|
|
1427
1619
|
}
|
|
1428
|
-
}),
|
|
1620
|
+
}), $n = /* @__PURE__ */ E({
|
|
1621
|
+
inheritAttrs: !1,
|
|
1622
|
+
__name: "date-picker",
|
|
1623
|
+
props: {
|
|
1624
|
+
modelValue: {},
|
|
1625
|
+
onBlur: {},
|
|
1626
|
+
onCalendarChange: {},
|
|
1627
|
+
onChange: {},
|
|
1628
|
+
onClear: {},
|
|
1629
|
+
onFocus: {},
|
|
1630
|
+
onPanelChange: {},
|
|
1631
|
+
onVisibleChange: {},
|
|
1632
|
+
status: { default: "default" },
|
|
1633
|
+
type: { default: "date" },
|
|
1634
|
+
showNow: { type: Boolean },
|
|
1635
|
+
showConfirm: { type: Boolean },
|
|
1636
|
+
showFooter: {
|
|
1637
|
+
type: Boolean,
|
|
1638
|
+
default: !1
|
|
1639
|
+
},
|
|
1640
|
+
showWeekNumber: { type: Boolean },
|
|
1641
|
+
ariaLabel: {},
|
|
1642
|
+
emptyValues: {},
|
|
1643
|
+
valueOnClear: {},
|
|
1644
|
+
disabledDate: {},
|
|
1645
|
+
cellClassName: {},
|
|
1646
|
+
shortcuts: {},
|
|
1647
|
+
arrowControl: { type: Boolean },
|
|
1648
|
+
tabindex: {},
|
|
1649
|
+
validateEvent: {
|
|
1650
|
+
type: Boolean,
|
|
1651
|
+
default: !0
|
|
1652
|
+
},
|
|
1653
|
+
unlinkPanels: {
|
|
1654
|
+
type: Boolean,
|
|
1655
|
+
default: !0
|
|
1656
|
+
},
|
|
1657
|
+
singlePanel: { type: Boolean },
|
|
1658
|
+
placement: {},
|
|
1659
|
+
fallbackPlacements: {},
|
|
1660
|
+
disabledHours: {},
|
|
1661
|
+
disabledMinutes: {},
|
|
1662
|
+
disabledSeconds: {},
|
|
1663
|
+
automaticDropdown: {
|
|
1664
|
+
type: Boolean,
|
|
1665
|
+
default: !0
|
|
1666
|
+
},
|
|
1667
|
+
id: {},
|
|
1668
|
+
name: {},
|
|
1669
|
+
popperClass: {},
|
|
1670
|
+
popperStyle: {},
|
|
1671
|
+
format: {},
|
|
1672
|
+
valueFormat: {},
|
|
1673
|
+
dateFormat: {},
|
|
1674
|
+
timeFormat: {},
|
|
1675
|
+
clearable: {
|
|
1676
|
+
type: Boolean,
|
|
1677
|
+
default: !0
|
|
1678
|
+
},
|
|
1679
|
+
clearIcon: { default: () => O(t, {
|
|
1680
|
+
icon: "carbon:close-filled",
|
|
1681
|
+
size: "16"
|
|
1682
|
+
}) },
|
|
1683
|
+
editable: { type: Boolean },
|
|
1684
|
+
saveOnBlur: {
|
|
1685
|
+
type: Boolean,
|
|
1686
|
+
default: void 0
|
|
1687
|
+
},
|
|
1688
|
+
prefixIcon: {},
|
|
1689
|
+
size: {},
|
|
1690
|
+
readonly: {
|
|
1691
|
+
type: Boolean,
|
|
1692
|
+
default: void 0
|
|
1693
|
+
},
|
|
1694
|
+
disabled: {
|
|
1695
|
+
type: Boolean,
|
|
1696
|
+
default: void 0
|
|
1697
|
+
},
|
|
1698
|
+
placeholder: {},
|
|
1699
|
+
popperOptions: { default: () => ({ modifiers: [{
|
|
1700
|
+
name: "offset",
|
|
1701
|
+
options: { offset: () => [0, 8] }
|
|
1702
|
+
}] }) },
|
|
1703
|
+
rangeSeparator: {},
|
|
1704
|
+
startPlaceholder: {},
|
|
1705
|
+
endPlaceholder: {},
|
|
1706
|
+
defaultTime: {},
|
|
1707
|
+
isRange: { type: Boolean }
|
|
1708
|
+
},
|
|
1709
|
+
emits: ["update:modelValue"],
|
|
1710
|
+
setup(e, { emit: t }) {
|
|
1711
|
+
let n = e, r = t, i = Ce("isFormDisabled", b(() => !1)), a = Ce("isFormReadonly", b(() => !1)), o = N(n.modelValue);
|
|
1712
|
+
R(() => n.modelValue, (e) => {
|
|
1713
|
+
o.value = e;
|
|
1714
|
+
}, { deep: !0 });
|
|
1715
|
+
function s() {
|
|
1716
|
+
if (n.defaultTime !== void 0) return n.defaultTime;
|
|
1717
|
+
switch (n.type) {
|
|
1718
|
+
case "datetimerange": return [y().startOf("day").toDate(), y().endOf("day").toDate()];
|
|
1719
|
+
default: return;
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
function l() {
|
|
1723
|
+
if (n.endPlaceholder !== void 0) return n.endPlaceholder;
|
|
1724
|
+
switch (n.type) {
|
|
1725
|
+
case "daterange": return "结束日期";
|
|
1726
|
+
case "datetimerange": return "结束时间";
|
|
1727
|
+
case "monthrange": return "结束月份";
|
|
1728
|
+
case "yearrange": return "结束年";
|
|
1729
|
+
default: return;
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
function u() {
|
|
1733
|
+
if (n.format !== void 0) return n.format;
|
|
1734
|
+
switch (n.type) {
|
|
1735
|
+
case "week": return "YYYY年第 ww 周";
|
|
1736
|
+
default: return;
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
function d() {
|
|
1740
|
+
if (n.placeholder !== void 0) return n.placeholder;
|
|
1741
|
+
switch (n.type) {
|
|
1742
|
+
case "datetime": return "请选择时间";
|
|
1743
|
+
case "month":
|
|
1744
|
+
case "months": return "请选择月";
|
|
1745
|
+
case "week": return "请选择周";
|
|
1746
|
+
case "year":
|
|
1747
|
+
case "years": return "请选择年";
|
|
1748
|
+
default: return "请选择日期";
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
function f() {
|
|
1752
|
+
if (n.shortcuts !== void 0) return n.shortcuts;
|
|
1753
|
+
if (n.disabledDate !== void 0 || n.disabledHours !== void 0 || n.disabledMinutes !== void 0 || n.disabledSeconds !== void 0) return [];
|
|
1754
|
+
switch (n.type) {
|
|
1755
|
+
case "date": return [
|
|
1756
|
+
{
|
|
1757
|
+
text: "今天",
|
|
1758
|
+
value: y().toDate()
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
text: "昨天",
|
|
1762
|
+
value: () => y().subtract(1, "day").toDate()
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
text: "一周前",
|
|
1766
|
+
value: () => y().subtract(1, "week").toDate()
|
|
1767
|
+
}
|
|
1768
|
+
];
|
|
1769
|
+
case "daterange": return [
|
|
1770
|
+
{
|
|
1771
|
+
text: "最近一周",
|
|
1772
|
+
value: () => [y().subtract(1, "week").toDate(), y().toDate()]
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
text: "本月",
|
|
1776
|
+
value: () => [y().startOf("month").toDate(), y().endOf("month").toDate()]
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
text: "上一个月",
|
|
1780
|
+
value: () => [y().subtract(1, "month").startOf("month").toDate(), y().subtract(1, "month").endOf("month").toDate()]
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
text: "最近一个月",
|
|
1784
|
+
value: () => [y().subtract(1, "month").toDate(), y().toDate()]
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
text: "最近三个月",
|
|
1788
|
+
value: () => [y().subtract(3, "month").toDate(), y().toDate()]
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
text: "最近半年",
|
|
1792
|
+
value: () => [y().subtract(6, "month").toDate(), y().toDate()]
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
text: "最近一年",
|
|
1796
|
+
value: () => [y().subtract(1, "year").toDate(), y().toDate()]
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
text: "最近两年",
|
|
1800
|
+
value: () => [y().subtract(2, "year").toDate(), y().toDate()]
|
|
1801
|
+
},
|
|
1802
|
+
{
|
|
1803
|
+
text: "最近三年",
|
|
1804
|
+
value: () => [y().subtract(3, "year").toDate(), y().toDate()]
|
|
1805
|
+
}
|
|
1806
|
+
];
|
|
1807
|
+
case "datetime": return [
|
|
1808
|
+
{
|
|
1809
|
+
text: "今天",
|
|
1810
|
+
value: y().toDate()
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
text: "今日开始",
|
|
1814
|
+
value: () => y().startOf("day").toDate()
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
text: "今日结束",
|
|
1818
|
+
value: () => y().endOf("day").toDate()
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
text: "昨天",
|
|
1822
|
+
value: () => y().subtract(1, "day").toDate()
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
text: "三天前",
|
|
1826
|
+
value: () => y().subtract(3, "day").toDate()
|
|
1827
|
+
},
|
|
1828
|
+
{
|
|
1829
|
+
text: "一周前",
|
|
1830
|
+
value: () => y().subtract(1, "week").toDate()
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
text: "一个月前",
|
|
1834
|
+
value: () => y().subtract(1, "month").toDate()
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
text: "本月初",
|
|
1838
|
+
value: () => y().startOf("month").toDate()
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
text: "本月末",
|
|
1842
|
+
value: () => y().endOf("month").toDate()
|
|
1843
|
+
}
|
|
1844
|
+
];
|
|
1845
|
+
case "datetimerange": return [
|
|
1846
|
+
{
|
|
1847
|
+
text: "今天",
|
|
1848
|
+
value: () => [y().startOf("day").toDate(), y().endOf("day").toDate()]
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
text: "昨天",
|
|
1852
|
+
value: () => [y().subtract(1, "day").startOf("day").toDate(), y().subtract(1, "day").endOf("day").toDate()]
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
text: "最近一周",
|
|
1856
|
+
value: () => [y().startOf("day").subtract(1, "week").toDate(), y().endOf("day").toDate()]
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
text: "本月",
|
|
1860
|
+
value: () => [y().startOf("month").toDate(), y().endOf("month").toDate()]
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
text: "上个月",
|
|
1864
|
+
value: () => [y().subtract(1, "month").startOf("month").toDate(), y().subtract(1, "month").endOf("month").toDate()]
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
text: "最近一个月",
|
|
1868
|
+
value: () => [y().startOf("day").subtract(1, "month").toDate(), y().endOf("day").toDate()]
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
text: "最近三个月",
|
|
1872
|
+
value: () => [y().startOf("day").subtract(3, "month").toDate(), y().endOf("day").toDate()]
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
text: "最近半年",
|
|
1876
|
+
value: () => [y().startOf("day").subtract(6, "month").toDate(), y().endOf("day").toDate()]
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
text: "最近一年",
|
|
1880
|
+
value: () => [y().startOf("day").subtract(1, "year").toDate(), y().endOf("day").toDate()]
|
|
1881
|
+
}
|
|
1882
|
+
];
|
|
1883
|
+
case "monthrange": return [
|
|
1884
|
+
{
|
|
1885
|
+
text: "本月",
|
|
1886
|
+
value: [y().toDate(), y().toDate()]
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
text: "上月",
|
|
1890
|
+
value: () => [y().subtract(1, "month").startOf("month").toDate(), y().subtract(1, "month").endOf("month").toDate()]
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
text: "今年至今",
|
|
1894
|
+
value: () => [y().startOf("year").toDate(), y().toDate()]
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
text: "最近一个月",
|
|
1898
|
+
value: () => [y().subtract(1, "month").toDate(), y().toDate()]
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
text: "最近三个月",
|
|
1902
|
+
value: () => [y().subtract(3, "month").toDate(), y().toDate()]
|
|
1903
|
+
},
|
|
1904
|
+
{
|
|
1905
|
+
text: "最近六个月",
|
|
1906
|
+
value: () => [y().subtract(6, "month").toDate(), y().toDate()]
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
text: "最近一年",
|
|
1910
|
+
value: () => [y().subtract(1, "year").toDate(), y().toDate()]
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
text: "最近三年",
|
|
1914
|
+
value: () => [y().subtract(3, "year").toDate(), y().toDate()]
|
|
1915
|
+
}
|
|
1916
|
+
];
|
|
1917
|
+
default: return [];
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
function p() {
|
|
1921
|
+
if (n.startPlaceholder !== void 0) return n.startPlaceholder;
|
|
1922
|
+
switch (n.type) {
|
|
1923
|
+
case "daterange": return "开始日期";
|
|
1924
|
+
case "datetimerange": return "开始时间";
|
|
1925
|
+
case "monthrange": return "开始月份";
|
|
1926
|
+
case "yearrange": return "开始年";
|
|
1927
|
+
default: return;
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
function m() {
|
|
1931
|
+
if (n.valueFormat !== void 0) return n.valueFormat;
|
|
1932
|
+
switch (n.type) {
|
|
1933
|
+
case "datetime":
|
|
1934
|
+
case "datetimerange": return "YYYY-MM-DD HH:mm:ss";
|
|
1935
|
+
case "month":
|
|
1936
|
+
case "monthrange":
|
|
1937
|
+
case "months": return "YYYY-MM";
|
|
1938
|
+
case "year":
|
|
1939
|
+
case "yearrange":
|
|
1940
|
+
case "years": return "YYYY";
|
|
1941
|
+
default: return "YYYY-MM-DD";
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
let h = b(() => {
|
|
1945
|
+
let e = {
|
|
1946
|
+
...n,
|
|
1947
|
+
defaultTime: s(),
|
|
1948
|
+
disabled: n.disabled ?? i.value,
|
|
1949
|
+
endPlaceholder: l(),
|
|
1950
|
+
format: u(),
|
|
1951
|
+
placeholder: d(),
|
|
1952
|
+
readonly: n.readonly ?? a.value,
|
|
1953
|
+
shortcuts: f(),
|
|
1954
|
+
startPlaceholder: p(),
|
|
1955
|
+
valueFormat: m()
|
|
1956
|
+
};
|
|
1957
|
+
return Object.keys(e).forEach((t) => {
|
|
1958
|
+
e[t] === void 0 && delete e[t];
|
|
1959
|
+
}), e;
|
|
1960
|
+
}), ee = D();
|
|
1961
|
+
function g(e) {
|
|
1962
|
+
ee.exposed = e ?? {};
|
|
1963
|
+
}
|
|
1964
|
+
return (t, i) => (M(), x(F(O(L(dt), A(t.$attrs, {
|
|
1965
|
+
...h.value,
|
|
1966
|
+
modelValue: o.value,
|
|
1967
|
+
"onUpdate:modelValue": (e) => {
|
|
1968
|
+
o.value = e;
|
|
1969
|
+
},
|
|
1970
|
+
onChange: (t) => {
|
|
1971
|
+
let i = t;
|
|
1972
|
+
L(c)(t) && (i = [
|
|
1973
|
+
"daterange",
|
|
1974
|
+
"dates",
|
|
1975
|
+
"datetimerange",
|
|
1976
|
+
"monthrange",
|
|
1977
|
+
"months",
|
|
1978
|
+
"yearrange",
|
|
1979
|
+
"years"
|
|
1980
|
+
].includes(e.type) ? [] : ""), r("update:modelValue", i), n.onChange?.(i);
|
|
1981
|
+
},
|
|
1982
|
+
ref: g
|
|
1983
|
+
}, { class: `t-is-${e.status}` }), t.$slots))));
|
|
1984
|
+
}
|
|
1985
|
+
}), er = {
|
|
1986
|
+
autoWidth: void 0,
|
|
1987
|
+
decimalPlaces: 2,
|
|
1988
|
+
disabled: void 0,
|
|
1989
|
+
min: 0,
|
|
1990
|
+
readonly: void 0,
|
|
1991
|
+
theme: "normal",
|
|
1992
|
+
useGrouping: !0
|
|
1993
|
+
}, tr = /*#__PURE__*/ v(/* @__PURE__ */ E({
|
|
1994
|
+
inheritAttrs: !1,
|
|
1995
|
+
name: "TInputNumber",
|
|
1996
|
+
__name: "input-number",
|
|
1997
|
+
props: /*@__PURE__*/ k({
|
|
1998
|
+
modelValue: {},
|
|
1999
|
+
theme: {},
|
|
2000
|
+
useGrouping: { type: Boolean },
|
|
2001
|
+
align: {},
|
|
2002
|
+
allowInputOverLimit: { type: Boolean },
|
|
2003
|
+
autoWidth: { type: Boolean },
|
|
2004
|
+
autofocus: { type: Boolean },
|
|
2005
|
+
decimalPlaces: {},
|
|
2006
|
+
disabled: { type: Boolean },
|
|
2007
|
+
format: { type: Function },
|
|
2008
|
+
inputProps: {},
|
|
2009
|
+
label: {},
|
|
2010
|
+
largeNumber: { type: Boolean },
|
|
2011
|
+
max: {},
|
|
2012
|
+
min: {},
|
|
2013
|
+
placeholder: {},
|
|
2014
|
+
readonly: { type: Boolean },
|
|
2015
|
+
size: {},
|
|
2016
|
+
status: {},
|
|
2017
|
+
step: {},
|
|
2018
|
+
suffix: {},
|
|
2019
|
+
tips: {},
|
|
2020
|
+
onBlur: { type: Function },
|
|
2021
|
+
onChange: { type: Function },
|
|
2022
|
+
onEnter: { type: Function },
|
|
2023
|
+
onFocus: { type: Function },
|
|
2024
|
+
onKeydown: { type: Function },
|
|
2025
|
+
onKeypress: { type: Function },
|
|
2026
|
+
onKeyup: { type: Function },
|
|
2027
|
+
onValidate: { type: Function }
|
|
2028
|
+
}, er),
|
|
2029
|
+
emits: ["update:modelValue"],
|
|
2030
|
+
setup(e, { emit: t }) {
|
|
2031
|
+
let n = e, r = t, i = b(() => {
|
|
2032
|
+
let e = { ...n };
|
|
2033
|
+
return e.autoWidth === void 0 && e.theme === "row" && (e.autoWidth = !0), e.useGrouping === !0 && e.format === void 0 && (e.format = (e) => d(e)), delete e.useGrouping, Object.keys(e).forEach((t) => {
|
|
2034
|
+
e[t] === void 0 && delete e[t];
|
|
2035
|
+
}), e;
|
|
2036
|
+
}), a = D();
|
|
2037
|
+
function o(e) {
|
|
2038
|
+
a.exposed = e ?? {};
|
|
2039
|
+
}
|
|
2040
|
+
return (e, t) => (M(), x(F(O(L(et), A(e.$attrs, {
|
|
2041
|
+
...i.value,
|
|
2042
|
+
onChange: (...e) => {
|
|
2043
|
+
let [t, ...i] = e, a = L(c)(t) ? "" : t;
|
|
2044
|
+
r("update:modelValue", a), n.onChange?.(a, ...i);
|
|
2045
|
+
},
|
|
2046
|
+
ref: o
|
|
2047
|
+
}), e.$slots))));
|
|
2048
|
+
}
|
|
2049
|
+
}), [["__scopeId", "data-v-73c206ea"]]), nr = /* @__PURE__ */ E({
|
|
1429
2050
|
inheritAttrs: !1,
|
|
1430
2051
|
name: "TRadioGroup",
|
|
1431
2052
|
__name: "radio-group",
|
|
@@ -1455,35 +2076,136 @@ var On = /* @__PURE__ */ D({
|
|
|
1455
2076
|
},
|
|
1456
2077
|
emits: ["update:modelValue"],
|
|
1457
2078
|
setup(e, { emit: t }) {
|
|
1458
|
-
let n = e, r = t, i =
|
|
1459
|
-
function
|
|
2079
|
+
let n = e, r = t, i = D();
|
|
2080
|
+
function a(e) {
|
|
1460
2081
|
i.exposed = e ?? {};
|
|
1461
2082
|
}
|
|
1462
|
-
let
|
|
2083
|
+
let o = b(() => n.dicCode ? (n.options && p.error("TRadioGroup: dicCode and options cannot be used together"), Yn(n.dicCode).value) : typeof n.options == "string" ? K(n.options).value : n.options), s = b(() => {
|
|
1463
2084
|
let e = { ...n };
|
|
1464
2085
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1465
2086
|
e[t] === void 0 && delete e[t];
|
|
1466
2087
|
}), e;
|
|
1467
|
-
}),
|
|
1468
|
-
if (
|
|
1469
|
-
let e =
|
|
1470
|
-
if (e) return
|
|
1471
|
-
if (t) return
|
|
2088
|
+
}), l = b(() => {
|
|
2089
|
+
if (o.value !== void 0 && !c(n.modelValue)) {
|
|
2090
|
+
let e = o.value.every((e) => typeof (e.value ?? e) == "string"), t = o.value.every((e) => typeof (e.value ?? e) == "number");
|
|
2091
|
+
if (e) return f(n.modelValue);
|
|
2092
|
+
if (t) return u(n.modelValue) ? Number(n.modelValue) : n.modelValue;
|
|
1472
2093
|
}
|
|
1473
2094
|
return n.modelValue;
|
|
1474
2095
|
});
|
|
1475
|
-
return (e, t) => (
|
|
1476
|
-
...
|
|
1477
|
-
options:
|
|
1478
|
-
modelValue:
|
|
2096
|
+
return (e, t) => (M(), x(F(O(L(it), A(e.$attrs, {
|
|
2097
|
+
...s.value,
|
|
2098
|
+
options: o.value,
|
|
2099
|
+
modelValue: l.value,
|
|
1479
2100
|
onChange: (...e) => {
|
|
1480
|
-
let [t, ...i] = e, a =
|
|
2101
|
+
let [t, ...i] = e, a = L(c)(t) ? "" : t;
|
|
1481
2102
|
r("update:modelValue", a), n.onChange?.(a, ...i);
|
|
1482
2103
|
},
|
|
1483
|
-
ref:
|
|
2104
|
+
ref: a
|
|
1484
2105
|
}), e.$slots))));
|
|
1485
2106
|
}
|
|
1486
|
-
}),
|
|
2107
|
+
}), rr = /* @__PURE__ */ E({
|
|
2108
|
+
inheritAttrs: !1,
|
|
2109
|
+
name: "TRangeInput",
|
|
2110
|
+
__name: "range-input",
|
|
2111
|
+
props: /*@__PURE__*/ Te({
|
|
2112
|
+
decimalPlaces: { default: 2 },
|
|
2113
|
+
isNumberRange: {
|
|
2114
|
+
type: Boolean,
|
|
2115
|
+
default: !0
|
|
2116
|
+
},
|
|
2117
|
+
max: { default: Infinity },
|
|
2118
|
+
min: { default: 0 },
|
|
2119
|
+
modelValue: {},
|
|
2120
|
+
activeIndex: {},
|
|
2121
|
+
borderless: { type: Boolean },
|
|
2122
|
+
clearable: { type: Boolean },
|
|
2123
|
+
disabled: {
|
|
2124
|
+
type: [Boolean, Array],
|
|
2125
|
+
default: void 0
|
|
2126
|
+
},
|
|
2127
|
+
format: {},
|
|
2128
|
+
inputProps: {},
|
|
2129
|
+
label: {},
|
|
2130
|
+
placeholder: {},
|
|
2131
|
+
prefixIcon: {},
|
|
2132
|
+
readonly: {
|
|
2133
|
+
type: Boolean,
|
|
2134
|
+
default: void 0
|
|
2135
|
+
},
|
|
2136
|
+
separator: {},
|
|
2137
|
+
showClearIconOnEmpty: { type: Boolean },
|
|
2138
|
+
size: {},
|
|
2139
|
+
status: {},
|
|
2140
|
+
suffix: {},
|
|
2141
|
+
suffixIcon: {},
|
|
2142
|
+
tips: {},
|
|
2143
|
+
onBlur: {},
|
|
2144
|
+
onChange: {},
|
|
2145
|
+
onClear: {},
|
|
2146
|
+
onClick: {},
|
|
2147
|
+
onEnter: {},
|
|
2148
|
+
onFocus: {},
|
|
2149
|
+
onMouseenter: {},
|
|
2150
|
+
onMouseleave: {}
|
|
2151
|
+
}, {
|
|
2152
|
+
modelValue: { default: () => [] },
|
|
2153
|
+
modelModifiers: {}
|
|
2154
|
+
}),
|
|
2155
|
+
emits: ["update:modelValue"],
|
|
2156
|
+
setup(e) {
|
|
2157
|
+
let t = e;
|
|
2158
|
+
function n(e, n = !0) {
|
|
2159
|
+
return e.map((e) => {
|
|
2160
|
+
let r = Number.parseFloat(String(e));
|
|
2161
|
+
if (Number.isFinite(r) === !1 || e === "") return "";
|
|
2162
|
+
if (String(e).endsWith(".") && !n) return `${r}.`;
|
|
2163
|
+
let i = Number(d(r, {
|
|
2164
|
+
maximumFractionDigits: n ? t.decimalPlaces : 100,
|
|
2165
|
+
useGrouping: !1
|
|
2166
|
+
}));
|
|
2167
|
+
return n ? Math.min(Math.max(i, t.min), t.max) : i;
|
|
2168
|
+
});
|
|
2169
|
+
}
|
|
2170
|
+
let r = Fe(e, "modelValue", {
|
|
2171
|
+
get: (e) => t.isNumberRange ? n(e, !1) : e,
|
|
2172
|
+
set: (e) => {
|
|
2173
|
+
if (t.isNumberRange) {
|
|
2174
|
+
let r = n(e, !1);
|
|
2175
|
+
return t.onChange?.(r), r;
|
|
2176
|
+
}
|
|
2177
|
+
return e;
|
|
2178
|
+
}
|
|
2179
|
+
}), i = b(() => {
|
|
2180
|
+
let e = { ...t };
|
|
2181
|
+
return delete e.isNumberRange, delete e.decimalPlaces, delete e.max, delete e.min, Object.keys(e).forEach((t) => {
|
|
2182
|
+
e[t] === void 0 && delete e[t];
|
|
2183
|
+
}), e;
|
|
2184
|
+
}), a = D();
|
|
2185
|
+
function o(e) {
|
|
2186
|
+
a.exposed = e ?? {};
|
|
2187
|
+
}
|
|
2188
|
+
return (t, a) => (M(), x(F(O(L(at), A(t.$attrs, {
|
|
2189
|
+
...i.value,
|
|
2190
|
+
ref: o,
|
|
2191
|
+
modelValue: r.value,
|
|
2192
|
+
onChange: (...t) => {
|
|
2193
|
+
e.isNumberRange ? r.value = t[0] : e.onChange?.(...t);
|
|
2194
|
+
},
|
|
2195
|
+
onBlur: (...t) => {
|
|
2196
|
+
if (e.isNumberRange) {
|
|
2197
|
+
let i = t[0];
|
|
2198
|
+
if (i.every((e) => !L(c)(e)) && Number(i[0]) > Number(i[1])) {
|
|
2199
|
+
r.value = n([i[0], i[0]]), e.onBlur?.(...t);
|
|
2200
|
+
return;
|
|
2201
|
+
}
|
|
2202
|
+
r.value = n([i[0], i[1]]);
|
|
2203
|
+
}
|
|
2204
|
+
e.onBlur?.(...t);
|
|
2205
|
+
}
|
|
2206
|
+
}), t.$slots))));
|
|
2207
|
+
}
|
|
2208
|
+
}), ir = {
|
|
1487
2209
|
clearable: !0,
|
|
1488
2210
|
disabled: void 0,
|
|
1489
2211
|
filterable: void 0,
|
|
@@ -1504,11 +2226,11 @@ var On = /* @__PURE__ */ D({
|
|
|
1504
2226
|
}),
|
|
1505
2227
|
showArrow: !0,
|
|
1506
2228
|
showCheckAll: !1
|
|
1507
|
-
},
|
|
2229
|
+
}, ar = /* @__PURE__ */ E({
|
|
1508
2230
|
inheritAttrs: !1,
|
|
1509
2231
|
name: "TSelect",
|
|
1510
2232
|
__name: "select",
|
|
1511
|
-
props: /*@__PURE__*/
|
|
2233
|
+
props: /*@__PURE__*/ k({
|
|
1512
2234
|
adornment: {},
|
|
1513
2235
|
dicCode: {},
|
|
1514
2236
|
modelValue: {},
|
|
@@ -1568,31 +2290,31 @@ var On = /* @__PURE__ */ D({
|
|
|
1568
2290
|
onPopupVisibleChange: { type: Function },
|
|
1569
2291
|
onRemove: { type: Function },
|
|
1570
2292
|
onSearch: { type: Function }
|
|
1571
|
-
},
|
|
2293
|
+
}, ir),
|
|
1572
2294
|
setup(e) {
|
|
1573
|
-
let t = e, n =
|
|
2295
|
+
let t = e, n = D();
|
|
1574
2296
|
function r(e) {
|
|
1575
2297
|
n.exposed = e ?? {};
|
|
1576
2298
|
}
|
|
1577
|
-
let i =
|
|
2299
|
+
let i = b(() => {
|
|
1578
2300
|
let e;
|
|
1579
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ?
|
|
2301
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? K(t.options).value : t.options : (t.options && p.error("TSelect: dicCode and options cannot be used together"), e = Yn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? p.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
1580
2302
|
checkAll: !0,
|
|
1581
2303
|
[t.keys?.label ?? "label"]: "全选"
|
|
1582
|
-
}) :
|
|
1583
|
-
}),
|
|
2304
|
+
}) : p.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
2305
|
+
}), a = b(() => {
|
|
1584
2306
|
if (i.value !== void 0) {
|
|
1585
2307
|
let e = i.value.flatMap((e) => e.children ?? [e]), n = t.keys?.value ?? "value", r = e.every((e) => typeof e[n] == "string"), a = e.every((e) => typeof e[n] == "number");
|
|
1586
2308
|
if (t.multiple) {
|
|
1587
2309
|
if (Array.isArray(t.modelValue)) {
|
|
1588
|
-
if (r) return t.modelValue.map((e) =>
|
|
1589
|
-
if (a) return t.modelValue.map((e) =>
|
|
2310
|
+
if (r) return t.modelValue.map((e) => c(e) ? e : String(e));
|
|
2311
|
+
if (a) return t.modelValue.map((e) => u(e) ? Number(e) : e);
|
|
1590
2312
|
}
|
|
1591
|
-
} else if (r) return
|
|
1592
|
-
else if (a) return
|
|
2313
|
+
} else if (r) return f(t.modelValue);
|
|
2314
|
+
else if (a) return u(t.modelValue) ? Number(t.modelValue) : t.modelValue;
|
|
1593
2315
|
}
|
|
1594
2316
|
return t.modelValue;
|
|
1595
|
-
}),
|
|
2317
|
+
}), o = b(() => {
|
|
1596
2318
|
let e = {
|
|
1597
2319
|
...t,
|
|
1598
2320
|
filterable: t.filterable ?? i.value.length > 8
|
|
@@ -1600,42 +2322,42 @@ var On = /* @__PURE__ */ D({
|
|
|
1600
2322
|
return delete e.dicCode, delete e.showCheckAll, delete e.adornment, Object.keys(e).forEach((t) => {
|
|
1601
2323
|
e[t] === void 0 && delete e[t];
|
|
1602
2324
|
}), e;
|
|
1603
|
-
}),
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
2325
|
+
}), s = N(0);
|
|
2326
|
+
Oe(() => {
|
|
2327
|
+
_t(n.exposed.$el, () => {
|
|
2328
|
+
s.value = n.exposed.$el.offsetWidth;
|
|
1607
2329
|
}, { box: "border-box" });
|
|
1608
2330
|
});
|
|
1609
|
-
let
|
|
1610
|
-
if (
|
|
1611
|
-
}),
|
|
1612
|
-
...
|
|
1613
|
-
modelValue:
|
|
2331
|
+
let l = b(() => {
|
|
2332
|
+
if (o.value.scroll?.type === "virtual" && i.value.length > (o.value.scroll?.threshold ?? 150)) return "300px";
|
|
2333
|
+
}), d = b(() => ({
|
|
2334
|
+
...o.value,
|
|
2335
|
+
modelValue: a.value,
|
|
1614
2336
|
onChange: (...e) => {
|
|
1615
|
-
let [n, ...r] = e, i =
|
|
2337
|
+
let [n, ...r] = e, i = c(n) ? "" : n;
|
|
1616
2338
|
t["onUpdate:modelValue"]?.(i), t.onChange?.(i, ...r);
|
|
1617
2339
|
},
|
|
1618
2340
|
options: i.value,
|
|
1619
2341
|
popupProps: {
|
|
1620
|
-
...
|
|
2342
|
+
...o.value.popupProps ?? {},
|
|
1621
2343
|
overlayInnerStyle: (e, t) => ({
|
|
1622
|
-
...
|
|
1623
|
-
minWidth: `${
|
|
2344
|
+
...l.value === void 0 ? {} : { height: l.value },
|
|
2345
|
+
minWidth: `${s.value}px`,
|
|
1624
2346
|
width: "auto",
|
|
1625
|
-
...typeof
|
|
2347
|
+
...typeof o.value.popupProps?.overlayInnerStyle == "function" ? o.value.popupProps.overlayInnerStyle(e, t) : o.value.popupProps?.overlayInnerStyle ?? {}
|
|
1626
2348
|
})
|
|
1627
2349
|
},
|
|
1628
2350
|
ref: r
|
|
1629
|
-
})), m =
|
|
1630
|
-
return (t, n) => e.adornment ? (
|
|
2351
|
+
})), m = $e;
|
|
2352
|
+
return (t, n) => e.adornment ? (M(), x(F(O(L(m), t.$attrs, {
|
|
1631
2353
|
...e.adornment,
|
|
1632
|
-
default: () =>
|
|
1633
|
-
})), { key: 0 })) : (
|
|
2354
|
+
default: () => O(L(ot), d.value, t.$slots)
|
|
2355
|
+
})), { key: 0 })) : (M(), x(F(O(L(ot), A(t.$attrs, d.value), t.$slots)), { key: 1 }));
|
|
1634
2356
|
}
|
|
1635
|
-
}),
|
|
2357
|
+
}), or = /* @__PURE__ */ E({
|
|
1636
2358
|
inheritAttrs: !1,
|
|
1637
2359
|
__name: "select-sys-user",
|
|
1638
|
-
props: /*@__PURE__*/
|
|
2360
|
+
props: /*@__PURE__*/ k({
|
|
1639
2361
|
modelValue: {},
|
|
1640
2362
|
adornment: {},
|
|
1641
2363
|
autoWidth: { type: Boolean },
|
|
@@ -1674,19 +2396,19 @@ var On = /* @__PURE__ */ D({
|
|
|
1674
2396
|
onMouseleave: { type: Function },
|
|
1675
2397
|
onPaste: { type: Function },
|
|
1676
2398
|
onRemove: { type: Function }
|
|
1677
|
-
},
|
|
2399
|
+
}, ue),
|
|
1678
2400
|
emits: ["update:modelValue"],
|
|
1679
2401
|
setup(e, { emit: t }) {
|
|
1680
|
-
let n = e, r = t, i =
|
|
2402
|
+
let n = e, r = t, i = Ce("isFormDisabled", b(() => !1)), a = Ce("isFormReadonly", b(() => !1)), o = b(() => {
|
|
1681
2403
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1682
2404
|
return {
|
|
1683
2405
|
...n,
|
|
1684
|
-
adornment: e || t ? void 0 : { append: () =>
|
|
2406
|
+
adornment: e || t ? void 0 : { append: () => O($, {
|
|
1685
2407
|
default: "选择用户",
|
|
1686
2408
|
onClick: () => {
|
|
1687
|
-
let e =
|
|
1688
|
-
|
|
1689
|
-
body: () =>
|
|
2409
|
+
let e = N(null);
|
|
2410
|
+
V({
|
|
2411
|
+
body: () => O(xe(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
1690
2412
|
max: n.max,
|
|
1691
2413
|
modelValue: n.modelValue,
|
|
1692
2414
|
onVnodeMounted: (t) => {
|
|
@@ -1707,11 +2429,11 @@ var On = /* @__PURE__ */ D({
|
|
|
1707
2429
|
variant: "text"
|
|
1708
2430
|
}) }
|
|
1709
2431
|
};
|
|
1710
|
-
}), s =
|
|
2432
|
+
}), s = Pe(), c = D();
|
|
1711
2433
|
function l(e) {
|
|
1712
2434
|
c.exposed = e ?? {};
|
|
1713
2435
|
}
|
|
1714
|
-
let u =
|
|
2436
|
+
let u = b(() => A(s, {
|
|
1715
2437
|
...o.value,
|
|
1716
2438
|
inputProps: {
|
|
1717
2439
|
readonly: !0,
|
|
@@ -1723,19 +2445,19 @@ var On = /* @__PURE__ */ D({
|
|
|
1723
2445
|
placeholder: "请选择用户",
|
|
1724
2446
|
ref: l
|
|
1725
2447
|
}));
|
|
1726
|
-
return (e, t) => (
|
|
1727
|
-
tag:
|
|
2448
|
+
return (e, t) => (M(), x(L(de), j(Se(u.value)), {
|
|
2449
|
+
tag: z(({ value: e }) => [w(I(L(yn)(e).value?.userName), 1)]),
|
|
1728
2450
|
_: 1
|
|
1729
2451
|
}, 16));
|
|
1730
2452
|
}
|
|
1731
|
-
}),
|
|
2453
|
+
}), sr = {
|
|
1732
2454
|
checkable: !1,
|
|
1733
2455
|
disabled: void 0,
|
|
1734
2456
|
expandOnClickNode: void 0,
|
|
1735
2457
|
hover: !0,
|
|
1736
2458
|
icon: () => (e, t) => {
|
|
1737
2459
|
let n = "";
|
|
1738
|
-
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 :
|
|
2460
|
+
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 : O($, {
|
|
1739
2461
|
icon: n,
|
|
1740
2462
|
shape: "circle",
|
|
1741
2463
|
size: "small",
|
|
@@ -1747,11 +2469,11 @@ var On = /* @__PURE__ */ D({
|
|
|
1747
2469
|
line: !0,
|
|
1748
2470
|
transition: !0,
|
|
1749
2471
|
valueMode: "all"
|
|
1750
|
-
},
|
|
2472
|
+
}, cr = /* @__PURE__ */ E({
|
|
1751
2473
|
inheritAttrs: !1,
|
|
1752
2474
|
name: "TTree",
|
|
1753
2475
|
__name: "tree",
|
|
1754
|
-
props: /*@__PURE__*/
|
|
2476
|
+
props: /*@__PURE__*/ k({
|
|
1755
2477
|
icon: { type: [Function, Boolean] },
|
|
1756
2478
|
"onUpdate:actived": { type: Function },
|
|
1757
2479
|
"onUpdate:expanded": { type: Function },
|
|
@@ -1805,23 +2527,23 @@ var On = /* @__PURE__ */ D({
|
|
|
1805
2527
|
onLoad: { type: Function },
|
|
1806
2528
|
onScroll: { type: Function },
|
|
1807
2529
|
treeStore: {}
|
|
1808
|
-
},
|
|
2530
|
+
}, sr),
|
|
1809
2531
|
setup(e, { expose: t }) {
|
|
1810
|
-
let n = e, r =
|
|
2532
|
+
let n = e, r = Ie(), i = b(() => {
|
|
1811
2533
|
let e = { ...n };
|
|
1812
2534
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1813
2535
|
e[t] === void 0 && delete e[t];
|
|
1814
2536
|
}), e;
|
|
1815
|
-
}), a =
|
|
2537
|
+
}), a = D();
|
|
1816
2538
|
function o(e) {
|
|
1817
2539
|
a.exposed = e ?? {};
|
|
1818
2540
|
}
|
|
1819
|
-
return t({}), (e, t) => (
|
|
2541
|
+
return t({}), (e, t) => (M(), x(F(O(L(st), A(e.$attrs, {
|
|
1820
2542
|
...i.value,
|
|
1821
2543
|
ref: o
|
|
1822
2544
|
}), e.$slots))));
|
|
1823
2545
|
}
|
|
1824
|
-
}),
|
|
2546
|
+
}), lr = /* @__PURE__ */ E({
|
|
1825
2547
|
inheritAttrs: !1,
|
|
1826
2548
|
name: "TTreeSelect",
|
|
1827
2549
|
__name: "tree-select",
|
|
@@ -1888,30 +2610,30 @@ var On = /* @__PURE__ */ D({
|
|
|
1888
2610
|
onSearch: {}
|
|
1889
2611
|
},
|
|
1890
2612
|
setup(e) {
|
|
1891
|
-
let t = e, n =
|
|
2613
|
+
let t = e, n = b(() => typeof t.data == "string" ? K(t.data).value : t.data), r = b(() => {
|
|
1892
2614
|
let e = { ...t };
|
|
1893
2615
|
return e.selectInputProps = {
|
|
1894
2616
|
minCollapsedNum: 2,
|
|
1895
2617
|
...e.selectInputProps ?? {}
|
|
1896
2618
|
}, e.treeProps = {
|
|
1897
|
-
...
|
|
2619
|
+
...sr,
|
|
1898
2620
|
checkable: !!t.multiple,
|
|
1899
2621
|
expandOnClickNode: !!t.multiple,
|
|
1900
|
-
icon:
|
|
2622
|
+
icon: sr.icon(),
|
|
1901
2623
|
...e.treeProps ?? {}
|
|
1902
2624
|
}, Object.keys(e).forEach((t) => {
|
|
1903
2625
|
e[t] === void 0 && delete e[t];
|
|
1904
2626
|
}), e;
|
|
1905
|
-
}), i =
|
|
2627
|
+
}), i = D();
|
|
1906
2628
|
function a(e) {
|
|
1907
2629
|
i.exposed = e ?? {};
|
|
1908
2630
|
}
|
|
1909
|
-
let o =
|
|
1910
|
-
return
|
|
1911
|
-
|
|
2631
|
+
let o = N(0);
|
|
2632
|
+
return Oe(() => {
|
|
2633
|
+
_t(i.exposed.$el, () => {
|
|
1912
2634
|
o.value = i.exposed.$el.offsetWidth;
|
|
1913
2635
|
}, { box: "border-box" });
|
|
1914
|
-
}), (e, t) => (
|
|
2636
|
+
}), (e, t) => (M(), x(F(O(L(ct), A(e.$attrs, {
|
|
1915
2637
|
...r.value,
|
|
1916
2638
|
data: n.value,
|
|
1917
2639
|
ref: a,
|
|
@@ -1925,10 +2647,10 @@ var On = /* @__PURE__ */ D({
|
|
|
1925
2647
|
}
|
|
1926
2648
|
}), e.$slots))));
|
|
1927
2649
|
}
|
|
1928
|
-
}),
|
|
2650
|
+
}), ur = ".xlsx,.xls", dr = { class: "flex items-center" }, fr = {
|
|
1929
2651
|
key: 1,
|
|
1930
2652
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1931
|
-
},
|
|
2653
|
+
}, pr = /*#__PURE__*/ v(/* @__PURE__ */ E({
|
|
1932
2654
|
inheritAttrs: !1,
|
|
1933
2655
|
name: "TUpload",
|
|
1934
2656
|
__name: "upload",
|
|
@@ -1937,7 +2659,7 @@ var On = /* @__PURE__ */ D({
|
|
|
1937
2659
|
"onUpdate:modelValue": {},
|
|
1938
2660
|
requestMethod: {},
|
|
1939
2661
|
abridgeName: {},
|
|
1940
|
-
accept: { default:
|
|
2662
|
+
accept: { default: ur },
|
|
1941
2663
|
allowUploadDuplicateFile: { type: Boolean },
|
|
1942
2664
|
autoUpload: { type: Boolean },
|
|
1943
2665
|
beforeAllFilesUpload: {},
|
|
@@ -1997,7 +2719,7 @@ var On = /* @__PURE__ */ D({
|
|
|
1997
2719
|
onWaitingUploadFilesChange: {}
|
|
1998
2720
|
},
|
|
1999
2721
|
setup(e, { expose: t }) {
|
|
2000
|
-
let n = e, r =
|
|
2722
|
+
let n = e, r = b(() => {
|
|
2001
2723
|
if (n.requestMethod !== void 0) return (e) => new Promise((t) => {
|
|
2002
2724
|
typeof n.requestMethod == "function" ? n.requestMethod(e).then((e) => {
|
|
2003
2725
|
t({
|
|
@@ -2010,7 +2732,7 @@ var On = /* @__PURE__ */ D({
|
|
|
2010
2732
|
response: {},
|
|
2011
2733
|
status: "fail"
|
|
2012
2734
|
});
|
|
2013
|
-
}) :
|
|
2735
|
+
}) : Y.Post(n.requestMethod.ossUrl ?? "common/uploadOss", {
|
|
2014
2736
|
biz: n.requestMethod.biz,
|
|
2015
2737
|
file: e.raw
|
|
2016
2738
|
}, { meta: { useFormData: !0 } }).then((e) => {
|
|
@@ -2028,50 +2750,50 @@ var On = /* @__PURE__ */ D({
|
|
|
2028
2750
|
});
|
|
2029
2751
|
});
|
|
2030
2752
|
function i() {
|
|
2031
|
-
typeof n.downloadTemplate == "string" ?
|
|
2753
|
+
typeof n.downloadTemplate == "string" ? X(n.downloadTemplate) : n.downloadTemplate.send();
|
|
2032
2754
|
}
|
|
2033
|
-
let a =
|
|
2755
|
+
let a = b(() => {
|
|
2034
2756
|
let e = { ...n };
|
|
2035
2757
|
return ["image", "image-flow"].includes(e.theme) && (e.accept = e.accept === ".xlsx,.xls" ? "image/*" : e.accept), Object.keys(e).forEach((t) => {
|
|
2036
2758
|
e[t] === void 0 && delete e[t];
|
|
2037
2759
|
}), delete e.downloadTemplate, e.theme === "file" && delete e.tips, e;
|
|
2038
|
-
}), o =
|
|
2760
|
+
}), o = D();
|
|
2039
2761
|
function s(e) {
|
|
2040
2762
|
o.exposed = e ?? {};
|
|
2041
2763
|
}
|
|
2042
|
-
return t({}), (t, o) => (
|
|
2764
|
+
return t({}), (t, o) => (M(), x(F(O(L(lt), A(t.$attrs, {
|
|
2043
2765
|
...a.value,
|
|
2044
2766
|
requestMethod: r.value,
|
|
2045
2767
|
ref: s
|
|
2046
|
-
}, { class: a.value.theme }))), null,
|
|
2768
|
+
}, { class: a.value.theme }))), null, be({ _: 2 }, [P(Object.keys(t.$slots), (e) => ({
|
|
2047
2769
|
name: e,
|
|
2048
|
-
fn:
|
|
2770
|
+
fn: z((n) => [je(t.$slots, e, j(Se(n)), void 0, !0)])
|
|
2049
2771
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
2050
2772
|
name: "trigger",
|
|
2051
|
-
fn:
|
|
2052
|
-
|
|
2053
|
-
default:
|
|
2773
|
+
fn: z(({ files: t }) => [ye("div", dr, [
|
|
2774
|
+
T(L($), { theme: "primary" }, {
|
|
2775
|
+
default: z(() => [w(I(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
2054
2776
|
_: 2
|
|
2055
2777
|
}, 1024),
|
|
2056
|
-
e.downloadTemplate ? (
|
|
2778
|
+
e.downloadTemplate ? (M(), x(L($), {
|
|
2057
2779
|
key: 0,
|
|
2058
2780
|
theme: "primary",
|
|
2059
2781
|
variant: "outline",
|
|
2060
|
-
onClick:
|
|
2782
|
+
onClick: Re(i, ["stop"])
|
|
2061
2783
|
}, {
|
|
2062
|
-
default:
|
|
2784
|
+
default: z(() => [...o[0] ||= [w("下载模板", -1)]]),
|
|
2063
2785
|
_: 1
|
|
2064
|
-
})) :
|
|
2065
|
-
n.tips ? (
|
|
2786
|
+
})) : S("v-if", !0),
|
|
2787
|
+
n.tips ? (M(), C("span", fr, I(n.tips), 1)) : S("v-if", !0)
|
|
2066
2788
|
])]),
|
|
2067
2789
|
key: "0"
|
|
2068
2790
|
} : void 0]), 1024));
|
|
2069
2791
|
}
|
|
2070
|
-
}), [["__scopeId", "data-v-51889a3b"]]),
|
|
2792
|
+
}), [["__scopeId", "data-v-51889a3b"]]), mr = /*#__PURE__*/ v(/* @__PURE__ */ E({
|
|
2071
2793
|
inheritAttrs: !1,
|
|
2072
2794
|
name: "TForm",
|
|
2073
2795
|
__name: "form",
|
|
2074
|
-
props: /*@__PURE__*/
|
|
2796
|
+
props: /*@__PURE__*/ k({
|
|
2075
2797
|
autoLabelWidth: { type: Boolean },
|
|
2076
2798
|
data: {},
|
|
2077
2799
|
items: {},
|
|
@@ -2095,9 +2817,9 @@ var On = /* @__PURE__ */ D({
|
|
|
2095
2817
|
onReset: { type: Function },
|
|
2096
2818
|
onSubmit: { type: Function },
|
|
2097
2819
|
onValidate: { type: Function }
|
|
2098
|
-
},
|
|
2820
|
+
}, Nt),
|
|
2099
2821
|
setup(e, { expose: t }) {
|
|
2100
|
-
let n = e, { customerFormItemComponentInitialValueMap:
|
|
2822
|
+
let n = e, { customerFormItemComponentInitialValueMap: r = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = xt, s = D(), l = N(null), u = b(() => n.items.map((e) => {
|
|
2101
2823
|
if (typeof e.__others == "function") {
|
|
2102
2824
|
let t = {
|
|
2103
2825
|
...e,
|
|
@@ -2110,11 +2832,11 @@ var On = /* @__PURE__ */ D({
|
|
|
2110
2832
|
}
|
|
2111
2833
|
return e;
|
|
2112
2834
|
}));
|
|
2113
|
-
function
|
|
2114
|
-
|
|
2835
|
+
function d() {
|
|
2836
|
+
u.value.forEach((e) => {
|
|
2115
2837
|
if (e.model !== void 0 && !Object.hasOwn(n.data, e.model)) {
|
|
2116
|
-
if (
|
|
2117
|
-
let t =
|
|
2838
|
+
if (r.has(e.component)) {
|
|
2839
|
+
let t = r.get(e.component);
|
|
2118
2840
|
n.data[e.model] = t(e);
|
|
2119
2841
|
return;
|
|
2120
2842
|
}
|
|
@@ -2137,36 +2859,36 @@ var On = /* @__PURE__ */ D({
|
|
|
2137
2859
|
}
|
|
2138
2860
|
});
|
|
2139
2861
|
}
|
|
2140
|
-
|
|
2862
|
+
R(u, d, {
|
|
2141
2863
|
deep: 2,
|
|
2142
2864
|
immediate: !0
|
|
2143
|
-
}),
|
|
2144
|
-
|
|
2865
|
+
}), R(() => n.data, () => {
|
|
2866
|
+
p.error("TForm: data is changed");
|
|
2145
2867
|
});
|
|
2146
|
-
let
|
|
2147
|
-
TCheckbox:
|
|
2148
|
-
TCheckboxGroup:
|
|
2868
|
+
let f = /* @__PURE__ */ new Map(), m = {
|
|
2869
|
+
TCheckbox: i,
|
|
2870
|
+
TCheckboxGroup: Zn,
|
|
2149
2871
|
TColorPicker: se,
|
|
2150
|
-
TCron:
|
|
2151
|
-
TDatePicker:
|
|
2872
|
+
TCron: Qn,
|
|
2873
|
+
TDatePicker: $n,
|
|
2152
2874
|
TInput: le,
|
|
2153
|
-
TInputNumber:
|
|
2154
|
-
TRadioGroup:
|
|
2155
|
-
TRangeInput:
|
|
2156
|
-
TSelect:
|
|
2157
|
-
TSelectSysUser:
|
|
2158
|
-
TSlider:
|
|
2159
|
-
TSwitch:
|
|
2160
|
-
TTagInput:
|
|
2161
|
-
TTextarea:
|
|
2162
|
-
TTree:
|
|
2163
|
-
TTreeSelect:
|
|
2164
|
-
TUpload:
|
|
2875
|
+
TInputNumber: tr,
|
|
2876
|
+
TRadioGroup: nr,
|
|
2877
|
+
TRangeInput: rr,
|
|
2878
|
+
TSelect: ar,
|
|
2879
|
+
TSelectSysUser: or,
|
|
2880
|
+
TSlider: fe,
|
|
2881
|
+
TSwitch: pe,
|
|
2882
|
+
TTagInput: de,
|
|
2883
|
+
TTextarea: me,
|
|
2884
|
+
TTree: cr,
|
|
2885
|
+
TTreeSelect: lr,
|
|
2886
|
+
TUpload: pr
|
|
2165
2887
|
};
|
|
2166
2888
|
function h(e) {
|
|
2167
|
-
return typeof e == "string" ? o.has(e) ? (
|
|
2889
|
+
return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e, xe(o.get(e))), f.get(e)) : m[e] : le;
|
|
2168
2890
|
}
|
|
2169
|
-
function
|
|
2891
|
+
function ee(e) {
|
|
2170
2892
|
let t = {};
|
|
2171
2893
|
for (let n in e) !n.startsWith("_") && ![
|
|
2172
2894
|
"component",
|
|
@@ -2175,7 +2897,7 @@ var On = /* @__PURE__ */ D({
|
|
|
2175
2897
|
].includes(n) && (t[n] = e[n]);
|
|
2176
2898
|
return t;
|
|
2177
2899
|
}
|
|
2178
|
-
function
|
|
2900
|
+
function g(e) {
|
|
2179
2901
|
let t = {};
|
|
2180
2902
|
for (let n in e) n.startsWith("_") && (t[n.slice(1)] = e[n]);
|
|
2181
2903
|
let r = [
|
|
@@ -2194,7 +2916,7 @@ var On = /* @__PURE__ */ D({
|
|
|
2194
2916
|
whitespace: !0
|
|
2195
2917
|
}), t;
|
|
2196
2918
|
}
|
|
2197
|
-
let
|
|
2919
|
+
let _ = b(() => {
|
|
2198
2920
|
let e = { ...n };
|
|
2199
2921
|
if (e.rules !== void 0) {
|
|
2200
2922
|
let t = {};
|
|
@@ -2212,22 +2934,22 @@ var On = /* @__PURE__ */ D({
|
|
|
2212
2934
|
return delete e.items, delete e.msgErrorWhenValidate, delete e.autoLabelWidth, Object.keys(e).forEach((t) => {
|
|
2213
2935
|
e[t] === void 0 && delete e[t];
|
|
2214
2936
|
}), e;
|
|
2215
|
-
}),
|
|
2937
|
+
}), te = () => {
|
|
2216
2938
|
let e = { ...n.data };
|
|
2217
|
-
return
|
|
2939
|
+
return u.value.forEach((t) => {
|
|
2218
2940
|
t.show === !1 && delete e[t.model];
|
|
2219
2941
|
}), e;
|
|
2220
2942
|
};
|
|
2221
|
-
function
|
|
2943
|
+
function ne(e) {
|
|
2222
2944
|
if (e !== null) {
|
|
2223
2945
|
let t = e;
|
|
2224
2946
|
if (!t.validate._alreadyReplace) {
|
|
2225
2947
|
let e = t.validate;
|
|
2226
2948
|
t.validate = (...t) => new Promise((r, i) => {
|
|
2227
2949
|
e(...t).then((e) => {
|
|
2228
|
-
e === !0 ? r(
|
|
2950
|
+
e === !0 ? r(te()) : (n.msgErrorWhenValidate && Object.keys(e).forEach((t) => {
|
|
2229
2951
|
e[t].forEach((e) => {
|
|
2230
|
-
e.result === !1 &&
|
|
2952
|
+
e.result === !1 && a.error(e.message);
|
|
2231
2953
|
});
|
|
2232
2954
|
}), i(e));
|
|
2233
2955
|
});
|
|
@@ -2237,7 +2959,7 @@ var On = /* @__PURE__ */ D({
|
|
|
2237
2959
|
let e = t.validateOnly;
|
|
2238
2960
|
t.validateOnly = (...t) => new Promise((n, r) => {
|
|
2239
2961
|
e(...t).then((e) => {
|
|
2240
|
-
e === !0 ? n(
|
|
2962
|
+
e === !0 ? n(te()) : r(e);
|
|
2241
2963
|
});
|
|
2242
2964
|
}), t.validateOnly._alreadyReplace = !0;
|
|
2243
2965
|
}
|
|
@@ -2247,31 +2969,31 @@ var On = /* @__PURE__ */ D({
|
|
|
2247
2969
|
e(...t);
|
|
2248
2970
|
}, t.clearValidate._alreadyReplace = !0;
|
|
2249
2971
|
}
|
|
2250
|
-
t.getFormData =
|
|
2251
|
-
let { ignoreKeys: r = [], isNotFalsy: i = !0, numberToStringKeys: a = [], override: o = {}, splitToArrKeys:
|
|
2972
|
+
t.getFormData = te, t.setFormData = (e, t) => {
|
|
2973
|
+
let { ignoreKeys: r = [], isNotFalsy: i = !0, numberToStringKeys: a = [], override: o = {}, splitToArrKeys: s = [] } = t ?? {};
|
|
2252
2974
|
Object.keys(n.data).forEach((t) => {
|
|
2253
|
-
r.includes(t) || (
|
|
2975
|
+
r.includes(t) || (s.includes(t) ? n.data[t] = typeof e[t] == "string" ? e[t].split(",").filter(Boolean) : [] : i && c(e[t]) || (n.data[t] = e[t]), a.includes(t) && typeof n.data[t] == "number" && (n.data[t] = String(n.data[t])));
|
|
2254
2976
|
}), Object.assign(n.data, o);
|
|
2255
2977
|
};
|
|
2256
2978
|
}
|
|
2257
2979
|
let t = e ?? {};
|
|
2258
|
-
l.value = t,
|
|
2980
|
+
l.value = t, s.exposed = t;
|
|
2259
2981
|
}
|
|
2260
|
-
let
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2982
|
+
let re = Ne();
|
|
2983
|
+
Oe(() => {
|
|
2984
|
+
re.value = s.exposed.$el.getElementsByClassName("t-form__label"), ie(), gt(s.exposed.$el, () => {
|
|
2985
|
+
ie();
|
|
2264
2986
|
}, {
|
|
2265
2987
|
attributeFilter: ["class"],
|
|
2266
2988
|
characterData: !0,
|
|
2267
2989
|
childList: !0,
|
|
2268
2990
|
subtree: !0
|
|
2269
|
-
}),
|
|
2270
|
-
|
|
2991
|
+
}), _t(s.exposed.$el, () => {
|
|
2992
|
+
ie();
|
|
2271
2993
|
});
|
|
2272
2994
|
});
|
|
2273
|
-
function
|
|
2274
|
-
let e = [...
|
|
2995
|
+
function ie() {
|
|
2996
|
+
let e = [...re.value];
|
|
2275
2997
|
if (e.forEach((e) => {
|
|
2276
2998
|
e.style.minWidth = "auto";
|
|
2277
2999
|
}), n.labelAlign === "top" || !n.autoLabelWidth) return;
|
|
@@ -2282,29 +3004,29 @@ var On = /* @__PURE__ */ D({
|
|
|
2282
3004
|
e.style.minWidth = `${t}px`;
|
|
2283
3005
|
});
|
|
2284
3006
|
}
|
|
2285
|
-
return
|
|
2286
|
-
...
|
|
2287
|
-
ref:
|
|
3007
|
+
return ke("formData", n.data), ke("formExposed", l), ke("isFormDisabled", b(() => n.disabled)), ke("isFormReadonly", b(() => n.readonly)), t({}), (t, n) => (M(), C(_e, null, [S(" eslint-disable vue/no-mutating-props "), (M(), x(F(L(Ye)), A(A(t.$attrs, {
|
|
3008
|
+
..._.value,
|
|
3009
|
+
ref: ne
|
|
2288
3010
|
}), { "label-width": "fit-content" }), {
|
|
2289
|
-
default:
|
|
2290
|
-
default:
|
|
3011
|
+
default: z(() => [(M(!0), C(_e, null, P(u.value.filter((e) => e.show !== !1), (n) => (M(), x(L(Xe), A({ key: n.model ?? n.slot }, { ref_for: !0 }, A({ ...g(n) }, { class: { no_label_item: L(c)(n._label) } }), { name: n.model }), {
|
|
3012
|
+
default: z(() => [n.slot ? je(t.$slots, n.slot, {}, void 0, !0, 0) : (M(), x(F(h(n.component)), A({
|
|
2291
3013
|
key: 1,
|
|
2292
3014
|
modelValue: e.data[n.model],
|
|
2293
3015
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
2294
|
-
}, { ref_for: !0 },
|
|
3016
|
+
}, { ref_for: !0 }, ee(n)), null, 16, ["modelValue", "onUpdate:modelValue"]))]),
|
|
2295
3017
|
_: 2
|
|
2296
3018
|
}, 1040, ["name"]))), 128))]),
|
|
2297
3019
|
_: 3
|
|
2298
3020
|
}, 16))], 2112));
|
|
2299
3021
|
}
|
|
2300
|
-
}), [["__scopeId", "data-v-761be9bc"]]),
|
|
3022
|
+
}), [["__scopeId", "data-v-761be9bc"]]), hr = /* @__PURE__ */ E({
|
|
2301
3023
|
__name: "ResetPwd",
|
|
2302
3024
|
props: { showFooter: {
|
|
2303
3025
|
type: Boolean,
|
|
2304
3026
|
default: !0
|
|
2305
3027
|
} },
|
|
2306
3028
|
setup(e, { expose: t }) {
|
|
2307
|
-
let n =
|
|
3029
|
+
let n = B(), r = [
|
|
2308
3030
|
{
|
|
2309
3031
|
_label: "旧密码",
|
|
2310
3032
|
_required: !0,
|
|
@@ -2316,8 +3038,8 @@ var On = /* @__PURE__ */ D({
|
|
|
2316
3038
|
_label: "新密码",
|
|
2317
3039
|
_required: !0,
|
|
2318
3040
|
_rules: [{
|
|
2319
|
-
message:
|
|
2320
|
-
pattern:
|
|
3041
|
+
message: ge,
|
|
3042
|
+
pattern: he
|
|
2321
3043
|
}],
|
|
2322
3044
|
component: "TInput",
|
|
2323
3045
|
model: "newPassword",
|
|
@@ -2335,13 +3057,13 @@ var On = /* @__PURE__ */ D({
|
|
|
2335
3057
|
type: "password"
|
|
2336
3058
|
},
|
|
2337
3059
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
2338
|
-
], i =
|
|
3060
|
+
], i = Le("form");
|
|
2339
3061
|
function a() {
|
|
2340
|
-
|
|
3062
|
+
U().close(n.name);
|
|
2341
3063
|
}
|
|
2342
3064
|
async function o() {
|
|
2343
3065
|
let e = await i.value.validate();
|
|
2344
|
-
await
|
|
3066
|
+
await Y.Put("system/user/profile/updatePwd", void 0, {
|
|
2345
3067
|
meta: {
|
|
2346
3068
|
useLoading: "保存中...",
|
|
2347
3069
|
useSuccessMsg: !0
|
|
@@ -2350,23 +3072,23 @@ var On = /* @__PURE__ */ D({
|
|
|
2350
3072
|
newPassword: e.newPassword,
|
|
2351
3073
|
oldPassword: e.oldPassword
|
|
2352
3074
|
}
|
|
2353
|
-
}),
|
|
3075
|
+
}), Sn().logout();
|
|
2354
3076
|
}
|
|
2355
|
-
return t({ handleSubmit: o }), (e, t) => (
|
|
3077
|
+
return t({ handleSubmit: o }), (e, t) => (M(), x(L(mr), {
|
|
2356
3078
|
ref: "form",
|
|
2357
3079
|
items: r,
|
|
2358
3080
|
"label-align": "right",
|
|
2359
3081
|
layout: "vertical"
|
|
2360
3082
|
}, {
|
|
2361
|
-
footer:
|
|
2362
|
-
default:
|
|
3083
|
+
footer: z(() => [T(L($), { onClick: o }, {
|
|
3084
|
+
default: z(() => [...t[0] ||= [w("保存", -1)]]),
|
|
2363
3085
|
_: 1
|
|
2364
|
-
}),
|
|
3086
|
+
}), T(L($), {
|
|
2365
3087
|
class: "ml-4!",
|
|
2366
3088
|
theme: "default",
|
|
2367
3089
|
onClick: a
|
|
2368
3090
|
}, {
|
|
2369
|
-
default:
|
|
3091
|
+
default: z(() => [...t[1] ||= [w("关闭", -1)]]),
|
|
2370
3092
|
_: 1
|
|
2371
3093
|
})]),
|
|
2372
3094
|
_: 1
|
|
@@ -2374,35 +3096,35 @@ var On = /* @__PURE__ */ D({
|
|
|
2374
3096
|
}
|
|
2375
3097
|
});
|
|
2376
3098
|
// ../../packages/dlzn-ui/store/modules/user.ts
|
|
2377
|
-
function
|
|
2378
|
-
return
|
|
3099
|
+
function gr() {
|
|
3100
|
+
return Y.Get("getInfo", { meta: {
|
|
2379
3101
|
useFailMsg: "获取用户信息失败",
|
|
2380
3102
|
useLoading: "正在获取用户信息..."
|
|
2381
3103
|
} });
|
|
2382
3104
|
}
|
|
2383
|
-
var
|
|
3105
|
+
var _r = {
|
|
2384
3106
|
admin: !1,
|
|
2385
3107
|
dept: { deptName: "" },
|
|
2386
3108
|
needChangePwd: 0,
|
|
2387
3109
|
nickName: "",
|
|
2388
3110
|
userId: "",
|
|
2389
3111
|
userName: "",
|
|
2390
|
-
...
|
|
2391
|
-
}, Q =
|
|
2392
|
-
let e =
|
|
3112
|
+
...xt.defaultUserInfo ?? {}
|
|
3113
|
+
}, Q = bt("user", () => {
|
|
3114
|
+
let e = N(vt(_r)), t = N([]), n = N([]);
|
|
2393
3115
|
function r() {
|
|
2394
|
-
e.value =
|
|
3116
|
+
e.value = vt(_r), t.value = [], n.value = [];
|
|
2395
3117
|
}
|
|
2396
|
-
let i =
|
|
3118
|
+
let i = b(() => e.value.admin), a = N("");
|
|
2397
3119
|
async function o(r = !0) {
|
|
2398
|
-
let i = await
|
|
2399
|
-
e.value = i.user, a.value !== e.value.userId &&
|
|
3120
|
+
let i = await gr();
|
|
3121
|
+
e.value = i.user, a.value !== e.value.userId && U().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await an().getRouters();
|
|
2400
3122
|
}
|
|
2401
|
-
|
|
2402
|
-
e === 1 && VITE_FORCE_PWD_CHANGE &&
|
|
2403
|
-
let e =
|
|
2404
|
-
|
|
2405
|
-
body: () =>
|
|
3123
|
+
R(() => e.value.needChangePwd, (e) => {
|
|
3124
|
+
e === 1 && VITE_FORCE_PWD_CHANGE && Ee(() => {
|
|
3125
|
+
let e = N(null);
|
|
3126
|
+
V({
|
|
3127
|
+
body: () => O(hr, {
|
|
2406
3128
|
labelAlign: "top",
|
|
2407
3129
|
ref: e,
|
|
2408
3130
|
showFooter: !1
|
|
@@ -2433,11 +3155,11 @@ var Wn = {
|
|
|
2433
3155
|
roles: n,
|
|
2434
3156
|
userInfo: e
|
|
2435
3157
|
};
|
|
2436
|
-
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/
|
|
3158
|
+
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ v(/* @__PURE__ */ E({
|
|
2437
3159
|
inheritAttrs: !1,
|
|
2438
3160
|
name: "TButton",
|
|
2439
3161
|
__name: "button",
|
|
2440
|
-
props: /*@__PURE__*/
|
|
3162
|
+
props: /*@__PURE__*/ k({
|
|
2441
3163
|
autoIcon: { type: Boolean },
|
|
2442
3164
|
autoLoading: { type: Boolean },
|
|
2443
3165
|
autoTheme: { type: Boolean },
|
|
@@ -2474,9 +3196,9 @@ var Wn = {
|
|
|
2474
3196
|
Object,
|
|
2475
3197
|
Array
|
|
2476
3198
|
] }
|
|
2477
|
-
},
|
|
2478
|
-
setup(
|
|
2479
|
-
let i =
|
|
3199
|
+
}, Mt),
|
|
3200
|
+
setup(e) {
|
|
3201
|
+
let i = e, a = N("");
|
|
2480
3202
|
function o() {
|
|
2481
3203
|
if (!i.autoTheme || a.value.trim() === "") return {};
|
|
2482
3204
|
let e = /* @__PURE__ */ new Map([
|
|
@@ -2498,17 +3220,17 @@ var Wn = {
|
|
|
2498
3220
|
}
|
|
2499
3221
|
return t;
|
|
2500
3222
|
}
|
|
2501
|
-
let s =
|
|
2502
|
-
|
|
3223
|
+
let s = N(!1), c = r.isLoading, l = N(null), { focused: u } = ht(l), d, f;
|
|
3224
|
+
R(c, (e) => {
|
|
2503
3225
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2504
3226
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
2505
3227
|
}, 150)) : d === void 0 ? f = setTimeout(() => {
|
|
2506
3228
|
s.value = !1;
|
|
2507
3229
|
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
2508
|
-
}, { immediate: !0 }),
|
|
3230
|
+
}, { immediate: !0 }), R(u, (e) => {
|
|
2509
3231
|
e && c.value && (s.value = !0);
|
|
2510
3232
|
});
|
|
2511
|
-
let p =
|
|
3233
|
+
let p = b(() => i.loading === void 0 ? i.autoLoading ? s.value : !1 : i.loading), m = b(() => {
|
|
2512
3234
|
let e = {
|
|
2513
3235
|
...i,
|
|
2514
3236
|
...o(),
|
|
@@ -2517,15 +3239,15 @@ var Wn = {
|
|
|
2517
3239
|
return Object.keys(e).forEach((t) => {
|
|
2518
3240
|
e[t] === void 0 && delete e[t];
|
|
2519
3241
|
}), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
|
|
2520
|
-
}), h =
|
|
2521
|
-
function
|
|
3242
|
+
}), h = D();
|
|
3243
|
+
function ee(e) {
|
|
2522
3244
|
let t = e ?? {};
|
|
2523
3245
|
h.exposed = t, l.value = t.$el;
|
|
2524
3246
|
}
|
|
2525
|
-
function
|
|
3247
|
+
function g() {
|
|
2526
3248
|
a.value = l.value?.textContent ?? "";
|
|
2527
3249
|
}
|
|
2528
|
-
let
|
|
3250
|
+
let _ = b(() => {
|
|
2529
3251
|
if (!i.autoIcon || a.value.trim() === "") return;
|
|
2530
3252
|
let e = {
|
|
2531
3253
|
"mdi:plus": [
|
|
@@ -2593,10 +3315,10 @@ var Wn = {
|
|
|
2593
3315
|
break;
|
|
2594
3316
|
}
|
|
2595
3317
|
if (t !== void 0) return t;
|
|
2596
|
-
}),
|
|
3318
|
+
}), te = Pe(), ne = b(() => A(te, {
|
|
2597
3319
|
...m.value,
|
|
2598
|
-
ref:
|
|
2599
|
-
}, { class: "flex-shrink-0" })),
|
|
3320
|
+
ref: ee
|
|
3321
|
+
}, { class: "flex-shrink-0" })), re = b(() => {
|
|
2600
3322
|
if (i.popconfirm) return {
|
|
2601
3323
|
...i.popconfirm,
|
|
2602
3324
|
onVisibleChange: (...e) => {
|
|
@@ -2604,33 +3326,33 @@ var Wn = {
|
|
|
2604
3326
|
}
|
|
2605
3327
|
};
|
|
2606
3328
|
});
|
|
2607
|
-
return (
|
|
2608
|
-
default:
|
|
2609
|
-
onVnodeMounted:
|
|
2610
|
-
onVnodeUpdated:
|
|
2611
|
-
},
|
|
3329
|
+
return (r, i) => L(Q)().checkPermissions(e.permission) ? (M(), C(_e, { key: 0 }, [re.value ? (M(), x(L(n), j(A({ key: 0 }, re.value)), {
|
|
3330
|
+
default: z(() => [(M(), x(F(O(L(Ve), ne.value)), {
|
|
3331
|
+
onVnodeMounted: g,
|
|
3332
|
+
onVnodeUpdated: g
|
|
3333
|
+
}, be({ _: 2 }, [e.icon || _.value ? {
|
|
2612
3334
|
name: "icon",
|
|
2613
|
-
fn:
|
|
3335
|
+
fn: z(() => [T(L(t), { icon: e.icon || _.value }, null, 8, ["icon"])]),
|
|
2614
3336
|
key: "0"
|
|
2615
|
-
} : void 0,
|
|
3337
|
+
} : void 0, P(Object.keys(r.$slots), (e) => ({
|
|
2616
3338
|
name: e,
|
|
2617
|
-
fn:
|
|
3339
|
+
fn: z((t) => [je(r.$slots, e, j(Se(t)), void 0, !0)])
|
|
2618
3340
|
}))]), 1536))]),
|
|
2619
3341
|
_: 3
|
|
2620
|
-
}, 16)) : (
|
|
3342
|
+
}, 16)) : (M(), x(F(O(L(Ve), ne.value)), {
|
|
2621
3343
|
key: 1,
|
|
2622
|
-
onVnodeMounted:
|
|
2623
|
-
onVnodeUpdated:
|
|
2624
|
-
},
|
|
3344
|
+
onVnodeMounted: g,
|
|
3345
|
+
onVnodeUpdated: g
|
|
3346
|
+
}, be({ _: 2 }, [e.icon || _.value ? {
|
|
2625
3347
|
name: "icon",
|
|
2626
|
-
fn:
|
|
3348
|
+
fn: z(() => [T(L(t), { icon: e.icon || _.value }, null, 8, ["icon"])]),
|
|
2627
3349
|
key: "0"
|
|
2628
|
-
} : void 0,
|
|
3350
|
+
} : void 0, P(Object.keys(r.$slots), (e) => ({
|
|
2629
3351
|
name: e,
|
|
2630
|
-
fn:
|
|
2631
|
-
}))]), 1536))], 64)) :
|
|
3352
|
+
fn: z((t) => [je(r.$slots, e, j(Se(t)), void 0, !0)])
|
|
3353
|
+
}))]), 1536))], 64)) : S("v-if", !0);
|
|
2632
3354
|
}
|
|
2633
|
-
}), [["__scopeId", "data-v-2ba81aa7"]]),
|
|
3355
|
+
}), [["__scopeId", "data-v-2ba81aa7"]]), vr = /* @__PURE__ */ E({
|
|
2634
3356
|
name: "TProvider",
|
|
2635
3357
|
__name: "Provider",
|
|
2636
3358
|
setup(e) {
|
|
@@ -2652,18 +3374,18 @@ var Wn = {
|
|
|
2652
3374
|
variant: "text"
|
|
2653
3375
|
})
|
|
2654
3376
|
} };
|
|
2655
|
-
return (e, n) => (
|
|
3377
|
+
return (e, n) => (M(), x(L(ut), {
|
|
2656
3378
|
"empty-values": [""],
|
|
2657
|
-
locale:
|
|
3379
|
+
locale: L(jt),
|
|
2658
3380
|
"value-on-clear": "",
|
|
2659
3381
|
"z-index": 5500
|
|
2660
3382
|
}, {
|
|
2661
|
-
default:
|
|
2662
|
-
default:
|
|
3383
|
+
default: z(() => [T(L(Ue), { "global-config": t }, {
|
|
3384
|
+
default: z(() => [je(e.$slots, "default")]),
|
|
2663
3385
|
_: 3
|
|
2664
3386
|
})]),
|
|
2665
3387
|
_: 3
|
|
2666
3388
|
}, 8, ["locale"]));
|
|
2667
3389
|
}
|
|
2668
3390
|
});
|
|
2669
|
-
export {
|
|
3391
|
+
export { Xt as $, Bn as A, On as B, Jn as C, Ln as D, Hn as E, Pn as F, vn as G, wn as H, Fn as I, K as J, yn as K, An as L, X as M, Y as N, Rn as O, Nn as P, sn as Q, kn as R, qn as S, Xn as T, Sn as U, Tn as V, _n as W, fn as X, dn as Y, cn as Z, tr as _, hr as a, Wt as at, Qn as b, ur as c, Bt as ct, sr as d, Lt as dt, an as et, or as f, Nt as ft, nr as g, rr as h, Q as i, Jt as it, Vn as j, zn as k, lr as l, Vt as lt, ir as m, $ as n, H as nt, mr as o, Ut as ot, ar as p, Mt as pt, un as q, gr as r, V as rt, pr as s, Ht as st, vr as t, U as tt, cr as u, It as ut, er as v, Yn as w, Zn as x, $n as y, J as z };
|