dlzn-ui 2.0.124 → 2.0.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{provider-C_AVk_p8.css → provider-z0U48-Jh.css} +1 -1
- package/chunks/{AssignUser-DK1MiMdq.mjs → AssignUser-D-JkYOB8.mjs} +3 -3
- package/chunks/{BasicInfo-5yGSJ1G1.mjs → BasicInfo-CEsH-0pZ.mjs} +1 -1
- package/chunks/{ColumnInfo-CPCdnV6m.mjs → ColumnInfo-BOHugehD.mjs} +2 -2
- package/chunks/{Common-u9d-d9TW.mjs → Common-BsB2JBgP.mjs} +1 -1
- package/chunks/{Day-D73qn-jG.mjs → Day-BiR1jIvk.mjs} +1 -1
- package/chunks/{DictTypeDetail-CV-q703y.mjs → DictTypeDetail-AY-_0xtV.mjs} +2 -2
- package/chunks/{GenInfo-n-z1Zhv_.mjs → GenInfo-qOmBAs-q.mjs} +1 -1
- package/chunks/{Hour-C5C5qbIX.mjs → Hour-BYr1lHVi.mjs} +1 -1
- package/chunks/{Import-DkyhEhYi.mjs → Import-B-3xdr5l.mjs} +2 -2
- package/chunks/{Index-C5r_Zq2g.mjs → Index-B9tKApdV.mjs} +1 -1
- package/chunks/{Index-Dzf4uB7i.mjs → Index-BC3wAA8r.mjs} +1 -1
- package/chunks/{Index-DDHpO22l.mjs → Index-BF0rWiko.mjs} +1 -1
- package/chunks/{Index-Q_xHFThM.mjs → Index-BT6MVtwS.mjs} +6 -6
- package/chunks/{Index-BUN6TcBS.mjs → Index-BTVq22to.mjs} +1 -1
- package/chunks/{Index-DKyjhuIW.mjs → Index-BfwuM5xD.mjs} +1 -1
- package/chunks/{Index-DxdsPF04.mjs → Index-BjD7ojxO.mjs} +1 -1
- package/chunks/{Index-CXCKD_8l.mjs → Index-C-DfKaE-.mjs} +1 -1
- package/chunks/{Index-BtkGXplj.mjs → Index-C5_w2D9b.mjs} +1 -1
- package/chunks/{Index-bEAEMr1o.mjs → Index-CFU6LweI.mjs} +1 -1
- package/chunks/{Index-CNf8V1zN.mjs → Index-CNQ6cNCJ.mjs} +1 -1
- package/chunks/{Index-0E7HKjme.mjs → Index-CXVN-qHx.mjs} +1 -1
- package/chunks/{Index-Bcfy3ZxN.mjs → Index-DSrrffcy.mjs} +1 -1
- package/chunks/{Index-DghG2pVD.mjs → Index-DZylH6mb.mjs} +1 -1
- package/chunks/{Index-lStH6Up4.mjs → Index-dP2JesvU.mjs} +1 -1
- package/chunks/{Index-BLANUNDy.mjs → Index-i2yEiNEh.mjs} +1 -1
- package/chunks/{Index-CKvqn1VT.mjs → Index-j18-WyNv.mjs} +1 -1
- package/chunks/{Index-Dfr10NsD.mjs → Index-jh_Yvfr2.mjs} +1 -1
- package/chunks/{Index-CCleBiMu.mjs → Index-oUENB6rm.mjs} +1 -1
- package/chunks/{IndexItem-CZ_kv23h.mjs → IndexItem-SJOquf2O.mjs} +3 -3
- package/chunks/{Log-B62TtjMC.mjs → Log-BVEVG4qZ.mjs} +2 -2
- package/chunks/{LoginBg-C3pB3Prp.mjs → LoginBg-Bdretz4K.mjs} +1 -1
- package/chunks/{Minute-DqRgTw-K.mjs → Minute-BLRf_8Jb.mjs} +1 -1
- package/chunks/{Month-OwJunIP0.mjs → Month-BtvDf6jD.mjs} +1 -1
- package/chunks/{Preview-B6ldeRpA.mjs → Preview-BFbxQzfo.mjs} +1 -1
- package/chunks/{Second-G_FPmIQR.mjs → Second-tpZMEkXD.mjs} +1 -1
- package/chunks/{SelectDept-D31OC0ZG.mjs → SelectDept-5sPLI_iK.mjs} +1 -1
- package/chunks/{SelectMenu-DR4v21OT.mjs → SelectMenu-37nusVLO.mjs} +1 -1
- package/chunks/{SelectUser-DQPIG6Y8.mjs → SelectUser-zc8FqJ2O.mjs} +2 -2
- package/chunks/{UserInfo-CFpD-BND.mjs → UserInfo-C4BYqudG.mjs} +3 -3
- package/chunks/{Wrapper-BNCXQSbQ.mjs → Wrapper-B9YJYhWw.mjs} +1 -1
- package/chunks/{app-WRCz6Eys.mjs → app-DKi3BUdV.mjs} +1 -1
- package/chunks/{custom-page-list-oEZHtPRe.mjs → custom-page-list-QGwDxKEa.mjs} +4 -4
- package/chunks/{custom-page-table-B4lx28cL.mjs → custom-page-table-BQRyBiIM.mjs} +2 -2
- package/chunks/{job-C10oJFoE.mjs → job-CgPSoy9O.mjs} +24 -24
- package/chunks/{jszip.min-BsTX4vuD.mjs → jszip.min-DUKT3zcE.mjs} +8 -8
- package/chunks/{overview-0lv-a-jL.mjs → overview-CqhFuS2y.mjs} +1 -1
- package/chunks/{page-list-B2S6cjyN.mjs → page-list-C0ER3Qbw.mjs} +4 -5
- package/chunks/{page-query-CUAnIjFV.mjs → page-query-DOPjtsRn.mjs} +1 -1
- package/chunks/{page-table-DTbKIx-O.mjs → page-table-DceYXBo3.mjs} +6 -6
- package/chunks/{pagination-Ct7V9l1R.mjs → pagination-BknEguko.mjs} +1 -1
- package/chunks/{provider-Ci5PGsw4.mjs → provider-D0oA4Xfh.mjs} +425 -435
- package/chunks/{table-BeoNI-id.mjs → table-BmJwS_yJ.mjs} +13 -13
- 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/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/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/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 +10 -10
- package/components/input-number/index.mjs +1 -1
- package/components/input-number/src/input-number.mjs +1 -1
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/OptionLabel/Index.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/range-input/index.mjs +1 -1
- package/components/range-input/src/range-input.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/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 +2 -2
- package/layout/Login.mjs +9 -9
- package/layout/NotFound.mjs +1 -1
- package/layout/Test.mjs +3 -3
- 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/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/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/FormatDate/Index.mjs +1 -1
- package/plugins/tableRenders/cell/FormatNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Icon/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Image/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ImageViewer/Index.mjs +1 -1
- package/plugins/tableRenders/cell/InputNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/OptionLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Tags/Index.mjs +1 -1
- package/plugins/tableRenders/cell/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/gather.mjs +1 -1
- package/utils/index.mjs +8 -8
- package/utils/string.mjs +1 -1
- package/utils/tool.d.ts +19 -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 +4 -4
- 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 +17 -17
- 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 +30 -30
- 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 +53 -56
- 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 +7 -10
- 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
|
@@ -9,66 +9,66 @@ import { getAudioElement as a, releaseAudioElement as o, rewindAudioElement as s
|
|
|
9
9
|
import { isFalsy as c, isNotEmpty as l, isValidNumberString as u } from "../utils/boolean.mjs";
|
|
10
10
|
import "../utils/format.mjs";
|
|
11
11
|
import { formatNumber as d } from "../utils/number.mjs";
|
|
12
|
-
import {
|
|
13
|
-
import { n as
|
|
14
|
-
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";
|
|
15
15
|
import "../components/scrollbar/index.mjs";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
16
|
+
import _ from "../hooks/useMQ/index.mjs";
|
|
17
|
+
import v from "../hooks/usePrimaryColor/index.mjs";
|
|
18
|
+
import y from "../store/modules/excludeKPname.mjs";
|
|
19
19
|
import "../components/gradient-text/index.mjs";
|
|
20
20
|
import "../components/image/index.mjs";
|
|
21
21
|
import { t as ee } from "./gradient-text-9F_lDxuO.mjs";
|
|
22
|
-
import
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
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
25
|
import { t as x } from "./plugin-vue_export-helper-Djzt4Yr7.mjs";
|
|
26
26
|
import "../components/dropdown/index.mjs";
|
|
27
|
-
import
|
|
28
|
-
import { t as
|
|
29
|
-
import { flatArrToTree as
|
|
27
|
+
import re from "../hooks/useContextMenu/index.mjs";
|
|
28
|
+
import { t as ie } from "./dropdown-Bvarrr3c.mjs";
|
|
29
|
+
import { flatArrToTree as ae, mapTree as oe } from "../utils/tree.mjs";
|
|
30
30
|
import "../components/checkbox/index.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
|
|
34
|
+
import { t as ce } from "./color-picker-Czz7J_78.mjs";
|
|
35
35
|
import S from "../plugins/autoImport/dayjs/index.mjs";
|
|
36
|
-
import { n as
|
|
36
|
+
import { n as le, t as ue } from "./input-CiSr3rcu.mjs";
|
|
37
37
|
import "../components/tag-input/index.mjs";
|
|
38
|
-
import { n as
|
|
38
|
+
import { n as de, t as fe } from "./tag-input-Df_v5AwS.mjs";
|
|
39
39
|
import "../components/slider/index.mjs";
|
|
40
|
-
import { t as
|
|
40
|
+
import { t as pe } from "./slider-B8m9TxnK.mjs";
|
|
41
41
|
import "../components/switch/index.mjs";
|
|
42
|
-
import { t as
|
|
42
|
+
import { t as me } from "./switch-BByqwNgy.mjs";
|
|
43
43
|
import "../components/textarea/index.mjs";
|
|
44
|
-
import { t as
|
|
45
|
-
import { passwordReg as
|
|
46
|
-
import { Fragment as
|
|
47
|
-
import { Breadcrumb as
|
|
48
|
-
import { ElConfigProvider as
|
|
49
|
-
import { useElementSize as
|
|
50
|
-
import { cloneDeep as
|
|
51
|
-
import { defineStore as
|
|
52
|
-
import
|
|
53
|
-
import { NavigationFailureType as
|
|
54
|
-
import { createAlova as
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import '../assets/provider-
|
|
59
|
-
var
|
|
60
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
44
|
+
import { t as he } from "./textarea-C9VbFXpr.mjs";
|
|
45
|
+
import { passwordReg as ge, passwordRegMessage as _e } from "../constants/regs.mjs";
|
|
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, {
|
|
61
61
|
get: ((e) => t[e]).bind(null, s),
|
|
62
|
-
enumerable: !(r =
|
|
62
|
+
enumerable: !(r = Pt(t, s)) || r.enumerable
|
|
63
63
|
});
|
|
64
64
|
return e;
|
|
65
|
-
},
|
|
65
|
+
}, Bt = (e, t, n) => (n = e == null ? {} : Mt(It(e)), zt(t || !e || !e.__esModule || !Lt.call(e, "default") ? Nt(n, "default", {
|
|
66
66
|
value: e,
|
|
67
67
|
enumerable: !0
|
|
68
|
-
}) : 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) {
|
|
69
69
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
70
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.");
|
|
71
|
-
}),
|
|
71
|
+
}), Ht = {
|
|
72
72
|
name: "zh-cn",
|
|
73
73
|
el: {
|
|
74
74
|
breadcrumb: { label: "面包屑" },
|
|
@@ -249,12 +249,12 @@ var Nt = Object.create, Pt = Object.defineProperty, Ft = Object.getOwnPropertyDe
|
|
|
249
249
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
},
|
|
252
|
+
}, Ut = {
|
|
253
253
|
autoIcon: !0,
|
|
254
254
|
autoLoading: !0,
|
|
255
255
|
autoTheme: !0,
|
|
256
256
|
loading: void 0
|
|
257
|
-
},
|
|
257
|
+
}, Wt = {
|
|
258
258
|
autoLabelWidth: !0,
|
|
259
259
|
colon: !0,
|
|
260
260
|
data: () => Ae({}),
|
|
@@ -267,7 +267,7 @@ var Nt = Object.create, Pt = Object.defineProperty, Ft = Object.getOwnPropertyDe
|
|
|
267
267
|
requiredMark: void 0,
|
|
268
268
|
resetType: "initial",
|
|
269
269
|
showErrorMessage: !0
|
|
270
|
-
},
|
|
270
|
+
}, Gt = {
|
|
271
271
|
clearable: !0,
|
|
272
272
|
disabled: void 0,
|
|
273
273
|
filterable: !0,
|
|
@@ -278,12 +278,12 @@ var Nt = Object.create, Pt = Object.defineProperty, Ft = Object.getOwnPropertyDe
|
|
|
278
278
|
showAllLevels: !0,
|
|
279
279
|
valueMode: "onlyLeaf",
|
|
280
280
|
valueType: "single"
|
|
281
|
-
},
|
|
281
|
+
}, Kt = class {
|
|
282
282
|
stream;
|
|
283
283
|
onDisposed;
|
|
284
284
|
audioElement;
|
|
285
|
-
isLoading =
|
|
286
|
-
isPlaying =
|
|
285
|
+
isLoading = L(!1);
|
|
286
|
+
isPlaying = L(!1);
|
|
287
287
|
disposed = !1;
|
|
288
288
|
tracks;
|
|
289
289
|
constructor(e, t, n) {
|
|
@@ -307,7 +307,7 @@ var Nt = Object.create, Pt = Object.defineProperty, Ft = Object.getOwnPropertyDe
|
|
|
307
307
|
onTrackEnded = () => {
|
|
308
308
|
this.dispose();
|
|
309
309
|
};
|
|
310
|
-
},
|
|
310
|
+
}, qt = new class {
|
|
311
311
|
players = /* @__PURE__ */ new Map();
|
|
312
312
|
play(e, t) {
|
|
313
313
|
if (this.players.has(e)) {
|
|
@@ -319,7 +319,7 @@ var Nt = Object.create, Pt = Object.defineProperty, Ft = Object.getOwnPropertyDe
|
|
|
319
319
|
}
|
|
320
320
|
let { disposeOthers: n = !0, setAudioElement: r } = t ?? {};
|
|
321
321
|
n && this.release();
|
|
322
|
-
let i = new
|
|
322
|
+
let i = new Kt(e, (e) => {
|
|
323
323
|
this.players.delete(e);
|
|
324
324
|
}, r);
|
|
325
325
|
return this.players.set(e, i), {
|
|
@@ -332,19 +332,19 @@ var Nt = Object.create, Pt = Object.defineProperty, Ft = Object.getOwnPropertyDe
|
|
|
332
332
|
else for (let e of [...this.players.values()]) e.dispose();
|
|
333
333
|
}
|
|
334
334
|
}();
|
|
335
|
-
function
|
|
336
|
-
return
|
|
335
|
+
function Jt(e, t) {
|
|
336
|
+
return qt.play(e, t);
|
|
337
337
|
}
|
|
338
|
-
function
|
|
339
|
-
|
|
338
|
+
function Yt(e) {
|
|
339
|
+
qt.release(e);
|
|
340
340
|
}
|
|
341
341
|
// ../../packages/dlzn-ui/utils/audio/playUrl.ts
|
|
342
|
-
var
|
|
342
|
+
var Xt = class {
|
|
343
343
|
url;
|
|
344
344
|
onDisposed;
|
|
345
345
|
audioElement;
|
|
346
|
-
isLoading =
|
|
347
|
-
isPlaying =
|
|
346
|
+
isLoading = L(!1);
|
|
347
|
+
isPlaying = L(!1);
|
|
348
348
|
disposed = !1;
|
|
349
349
|
constructor(e, t, n) {
|
|
350
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(() => {
|
|
@@ -361,7 +361,7 @@ var Zt = class {
|
|
|
361
361
|
onEnded = () => {
|
|
362
362
|
this.dispose();
|
|
363
363
|
};
|
|
364
|
-
},
|
|
364
|
+
}, Zt = new class {
|
|
365
365
|
players = /* @__PURE__ */ new Map();
|
|
366
366
|
play(e, t) {
|
|
367
367
|
if (this.players.has(e)) {
|
|
@@ -373,7 +373,7 @@ var Zt = class {
|
|
|
373
373
|
}
|
|
374
374
|
let { disposeOthers: n = !0, setAudioElement: r } = t ?? {};
|
|
375
375
|
n && this.release();
|
|
376
|
-
let i = new
|
|
376
|
+
let i = new Xt(e, (e) => {
|
|
377
377
|
this.players.delete(e);
|
|
378
378
|
}, r);
|
|
379
379
|
return this.players.set(e, i), {
|
|
@@ -386,19 +386,19 @@ var Zt = class {
|
|
|
386
386
|
else for (let e of [...this.players.values()]) e.dispose();
|
|
387
387
|
}
|
|
388
388
|
}();
|
|
389
|
-
function
|
|
390
|
-
return
|
|
389
|
+
function Qt(e, t) {
|
|
390
|
+
return Zt.play(e, t);
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
|
|
392
|
+
function $t(e) {
|
|
393
|
+
Zt.release(e);
|
|
394
394
|
}
|
|
395
395
|
// ../../packages/dlzn-ui/utils/gather.ts
|
|
396
|
-
function
|
|
397
|
-
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));
|
|
398
398
|
return n ? r : r[0];
|
|
399
399
|
}
|
|
400
400
|
// ../../packages/dlzn-ui/components/dialog/src/dialog.ts
|
|
401
|
-
var
|
|
401
|
+
var tn = {
|
|
402
402
|
closeBtn: () => j($, {
|
|
403
403
|
icon: "mdi:close",
|
|
404
404
|
shape: "circle",
|
|
@@ -419,7 +419,7 @@ var nn = {
|
|
|
419
419
|
preventScrollThrough: !0,
|
|
420
420
|
showOverlay: !0,
|
|
421
421
|
width: "fit-content"
|
|
422
|
-
},
|
|
422
|
+
}, nn = /* @__PURE__ */ k({
|
|
423
423
|
inheritAttrs: !1,
|
|
424
424
|
name: "TDialog",
|
|
425
425
|
__name: "dialog",
|
|
@@ -466,9 +466,9 @@ var nn = {
|
|
|
466
466
|
"onUpdate:visible": { type: Function },
|
|
467
467
|
visible: { type: Boolean }
|
|
468
468
|
}, {
|
|
469
|
-
...
|
|
469
|
+
...tn,
|
|
470
470
|
attach: "body",
|
|
471
|
-
closeBtn: () =>
|
|
471
|
+
closeBtn: () => tn.closeBtn,
|
|
472
472
|
showInAttachedElement: !1
|
|
473
473
|
}),
|
|
474
474
|
setup(e) {
|
|
@@ -481,48 +481,48 @@ var nn = {
|
|
|
481
481
|
function i(e) {
|
|
482
482
|
r.exposed = e ?? {};
|
|
483
483
|
}
|
|
484
|
-
return (e, t) => (
|
|
484
|
+
return (e, t) => (I(), w(z(j(V(Ke), P(e.$attrs, {
|
|
485
485
|
...n.value,
|
|
486
486
|
ref: i
|
|
487
487
|
}), e.$slots))));
|
|
488
488
|
}
|
|
489
|
-
}),
|
|
489
|
+
}), rn = /* @__PURE__ */ function(e) {
|
|
490
490
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
491
|
-
}(
|
|
492
|
-
function
|
|
493
|
-
let r = C(() => typeof t.body == "function" ? t.body(j) : t.body), i =
|
|
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, {
|
|
494
494
|
controls: !0,
|
|
495
495
|
initialValue: !0
|
|
496
496
|
}), s = {
|
|
497
|
-
...
|
|
497
|
+
...tn,
|
|
498
498
|
closeWhenCloseAll: !0,
|
|
499
499
|
...t ?? {},
|
|
500
|
-
body: () => j(
|
|
500
|
+
body: () => j(Fr, {}, { default: () => r.value })
|
|
501
501
|
}, c, l = {
|
|
502
502
|
...s,
|
|
503
503
|
onClosed: () => {
|
|
504
|
-
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();
|
|
505
505
|
}
|
|
506
506
|
};
|
|
507
507
|
delete l.closeWhenCloseAll;
|
|
508
|
-
let u =
|
|
509
|
-
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;
|
|
510
510
|
}
|
|
511
|
-
var
|
|
512
|
-
return
|
|
511
|
+
var sn = function(...e) {
|
|
512
|
+
return on(void 0, ...e);
|
|
513
513
|
};
|
|
514
|
-
Object.values(
|
|
515
|
-
|
|
516
|
-
|
|
514
|
+
Object.values(rn).forEach((e) => {
|
|
515
|
+
sn[e] = e === "closeAll" ? () => {
|
|
516
|
+
an.forEach((e) => {
|
|
517
517
|
e.hide();
|
|
518
518
|
});
|
|
519
|
-
} : (...t) =>
|
|
519
|
+
} : (...t) => on(e, ...t);
|
|
520
520
|
});
|
|
521
521
|
// ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
522
|
-
var
|
|
522
|
+
var G = (e, t) => {
|
|
523
523
|
let n = { ...typeof e == "string" ? {} : e };
|
|
524
524
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
525
|
-
let a =
|
|
525
|
+
let a = sn(typeof e == "string" ? {
|
|
526
526
|
body: e,
|
|
527
527
|
onConfirm: () => {
|
|
528
528
|
a.hide(), r();
|
|
@@ -547,8 +547,8 @@ var U = (e, t) => {
|
|
|
547
547
|
});
|
|
548
548
|
};
|
|
549
549
|
// ../../packages/dlzn-ui/store/modules/common.ts
|
|
550
|
-
function
|
|
551
|
-
return VITE_APP_ID === "1" ?
|
|
550
|
+
function cn() {
|
|
551
|
+
return VITE_APP_ID === "1" ? J.Get(`yq/oemConfig/getByDomain/${window.location.hostname}`, {
|
|
552
552
|
meta: { useToken: !1 },
|
|
553
553
|
transform(e) {
|
|
554
554
|
if (e === null) throw Error("oemConfig getByDomain return null");
|
|
@@ -559,26 +559,26 @@ function ln() {
|
|
|
559
559
|
version: ""
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
|
-
}) :
|
|
562
|
+
}) : J.Get("common/appInfo", { meta: {
|
|
563
563
|
useFailMsg: !1,
|
|
564
564
|
useSysFailMsg: !1,
|
|
565
565
|
useToken: !1
|
|
566
566
|
} });
|
|
567
567
|
}
|
|
568
|
-
var
|
|
569
|
-
let e =
|
|
568
|
+
var ln = xt("common", () => {
|
|
569
|
+
let e = L(!0), t = L(250), n = L({
|
|
570
570
|
appName: "",
|
|
571
571
|
color: "",
|
|
572
572
|
logo: "",
|
|
573
573
|
version: ""
|
|
574
574
|
});
|
|
575
|
-
|
|
575
|
+
H(() => n.value.appName, (e) => {
|
|
576
576
|
e && (document.title = e);
|
|
577
|
-
}),
|
|
578
|
-
e && (
|
|
579
|
-
}),
|
|
577
|
+
}), H(() => n.value.color, (e) => {
|
|
578
|
+
e && (v().value = e);
|
|
579
|
+
}), ht(C(() => n.value.logo || "/favicon.ico"));
|
|
580
580
|
function r() {
|
|
581
|
-
|
|
581
|
+
cn().then((e) => {
|
|
582
582
|
n.value = e;
|
|
583
583
|
}).catch((e) => {
|
|
584
584
|
n.value = {
|
|
@@ -589,7 +589,7 @@ var W = St("common", () => {
|
|
|
589
589
|
}, console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
|
-
let i =
|
|
592
|
+
let i = L(!0), a = null;
|
|
593
593
|
function o() {
|
|
594
594
|
a !== null && (clearTimeout(a), a = null), i.value = !1, a = window.setTimeout(() => {
|
|
595
595
|
i.value = !0;
|
|
@@ -603,13 +603,13 @@ var W = St("common", () => {
|
|
|
603
603
|
isRequestSleep: i,
|
|
604
604
|
requestActive: o
|
|
605
605
|
};
|
|
606
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }),
|
|
607
|
-
let e =
|
|
606
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), K = xt("recentRouters", () => {
|
|
607
|
+
let e = L([]), t = W(), n = Dt();
|
|
608
608
|
function r() {
|
|
609
609
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
610
610
|
}
|
|
611
611
|
function i(t, n) {
|
|
612
|
-
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);
|
|
613
613
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
614
614
|
let n = e.value.findIndex((e) => e.name === t);
|
|
615
615
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -640,7 +640,7 @@ var W = St("common", () => {
|
|
|
640
640
|
}, { persist: { pick: ["recentRouters"] } });
|
|
641
641
|
// ../../packages/dlzn-ui/store/modules/router.ts
|
|
642
642
|
function un() {
|
|
643
|
-
return
|
|
643
|
+
return J.Get("getRouters", { meta: {
|
|
644
644
|
useFailMsg: "获取用户路由失败",
|
|
645
645
|
useLoading: "正在获取用户路由..."
|
|
646
646
|
} });
|
|
@@ -705,10 +705,10 @@ function gn(e) {
|
|
|
705
705
|
}
|
|
706
706
|
function _n(e) {
|
|
707
707
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
708
|
-
let t = e.component, n = typeof t == "string" ?
|
|
708
|
+
let t = e.component, n = typeof t == "string" ? b[gn(t)] : t;
|
|
709
709
|
if (n === void 0) {
|
|
710
710
|
let e = `路由组件${gn(t)}不存在`;
|
|
711
|
-
return console.error(e),
|
|
711
|
+
return console.error(e), g["./NotFound.vue"];
|
|
712
712
|
}
|
|
713
713
|
return typeof t == "string" && hn.push(gn(t)), () => n().then((t) => ({
|
|
714
714
|
...t.default,
|
|
@@ -717,8 +717,8 @@ function _n(e) {
|
|
|
717
717
|
}
|
|
718
718
|
return e.component;
|
|
719
719
|
}
|
|
720
|
-
var vn =
|
|
721
|
-
let e =
|
|
720
|
+
var vn = xt("router", () => {
|
|
721
|
+
let e = L([]), t = Dt(), n = Q();
|
|
722
722
|
async function r() {
|
|
723
723
|
let r = await un();
|
|
724
724
|
VITE_MODE === "development" && n.isAdmin && fetch("/__dev__/save-folder-alias", {
|
|
@@ -727,18 +727,18 @@ var vn = St("router", () => {
|
|
|
727
727
|
method: "POST"
|
|
728
728
|
}).catch((e) => {
|
|
729
729
|
console.warn("[dev-save-folder-alias] 写入本地 json 失败", e);
|
|
730
|
-
}), hn.length = 0, e.value =
|
|
730
|
+
}), hn.length = 0, e.value = we(mn(pn(fn(r)))), n.isAdmin && Object.keys(b).forEach((e) => {
|
|
731
731
|
if (!hn.includes(e) && ![
|
|
732
732
|
"./tool",
|
|
733
733
|
"./system",
|
|
734
734
|
"./monitor"
|
|
735
735
|
].some((t) => e.startsWith(t))) {
|
|
736
736
|
let t = `${e} 页面对应的路由不存在`;
|
|
737
|
-
VITE_MODE === "development" ?
|
|
737
|
+
VITE_MODE === "development" ? m.error(t) : console.error(t);
|
|
738
738
|
}
|
|
739
739
|
}), t.hasRoute("Index") && t.removeRoute("Index"), e.value.forEach((e) => {
|
|
740
740
|
t.addRoute(e);
|
|
741
|
-
}),
|
|
741
|
+
}), K().init();
|
|
742
742
|
}
|
|
743
743
|
function i() {
|
|
744
744
|
e.value.forEach((e) => {
|
|
@@ -753,8 +753,8 @@ var vn = St("router", () => {
|
|
|
753
753
|
}), yn = { class: "ml-2! flex items-center" }, bn = /*#__PURE__*/ x(/* @__PURE__ */ k({
|
|
754
754
|
__name: "Aside",
|
|
755
755
|
setup(e) {
|
|
756
|
-
let t =
|
|
757
|
-
|
|
756
|
+
let t = W(), n = ln(), r = C(() => n.appInfo.appName), i = vn(), a = L([]);
|
|
757
|
+
H(() => t.name, () => {
|
|
758
758
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
759
759
|
a.value.includes(e) || a.value.push(e);
|
|
760
760
|
});
|
|
@@ -762,34 +762,34 @@ var vn = St("router", () => {
|
|
|
762
762
|
let o = C(() => {
|
|
763
763
|
let { hidden: e, parentName: n } = t.meta;
|
|
764
764
|
return n !== "" && e === !0 ? n : t.name;
|
|
765
|
-
}), s = C(() => n.appInfo.logo ||
|
|
766
|
-
return (e, t) => (
|
|
765
|
+
}), s = C(() => n.appInfo.logo || St.asideTopLogoUrl);
|
|
766
|
+
return (e, t) => (I(), w(V(rt), {
|
|
767
767
|
expanded: a.value,
|
|
768
768
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
769
769
|
class: "w-full!",
|
|
770
770
|
value: o.value
|
|
771
771
|
}, {
|
|
772
|
-
logo:
|
|
772
|
+
logo: U(() => [be("div", yn, [O(V(ne), {
|
|
773
773
|
class: "logo",
|
|
774
774
|
src: s.value,
|
|
775
775
|
style: {
|
|
776
776
|
width: "28px",
|
|
777
777
|
height: "28px"
|
|
778
778
|
}
|
|
779
|
-
}, null, 8, ["src"]), O(
|
|
779
|
+
}, null, 8, ["src"]), O(V(ee), {
|
|
780
780
|
"animation-speed": 8,
|
|
781
781
|
"class-name": "ml-2 text-xl !font-bold",
|
|
782
782
|
"show-border": !1,
|
|
783
783
|
text: r.value
|
|
784
784
|
}, null, 8, ["text"])])]),
|
|
785
|
-
default:
|
|
785
|
+
default: U(() => [O(te, { model: V(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
786
786
|
_: 1
|
|
787
787
|
}, 8, ["expanded", "value"]));
|
|
788
788
|
}
|
|
789
789
|
}), [["__scopeId", "data-v-637195ec"]]), xn = /* @__PURE__ */ k({
|
|
790
790
|
__name: "Breadcrumb",
|
|
791
791
|
setup(e, { expose: t }) {
|
|
792
|
-
let n =
|
|
792
|
+
let n = W(), r = Dt(), i = K(), a = C(() => {
|
|
793
793
|
let e = n.matched.map((e) => ({
|
|
794
794
|
name: e.name,
|
|
795
795
|
title: e.meta.title
|
|
@@ -802,16 +802,16 @@ var vn = St("router", () => {
|
|
|
802
802
|
function o(e) {
|
|
803
803
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
804
804
|
}
|
|
805
|
-
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), {
|
|
806
806
|
key: 0,
|
|
807
807
|
class: "absolute top-px z-10 py-1!"
|
|
808
808
|
}, {
|
|
809
|
-
default:
|
|
809
|
+
default: U(() => [(I(!0), E(ve, null, R(a.value, (e) => (I(), w(V(Be), {
|
|
810
810
|
key: e.name,
|
|
811
811
|
disabled: e.disabled,
|
|
812
812
|
onClick: (t) => o(e.name)
|
|
813
813
|
}, {
|
|
814
|
-
default:
|
|
814
|
+
default: U(() => [D(B(e.title), 1)]),
|
|
815
815
|
_: 2
|
|
816
816
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
817
817
|
_: 1
|
|
@@ -819,7 +819,7 @@ var vn = St("router", () => {
|
|
|
819
819
|
}
|
|
820
820
|
}), Sn = /* @__PURE__ */ new Map();
|
|
821
821
|
function Cn(e) {
|
|
822
|
-
let t =
|
|
822
|
+
let t = J.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
823
823
|
cssClass: e.cssClass,
|
|
824
824
|
dictType: e.dictType,
|
|
825
825
|
label: e.dictLabel,
|
|
@@ -847,11 +847,11 @@ function Dn() {
|
|
|
847
847
|
}
|
|
848
848
|
function On(e, t) {
|
|
849
849
|
let n = kn(e);
|
|
850
|
-
return t === void 0 ?
|
|
850
|
+
return t === void 0 ? cr(n) : cr(n, t);
|
|
851
851
|
}
|
|
852
852
|
function kn(e, t) {
|
|
853
853
|
let n;
|
|
854
|
-
return En.has(e) ? n = En.get(e) : (n =
|
|
854
|
+
return En.has(e) ? n = En.get(e) : (n = L([]), En.set(e, n), Tn(e).then((e) => {
|
|
855
855
|
n.value = e;
|
|
856
856
|
})), C(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
857
857
|
}
|
|
@@ -863,7 +863,7 @@ function An(e) {
|
|
|
863
863
|
// ../../packages/dlzn-ui/hooks/useSysUser/index.ts
|
|
864
864
|
var jn = /* @__PURE__ */ new Map();
|
|
865
865
|
function Mn(e) {
|
|
866
|
-
let t =
|
|
866
|
+
let t = J.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
867
867
|
...e,
|
|
868
868
|
label: e.userName,
|
|
869
869
|
value: e.userId
|
|
@@ -894,33 +894,33 @@ function Ln(e) {
|
|
|
894
894
|
}
|
|
895
895
|
function Rn(e) {
|
|
896
896
|
let t;
|
|
897
|
-
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) => {
|
|
898
898
|
t.value = e;
|
|
899
899
|
})), t;
|
|
900
900
|
}
|
|
901
901
|
// ../../packages/dlzn-ui/store/modules/login.ts
|
|
902
902
|
function zn(e) {
|
|
903
|
-
return
|
|
903
|
+
return J.Post("login", e, { meta: {
|
|
904
904
|
useLoading: "登录中...",
|
|
905
905
|
useToken: !1
|
|
906
906
|
} });
|
|
907
907
|
}
|
|
908
908
|
function Bn() {
|
|
909
|
-
return
|
|
909
|
+
return J.Post("logout", void 0, { meta: {
|
|
910
910
|
useLoading: "退出登录中...",
|
|
911
911
|
useSuccessMsg: !0
|
|
912
912
|
} });
|
|
913
913
|
}
|
|
914
|
-
var Vn =
|
|
915
|
-
let e =
|
|
914
|
+
var Vn = xt("login", () => {
|
|
915
|
+
let e = L(""), t = W(), n = Dt();
|
|
916
916
|
async function r(t) {
|
|
917
917
|
let n = await zn(t);
|
|
918
918
|
e.value = n.token, await Q().getUserInfo();
|
|
919
919
|
}
|
|
920
920
|
function i() {
|
|
921
|
-
e.value = "",
|
|
921
|
+
e.value = "", y().clear(), vn().clear(), Q().clear(), Dn(), In(), ur();
|
|
922
922
|
}
|
|
923
|
-
|
|
923
|
+
H(() => t.name, () => {
|
|
924
924
|
t.name === "Login" && i();
|
|
925
925
|
});
|
|
926
926
|
async function a() {
|
|
@@ -934,7 +934,7 @@ var Vn = St("login", () => {
|
|
|
934
934
|
}, { persist: { pick: ["token"] } }), Hn = { class: "flex items-center justify-between" }, Un = /*#__PURE__*/ x(/* @__PURE__ */ k({
|
|
935
935
|
__name: "Header",
|
|
936
936
|
setup(e) {
|
|
937
|
-
let n =
|
|
937
|
+
let n = W(), r = Dt(), i = Q(), a = ln(), o = K();
|
|
938
938
|
function s(e) {
|
|
939
939
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
940
940
|
}
|
|
@@ -943,8 +943,8 @@ var Vn = St("login", () => {
|
|
|
943
943
|
}
|
|
944
944
|
let l = async (e) => {
|
|
945
945
|
let { value: t } = e;
|
|
946
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await
|
|
947
|
-
}, u =
|
|
946
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await G("确定要退出登录吗?"), Vn().logout());
|
|
947
|
+
}, u = _.isMd;
|
|
948
948
|
function d(e, t) {
|
|
949
949
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
950
950
|
o.recentRouters.length > 1 && i.push({
|
|
@@ -965,76 +965,76 @@ var Vn = St("login", () => {
|
|
|
965
965
|
onClick: () => {
|
|
966
966
|
l > s && r.push(u), o.recentRouters = o.recentRouters.slice(0, s + 1);
|
|
967
967
|
}
|
|
968
|
-
}),
|
|
968
|
+
}), re(e, i);
|
|
969
969
|
}
|
|
970
|
-
let f =
|
|
971
|
-
return (e, r) => (
|
|
972
|
-
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), {
|
|
973
973
|
"expand-type": "popup",
|
|
974
|
-
value:
|
|
974
|
+
value: V(n).name,
|
|
975
975
|
onChange: s
|
|
976
976
|
}, {
|
|
977
|
-
logo:
|
|
977
|
+
logo: U(() => [O(V($), {
|
|
978
978
|
class: "ml-0! shrink-0",
|
|
979
979
|
shape: "circle",
|
|
980
980
|
size: "large",
|
|
981
981
|
variant: "text",
|
|
982
|
-
onClick: r[0] ||= (e) =>
|
|
982
|
+
onClick: r[0] ||= (e) => V(a).drawerOpen = !V(a).drawerOpen
|
|
983
983
|
}, {
|
|
984
|
-
default:
|
|
984
|
+
default: U(() => [O(V(t), { icon: "lineicons:menu-hamburger-1" })]),
|
|
985
985
|
_: 1
|
|
986
986
|
})]),
|
|
987
|
-
operations:
|
|
987
|
+
operations: U(() => [V(f) ? (I(), w(V(f), { key: 0 })) : T("v-if", !0), O(V(ie), {
|
|
988
988
|
options: [{
|
|
989
989
|
content: "个人中心",
|
|
990
990
|
value: "profile",
|
|
991
|
-
prefixIcon: () => j(
|
|
991
|
+
prefixIcon: () => j(V(t), {
|
|
992
992
|
icon: "material-symbols:account-circle",
|
|
993
993
|
size: "16"
|
|
994
994
|
})
|
|
995
995
|
}, {
|
|
996
996
|
content: "退出登录",
|
|
997
997
|
value: "logout",
|
|
998
|
-
prefixIcon: () => j(
|
|
998
|
+
prefixIcon: () => j(V(t), {
|
|
999
999
|
icon: "material-symbols:logout",
|
|
1000
1000
|
size: "16"
|
|
1001
1001
|
})
|
|
1002
1002
|
}],
|
|
1003
1003
|
onClick: l
|
|
1004
1004
|
}, {
|
|
1005
|
-
default:
|
|
1005
|
+
default: U(() => [V(u) ? (I(), w(V($), {
|
|
1006
1006
|
key: 0,
|
|
1007
1007
|
icon: "material-symbols:account-circle",
|
|
1008
1008
|
shape: "square",
|
|
1009
1009
|
variant: "text"
|
|
1010
|
-
})) : (
|
|
1010
|
+
})) : (I(), w(V($), {
|
|
1011
1011
|
key: 1,
|
|
1012
1012
|
icon: "material-symbols:account-circle",
|
|
1013
1013
|
variant: "text"
|
|
1014
1014
|
}, {
|
|
1015
|
-
suffix:
|
|
1015
|
+
suffix: U(() => [O(V(t), {
|
|
1016
1016
|
icon: "icon-park-outline:down",
|
|
1017
1017
|
size: "18"
|
|
1018
1018
|
})]),
|
|
1019
|
-
default:
|
|
1019
|
+
default: U(() => [D(B(V(i).userInfo.userName) + " ", 1)]),
|
|
1020
1020
|
_: 1
|
|
1021
1021
|
}))]),
|
|
1022
1022
|
_: 1
|
|
1023
1023
|
}, 8, ["options"])]),
|
|
1024
|
-
default:
|
|
1024
|
+
default: U(() => [(I(!0), E(ve, null, R(V(o).recentRouters, (e) => (I(), w(V(it), {
|
|
1025
1025
|
key: e.name,
|
|
1026
1026
|
value: e.name,
|
|
1027
1027
|
onContextmenu: (t) => d(t, e.name)
|
|
1028
1028
|
}, {
|
|
1029
|
-
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($), {
|
|
1030
1030
|
key: 0,
|
|
1031
1031
|
class: "ml-1!",
|
|
1032
1032
|
shape: "square",
|
|
1033
1033
|
size: "small",
|
|
1034
1034
|
variant: "text",
|
|
1035
|
-
onClick:
|
|
1035
|
+
onClick: Re((t) => c(e.name), ["stop"])
|
|
1036
1036
|
}, {
|
|
1037
|
-
icon:
|
|
1037
|
+
icon: U(() => [O(V(t), {
|
|
1038
1038
|
icon: "material-symbols:close",
|
|
1039
1039
|
style: { "font-size": "12px !important" }
|
|
1040
1040
|
})]),
|
|
@@ -1050,37 +1050,37 @@ var Vn = St("login", () => {
|
|
|
1050
1050
|
}), [["__scopeId", "data-v-6c2c986c"]]), Wn = /*#__PURE__*/ x(/* @__PURE__ */ k({
|
|
1051
1051
|
__name: "Entry",
|
|
1052
1052
|
setup(t) {
|
|
1053
|
-
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);
|
|
1054
1054
|
function p({ size: e }) {
|
|
1055
1055
|
r.drawerSize = e;
|
|
1056
1056
|
}
|
|
1057
1057
|
let m = C(() => n.meta.fullScreen);
|
|
1058
1058
|
return (t, n) => {
|
|
1059
|
-
let i =
|
|
1060
|
-
return m.value ? (
|
|
1061
|
-
default:
|
|
1059
|
+
let i = Me("RouterView");
|
|
1060
|
+
return m.value ? (I(), w(i, { key: 0 }, {
|
|
1061
|
+
default: U(({ Component: e }) => [(I(), w(z(e)))]),
|
|
1062
1062
|
_: 1
|
|
1063
|
-
})) : (
|
|
1063
|
+
})) : (I(), w(V(nt), {
|
|
1064
1064
|
key: 1,
|
|
1065
1065
|
class: "h-full"
|
|
1066
1066
|
}, {
|
|
1067
|
-
default:
|
|
1067
|
+
default: U(() => [
|
|
1068
1068
|
O(Un),
|
|
1069
|
-
O(
|
|
1070
|
-
visible:
|
|
1071
|
-
"onUpdate:visible": n[0] ||= (e) =>
|
|
1069
|
+
O(V(Je), {
|
|
1070
|
+
visible: V(r).drawerOpen,
|
|
1071
|
+
"onUpdate:visible": n[0] ||= (e) => V(r).drawerOpen = e,
|
|
1072
1072
|
footer: !1,
|
|
1073
|
-
mode:
|
|
1073
|
+
mode: V(u) ? "overlay" : "push",
|
|
1074
1074
|
placement: "left",
|
|
1075
|
-
"show-overlay":
|
|
1076
|
-
size:
|
|
1075
|
+
"show-overlay": V(u),
|
|
1076
|
+
size: V(u) ? "200px" : `${V(r).drawerSize}px`,
|
|
1077
1077
|
"size-draggable": {
|
|
1078
1078
|
max: 450,
|
|
1079
1079
|
min: 180
|
|
1080
1080
|
},
|
|
1081
1081
|
onSizeDragEnd: p
|
|
1082
1082
|
}, {
|
|
1083
|
-
default:
|
|
1083
|
+
default: U(() => [O(bn, { class: "no_drawer_body_padding" })]),
|
|
1084
1084
|
_: 1
|
|
1085
1085
|
}, 8, [
|
|
1086
1086
|
"visible",
|
|
@@ -1088,27 +1088,27 @@ var Vn = St("login", () => {
|
|
|
1088
1088
|
"show-overlay",
|
|
1089
1089
|
"size"
|
|
1090
1090
|
]),
|
|
1091
|
-
O(
|
|
1091
|
+
O(V(Ge), {
|
|
1092
1092
|
ref_key: "contentRef",
|
|
1093
1093
|
ref: d,
|
|
1094
1094
|
class: "overflow-hidden"
|
|
1095
1095
|
}, {
|
|
1096
|
-
default:
|
|
1096
|
+
default: U(() => [O(V(e), {
|
|
1097
1097
|
always: "",
|
|
1098
|
-
"view-class":
|
|
1098
|
+
"view-class": De(["relative flex flex-col", {
|
|
1099
1099
|
...l.value,
|
|
1100
1100
|
"pt-8": c.value
|
|
1101
1101
|
}]),
|
|
1102
1102
|
"view-style": {
|
|
1103
1103
|
minWidth: "1200px",
|
|
1104
|
-
minHeight: `${Math.max(
|
|
1104
|
+
minHeight: `${Math.max(V(f), 438)}px`
|
|
1105
1105
|
}
|
|
1106
1106
|
}, {
|
|
1107
|
-
default:
|
|
1108
|
-
default:
|
|
1109
|
-
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,
|
|
1110
1110
|
include: o.value
|
|
1111
|
-
}, [(
|
|
1111
|
+
}, [(I(), w(z(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
1112
1112
|
_: 1
|
|
1113
1113
|
})]),
|
|
1114
1114
|
_: 1
|
|
@@ -1132,14 +1132,14 @@ function Kn(e, t) {
|
|
|
1132
1132
|
lazy: !0,
|
|
1133
1133
|
sizeDraggable: !0,
|
|
1134
1134
|
...e ?? {},
|
|
1135
|
-
body: () => j(
|
|
1135
|
+
body: () => j(Fr, {}, { default: () => n.value })
|
|
1136
1136
|
}, i, a = {
|
|
1137
1137
|
...r,
|
|
1138
1138
|
onClose: (e) => {
|
|
1139
1139
|
r.onClose?.(e), Gn.delete(i);
|
|
1140
1140
|
}
|
|
1141
1141
|
};
|
|
1142
|
-
return delete a.closeWhenCloseAll, i =
|
|
1142
|
+
return delete a.closeWhenCloseAll, i = Ye(a, t ?? h()), r.closeWhenCloseAll && Gn.add(i), i;
|
|
1143
1143
|
}
|
|
1144
1144
|
var qn = function(...e) {
|
|
1145
1145
|
return Kn(...e);
|
|
@@ -1154,7 +1154,7 @@ function Jn() {
|
|
|
1154
1154
|
return {
|
|
1155
1155
|
children: [{
|
|
1156
1156
|
children: [{
|
|
1157
|
-
component:
|
|
1157
|
+
component: g["./profile/Index.vue"],
|
|
1158
1158
|
meta: {
|
|
1159
1159
|
fullScreen: !1,
|
|
1160
1160
|
hidden: !0,
|
|
@@ -1166,7 +1166,7 @@ function Jn() {
|
|
|
1166
1166
|
name: "Profile",
|
|
1167
1167
|
path: "profile"
|
|
1168
1168
|
}],
|
|
1169
|
-
component:
|
|
1169
|
+
component: g["./Home.vue"],
|
|
1170
1170
|
meta: {
|
|
1171
1171
|
fullScreen: !1,
|
|
1172
1172
|
hidden: !1,
|
|
@@ -1183,12 +1183,12 @@ function Jn() {
|
|
|
1183
1183
|
path: "/"
|
|
1184
1184
|
};
|
|
1185
1185
|
}
|
|
1186
|
-
var
|
|
1187
|
-
history:
|
|
1186
|
+
var q = wt({
|
|
1187
|
+
history: Tt(VITE_BASE_URL),
|
|
1188
1188
|
routes: [
|
|
1189
1189
|
Jn(),
|
|
1190
1190
|
{
|
|
1191
|
-
component:
|
|
1191
|
+
component: g["./Login.vue"],
|
|
1192
1192
|
meta: {
|
|
1193
1193
|
fullScreen: !1,
|
|
1194
1194
|
hidden: !0,
|
|
@@ -1200,8 +1200,8 @@ var K = Tt({
|
|
|
1200
1200
|
name: "Login",
|
|
1201
1201
|
path: "/login"
|
|
1202
1202
|
},
|
|
1203
|
-
...
|
|
1204
|
-
component:
|
|
1203
|
+
...g["./Register.vue"] === void 0 ? [] : [{
|
|
1204
|
+
component: g["./Register.vue"],
|
|
1205
1205
|
meta: {
|
|
1206
1206
|
fullScreen: !1,
|
|
1207
1207
|
hidden: !0,
|
|
@@ -1214,7 +1214,7 @@ var K = Tt({
|
|
|
1214
1214
|
path: "/register"
|
|
1215
1215
|
}],
|
|
1216
1216
|
{
|
|
1217
|
-
component:
|
|
1217
|
+
component: g["./NotFound.vue"],
|
|
1218
1218
|
meta: {
|
|
1219
1219
|
fullScreen: !1,
|
|
1220
1220
|
hidden: !0,
|
|
@@ -1230,16 +1230,16 @@ var K = Tt({
|
|
|
1230
1230
|
sensitive: !0,
|
|
1231
1231
|
strict: !0
|
|
1232
1232
|
});
|
|
1233
|
-
|
|
1234
|
-
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({
|
|
1235
1235
|
path: e.path,
|
|
1236
1236
|
query: e.query
|
|
1237
1237
|
}));
|
|
1238
|
-
}),
|
|
1239
|
-
|
|
1238
|
+
}), q.afterEach((e, t, n) => {
|
|
1239
|
+
sn.closeAll(), qn.closeAll();
|
|
1240
1240
|
let { meta: r, name: a } = e, { fullScreen: o, parentName: s, title: c } = r;
|
|
1241
|
-
document.title = c ||
|
|
1242
|
-
let l =
|
|
1241
|
+
document.title = c || ln().appInfo.appName;
|
|
1242
|
+
let l = K();
|
|
1243
1243
|
if (![
|
|
1244
1244
|
"Login",
|
|
1245
1245
|
"NotFound",
|
|
@@ -1251,10 +1251,10 @@ K.beforeEach(async (e) => {
|
|
|
1251
1251
|
query: e.query
|
|
1252
1252
|
});
|
|
1253
1253
|
}
|
|
1254
|
-
|
|
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("导航被阻止,因为我们已经在目标位置了"));
|
|
1255
1255
|
});
|
|
1256
1256
|
function Yn(e) {
|
|
1257
|
-
if (
|
|
1257
|
+
if (q.hasRoute(e)) return q.getRoutes().find((t) => t.name === e);
|
|
1258
1258
|
}
|
|
1259
1259
|
// ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
1260
1260
|
var Xn = 15e3, Zn = "网络错误,请稍后再试";
|
|
@@ -1273,15 +1273,7 @@ function $n(e, t = !0) {
|
|
|
1273
1273
|
function er(e, t = !0) {
|
|
1274
1274
|
return new URLSearchParams($n(e, t)).toString();
|
|
1275
1275
|
}
|
|
1276
|
-
|
|
1277
|
-
let { data: t, response: n, useDownload: r } = e;
|
|
1278
|
-
if (typeof r == "string") J(t, r);
|
|
1279
|
-
else {
|
|
1280
|
-
let e = new URLSearchParams((n.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename");
|
|
1281
|
-
e ? J(t, e) : p.error("返回的 response header 没有文件名");
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
var q = kt({
|
|
1276
|
+
var J = Ot({
|
|
1285
1277
|
baseURL: VITE_BASE_URL,
|
|
1286
1278
|
beforeRequest: async (e) => {
|
|
1287
1279
|
e.meta = {
|
|
@@ -1304,13 +1296,13 @@ var q = kt({
|
|
|
1304
1296
|
let { useBeforeRequestIntercept: t, useEmptyData: n, useEmptyParams: i, useFormData: a, useInPolling: o, useLoading: s, useResponseBlob: c, useToken: l } = e.meta;
|
|
1305
1297
|
t !== void 0 && await t(e), e.config.credentials = e.config.credentials ?? "omit";
|
|
1306
1298
|
let [u, ...d] = VITE_API_PROXY_PREFIX_ARRAY;
|
|
1307
|
-
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) {
|
|
1308
1300
|
let t = Vn();
|
|
1309
1301
|
t.token ? e.config.headers.Authorization = t.token : e.abort();
|
|
1310
1302
|
}
|
|
1311
1303
|
s !== !1 && r.show(s === !0 ? void 0 : s);
|
|
1312
1304
|
let f = e.config.params;
|
|
1313
|
-
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) {
|
|
1314
1306
|
let t = new FormData();
|
|
1315
1307
|
Object.keys(e.data).forEach((n) => {
|
|
1316
1308
|
t.append(n, e.data[n]);
|
|
@@ -1319,7 +1311,7 @@ var q = kt({
|
|
|
1319
1311
|
e.config.timeout === Xn && (a || e.data instanceof FormData || c) && (e.config.timeout = 0);
|
|
1320
1312
|
},
|
|
1321
1313
|
cacheFor: null,
|
|
1322
|
-
requestAdapter:
|
|
1314
|
+
requestAdapter: kt(),
|
|
1323
1315
|
responded: {
|
|
1324
1316
|
onComplete: (e) => {
|
|
1325
1317
|
e.meta.useLoading !== !1 && r.hide();
|
|
@@ -1335,37 +1327,37 @@ var q = kt({
|
|
|
1335
1327
|
},
|
|
1336
1328
|
onSuccess: async (e, t) => {
|
|
1337
1329
|
if (typeof e == "string") return e;
|
|
1338
|
-
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;
|
|
1339
1331
|
if (f === !1) {
|
|
1340
1332
|
if (l) {
|
|
1341
1333
|
let e = {
|
|
1342
1334
|
403: "当前操作没有权限",
|
|
1343
1335
|
404: "访问资源不存在",
|
|
1344
1336
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1345
|
-
}[
|
|
1337
|
+
}[p] ?? Zn;
|
|
1346
1338
|
i.error(e);
|
|
1347
1339
|
}
|
|
1348
1340
|
return Promise.reject(e);
|
|
1349
1341
|
}
|
|
1342
|
+
if (r !== !1 && !d.get("content-type")?.includes("application/json")) return sr(e, {
|
|
1343
|
+
filename: r === !0 ? void 0 : r,
|
|
1344
|
+
url: t.url
|
|
1345
|
+
});
|
|
1350
1346
|
if (o && !d.get("content-type")?.includes("application/json")) {
|
|
1351
1347
|
let t;
|
|
1352
1348
|
try {
|
|
1353
1349
|
t = await e.blob();
|
|
1354
1350
|
} catch (e) {
|
|
1355
|
-
return
|
|
1351
|
+
return m.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1356
1352
|
}
|
|
1357
|
-
return
|
|
1358
|
-
data: t,
|
|
1359
|
-
response: e,
|
|
1360
|
-
useDownload: r
|
|
1361
|
-
}), t;
|
|
1353
|
+
return t;
|
|
1362
1354
|
}
|
|
1363
1355
|
if (s && !d.get("content-type")?.includes("application/json")) {
|
|
1364
1356
|
let t;
|
|
1365
1357
|
try {
|
|
1366
1358
|
t = await e.text();
|
|
1367
1359
|
} catch (e) {
|
|
1368
|
-
return
|
|
1360
|
+
return m.error("返回的 response 不能被text() 方法所解析"), Promise.reject(e);
|
|
1369
1361
|
}
|
|
1370
1362
|
return t;
|
|
1371
1363
|
}
|
|
@@ -1373,137 +1365,135 @@ var q = kt({
|
|
|
1373
1365
|
try {
|
|
1374
1366
|
h = await e.json();
|
|
1375
1367
|
} catch (e) {
|
|
1376
|
-
return
|
|
1368
|
+
return m.error("返回的 response 不能被json() 方法所解析"), Promise.reject(e);
|
|
1377
1369
|
}
|
|
1378
1370
|
if (h?.code !== void 0) {
|
|
1379
|
-
let { code:
|
|
1380
|
-
if (
|
|
1381
|
-
if (
|
|
1382
|
-
if (
|
|
1383
|
-
|
|
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({
|
|
1384
1376
|
body: () => j("div", { innerHTML: e }),
|
|
1385
1377
|
cancelBtn: null
|
|
1386
1378
|
});
|
|
1387
1379
|
}), !o) return h;
|
|
1388
|
-
} else
|
|
1380
|
+
} else e === 401 && u ? q.push({ name: "Login" }) : a !== !1 && i.error(a === !0 ? l : a);
|
|
1389
1381
|
return Promise.reject(h);
|
|
1390
1382
|
}
|
|
1391
1383
|
{
|
|
1392
|
-
let a =
|
|
1393
|
-
code:
|
|
1384
|
+
let a = St.alovaResCodeSuccessCb?.({
|
|
1385
|
+
code: e,
|
|
1394
1386
|
data: s,
|
|
1395
1387
|
msg: l
|
|
1396
1388
|
});
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
}
|
|
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;
|
|
1402
1395
|
}
|
|
1403
1396
|
}
|
|
1404
1397
|
return h;
|
|
1405
1398
|
}
|
|
1406
1399
|
},
|
|
1407
1400
|
shareRequest: !1,
|
|
1408
|
-
statesHook:
|
|
1401
|
+
statesHook: At,
|
|
1409
1402
|
timeout: Xn
|
|
1410
1403
|
});
|
|
1411
1404
|
// ../../packages/dlzn-ui/utils/tool.ts
|
|
1412
|
-
async function
|
|
1405
|
+
async function tr(e, t) {
|
|
1413
1406
|
let { default: n } = await import("crypto-js"), r = n.enc.Utf8.parse(t);
|
|
1414
1407
|
return n.AES.decrypt(e, r, {
|
|
1415
1408
|
mode: n.mode.ECB,
|
|
1416
1409
|
padding: n.pad.Pkcs7
|
|
1417
1410
|
}).toString(n.enc.Utf8);
|
|
1418
1411
|
}
|
|
1419
|
-
async function
|
|
1412
|
+
async function nr(e, t) {
|
|
1420
1413
|
let { default: n } = await import("crypto-js"), r = n.enc.Utf8.parse(t), i = n.enc.Utf8.parse(e);
|
|
1421
1414
|
return n.AES.encrypt(i, r, {
|
|
1422
1415
|
mode: n.mode.ECB,
|
|
1423
1416
|
padding: n.pad.Pkcs7
|
|
1424
1417
|
}).toString();
|
|
1425
1418
|
}
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
e.source instanceof Blob ? t({
|
|
1429
|
-
blob: e.source,
|
|
1430
|
-
name: e.name
|
|
1431
|
-
}) : q.Get(e.source, { meta: {
|
|
1432
|
-
useLoading: "下载中...",
|
|
1433
|
-
useResponseBlob: !0
|
|
1434
|
-
} }).then((n) => {
|
|
1435
|
-
t({
|
|
1436
|
-
blob: n,
|
|
1437
|
-
name: e.name
|
|
1438
|
-
});
|
|
1439
|
-
});
|
|
1440
|
-
}));
|
|
1441
|
-
return Promise.all(n).then((e) => e.length === 1 ? J(e[0].blob, e[0].name) : import("./jszip.min-BsTX4vuD.mjs").then((e) => /* @__PURE__ */ Vt(e.default, 1)).then(({ default: n }) => {
|
|
1419
|
+
function rr(e, t) {
|
|
1420
|
+
return import("./jszip.min-DUKT3zcE.mjs").then((e) => /* @__PURE__ */ Bt(e.default, 1)).then(({ default: n }) => {
|
|
1442
1421
|
let r = new n(), i = r.folder(t);
|
|
1443
1422
|
return i === null ? Promise.reject("zip文件夹创建失败,请检查zipName是否合法") : (e.forEach((e) => {
|
|
1444
|
-
i.file(e.name, e.
|
|
1445
|
-
}), r.generateAsync({ type: "blob" }).then((e) =>
|
|
1446
|
-
})
|
|
1423
|
+
i.file(e.name, J.Get(e.source));
|
|
1424
|
+
}), r.generateAsync({ type: "blob" }).then((e) => or(e, t)));
|
|
1425
|
+
});
|
|
1447
1426
|
}
|
|
1448
|
-
async function
|
|
1427
|
+
async function ir() {
|
|
1449
1428
|
let { default: e } = await import("@fingerprintjs/fingerprintjs");
|
|
1450
1429
|
return (await (await e.load()).get()).visitorId;
|
|
1451
1430
|
}
|
|
1452
|
-
async function
|
|
1431
|
+
async function ar(e, t) {
|
|
1453
1432
|
let { default: n } = await import("dompurify");
|
|
1454
1433
|
return n.sanitize(e, t);
|
|
1455
1434
|
}
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1435
|
+
function or(e, t) {
|
|
1436
|
+
return sr(new Response(e), { filename: t });
|
|
1437
|
+
}
|
|
1438
|
+
async function sr(e, t) {
|
|
1439
|
+
if (e.body === null) return Promise.reject("响应对象没有body");
|
|
1440
|
+
let { default: n } = await import("streamsaver"), { filename: r, url: i } = t ?? {}, a = null;
|
|
1441
|
+
if (i !== void 0) {
|
|
1442
|
+
let e = f(i, !0);
|
|
1443
|
+
a = e === "" ? null : e;
|
|
1444
|
+
}
|
|
1445
|
+
let o = r ?? new URLSearchParams((e.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename") ?? a;
|
|
1446
|
+
if (o === null) return Promise.reject("未配置下载文件名");
|
|
1447
|
+
let s = n.createWriteStream(o);
|
|
1448
|
+
await e.body.pipeTo(s);
|
|
1459
1449
|
}
|
|
1460
1450
|
// ../../packages/dlzn-ui/hooks/useLabel/index.ts
|
|
1461
|
-
function
|
|
1451
|
+
function cr(e, t) {
|
|
1462
1452
|
return C(() => {
|
|
1463
1453
|
if (t === void 0) return e.value.map((e) => e.label);
|
|
1464
|
-
if (Array.isArray(t)) return e.value.length === 0 ? [] :
|
|
1454
|
+
if (Array.isArray(t)) return e.value.length === 0 ? [] : en(e.value, t);
|
|
1465
1455
|
if (e.value.length === 0) return "";
|
|
1466
1456
|
if (typeof t == "string") {
|
|
1467
1457
|
let n = t.split(",").filter(Boolean);
|
|
1468
|
-
if (n.length > 0) return
|
|
1458
|
+
if (n.length > 0) return en(e.value, n).join(",");
|
|
1469
1459
|
}
|
|
1470
|
-
return
|
|
1460
|
+
return en(e.value, t);
|
|
1471
1461
|
});
|
|
1472
1462
|
}
|
|
1473
1463
|
// ../../packages/dlzn-ui/hooks/useList/index.ts
|
|
1474
|
-
var
|
|
1475
|
-
systemDeptTree: () =>
|
|
1476
|
-
systemMenuTree: () =>
|
|
1464
|
+
var lr = {
|
|
1465
|
+
systemDeptTree: () => J.Get("system/user/deptTree", { transform: (e) => oe(e, { fieldNamesMapping: { value: "id" } }) }),
|
|
1466
|
+
systemMenuTree: () => J.Get("system/menu/list", { transform: (e) => ae(e.map((e) => ({
|
|
1477
1467
|
...e,
|
|
1478
1468
|
label: e.menuName,
|
|
1479
1469
|
value: e.menuId
|
|
1480
1470
|
})), { idKey: "value" }) }),
|
|
1481
|
-
...
|
|
1471
|
+
...St.useListPromiseMap ?? {}
|
|
1482
1472
|
}, Y = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map();
|
|
1483
|
-
function
|
|
1473
|
+
function ur() {
|
|
1484
1474
|
Y.clear(), X.clear();
|
|
1485
1475
|
}
|
|
1486
1476
|
function Z(e) {
|
|
1487
|
-
let t = Y.has(e) ? Y.get(e) :
|
|
1488
|
-
return Y.has(e) || Y.set(e, t), t.value.length === 0 && (X.has(e) && X.get(e) !== !1 || (X.set(e, !0),
|
|
1477
|
+
let t = Y.has(e) ? Y.get(e) : L([]);
|
|
1478
|
+
return Y.has(e) || Y.set(e, t), t.value.length === 0 && (X.has(e) && X.get(e) !== !1 || (X.set(e, !0), lr[e]().then((e) => {
|
|
1489
1479
|
t.value = e;
|
|
1490
1480
|
}).finally(() => {
|
|
1491
1481
|
X.set(e, !1);
|
|
1492
1482
|
}))), t;
|
|
1493
1483
|
}
|
|
1494
|
-
function
|
|
1484
|
+
function dr(e, t) {
|
|
1495
1485
|
let n = Z(e);
|
|
1496
|
-
return t === void 0 ?
|
|
1486
|
+
return t === void 0 ? cr(n) : cr(n, t);
|
|
1497
1487
|
}
|
|
1498
|
-
function
|
|
1499
|
-
Y.has(e) && (X.has(e) && X.get(e) !== !1 || (X.set(e, !0),
|
|
1488
|
+
function fr(e) {
|
|
1489
|
+
Y.has(e) && (X.has(e) && X.get(e) !== !1 || (X.set(e, !0), lr[e]().then((t) => {
|
|
1500
1490
|
Y.get(e).value = t;
|
|
1501
1491
|
}).finally(() => {
|
|
1502
1492
|
X.set(e, !1);
|
|
1503
1493
|
})));
|
|
1504
1494
|
}
|
|
1505
1495
|
// ../../packages/dlzn-ui/components/cascader/src/cascader.vue
|
|
1506
|
-
var
|
|
1496
|
+
var pr = /* @__PURE__ */ k({
|
|
1507
1497
|
inheritAttrs: !1,
|
|
1508
1498
|
name: "TCascader",
|
|
1509
1499
|
__name: "cascader",
|
|
@@ -1560,7 +1550,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
1560
1550
|
onFocus: { type: Function },
|
|
1561
1551
|
onPopupVisibleChange: { type: Function },
|
|
1562
1552
|
onRemove: { type: Function }
|
|
1563
|
-
},
|
|
1553
|
+
}, Gt),
|
|
1564
1554
|
setup(e) {
|
|
1565
1555
|
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(() => {
|
|
1566
1556
|
let e = t.disabled ?? n.value, i = t.readonly ?? r.value, a = {
|
|
@@ -1574,13 +1564,13 @@ var fr = /* @__PURE__ */ k({
|
|
|
1574
1564
|
function s(e) {
|
|
1575
1565
|
o.exposed = e ?? {};
|
|
1576
1566
|
}
|
|
1577
|
-
return (e, t) => (
|
|
1567
|
+
return (e, t) => (I(), w(z(j(V(He), P(e.$attrs, {
|
|
1578
1568
|
...a.value,
|
|
1579
1569
|
options: i.value,
|
|
1580
1570
|
ref: s
|
|
1581
1571
|
}), e.$slots))));
|
|
1582
1572
|
}
|
|
1583
|
-
}),
|
|
1573
|
+
}), mr = /* @__PURE__ */ k({
|
|
1584
1574
|
inheritAttrs: !1,
|
|
1585
1575
|
name: "TCheckboxGroup",
|
|
1586
1576
|
__name: "checkbox-group",
|
|
@@ -1613,12 +1603,12 @@ var fr = /* @__PURE__ */ k({
|
|
|
1613
1603
|
}
|
|
1614
1604
|
let o = C(() => {
|
|
1615
1605
|
let e;
|
|
1616
|
-
return n.dicCode ? (n.options &&
|
|
1606
|
+
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({
|
|
1617
1607
|
checkAll: !0,
|
|
1618
1608
|
label: "全选"
|
|
1619
1609
|
})), e;
|
|
1620
1610
|
}), s = C(() => {
|
|
1621
|
-
if (!Array.isArray(n.modelValue))
|
|
1611
|
+
if (!Array.isArray(n.modelValue)) m.error("TCheckboxGroup: modelValue must be an array");
|
|
1622
1612
|
else if (o.value !== void 0) {
|
|
1623
1613
|
let e = o.value.every((e) => typeof (e.value ?? e) == "string"), t = o.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1624
1614
|
if (e) return n.modelValue.map((e) => c(e) ? e : String(e));
|
|
@@ -1631,7 +1621,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
1631
1621
|
e[t] === void 0 && delete e[t];
|
|
1632
1622
|
}), e;
|
|
1633
1623
|
});
|
|
1634
|
-
return (e, t) => (
|
|
1624
|
+
return (e, t) => (I(), w(z(j(V(Ue), P(e.$attrs, {
|
|
1635
1625
|
...l.value,
|
|
1636
1626
|
options: o.value,
|
|
1637
1627
|
modelValue: s.value,
|
|
@@ -1641,7 +1631,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
1641
1631
|
ref: a
|
|
1642
1632
|
}), e.$slots))));
|
|
1643
1633
|
}
|
|
1644
|
-
}),
|
|
1634
|
+
}), hr = /* @__PURE__ */ k({
|
|
1645
1635
|
inheritAttrs: !1,
|
|
1646
1636
|
__name: "cron",
|
|
1647
1637
|
props: /*@__PURE__*/ N({
|
|
@@ -1689,7 +1679,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
1689
1679
|
onPaste: { type: Function },
|
|
1690
1680
|
onValidate: { type: Function },
|
|
1691
1681
|
onWheel: { type: Function }
|
|
1692
|
-
},
|
|
1682
|
+
}, le),
|
|
1693
1683
|
emits: ["update:modelValue"],
|
|
1694
1684
|
setup(e, { emit: t }) {
|
|
1695
1685
|
let n = e, r = t, i = M("isFormDisabled", C(() => !1)), a = M("isFormReadonly", C(() => !1)), o = C(() => {
|
|
@@ -1699,9 +1689,9 @@ var fr = /* @__PURE__ */ k({
|
|
|
1699
1689
|
adornment: { append: () => j($, {
|
|
1700
1690
|
default: "cron",
|
|
1701
1691
|
onClick: () => {
|
|
1702
|
-
let i =
|
|
1703
|
-
|
|
1704
|
-
body: () => j(
|
|
1692
|
+
let i = L(null);
|
|
1693
|
+
G({
|
|
1694
|
+
body: () => j(Se(() => import("../components/cron/src/Picker.mjs")), {
|
|
1705
1695
|
disabled: e,
|
|
1706
1696
|
modelValue: n.modelValue,
|
|
1707
1697
|
onVnodeMounted: (e) => {
|
|
@@ -1723,7 +1713,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
1723
1713
|
variant: "text"
|
|
1724
1714
|
}) }
|
|
1725
1715
|
};
|
|
1726
|
-
}), s =
|
|
1716
|
+
}), s = Pe(), c = A();
|
|
1727
1717
|
function l(e) {
|
|
1728
1718
|
c.exposed = e ?? {};
|
|
1729
1719
|
}
|
|
@@ -1734,9 +1724,9 @@ var fr = /* @__PURE__ */ k({
|
|
|
1734
1724
|
},
|
|
1735
1725
|
ref: l
|
|
1736
1726
|
}));
|
|
1737
|
-
return (e, t) => (
|
|
1727
|
+
return (e, t) => (I(), w(V(ue), F(Ce(u.value)), null, 16));
|
|
1738
1728
|
}
|
|
1739
|
-
}),
|
|
1729
|
+
}), gr = /* @__PURE__ */ k({
|
|
1740
1730
|
inheritAttrs: !1,
|
|
1741
1731
|
__name: "date-picker",
|
|
1742
1732
|
props: {
|
|
@@ -1827,8 +1817,8 @@ var fr = /* @__PURE__ */ k({
|
|
|
1827
1817
|
},
|
|
1828
1818
|
emits: ["update:modelValue"],
|
|
1829
1819
|
setup(e, { emit: t }) {
|
|
1830
|
-
let n = e, r = t, i = M("isFormDisabled", C(() => !1)), a = M("isFormReadonly", C(() => !1)), o =
|
|
1831
|
-
|
|
1820
|
+
let n = e, r = t, i = M("isFormDisabled", C(() => !1)), a = M("isFormReadonly", C(() => !1)), o = L(n.modelValue);
|
|
1821
|
+
H(() => n.modelValue, (e) => {
|
|
1832
1822
|
o.value = e;
|
|
1833
1823
|
}, { deep: !0 });
|
|
1834
1824
|
function s() {
|
|
@@ -2080,7 +2070,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2080
2070
|
function _(e) {
|
|
2081
2071
|
g.exposed = e ?? {};
|
|
2082
2072
|
}
|
|
2083
|
-
return (t, i) => (
|
|
2073
|
+
return (t, i) => (I(), w(z(j(V(ft), P(t.$attrs, {
|
|
2084
2074
|
...h.value,
|
|
2085
2075
|
modelValue: o.value,
|
|
2086
2076
|
"onUpdate:modelValue": (e) => {
|
|
@@ -2088,7 +2078,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2088
2078
|
},
|
|
2089
2079
|
onChange: (t) => {
|
|
2090
2080
|
let i = t;
|
|
2091
|
-
|
|
2081
|
+
V(c)(t) && (i = [
|
|
2092
2082
|
"daterange",
|
|
2093
2083
|
"dates",
|
|
2094
2084
|
"datetimerange",
|
|
@@ -2101,7 +2091,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2101
2091
|
ref: _
|
|
2102
2092
|
}, { class: `t-is-${e.status}` }), t.$slots))));
|
|
2103
2093
|
}
|
|
2104
|
-
}),
|
|
2094
|
+
}), _r = {
|
|
2105
2095
|
autoWidth: void 0,
|
|
2106
2096
|
decimalPlaces: 2,
|
|
2107
2097
|
disabled: void 0,
|
|
@@ -2109,7 +2099,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2109
2099
|
readonly: void 0,
|
|
2110
2100
|
theme: "normal",
|
|
2111
2101
|
useGrouping: !0
|
|
2112
|
-
},
|
|
2102
|
+
}, vr = /*#__PURE__*/ x(/* @__PURE__ */ k({
|
|
2113
2103
|
inheritAttrs: !1,
|
|
2114
2104
|
name: "TInputNumber",
|
|
2115
2105
|
__name: "input-number",
|
|
@@ -2144,7 +2134,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2144
2134
|
onKeypress: { type: Function },
|
|
2145
2135
|
onKeyup: { type: Function },
|
|
2146
2136
|
onValidate: { type: Function }
|
|
2147
|
-
},
|
|
2137
|
+
}, _r),
|
|
2148
2138
|
emits: ["update:modelValue"],
|
|
2149
2139
|
setup(e, { emit: t }) {
|
|
2150
2140
|
let n = e, r = t, i = C(() => {
|
|
@@ -2156,16 +2146,16 @@ var fr = /* @__PURE__ */ k({
|
|
|
2156
2146
|
function o(e) {
|
|
2157
2147
|
a.exposed = e ?? {};
|
|
2158
2148
|
}
|
|
2159
|
-
return (e, t) => (
|
|
2149
|
+
return (e, t) => (I(), w(z(j(V(tt), P(e.$attrs, {
|
|
2160
2150
|
...i.value,
|
|
2161
2151
|
onChange: (...e) => {
|
|
2162
|
-
let [t, ...i] = e, a =
|
|
2152
|
+
let [t, ...i] = e, a = V(c)(t) ? "" : t;
|
|
2163
2153
|
r("update:modelValue", a), n.onChange?.(a, ...i);
|
|
2164
2154
|
},
|
|
2165
2155
|
ref: o
|
|
2166
2156
|
}), e.$slots))));
|
|
2167
2157
|
}
|
|
2168
|
-
}), [["__scopeId", "data-v-73c206ea"]]),
|
|
2158
|
+
}), [["__scopeId", "data-v-73c206ea"]]), yr = /* @__PURE__ */ k({
|
|
2169
2159
|
inheritAttrs: !1,
|
|
2170
2160
|
name: "TRadioGroup",
|
|
2171
2161
|
__name: "radio-group",
|
|
@@ -2199,7 +2189,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2199
2189
|
function a(e) {
|
|
2200
2190
|
i.exposed = e ?? {};
|
|
2201
2191
|
}
|
|
2202
|
-
let o = C(() => n.dicCode ? (n.options &&
|
|
2192
|
+
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(() => {
|
|
2203
2193
|
let e = { ...n };
|
|
2204
2194
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
2205
2195
|
e[t] === void 0 && delete e[t];
|
|
@@ -2207,27 +2197,27 @@ var fr = /* @__PURE__ */ k({
|
|
|
2207
2197
|
}), l = C(() => {
|
|
2208
2198
|
if (o.value !== void 0 && !c(n.modelValue)) {
|
|
2209
2199
|
let e = o.value.every((e) => typeof (e.value ?? e) == "string"), t = o.value.every((e) => typeof (e.value ?? e) == "number");
|
|
2210
|
-
if (e) return
|
|
2200
|
+
if (e) return p(n.modelValue);
|
|
2211
2201
|
if (t) return u(n.modelValue) ? Number(n.modelValue) : n.modelValue;
|
|
2212
2202
|
}
|
|
2213
2203
|
return n.modelValue;
|
|
2214
2204
|
});
|
|
2215
|
-
return (e, t) => (
|
|
2205
|
+
return (e, t) => (I(), w(z(j(V(at), P(e.$attrs, {
|
|
2216
2206
|
...s.value,
|
|
2217
2207
|
options: o.value,
|
|
2218
2208
|
modelValue: l.value,
|
|
2219
2209
|
onChange: (...e) => {
|
|
2220
|
-
let [t, ...i] = e, a =
|
|
2210
|
+
let [t, ...i] = e, a = V(c)(t) ? "" : t;
|
|
2221
2211
|
r("update:modelValue", a), n.onChange?.(a, ...i);
|
|
2222
2212
|
},
|
|
2223
2213
|
ref: a
|
|
2224
2214
|
}), e.$slots))));
|
|
2225
2215
|
}
|
|
2226
|
-
}),
|
|
2216
|
+
}), br = /* @__PURE__ */ k({
|
|
2227
2217
|
inheritAttrs: !1,
|
|
2228
2218
|
name: "TRangeInput",
|
|
2229
2219
|
__name: "range-input",
|
|
2230
|
-
props: /*@__PURE__*/
|
|
2220
|
+
props: /*@__PURE__*/ Te({
|
|
2231
2221
|
decimalPlaces: { default: 2 },
|
|
2232
2222
|
isNumberRange: {
|
|
2233
2223
|
type: Boolean,
|
|
@@ -2286,7 +2276,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2286
2276
|
return n ? Math.min(Math.max(i, t.min), t.max) : i;
|
|
2287
2277
|
});
|
|
2288
2278
|
}
|
|
2289
|
-
let r =
|
|
2279
|
+
let r = Fe(e, "modelValue", {
|
|
2290
2280
|
get: (e) => t.isNumberRange ? n(e, !1) : e,
|
|
2291
2281
|
set: (e) => {
|
|
2292
2282
|
if (t.isNumberRange) {
|
|
@@ -2304,7 +2294,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2304
2294
|
function o(e) {
|
|
2305
2295
|
a.exposed = e ?? {};
|
|
2306
2296
|
}
|
|
2307
|
-
return (t, a) => (
|
|
2297
|
+
return (t, a) => (I(), w(z(j(V(ot), P(t.$attrs, {
|
|
2308
2298
|
...i.value,
|
|
2309
2299
|
ref: o,
|
|
2310
2300
|
modelValue: r.value,
|
|
@@ -2314,7 +2304,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2314
2304
|
onBlur: (...t) => {
|
|
2315
2305
|
if (e.isNumberRange) {
|
|
2316
2306
|
let i = t[0];
|
|
2317
|
-
if (i.every((e) => !
|
|
2307
|
+
if (i.every((e) => !V(c)(e)) && Number(i[0]) > Number(i[1])) {
|
|
2318
2308
|
r.value = n([i[0], i[0]]), e.onBlur?.(...t);
|
|
2319
2309
|
return;
|
|
2320
2310
|
}
|
|
@@ -2324,7 +2314,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2324
2314
|
}
|
|
2325
2315
|
}), t.$slots))));
|
|
2326
2316
|
}
|
|
2327
|
-
}),
|
|
2317
|
+
}), xr = {
|
|
2328
2318
|
clearable: !0,
|
|
2329
2319
|
disabled: void 0,
|
|
2330
2320
|
filterable: void 0,
|
|
@@ -2344,7 +2334,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2344
2334
|
}),
|
|
2345
2335
|
showArrow: !0,
|
|
2346
2336
|
showCheckAll: !1
|
|
2347
|
-
},
|
|
2337
|
+
}, Sr = /* @__PURE__ */ k({
|
|
2348
2338
|
inheritAttrs: !1,
|
|
2349
2339
|
name: "TSelect",
|
|
2350
2340
|
__name: "select",
|
|
@@ -2408,7 +2398,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2408
2398
|
onPopupVisibleChange: { type: Function },
|
|
2409
2399
|
onRemove: { type: Function },
|
|
2410
2400
|
onSearch: { type: Function }
|
|
2411
|
-
},
|
|
2401
|
+
}, xr),
|
|
2412
2402
|
setup(e) {
|
|
2413
2403
|
let t = e, n = M("isFormDisabled", C(() => !1)), r = M("isFormReadonly", C(() => !1)), i = A();
|
|
2414
2404
|
function a(e) {
|
|
@@ -2416,10 +2406,10 @@ var fr = /* @__PURE__ */ k({
|
|
|
2416
2406
|
}
|
|
2417
2407
|
let o = C(() => {
|
|
2418
2408
|
let e;
|
|
2419
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ? Z(t.options).value : t.options : (t.options &&
|
|
2409
|
+
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({
|
|
2420
2410
|
checkAll: !0,
|
|
2421
2411
|
[t.keys?.label ?? "label"]: "全选"
|
|
2422
|
-
}) :
|
|
2412
|
+
}) : m.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
2423
2413
|
}), s = C(() => {
|
|
2424
2414
|
if (o.value !== void 0) {
|
|
2425
2415
|
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");
|
|
@@ -2428,7 +2418,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2428
2418
|
if (r) return t.modelValue.map((e) => c(e) ? e : String(e));
|
|
2429
2419
|
if (i) return t.modelValue.map((e) => u(e) ? Number(e) : e);
|
|
2430
2420
|
}
|
|
2431
|
-
} else if (r) return
|
|
2421
|
+
} else if (r) return p(t.modelValue);
|
|
2432
2422
|
else if (i) return u(t.modelValue) ? Number(t.modelValue) : t.modelValue;
|
|
2433
2423
|
}
|
|
2434
2424
|
return t.modelValue;
|
|
@@ -2441,13 +2431,13 @@ var fr = /* @__PURE__ */ k({
|
|
|
2441
2431
|
return delete a.dicCode, delete a.showCheckAll, delete a.adornment, Object.keys(a).forEach((e) => {
|
|
2442
2432
|
a[e] === void 0 && delete a[e];
|
|
2443
2433
|
}), a;
|
|
2444
|
-
}), d =
|
|
2434
|
+
}), d = L(0);
|
|
2445
2435
|
Oe(() => {
|
|
2446
|
-
|
|
2436
|
+
vt(i.exposed.$el, () => {
|
|
2447
2437
|
d.value = i.exposed.$el.offsetWidth;
|
|
2448
2438
|
}, { box: "border-box" });
|
|
2449
2439
|
});
|
|
2450
|
-
let
|
|
2440
|
+
let f = C(() => {
|
|
2451
2441
|
if (l.value.scroll?.type === "virtual" && o.value.length > (l.value.scroll?.threshold ?? 150)) return "300px";
|
|
2452
2442
|
}), h = C(() => ({
|
|
2453
2443
|
...l.value,
|
|
@@ -2460,20 +2450,20 @@ var fr = /* @__PURE__ */ k({
|
|
|
2460
2450
|
popupProps: {
|
|
2461
2451
|
...l.value.popupProps ?? {},
|
|
2462
2452
|
overlayInnerStyle: (e, t) => ({
|
|
2463
|
-
...
|
|
2453
|
+
...f.value === void 0 ? {} : { height: f.value },
|
|
2464
2454
|
minWidth: `${d.value}px`,
|
|
2465
2455
|
width: "auto",
|
|
2466
2456
|
...typeof l.value.popupProps?.overlayInnerStyle == "function" ? l.value.popupProps.overlayInnerStyle(e, t) : l.value.popupProps?.overlayInnerStyle ?? {}
|
|
2467
2457
|
})
|
|
2468
2458
|
},
|
|
2469
2459
|
ref: a
|
|
2470
|
-
})), g =
|
|
2471
|
-
return (t, n) => e.adornment ? (
|
|
2460
|
+
})), g = et;
|
|
2461
|
+
return (t, n) => e.adornment ? (I(), w(z(j(V(g), t.$attrs, {
|
|
2472
2462
|
...e.adornment,
|
|
2473
|
-
default: () => j(
|
|
2474
|
-
})), { key: 0 })) : (
|
|
2463
|
+
default: () => j(V(st), h.value, t.$slots)
|
|
2464
|
+
})), { key: 0 })) : (I(), w(z(j(V(st), P(t.$attrs, h.value), t.$slots)), { key: 1 }));
|
|
2475
2465
|
}
|
|
2476
|
-
}),
|
|
2466
|
+
}), Cr = /* @__PURE__ */ k({
|
|
2477
2467
|
inheritAttrs: !1,
|
|
2478
2468
|
__name: "select-sys-user",
|
|
2479
2469
|
props: /*@__PURE__*/ N({
|
|
@@ -2515,7 +2505,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2515
2505
|
onMouseleave: { type: Function },
|
|
2516
2506
|
onPaste: { type: Function },
|
|
2517
2507
|
onRemove: { type: Function }
|
|
2518
|
-
},
|
|
2508
|
+
}, de),
|
|
2519
2509
|
emits: ["update:modelValue"],
|
|
2520
2510
|
setup(e, { emit: t }) {
|
|
2521
2511
|
let n = e, r = t, i = M("isFormDisabled", C(() => !1)), a = M("isFormReadonly", C(() => !1)), o = C(() => {
|
|
@@ -2525,9 +2515,9 @@ var fr = /* @__PURE__ */ k({
|
|
|
2525
2515
|
adornment: e || t ? void 0 : { append: () => j($, {
|
|
2526
2516
|
default: "选择用户",
|
|
2527
2517
|
onClick: () => {
|
|
2528
|
-
let e =
|
|
2529
|
-
|
|
2530
|
-
body: () => j(
|
|
2518
|
+
let e = L(null);
|
|
2519
|
+
G({
|
|
2520
|
+
body: () => j(Se(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
2531
2521
|
max: n.max,
|
|
2532
2522
|
modelValue: n.modelValue,
|
|
2533
2523
|
onVnodeMounted: (t) => {
|
|
@@ -2548,7 +2538,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2548
2538
|
variant: "text"
|
|
2549
2539
|
}) }
|
|
2550
2540
|
};
|
|
2551
|
-
}), s =
|
|
2541
|
+
}), s = Pe(), c = A();
|
|
2552
2542
|
function l(e) {
|
|
2553
2543
|
c.exposed = e ?? {};
|
|
2554
2544
|
}
|
|
@@ -2564,12 +2554,12 @@ var fr = /* @__PURE__ */ k({
|
|
|
2564
2554
|
placeholder: "请选择用户",
|
|
2565
2555
|
ref: l
|
|
2566
2556
|
}));
|
|
2567
|
-
return (e, t) => (
|
|
2568
|
-
tag:
|
|
2557
|
+
return (e, t) => (I(), w(V(fe), F(Ce(u.value)), {
|
|
2558
|
+
tag: U(({ value: e }) => [D(B(V(Rn)(e).value?.userName), 1)]),
|
|
2569
2559
|
_: 1
|
|
2570
2560
|
}, 16));
|
|
2571
2561
|
}
|
|
2572
|
-
}),
|
|
2562
|
+
}), wr = {
|
|
2573
2563
|
checkable: !1,
|
|
2574
2564
|
disabled: void 0,
|
|
2575
2565
|
expandOnClickNode: void 0,
|
|
@@ -2588,7 +2578,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2588
2578
|
line: !0,
|
|
2589
2579
|
transition: !0,
|
|
2590
2580
|
valueMode: "all"
|
|
2591
|
-
},
|
|
2581
|
+
}, Tr = /* @__PURE__ */ k({
|
|
2592
2582
|
inheritAttrs: !1,
|
|
2593
2583
|
name: "TTree",
|
|
2594
2584
|
__name: "tree",
|
|
@@ -2646,9 +2636,9 @@ var fr = /* @__PURE__ */ k({
|
|
|
2646
2636
|
onLoad: { type: Function },
|
|
2647
2637
|
onScroll: { type: Function },
|
|
2648
2638
|
treeStore: {}
|
|
2649
|
-
},
|
|
2639
|
+
}, wr),
|
|
2650
2640
|
setup(e, { expose: t }) {
|
|
2651
|
-
let n = e, r =
|
|
2641
|
+
let n = e, r = Ie(), i = C(() => {
|
|
2652
2642
|
let e = { ...n };
|
|
2653
2643
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
2654
2644
|
e[t] === void 0 && delete e[t];
|
|
@@ -2657,12 +2647,12 @@ var fr = /* @__PURE__ */ k({
|
|
|
2657
2647
|
function o(e) {
|
|
2658
2648
|
a.exposed = e ?? {};
|
|
2659
2649
|
}
|
|
2660
|
-
return t({}), (e, t) => (
|
|
2650
|
+
return t({}), (e, t) => (I(), w(z(j(V(ct), P(e.$attrs, {
|
|
2661
2651
|
...i.value,
|
|
2662
2652
|
ref: o
|
|
2663
2653
|
}), e.$slots))));
|
|
2664
2654
|
}
|
|
2665
|
-
}),
|
|
2655
|
+
}), Er = /* @__PURE__ */ k({
|
|
2666
2656
|
inheritAttrs: !1,
|
|
2667
2657
|
name: "TTreeSelect",
|
|
2668
2658
|
__name: "tree-select",
|
|
@@ -2735,10 +2725,10 @@ var fr = /* @__PURE__ */ k({
|
|
|
2735
2725
|
minCollapsedNum: e || i ? 0 : t.minCollapsedNum
|
|
2736
2726
|
};
|
|
2737
2727
|
return a.treeProps = {
|
|
2738
|
-
...
|
|
2728
|
+
...wr,
|
|
2739
2729
|
checkable: !!t.multiple,
|
|
2740
2730
|
expandOnClickNode: !!t.multiple,
|
|
2741
|
-
icon:
|
|
2731
|
+
icon: wr.icon(),
|
|
2742
2732
|
...a.treeProps ?? {}
|
|
2743
2733
|
}, Object.keys(a).forEach((e) => {
|
|
2744
2734
|
a[e] === void 0 && delete a[e];
|
|
@@ -2747,12 +2737,12 @@ var fr = /* @__PURE__ */ k({
|
|
|
2747
2737
|
function s(e) {
|
|
2748
2738
|
o.exposed = e ?? {};
|
|
2749
2739
|
}
|
|
2750
|
-
let c =
|
|
2740
|
+
let c = L(0);
|
|
2751
2741
|
return Oe(() => {
|
|
2752
|
-
|
|
2742
|
+
vt(o.exposed.$el, () => {
|
|
2753
2743
|
c.value = o.exposed.$el.offsetWidth;
|
|
2754
2744
|
}, { box: "border-box" });
|
|
2755
|
-
}), (e, t) => (
|
|
2745
|
+
}), (e, t) => (I(), w(z(j(V(lt), P(e.$attrs, {
|
|
2756
2746
|
...a.value,
|
|
2757
2747
|
data: i.value,
|
|
2758
2748
|
ref: s,
|
|
@@ -2766,10 +2756,10 @@ var fr = /* @__PURE__ */ k({
|
|
|
2766
2756
|
}
|
|
2767
2757
|
}), e.$slots))));
|
|
2768
2758
|
}
|
|
2769
|
-
}),
|
|
2759
|
+
}), Dr = ".xlsx,.xls", Or = { class: "flex items-center" }, kr = {
|
|
2770
2760
|
key: 1,
|
|
2771
2761
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
2772
|
-
},
|
|
2762
|
+
}, Ar = /*#__PURE__*/ x(/* @__PURE__ */ k({
|
|
2773
2763
|
inheritAttrs: !1,
|
|
2774
2764
|
name: "TUpload",
|
|
2775
2765
|
__name: "upload",
|
|
@@ -2778,7 +2768,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2778
2768
|
"onUpdate:modelValue": {},
|
|
2779
2769
|
requestMethod: {},
|
|
2780
2770
|
abridgeName: {},
|
|
2781
|
-
accept: { default:
|
|
2771
|
+
accept: { default: Dr },
|
|
2782
2772
|
allowUploadDuplicateFile: { type: Boolean },
|
|
2783
2773
|
autoUpload: { type: Boolean },
|
|
2784
2774
|
beforeAllFilesUpload: {},
|
|
@@ -2851,7 +2841,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
2851
2841
|
response: {},
|
|
2852
2842
|
status: "fail"
|
|
2853
2843
|
});
|
|
2854
|
-
}) :
|
|
2844
|
+
}) : J.Post(n.requestMethod.ossUrl ?? "common/uploadOss", {
|
|
2855
2845
|
biz: n.requestMethod.biz,
|
|
2856
2846
|
file: e.raw
|
|
2857
2847
|
}, { meta: { useFormData: !0 } }).then((e) => {
|
|
@@ -2868,8 +2858,8 @@ var fr = /* @__PURE__ */ k({
|
|
|
2868
2858
|
});
|
|
2869
2859
|
});
|
|
2870
2860
|
});
|
|
2871
|
-
function i() {
|
|
2872
|
-
typeof n.downloadTemplate == "string" ? J(n.downloadTemplate) : n.downloadTemplate.send();
|
|
2861
|
+
async function i() {
|
|
2862
|
+
typeof n.downloadTemplate == "string" ? await J.Get(n.downloadTemplate, { meta: { useDownload: !0 } }) : await n.downloadTemplate.send();
|
|
2873
2863
|
}
|
|
2874
2864
|
let a = C(() => {
|
|
2875
2865
|
let e = { ...n };
|
|
@@ -2880,35 +2870,35 @@ var fr = /* @__PURE__ */ k({
|
|
|
2880
2870
|
function s(e) {
|
|
2881
2871
|
o.exposed = e ?? {};
|
|
2882
2872
|
}
|
|
2883
|
-
return t({}), (t, o) => (
|
|
2873
|
+
return t({}), (t, o) => (I(), w(z(j(V(ut), P(t.$attrs, {
|
|
2884
2874
|
...a.value,
|
|
2885
2875
|
requestMethod: r.value,
|
|
2886
2876
|
ref: s
|
|
2887
|
-
}, { class: a.value.theme }))), null,
|
|
2877
|
+
}, { class: a.value.theme }))), null, xe({ _: 2 }, [R(Object.keys(t.$slots), (e) => ({
|
|
2888
2878
|
name: e,
|
|
2889
|
-
fn:
|
|
2879
|
+
fn: U((n) => [je(t.$slots, e, F(Ce(n)), void 0, !0)])
|
|
2890
2880
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
2891
2881
|
name: "trigger",
|
|
2892
|
-
fn:
|
|
2893
|
-
O(
|
|
2894
|
-
default:
|
|
2882
|
+
fn: U(({ files: t }) => [be("div", Or, [
|
|
2883
|
+
O(V($), { theme: "primary" }, {
|
|
2884
|
+
default: U(() => [D(B(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
2895
2885
|
_: 2
|
|
2896
2886
|
}, 1024),
|
|
2897
|
-
e.downloadTemplate ? (
|
|
2887
|
+
e.downloadTemplate ? (I(), w(V($), {
|
|
2898
2888
|
key: 0,
|
|
2899
2889
|
theme: "primary",
|
|
2900
2890
|
variant: "outline",
|
|
2901
|
-
onClick:
|
|
2891
|
+
onClick: Re(i, ["stop"])
|
|
2902
2892
|
}, {
|
|
2903
|
-
default:
|
|
2893
|
+
default: U(() => [...o[0] ||= [D("下载模板", -1)]]),
|
|
2904
2894
|
_: 1
|
|
2905
2895
|
})) : T("v-if", !0),
|
|
2906
|
-
n.tips ? (
|
|
2896
|
+
n.tips ? (I(), E("span", kr, B(n.tips), 1)) : T("v-if", !0)
|
|
2907
2897
|
])]),
|
|
2908
2898
|
key: "0"
|
|
2909
2899
|
} : void 0]), 1024));
|
|
2910
2900
|
}
|
|
2911
|
-
}), [["__scopeId", "data-v-
|
|
2901
|
+
}), [["__scopeId", "data-v-4b7b1585"]]), jr = /*#__PURE__*/ x(/* @__PURE__ */ k({
|
|
2912
2902
|
inheritAttrs: !1,
|
|
2913
2903
|
name: "TForm",
|
|
2914
2904
|
__name: "form",
|
|
@@ -2936,9 +2926,9 @@ var fr = /* @__PURE__ */ k({
|
|
|
2936
2926
|
onReset: { type: Function },
|
|
2937
2927
|
onSubmit: { type: Function },
|
|
2938
2928
|
onValidate: { type: Function }
|
|
2939
|
-
},
|
|
2929
|
+
}, Wt),
|
|
2940
2930
|
setup(e, { expose: t }) {
|
|
2941
|
-
let n = e, { customerFormItemComponentInitialValueMap: r = /* @__PURE__ */ new Map(), customerFormItemComponentMap: a = /* @__PURE__ */ new Map() } =
|
|
2931
|
+
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) => {
|
|
2942
2932
|
if (typeof e.__others == "function") {
|
|
2943
2933
|
let t = {
|
|
2944
2934
|
...e,
|
|
@@ -2979,35 +2969,35 @@ var fr = /* @__PURE__ */ k({
|
|
|
2979
2969
|
}
|
|
2980
2970
|
});
|
|
2981
2971
|
}
|
|
2982
|
-
|
|
2972
|
+
H(l, u, {
|
|
2983
2973
|
deep: 2,
|
|
2984
2974
|
immediate: !0
|
|
2985
|
-
}),
|
|
2986
|
-
|
|
2975
|
+
}), H(() => n.data, () => {
|
|
2976
|
+
m.error("TForm: data is changed");
|
|
2987
2977
|
});
|
|
2988
2978
|
let d = /* @__PURE__ */ new Map(), f = {
|
|
2989
|
-
TCascader:
|
|
2990
|
-
TCheckbox:
|
|
2991
|
-
TCheckboxGroup:
|
|
2992
|
-
TColorPicker:
|
|
2993
|
-
TCron:
|
|
2994
|
-
TDatePicker:
|
|
2995
|
-
TInput:
|
|
2996
|
-
TInputNumber:
|
|
2997
|
-
TRadioGroup:
|
|
2998
|
-
TRangeInput:
|
|
2999
|
-
TSelect:
|
|
3000
|
-
TSelectSysUser:
|
|
3001
|
-
TSlider:
|
|
3002
|
-
TSwitch:
|
|
3003
|
-
TTagInput:
|
|
3004
|
-
TTextarea:
|
|
3005
|
-
TTree:
|
|
3006
|
-
TTreeSelect:
|
|
3007
|
-
TUpload:
|
|
2979
|
+
TCascader: pr,
|
|
2980
|
+
TCheckbox: se,
|
|
2981
|
+
TCheckboxGroup: mr,
|
|
2982
|
+
TColorPicker: ce,
|
|
2983
|
+
TCron: hr,
|
|
2984
|
+
TDatePicker: gr,
|
|
2985
|
+
TInput: ue,
|
|
2986
|
+
TInputNumber: vr,
|
|
2987
|
+
TRadioGroup: yr,
|
|
2988
|
+
TRangeInput: br,
|
|
2989
|
+
TSelect: Sr,
|
|
2990
|
+
TSelectSysUser: Cr,
|
|
2991
|
+
TSlider: pe,
|
|
2992
|
+
TSwitch: me,
|
|
2993
|
+
TTagInput: fe,
|
|
2994
|
+
TTextarea: he,
|
|
2995
|
+
TTree: Tr,
|
|
2996
|
+
TTreeSelect: Er,
|
|
2997
|
+
TUpload: Ar
|
|
3008
2998
|
};
|
|
3009
|
-
function
|
|
3010
|
-
return typeof e == "string" ? a.has(e) ? (d.has(e) || d.set(e,
|
|
2999
|
+
function p(e) {
|
|
3000
|
+
return typeof e == "string" ? a.has(e) ? (d.has(e) || d.set(e, Se(a.get(e))), d.get(e)) : f[e] : ue;
|
|
3011
3001
|
}
|
|
3012
3002
|
function h(e) {
|
|
3013
3003
|
let t = {};
|
|
@@ -3061,7 +3051,7 @@ var fr = /* @__PURE__ */ k({
|
|
|
3061
3051
|
t.show === !1 && delete e[t.model];
|
|
3062
3052
|
}), e;
|
|
3063
3053
|
};
|
|
3064
|
-
function
|
|
3054
|
+
function y(e) {
|
|
3065
3055
|
if (e !== null) {
|
|
3066
3056
|
let t = e;
|
|
3067
3057
|
if (!t.validate._alreadyReplace) {
|
|
@@ -3100,21 +3090,21 @@ var fr = /* @__PURE__ */ k({
|
|
|
3100
3090
|
let t = e ?? {};
|
|
3101
3091
|
s.value = t, o.exposed = t;
|
|
3102
3092
|
}
|
|
3103
|
-
let
|
|
3093
|
+
let ee = Ne();
|
|
3104
3094
|
Oe(() => {
|
|
3105
|
-
|
|
3095
|
+
ee.value = o.exposed.$el.getElementsByClassName("t-form__label"), b(), _t(o.exposed.$el, () => {
|
|
3106
3096
|
b();
|
|
3107
3097
|
}, {
|
|
3108
3098
|
attributeFilter: ["class"],
|
|
3109
3099
|
characterData: !0,
|
|
3110
3100
|
childList: !0,
|
|
3111
3101
|
subtree: !0
|
|
3112
|
-
}),
|
|
3102
|
+
}), vt(o.exposed.$el, () => {
|
|
3113
3103
|
b();
|
|
3114
3104
|
});
|
|
3115
3105
|
});
|
|
3116
3106
|
function b() {
|
|
3117
|
-
let e = [...
|
|
3107
|
+
let e = [...ee.value];
|
|
3118
3108
|
if (e.forEach((e) => {
|
|
3119
3109
|
e.style.minWidth = "auto";
|
|
3120
3110
|
}), n.labelAlign === "top" || !n.autoLabelWidth) return;
|
|
@@ -3125,12 +3115,12 @@ var fr = /* @__PURE__ */ k({
|
|
|
3125
3115
|
e.style.minWidth = `${t}px`;
|
|
3126
3116
|
});
|
|
3127
3117
|
}
|
|
3128
|
-
return ke("formData", n.data), ke("formExposed", s), ke("isFormDisabled", C(() => n.disabled)), ke("isFormReadonly", C(() => n.readonly)), t({}), (t, n) => (
|
|
3118
|
+
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, {
|
|
3129
3119
|
..._.value,
|
|
3130
|
-
ref:
|
|
3120
|
+
ref: y
|
|
3131
3121
|
}), { "label-width": "fit-content" }), {
|
|
3132
|
-
default:
|
|
3133
|
-
default:
|
|
3122
|
+
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 }), {
|
|
3123
|
+
default: U(() => [n.slot ? je(t.$slots, n.slot, {}, void 0, !0, 0) : (I(), w(z(p(n.component)), P({
|
|
3134
3124
|
key: 1,
|
|
3135
3125
|
modelValue: e.data[n.model],
|
|
3136
3126
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
@@ -3140,14 +3130,14 @@ var fr = /* @__PURE__ */ k({
|
|
|
3140
3130
|
_: 3
|
|
3141
3131
|
}, 16))], 2112));
|
|
3142
3132
|
}
|
|
3143
|
-
}), [["__scopeId", "data-v-73a5d59c"]]),
|
|
3133
|
+
}), [["__scopeId", "data-v-73a5d59c"]]), Mr = /* @__PURE__ */ k({
|
|
3144
3134
|
__name: "ResetPwd",
|
|
3145
3135
|
props: { showFooter: {
|
|
3146
3136
|
type: Boolean,
|
|
3147
3137
|
default: !0
|
|
3148
3138
|
} },
|
|
3149
3139
|
setup(e, { expose: t }) {
|
|
3150
|
-
let n =
|
|
3140
|
+
let n = W(), r = [
|
|
3151
3141
|
{
|
|
3152
3142
|
_label: "旧密码",
|
|
3153
3143
|
_required: !0,
|
|
@@ -3159,8 +3149,8 @@ var fr = /* @__PURE__ */ k({
|
|
|
3159
3149
|
_label: "新密码",
|
|
3160
3150
|
_required: !0,
|
|
3161
3151
|
_rules: [{
|
|
3162
|
-
message:
|
|
3163
|
-
pattern:
|
|
3152
|
+
message: _e,
|
|
3153
|
+
pattern: ge
|
|
3164
3154
|
}],
|
|
3165
3155
|
component: "TInput",
|
|
3166
3156
|
model: "newPassword",
|
|
@@ -3178,13 +3168,13 @@ var fr = /* @__PURE__ */ k({
|
|
|
3178
3168
|
type: "password"
|
|
3179
3169
|
},
|
|
3180
3170
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
3181
|
-
], i =
|
|
3171
|
+
], i = Le("form");
|
|
3182
3172
|
function a() {
|
|
3183
|
-
|
|
3173
|
+
K().close(n.name);
|
|
3184
3174
|
}
|
|
3185
3175
|
async function o() {
|
|
3186
3176
|
let e = await i.value.validate();
|
|
3187
|
-
await
|
|
3177
|
+
await J.Put("system/user/profile/updatePwd", void 0, {
|
|
3188
3178
|
meta: {
|
|
3189
3179
|
useLoading: "保存中...",
|
|
3190
3180
|
useSuccessMsg: !0
|
|
@@ -3195,21 +3185,21 @@ var fr = /* @__PURE__ */ k({
|
|
|
3195
3185
|
}
|
|
3196
3186
|
}), Vn().logout();
|
|
3197
3187
|
}
|
|
3198
|
-
return t({ handleSubmit: o }), (e, t) => (
|
|
3188
|
+
return t({ handleSubmit: o }), (e, t) => (I(), w(V(jr), {
|
|
3199
3189
|
ref: "form",
|
|
3200
3190
|
items: r,
|
|
3201
3191
|
"label-align": "right",
|
|
3202
3192
|
layout: "vertical"
|
|
3203
3193
|
}, {
|
|
3204
|
-
footer:
|
|
3205
|
-
default:
|
|
3194
|
+
footer: U(() => [O(V($), { onClick: o }, {
|
|
3195
|
+
default: U(() => [...t[0] ||= [D("保存", -1)]]),
|
|
3206
3196
|
_: 1
|
|
3207
|
-
}), O(
|
|
3197
|
+
}), O(V($), {
|
|
3208
3198
|
class: "ml-4!",
|
|
3209
3199
|
theme: "default",
|
|
3210
3200
|
onClick: a
|
|
3211
3201
|
}, {
|
|
3212
|
-
default:
|
|
3202
|
+
default: U(() => [...t[1] ||= [D("关闭", -1)]]),
|
|
3213
3203
|
_: 1
|
|
3214
3204
|
})]),
|
|
3215
3205
|
_: 1
|
|
@@ -3217,35 +3207,35 @@ var fr = /* @__PURE__ */ k({
|
|
|
3217
3207
|
}
|
|
3218
3208
|
});
|
|
3219
3209
|
// ../../packages/dlzn-ui/store/modules/user.ts
|
|
3220
|
-
function
|
|
3221
|
-
return
|
|
3210
|
+
function Nr() {
|
|
3211
|
+
return J.Get("getInfo", { meta: {
|
|
3222
3212
|
useFailMsg: "获取用户信息失败",
|
|
3223
3213
|
useLoading: "正在获取用户信息..."
|
|
3224
3214
|
} });
|
|
3225
3215
|
}
|
|
3226
|
-
var
|
|
3216
|
+
var Pr = {
|
|
3227
3217
|
admin: !1,
|
|
3228
3218
|
dept: { deptName: "" },
|
|
3229
3219
|
needChangePwd: 0,
|
|
3230
3220
|
nickName: "",
|
|
3231
3221
|
userId: "",
|
|
3232
3222
|
userName: "",
|
|
3233
|
-
...
|
|
3234
|
-
}, Q =
|
|
3235
|
-
let e =
|
|
3223
|
+
...St.defaultUserInfo ?? {}
|
|
3224
|
+
}, Q = xt("user", () => {
|
|
3225
|
+
let e = L(yt(Pr)), t = L([]), n = L([]);
|
|
3236
3226
|
function r() {
|
|
3237
|
-
e.value =
|
|
3227
|
+
e.value = yt(Pr), t.value = [], n.value = [];
|
|
3238
3228
|
}
|
|
3239
|
-
let i = C(() => e.value.admin), a =
|
|
3229
|
+
let i = C(() => e.value.admin), a = L("");
|
|
3240
3230
|
async function o(r = !0) {
|
|
3241
|
-
let i = await
|
|
3242
|
-
e.value = i.user, a.value !== e.value.userId &&
|
|
3231
|
+
let i = await Nr();
|
|
3232
|
+
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();
|
|
3243
3233
|
}
|
|
3244
|
-
|
|
3245
|
-
e === 1 && VITE_FORCE_PWD_CHANGE &&
|
|
3246
|
-
let e =
|
|
3247
|
-
|
|
3248
|
-
body: () => j(
|
|
3234
|
+
H(() => e.value.needChangePwd, (e) => {
|
|
3235
|
+
e === 1 && VITE_FORCE_PWD_CHANGE && Ee(() => {
|
|
3236
|
+
let e = L(null);
|
|
3237
|
+
G({
|
|
3238
|
+
body: () => j(Mr, {
|
|
3249
3239
|
labelAlign: "top",
|
|
3250
3240
|
ref: e,
|
|
3251
3241
|
showFooter: !1
|
|
@@ -3317,9 +3307,9 @@ var Nr = {
|
|
|
3317
3307
|
Object,
|
|
3318
3308
|
Array
|
|
3319
3309
|
] }
|
|
3320
|
-
},
|
|
3310
|
+
}, Ut),
|
|
3321
3311
|
setup(e) {
|
|
3322
|
-
let i = e, a =
|
|
3312
|
+
let i = e, a = L("");
|
|
3323
3313
|
function o() {
|
|
3324
3314
|
if (!i.autoTheme || a.value.trim() === "") return {};
|
|
3325
3315
|
let e = /* @__PURE__ */ new Map([
|
|
@@ -3341,14 +3331,14 @@ var Nr = {
|
|
|
3341
3331
|
}
|
|
3342
3332
|
return t;
|
|
3343
3333
|
}
|
|
3344
|
-
let s =
|
|
3345
|
-
|
|
3334
|
+
let s = L(!1), c = r.isLoading, l = L(null), { focused: u } = gt(l), d, f;
|
|
3335
|
+
H(c, (e) => {
|
|
3346
3336
|
e ? (clearTimeout(f), f = void 0, d = window.setTimeout(() => {
|
|
3347
3337
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
3348
3338
|
}, 150)) : d === void 0 ? f = window.setTimeout(() => {
|
|
3349
3339
|
s.value = !1;
|
|
3350
3340
|
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
3351
|
-
}, { immediate: !0 }),
|
|
3341
|
+
}, { immediate: !0 }), H(u, (e) => {
|
|
3352
3342
|
e && c.value && (s.value = !0);
|
|
3353
3343
|
});
|
|
3354
3344
|
let p = C(() => i.loading === void 0 ? i.autoLoading ? s.value : !1 : i.loading), m = C(() => {
|
|
@@ -3446,7 +3436,7 @@ var Nr = {
|
|
|
3446
3436
|
break;
|
|
3447
3437
|
}
|
|
3448
3438
|
return t;
|
|
3449
|
-
}),
|
|
3439
|
+
}), y = Pe(), ee = C(() => P(y, {
|
|
3450
3440
|
...m.value,
|
|
3451
3441
|
ref: g
|
|
3452
3442
|
}, { class: "flex-shrink-0" })), b = C(() => {
|
|
@@ -3457,33 +3447,33 @@ var Nr = {
|
|
|
3457
3447
|
}
|
|
3458
3448
|
};
|
|
3459
3449
|
});
|
|
3460
|
-
return (r, i) =>
|
|
3461
|
-
default:
|
|
3450
|
+
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)), {
|
|
3451
|
+
default: U(() => [(I(), w(z(j(V(Ve), ee.value)), {
|
|
3462
3452
|
onVnodeMounted: _,
|
|
3463
3453
|
onVnodeUpdated: _
|
|
3464
|
-
},
|
|
3454
|
+
}, xe({ _: 2 }, [e.icon || v.value ? {
|
|
3465
3455
|
name: "icon",
|
|
3466
|
-
fn:
|
|
3456
|
+
fn: U(() => [O(V(t), { icon: e.icon || v.value }, null, 8, ["icon"])]),
|
|
3467
3457
|
key: "0"
|
|
3468
|
-
} : void 0,
|
|
3458
|
+
} : void 0, R(Object.keys(r.$slots), (e) => ({
|
|
3469
3459
|
name: e,
|
|
3470
|
-
fn:
|
|
3460
|
+
fn: U((t) => [je(r.$slots, e, F(Ce(t)), void 0, !0)])
|
|
3471
3461
|
}))]), 1536))]),
|
|
3472
3462
|
_: 3
|
|
3473
|
-
}, 16)) : (
|
|
3463
|
+
}, 16)) : (I(), w(z(j(V(Ve), ee.value)), {
|
|
3474
3464
|
key: 1,
|
|
3475
3465
|
onVnodeMounted: _,
|
|
3476
3466
|
onVnodeUpdated: _
|
|
3477
|
-
},
|
|
3467
|
+
}, xe({ _: 2 }, [e.icon || v.value ? {
|
|
3478
3468
|
name: "icon",
|
|
3479
|
-
fn:
|
|
3469
|
+
fn: U(() => [O(V(t), { icon: e.icon || v.value }, null, 8, ["icon"])]),
|
|
3480
3470
|
key: "0"
|
|
3481
|
-
} : void 0,
|
|
3471
|
+
} : void 0, R(Object.keys(r.$slots), (e) => ({
|
|
3482
3472
|
name: e,
|
|
3483
|
-
fn:
|
|
3473
|
+
fn: U((t) => [je(r.$slots, e, F(Ce(t)), void 0, !0)])
|
|
3484
3474
|
}))]), 1536))], 64)) : T("v-if", !0);
|
|
3485
3475
|
}
|
|
3486
|
-
}), [["__scopeId", "data-v-60078ae4"]]),
|
|
3476
|
+
}), [["__scopeId", "data-v-60078ae4"]]), Fr = /* @__PURE__ */ k({
|
|
3487
3477
|
name: "TProvider",
|
|
3488
3478
|
__name: "Provider",
|
|
3489
3479
|
setup(e) {
|
|
@@ -3505,18 +3495,18 @@ var Nr = {
|
|
|
3505
3495
|
variant: "text"
|
|
3506
3496
|
})
|
|
3507
3497
|
} };
|
|
3508
|
-
return (e, n) => (
|
|
3498
|
+
return (e, n) => (I(), w(V(dt), {
|
|
3509
3499
|
"empty-values": [""],
|
|
3510
|
-
locale:
|
|
3500
|
+
locale: V(Ht),
|
|
3511
3501
|
"value-on-clear": "",
|
|
3512
3502
|
"z-index": 5500
|
|
3513
3503
|
}, {
|
|
3514
|
-
default:
|
|
3515
|
-
default:
|
|
3504
|
+
default: U(() => [O(V(We), { "global-config": t }, {
|
|
3505
|
+
default: U(() => [je(e.$slots, "default")]),
|
|
3516
3506
|
_: 3
|
|
3517
3507
|
})]),
|
|
3518
3508
|
_: 3
|
|
3519
3509
|
}, 8, ["locale"]));
|
|
3520
3510
|
}
|
|
3521
3511
|
});
|
|
3522
|
-
export {
|
|
3512
|
+
export { xn as $, rr as A, Jn as B, ur as C, cr as D, fr as E, J as F, Vn as G, qn as H, Qn as I, Rn as J, In as K, $n as L, ar as M, or as N, tr as O, sr as P, An as Q, er as R, pr as S, dr as T, Wn as U, q as V, Un as W, On as X, Dn as Y, kn as Z, vr as _, Rt as _t, Mr as a, G as at, hr as b, Dr as c, tn as ct, wr as d, $t as dt, bn as et, Cr as f, Jt as ft, yr as g, Ut as gt, br as h, Wt as ht, Q as i, ln as it, ir as j, nr as k, Er as l, en as lt, xr as m, Gt as mt, $ as n, vn as nt, jr as o, sn as ot, Sr as p, Yt as pt, Ln as q, Nr as r, K as rt, Ar as s, nn as st, Fr as t, un as tt, Tr as u, Qt as ut, _r as v, Vt as vt, Z as w, mr as x, gr as y, Yn as z };
|