dlzn-ui 2.0.123 → 2.0.125
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/{Index-CzhpKVu6.css → Index-BWSViCAz.css} +1 -1
- package/assets/Index-CLlRBp9b.css +1 -0
- package/assets/{Index-DtjEnN_Z.css → Index-t9IAUK-x.css} +1 -1
- package/assets/IndexItem-CXS-0RCs.css +1 -0
- package/assets/{provider-C_AVk_p8.css → provider-z0U48-Jh.css} +1 -1
- package/chunks/{AssignUser-Bx4tSg6x.mjs → AssignUser-DBjdGE2L.mjs} +3 -3
- package/chunks/{BasicInfo-Esb68g3a.mjs → BasicInfo-BEJ82Ja3.mjs} +1 -1
- package/chunks/{ColumnInfo-xy7e8YdR.mjs → ColumnInfo-5yksHDQR.mjs} +2 -2
- package/chunks/{Common-BA2so32b.mjs → Common-Bvbt9AsN.mjs} +1 -1
- package/chunks/{Day-qOQSIMz4.mjs → Day-37obm918.mjs} +1 -1
- package/chunks/{DictTypeDetail-hMwyoQMd.mjs → DictTypeDetail-p4osTU6G.mjs} +2 -2
- package/chunks/{GenInfo-BUTggiG_.mjs → GenInfo-DpkErCW4.mjs} +1 -1
- package/chunks/{Hour-vHPNlO-O.mjs → Hour-Z2ejyfC0.mjs} +1 -1
- package/chunks/{Import-DceVMGkp.mjs → Import-CrjW3m5r.mjs} +2 -2
- package/chunks/{Index-DJ87Otef.mjs → Index-2rqfZEEZ.mjs} +2 -2
- package/chunks/{Index-BVpB08Ad.mjs → Index-B2EW_j-f.mjs} +16 -15
- package/chunks/{Index-tVM-avuU.mjs → Index-BON9SotS.mjs} +1 -1
- package/chunks/{Index-BwF5nH44.mjs → Index-Bb3hxy9C.mjs} +1 -1
- package/chunks/{Index-6XsY3YQ2.mjs → Index-BdMR2koN.mjs} +11 -8
- package/chunks/{Index-C4oEirwo.mjs → Index-BjxtT_9p.mjs} +1 -1
- package/chunks/{Index-KQpLDi6_.mjs → Index-BvNsPSfB.mjs} +1 -1
- package/chunks/{Index-C9mVWfjG.mjs → Index-BxgESSZe.mjs} +12 -10
- package/chunks/{Index-BARHXGiA.mjs → Index-C5vk04nq.mjs} +5 -7
- package/chunks/{Index-BUlMmBGX.mjs → Index-CKP2JA4k.mjs} +2 -2
- package/chunks/{Index-U6bnO6Df.mjs → Index-CnL8r_nR.mjs} +1 -1
- package/chunks/{Index-Bk0pU3Ir.mjs → Index-CsrogkLP.mjs} +10 -7
- package/chunks/{Index-DdHonPUP.mjs → Index-CxBlN3tl.mjs} +15 -14
- package/chunks/{Index-TV7RAHCl.mjs → Index-CzLmpRF_.mjs} +1 -1
- package/chunks/{Index-CUjP2OWM.mjs → Index-DP82x2cN.mjs} +1 -1
- package/chunks/{Index-H7KSgQuQ.mjs → Index-HmwhpWYj.mjs} +2 -2
- package/chunks/{Index-CjXqPJKj.mjs → Index-h1cI8Sun.mjs} +1 -1
- package/chunks/{Index-40r40K90.mjs → Index-j7VN4Iof.mjs} +3 -3
- package/chunks/{Index-CnbrMG29.mjs → Index-vlh3EGoD.mjs} +1 -1
- package/chunks/IndexItem-Cw8tyAMG.mjs +73 -0
- package/chunks/{Log-Ev0hWjEv.mjs → Log-QORSazNm.mjs} +2 -2
- package/chunks/{LoginBg-CSGHCA-L.mjs → LoginBg-CEKh3aGu.mjs} +1 -1
- package/chunks/{Minute-D-_PPhFm.mjs → Minute-CUFAEwxi.mjs} +1 -1
- package/chunks/{Month-Co2Tcdpg.mjs → Month-gxTSvKff.mjs} +1 -1
- package/chunks/{Preview-CdPfPeI6.mjs → Preview-Cbv0cCcV.mjs} +1 -1
- package/chunks/{Second-BwaoTcXT.mjs → Second-CDVMQNVS.mjs} +1 -1
- package/chunks/{SelectDept-DQ_Trvif.mjs → SelectDept-C6eiJno8.mjs} +1 -1
- package/chunks/{SelectMenu-DlIYaI1W.mjs → SelectMenu-CTtbxBkS.mjs} +1 -1
- package/chunks/{SelectUser-B-hpfb8C.mjs → SelectUser-C1E4JyDL.mjs} +2 -2
- package/chunks/{UserInfo-sXSK5qfz.mjs → UserInfo-BwFPXF17.mjs} +1 -1
- package/chunks/{Wrapper-Dv3AY3TF.mjs → Wrapper-DNUJFy6s.mjs} +1 -1
- package/chunks/{app-dCQyq0F4.mjs → app-BQzwHVua.mjs} +1 -1
- package/chunks/{custom-page-list-CikBV_oV.mjs → custom-page-list-Dz_cPRN9.mjs} +4 -4
- package/chunks/{custom-page-table-B_OA19Fx.mjs → custom-page-table-DqB1qQY0.mjs} +2 -2
- package/chunks/{job-N3gtuwiK.mjs → job-CtWlk9GE.mjs} +3 -3
- package/chunks/{jszip.min-BiYpajap.mjs → jszip.min-Blm-2Wov.mjs} +1 -1
- package/chunks/{overview-DRbdd0y9.mjs → overview-E_ImVxk3.mjs} +3 -3
- package/chunks/{page-list-CNiRQAtL.mjs → page-list-BRWTu0ul.mjs} +4 -5
- package/chunks/{page-query-7AKuoT_Y.mjs → page-query-BkKTknCQ.mjs} +1 -1
- package/chunks/{page-table-0bnR65h-.mjs → page-table-Bt0aAzt7.mjs} +3 -3
- package/chunks/{pagination-BGURkw5r.mjs → pagination-DZr7IMZL.mjs} +1 -1
- package/chunks/{provider-Bz9bN8SA.mjs → provider-NV4Rfkxu.mjs} +506 -518
- package/chunks/{table-C82FUy-A.mjs → table-CP4tg6Ct.mjs} +1 -1
- package/chunks/{typography-text-BId1eixL.mjs → typography-text-BeGoB0tY.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/calendar/src/calendar.vue.d.ts +1 -1
- package/components/cascader/index.mjs +1 -1
- package/components/cascader/src/cascader.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/color-picker/src/color-picker.vue.d.ts +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 +7 -7
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/date-picker/index.mjs +1 -1
- package/components/date-picker/src/date-picker.mjs +1 -1
- package/components/dialog/index.mjs +1 -1
- package/components/dialog/src/dialog.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +11 -12
- package/components/input-number/index.mjs +1 -1
- package/components/input-number/src/input-number.mjs +1 -1
- package/components/overview/index.mjs +1 -3
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.vue.d.ts +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/OptionLabel/Index.mjs +1 -1
- package/components/overview/src/OptionLabel/Index.vue.d.ts +1 -1
- package/components/overview/src/overview.d.ts +3 -7
- 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 +14 -14
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-list/src/page-list.vue.d.ts +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/page-table/src/page-table.vue.d.ts +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/range-input/index.mjs +1 -1
- package/components/range-input/src/range-input.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select/src/select.vue.d.ts +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/typography-text/index.mjs +1 -1
- package/components/typography-text/src/typography-text.mjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/upload.mjs +1 -1
- package/components/upload/src/upload.vue.d.ts +1 -1
- package/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useLabel/index.mjs +1 -1
- package/hooks/useList/index.mjs +1 -1
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +1 -1
- package/layout/Login.mjs +2 -2
- package/layout/NotFound.mjs +1 -1
- package/layout/Test.mjs +17 -13
- 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 +2 -2
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/main.mjs +2 -2
- package/package.json +3 -3
- package/plugins/autoImport/$alova/index.d.ts +2 -2
- package/plugins/autoImport/$alova/index.mjs +1 -1
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/autoImport/$fileView/Entry.mjs +1 -1
- package/plugins/autoImport/$fileView/index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +1 -1
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/directive/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/Wrapper.mjs +1 -1
- package/plugins/tableRenders/cell/Audio/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Audio/Index.vue.d.ts +1 -0
- package/plugins/tableRenders/cell/Audio/index.d.ts +1 -0
- package/plugins/tableRenders/cell/Audio/index2.mjs +4 -1
- package/plugins/tableRenders/cell/AudioPlay/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Avatar/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ColorPicker/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.vue.d.ts +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/InputNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/OptionLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/OptionLabel/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/Tags/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Tags/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/TypographyText/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +17 -17
- package/plugins/tableRenders/title/TypographyText/Index.mjs +1 -1
- package/plugins/tableRenders/title/index.mjs +2 -2
- package/proj-template/.vscode/settings.json +1 -0
- 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/boolean.d.ts +1 -1
- package/utils/format.d.ts +10 -0
- package/utils/format.mjs +13 -0
- package/utils/gather.mjs +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/index.mjs +6 -5
- package/utils/string.mjs +1 -1
- package/utils/tool.d.ts +12 -3
- package/utils/tool.mjs +1 -1
- 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 +2 -2
- package/views/system/dept/index.mjs +2 -2
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +3 -3
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +2 -2
- package/views/system/menu/utils.mjs +1 -1
- package/views/system/notice/index.mjs +2 -2
- package/views/system/post/index.mjs +2 -2
- package/views/system/role/index.mjs +5 -5
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +4 -7
- package/views/tool/gen/editTable/index.mjs +4 -4
- 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 +5 -8
- 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/Index-BAqhwA3i.css +0 -1
- package/assets/IndexItem-CFzZEfgr.css +0 -1
- package/chunks/IndexItem-BNgJ6Myd.mjs +0 -65
- package/chunks/overview-Bgxcm5Az.mjs +0 -6
- package/plugins/tableRenders/utils.d.ts +0 -8
- package/plugins/tableRenders/utils.mjs +0 -7
|
@@ -7,32 +7,33 @@ import r from "../plugins/autoImport/$loading/index.mjs";
|
|
|
7
7
|
import i from "../plugins/autoImport/$msg/index.mjs";
|
|
8
8
|
import { getAudioElement as a, releaseAudioElement as o, rewindAudioElement as s } from "../utils/audio/audioElement.mjs";
|
|
9
9
|
import { isFalsy as c, isNotEmpty as l, isValidNumberString as u } from "../utils/boolean.mjs";
|
|
10
|
+
import "../utils/format.mjs";
|
|
10
11
|
import { formatNumber as d } from "../utils/number.mjs";
|
|
11
|
-
import {
|
|
12
|
-
import { n as
|
|
13
|
-
import
|
|
12
|
+
import { getFilenameFromUrl as f, stringDisplay as p } from "../utils/string.mjs";
|
|
13
|
+
import { n as m, t as h } from "./useAppContext-DAxNLHY9.mjs";
|
|
14
|
+
import g from "../layout/index.mjs";
|
|
14
15
|
import "../components/scrollbar/index.mjs";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import _ from "../hooks/useMQ/index.mjs";
|
|
17
|
+
import v from "../hooks/usePrimaryColor/index.mjs";
|
|
18
|
+
import y from "../store/modules/excludeKPname.mjs";
|
|
18
19
|
import "../components/gradient-text/index.mjs";
|
|
19
|
-
import { t as ee } from "./gradient-text-9F_lDxuO.mjs";
|
|
20
20
|
import "../components/image/index.mjs";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
21
|
+
import { t as ee } from "./gradient-text-9F_lDxuO.mjs";
|
|
22
|
+
import b from "../views/index.mjs";
|
|
23
|
+
import { t as te } from "./MenuNode-BAy8nht3.mjs";
|
|
24
|
+
import { t as ne } from "./image-u3num5z6.mjs";
|
|
25
|
+
import { t as x } from "./plugin-vue_export-helper-Djzt4Yr7.mjs";
|
|
25
26
|
import "../components/dropdown/index.mjs";
|
|
26
|
-
import
|
|
27
|
-
import ie from "
|
|
27
|
+
import re from "../hooks/useContextMenu/index.mjs";
|
|
28
|
+
import { t as ie } from "./dropdown-Bvarrr3c.mjs";
|
|
28
29
|
import { flatArrToTree as ae, mapTree as oe } from "../utils/tree.mjs";
|
|
29
30
|
import "../components/checkbox/index.mjs";
|
|
30
|
-
import { t as se } from "./checkbox-CVOChDUu.mjs";
|
|
31
31
|
import "../components/color-picker/index.mjs";
|
|
32
|
-
import { t as
|
|
32
|
+
import { t as se } from "./checkbox-CVOChDUu.mjs";
|
|
33
33
|
import "../components/input/index.mjs";
|
|
34
|
+
import { t as ce } from "./color-picker-Czz7J_78.mjs";
|
|
35
|
+
import S from "../plugins/autoImport/dayjs/index.mjs";
|
|
34
36
|
import { n as le, t as ue } from "./input-CiSr3rcu.mjs";
|
|
35
|
-
import x from "../plugins/autoImport/dayjs/index.mjs";
|
|
36
37
|
import "../components/tag-input/index.mjs";
|
|
37
38
|
import { n as de, t as fe } from "./tag-input-Df_v5AwS.mjs";
|
|
38
39
|
import "../components/slider/index.mjs";
|
|
@@ -42,32 +43,32 @@ import { t as me } from "./switch-BByqwNgy.mjs";
|
|
|
42
43
|
import "../components/textarea/index.mjs";
|
|
43
44
|
import { t as he } from "./textarea-C9VbFXpr.mjs";
|
|
44
45
|
import { passwordReg as ge, passwordRegMessage as _e } from "../constants/regs.mjs";
|
|
45
|
-
import { Fragment as ve, KeepAlive as ye, computed as
|
|
46
|
-
import { Breadcrumb as
|
|
47
|
-
import { ElConfigProvider as
|
|
48
|
-
import { useElementSize as
|
|
49
|
-
import { cloneDeep as
|
|
50
|
-
import { defineStore as
|
|
51
|
-
import
|
|
52
|
-
import { NavigationFailureType as
|
|
53
|
-
import { createAlova as
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import '../assets/provider-
|
|
58
|
-
var
|
|
59
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
46
|
+
import { Fragment as ve, KeepAlive as ye, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as be, createSlots as xe, createTextVNode as D, createVNode as O, defineAsyncComponent as Se, defineComponent as k, getCurrentInstance as A, guardReactiveProps as Ce, h as j, inject as M, markRaw as we, mergeDefaults as N, mergeModels as Te, mergeProps as P, nextTick as Ee, normalizeClass as De, normalizeProps as F, onMounted as Oe, openBlock as I, provide as ke, reactive as Ae, ref as L, renderList as R, renderSlot as je, resolveComponent as Me, resolveDynamicComponent as z, shallowRef as Ne, toDisplayString as B, unref as V, useAttrs as Pe, useModel as Fe, useSlots as Ie, useTemplateRef as Le, watch as H, withCtx as U, withModifiers as Re } from "vue";
|
|
47
|
+
import { Breadcrumb as ze, BreadcrumbItem as Be, Button as Ve, Cascader as He, CheckboxGroup as Ue, ConfigProvider as We, Content as Ge, Dialog as Ke, DialogPlugin as qe, Drawer as Je, DrawerPlugin as Ye, Form as Xe, FormItem as Ze, HeadMenu as Qe, Header as $e, InputAdornment as et, InputNumber as tt, Layout as nt, Menu as rt, MenuItem as it, RadioGroup as at, RangeInput as ot, Select as st, Tree as ct, TreeSelect as lt, Upload as ut } from "tdesign-vue-next";
|
|
48
|
+
import { ElConfigProvider as dt, ElDatePicker as ft } from "element-plus";
|
|
49
|
+
import { useElementSize as pt, useElementVisibility as mt, useFavicon as ht, useFocus as gt, useMutationObserver as _t, useResizeObserver as vt } from "@vueuse/core";
|
|
50
|
+
import { cloneDeep as yt, isPlainObject as bt } from "lodash-es";
|
|
51
|
+
import { defineStore as xt } from "pinia";
|
|
52
|
+
import St from "virtual:dlzn-ui/enhance";
|
|
53
|
+
import { NavigationFailureType as Ct, createRouter as wt, createWebHistory as Tt, isNavigationFailure as Et, useRoute as W, useRouter as Dt } from "vue-router";
|
|
54
|
+
import { createAlova as Ot } from "alova";
|
|
55
|
+
import kt from "alova/fetch";
|
|
56
|
+
import At from "alova/vue";
|
|
57
|
+
import jt from "path-browserify";
|
|
58
|
+
import '../assets/provider-z0U48-Jh.css';// \0rolldown/runtime.js
|
|
59
|
+
var Mt = Object.create, Nt = Object.defineProperty, Pt = Object.getOwnPropertyDescriptor, Ft = Object.getOwnPropertyNames, It = Object.getPrototypeOf, Lt = Object.prototype.hasOwnProperty, Rt = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), zt = (e, t, n, r) => {
|
|
60
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = Ft(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !Lt.call(e, s) && s !== n && Nt(e, s, {
|
|
60
61
|
get: ((e) => t[e]).bind(null, s),
|
|
61
|
-
enumerable: !(r =
|
|
62
|
+
enumerable: !(r = Pt(t, s)) || r.enumerable
|
|
62
63
|
});
|
|
63
64
|
return e;
|
|
64
|
-
},
|
|
65
|
+
}, Bt = (e, t, n) => (n = e == null ? {} : Mt(It(e)), zt(t || !e || !e.__esModule || !Lt.call(e, "default") ? Nt(n, "default", {
|
|
65
66
|
value: e,
|
|
66
67
|
enumerable: !0
|
|
67
|
-
}) : n, e)),
|
|
68
|
+
}) : n, e)), Vt = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
68
69
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
69
70
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
70
|
-
}),
|
|
71
|
+
}), Ht = {
|
|
71
72
|
name: "zh-cn",
|
|
72
73
|
el: {
|
|
73
74
|
breadcrumb: { label: "面包屑" },
|
|
@@ -248,15 +249,15 @@ var Pt = Object.create, Ft = Object.defineProperty, It = Object.getOwnPropertyDe
|
|
|
248
249
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
249
250
|
}
|
|
250
251
|
}
|
|
251
|
-
},
|
|
252
|
+
}, Ut = {
|
|
252
253
|
autoIcon: !0,
|
|
253
254
|
autoLoading: !0,
|
|
254
255
|
autoTheme: !0,
|
|
255
256
|
loading: void 0
|
|
256
|
-
},
|
|
257
|
+
}, Wt = {
|
|
257
258
|
autoLabelWidth: !0,
|
|
258
259
|
colon: !0,
|
|
259
|
-
data: () =>
|
|
260
|
+
data: () => Ae({}),
|
|
260
261
|
disabled: !1,
|
|
261
262
|
labelAlign: "top",
|
|
262
263
|
layout: "inline",
|
|
@@ -266,7 +267,7 @@ var Pt = Object.create, Ft = Object.defineProperty, It = Object.getOwnPropertyDe
|
|
|
266
267
|
requiredMark: void 0,
|
|
267
268
|
resetType: "initial",
|
|
268
269
|
showErrorMessage: !0
|
|
269
|
-
},
|
|
270
|
+
}, Gt = {
|
|
270
271
|
clearable: !0,
|
|
271
272
|
disabled: void 0,
|
|
272
273
|
filterable: !0,
|
|
@@ -277,12 +278,12 @@ var Pt = Object.create, Ft = Object.defineProperty, It = Object.getOwnPropertyDe
|
|
|
277
278
|
showAllLevels: !0,
|
|
278
279
|
valueMode: "onlyLeaf",
|
|
279
280
|
valueType: "single"
|
|
280
|
-
},
|
|
281
|
+
}, Kt = class {
|
|
281
282
|
stream;
|
|
282
283
|
onDisposed;
|
|
283
284
|
audioElement;
|
|
284
|
-
isLoading =
|
|
285
|
-
isPlaying =
|
|
285
|
+
isLoading = L(!1);
|
|
286
|
+
isPlaying = L(!1);
|
|
286
287
|
disposed = !1;
|
|
287
288
|
tracks;
|
|
288
289
|
constructor(e, t, n) {
|
|
@@ -306,7 +307,7 @@ var Pt = Object.create, Ft = Object.defineProperty, It = Object.getOwnPropertyDe
|
|
|
306
307
|
onTrackEnded = () => {
|
|
307
308
|
this.dispose();
|
|
308
309
|
};
|
|
309
|
-
},
|
|
310
|
+
}, qt = new class {
|
|
310
311
|
players = /* @__PURE__ */ new Map();
|
|
311
312
|
play(e, t) {
|
|
312
313
|
if (this.players.has(e)) {
|
|
@@ -318,7 +319,7 @@ var Pt = Object.create, Ft = Object.defineProperty, It = Object.getOwnPropertyDe
|
|
|
318
319
|
}
|
|
319
320
|
let { disposeOthers: n = !0, setAudioElement: r } = t ?? {};
|
|
320
321
|
n && this.release();
|
|
321
|
-
let i = new
|
|
322
|
+
let i = new Kt(e, (e) => {
|
|
322
323
|
this.players.delete(e);
|
|
323
324
|
}, r);
|
|
324
325
|
return this.players.set(e, i), {
|
|
@@ -331,19 +332,19 @@ var Pt = Object.create, Ft = Object.defineProperty, It = Object.getOwnPropertyDe
|
|
|
331
332
|
else for (let e of [...this.players.values()]) e.dispose();
|
|
332
333
|
}
|
|
333
334
|
}();
|
|
334
|
-
function
|
|
335
|
-
return
|
|
335
|
+
function Jt(e, t) {
|
|
336
|
+
return qt.play(e, t);
|
|
336
337
|
}
|
|
337
|
-
function
|
|
338
|
-
|
|
338
|
+
function Yt(e) {
|
|
339
|
+
qt.release(e);
|
|
339
340
|
}
|
|
340
341
|
// ../../packages/dlzn-ui/utils/audio/playUrl.ts
|
|
341
|
-
var
|
|
342
|
+
var Xt = class {
|
|
342
343
|
url;
|
|
343
344
|
onDisposed;
|
|
344
345
|
audioElement;
|
|
345
|
-
isLoading =
|
|
346
|
-
isPlaying =
|
|
346
|
+
isLoading = L(!1);
|
|
347
|
+
isPlaying = L(!1);
|
|
347
348
|
disposed = !1;
|
|
348
349
|
constructor(e, t, n) {
|
|
349
350
|
this.url = e, this.onDisposed = t, this.audioElement = a(), n?.(this.audioElement), this.audioElement.addEventListener("ended", this.onEnded), this.audioElement.src = e, this.isLoading.value = !0, this.audioElement.play().then(() => {
|
|
@@ -360,7 +361,7 @@ var Qt = class {
|
|
|
360
361
|
onEnded = () => {
|
|
361
362
|
this.dispose();
|
|
362
363
|
};
|
|
363
|
-
},
|
|
364
|
+
}, Zt = new class {
|
|
364
365
|
players = /* @__PURE__ */ new Map();
|
|
365
366
|
play(e, t) {
|
|
366
367
|
if (this.players.has(e)) {
|
|
@@ -372,7 +373,7 @@ var Qt = class {
|
|
|
372
373
|
}
|
|
373
374
|
let { disposeOthers: n = !0, setAudioElement: r } = t ?? {};
|
|
374
375
|
n && this.release();
|
|
375
|
-
let i = new
|
|
376
|
+
let i = new Xt(e, (e) => {
|
|
376
377
|
this.players.delete(e);
|
|
377
378
|
}, r);
|
|
378
379
|
return this.players.set(e, i), {
|
|
@@ -385,20 +386,20 @@ var Qt = class {
|
|
|
385
386
|
else for (let e of [...this.players.values()]) e.dispose();
|
|
386
387
|
}
|
|
387
388
|
}();
|
|
388
|
-
function
|
|
389
|
-
return
|
|
389
|
+
function Qt(e, t) {
|
|
390
|
+
return Zt.play(e, t);
|
|
390
391
|
}
|
|
391
|
-
function
|
|
392
|
-
|
|
392
|
+
function $t(e) {
|
|
393
|
+
Zt.release(e);
|
|
393
394
|
}
|
|
394
395
|
// ../../packages/dlzn-ui/utils/gather.ts
|
|
395
|
-
function
|
|
396
|
-
let n = Array.isArray(t), r = (n ? t : [t]).map((t) => e.find((e) => String(e.value) === String(t))?.label ??
|
|
396
|
+
function en(e, t) {
|
|
397
|
+
let n = Array.isArray(t), r = (n ? t : [t]).map((t) => e.find((e) => String(e.value) === String(t))?.label ?? p(t));
|
|
397
398
|
return n ? r : r[0];
|
|
398
399
|
}
|
|
399
400
|
// ../../packages/dlzn-ui/components/dialog/src/dialog.ts
|
|
400
|
-
var
|
|
401
|
-
closeBtn: () =>
|
|
401
|
+
var tn = {
|
|
402
|
+
closeBtn: () => j($, {
|
|
402
403
|
icon: "mdi:close",
|
|
403
404
|
shape: "circle",
|
|
404
405
|
size: "small",
|
|
@@ -418,11 +419,11 @@ var rn = {
|
|
|
418
419
|
preventScrollThrough: !0,
|
|
419
420
|
showOverlay: !0,
|
|
420
421
|
width: "fit-content"
|
|
421
|
-
},
|
|
422
|
+
}, nn = /* @__PURE__ */ k({
|
|
422
423
|
inheritAttrs: !1,
|
|
423
424
|
name: "TDialog",
|
|
424
425
|
__name: "dialog",
|
|
425
|
-
props: /*@__PURE__*/
|
|
426
|
+
props: /*@__PURE__*/ N({
|
|
426
427
|
attach: { type: [String, Function] },
|
|
427
428
|
body: {},
|
|
428
429
|
cancelBtn: {},
|
|
@@ -465,69 +466,69 @@ var rn = {
|
|
|
465
466
|
"onUpdate:visible": { type: Function },
|
|
466
467
|
visible: { type: Boolean }
|
|
467
468
|
}, {
|
|
468
|
-
...
|
|
469
|
+
...tn,
|
|
469
470
|
attach: "body",
|
|
470
|
-
closeBtn: () =>
|
|
471
|
+
closeBtn: () => tn.closeBtn,
|
|
471
472
|
showInAttachedElement: !1
|
|
472
473
|
}),
|
|
473
474
|
setup(e) {
|
|
474
|
-
let t = e, n =
|
|
475
|
+
let t = e, n = C(() => {
|
|
475
476
|
let e = { ...t };
|
|
476
477
|
return Object.keys(e).forEach((t) => {
|
|
477
478
|
e[t] === void 0 && delete e[t];
|
|
478
479
|
}), e;
|
|
479
|
-
}), r =
|
|
480
|
+
}), r = A();
|
|
480
481
|
function i(e) {
|
|
481
482
|
r.exposed = e ?? {};
|
|
482
483
|
}
|
|
483
|
-
return (e, t) => (
|
|
484
|
+
return (e, t) => (I(), w(z(j(V(Ke), P(e.$attrs, {
|
|
484
485
|
...n.value,
|
|
485
486
|
ref: i
|
|
486
487
|
}), e.$slots))));
|
|
487
488
|
}
|
|
488
|
-
}),
|
|
489
|
+
}), rn = /* @__PURE__ */ function(e) {
|
|
489
490
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
490
|
-
}(
|
|
491
|
-
function
|
|
492
|
-
let r =
|
|
491
|
+
}(rn || {}), an = /* @__PURE__ */ new Set();
|
|
492
|
+
function on(e, t, n) {
|
|
493
|
+
let r = C(() => typeof t.body == "function" ? t.body(j) : t.body), i = L(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: a, stop: o } = mt(i, {
|
|
493
494
|
controls: !0,
|
|
494
495
|
initialValue: !0
|
|
495
496
|
}), s = {
|
|
496
|
-
...
|
|
497
|
+
...tn,
|
|
497
498
|
closeWhenCloseAll: !0,
|
|
498
499
|
...t ?? {},
|
|
499
|
-
body: () =>
|
|
500
|
+
body: () => j(Pr, {}, { default: () => r.value })
|
|
500
501
|
}, c, l = {
|
|
501
502
|
...s,
|
|
502
503
|
onClosed: () => {
|
|
503
|
-
i.value !== null && a.value && i.value.focus(), o(), s.onClosed?.(),
|
|
504
|
+
i.value !== null && a.value && i.value.focus(), o(), s.onClosed?.(), an.delete(c), c.destroy();
|
|
504
505
|
}
|
|
505
506
|
};
|
|
506
507
|
delete l.closeWhenCloseAll;
|
|
507
|
-
let u =
|
|
508
|
-
return c = e === void 0 ?
|
|
508
|
+
let u = h();
|
|
509
|
+
return c = e === void 0 ? qe(l, n ?? u) : qe[e](l, n ?? u), s.closeWhenCloseAll && an.add(c), c;
|
|
509
510
|
}
|
|
510
|
-
var
|
|
511
|
-
return
|
|
511
|
+
var sn = function(...e) {
|
|
512
|
+
return on(void 0, ...e);
|
|
512
513
|
};
|
|
513
|
-
Object.values(
|
|
514
|
-
|
|
515
|
-
|
|
514
|
+
Object.values(rn).forEach((e) => {
|
|
515
|
+
sn[e] = e === "closeAll" ? () => {
|
|
516
|
+
an.forEach((e) => {
|
|
516
517
|
e.hide();
|
|
517
518
|
});
|
|
518
|
-
} : (...t) =>
|
|
519
|
+
} : (...t) => on(e, ...t);
|
|
519
520
|
});
|
|
520
521
|
// ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
521
|
-
var
|
|
522
|
+
var G = (e, t) => {
|
|
522
523
|
let n = { ...typeof e == "string" ? {} : e };
|
|
523
524
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
524
|
-
let a =
|
|
525
|
+
let a = sn(typeof e == "string" ? {
|
|
525
526
|
body: e,
|
|
526
527
|
onConfirm: () => {
|
|
527
528
|
a.hide(), r();
|
|
528
529
|
},
|
|
529
530
|
theme: "warning"
|
|
530
|
-
} :
|
|
531
|
+
} : Ae({
|
|
531
532
|
...n,
|
|
532
533
|
onClose: (t) => {
|
|
533
534
|
let { trigger: n } = t;
|
|
@@ -546,8 +547,8 @@ var H = (e, t) => {
|
|
|
546
547
|
});
|
|
547
548
|
};
|
|
548
549
|
// ../../packages/dlzn-ui/store/modules/common.ts
|
|
549
|
-
function
|
|
550
|
-
return VITE_APP_ID === "1" ?
|
|
550
|
+
function cn() {
|
|
551
|
+
return VITE_APP_ID === "1" ? J.Get(`yq/oemConfig/getByDomain/${window.location.hostname}`, {
|
|
551
552
|
meta: { useToken: !1 },
|
|
552
553
|
transform(e) {
|
|
553
554
|
if (e === null) throw Error("oemConfig getByDomain return null");
|
|
@@ -558,26 +559,26 @@ function un() {
|
|
|
558
559
|
version: ""
|
|
559
560
|
};
|
|
560
561
|
}
|
|
561
|
-
}) :
|
|
562
|
+
}) : J.Get("common/appInfo", { meta: {
|
|
562
563
|
useFailMsg: !1,
|
|
563
564
|
useSysFailMsg: !1,
|
|
564
565
|
useToken: !1
|
|
565
566
|
} });
|
|
566
567
|
}
|
|
567
|
-
var
|
|
568
|
-
let e =
|
|
568
|
+
var ln = xt("common", () => {
|
|
569
|
+
let e = L(!0), t = L(250), n = L({
|
|
569
570
|
appName: "",
|
|
570
571
|
color: "",
|
|
571
572
|
logo: "",
|
|
572
573
|
version: ""
|
|
573
574
|
});
|
|
574
|
-
|
|
575
|
+
H(() => n.value.appName, (e) => {
|
|
575
576
|
e && (document.title = e);
|
|
576
|
-
}),
|
|
577
|
-
e && (
|
|
578
|
-
}),
|
|
577
|
+
}), H(() => n.value.color, (e) => {
|
|
578
|
+
e && (v().value = e);
|
|
579
|
+
}), ht(C(() => n.value.logo || "/favicon.ico"));
|
|
579
580
|
function r() {
|
|
580
|
-
|
|
581
|
+
cn().then((e) => {
|
|
581
582
|
n.value = e;
|
|
582
583
|
}).catch((e) => {
|
|
583
584
|
n.value = {
|
|
@@ -588,7 +589,7 @@ var U = Ct("common", () => {
|
|
|
588
589
|
}, console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
|
|
589
590
|
});
|
|
590
591
|
}
|
|
591
|
-
let i =
|
|
592
|
+
let i = L(!0), a = null;
|
|
592
593
|
function o() {
|
|
593
594
|
a !== null && (clearTimeout(a), a = null), i.value = !1, a = window.setTimeout(() => {
|
|
594
595
|
i.value = !0;
|
|
@@ -602,13 +603,13 @@ var U = Ct("common", () => {
|
|
|
602
603
|
isRequestSleep: i,
|
|
603
604
|
requestActive: o
|
|
604
605
|
};
|
|
605
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }),
|
|
606
|
-
let e =
|
|
606
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), K = xt("recentRouters", () => {
|
|
607
|
+
let e = L([]), t = W(), n = Dt();
|
|
607
608
|
function r() {
|
|
608
609
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
609
610
|
}
|
|
610
611
|
function i(t, n) {
|
|
611
|
-
let r =
|
|
612
|
+
let r = yt(n), i = e.value.findIndex((e) => e.name === r.name || Yn(e.name).meta.title === Yn(r.name).meta.title);
|
|
612
613
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
613
614
|
let n = e.value.findIndex((e) => e.name === t);
|
|
614
615
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -638,16 +639,16 @@ var U = Ct("common", () => {
|
|
|
638
639
|
};
|
|
639
640
|
}, { persist: { pick: ["recentRouters"] } });
|
|
640
641
|
// ../../packages/dlzn-ui/store/modules/router.ts
|
|
641
|
-
function
|
|
642
|
-
return
|
|
642
|
+
function un() {
|
|
643
|
+
return J.Get("getRouters", { meta: {
|
|
643
644
|
useFailMsg: "获取用户路由失败",
|
|
644
645
|
useLoading: "正在获取用户路由..."
|
|
645
646
|
} });
|
|
646
647
|
}
|
|
647
|
-
function
|
|
648
|
+
function dn(e) {
|
|
648
649
|
return e.children !== void 0 || e.component !== void 0;
|
|
649
650
|
}
|
|
650
|
-
function
|
|
651
|
+
function fn(e) {
|
|
651
652
|
let t = [];
|
|
652
653
|
return e.forEach((e) => {
|
|
653
654
|
e.path === "/" ? t.push({
|
|
@@ -656,7 +657,7 @@ function pn(e) {
|
|
|
656
657
|
}) : t.push(e);
|
|
657
658
|
}), t;
|
|
658
659
|
}
|
|
659
|
-
function
|
|
660
|
+
function pn(e) {
|
|
660
661
|
let t = (e, n) => {
|
|
661
662
|
let r = [];
|
|
662
663
|
return e.forEach((e) => {
|
|
@@ -680,12 +681,12 @@ function mn(e) {
|
|
|
680
681
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
681
682
|
}
|
|
682
683
|
}
|
|
683
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
684
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = _n(e)), dn(i) && r.push(i);
|
|
684
685
|
}), r;
|
|
685
686
|
}, n = Jn();
|
|
686
687
|
return n.children.push(...e), t([n], null);
|
|
687
688
|
}
|
|
688
|
-
function
|
|
689
|
+
function mn(e) {
|
|
689
690
|
let t = (e) => {
|
|
690
691
|
let n = [...e], r = n.length;
|
|
691
692
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -698,46 +699,46 @@ function hn(e) {
|
|
|
698
699
|
};
|
|
699
700
|
return t(e);
|
|
700
701
|
}
|
|
701
|
-
var
|
|
702
|
-
function
|
|
702
|
+
var hn = [];
|
|
703
|
+
function gn(e) {
|
|
703
704
|
return `./${e.split("___")[0]}.vue`;
|
|
704
705
|
}
|
|
705
|
-
function
|
|
706
|
+
function _n(e) {
|
|
706
707
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
707
|
-
let t = e.component, n = typeof t == "string" ?
|
|
708
|
+
let t = e.component, n = typeof t == "string" ? b[gn(t)] : t;
|
|
708
709
|
if (n === void 0) {
|
|
709
|
-
let e = `路由组件${
|
|
710
|
-
return console.error(e),
|
|
710
|
+
let e = `路由组件${gn(t)}不存在`;
|
|
711
|
+
return console.error(e), g["./NotFound.vue"];
|
|
711
712
|
}
|
|
712
|
-
return typeof t == "string" &&
|
|
713
|
+
return typeof t == "string" && hn.push(gn(t)), () => n().then((t) => ({
|
|
713
714
|
...t.default,
|
|
714
715
|
name: e.name
|
|
715
716
|
}));
|
|
716
717
|
}
|
|
717
718
|
return e.component;
|
|
718
719
|
}
|
|
719
|
-
var
|
|
720
|
-
let e =
|
|
720
|
+
var vn = xt("router", () => {
|
|
721
|
+
let e = L([]), t = Dt(), n = Q();
|
|
721
722
|
async function r() {
|
|
722
|
-
let r = await
|
|
723
|
+
let r = await un();
|
|
723
724
|
VITE_MODE === "development" && n.isAdmin && fetch("/__dev__/save-folder-alias", {
|
|
724
725
|
body: JSON.stringify(r),
|
|
725
726
|
headers: { "Content-Type": "application/json" },
|
|
726
727
|
method: "POST"
|
|
727
728
|
}).catch((e) => {
|
|
728
729
|
console.warn("[dev-save-folder-alias] 写入本地 json 失败", e);
|
|
729
|
-
}),
|
|
730
|
-
if (!
|
|
730
|
+
}), hn.length = 0, e.value = we(mn(pn(fn(r)))), n.isAdmin && Object.keys(b).forEach((e) => {
|
|
731
|
+
if (!hn.includes(e) && ![
|
|
731
732
|
"./tool",
|
|
732
733
|
"./system",
|
|
733
734
|
"./monitor"
|
|
734
735
|
].some((t) => e.startsWith(t))) {
|
|
735
736
|
let t = `${e} 页面对应的路由不存在`;
|
|
736
|
-
VITE_MODE === "development" ?
|
|
737
|
+
VITE_MODE === "development" ? m.error(t) : console.error(t);
|
|
737
738
|
}
|
|
738
739
|
}), t.hasRoute("Index") && t.removeRoute("Index"), e.value.forEach((e) => {
|
|
739
740
|
t.addRoute(e);
|
|
740
|
-
}),
|
|
741
|
+
}), K().init();
|
|
741
742
|
}
|
|
742
743
|
function i() {
|
|
743
744
|
e.value.forEach((e) => {
|
|
@@ -749,46 +750,46 @@ var yn = Ct("router", () => {
|
|
|
749
750
|
getRouters: r,
|
|
750
751
|
routersRaw: e
|
|
751
752
|
};
|
|
752
|
-
}),
|
|
753
|
+
}), yn = { class: "ml-2! flex items-center" }, bn = /*#__PURE__*/ x(/* @__PURE__ */ k({
|
|
753
754
|
__name: "Aside",
|
|
754
755
|
setup(e) {
|
|
755
|
-
let t =
|
|
756
|
-
|
|
756
|
+
let t = W(), n = ln(), r = C(() => n.appInfo.appName), i = vn(), a = L([]);
|
|
757
|
+
H(() => t.name, () => {
|
|
757
758
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
758
759
|
a.value.includes(e) || a.value.push(e);
|
|
759
760
|
});
|
|
760
761
|
}, { immediate: !0 });
|
|
761
|
-
let o =
|
|
762
|
+
let o = C(() => {
|
|
762
763
|
let { hidden: e, parentName: n } = t.meta;
|
|
763
764
|
return n !== "" && e === !0 ? n : t.name;
|
|
764
|
-
}), s =
|
|
765
|
-
return (e, t) => (
|
|
765
|
+
}), s = C(() => n.appInfo.logo || St.asideTopLogoUrl);
|
|
766
|
+
return (e, t) => (I(), w(V(rt), {
|
|
766
767
|
expanded: a.value,
|
|
767
768
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
768
769
|
class: "w-full!",
|
|
769
770
|
value: o.value
|
|
770
771
|
}, {
|
|
771
|
-
logo:
|
|
772
|
+
logo: U(() => [be("div", yn, [O(V(ne), {
|
|
772
773
|
class: "logo",
|
|
773
774
|
src: s.value,
|
|
774
775
|
style: {
|
|
775
776
|
width: "28px",
|
|
776
777
|
height: "28px"
|
|
777
778
|
}
|
|
778
|
-
}, null, 8, ["src"]),
|
|
779
|
+
}, null, 8, ["src"]), O(V(ee), {
|
|
779
780
|
"animation-speed": 8,
|
|
780
781
|
"class-name": "ml-2 text-xl !font-bold",
|
|
781
782
|
"show-border": !1,
|
|
782
783
|
text: r.value
|
|
783
784
|
}, null, 8, ["text"])])]),
|
|
784
|
-
default:
|
|
785
|
+
default: U(() => [O(te, { model: V(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
785
786
|
_: 1
|
|
786
787
|
}, 8, ["expanded", "value"]));
|
|
787
788
|
}
|
|
788
|
-
}), [["__scopeId", "data-v-637195ec"]]),
|
|
789
|
+
}), [["__scopeId", "data-v-637195ec"]]), xn = /* @__PURE__ */ k({
|
|
789
790
|
__name: "Breadcrumb",
|
|
790
791
|
setup(e, { expose: t }) {
|
|
791
|
-
let n =
|
|
792
|
+
let n = W(), r = Dt(), i = K(), a = C(() => {
|
|
792
793
|
let e = n.matched.map((e) => ({
|
|
793
794
|
name: e.name,
|
|
794
795
|
title: e.meta.title
|
|
@@ -801,24 +802,24 @@ var yn = Ct("router", () => {
|
|
|
801
802
|
function o(e) {
|
|
802
803
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
803
804
|
}
|
|
804
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (
|
|
805
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (I(), w(V(ze), {
|
|
805
806
|
key: 0,
|
|
806
807
|
class: "absolute top-px z-10 py-1!"
|
|
807
808
|
}, {
|
|
808
|
-
default:
|
|
809
|
+
default: U(() => [(I(!0), E(ve, null, R(a.value, (e) => (I(), w(V(Be), {
|
|
809
810
|
key: e.name,
|
|
810
811
|
disabled: e.disabled,
|
|
811
812
|
onClick: (t) => o(e.name)
|
|
812
813
|
}, {
|
|
813
|
-
default:
|
|
814
|
+
default: U(() => [D(B(e.title), 1)]),
|
|
814
815
|
_: 2
|
|
815
816
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
816
817
|
_: 1
|
|
817
|
-
})) :
|
|
818
|
+
})) : T("v-if", !0);
|
|
818
819
|
}
|
|
819
|
-
}),
|
|
820
|
-
function
|
|
821
|
-
let t =
|
|
820
|
+
}), Sn = /* @__PURE__ */ new Map();
|
|
821
|
+
function Cn(e) {
|
|
822
|
+
let t = J.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
822
823
|
cssClass: e.cssClass,
|
|
823
824
|
dictType: e.dictType,
|
|
824
825
|
label: e.dictLabel,
|
|
@@ -826,23 +827,23 @@ function wn(e) {
|
|
|
826
827
|
value: e.dictValue
|
|
827
828
|
})));
|
|
828
829
|
e.forEach((e) => {
|
|
829
|
-
|
|
830
|
+
Sn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
830
831
|
});
|
|
831
832
|
}
|
|
832
|
-
var
|
|
833
|
-
function
|
|
834
|
-
return
|
|
833
|
+
var wn = [];
|
|
834
|
+
function Tn(e) {
|
|
835
|
+
return wn.includes(e) || wn.push(e), new Promise((t) => {
|
|
835
836
|
setTimeout(() => {
|
|
836
|
-
let n =
|
|
837
|
-
n.length > 0 &&
|
|
837
|
+
let n = wn.filter((e) => !Sn.has(e));
|
|
838
|
+
n.length > 0 && Cn(n), wn.length = 0, Sn.get(e).then((e) => {
|
|
838
839
|
t(e);
|
|
839
840
|
});
|
|
840
841
|
});
|
|
841
842
|
});
|
|
842
843
|
}
|
|
843
|
-
var
|
|
844
|
+
var En = /* @__PURE__ */ new Map();
|
|
844
845
|
function Dn() {
|
|
845
|
-
|
|
846
|
+
wn.length = 0, Sn.clear(), En.clear();
|
|
846
847
|
}
|
|
847
848
|
function On(e, t) {
|
|
848
849
|
let n = kn(e);
|
|
@@ -850,19 +851,19 @@ function On(e, t) {
|
|
|
850
851
|
}
|
|
851
852
|
function kn(e, t) {
|
|
852
853
|
let n;
|
|
853
|
-
return
|
|
854
|
+
return En.has(e) ? n = En.get(e) : (n = L([]), En.set(e, n), Tn(e).then((e) => {
|
|
854
855
|
n.value = e;
|
|
855
|
-
})),
|
|
856
|
+
})), C(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
856
857
|
}
|
|
857
858
|
function An(e) {
|
|
858
|
-
|
|
859
|
-
|
|
859
|
+
Sn.delete(e), En.has(e) && Tn(e).then((t) => {
|
|
860
|
+
En.get(e).value = t;
|
|
860
861
|
});
|
|
861
862
|
}
|
|
862
863
|
// ../../packages/dlzn-ui/hooks/useSysUser/index.ts
|
|
863
864
|
var jn = /* @__PURE__ */ new Map();
|
|
864
865
|
function Mn(e) {
|
|
865
|
-
let t =
|
|
866
|
+
let t = J.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
866
867
|
...e,
|
|
867
868
|
label: e.userName,
|
|
868
869
|
value: e.userId
|
|
@@ -893,33 +894,33 @@ function Ln(e) {
|
|
|
893
894
|
}
|
|
894
895
|
function Rn(e) {
|
|
895
896
|
let t;
|
|
896
|
-
return Fn.has(e) ? t = Fn.get(e) : (t =
|
|
897
|
+
return Fn.has(e) ? t = Fn.get(e) : (t = L(null), Fn.set(e, t), Pn(e).then((e) => {
|
|
897
898
|
t.value = e;
|
|
898
899
|
})), t;
|
|
899
900
|
}
|
|
900
901
|
// ../../packages/dlzn-ui/store/modules/login.ts
|
|
901
902
|
function zn(e) {
|
|
902
|
-
return
|
|
903
|
+
return J.Post("login", e, { meta: {
|
|
903
904
|
useLoading: "登录中...",
|
|
904
905
|
useToken: !1
|
|
905
906
|
} });
|
|
906
907
|
}
|
|
907
908
|
function Bn() {
|
|
908
|
-
return
|
|
909
|
+
return J.Post("logout", void 0, { meta: {
|
|
909
910
|
useLoading: "退出登录中...",
|
|
910
911
|
useSuccessMsg: !0
|
|
911
912
|
} });
|
|
912
913
|
}
|
|
913
|
-
var Vn =
|
|
914
|
-
let e =
|
|
914
|
+
var Vn = xt("login", () => {
|
|
915
|
+
let e = L(""), t = W(), n = Dt();
|
|
915
916
|
async function r(t) {
|
|
916
917
|
let n = await zn(t);
|
|
917
918
|
e.value = n.token, await Q().getUserInfo();
|
|
918
919
|
}
|
|
919
920
|
function i() {
|
|
920
|
-
e.value = "",
|
|
921
|
+
e.value = "", y().clear(), vn().clear(), Q().clear(), Dn(), In(), lr();
|
|
921
922
|
}
|
|
922
|
-
|
|
923
|
+
H(() => t.name, () => {
|
|
923
924
|
t.name === "Login" && i();
|
|
924
925
|
});
|
|
925
926
|
async function a() {
|
|
@@ -930,10 +931,10 @@ var Vn = Ct("login", () => {
|
|
|
930
931
|
logout: a,
|
|
931
932
|
token: e
|
|
932
933
|
};
|
|
933
|
-
}, { persist: { pick: ["token"] } }), Hn = { class: "flex items-center justify-between" }, Un = /*#__PURE__*/
|
|
934
|
+
}, { persist: { pick: ["token"] } }), Hn = { class: "flex items-center justify-between" }, Un = /*#__PURE__*/ x(/* @__PURE__ */ k({
|
|
934
935
|
__name: "Header",
|
|
935
936
|
setup(e) {
|
|
936
|
-
let n =
|
|
937
|
+
let n = W(), r = Dt(), i = Q(), a = ln(), o = K();
|
|
937
938
|
function s(e) {
|
|
938
939
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
939
940
|
}
|
|
@@ -942,8 +943,8 @@ var Vn = Ct("login", () => {
|
|
|
942
943
|
}
|
|
943
944
|
let l = async (e) => {
|
|
944
945
|
let { value: t } = e;
|
|
945
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await
|
|
946
|
-
}, u =
|
|
946
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await G("确定要退出登录吗?"), Vn().logout());
|
|
947
|
+
}, u = _.isMd;
|
|
947
948
|
function d(e, t) {
|
|
948
949
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
949
950
|
o.recentRouters.length > 1 && i.push({
|
|
@@ -964,81 +965,81 @@ var Vn = Ct("login", () => {
|
|
|
964
965
|
onClick: () => {
|
|
965
966
|
l > s && r.push(u), o.recentRouters = o.recentRouters.slice(0, s + 1);
|
|
966
967
|
}
|
|
967
|
-
}),
|
|
968
|
+
}), re(e, i);
|
|
968
969
|
}
|
|
969
|
-
let f =
|
|
970
|
-
return (e, r) => (
|
|
971
|
-
default:
|
|
970
|
+
let f = g["./modules/HeaderOperations.vue"] ? Se(g["./modules/HeaderOperations.vue"]) : void 0;
|
|
971
|
+
return (e, r) => (I(), w(V($e), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
972
|
+
default: U(() => [O(V(Qe), {
|
|
972
973
|
"expand-type": "popup",
|
|
973
|
-
value:
|
|
974
|
+
value: V(n).name,
|
|
974
975
|
onChange: s
|
|
975
976
|
}, {
|
|
976
|
-
logo:
|
|
977
|
+
logo: U(() => [O(V($), {
|
|
977
978
|
class: "ml-0! shrink-0",
|
|
978
979
|
shape: "circle",
|
|
979
980
|
size: "large",
|
|
980
981
|
variant: "text",
|
|
981
|
-
onClick: r[0] ||= (e) =>
|
|
982
|
+
onClick: r[0] ||= (e) => V(a).drawerOpen = !V(a).drawerOpen
|
|
982
983
|
}, {
|
|
983
|
-
default:
|
|
984
|
+
default: U(() => [O(V(t), { icon: "lineicons:menu-hamburger-1" })]),
|
|
984
985
|
_: 1
|
|
985
986
|
})]),
|
|
986
|
-
operations:
|
|
987
|
+
operations: U(() => [V(f) ? (I(), w(V(f), { key: 0 })) : T("v-if", !0), O(V(ie), {
|
|
987
988
|
options: [{
|
|
988
989
|
content: "个人中心",
|
|
989
990
|
value: "profile",
|
|
990
|
-
prefixIcon: () =>
|
|
991
|
+
prefixIcon: () => j(V(t), {
|
|
991
992
|
icon: "material-symbols:account-circle",
|
|
992
993
|
size: "16"
|
|
993
994
|
})
|
|
994
995
|
}, {
|
|
995
996
|
content: "退出登录",
|
|
996
997
|
value: "logout",
|
|
997
|
-
prefixIcon: () =>
|
|
998
|
+
prefixIcon: () => j(V(t), {
|
|
998
999
|
icon: "material-symbols:logout",
|
|
999
1000
|
size: "16"
|
|
1000
1001
|
})
|
|
1001
1002
|
}],
|
|
1002
1003
|
onClick: l
|
|
1003
1004
|
}, {
|
|
1004
|
-
default:
|
|
1005
|
+
default: U(() => [V(u) ? (I(), w(V($), {
|
|
1005
1006
|
key: 0,
|
|
1006
1007
|
icon: "material-symbols:account-circle",
|
|
1007
1008
|
shape: "square",
|
|
1008
1009
|
variant: "text"
|
|
1009
|
-
})) : (
|
|
1010
|
+
})) : (I(), w(V($), {
|
|
1010
1011
|
key: 1,
|
|
1011
1012
|
icon: "material-symbols:account-circle",
|
|
1012
1013
|
variant: "text"
|
|
1013
1014
|
}, {
|
|
1014
|
-
suffix:
|
|
1015
|
+
suffix: U(() => [O(V(t), {
|
|
1015
1016
|
icon: "icon-park-outline:down",
|
|
1016
1017
|
size: "18"
|
|
1017
1018
|
})]),
|
|
1018
|
-
default:
|
|
1019
|
+
default: U(() => [D(B(V(i).userInfo.userName) + " ", 1)]),
|
|
1019
1020
|
_: 1
|
|
1020
1021
|
}))]),
|
|
1021
1022
|
_: 1
|
|
1022
1023
|
}, 8, ["options"])]),
|
|
1023
|
-
default:
|
|
1024
|
+
default: U(() => [(I(!0), E(ve, null, R(V(o).recentRouters, (e) => (I(), w(V(it), {
|
|
1024
1025
|
key: e.name,
|
|
1025
1026
|
value: e.name,
|
|
1026
1027
|
onContextmenu: (t) => d(t, e.name)
|
|
1027
1028
|
}, {
|
|
1028
|
-
default:
|
|
1029
|
+
default: U(() => [be("div", Hn, [be("span", null, B(V(Yn)(e.name).meta.title), 1), V(o).recentRouters.length > 1 ? (I(), w(V($), {
|
|
1029
1030
|
key: 0,
|
|
1030
1031
|
class: "ml-1!",
|
|
1031
1032
|
shape: "square",
|
|
1032
1033
|
size: "small",
|
|
1033
1034
|
variant: "text",
|
|
1034
|
-
onClick:
|
|
1035
|
+
onClick: Re((t) => c(e.name), ["stop"])
|
|
1035
1036
|
}, {
|
|
1036
|
-
icon:
|
|
1037
|
+
icon: U(() => [O(V(t), {
|
|
1037
1038
|
icon: "material-symbols:close",
|
|
1038
1039
|
style: { "font-size": "12px !important" }
|
|
1039
1040
|
})]),
|
|
1040
1041
|
_: 1
|
|
1041
|
-
}, 8, ["onClick"])) :
|
|
1042
|
+
}, 8, ["onClick"])) : T("v-if", !0)])]),
|
|
1042
1043
|
_: 2
|
|
1043
1044
|
}, 1032, ["value", "onContextmenu"]))), 128))]),
|
|
1044
1045
|
_: 1
|
|
@@ -1046,40 +1047,40 @@ var Vn = Ct("login", () => {
|
|
|
1046
1047
|
_: 1
|
|
1047
1048
|
}));
|
|
1048
1049
|
}
|
|
1049
|
-
}), [["__scopeId", "data-v-6c2c986c"]]), Wn = /*#__PURE__*/
|
|
1050
|
+
}), [["__scopeId", "data-v-6c2c986c"]]), Wn = /*#__PURE__*/ x(/* @__PURE__ */ k({
|
|
1050
1051
|
__name: "Entry",
|
|
1051
1052
|
setup(t) {
|
|
1052
|
-
let n =
|
|
1053
|
+
let n = W(), r = ln(), i = K(), a = y(), o = C(() => i.recentRouters.filter((e) => Yn(e.name).meta.noCache === !1).map((e) => e.name)), s = Le("breadcrumb"), c = C(() => (s.value?.items.length ?? 0) > 0), l = C(() => _.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), u = _.isMd, d = Le("contentRef"), { height: f } = pt(d);
|
|
1053
1054
|
function p({ size: e }) {
|
|
1054
1055
|
r.drawerSize = e;
|
|
1055
1056
|
}
|
|
1056
|
-
let m =
|
|
1057
|
+
let m = C(() => n.meta.fullScreen);
|
|
1057
1058
|
return (t, n) => {
|
|
1058
|
-
let i =
|
|
1059
|
-
return m.value ? (
|
|
1060
|
-
default:
|
|
1059
|
+
let i = Me("RouterView");
|
|
1060
|
+
return m.value ? (I(), w(i, { key: 0 }, {
|
|
1061
|
+
default: U(({ Component: e }) => [(I(), w(z(e)))]),
|
|
1061
1062
|
_: 1
|
|
1062
|
-
})) : (
|
|
1063
|
+
})) : (I(), w(V(nt), {
|
|
1063
1064
|
key: 1,
|
|
1064
1065
|
class: "h-full"
|
|
1065
1066
|
}, {
|
|
1066
|
-
default:
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
visible:
|
|
1070
|
-
"onUpdate:visible": n[0] ||= (e) =>
|
|
1067
|
+
default: U(() => [
|
|
1068
|
+
O(Un),
|
|
1069
|
+
O(V(Je), {
|
|
1070
|
+
visible: V(r).drawerOpen,
|
|
1071
|
+
"onUpdate:visible": n[0] ||= (e) => V(r).drawerOpen = e,
|
|
1071
1072
|
footer: !1,
|
|
1072
|
-
mode:
|
|
1073
|
+
mode: V(u) ? "overlay" : "push",
|
|
1073
1074
|
placement: "left",
|
|
1074
|
-
"show-overlay":
|
|
1075
|
-
size:
|
|
1075
|
+
"show-overlay": V(u),
|
|
1076
|
+
size: V(u) ? "200px" : `${V(r).drawerSize}px`,
|
|
1076
1077
|
"size-draggable": {
|
|
1077
1078
|
max: 450,
|
|
1078
1079
|
min: 180
|
|
1079
1080
|
},
|
|
1080
1081
|
onSizeDragEnd: p
|
|
1081
1082
|
}, {
|
|
1082
|
-
default:
|
|
1083
|
+
default: U(() => [O(bn, { class: "no_drawer_body_padding" })]),
|
|
1083
1084
|
_: 1
|
|
1084
1085
|
}, 8, [
|
|
1085
1086
|
"visible",
|
|
@@ -1087,12 +1088,12 @@ var Vn = Ct("login", () => {
|
|
|
1087
1088
|
"show-overlay",
|
|
1088
1089
|
"size"
|
|
1089
1090
|
]),
|
|
1090
|
-
|
|
1091
|
+
O(V(Ge), {
|
|
1091
1092
|
ref_key: "contentRef",
|
|
1092
1093
|
ref: d,
|
|
1093
1094
|
class: "overflow-hidden"
|
|
1094
1095
|
}, {
|
|
1095
|
-
default:
|
|
1096
|
+
default: U(() => [O(V(e), {
|
|
1096
1097
|
always: "",
|
|
1097
1098
|
"view-class": De(["relative flex flex-col", {
|
|
1098
1099
|
...l.value,
|
|
@@ -1100,14 +1101,14 @@ var Vn = Ct("login", () => {
|
|
|
1100
1101
|
}]),
|
|
1101
1102
|
"view-style": {
|
|
1102
1103
|
minWidth: "1200px",
|
|
1103
|
-
minHeight: `${Math.max(
|
|
1104
|
+
minHeight: `${Math.max(V(f), 438)}px`
|
|
1104
1105
|
}
|
|
1105
1106
|
}, {
|
|
1106
|
-
default:
|
|
1107
|
-
default:
|
|
1108
|
-
exclude:
|
|
1107
|
+
default: U(() => [O(xn, { ref: "breadcrumb" }, null, 512), O(i, null, {
|
|
1108
|
+
default: U(({ Component: e }) => [(I(), w(ye, {
|
|
1109
|
+
exclude: V(a).excludeKPname,
|
|
1109
1110
|
include: o.value
|
|
1110
|
-
}, [(
|
|
1111
|
+
}, [(I(), w(z(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
1111
1112
|
_: 1
|
|
1112
1113
|
})]),
|
|
1113
1114
|
_: 1
|
|
@@ -1121,7 +1122,7 @@ var Vn = Ct("login", () => {
|
|
|
1121
1122
|
}
|
|
1122
1123
|
}), [["__scopeId", "data-v-de5cbc76"]]), Gn = /* @__PURE__ */ new Set();
|
|
1123
1124
|
function Kn(e, t) {
|
|
1124
|
-
let n =
|
|
1125
|
+
let n = C(() => typeof e.body == "function" ? e.body(j) : e.body), r = {
|
|
1125
1126
|
attach: "#app",
|
|
1126
1127
|
closeOnEscKeydown: !1,
|
|
1127
1128
|
closeOnOverlayClick: !1,
|
|
@@ -1131,14 +1132,14 @@ function Kn(e, t) {
|
|
|
1131
1132
|
lazy: !0,
|
|
1132
1133
|
sizeDraggable: !0,
|
|
1133
1134
|
...e ?? {},
|
|
1134
|
-
body: () =>
|
|
1135
|
+
body: () => j(Pr, {}, { default: () => n.value })
|
|
1135
1136
|
}, i, a = {
|
|
1136
1137
|
...r,
|
|
1137
1138
|
onClose: (e) => {
|
|
1138
1139
|
r.onClose?.(e), Gn.delete(i);
|
|
1139
1140
|
}
|
|
1140
1141
|
};
|
|
1141
|
-
return delete a.closeWhenCloseAll, i =
|
|
1142
|
+
return delete a.closeWhenCloseAll, i = Ye(a, t ?? h()), r.closeWhenCloseAll && Gn.add(i), i;
|
|
1142
1143
|
}
|
|
1143
1144
|
var qn = function(...e) {
|
|
1144
1145
|
return Kn(...e);
|
|
@@ -1153,7 +1154,7 @@ function Jn() {
|
|
|
1153
1154
|
return {
|
|
1154
1155
|
children: [{
|
|
1155
1156
|
children: [{
|
|
1156
|
-
component:
|
|
1157
|
+
component: g["./profile/Index.vue"],
|
|
1157
1158
|
meta: {
|
|
1158
1159
|
fullScreen: !1,
|
|
1159
1160
|
hidden: !0,
|
|
@@ -1165,7 +1166,7 @@ function Jn() {
|
|
|
1165
1166
|
name: "Profile",
|
|
1166
1167
|
path: "profile"
|
|
1167
1168
|
}],
|
|
1168
|
-
component:
|
|
1169
|
+
component: g["./Home.vue"],
|
|
1169
1170
|
meta: {
|
|
1170
1171
|
fullScreen: !1,
|
|
1171
1172
|
hidden: !1,
|
|
@@ -1182,12 +1183,12 @@ function Jn() {
|
|
|
1182
1183
|
path: "/"
|
|
1183
1184
|
};
|
|
1184
1185
|
}
|
|
1185
|
-
var
|
|
1186
|
-
history:
|
|
1186
|
+
var q = wt({
|
|
1187
|
+
history: Tt(VITE_BASE_URL),
|
|
1187
1188
|
routes: [
|
|
1188
1189
|
Jn(),
|
|
1189
1190
|
{
|
|
1190
|
-
component:
|
|
1191
|
+
component: g["./Login.vue"],
|
|
1191
1192
|
meta: {
|
|
1192
1193
|
fullScreen: !1,
|
|
1193
1194
|
hidden: !0,
|
|
@@ -1199,8 +1200,8 @@ var K = Et({
|
|
|
1199
1200
|
name: "Login",
|
|
1200
1201
|
path: "/login"
|
|
1201
1202
|
},
|
|
1202
|
-
...
|
|
1203
|
-
component:
|
|
1203
|
+
...g["./Register.vue"] === void 0 ? [] : [{
|
|
1204
|
+
component: g["./Register.vue"],
|
|
1204
1205
|
meta: {
|
|
1205
1206
|
fullScreen: !1,
|
|
1206
1207
|
hidden: !0,
|
|
@@ -1213,7 +1214,7 @@ var K = Et({
|
|
|
1213
1214
|
path: "/register"
|
|
1214
1215
|
}],
|
|
1215
1216
|
{
|
|
1216
|
-
component:
|
|
1217
|
+
component: g["./NotFound.vue"],
|
|
1217
1218
|
meta: {
|
|
1218
1219
|
fullScreen: !1,
|
|
1219
1220
|
hidden: !0,
|
|
@@ -1229,16 +1230,16 @@ var K = Et({
|
|
|
1229
1230
|
sensitive: !0,
|
|
1230
1231
|
strict: !0
|
|
1231
1232
|
});
|
|
1232
|
-
|
|
1233
|
-
if (e.query._fromLeftTree === "true" &&
|
|
1233
|
+
q.beforeEach(async (e) => {
|
|
1234
|
+
if (e.query._fromLeftTree === "true" && y().add(e.name), !["Login", "Register"].includes(e.name)) return Vn().token === "" ? { name: "Login" } : vn().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), q.resolve({
|
|
1234
1235
|
path: e.path,
|
|
1235
1236
|
query: e.query
|
|
1236
1237
|
}));
|
|
1237
|
-
}),
|
|
1238
|
-
|
|
1238
|
+
}), q.afterEach((e, t, n) => {
|
|
1239
|
+
sn.closeAll(), qn.closeAll();
|
|
1239
1240
|
let { meta: r, name: a } = e, { fullScreen: o, parentName: s, title: c } = r;
|
|
1240
|
-
document.title = c ||
|
|
1241
|
-
let l =
|
|
1241
|
+
document.title = c || ln().appInfo.appName;
|
|
1242
|
+
let l = K();
|
|
1242
1243
|
if (![
|
|
1243
1244
|
"Login",
|
|
1244
1245
|
"NotFound",
|
|
@@ -1250,10 +1251,10 @@ K.beforeEach(async (e) => {
|
|
|
1250
1251
|
query: e.query
|
|
1251
1252
|
});
|
|
1252
1253
|
}
|
|
1253
|
-
|
|
1254
|
+
y().remove(a), VITE_MODE === "development" && (Et(n, Ct.aborted) ? i.info("导航被中断") : Et(n, Ct.cancelled) ? i.info("导航被取消,因为有一个新的导航") : Et(n, Ct.duplicated) && i.info("导航被阻止,因为我们已经在目标位置了"));
|
|
1254
1255
|
});
|
|
1255
1256
|
function Yn(e) {
|
|
1256
|
-
if (
|
|
1257
|
+
if (q.hasRoute(e)) return q.getRoutes().find((t) => t.name === e);
|
|
1257
1258
|
}
|
|
1258
1259
|
// ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
1259
1260
|
var Xn = 15e3, Zn = "网络错误,请稍后再试";
|
|
@@ -1272,15 +1273,7 @@ function $n(e, t = !0) {
|
|
|
1272
1273
|
function er(e, t = !0) {
|
|
1273
1274
|
return new URLSearchParams($n(e, t)).toString();
|
|
1274
1275
|
}
|
|
1275
|
-
|
|
1276
|
-
let { data: t, response: n, useDownload: r } = e;
|
|
1277
|
-
if (typeof r == "string") J(t, r);
|
|
1278
|
-
else {
|
|
1279
|
-
let e = new URLSearchParams((n.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename");
|
|
1280
|
-
e ? J(t, e) : p.error("返回的 response header 没有文件名");
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
var q = At({
|
|
1276
|
+
var J = Ot({
|
|
1284
1277
|
baseURL: VITE_BASE_URL,
|
|
1285
1278
|
beforeRequest: async (e) => {
|
|
1286
1279
|
e.meta = {
|
|
@@ -1303,13 +1296,13 @@ var q = At({
|
|
|
1303
1296
|
let { useBeforeRequestIntercept: t, useEmptyData: n, useEmptyParams: i, useFormData: a, useInPolling: o, useLoading: s, useResponseBlob: c, useToken: l } = e.meta;
|
|
1304
1297
|
t !== void 0 && await t(e), e.config.credentials = e.config.credentials ?? "omit";
|
|
1305
1298
|
let [u, ...d] = VITE_API_PROXY_PREFIX_ARRAY;
|
|
1306
|
-
if (!e.url.startsWith("http") && !d.some((t) =>
|
|
1299
|
+
if (!e.url.startsWith("http") && !d.some((t) => jt.join("/", e.url).startsWith(jt.join("/", t, "/"))) && (e.url = jt.join(u, e.url)), o || ln().requestActive(), l) {
|
|
1307
1300
|
let t = Vn();
|
|
1308
1301
|
t.token ? e.config.headers.Authorization = t.token : e.abort();
|
|
1309
1302
|
}
|
|
1310
1303
|
s !== !1 && r.show(s === !0 ? void 0 : s);
|
|
1311
1304
|
let f = e.config.params;
|
|
1312
|
-
if (typeof f != "string" && (e.config.params = er(f, i)),
|
|
1305
|
+
if (typeof f != "string" && (e.config.params = er(f, i)), bt(e.data) && (e.data = Qn(e.data, n)), a) {
|
|
1313
1306
|
let t = new FormData();
|
|
1314
1307
|
Object.keys(e.data).forEach((n) => {
|
|
1315
1308
|
t.append(n, e.data[n]);
|
|
@@ -1318,7 +1311,7 @@ var q = At({
|
|
|
1318
1311
|
e.config.timeout === Xn && (a || e.data instanceof FormData || c) && (e.config.timeout = 0);
|
|
1319
1312
|
},
|
|
1320
1313
|
cacheFor: null,
|
|
1321
|
-
requestAdapter:
|
|
1314
|
+
requestAdapter: kt(),
|
|
1322
1315
|
responded: {
|
|
1323
1316
|
onComplete: (e) => {
|
|
1324
1317
|
e.meta.useLoading !== !1 && r.hide();
|
|
@@ -1334,37 +1327,37 @@ var q = At({
|
|
|
1334
1327
|
},
|
|
1335
1328
|
onSuccess: async (e, t) => {
|
|
1336
1329
|
if (typeof e == "string") return e;
|
|
1337
|
-
let { useDataResult: n, useDownload: r, useFailMsg: a, useResponseBlob: o, useResponseText: s, useSuccessMsg: c, useSysFailMsg: l, useToken: u } = t.meta, { headers: d, ok: f, status:
|
|
1330
|
+
let { useDataResult: n, useDownload: r, useFailMsg: a, useResponseBlob: o, useResponseText: s, useSuccessMsg: c, useSysFailMsg: l, useToken: u } = t.meta, { headers: d, ok: f, status: p } = e;
|
|
1338
1331
|
if (f === !1) {
|
|
1339
1332
|
if (l) {
|
|
1340
1333
|
let e = {
|
|
1341
1334
|
403: "当前操作没有权限",
|
|
1342
1335
|
404: "访问资源不存在",
|
|
1343
1336
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1344
|
-
}[
|
|
1337
|
+
}[p] ?? Zn;
|
|
1345
1338
|
i.error(e);
|
|
1346
1339
|
}
|
|
1347
1340
|
return Promise.reject(e);
|
|
1348
1341
|
}
|
|
1342
|
+
if (r !== !1 && !d.get("content-type")?.includes("application/json")) return or(e, {
|
|
1343
|
+
filename: r === !0 ? void 0 : r,
|
|
1344
|
+
url: t.url
|
|
1345
|
+
});
|
|
1349
1346
|
if (o && !d.get("content-type")?.includes("application/json")) {
|
|
1350
1347
|
let t;
|
|
1351
1348
|
try {
|
|
1352
1349
|
t = await e.blob();
|
|
1353
1350
|
} catch (e) {
|
|
1354
|
-
return
|
|
1351
|
+
return m.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1355
1352
|
}
|
|
1356
|
-
return
|
|
1357
|
-
data: t,
|
|
1358
|
-
response: e,
|
|
1359
|
-
useDownload: r
|
|
1360
|
-
}), t;
|
|
1353
|
+
return t;
|
|
1361
1354
|
}
|
|
1362
1355
|
if (s && !d.get("content-type")?.includes("application/json")) {
|
|
1363
1356
|
let t;
|
|
1364
1357
|
try {
|
|
1365
1358
|
t = await e.text();
|
|
1366
1359
|
} catch (e) {
|
|
1367
|
-
return
|
|
1360
|
+
return m.error("返回的 response 不能被text() 方法所解析"), Promise.reject(e);
|
|
1368
1361
|
}
|
|
1369
1362
|
return t;
|
|
1370
1363
|
}
|
|
@@ -1372,118 +1365,113 @@ var q = At({
|
|
|
1372
1365
|
try {
|
|
1373
1366
|
h = await e.json();
|
|
1374
1367
|
} catch (e) {
|
|
1375
|
-
return
|
|
1368
|
+
return m.error("返回的 response 不能被json() 方法所解析"), Promise.reject(e);
|
|
1376
1369
|
}
|
|
1377
1370
|
if (h?.code !== void 0) {
|
|
1378
|
-
let { code:
|
|
1379
|
-
if (
|
|
1380
|
-
if (
|
|
1381
|
-
if (
|
|
1382
|
-
|
|
1383
|
-
body: () =>
|
|
1371
|
+
let { code: e, data: s, msg: l } = h;
|
|
1372
|
+
if (e >= 400) {
|
|
1373
|
+
if (e === 600) {
|
|
1374
|
+
if (ar(l).then((e) => {
|
|
1375
|
+
G({
|
|
1376
|
+
body: () => j("div", { innerHTML: e }),
|
|
1384
1377
|
cancelBtn: null
|
|
1385
1378
|
});
|
|
1386
1379
|
}), !o) return h;
|
|
1387
|
-
} else
|
|
1380
|
+
} else e === 401 && u ? q.push({ name: "Login" }) : a !== !1 && i.error(a === !0 ? l : a);
|
|
1388
1381
|
return Promise.reject(h);
|
|
1389
1382
|
}
|
|
1390
1383
|
{
|
|
1391
|
-
let a =
|
|
1392
|
-
code:
|
|
1384
|
+
let a = St.alovaResCodeSuccessCb?.({
|
|
1385
|
+
code: e,
|
|
1393
1386
|
data: s,
|
|
1394
1387
|
msg: l
|
|
1395
1388
|
});
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
}
|
|
1389
|
+
if (a !== void 0) return a;
|
|
1390
|
+
if (r !== !1) {
|
|
1391
|
+
if (typeof s == "string") J.Get(s, { meta: { ...t.meta } });
|
|
1392
|
+
else return Promise.reject("下载失败,返回的不是一个有效的地址");
|
|
1393
|
+
}
|
|
1394
|
+
return c && i(l), n ? s === void 0 ? h : s : h;
|
|
1401
1395
|
}
|
|
1402
1396
|
}
|
|
1403
1397
|
return h;
|
|
1404
1398
|
}
|
|
1405
1399
|
},
|
|
1406
1400
|
shareRequest: !1,
|
|
1407
|
-
statesHook:
|
|
1401
|
+
statesHook: At,
|
|
1408
1402
|
timeout: Xn
|
|
1409
1403
|
});
|
|
1410
1404
|
// ../../packages/dlzn-ui/utils/tool.ts
|
|
1411
|
-
async function
|
|
1405
|
+
async function tr(e, t) {
|
|
1412
1406
|
let { default: n } = await import("crypto-js"), r = n.enc.Utf8.parse(t);
|
|
1413
1407
|
return n.AES.decrypt(e, r, {
|
|
1414
1408
|
mode: n.mode.ECB,
|
|
1415
1409
|
padding: n.pad.Pkcs7
|
|
1416
1410
|
}).toString(n.enc.Utf8);
|
|
1417
1411
|
}
|
|
1418
|
-
async function
|
|
1412
|
+
async function nr(e, t) {
|
|
1419
1413
|
let { default: n } = await import("crypto-js"), r = n.enc.Utf8.parse(t), i = n.enc.Utf8.parse(e);
|
|
1420
1414
|
return n.AES.encrypt(i, r, {
|
|
1421
1415
|
mode: n.mode.ECB,
|
|
1422
1416
|
padding: n.pad.Pkcs7
|
|
1423
1417
|
}).toString();
|
|
1424
1418
|
}
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
e.source instanceof Blob ? t({
|
|
1428
|
-
blob: e.source,
|
|
1429
|
-
name: e.name
|
|
1430
|
-
}) : q.Get(e.source, { meta: {
|
|
1431
|
-
useLoading: "下载中...",
|
|
1432
|
-
useResponseBlob: !0
|
|
1433
|
-
} }).then((n) => {
|
|
1434
|
-
t({
|
|
1435
|
-
blob: n,
|
|
1436
|
-
name: e.name
|
|
1437
|
-
});
|
|
1438
|
-
});
|
|
1439
|
-
}));
|
|
1440
|
-
return Promise.all(n).then((e) => e.length === 1 ? J(e[0].blob, e[0].name) : import("./jszip.min-BiYpajap.mjs").then((e) => /* @__PURE__ */ Ht(e.default, 1)).then(({ default: n }) => {
|
|
1419
|
+
function rr(e, t) {
|
|
1420
|
+
return import("./jszip.min-Blm-2Wov.mjs").then((e) => /* @__PURE__ */ Bt(e.default, 1)).then(({ default: n }) => {
|
|
1441
1421
|
let r = new n(), i = r.folder(t);
|
|
1442
1422
|
return i === null ? Promise.reject("zip文件夹创建失败,请检查zipName是否合法") : (e.forEach((e) => {
|
|
1443
|
-
i.file(e.name, e.
|
|
1444
|
-
}), r.generateAsync({ type: "blob" }).then((e) =>
|
|
1445
|
-
})
|
|
1423
|
+
i.file(e.name, J.Get(e.source));
|
|
1424
|
+
}), r.generateAsync({ type: "blob" }).then((e) => or(new Response(e), { filename: t })));
|
|
1425
|
+
});
|
|
1446
1426
|
}
|
|
1447
|
-
async function
|
|
1427
|
+
async function ir() {
|
|
1448
1428
|
let { default: e } = await import("@fingerprintjs/fingerprintjs");
|
|
1449
1429
|
return (await (await e.load()).get()).visitorId;
|
|
1450
1430
|
}
|
|
1451
|
-
async function
|
|
1431
|
+
async function ar(e, t) {
|
|
1452
1432
|
let { default: n } = await import("dompurify");
|
|
1453
1433
|
return n.sanitize(e, t);
|
|
1454
1434
|
}
|
|
1455
|
-
async function
|
|
1456
|
-
|
|
1457
|
-
|
|
1435
|
+
async function or(e, t) {
|
|
1436
|
+
if (e.body === null) return Promise.reject("响应对象没有body");
|
|
1437
|
+
let { default: n } = await import("streamsaver"), { filename: r, url: i } = t ?? {}, a = null;
|
|
1438
|
+
if (i !== void 0) {
|
|
1439
|
+
let e = f(i, !0);
|
|
1440
|
+
a = e === "" ? null : e;
|
|
1441
|
+
}
|
|
1442
|
+
let o = r ?? new URLSearchParams((e.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename") ?? a;
|
|
1443
|
+
if (o === null) return Promise.reject("未配置下载文件名");
|
|
1444
|
+
let s = n.createWriteStream(o);
|
|
1445
|
+
await e.body.pipeTo(s);
|
|
1458
1446
|
}
|
|
1459
1447
|
// ../../packages/dlzn-ui/hooks/useLabel/index.ts
|
|
1460
1448
|
function sr(e, t) {
|
|
1461
|
-
return
|
|
1449
|
+
return C(() => {
|
|
1462
1450
|
if (t === void 0) return e.value.map((e) => e.label);
|
|
1463
|
-
if (Array.isArray(t)) return e.value.length === 0 ? [] :
|
|
1451
|
+
if (Array.isArray(t)) return e.value.length === 0 ? [] : en(e.value, t);
|
|
1464
1452
|
if (e.value.length === 0) return "";
|
|
1465
1453
|
if (typeof t == "string") {
|
|
1466
1454
|
let n = t.split(",").filter(Boolean);
|
|
1467
|
-
if (n.length > 0) return
|
|
1455
|
+
if (n.length > 0) return en(e.value, n).join(",");
|
|
1468
1456
|
}
|
|
1469
|
-
return
|
|
1457
|
+
return en(e.value, t);
|
|
1470
1458
|
});
|
|
1471
1459
|
}
|
|
1472
1460
|
// ../../packages/dlzn-ui/hooks/useList/index.ts
|
|
1473
1461
|
var cr = {
|
|
1474
|
-
systemDeptTree: () =>
|
|
1475
|
-
systemMenuTree: () =>
|
|
1462
|
+
systemDeptTree: () => J.Get("system/user/deptTree", { transform: (e) => oe(e, { fieldNamesMapping: { value: "id" } }) }),
|
|
1463
|
+
systemMenuTree: () => J.Get("system/menu/list", { transform: (e) => ae(e.map((e) => ({
|
|
1476
1464
|
...e,
|
|
1477
1465
|
label: e.menuName,
|
|
1478
1466
|
value: e.menuId
|
|
1479
1467
|
})), { idKey: "value" }) }),
|
|
1480
|
-
...
|
|
1468
|
+
...St.useListPromiseMap ?? {}
|
|
1481
1469
|
}, Y = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map();
|
|
1482
1470
|
function lr() {
|
|
1483
1471
|
Y.clear(), X.clear();
|
|
1484
1472
|
}
|
|
1485
1473
|
function Z(e) {
|
|
1486
|
-
let t = Y.has(e) ? Y.get(e) :
|
|
1474
|
+
let t = Y.has(e) ? Y.get(e) : L([]);
|
|
1487
1475
|
return Y.has(e) || Y.set(e, t), t.value.length === 0 && (X.has(e) && X.get(e) !== !1 || (X.set(e, !0), cr[e]().then((e) => {
|
|
1488
1476
|
t.value = e;
|
|
1489
1477
|
}).finally(() => {
|
|
@@ -1502,11 +1490,11 @@ function dr(e) {
|
|
|
1502
1490
|
})));
|
|
1503
1491
|
}
|
|
1504
1492
|
// ../../packages/dlzn-ui/components/cascader/src/cascader.vue
|
|
1505
|
-
var fr = /* @__PURE__ */
|
|
1493
|
+
var fr = /* @__PURE__ */ k({
|
|
1506
1494
|
inheritAttrs: !1,
|
|
1507
1495
|
name: "TCascader",
|
|
1508
1496
|
__name: "cascader",
|
|
1509
|
-
props: /*@__PURE__*/
|
|
1497
|
+
props: /*@__PURE__*/ N({
|
|
1510
1498
|
modelValue: {},
|
|
1511
1499
|
"onUpdate:modelValue": { type: Function },
|
|
1512
1500
|
options: {},
|
|
@@ -1559,9 +1547,9 @@ var fr = /* @__PURE__ */ O({
|
|
|
1559
1547
|
onFocus: { type: Function },
|
|
1560
1548
|
onPopupVisibleChange: { type: Function },
|
|
1561
1549
|
onRemove: { type: Function }
|
|
1562
|
-
},
|
|
1550
|
+
}, Gt),
|
|
1563
1551
|
setup(e) {
|
|
1564
|
-
let t = e, n =
|
|
1552
|
+
let t = e, n = M("isFormDisabled", C(() => !1)), r = M("isFormReadonly", C(() => !1)), i = C(() => typeof t.options == "string" ? Z(t.options).value : t.options), a = C(() => {
|
|
1565
1553
|
let e = t.disabled ?? n.value, i = t.readonly ?? r.value, a = {
|
|
1566
1554
|
...t,
|
|
1567
1555
|
minCollapsedNum: e || i ? 0 : t.minCollapsedNum
|
|
@@ -1569,17 +1557,17 @@ var fr = /* @__PURE__ */ O({
|
|
|
1569
1557
|
return Object.keys(a).forEach((e) => {
|
|
1570
1558
|
a[e] === void 0 && delete a[e];
|
|
1571
1559
|
}), a;
|
|
1572
|
-
}), o =
|
|
1560
|
+
}), o = A();
|
|
1573
1561
|
function s(e) {
|
|
1574
1562
|
o.exposed = e ?? {};
|
|
1575
1563
|
}
|
|
1576
|
-
return (e, t) => (
|
|
1564
|
+
return (e, t) => (I(), w(z(j(V(He), P(e.$attrs, {
|
|
1577
1565
|
...a.value,
|
|
1578
1566
|
options: i.value,
|
|
1579
1567
|
ref: s
|
|
1580
1568
|
}), e.$slots))));
|
|
1581
1569
|
}
|
|
1582
|
-
}), pr = /* @__PURE__ */
|
|
1570
|
+
}), pr = /* @__PURE__ */ k({
|
|
1583
1571
|
inheritAttrs: !1,
|
|
1584
1572
|
name: "TCheckboxGroup",
|
|
1585
1573
|
__name: "checkbox-group",
|
|
@@ -1606,31 +1594,31 @@ var fr = /* @__PURE__ */ O({
|
|
|
1606
1594
|
},
|
|
1607
1595
|
emits: ["update:modelValue"],
|
|
1608
1596
|
setup(e, { emit: t }) {
|
|
1609
|
-
let n = e, r = t, i =
|
|
1597
|
+
let n = e, r = t, i = A();
|
|
1610
1598
|
function a(e) {
|
|
1611
1599
|
i.exposed = e ?? {};
|
|
1612
1600
|
}
|
|
1613
|
-
let o =
|
|
1601
|
+
let o = C(() => {
|
|
1614
1602
|
let e;
|
|
1615
|
-
return n.dicCode ? (n.options &&
|
|
1603
|
+
return n.dicCode ? (n.options && m.error("TCheckboxGroup: dicCode and options cannot be used together"), e = kn(n.dicCode).value) : e = typeof n.options == "string" ? Z(n.options).value : n.options, n.showCheckAll && (e === void 0 ? m.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
1616
1604
|
checkAll: !0,
|
|
1617
1605
|
label: "全选"
|
|
1618
1606
|
})), e;
|
|
1619
|
-
}), s =
|
|
1620
|
-
if (!Array.isArray(n.modelValue))
|
|
1607
|
+
}), s = C(() => {
|
|
1608
|
+
if (!Array.isArray(n.modelValue)) m.error("TCheckboxGroup: modelValue must be an array");
|
|
1621
1609
|
else if (o.value !== void 0) {
|
|
1622
1610
|
let e = o.value.every((e) => typeof (e.value ?? e) == "string"), t = o.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1623
1611
|
if (e) return n.modelValue.map((e) => c(e) ? e : String(e));
|
|
1624
1612
|
if (t) return n.modelValue.map((e) => u(e) ? Number(e) : e);
|
|
1625
1613
|
}
|
|
1626
1614
|
return n.modelValue;
|
|
1627
|
-
}), l =
|
|
1615
|
+
}), l = C(() => {
|
|
1628
1616
|
let e = { ...n };
|
|
1629
1617
|
return delete e.dicCode, delete e.showCheckAll, Object.keys(e).forEach((t) => {
|
|
1630
1618
|
e[t] === void 0 && delete e[t];
|
|
1631
1619
|
}), e;
|
|
1632
1620
|
});
|
|
1633
|
-
return (e, t) => (
|
|
1621
|
+
return (e, t) => (I(), w(z(j(V(Ue), P(e.$attrs, {
|
|
1634
1622
|
...l.value,
|
|
1635
1623
|
options: o.value,
|
|
1636
1624
|
modelValue: s.value,
|
|
@@ -1640,10 +1628,10 @@ var fr = /* @__PURE__ */ O({
|
|
|
1640
1628
|
ref: a
|
|
1641
1629
|
}), e.$slots))));
|
|
1642
1630
|
}
|
|
1643
|
-
}), mr = /* @__PURE__ */
|
|
1631
|
+
}), mr = /* @__PURE__ */ k({
|
|
1644
1632
|
inheritAttrs: !1,
|
|
1645
1633
|
__name: "cron",
|
|
1646
|
-
props: /*@__PURE__*/
|
|
1634
|
+
props: /*@__PURE__*/ N({
|
|
1647
1635
|
modelValue: {},
|
|
1648
1636
|
adornment: {},
|
|
1649
1637
|
align: {},
|
|
@@ -1691,16 +1679,16 @@ var fr = /* @__PURE__ */ O({
|
|
|
1691
1679
|
}, le),
|
|
1692
1680
|
emits: ["update:modelValue"],
|
|
1693
1681
|
setup(e, { emit: t }) {
|
|
1694
|
-
let n = e, r = t, i =
|
|
1682
|
+
let n = e, r = t, i = M("isFormDisabled", C(() => !1)), a = M("isFormReadonly", C(() => !1)), o = C(() => {
|
|
1695
1683
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1696
1684
|
return {
|
|
1697
1685
|
...n,
|
|
1698
|
-
adornment: { append: () =>
|
|
1686
|
+
adornment: { append: () => j($, {
|
|
1699
1687
|
default: "cron",
|
|
1700
1688
|
onClick: () => {
|
|
1701
|
-
let i =
|
|
1702
|
-
|
|
1703
|
-
body: () =>
|
|
1689
|
+
let i = L(null);
|
|
1690
|
+
G({
|
|
1691
|
+
body: () => j(Se(() => import("../components/cron/src/Picker.mjs")), {
|
|
1704
1692
|
disabled: e,
|
|
1705
1693
|
modelValue: n.modelValue,
|
|
1706
1694
|
onVnodeMounted: (e) => {
|
|
@@ -1722,20 +1710,20 @@ var fr = /* @__PURE__ */ O({
|
|
|
1722
1710
|
variant: "text"
|
|
1723
1711
|
}) }
|
|
1724
1712
|
};
|
|
1725
|
-
}), s =
|
|
1713
|
+
}), s = Pe(), c = A();
|
|
1726
1714
|
function l(e) {
|
|
1727
1715
|
c.exposed = e ?? {};
|
|
1728
1716
|
}
|
|
1729
|
-
let u =
|
|
1717
|
+
let u = C(() => P(s, {
|
|
1730
1718
|
...o.value,
|
|
1731
1719
|
onChange: (...e) => {
|
|
1732
1720
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1733
1721
|
},
|
|
1734
1722
|
ref: l
|
|
1735
1723
|
}));
|
|
1736
|
-
return (e, t) => (
|
|
1724
|
+
return (e, t) => (I(), w(V(ue), F(Ce(u.value)), null, 16));
|
|
1737
1725
|
}
|
|
1738
|
-
}), hr = /* @__PURE__ */
|
|
1726
|
+
}), hr = /* @__PURE__ */ k({
|
|
1739
1727
|
inheritAttrs: !1,
|
|
1740
1728
|
__name: "date-picker",
|
|
1741
1729
|
props: {
|
|
@@ -1794,7 +1782,7 @@ var fr = /* @__PURE__ */ O({
|
|
|
1794
1782
|
type: Boolean,
|
|
1795
1783
|
default: !0
|
|
1796
1784
|
},
|
|
1797
|
-
clearIcon: { default: () =>
|
|
1785
|
+
clearIcon: { default: () => j(t, {
|
|
1798
1786
|
icon: "carbon:close-filled",
|
|
1799
1787
|
size: "16"
|
|
1800
1788
|
}) },
|
|
@@ -1826,14 +1814,14 @@ var fr = /* @__PURE__ */ O({
|
|
|
1826
1814
|
},
|
|
1827
1815
|
emits: ["update:modelValue"],
|
|
1828
1816
|
setup(e, { emit: t }) {
|
|
1829
|
-
let n = e, r = t, i =
|
|
1830
|
-
|
|
1817
|
+
let n = e, r = t, i = M("isFormDisabled", C(() => !1)), a = M("isFormReadonly", C(() => !1)), o = L(n.modelValue);
|
|
1818
|
+
H(() => n.modelValue, (e) => {
|
|
1831
1819
|
o.value = e;
|
|
1832
1820
|
}, { deep: !0 });
|
|
1833
1821
|
function s() {
|
|
1834
1822
|
if (n.defaultTime !== void 0) return n.defaultTime;
|
|
1835
1823
|
switch (n.type) {
|
|
1836
|
-
case "datetimerange": return [
|
|
1824
|
+
case "datetimerange": return [S().startOf("day").toDate(), S().endOf("day").toDate()];
|
|
1837
1825
|
default: return;
|
|
1838
1826
|
}
|
|
1839
1827
|
}
|
|
@@ -1873,163 +1861,163 @@ var fr = /* @__PURE__ */ O({
|
|
|
1873
1861
|
case "date": return [
|
|
1874
1862
|
{
|
|
1875
1863
|
text: "今天",
|
|
1876
|
-
value:
|
|
1864
|
+
value: S().toDate()
|
|
1877
1865
|
},
|
|
1878
1866
|
{
|
|
1879
1867
|
text: "昨天",
|
|
1880
|
-
value: () =>
|
|
1868
|
+
value: () => S().subtract(1, "day").toDate()
|
|
1881
1869
|
},
|
|
1882
1870
|
{
|
|
1883
1871
|
text: "一周前",
|
|
1884
|
-
value: () =>
|
|
1872
|
+
value: () => S().subtract(1, "week").toDate()
|
|
1885
1873
|
}
|
|
1886
1874
|
];
|
|
1887
1875
|
case "daterange": return [
|
|
1888
1876
|
{
|
|
1889
1877
|
text: "最近一周",
|
|
1890
|
-
value: () => [
|
|
1878
|
+
value: () => [S().subtract(1, "week").toDate(), S().toDate()]
|
|
1891
1879
|
},
|
|
1892
1880
|
{
|
|
1893
1881
|
text: "本月",
|
|
1894
|
-
value: () => [
|
|
1882
|
+
value: () => [S().startOf("month").toDate(), S().endOf("month").toDate()]
|
|
1895
1883
|
},
|
|
1896
1884
|
{
|
|
1897
1885
|
text: "上一个月",
|
|
1898
|
-
value: () => [
|
|
1886
|
+
value: () => [S().subtract(1, "month").startOf("month").toDate(), S().subtract(1, "month").endOf("month").toDate()]
|
|
1899
1887
|
},
|
|
1900
1888
|
{
|
|
1901
1889
|
text: "最近一个月",
|
|
1902
|
-
value: () => [
|
|
1890
|
+
value: () => [S().subtract(1, "month").toDate(), S().toDate()]
|
|
1903
1891
|
},
|
|
1904
1892
|
{
|
|
1905
1893
|
text: "最近三个月",
|
|
1906
|
-
value: () => [
|
|
1894
|
+
value: () => [S().subtract(3, "month").toDate(), S().toDate()]
|
|
1907
1895
|
},
|
|
1908
1896
|
{
|
|
1909
1897
|
text: "最近半年",
|
|
1910
|
-
value: () => [
|
|
1898
|
+
value: () => [S().subtract(6, "month").toDate(), S().toDate()]
|
|
1911
1899
|
},
|
|
1912
1900
|
{
|
|
1913
1901
|
text: "最近一年",
|
|
1914
|
-
value: () => [
|
|
1902
|
+
value: () => [S().subtract(1, "year").toDate(), S().toDate()]
|
|
1915
1903
|
},
|
|
1916
1904
|
{
|
|
1917
1905
|
text: "最近两年",
|
|
1918
|
-
value: () => [
|
|
1906
|
+
value: () => [S().subtract(2, "year").toDate(), S().toDate()]
|
|
1919
1907
|
},
|
|
1920
1908
|
{
|
|
1921
1909
|
text: "最近三年",
|
|
1922
|
-
value: () => [
|
|
1910
|
+
value: () => [S().subtract(3, "year").toDate(), S().toDate()]
|
|
1923
1911
|
}
|
|
1924
1912
|
];
|
|
1925
1913
|
case "datetime": return [
|
|
1926
1914
|
{
|
|
1927
1915
|
text: "今天",
|
|
1928
|
-
value:
|
|
1916
|
+
value: S().toDate()
|
|
1929
1917
|
},
|
|
1930
1918
|
{
|
|
1931
1919
|
text: "今日开始",
|
|
1932
|
-
value: () =>
|
|
1920
|
+
value: () => S().startOf("day").toDate()
|
|
1933
1921
|
},
|
|
1934
1922
|
{
|
|
1935
1923
|
text: "今日结束",
|
|
1936
|
-
value: () =>
|
|
1924
|
+
value: () => S().endOf("day").toDate()
|
|
1937
1925
|
},
|
|
1938
1926
|
{
|
|
1939
1927
|
text: "昨天",
|
|
1940
|
-
value: () =>
|
|
1928
|
+
value: () => S().subtract(1, "day").toDate()
|
|
1941
1929
|
},
|
|
1942
1930
|
{
|
|
1943
1931
|
text: "三天前",
|
|
1944
|
-
value: () =>
|
|
1932
|
+
value: () => S().subtract(3, "day").toDate()
|
|
1945
1933
|
},
|
|
1946
1934
|
{
|
|
1947
1935
|
text: "一周前",
|
|
1948
|
-
value: () =>
|
|
1936
|
+
value: () => S().subtract(1, "week").toDate()
|
|
1949
1937
|
},
|
|
1950
1938
|
{
|
|
1951
1939
|
text: "一个月前",
|
|
1952
|
-
value: () =>
|
|
1940
|
+
value: () => S().subtract(1, "month").toDate()
|
|
1953
1941
|
},
|
|
1954
1942
|
{
|
|
1955
1943
|
text: "本月初",
|
|
1956
|
-
value: () =>
|
|
1944
|
+
value: () => S().startOf("month").toDate()
|
|
1957
1945
|
},
|
|
1958
1946
|
{
|
|
1959
1947
|
text: "本月末",
|
|
1960
|
-
value: () =>
|
|
1948
|
+
value: () => S().endOf("month").toDate()
|
|
1961
1949
|
}
|
|
1962
1950
|
];
|
|
1963
1951
|
case "datetimerange": return [
|
|
1964
1952
|
{
|
|
1965
1953
|
text: "今天",
|
|
1966
|
-
value: () => [
|
|
1954
|
+
value: () => [S().startOf("day").toDate(), S().endOf("day").toDate()]
|
|
1967
1955
|
},
|
|
1968
1956
|
{
|
|
1969
1957
|
text: "昨天",
|
|
1970
|
-
value: () => [
|
|
1958
|
+
value: () => [S().subtract(1, "day").startOf("day").toDate(), S().subtract(1, "day").endOf("day").toDate()]
|
|
1971
1959
|
},
|
|
1972
1960
|
{
|
|
1973
1961
|
text: "最近一周",
|
|
1974
|
-
value: () => [
|
|
1962
|
+
value: () => [S().startOf("day").subtract(1, "week").toDate(), S().endOf("day").toDate()]
|
|
1975
1963
|
},
|
|
1976
1964
|
{
|
|
1977
1965
|
text: "本月",
|
|
1978
|
-
value: () => [
|
|
1966
|
+
value: () => [S().startOf("month").toDate(), S().endOf("month").toDate()]
|
|
1979
1967
|
},
|
|
1980
1968
|
{
|
|
1981
1969
|
text: "上个月",
|
|
1982
|
-
value: () => [
|
|
1970
|
+
value: () => [S().subtract(1, "month").startOf("month").toDate(), S().subtract(1, "month").endOf("month").toDate()]
|
|
1983
1971
|
},
|
|
1984
1972
|
{
|
|
1985
1973
|
text: "最近一个月",
|
|
1986
|
-
value: () => [
|
|
1974
|
+
value: () => [S().startOf("day").subtract(1, "month").toDate(), S().endOf("day").toDate()]
|
|
1987
1975
|
},
|
|
1988
1976
|
{
|
|
1989
1977
|
text: "最近三个月",
|
|
1990
|
-
value: () => [
|
|
1978
|
+
value: () => [S().startOf("day").subtract(3, "month").toDate(), S().endOf("day").toDate()]
|
|
1991
1979
|
},
|
|
1992
1980
|
{
|
|
1993
1981
|
text: "最近半年",
|
|
1994
|
-
value: () => [
|
|
1982
|
+
value: () => [S().startOf("day").subtract(6, "month").toDate(), S().endOf("day").toDate()]
|
|
1995
1983
|
},
|
|
1996
1984
|
{
|
|
1997
1985
|
text: "最近一年",
|
|
1998
|
-
value: () => [
|
|
1986
|
+
value: () => [S().startOf("day").subtract(1, "year").toDate(), S().endOf("day").toDate()]
|
|
1999
1987
|
}
|
|
2000
1988
|
];
|
|
2001
1989
|
case "monthrange": return [
|
|
2002
1990
|
{
|
|
2003
1991
|
text: "本月",
|
|
2004
|
-
value: [
|
|
1992
|
+
value: [S().toDate(), S().toDate()]
|
|
2005
1993
|
},
|
|
2006
1994
|
{
|
|
2007
1995
|
text: "上月",
|
|
2008
|
-
value: () => [
|
|
1996
|
+
value: () => [S().subtract(1, "month").startOf("month").toDate(), S().subtract(1, "month").endOf("month").toDate()]
|
|
2009
1997
|
},
|
|
2010
1998
|
{
|
|
2011
1999
|
text: "今年至今",
|
|
2012
|
-
value: () => [
|
|
2000
|
+
value: () => [S().startOf("year").toDate(), S().toDate()]
|
|
2013
2001
|
},
|
|
2014
2002
|
{
|
|
2015
2003
|
text: "最近一个月",
|
|
2016
|
-
value: () => [
|
|
2004
|
+
value: () => [S().subtract(1, "month").toDate(), S().toDate()]
|
|
2017
2005
|
},
|
|
2018
2006
|
{
|
|
2019
2007
|
text: "最近三个月",
|
|
2020
|
-
value: () => [
|
|
2008
|
+
value: () => [S().subtract(3, "month").toDate(), S().toDate()]
|
|
2021
2009
|
},
|
|
2022
2010
|
{
|
|
2023
2011
|
text: "最近六个月",
|
|
2024
|
-
value: () => [
|
|
2012
|
+
value: () => [S().subtract(6, "month").toDate(), S().toDate()]
|
|
2025
2013
|
},
|
|
2026
2014
|
{
|
|
2027
2015
|
text: "最近一年",
|
|
2028
|
-
value: () => [
|
|
2016
|
+
value: () => [S().subtract(1, "year").toDate(), S().toDate()]
|
|
2029
2017
|
},
|
|
2030
2018
|
{
|
|
2031
2019
|
text: "最近三年",
|
|
2032
|
-
value: () => [
|
|
2020
|
+
value: () => [S().subtract(3, "year").toDate(), S().toDate()]
|
|
2033
2021
|
}
|
|
2034
2022
|
];
|
|
2035
2023
|
default: return [];
|
|
@@ -2059,7 +2047,7 @@ var fr = /* @__PURE__ */ O({
|
|
|
2059
2047
|
default: return "YYYY-MM-DD";
|
|
2060
2048
|
}
|
|
2061
2049
|
}
|
|
2062
|
-
let h =
|
|
2050
|
+
let h = C(() => {
|
|
2063
2051
|
let e = {
|
|
2064
2052
|
...n,
|
|
2065
2053
|
defaultTime: s(),
|
|
@@ -2075,11 +2063,11 @@ var fr = /* @__PURE__ */ O({
|
|
|
2075
2063
|
return Object.keys(e).forEach((t) => {
|
|
2076
2064
|
e[t] === void 0 && delete e[t];
|
|
2077
2065
|
}), e;
|
|
2078
|
-
}), g =
|
|
2066
|
+
}), g = A();
|
|
2079
2067
|
function _(e) {
|
|
2080
2068
|
g.exposed = e ?? {};
|
|
2081
2069
|
}
|
|
2082
|
-
return (t, i) => (
|
|
2070
|
+
return (t, i) => (I(), w(z(j(V(ft), P(t.$attrs, {
|
|
2083
2071
|
...h.value,
|
|
2084
2072
|
modelValue: o.value,
|
|
2085
2073
|
"onUpdate:modelValue": (e) => {
|
|
@@ -2087,7 +2075,7 @@ var fr = /* @__PURE__ */ O({
|
|
|
2087
2075
|
},
|
|
2088
2076
|
onChange: (t) => {
|
|
2089
2077
|
let i = t;
|
|
2090
|
-
|
|
2078
|
+
V(c)(t) && (i = [
|
|
2091
2079
|
"daterange",
|
|
2092
2080
|
"dates",
|
|
2093
2081
|
"datetimerange",
|
|
@@ -2108,11 +2096,11 @@ var fr = /* @__PURE__ */ O({
|
|
|
2108
2096
|
readonly: void 0,
|
|
2109
2097
|
theme: "normal",
|
|
2110
2098
|
useGrouping: !0
|
|
2111
|
-
}, _r = /*#__PURE__*/
|
|
2099
|
+
}, _r = /*#__PURE__*/ x(/* @__PURE__ */ k({
|
|
2112
2100
|
inheritAttrs: !1,
|
|
2113
2101
|
name: "TInputNumber",
|
|
2114
2102
|
__name: "input-number",
|
|
2115
|
-
props: /*@__PURE__*/
|
|
2103
|
+
props: /*@__PURE__*/ N({
|
|
2116
2104
|
modelValue: {},
|
|
2117
2105
|
theme: {},
|
|
2118
2106
|
useGrouping: { type: Boolean },
|
|
@@ -2146,25 +2134,25 @@ var fr = /* @__PURE__ */ O({
|
|
|
2146
2134
|
}, gr),
|
|
2147
2135
|
emits: ["update:modelValue"],
|
|
2148
2136
|
setup(e, { emit: t }) {
|
|
2149
|
-
let n = e, r = t, i =
|
|
2137
|
+
let n = e, r = t, i = C(() => {
|
|
2150
2138
|
let e = { ...n };
|
|
2151
2139
|
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) => {
|
|
2152
2140
|
e[t] === void 0 && delete e[t];
|
|
2153
2141
|
}), e;
|
|
2154
|
-
}), a =
|
|
2142
|
+
}), a = A();
|
|
2155
2143
|
function o(e) {
|
|
2156
2144
|
a.exposed = e ?? {};
|
|
2157
2145
|
}
|
|
2158
|
-
return (e, t) => (
|
|
2146
|
+
return (e, t) => (I(), w(z(j(V(tt), P(e.$attrs, {
|
|
2159
2147
|
...i.value,
|
|
2160
2148
|
onChange: (...e) => {
|
|
2161
|
-
let [t, ...i] = e, a =
|
|
2149
|
+
let [t, ...i] = e, a = V(c)(t) ? "" : t;
|
|
2162
2150
|
r("update:modelValue", a), n.onChange?.(a, ...i);
|
|
2163
2151
|
},
|
|
2164
2152
|
ref: o
|
|
2165
2153
|
}), e.$slots))));
|
|
2166
2154
|
}
|
|
2167
|
-
}), [["__scopeId", "data-v-73c206ea"]]), vr = /* @__PURE__ */
|
|
2155
|
+
}), [["__scopeId", "data-v-73c206ea"]]), vr = /* @__PURE__ */ k({
|
|
2168
2156
|
inheritAttrs: !1,
|
|
2169
2157
|
name: "TRadioGroup",
|
|
2170
2158
|
__name: "radio-group",
|
|
@@ -2194,35 +2182,35 @@ var fr = /* @__PURE__ */ O({
|
|
|
2194
2182
|
},
|
|
2195
2183
|
emits: ["update:modelValue"],
|
|
2196
2184
|
setup(e, { emit: t }) {
|
|
2197
|
-
let n = e, r = t, i =
|
|
2185
|
+
let n = e, r = t, i = A();
|
|
2198
2186
|
function a(e) {
|
|
2199
2187
|
i.exposed = e ?? {};
|
|
2200
2188
|
}
|
|
2201
|
-
let o =
|
|
2189
|
+
let o = C(() => n.dicCode ? (n.options && m.error("TRadioGroup: dicCode and options cannot be used together"), kn(n.dicCode).value) : typeof n.options == "string" ? Z(n.options).value : n.options), s = C(() => {
|
|
2202
2190
|
let e = { ...n };
|
|
2203
2191
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
2204
2192
|
e[t] === void 0 && delete e[t];
|
|
2205
2193
|
}), e;
|
|
2206
|
-
}), l =
|
|
2194
|
+
}), l = C(() => {
|
|
2207
2195
|
if (o.value !== void 0 && !c(n.modelValue)) {
|
|
2208
2196
|
let e = o.value.every((e) => typeof (e.value ?? e) == "string"), t = o.value.every((e) => typeof (e.value ?? e) == "number");
|
|
2209
|
-
if (e) return
|
|
2197
|
+
if (e) return p(n.modelValue);
|
|
2210
2198
|
if (t) return u(n.modelValue) ? Number(n.modelValue) : n.modelValue;
|
|
2211
2199
|
}
|
|
2212
2200
|
return n.modelValue;
|
|
2213
2201
|
});
|
|
2214
|
-
return (e, t) => (
|
|
2202
|
+
return (e, t) => (I(), w(z(j(V(at), P(e.$attrs, {
|
|
2215
2203
|
...s.value,
|
|
2216
2204
|
options: o.value,
|
|
2217
2205
|
modelValue: l.value,
|
|
2218
2206
|
onChange: (...e) => {
|
|
2219
|
-
let [t, ...i] = e, a =
|
|
2207
|
+
let [t, ...i] = e, a = V(c)(t) ? "" : t;
|
|
2220
2208
|
r("update:modelValue", a), n.onChange?.(a, ...i);
|
|
2221
2209
|
},
|
|
2222
2210
|
ref: a
|
|
2223
2211
|
}), e.$slots))));
|
|
2224
2212
|
}
|
|
2225
|
-
}), yr = /* @__PURE__ */
|
|
2213
|
+
}), yr = /* @__PURE__ */ k({
|
|
2226
2214
|
inheritAttrs: !1,
|
|
2227
2215
|
name: "TRangeInput",
|
|
2228
2216
|
__name: "range-input",
|
|
@@ -2285,7 +2273,7 @@ var fr = /* @__PURE__ */ O({
|
|
|
2285
2273
|
return n ? Math.min(Math.max(i, t.min), t.max) : i;
|
|
2286
2274
|
});
|
|
2287
2275
|
}
|
|
2288
|
-
let r =
|
|
2276
|
+
let r = Fe(e, "modelValue", {
|
|
2289
2277
|
get: (e) => t.isNumberRange ? n(e, !1) : e,
|
|
2290
2278
|
set: (e) => {
|
|
2291
2279
|
if (t.isNumberRange) {
|
|
@@ -2294,16 +2282,16 @@ var fr = /* @__PURE__ */ O({
|
|
|
2294
2282
|
}
|
|
2295
2283
|
return e;
|
|
2296
2284
|
}
|
|
2297
|
-
}), i =
|
|
2285
|
+
}), i = C(() => {
|
|
2298
2286
|
let e = { ...t };
|
|
2299
2287
|
return delete e.isNumberRange, delete e.decimalPlaces, delete e.max, delete e.min, Object.keys(e).forEach((t) => {
|
|
2300
2288
|
e[t] === void 0 && delete e[t];
|
|
2301
2289
|
}), e;
|
|
2302
|
-
}), a =
|
|
2290
|
+
}), a = A();
|
|
2303
2291
|
function o(e) {
|
|
2304
2292
|
a.exposed = e ?? {};
|
|
2305
2293
|
}
|
|
2306
|
-
return (t, a) => (
|
|
2294
|
+
return (t, a) => (I(), w(z(j(V(ot), P(t.$attrs, {
|
|
2307
2295
|
...i.value,
|
|
2308
2296
|
ref: o,
|
|
2309
2297
|
modelValue: r.value,
|
|
@@ -2313,7 +2301,7 @@ var fr = /* @__PURE__ */ O({
|
|
|
2313
2301
|
onBlur: (...t) => {
|
|
2314
2302
|
if (e.isNumberRange) {
|
|
2315
2303
|
let i = t[0];
|
|
2316
|
-
if (i.every((e) => !
|
|
2304
|
+
if (i.every((e) => !V(c)(e)) && Number(i[0]) > Number(i[1])) {
|
|
2317
2305
|
r.value = n([i[0], i[0]]), e.onBlur?.(...t);
|
|
2318
2306
|
return;
|
|
2319
2307
|
}
|
|
@@ -2343,11 +2331,11 @@ var fr = /* @__PURE__ */ O({
|
|
|
2343
2331
|
}),
|
|
2344
2332
|
showArrow: !0,
|
|
2345
2333
|
showCheckAll: !1
|
|
2346
|
-
}, xr = /* @__PURE__ */
|
|
2334
|
+
}, xr = /* @__PURE__ */ k({
|
|
2347
2335
|
inheritAttrs: !1,
|
|
2348
2336
|
name: "TSelect",
|
|
2349
2337
|
__name: "select",
|
|
2350
|
-
props: /*@__PURE__*/
|
|
2338
|
+
props: /*@__PURE__*/ N({
|
|
2351
2339
|
adornment: {},
|
|
2352
2340
|
dicCode: {},
|
|
2353
2341
|
modelValue: {},
|
|
@@ -2409,17 +2397,17 @@ var fr = /* @__PURE__ */ O({
|
|
|
2409
2397
|
onSearch: { type: Function }
|
|
2410
2398
|
}, br),
|
|
2411
2399
|
setup(e) {
|
|
2412
|
-
let t = e, n =
|
|
2400
|
+
let t = e, n = M("isFormDisabled", C(() => !1)), r = M("isFormReadonly", C(() => !1)), i = A();
|
|
2413
2401
|
function a(e) {
|
|
2414
2402
|
i.exposed = e ?? {};
|
|
2415
2403
|
}
|
|
2416
|
-
let o =
|
|
2404
|
+
let o = C(() => {
|
|
2417
2405
|
let e;
|
|
2418
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ? Z(t.options).value : t.options : (t.options &&
|
|
2406
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? Z(t.options).value : t.options : (t.options && m.error("TSelect: dicCode and options cannot be used together"), e = kn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? m.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
2419
2407
|
checkAll: !0,
|
|
2420
2408
|
[t.keys?.label ?? "label"]: "全选"
|
|
2421
|
-
}) :
|
|
2422
|
-
}), s =
|
|
2409
|
+
}) : m.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
2410
|
+
}), s = C(() => {
|
|
2423
2411
|
if (o.value !== void 0) {
|
|
2424
2412
|
let e = o.value.flatMap((e) => e.children ?? [e]), n = t.keys?.value ?? "value", r = e.every((e) => typeof e[n] == "string"), i = e.every((e) => typeof e[n] == "number");
|
|
2425
2413
|
if (t.multiple) {
|
|
@@ -2427,11 +2415,11 @@ var fr = /* @__PURE__ */ O({
|
|
|
2427
2415
|
if (r) return t.modelValue.map((e) => c(e) ? e : String(e));
|
|
2428
2416
|
if (i) return t.modelValue.map((e) => u(e) ? Number(e) : e);
|
|
2429
2417
|
}
|
|
2430
|
-
} else if (r) return
|
|
2418
|
+
} else if (r) return p(t.modelValue);
|
|
2431
2419
|
else if (i) return u(t.modelValue) ? Number(t.modelValue) : t.modelValue;
|
|
2432
2420
|
}
|
|
2433
2421
|
return t.modelValue;
|
|
2434
|
-
}), l =
|
|
2422
|
+
}), l = C(() => {
|
|
2435
2423
|
let e = t.disabled ?? n.value, i = t.readonly ?? r.value, a = {
|
|
2436
2424
|
...t,
|
|
2437
2425
|
filterable: t.filterable ?? o.value.length > 8,
|
|
@@ -2440,15 +2428,15 @@ var fr = /* @__PURE__ */ O({
|
|
|
2440
2428
|
return delete a.dicCode, delete a.showCheckAll, delete a.adornment, Object.keys(a).forEach((e) => {
|
|
2441
2429
|
a[e] === void 0 && delete a[e];
|
|
2442
2430
|
}), a;
|
|
2443
|
-
}), d =
|
|
2444
|
-
|
|
2445
|
-
|
|
2431
|
+
}), d = L(0);
|
|
2432
|
+
Oe(() => {
|
|
2433
|
+
vt(i.exposed.$el, () => {
|
|
2446
2434
|
d.value = i.exposed.$el.offsetWidth;
|
|
2447
2435
|
}, { box: "border-box" });
|
|
2448
2436
|
});
|
|
2449
|
-
let
|
|
2437
|
+
let f = C(() => {
|
|
2450
2438
|
if (l.value.scroll?.type === "virtual" && o.value.length > (l.value.scroll?.threshold ?? 150)) return "300px";
|
|
2451
|
-
}), h =
|
|
2439
|
+
}), h = C(() => ({
|
|
2452
2440
|
...l.value,
|
|
2453
2441
|
modelValue: s.value,
|
|
2454
2442
|
onChange: (...e) => {
|
|
@@ -2459,23 +2447,23 @@ var fr = /* @__PURE__ */ O({
|
|
|
2459
2447
|
popupProps: {
|
|
2460
2448
|
...l.value.popupProps ?? {},
|
|
2461
2449
|
overlayInnerStyle: (e, t) => ({
|
|
2462
|
-
...
|
|
2450
|
+
...f.value === void 0 ? {} : { height: f.value },
|
|
2463
2451
|
minWidth: `${d.value}px`,
|
|
2464
2452
|
width: "auto",
|
|
2465
2453
|
...typeof l.value.popupProps?.overlayInnerStyle == "function" ? l.value.popupProps.overlayInnerStyle(e, t) : l.value.popupProps?.overlayInnerStyle ?? {}
|
|
2466
2454
|
})
|
|
2467
2455
|
},
|
|
2468
2456
|
ref: a
|
|
2469
|
-
})), g =
|
|
2470
|
-
return (t, n) => e.adornment ? (
|
|
2457
|
+
})), g = et;
|
|
2458
|
+
return (t, n) => e.adornment ? (I(), w(z(j(V(g), t.$attrs, {
|
|
2471
2459
|
...e.adornment,
|
|
2472
|
-
default: () =>
|
|
2473
|
-
})), { key: 0 })) : (
|
|
2460
|
+
default: () => j(V(st), h.value, t.$slots)
|
|
2461
|
+
})), { key: 0 })) : (I(), w(z(j(V(st), P(t.$attrs, h.value), t.$slots)), { key: 1 }));
|
|
2474
2462
|
}
|
|
2475
|
-
}), Sr = /* @__PURE__ */
|
|
2463
|
+
}), Sr = /* @__PURE__ */ k({
|
|
2476
2464
|
inheritAttrs: !1,
|
|
2477
2465
|
__name: "select-sys-user",
|
|
2478
|
-
props: /*@__PURE__*/
|
|
2466
|
+
props: /*@__PURE__*/ N({
|
|
2479
2467
|
modelValue: {},
|
|
2480
2468
|
adornment: {},
|
|
2481
2469
|
autoWidth: { type: Boolean },
|
|
@@ -2517,16 +2505,16 @@ var fr = /* @__PURE__ */ O({
|
|
|
2517
2505
|
}, de),
|
|
2518
2506
|
emits: ["update:modelValue"],
|
|
2519
2507
|
setup(e, { emit: t }) {
|
|
2520
|
-
let n = e, r = t, i =
|
|
2508
|
+
let n = e, r = t, i = M("isFormDisabled", C(() => !1)), a = M("isFormReadonly", C(() => !1)), o = C(() => {
|
|
2521
2509
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
2522
2510
|
return {
|
|
2523
2511
|
...n,
|
|
2524
|
-
adornment: e || t ? void 0 : { append: () =>
|
|
2512
|
+
adornment: e || t ? void 0 : { append: () => j($, {
|
|
2525
2513
|
default: "选择用户",
|
|
2526
2514
|
onClick: () => {
|
|
2527
|
-
let e =
|
|
2528
|
-
|
|
2529
|
-
body: () =>
|
|
2515
|
+
let e = L(null);
|
|
2516
|
+
G({
|
|
2517
|
+
body: () => j(Se(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
2530
2518
|
max: n.max,
|
|
2531
2519
|
modelValue: n.modelValue,
|
|
2532
2520
|
onVnodeMounted: (t) => {
|
|
@@ -2547,11 +2535,11 @@ var fr = /* @__PURE__ */ O({
|
|
|
2547
2535
|
variant: "text"
|
|
2548
2536
|
}) }
|
|
2549
2537
|
};
|
|
2550
|
-
}), s =
|
|
2538
|
+
}), s = Pe(), c = A();
|
|
2551
2539
|
function l(e) {
|
|
2552
2540
|
c.exposed = e ?? {};
|
|
2553
2541
|
}
|
|
2554
|
-
let u =
|
|
2542
|
+
let u = C(() => P(s, {
|
|
2555
2543
|
...o.value,
|
|
2556
2544
|
inputProps: {
|
|
2557
2545
|
readonly: !0,
|
|
@@ -2563,8 +2551,8 @@ var fr = /* @__PURE__ */ O({
|
|
|
2563
2551
|
placeholder: "请选择用户",
|
|
2564
2552
|
ref: l
|
|
2565
2553
|
}));
|
|
2566
|
-
return (e, t) => (
|
|
2567
|
-
tag:
|
|
2554
|
+
return (e, t) => (I(), w(V(fe), F(Ce(u.value)), {
|
|
2555
|
+
tag: U(({ value: e }) => [D(B(V(Rn)(e).value?.userName), 1)]),
|
|
2568
2556
|
_: 1
|
|
2569
2557
|
}, 16));
|
|
2570
2558
|
}
|
|
@@ -2575,7 +2563,7 @@ var fr = /* @__PURE__ */ O({
|
|
|
2575
2563
|
hover: !0,
|
|
2576
2564
|
icon: () => (e, t) => {
|
|
2577
2565
|
let n = "";
|
|
2578
|
-
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 :
|
|
2566
|
+
return t.getChildren && t.getChildren(!1) && (t.expanded ? (n = "cuida:caret-down-outline", t.loading && (n = "line-md:loading-twotone-loop")) : n = "cuida:caret-right-outline"), n === "" ? null : j($, {
|
|
2579
2567
|
icon: n,
|
|
2580
2568
|
shape: "circle",
|
|
2581
2569
|
size: "small",
|
|
@@ -2587,11 +2575,11 @@ var fr = /* @__PURE__ */ O({
|
|
|
2587
2575
|
line: !0,
|
|
2588
2576
|
transition: !0,
|
|
2589
2577
|
valueMode: "all"
|
|
2590
|
-
}, wr = /* @__PURE__ */
|
|
2578
|
+
}, wr = /* @__PURE__ */ k({
|
|
2591
2579
|
inheritAttrs: !1,
|
|
2592
2580
|
name: "TTree",
|
|
2593
2581
|
__name: "tree",
|
|
2594
|
-
props: /*@__PURE__*/
|
|
2582
|
+
props: /*@__PURE__*/ N({
|
|
2595
2583
|
icon: { type: [Function, Boolean] },
|
|
2596
2584
|
"onUpdate:actived": { type: Function },
|
|
2597
2585
|
"onUpdate:expanded": { type: Function },
|
|
@@ -2647,21 +2635,21 @@ var fr = /* @__PURE__ */ O({
|
|
|
2647
2635
|
treeStore: {}
|
|
2648
2636
|
}, Cr),
|
|
2649
2637
|
setup(e, { expose: t }) {
|
|
2650
|
-
let n = e, r =
|
|
2638
|
+
let n = e, r = Ie(), i = C(() => {
|
|
2651
2639
|
let e = { ...n };
|
|
2652
2640
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
2653
2641
|
e[t] === void 0 && delete e[t];
|
|
2654
2642
|
}), e;
|
|
2655
|
-
}), a =
|
|
2643
|
+
}), a = A();
|
|
2656
2644
|
function o(e) {
|
|
2657
2645
|
a.exposed = e ?? {};
|
|
2658
2646
|
}
|
|
2659
|
-
return t({}), (e, t) => (
|
|
2647
|
+
return t({}), (e, t) => (I(), w(z(j(V(ct), P(e.$attrs, {
|
|
2660
2648
|
...i.value,
|
|
2661
2649
|
ref: o
|
|
2662
2650
|
}), e.$slots))));
|
|
2663
2651
|
}
|
|
2664
|
-
}), Tr = /* @__PURE__ */
|
|
2652
|
+
}), Tr = /* @__PURE__ */ k({
|
|
2665
2653
|
inheritAttrs: !1,
|
|
2666
2654
|
name: "TTreeSelect",
|
|
2667
2655
|
__name: "tree-select",
|
|
@@ -2728,7 +2716,7 @@ var fr = /* @__PURE__ */ O({
|
|
|
2728
2716
|
onSearch: {}
|
|
2729
2717
|
},
|
|
2730
2718
|
setup(e) {
|
|
2731
|
-
let t = e, n =
|
|
2719
|
+
let t = e, n = M("isFormDisabled", C(() => !1)), r = M("isFormReadonly", C(() => !1)), i = C(() => typeof t.data == "string" ? Z(t.data).value : t.data), a = C(() => {
|
|
2732
2720
|
let e = t.disabled ?? n.value, i = t.readonly ?? r.value, a = {
|
|
2733
2721
|
...t,
|
|
2734
2722
|
minCollapsedNum: e || i ? 0 : t.minCollapsedNum
|
|
@@ -2742,16 +2730,16 @@ var fr = /* @__PURE__ */ O({
|
|
|
2742
2730
|
}, Object.keys(a).forEach((e) => {
|
|
2743
2731
|
a[e] === void 0 && delete a[e];
|
|
2744
2732
|
}), a;
|
|
2745
|
-
}), o =
|
|
2733
|
+
}), o = A();
|
|
2746
2734
|
function s(e) {
|
|
2747
2735
|
o.exposed = e ?? {};
|
|
2748
2736
|
}
|
|
2749
|
-
let c =
|
|
2750
|
-
return
|
|
2751
|
-
|
|
2737
|
+
let c = L(0);
|
|
2738
|
+
return Oe(() => {
|
|
2739
|
+
vt(o.exposed.$el, () => {
|
|
2752
2740
|
c.value = o.exposed.$el.offsetWidth;
|
|
2753
2741
|
}, { box: "border-box" });
|
|
2754
|
-
}), (e, t) => (
|
|
2742
|
+
}), (e, t) => (I(), w(z(j(V(lt), P(e.$attrs, {
|
|
2755
2743
|
...a.value,
|
|
2756
2744
|
data: i.value,
|
|
2757
2745
|
ref: s,
|
|
@@ -2768,7 +2756,7 @@ var fr = /* @__PURE__ */ O({
|
|
|
2768
2756
|
}), Er = ".xlsx,.xls", Dr = { class: "flex items-center" }, Or = {
|
|
2769
2757
|
key: 1,
|
|
2770
2758
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
2771
|
-
}, kr = /*#__PURE__*/
|
|
2759
|
+
}, kr = /*#__PURE__*/ x(/* @__PURE__ */ k({
|
|
2772
2760
|
inheritAttrs: !1,
|
|
2773
2761
|
name: "TUpload",
|
|
2774
2762
|
__name: "upload",
|
|
@@ -2837,7 +2825,7 @@ var fr = /* @__PURE__ */ O({
|
|
|
2837
2825
|
onWaitingUploadFilesChange: {}
|
|
2838
2826
|
},
|
|
2839
2827
|
setup(e, { expose: t }) {
|
|
2840
|
-
let n = e, r =
|
|
2828
|
+
let n = e, r = C(() => {
|
|
2841
2829
|
if (n.requestMethod !== void 0) return (e) => new Promise((t) => {
|
|
2842
2830
|
typeof n.requestMethod == "function" ? n.requestMethod(e).then((e) => {
|
|
2843
2831
|
t({
|
|
@@ -2850,7 +2838,7 @@ var fr = /* @__PURE__ */ O({
|
|
|
2850
2838
|
response: {},
|
|
2851
2839
|
status: "fail"
|
|
2852
2840
|
});
|
|
2853
|
-
}) :
|
|
2841
|
+
}) : J.Post(n.requestMethod.ossUrl ?? "common/uploadOss", {
|
|
2854
2842
|
biz: n.requestMethod.biz,
|
|
2855
2843
|
file: e.raw
|
|
2856
2844
|
}, { meta: { useFormData: !0 } }).then((e) => {
|
|
@@ -2867,51 +2855,51 @@ var fr = /* @__PURE__ */ O({
|
|
|
2867
2855
|
});
|
|
2868
2856
|
});
|
|
2869
2857
|
});
|
|
2870
|
-
function i() {
|
|
2871
|
-
typeof n.downloadTemplate == "string" ? J(n.downloadTemplate) : n.downloadTemplate.send();
|
|
2858
|
+
async function i() {
|
|
2859
|
+
typeof n.downloadTemplate == "string" ? await J.Get(n.downloadTemplate, { meta: { useDownload: !0 } }) : await n.downloadTemplate.send();
|
|
2872
2860
|
}
|
|
2873
|
-
let a =
|
|
2861
|
+
let a = C(() => {
|
|
2874
2862
|
let e = { ...n };
|
|
2875
2863
|
return ["image", "image-flow"].includes(e.theme) && (e.accept = e.accept === ".xlsx,.xls" ? "image/*" : e.accept), Object.keys(e).forEach((t) => {
|
|
2876
2864
|
e[t] === void 0 && delete e[t];
|
|
2877
2865
|
}), delete e.downloadTemplate, e.theme === "file" && delete e.tips, e;
|
|
2878
|
-
}), o =
|
|
2866
|
+
}), o = A();
|
|
2879
2867
|
function s(e) {
|
|
2880
2868
|
o.exposed = e ?? {};
|
|
2881
2869
|
}
|
|
2882
|
-
return t({}), (t, o) => (
|
|
2870
|
+
return t({}), (t, o) => (I(), w(z(j(V(ut), P(t.$attrs, {
|
|
2883
2871
|
...a.value,
|
|
2884
2872
|
requestMethod: r.value,
|
|
2885
2873
|
ref: s
|
|
2886
|
-
}, { class: a.value.theme }))), null, xe({ _: 2 }, [
|
|
2874
|
+
}, { class: a.value.theme }))), null, xe({ _: 2 }, [R(Object.keys(t.$slots), (e) => ({
|
|
2887
2875
|
name: e,
|
|
2888
|
-
fn:
|
|
2876
|
+
fn: U((n) => [je(t.$slots, e, F(Ce(n)), void 0, !0)])
|
|
2889
2877
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
2890
2878
|
name: "trigger",
|
|
2891
|
-
fn:
|
|
2892
|
-
|
|
2893
|
-
default:
|
|
2879
|
+
fn: U(({ files: t }) => [be("div", Dr, [
|
|
2880
|
+
O(V($), { theme: "primary" }, {
|
|
2881
|
+
default: U(() => [D(B(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
2894
2882
|
_: 2
|
|
2895
2883
|
}, 1024),
|
|
2896
|
-
e.downloadTemplate ? (
|
|
2884
|
+
e.downloadTemplate ? (I(), w(V($), {
|
|
2897
2885
|
key: 0,
|
|
2898
2886
|
theme: "primary",
|
|
2899
2887
|
variant: "outline",
|
|
2900
|
-
onClick:
|
|
2888
|
+
onClick: Re(i, ["stop"])
|
|
2901
2889
|
}, {
|
|
2902
|
-
default:
|
|
2890
|
+
default: U(() => [...o[0] ||= [D("下载模板", -1)]]),
|
|
2903
2891
|
_: 1
|
|
2904
|
-
})) :
|
|
2905
|
-
n.tips ? (
|
|
2892
|
+
})) : T("v-if", !0),
|
|
2893
|
+
n.tips ? (I(), E("span", Or, B(n.tips), 1)) : T("v-if", !0)
|
|
2906
2894
|
])]),
|
|
2907
2895
|
key: "0"
|
|
2908
2896
|
} : void 0]), 1024));
|
|
2909
2897
|
}
|
|
2910
|
-
}), [["__scopeId", "data-v-
|
|
2898
|
+
}), [["__scopeId", "data-v-4b7b1585"]]), Ar = /*#__PURE__*/ x(/* @__PURE__ */ k({
|
|
2911
2899
|
inheritAttrs: !1,
|
|
2912
2900
|
name: "TForm",
|
|
2913
2901
|
__name: "form",
|
|
2914
|
-
props: /*@__PURE__*/
|
|
2902
|
+
props: /*@__PURE__*/ N({
|
|
2915
2903
|
autoLabelWidth: { type: Boolean },
|
|
2916
2904
|
data: {},
|
|
2917
2905
|
items: {},
|
|
@@ -2935,9 +2923,9 @@ var fr = /* @__PURE__ */ O({
|
|
|
2935
2923
|
onReset: { type: Function },
|
|
2936
2924
|
onSubmit: { type: Function },
|
|
2937
2925
|
onValidate: { type: Function }
|
|
2938
|
-
},
|
|
2926
|
+
}, Wt),
|
|
2939
2927
|
setup(e, { expose: t }) {
|
|
2940
|
-
let n = e, { customerFormItemComponentInitialValueMap: r = /* @__PURE__ */ new Map(), customerFormItemComponentMap: a = /* @__PURE__ */ new Map() } =
|
|
2928
|
+
let n = e, { customerFormItemComponentInitialValueMap: r = /* @__PURE__ */ new Map(), customerFormItemComponentMap: a = /* @__PURE__ */ new Map() } = St, o = A(), s = L(null), l = C(() => n.items.map((e) => {
|
|
2941
2929
|
if (typeof e.__others == "function") {
|
|
2942
2930
|
let t = {
|
|
2943
2931
|
...e,
|
|
@@ -2978,11 +2966,11 @@ var fr = /* @__PURE__ */ O({
|
|
|
2978
2966
|
}
|
|
2979
2967
|
});
|
|
2980
2968
|
}
|
|
2981
|
-
|
|
2969
|
+
H(l, u, {
|
|
2982
2970
|
deep: 2,
|
|
2983
2971
|
immediate: !0
|
|
2984
|
-
}),
|
|
2985
|
-
|
|
2972
|
+
}), H(() => n.data, () => {
|
|
2973
|
+
m.error("TForm: data is changed");
|
|
2986
2974
|
});
|
|
2987
2975
|
let d = /* @__PURE__ */ new Map(), f = {
|
|
2988
2976
|
TCascader: fr,
|
|
@@ -3005,7 +2993,7 @@ var fr = /* @__PURE__ */ O({
|
|
|
3005
2993
|
TTreeSelect: Tr,
|
|
3006
2994
|
TUpload: kr
|
|
3007
2995
|
};
|
|
3008
|
-
function
|
|
2996
|
+
function p(e) {
|
|
3009
2997
|
return typeof e == "string" ? a.has(e) ? (d.has(e) || d.set(e, Se(a.get(e))), d.get(e)) : f[e] : ue;
|
|
3010
2998
|
}
|
|
3011
2999
|
function h(e) {
|
|
@@ -3036,7 +3024,7 @@ var fr = /* @__PURE__ */ O({
|
|
|
3036
3024
|
whitespace: !0
|
|
3037
3025
|
}), t;
|
|
3038
3026
|
}
|
|
3039
|
-
let _ =
|
|
3027
|
+
let _ = C(() => {
|
|
3040
3028
|
let e = { ...n };
|
|
3041
3029
|
if (e.rules !== void 0) {
|
|
3042
3030
|
let t = {};
|
|
@@ -3060,7 +3048,7 @@ var fr = /* @__PURE__ */ O({
|
|
|
3060
3048
|
t.show === !1 && delete e[t.model];
|
|
3061
3049
|
}), e;
|
|
3062
3050
|
};
|
|
3063
|
-
function
|
|
3051
|
+
function y(e) {
|
|
3064
3052
|
if (e !== null) {
|
|
3065
3053
|
let t = e;
|
|
3066
3054
|
if (!t.validate._alreadyReplace) {
|
|
@@ -3099,21 +3087,21 @@ var fr = /* @__PURE__ */ O({
|
|
|
3099
3087
|
let t = e ?? {};
|
|
3100
3088
|
s.value = t, o.exposed = t;
|
|
3101
3089
|
}
|
|
3102
|
-
let
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3090
|
+
let ee = Ne();
|
|
3091
|
+
Oe(() => {
|
|
3092
|
+
ee.value = o.exposed.$el.getElementsByClassName("t-form__label"), b(), _t(o.exposed.$el, () => {
|
|
3093
|
+
b();
|
|
3106
3094
|
}, {
|
|
3107
3095
|
attributeFilter: ["class"],
|
|
3108
3096
|
characterData: !0,
|
|
3109
3097
|
childList: !0,
|
|
3110
3098
|
subtree: !0
|
|
3111
|
-
}),
|
|
3112
|
-
|
|
3099
|
+
}), vt(o.exposed.$el, () => {
|
|
3100
|
+
b();
|
|
3113
3101
|
});
|
|
3114
3102
|
});
|
|
3115
|
-
function
|
|
3116
|
-
let e = [...
|
|
3103
|
+
function b() {
|
|
3104
|
+
let e = [...ee.value];
|
|
3117
3105
|
if (e.forEach((e) => {
|
|
3118
3106
|
e.style.minWidth = "auto";
|
|
3119
3107
|
}), n.labelAlign === "top" || !n.autoLabelWidth) return;
|
|
@@ -3124,12 +3112,12 @@ var fr = /* @__PURE__ */ O({
|
|
|
3124
3112
|
e.style.minWidth = `${t}px`;
|
|
3125
3113
|
});
|
|
3126
3114
|
}
|
|
3127
|
-
return
|
|
3115
|
+
return ke("formData", n.data), ke("formExposed", s), ke("isFormDisabled", C(() => n.disabled)), ke("isFormReadonly", C(() => n.readonly)), t({}), (t, n) => (I(), E(ve, null, [T(" eslint-disable vue/no-mutating-props "), (I(), w(z(V(Xe)), P(P(t.$attrs, {
|
|
3128
3116
|
..._.value,
|
|
3129
|
-
ref:
|
|
3117
|
+
ref: y
|
|
3130
3118
|
}), { "label-width": "fit-content" }), {
|
|
3131
|
-
default:
|
|
3132
|
-
default:
|
|
3119
|
+
default: U(() => [(I(!0), E(ve, null, R(l.value.filter((e) => e.show !== !1), (n) => (I(), w(V(Ze), P({ key: n.model ?? n.slot }, { ref_for: !0 }, P({ ...g(n) }, { class: { no_label_item: V(c)(n._label) } }), { name: n.model }), {
|
|
3120
|
+
default: U(() => [n.slot ? je(t.$slots, n.slot, {}, void 0, !0, 0) : (I(), w(z(p(n.component)), P({
|
|
3133
3121
|
key: 1,
|
|
3134
3122
|
modelValue: e.data[n.model],
|
|
3135
3123
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
@@ -3139,14 +3127,14 @@ var fr = /* @__PURE__ */ O({
|
|
|
3139
3127
|
_: 3
|
|
3140
3128
|
}, 16))], 2112));
|
|
3141
3129
|
}
|
|
3142
|
-
}), [["__scopeId", "data-v-73a5d59c"]]), jr = /* @__PURE__ */
|
|
3130
|
+
}), [["__scopeId", "data-v-73a5d59c"]]), jr = /* @__PURE__ */ k({
|
|
3143
3131
|
__name: "ResetPwd",
|
|
3144
3132
|
props: { showFooter: {
|
|
3145
3133
|
type: Boolean,
|
|
3146
3134
|
default: !0
|
|
3147
3135
|
} },
|
|
3148
3136
|
setup(e, { expose: t }) {
|
|
3149
|
-
let n =
|
|
3137
|
+
let n = W(), r = [
|
|
3150
3138
|
{
|
|
3151
3139
|
_label: "旧密码",
|
|
3152
3140
|
_required: !0,
|
|
@@ -3177,13 +3165,13 @@ var fr = /* @__PURE__ */ O({
|
|
|
3177
3165
|
type: "password"
|
|
3178
3166
|
},
|
|
3179
3167
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
3180
|
-
], i =
|
|
3168
|
+
], i = Le("form");
|
|
3181
3169
|
function a() {
|
|
3182
|
-
|
|
3170
|
+
K().close(n.name);
|
|
3183
3171
|
}
|
|
3184
3172
|
async function o() {
|
|
3185
3173
|
let e = await i.value.validate();
|
|
3186
|
-
await
|
|
3174
|
+
await J.Put("system/user/profile/updatePwd", void 0, {
|
|
3187
3175
|
meta: {
|
|
3188
3176
|
useLoading: "保存中...",
|
|
3189
3177
|
useSuccessMsg: !0
|
|
@@ -3194,21 +3182,21 @@ var fr = /* @__PURE__ */ O({
|
|
|
3194
3182
|
}
|
|
3195
3183
|
}), Vn().logout();
|
|
3196
3184
|
}
|
|
3197
|
-
return t({ handleSubmit: o }), (e, t) => (
|
|
3185
|
+
return t({ handleSubmit: o }), (e, t) => (I(), w(V(Ar), {
|
|
3198
3186
|
ref: "form",
|
|
3199
3187
|
items: r,
|
|
3200
3188
|
"label-align": "right",
|
|
3201
3189
|
layout: "vertical"
|
|
3202
3190
|
}, {
|
|
3203
|
-
footer:
|
|
3204
|
-
default:
|
|
3191
|
+
footer: U(() => [O(V($), { onClick: o }, {
|
|
3192
|
+
default: U(() => [...t[0] ||= [D("保存", -1)]]),
|
|
3205
3193
|
_: 1
|
|
3206
|
-
}),
|
|
3194
|
+
}), O(V($), {
|
|
3207
3195
|
class: "ml-4!",
|
|
3208
3196
|
theme: "default",
|
|
3209
3197
|
onClick: a
|
|
3210
3198
|
}, {
|
|
3211
|
-
default:
|
|
3199
|
+
default: U(() => [...t[1] ||= [D("关闭", -1)]]),
|
|
3212
3200
|
_: 1
|
|
3213
3201
|
})]),
|
|
3214
3202
|
_: 1
|
|
@@ -3217,7 +3205,7 @@ var fr = /* @__PURE__ */ O({
|
|
|
3217
3205
|
});
|
|
3218
3206
|
// ../../packages/dlzn-ui/store/modules/user.ts
|
|
3219
3207
|
function Mr() {
|
|
3220
|
-
return
|
|
3208
|
+
return J.Get("getInfo", { meta: {
|
|
3221
3209
|
useFailMsg: "获取用户信息失败",
|
|
3222
3210
|
useLoading: "正在获取用户信息..."
|
|
3223
3211
|
} });
|
|
@@ -3229,22 +3217,22 @@ var Nr = {
|
|
|
3229
3217
|
nickName: "",
|
|
3230
3218
|
userId: "",
|
|
3231
3219
|
userName: "",
|
|
3232
|
-
...
|
|
3233
|
-
}, Q =
|
|
3234
|
-
let e =
|
|
3220
|
+
...St.defaultUserInfo ?? {}
|
|
3221
|
+
}, Q = xt("user", () => {
|
|
3222
|
+
let e = L(yt(Nr)), t = L([]), n = L([]);
|
|
3235
3223
|
function r() {
|
|
3236
|
-
e.value =
|
|
3224
|
+
e.value = yt(Nr), t.value = [], n.value = [];
|
|
3237
3225
|
}
|
|
3238
|
-
let i =
|
|
3226
|
+
let i = C(() => e.value.admin), a = L("");
|
|
3239
3227
|
async function o(r = !0) {
|
|
3240
3228
|
let i = await Mr();
|
|
3241
|
-
e.value = i.user, a.value !== e.value.userId &&
|
|
3229
|
+
e.value = i.user, a.value !== e.value.userId && K().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await vn().getRouters();
|
|
3242
3230
|
}
|
|
3243
|
-
|
|
3231
|
+
H(() => e.value.needChangePwd, (e) => {
|
|
3244
3232
|
e === 1 && VITE_FORCE_PWD_CHANGE && Ee(() => {
|
|
3245
|
-
let e =
|
|
3246
|
-
|
|
3247
|
-
body: () =>
|
|
3233
|
+
let e = L(null);
|
|
3234
|
+
G({
|
|
3235
|
+
body: () => j(jr, {
|
|
3248
3236
|
labelAlign: "top",
|
|
3249
3237
|
ref: e,
|
|
3250
3238
|
showFooter: !1
|
|
@@ -3275,11 +3263,11 @@ var Nr = {
|
|
|
3275
3263
|
roles: n,
|
|
3276
3264
|
userInfo: e
|
|
3277
3265
|
};
|
|
3278
|
-
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/
|
|
3266
|
+
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ x(/* @__PURE__ */ k({
|
|
3279
3267
|
inheritAttrs: !1,
|
|
3280
3268
|
name: "TButton",
|
|
3281
3269
|
__name: "button",
|
|
3282
|
-
props: /*@__PURE__*/
|
|
3270
|
+
props: /*@__PURE__*/ N({
|
|
3283
3271
|
autoIcon: { type: Boolean },
|
|
3284
3272
|
autoLoading: { type: Boolean },
|
|
3285
3273
|
autoTheme: { type: Boolean },
|
|
@@ -3316,9 +3304,9 @@ var Nr = {
|
|
|
3316
3304
|
Object,
|
|
3317
3305
|
Array
|
|
3318
3306
|
] }
|
|
3319
|
-
},
|
|
3307
|
+
}, Ut),
|
|
3320
3308
|
setup(e) {
|
|
3321
|
-
let i = e, a =
|
|
3309
|
+
let i = e, a = L("");
|
|
3322
3310
|
function o() {
|
|
3323
3311
|
if (!i.autoTheme || a.value.trim() === "") return {};
|
|
3324
3312
|
let e = /* @__PURE__ */ new Map([
|
|
@@ -3340,17 +3328,17 @@ var Nr = {
|
|
|
3340
3328
|
}
|
|
3341
3329
|
return t;
|
|
3342
3330
|
}
|
|
3343
|
-
let s =
|
|
3344
|
-
|
|
3331
|
+
let s = L(!1), c = r.isLoading, l = L(null), { focused: u } = gt(l), d, f;
|
|
3332
|
+
H(c, (e) => {
|
|
3345
3333
|
e ? (clearTimeout(f), f = void 0, d = window.setTimeout(() => {
|
|
3346
3334
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
3347
3335
|
}, 150)) : d === void 0 ? f = window.setTimeout(() => {
|
|
3348
3336
|
s.value = !1;
|
|
3349
3337
|
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
3350
|
-
}, { immediate: !0 }),
|
|
3338
|
+
}, { immediate: !0 }), H(u, (e) => {
|
|
3351
3339
|
e && c.value && (s.value = !0);
|
|
3352
3340
|
});
|
|
3353
|
-
let p =
|
|
3341
|
+
let p = C(() => i.loading === void 0 ? i.autoLoading ? s.value : !1 : i.loading), m = C(() => {
|
|
3354
3342
|
let e = {
|
|
3355
3343
|
...i,
|
|
3356
3344
|
...o(),
|
|
@@ -3359,7 +3347,7 @@ var Nr = {
|
|
|
3359
3347
|
return Object.keys(e).forEach((t) => {
|
|
3360
3348
|
e[t] === void 0 && delete e[t];
|
|
3361
3349
|
}), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
|
|
3362
|
-
}), h =
|
|
3350
|
+
}), h = A();
|
|
3363
3351
|
function g(e) {
|
|
3364
3352
|
let t = e ?? {};
|
|
3365
3353
|
h.exposed = t, l.value = t.$el;
|
|
@@ -3367,7 +3355,7 @@ var Nr = {
|
|
|
3367
3355
|
function _() {
|
|
3368
3356
|
a.value = l.value?.textContent ?? "";
|
|
3369
3357
|
}
|
|
3370
|
-
let v =
|
|
3358
|
+
let v = C(() => {
|
|
3371
3359
|
if (!i.autoIcon || a.value.trim() === "") return;
|
|
3372
3360
|
let e = {
|
|
3373
3361
|
"mdi:plus": [
|
|
@@ -3445,10 +3433,10 @@ var Nr = {
|
|
|
3445
3433
|
break;
|
|
3446
3434
|
}
|
|
3447
3435
|
return t;
|
|
3448
|
-
}),
|
|
3436
|
+
}), y = Pe(), ee = C(() => P(y, {
|
|
3449
3437
|
...m.value,
|
|
3450
3438
|
ref: g
|
|
3451
|
-
}, { class: "flex-shrink-0" })),
|
|
3439
|
+
}, { class: "flex-shrink-0" })), b = C(() => {
|
|
3452
3440
|
if (i.popconfirm) return {
|
|
3453
3441
|
...i.popconfirm,
|
|
3454
3442
|
onVisibleChange: (...e) => {
|
|
@@ -3456,33 +3444,33 @@ var Nr = {
|
|
|
3456
3444
|
}
|
|
3457
3445
|
};
|
|
3458
3446
|
});
|
|
3459
|
-
return (r, i) =>
|
|
3460
|
-
default:
|
|
3447
|
+
return (r, i) => V(Q)().checkPermissions(e.permission) ? (I(), E(ve, { key: 0 }, [b.value ? (I(), w(V(n), F(P({ key: 0 }, b.value)), {
|
|
3448
|
+
default: U(() => [(I(), w(z(j(V(Ve), ee.value)), {
|
|
3461
3449
|
onVnodeMounted: _,
|
|
3462
3450
|
onVnodeUpdated: _
|
|
3463
3451
|
}, xe({ _: 2 }, [e.icon || v.value ? {
|
|
3464
3452
|
name: "icon",
|
|
3465
|
-
fn:
|
|
3453
|
+
fn: U(() => [O(V(t), { icon: e.icon || v.value }, null, 8, ["icon"])]),
|
|
3466
3454
|
key: "0"
|
|
3467
|
-
} : void 0,
|
|
3455
|
+
} : void 0, R(Object.keys(r.$slots), (e) => ({
|
|
3468
3456
|
name: e,
|
|
3469
|
-
fn:
|
|
3457
|
+
fn: U((t) => [je(r.$slots, e, F(Ce(t)), void 0, !0)])
|
|
3470
3458
|
}))]), 1536))]),
|
|
3471
3459
|
_: 3
|
|
3472
|
-
}, 16)) : (
|
|
3460
|
+
}, 16)) : (I(), w(z(j(V(Ve), ee.value)), {
|
|
3473
3461
|
key: 1,
|
|
3474
3462
|
onVnodeMounted: _,
|
|
3475
3463
|
onVnodeUpdated: _
|
|
3476
3464
|
}, xe({ _: 2 }, [e.icon || v.value ? {
|
|
3477
3465
|
name: "icon",
|
|
3478
|
-
fn:
|
|
3466
|
+
fn: U(() => [O(V(t), { icon: e.icon || v.value }, null, 8, ["icon"])]),
|
|
3479
3467
|
key: "0"
|
|
3480
|
-
} : void 0,
|
|
3468
|
+
} : void 0, R(Object.keys(r.$slots), (e) => ({
|
|
3481
3469
|
name: e,
|
|
3482
|
-
fn:
|
|
3483
|
-
}))]), 1536))], 64)) :
|
|
3470
|
+
fn: U((t) => [je(r.$slots, e, F(Ce(t)), void 0, !0)])
|
|
3471
|
+
}))]), 1536))], 64)) : T("v-if", !0);
|
|
3484
3472
|
}
|
|
3485
|
-
}), [["__scopeId", "data-v-60078ae4"]]), Pr = /* @__PURE__ */
|
|
3473
|
+
}), [["__scopeId", "data-v-60078ae4"]]), Pr = /* @__PURE__ */ k({
|
|
3486
3474
|
name: "TProvider",
|
|
3487
3475
|
__name: "Provider",
|
|
3488
3476
|
setup(e) {
|
|
@@ -3504,18 +3492,18 @@ var Nr = {
|
|
|
3504
3492
|
variant: "text"
|
|
3505
3493
|
})
|
|
3506
3494
|
} };
|
|
3507
|
-
return (e, n) => (
|
|
3495
|
+
return (e, n) => (I(), w(V(dt), {
|
|
3508
3496
|
"empty-values": [""],
|
|
3509
|
-
locale:
|
|
3497
|
+
locale: V(Ht),
|
|
3510
3498
|
"value-on-clear": "",
|
|
3511
3499
|
"z-index": 5500
|
|
3512
3500
|
}, {
|
|
3513
|
-
default:
|
|
3514
|
-
default:
|
|
3501
|
+
default: U(() => [O(V(We), { "global-config": t }, {
|
|
3502
|
+
default: U(() => [je(e.$slots, "default")]),
|
|
3515
3503
|
_: 3
|
|
3516
3504
|
})]),
|
|
3517
3505
|
_: 3
|
|
3518
3506
|
}, 8, ["locale"]));
|
|
3519
3507
|
}
|
|
3520
3508
|
});
|
|
3521
|
-
export {
|
|
3509
|
+
export { bn as $, rr as A, q as B, lr as C, sr as D, dr as E, Qn as F, In as G, Wn as H, $n as I, Dn as J, Ln as K, er as L, ar as M, or as N, tr as O, J as P, xn as Q, Yn as R, fr as S, ur as T, Un as U, qn as V, Vn as W, kn as X, On as Y, An as Z, _r as _, Vt as _t, jr as a, sn as at, mr as b, Er as c, en as ct, Cr as d, Jt as dt, un as et, Sr as f, Yt as ft, vr as g, Rt as gt, yr as h, Ut as ht, Q as i, G as it, ir as j, nr as k, Tr as l, Qt as lt, br as m, Wt as mt, $ as n, K as nt, Ar as o, nn as ot, xr as p, Gt as pt, Rn as q, Mr as r, ln as rt, kr as s, tn as st, Pr as t, vn as tt, wr as u, $t as ut, gr as v, Z as w, pr as x, hr as y, Jn as z };
|