dlzn-ui 2.0.112 → 2.0.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunks/{AssignUser-D8anFmW5.mjs → AssignUser-BHO8g_0q.mjs} +3 -3
- package/chunks/{BasicInfo-BSGuLLR8.mjs → BasicInfo-7Ly3RRWN.mjs} +1 -1
- package/chunks/{ColumnInfo-D9laQFq-.mjs → ColumnInfo-Bi3nJ7xF.mjs} +2 -2
- package/chunks/{Common-BxsnVhWm.mjs → Common-CN7InZnH.mjs} +1 -1
- package/chunks/{Day-BVNnMcsM.mjs → Day-Brqckhl-.mjs} +1 -1
- package/chunks/{DictTypeDetail-DstQf4Vq.mjs → DictTypeDetail-qp8MauoO.mjs} +2 -2
- package/chunks/{GenInfo-BhQ4gh8U.mjs → GenInfo-DIFzMtdf.mjs} +1 -1
- package/chunks/{Hour-CGZgt7AG.mjs → Hour-3nRVF7QE.mjs} +1 -1
- package/chunks/{Import-Dn9zJDL8.mjs → Import-Bjnq3sJm.mjs} +2 -2
- package/chunks/{Index-DzSEM_a9.mjs → Index-7igJvIN7.mjs} +1 -1
- package/chunks/{Index-B5q-Kfbj.mjs → Index-B-tJ29ym.mjs} +1 -1
- package/chunks/{Index-65G0PpdF.mjs → Index-B4M2Ac08.mjs} +1 -1
- package/chunks/{Index-jUWQfds1.mjs → Index-B_0bjaXy.mjs} +1 -1
- package/chunks/{Index-T0k5BaV9.mjs → Index-CMetXHc7.mjs} +1 -1
- package/chunks/{Index-CiCkS-0w.mjs → Index-CWK6SeJO.mjs} +1 -1
- package/chunks/{Index-DHtzWLSw.mjs → Index-Cj28BYQh.mjs} +1 -1
- package/chunks/{Index-DP1vIc6d.mjs → Index-Cly4thtF.mjs} +1 -1
- package/chunks/{Index-DhG5TnhT.mjs → Index-CpJskbiU.mjs} +1 -1
- package/chunks/{Index-D0mLPDE3.mjs → Index-CuDYxrkx.mjs} +1 -1
- package/chunks/{Index-uonh8XlQ.mjs → Index-DK_3CVF8.mjs} +1 -1
- package/chunks/{Index-BEFLy_4r.mjs → Index-Doxlecv8.mjs} +1 -1
- package/chunks/{Index--46Ly3K0.mjs → Index-Jz6ZP1_r.mjs} +1 -1
- package/chunks/{Index-DJHJLRRo.mjs → Index-S771amVp.mjs} +1 -1
- package/chunks/{Index-C7zYI8D4.mjs → Index-X_lgaYbj.mjs} +1 -1
- package/chunks/{Index-CJsAmxgC.mjs → Index-YgFKfGeF.mjs} +1 -1
- package/chunks/{Index-DP_blUoU.mjs → Index-oFCKTTCI.mjs} +1 -1
- package/chunks/{IndexItem-0HyfML9M.mjs → IndexItem-BY15bESs.mjs} +3 -3
- package/chunks/{Log-BGd-VLos.mjs → Log-B0qBhyvg.mjs} +2 -2
- package/chunks/{LoginBg-C-LrDl0X.mjs → LoginBg--qk7UQWN.mjs} +1 -1
- package/chunks/{Minute-C3Mpxt4t.mjs → Minute-CSeiVAJH.mjs} +1 -1
- package/chunks/{Month-_jID3WEC.mjs → Month-CYvN7Fem.mjs} +1 -1
- package/chunks/{Preview-BOO6_C6d.mjs → Preview-B_rggi_K.mjs} +1 -1
- package/chunks/{Second-BGUwXzfS.mjs → Second-DDYeTlsZ.mjs} +1 -1
- package/chunks/{SelectDept-DKkX14FS.mjs → SelectDept-CWlQcFwU.mjs} +1 -1
- package/chunks/{SelectMenu-BpcF8gv7.mjs → SelectMenu-o3K6gP_L.mjs} +1 -1
- package/chunks/{SelectUser-xq6Wq2b0.mjs → SelectUser-B7xE5Oh7.mjs} +2 -2
- package/chunks/{UserInfo-B1aLZcsL.mjs → UserInfo-B6c117CC.mjs} +1 -1
- package/chunks/{Wrapper-BL0udKtz.mjs → Wrapper-DtvWn-pC.mjs} +1 -1
- package/chunks/{app-FNo0sGIx.mjs → app-DINbMvMl.mjs} +1 -1
- package/chunks/{custom-page-list-DqsrzqcX.mjs → custom-page-list-CaAY9S2h.mjs} +4 -4
- package/chunks/{custom-page-table-BVVRetWd.mjs → custom-page-table-CT2Vo6EI.mjs} +2 -2
- package/chunks/{job-BuUuFcB1.mjs → job-CqSdWYBk.mjs} +3 -3
- package/chunks/{overview-BBj-g-AA.mjs → overview-DTBppWa9.mjs} +1 -1
- package/chunks/{page-list-DeemUf8k.mjs → page-list-DKyH7HZI.mjs} +3 -3
- package/chunks/{page-query-el8_cyRh.mjs → page-query-CCCTLUAG.mjs} +1 -1
- package/chunks/{page-table-DxcVJ1aM.mjs → page-table-DLmtokXr.mjs} +3 -3
- package/chunks/{pagination-Cn_J66Vi.mjs → pagination-BsawNa0L.mjs} +1 -1
- package/chunks/{provider-0PhLBm1s.mjs → provider-CWqIJHLL.mjs} +295 -288
- package/chunks/{table-Dx2lfGZv.mjs → table-DebBbKWn.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/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 +9 -9
- 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 +1 -1
- package/layout/Home1.mjs +3 -2
- package/layout/Login.mjs +2 -2
- package/layout/NotFound.mjs +1 -1
- package/layout/modules/Aside.mjs +1 -1
- package/layout/modules/Breadcrumb.mjs +1 -1
- package/layout/modules/Header.mjs +1 -1
- package/layout/modules/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 +1 -1
- package/plugins/autoImport/$alova/index.mjs +1 -1
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +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/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/TypographyText/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +15 -15
- package/plugins/tableRenders/title/TypographyText/Index.mjs +1 -1
- package/plugins/tableRenders/title/index.mjs +2 -2
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +1 -1
- package/utils/gather.mjs +1 -1
- package/utils/index.mjs +1 -1
- package/utils/tool.mjs +1 -1
- package/views/monitor/cache/index.mjs +2 -2
- package/views/monitor/cacheList/index.mjs +2 -2
- package/views/monitor/job/index.mjs +1 -1
- package/views/monitor/logininfor/index.mjs +2 -2
- package/views/monitor/online/index.mjs +2 -2
- package/views/monitor/operlog/index.mjs +2 -2
- package/views/monitor/server/index.mjs +2 -2
- package/views/system/config/index.mjs +2 -2
- package/views/system/dept/index.mjs +2 -2
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +3 -3
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +2 -2
- package/views/system/menu/utils.mjs +1 -1
- package/views/system/notice/index.mjs +2 -2
- package/views/system/post/index.mjs +2 -2
- package/views/system/role/index.mjs +5 -5
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +3 -3
- 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 +4 -4
- 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
|
@@ -18,31 +18,31 @@ import v from "../store/modules/excludeKPname.mjs";
|
|
|
18
18
|
import "../components/gradient-text/index.mjs";
|
|
19
19
|
import { t as ee } from "./gradient-text-9F_lDxuO.mjs";
|
|
20
20
|
import "../components/image/index.mjs";
|
|
21
|
-
import
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
21
|
+
import te from "../views/index.mjs";
|
|
22
|
+
import { t as y } from "./image-u3num5z6.mjs";
|
|
23
|
+
import { t as ne } from "./MenuNode-BAy8nht3.mjs";
|
|
24
|
+
import { t as b } from "./plugin-vue_export-helper-Djzt4Yr7.mjs";
|
|
25
25
|
import "../components/dropdown/index.mjs";
|
|
26
|
-
import { t as
|
|
27
|
-
import
|
|
28
|
-
import { flatArrToTree as
|
|
26
|
+
import { t as re } from "./dropdown-Bvarrr3c.mjs";
|
|
27
|
+
import ie from "../hooks/useContextMenu/index.mjs";
|
|
28
|
+
import { flatArrToTree as ae, mapTree as oe } from "../utils/tree.mjs";
|
|
29
29
|
import "../components/checkbox/index.mjs";
|
|
30
|
-
import { t as
|
|
30
|
+
import { t as se } from "./checkbox-CVOChDUu.mjs";
|
|
31
31
|
import "../components/color-picker/index.mjs";
|
|
32
|
-
import { t as
|
|
32
|
+
import { t as ce } from "./color-picker-Czz7J_78.mjs";
|
|
33
33
|
import "../components/input/index.mjs";
|
|
34
|
-
import { n as
|
|
35
|
-
import
|
|
34
|
+
import { n as le, t as ue } from "./input-CiSr3rcu.mjs";
|
|
35
|
+
import x from "../plugins/autoImport/dayjs/index.mjs";
|
|
36
36
|
import "../components/tag-input/index.mjs";
|
|
37
|
-
import { n as
|
|
37
|
+
import { n as de, t as fe } from "./tag-input-Df_v5AwS.mjs";
|
|
38
38
|
import "../components/slider/index.mjs";
|
|
39
|
-
import { t as
|
|
39
|
+
import { t as pe } from "./slider-B8m9TxnK.mjs";
|
|
40
40
|
import "../components/switch/index.mjs";
|
|
41
|
-
import { t as
|
|
41
|
+
import { t as me } from "./switch-BByqwNgy.mjs";
|
|
42
42
|
import "../components/textarea/index.mjs";
|
|
43
|
-
import { t as
|
|
44
|
-
import { passwordReg as
|
|
45
|
-
import { Fragment as
|
|
43
|
+
import { t as he } from "./textarea-C9VbFXpr.mjs";
|
|
44
|
+
import { passwordReg as ge, passwordRegMessage as _e } from "../constants/regs.mjs";
|
|
45
|
+
import { Fragment as ve, KeepAlive as ye, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as be, createSlots as xe, createTextVNode as E, createVNode as D, defineAsyncComponent as Se, defineComponent as O, getCurrentInstance as k, guardReactiveProps as Ce, h as A, inject as j, markRaw as we, mergeDefaults as M, mergeModels as Te, mergeProps as N, nextTick as Ee, normalizeClass as De, normalizeProps as Oe, onMounted as ke, openBlock as P, provide as Ae, reactive as je, ref as F, renderList as I, renderSlot as Me, resolveComponent as Ne, resolveDynamicComponent as L, shallowRef as Pe, toDisplayString as R, unref as z, useAttrs as Fe, useModel as Ie, useSlots as Le, useTemplateRef as Re, watch as B, withCtx as V, withModifiers as ze } from "vue";
|
|
46
46
|
import { Breadcrumb as Be, BreadcrumbItem as Ve, Button as He, Cascader as Ue, CheckboxGroup as We, ConfigProvider as Ge, Content as Ke, Dialog as qe, DialogPlugin as Je, Drawer as Ye, DrawerPlugin as Xe, Form as Ze, FormItem as Qe, HeadMenu as $e, Header as et, InputAdornment as tt, InputNumber as nt, Layout as rt, Menu as it, MenuItem as at, RadioGroup as ot, RangeInput as st, Select as ct, Tree as lt, TreeSelect as ut, Upload as dt } from "tdesign-vue-next";
|
|
47
47
|
import { ElConfigProvider as ft, ElDatePicker as pt } from "element-plus";
|
|
48
48
|
import { useElementSize as mt, useElementVisibility as ht, useFavicon as gt, useFocus as _t, useMutationObserver as vt, useResizeObserver as yt } from "@vueuse/core";
|
|
@@ -459,7 +459,7 @@ var Kt = {
|
|
|
459
459
|
showInAttachedElement: !1
|
|
460
460
|
}),
|
|
461
461
|
setup(e) {
|
|
462
|
-
let t = e, n =
|
|
462
|
+
let t = e, n = S(() => {
|
|
463
463
|
let e = { ...t };
|
|
464
464
|
return Object.keys(e).forEach((t) => {
|
|
465
465
|
e[t] === void 0 && delete e[t];
|
|
@@ -468,7 +468,7 @@ var Kt = {
|
|
|
468
468
|
function i(e) {
|
|
469
469
|
r.exposed = e ?? {};
|
|
470
470
|
}
|
|
471
|
-
return (e, t) => (P(),
|
|
471
|
+
return (e, t) => (P(), C(L(A(z(qe), N(e.$attrs, {
|
|
472
472
|
...n.value,
|
|
473
473
|
ref: i
|
|
474
474
|
}), e.$slots))));
|
|
@@ -477,7 +477,7 @@ var Kt = {
|
|
|
477
477
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
478
478
|
}(Jt || {}), Yt = /* @__PURE__ */ new Set();
|
|
479
479
|
function Xt(e, t, n) {
|
|
480
|
-
let r =
|
|
480
|
+
let r = S(() => typeof t.body == "function" ? t.body(A) : t.body), i = F(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: a, stop: o } = ht(i, {
|
|
481
481
|
controls: !0,
|
|
482
482
|
initialValue: !0
|
|
483
483
|
}), s = {
|
|
@@ -552,7 +552,7 @@ function Qt() {
|
|
|
552
552
|
useToken: !1
|
|
553
553
|
} });
|
|
554
554
|
}
|
|
555
|
-
var
|
|
555
|
+
var W = St("common", () => {
|
|
556
556
|
let e = F(!0), t = F(250), n = F({
|
|
557
557
|
appName: "",
|
|
558
558
|
color: "",
|
|
@@ -563,7 +563,7 @@ var $t = St("common", () => {
|
|
|
563
563
|
e && (document.title = e);
|
|
564
564
|
}), B(() => n.value.color, (e) => {
|
|
565
565
|
e && (_().value = e);
|
|
566
|
-
}), gt(
|
|
566
|
+
}), gt(S(() => n.value.logo || "/favicon.ico"));
|
|
567
567
|
function r() {
|
|
568
568
|
Qt().then((e) => {
|
|
569
569
|
n.value = e;
|
|
@@ -590,7 +590,7 @@ var $t = St("common", () => {
|
|
|
590
590
|
isRequestSleep: i,
|
|
591
591
|
requestActive: o
|
|
592
592
|
};
|
|
593
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }),
|
|
593
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), G = St("recentRouters", () => {
|
|
594
594
|
let e = F([]), t = H(), n = Ot();
|
|
595
595
|
function r() {
|
|
596
596
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
@@ -626,16 +626,16 @@ var $t = St("common", () => {
|
|
|
626
626
|
};
|
|
627
627
|
}, { persist: { pick: ["recentRouters"] } });
|
|
628
628
|
// ../../packages/dlzn-ui/store/modules/router.ts
|
|
629
|
-
function
|
|
629
|
+
function $t() {
|
|
630
630
|
return J.Get("getRouters", { meta: {
|
|
631
631
|
useFailMsg: "获取用户路由失败",
|
|
632
632
|
useLoading: "正在获取用户路由..."
|
|
633
633
|
} });
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function en(e) {
|
|
636
636
|
return e.children !== void 0 || e.component !== void 0;
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function tn(e) {
|
|
639
639
|
let t = [];
|
|
640
640
|
return e.forEach((e) => {
|
|
641
641
|
e.path === "/" ? t.push({
|
|
@@ -644,7 +644,7 @@ function nn(e) {
|
|
|
644
644
|
}) : t.push(e);
|
|
645
645
|
}), t;
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function nn(e) {
|
|
648
648
|
let t = (e, n) => {
|
|
649
649
|
let r = [];
|
|
650
650
|
return e.forEach((e) => {
|
|
@@ -668,12 +668,12 @@ function rn(e) {
|
|
|
668
668
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
671
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = sn(e)), en(i) && r.push(i);
|
|
672
672
|
}), r;
|
|
673
673
|
}, n = Ln();
|
|
674
674
|
return n.children.push(...e), t([n], null);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function rn(e) {
|
|
677
677
|
let t = (e) => {
|
|
678
678
|
let n = [...e], r = n.length;
|
|
679
679
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -686,36 +686,36 @@ function an(e) {
|
|
|
686
686
|
};
|
|
687
687
|
return t(e);
|
|
688
688
|
}
|
|
689
|
-
var
|
|
690
|
-
function
|
|
689
|
+
var an = [];
|
|
690
|
+
function on(e) {
|
|
691
691
|
return `./${e.split("___")[0]}.vue`;
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function sn(e) {
|
|
694
694
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
695
|
-
let t = e.component, n = typeof t == "string" ?
|
|
695
|
+
let t = e.component, n = typeof t == "string" ? te[on(t)] : t;
|
|
696
696
|
if (n === void 0) {
|
|
697
|
-
let e = `路由组件${
|
|
697
|
+
let e = `路由组件${on(t)}不存在`;
|
|
698
698
|
return console.error(e), h["./NotFound.vue"];
|
|
699
699
|
}
|
|
700
|
-
return typeof t == "string" &&
|
|
700
|
+
return typeof t == "string" && an.push(on(t)), () => n().then((t) => ({
|
|
701
701
|
...t.default,
|
|
702
702
|
name: e.name
|
|
703
703
|
}));
|
|
704
704
|
}
|
|
705
705
|
return e.component;
|
|
706
706
|
}
|
|
707
|
-
var
|
|
707
|
+
var cn = St("router", () => {
|
|
708
708
|
let e = F([]), t = Ot(), n = Q();
|
|
709
709
|
async function r() {
|
|
710
|
-
let r = await
|
|
710
|
+
let r = await $t();
|
|
711
711
|
VITE_MODE === "development" && n.isAdmin && fetch("/__dev__/save-folder-alias", {
|
|
712
712
|
body: JSON.stringify(r),
|
|
713
713
|
headers: { "Content-Type": "application/json" },
|
|
714
714
|
method: "POST"
|
|
715
715
|
}).catch((e) => {
|
|
716
716
|
console.warn("[dev-save-folder-alias] 写入本地 json 失败", e);
|
|
717
|
-
}),
|
|
718
|
-
if (!
|
|
717
|
+
}), an.length = 0, e.value = we(rn(nn(tn(r)))), n.isAdmin && Object.keys(te).forEach((e) => {
|
|
718
|
+
if (!an.includes(e) && ![
|
|
719
719
|
"./tool",
|
|
720
720
|
"./system",
|
|
721
721
|
"./monitor"
|
|
@@ -725,7 +725,7 @@ var ln = St("router", () => {
|
|
|
725
725
|
}
|
|
726
726
|
}), t.hasRoute("Index") && t.removeRoute("Index"), e.value.forEach((e) => {
|
|
727
727
|
t.addRoute(e);
|
|
728
|
-
}),
|
|
728
|
+
}), G().init();
|
|
729
729
|
}
|
|
730
730
|
function i() {
|
|
731
731
|
e.value.forEach((e) => {
|
|
@@ -737,26 +737,26 @@ var ln = St("router", () => {
|
|
|
737
737
|
getRouters: r,
|
|
738
738
|
routersRaw: e
|
|
739
739
|
};
|
|
740
|
-
}),
|
|
740
|
+
}), ln = { class: "ml-2! flex items-center" }, un = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
741
741
|
__name: "Aside",
|
|
742
742
|
setup(e) {
|
|
743
|
-
let t = H(), n =
|
|
743
|
+
let t = H(), n = W(), r = S(() => n.appInfo.appName), i = cn(), a = F([]);
|
|
744
744
|
B(() => t.name, () => {
|
|
745
745
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
746
746
|
a.value.includes(e) || a.value.push(e);
|
|
747
747
|
});
|
|
748
748
|
}, { immediate: !0 });
|
|
749
|
-
let o =
|
|
749
|
+
let o = S(() => {
|
|
750
750
|
let { hidden: e, parentName: n } = t.meta;
|
|
751
751
|
return n !== "" && e === !0 ? n : t.name;
|
|
752
|
-
}), s =
|
|
753
|
-
return (e, t) => (P(),
|
|
752
|
+
}), s = S(() => n.appInfo.logo || Ct.asideTopLogoUrl);
|
|
753
|
+
return (e, t) => (P(), C(z(it), {
|
|
754
754
|
expanded: a.value,
|
|
755
755
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
756
756
|
class: "w-full!",
|
|
757
757
|
value: o.value
|
|
758
758
|
}, {
|
|
759
|
-
logo: V(() => [be("div",
|
|
759
|
+
logo: V(() => [be("div", ln, [D(z(y), {
|
|
760
760
|
class: "logo",
|
|
761
761
|
src: s.value,
|
|
762
762
|
style: {
|
|
@@ -769,14 +769,14 @@ var ln = St("router", () => {
|
|
|
769
769
|
"show-border": !1,
|
|
770
770
|
text: r.value
|
|
771
771
|
}, null, 8, ["text"])])]),
|
|
772
|
-
default: V(() => [D(
|
|
772
|
+
default: V(() => [D(ne, { model: z(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
773
773
|
_: 1
|
|
774
774
|
}, 8, ["expanded", "value"]));
|
|
775
775
|
}
|
|
776
|
-
}), [["__scopeId", "data-v-637195ec"]]),
|
|
776
|
+
}), [["__scopeId", "data-v-637195ec"]]), dn = /* @__PURE__ */ O({
|
|
777
777
|
__name: "Breadcrumb",
|
|
778
778
|
setup(e, { expose: t }) {
|
|
779
|
-
let n = H(), r = Ot(), i =
|
|
779
|
+
let n = H(), r = Ot(), i = G(), a = S(() => {
|
|
780
780
|
let e = n.matched.map((e) => ({
|
|
781
781
|
name: e.name,
|
|
782
782
|
title: e.meta.title
|
|
@@ -789,11 +789,11 @@ var ln = St("router", () => {
|
|
|
789
789
|
function o(e) {
|
|
790
790
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
791
791
|
}
|
|
792
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (P(),
|
|
792
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (P(), C(z(Be), {
|
|
793
793
|
key: 0,
|
|
794
794
|
class: "absolute top-px z-10 py-1!"
|
|
795
795
|
}, {
|
|
796
|
-
default: V(() => [(P(!0),
|
|
796
|
+
default: V(() => [(P(!0), T(ve, null, I(a.value, (e) => (P(), C(z(Ve), {
|
|
797
797
|
key: e.name,
|
|
798
798
|
disabled: e.disabled,
|
|
799
799
|
onClick: (t) => o(e.name)
|
|
@@ -802,10 +802,10 @@ var ln = St("router", () => {
|
|
|
802
802
|
_: 2
|
|
803
803
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
804
804
|
_: 1
|
|
805
|
-
})) :
|
|
805
|
+
})) : w("v-if", !0);
|
|
806
806
|
}
|
|
807
|
-
}),
|
|
808
|
-
function
|
|
807
|
+
}), fn = /* @__PURE__ */ new Map();
|
|
808
|
+
function pn(e) {
|
|
809
809
|
let t = J.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
810
810
|
cssClass: e.cssClass,
|
|
811
811
|
dictType: e.dictType,
|
|
@@ -814,74 +814,74 @@ function mn(e) {
|
|
|
814
814
|
value: e.dictValue
|
|
815
815
|
})));
|
|
816
816
|
e.forEach((e) => {
|
|
817
|
-
|
|
817
|
+
fn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
|
-
var
|
|
821
|
-
function
|
|
822
|
-
return
|
|
820
|
+
var mn = [];
|
|
821
|
+
function hn(e) {
|
|
822
|
+
return mn.includes(e) || mn.push(e), new Promise((t) => {
|
|
823
823
|
setTimeout(() => {
|
|
824
|
-
let n =
|
|
825
|
-
n.length > 0 &&
|
|
824
|
+
let n = mn.filter((e) => !fn.has(e));
|
|
825
|
+
n.length > 0 && pn(n), mn.length = 0, fn.get(e).then((e) => {
|
|
826
826
|
t(e);
|
|
827
827
|
});
|
|
828
828
|
});
|
|
829
829
|
});
|
|
830
830
|
}
|
|
831
|
-
var
|
|
832
|
-
function
|
|
833
|
-
|
|
831
|
+
var K = /* @__PURE__ */ new Map();
|
|
832
|
+
function gn() {
|
|
833
|
+
mn.length = 0, fn.clear(), K.clear();
|
|
834
834
|
}
|
|
835
|
-
function
|
|
836
|
-
let n =
|
|
835
|
+
function _n(e, t) {
|
|
836
|
+
let n = vn(e);
|
|
837
837
|
return t === void 0 ? Xn(n) : Xn(n, t);
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function vn(e, t) {
|
|
840
840
|
let n;
|
|
841
|
-
return
|
|
841
|
+
return K.has(e) ? n = K.get(e) : (n = F([]), K.set(e, n), hn(e).then((e) => {
|
|
842
842
|
n.value = e;
|
|
843
|
-
})),
|
|
843
|
+
})), S(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
|
|
847
|
-
|
|
845
|
+
function yn(e) {
|
|
846
|
+
fn.delete(e), K.has(e) && hn(e).then((t) => {
|
|
847
|
+
K.get(e).value = t;
|
|
848
848
|
});
|
|
849
849
|
}
|
|
850
850
|
// ../../packages/dlzn-ui/hooks/useSysUser/index.ts
|
|
851
|
-
var
|
|
852
|
-
function
|
|
851
|
+
var bn = /* @__PURE__ */ new Map();
|
|
852
|
+
function xn(e) {
|
|
853
853
|
let t = J.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
854
854
|
...e,
|
|
855
855
|
label: e.userName,
|
|
856
856
|
value: e.userId
|
|
857
857
|
})));
|
|
858
858
|
e.forEach((e) => {
|
|
859
|
-
|
|
859
|
+
bn.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
860
860
|
});
|
|
861
861
|
}
|
|
862
|
-
var
|
|
863
|
-
function
|
|
864
|
-
return
|
|
862
|
+
var Sn = [];
|
|
863
|
+
function Cn(e) {
|
|
864
|
+
return Sn.includes(e) || Sn.push(e), new Promise((t) => {
|
|
865
865
|
setTimeout(() => {
|
|
866
|
-
let n =
|
|
867
|
-
n.length > 0 &&
|
|
866
|
+
let n = Sn.filter((e) => !bn.has(e));
|
|
867
|
+
n.length > 0 && xn(n), Sn.length = 0, bn.get(e).then((e) => {
|
|
868
868
|
t(e);
|
|
869
869
|
});
|
|
870
870
|
});
|
|
871
871
|
});
|
|
872
872
|
}
|
|
873
|
-
var
|
|
873
|
+
var wn = /* @__PURE__ */ new Map();
|
|
874
874
|
function Tn() {
|
|
875
|
-
|
|
875
|
+
Sn.length = 0, bn.clear(), wn.clear();
|
|
876
876
|
}
|
|
877
877
|
function En(e) {
|
|
878
|
-
|
|
879
|
-
|
|
878
|
+
bn.delete(e), wn.has(e) && Cn(e).then((t) => {
|
|
879
|
+
wn.get(e).value = t;
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
882
|
function Dn(e) {
|
|
883
883
|
let t;
|
|
884
|
-
return
|
|
884
|
+
return wn.has(e) ? t = wn.get(e) : (t = F(null), wn.set(e, t), Cn(e).then((e) => {
|
|
885
885
|
t.value = e;
|
|
886
886
|
})), t;
|
|
887
887
|
}
|
|
@@ -905,7 +905,7 @@ var An = St("login", () => {
|
|
|
905
905
|
e.value = n.token, await Q().getUserInfo();
|
|
906
906
|
}
|
|
907
907
|
function i() {
|
|
908
|
-
e.value = "", v().clear(),
|
|
908
|
+
e.value = "", v().clear(), cn().clear(), Q().clear(), gn(), Tn(), Qn();
|
|
909
909
|
}
|
|
910
910
|
B(() => t.name, () => {
|
|
911
911
|
t.name === "Login" && i();
|
|
@@ -918,10 +918,10 @@ var An = St("login", () => {
|
|
|
918
918
|
logout: a,
|
|
919
919
|
token: e
|
|
920
920
|
};
|
|
921
|
-
}, { persist: { pick: ["token"] } }), jn = { class: "flex items-center justify-between" }, Mn = /*#__PURE__*/
|
|
921
|
+
}, { persist: { pick: ["token"] } }), jn = { class: "flex items-center justify-between" }, Mn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
922
922
|
__name: "Header",
|
|
923
923
|
setup(e) {
|
|
924
|
-
let n = H(), r = Ot(), i = Q(), a =
|
|
924
|
+
let n = H(), r = Ot(), i = Q(), a = W(), o = G();
|
|
925
925
|
function s(e) {
|
|
926
926
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
927
927
|
}
|
|
@@ -952,10 +952,10 @@ var An = St("login", () => {
|
|
|
952
952
|
onClick: () => {
|
|
953
953
|
l > s && r.push(u), o.recentRouters = o.recentRouters.slice(0, s + 1);
|
|
954
954
|
}
|
|
955
|
-
}),
|
|
955
|
+
}), ie(e, i);
|
|
956
956
|
}
|
|
957
957
|
let f = h["./modules/HeaderOperations.vue"] ? Se(h["./modules/HeaderOperations.vue"]) : void 0;
|
|
958
|
-
return (e, r) => (P(),
|
|
958
|
+
return (e, r) => (P(), C(z(et), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
959
959
|
default: V(() => [D(z($e), {
|
|
960
960
|
"expand-type": "popup",
|
|
961
961
|
value: z(n).name,
|
|
@@ -971,7 +971,7 @@ var An = St("login", () => {
|
|
|
971
971
|
default: V(() => [D(z(t), { icon: "lineicons:menu-hamburger-1" })]),
|
|
972
972
|
_: 1
|
|
973
973
|
})]),
|
|
974
|
-
operations: V(() => [z(f) ? (P(),
|
|
974
|
+
operations: V(() => [z(f) ? (P(), C(z(f), { key: 0 })) : w("v-if", !0), D(z(re), {
|
|
975
975
|
options: [{
|
|
976
976
|
content: "个人中心",
|
|
977
977
|
value: "profile",
|
|
@@ -989,12 +989,12 @@ var An = St("login", () => {
|
|
|
989
989
|
}],
|
|
990
990
|
onClick: l
|
|
991
991
|
}, {
|
|
992
|
-
default: V(() => [z(u) ? (P(),
|
|
992
|
+
default: V(() => [z(u) ? (P(), C(z($), {
|
|
993
993
|
key: 0,
|
|
994
994
|
icon: "material-symbols:account-circle",
|
|
995
995
|
shape: "square",
|
|
996
996
|
variant: "text"
|
|
997
|
-
})) : (P(),
|
|
997
|
+
})) : (P(), C(z($), {
|
|
998
998
|
key: 1,
|
|
999
999
|
icon: "material-symbols:account-circle",
|
|
1000
1000
|
variant: "text"
|
|
@@ -1008,12 +1008,12 @@ var An = St("login", () => {
|
|
|
1008
1008
|
}))]),
|
|
1009
1009
|
_: 1
|
|
1010
1010
|
}, 8, ["options"])]),
|
|
1011
|
-
default: V(() => [(P(!0),
|
|
1011
|
+
default: V(() => [(P(!0), T(ve, null, I(z(o).recentRouters, (e) => (P(), C(z(at), {
|
|
1012
1012
|
key: e.name,
|
|
1013
1013
|
value: e.name,
|
|
1014
1014
|
onContextmenu: (t) => d(t, e.name)
|
|
1015
1015
|
}, {
|
|
1016
|
-
default: V(() => [be("div", jn, [be("span", null, R(z(Rn)(e.name).meta.title), 1), z(o).recentRouters.length > 1 ? (P(),
|
|
1016
|
+
default: V(() => [be("div", jn, [be("span", null, R(z(Rn)(e.name).meta.title), 1), z(o).recentRouters.length > 1 ? (P(), C(z($), {
|
|
1017
1017
|
key: 0,
|
|
1018
1018
|
class: "ml-1!",
|
|
1019
1019
|
shape: "square",
|
|
@@ -1026,7 +1026,7 @@ var An = St("login", () => {
|
|
|
1026
1026
|
style: { "font-size": "12px !important" }
|
|
1027
1027
|
})]),
|
|
1028
1028
|
_: 1
|
|
1029
|
-
}, 8, ["onClick"])) :
|
|
1029
|
+
}, 8, ["onClick"])) : w("v-if", !0)])]),
|
|
1030
1030
|
_: 2
|
|
1031
1031
|
}, 1032, ["value", "onContextmenu"]))), 128))]),
|
|
1032
1032
|
_: 1
|
|
@@ -1034,20 +1034,20 @@ var An = St("login", () => {
|
|
|
1034
1034
|
_: 1
|
|
1035
1035
|
}));
|
|
1036
1036
|
}
|
|
1037
|
-
}), [["__scopeId", "data-v-6c2c986c"]]), Nn = /*#__PURE__*/
|
|
1037
|
+
}), [["__scopeId", "data-v-6c2c986c"]]), Nn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
1038
1038
|
__name: "Entry",
|
|
1039
1039
|
setup(t) {
|
|
1040
|
-
let n = H(), r =
|
|
1040
|
+
let n = H(), r = W(), i = G(), a = v(), o = S(() => i.recentRouters.filter((e) => Rn(e.name).meta.noCache === !1).map((e) => e.name)), s = Re("breadcrumb"), c = S(() => (s.value?.items.length ?? 0) > 0), l = S(() => g.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), u = g.isMd, d = Re("contentRef"), { height: f } = mt(d);
|
|
1041
1041
|
function p({ size: e }) {
|
|
1042
1042
|
r.drawerSize = e;
|
|
1043
1043
|
}
|
|
1044
|
-
let m =
|
|
1044
|
+
let m = S(() => n.meta.fullScreen);
|
|
1045
1045
|
return (t, n) => {
|
|
1046
1046
|
let i = Ne("RouterView");
|
|
1047
|
-
return m.value ? (P(),
|
|
1048
|
-
default: V(({ Component: e }) => [(P(),
|
|
1047
|
+
return m.value ? (P(), C(i, { key: 0 }, {
|
|
1048
|
+
default: V(({ Component: e }) => [(P(), C(L(e)))]),
|
|
1049
1049
|
_: 1
|
|
1050
|
-
})) : (P(),
|
|
1050
|
+
})) : (P(), C(z(rt), {
|
|
1051
1051
|
key: 1,
|
|
1052
1052
|
class: "h-full"
|
|
1053
1053
|
}, {
|
|
@@ -1067,7 +1067,7 @@ var An = St("login", () => {
|
|
|
1067
1067
|
},
|
|
1068
1068
|
onSizeDragEnd: p
|
|
1069
1069
|
}, {
|
|
1070
|
-
default: V(() => [D(
|
|
1070
|
+
default: V(() => [D(un, { class: "no_drawer_body_padding" })]),
|
|
1071
1071
|
_: 1
|
|
1072
1072
|
}, 8, [
|
|
1073
1073
|
"visible",
|
|
@@ -1091,11 +1091,11 @@ var An = St("login", () => {
|
|
|
1091
1091
|
minHeight: `${Math.max(z(f), 438)}px`
|
|
1092
1092
|
}
|
|
1093
1093
|
}, {
|
|
1094
|
-
default: V(() => [D(
|
|
1095
|
-
default: V(({ Component: e }) => [(P(),
|
|
1094
|
+
default: V(() => [D(dn, { ref: "breadcrumb" }, null, 512), D(i, null, {
|
|
1095
|
+
default: V(({ Component: e }) => [(P(), C(ye, {
|
|
1096
1096
|
exclude: z(a).excludeKPname,
|
|
1097
1097
|
include: o.value
|
|
1098
|
-
}, [(P(),
|
|
1098
|
+
}, [(P(), C(L(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
1099
1099
|
_: 1
|
|
1100
1100
|
})]),
|
|
1101
1101
|
_: 1
|
|
@@ -1109,7 +1109,7 @@ var An = St("login", () => {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
}), [["__scopeId", "data-v-de5cbc76"]]), Pn = /* @__PURE__ */ new Set();
|
|
1111
1111
|
function Fn(e, t) {
|
|
1112
|
-
let n =
|
|
1112
|
+
let n = S(() => typeof e.body == "function" ? e.body(A) : e.body), r = {
|
|
1113
1113
|
attach: "#app",
|
|
1114
1114
|
closeOnEscKeydown: !1,
|
|
1115
1115
|
closeOnOverlayClick: !1,
|
|
@@ -1218,15 +1218,15 @@ var q = Tt({
|
|
|
1218
1218
|
strict: !0
|
|
1219
1219
|
});
|
|
1220
1220
|
q.beforeEach(async (e) => {
|
|
1221
|
-
if (e.query._fromLeftTree === "true" && v().add(e.name), !["Login", "Register"].includes(e.name)) return An().token === "" ? { name: "Login" } :
|
|
1221
|
+
if (e.query._fromLeftTree === "true" && v().add(e.name), !["Login", "Register"].includes(e.name)) return An().token === "" ? { name: "Login" } : cn().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), q.resolve({
|
|
1222
1222
|
path: e.path,
|
|
1223
1223
|
query: e.query
|
|
1224
1224
|
}));
|
|
1225
1225
|
}), q.afterEach((e, t, n) => {
|
|
1226
1226
|
Zt.closeAll(), In.closeAll();
|
|
1227
1227
|
let { meta: r, name: a } = e, { fullScreen: o, parentName: s, title: c } = r;
|
|
1228
|
-
document.title = c ||
|
|
1229
|
-
let l =
|
|
1228
|
+
document.title = c || W().appInfo.appName;
|
|
1229
|
+
let l = G();
|
|
1230
1230
|
if (![
|
|
1231
1231
|
"Login",
|
|
1232
1232
|
"NotFound",
|
|
@@ -1291,7 +1291,7 @@ var J = kt({
|
|
|
1291
1291
|
let { useBeforeRequestIntercept: t, useEmptyData: n, useEmptyParams: i, useFormData: a, useInPolling: o, useLoading: s, useResponseBlob: c, useToken: l } = e.meta;
|
|
1292
1292
|
t !== void 0 && await t(e), e.config.credentials = e.config.credentials ?? "omit";
|
|
1293
1293
|
let [u, ...d] = VITE_API_PROXY_PREFIX_ARRAY;
|
|
1294
|
-
if (!e.url.startsWith("http") && !d.some((t) => Mt.join("/", e.url).startsWith(Mt.join("/", t, "/"))) && (e.url = Mt.join(u, e.url)), o ||
|
|
1294
|
+
if (!e.url.startsWith("http") && !d.some((t) => Mt.join("/", e.url).startsWith(Mt.join("/", t, "/"))) && (e.url = Mt.join(u, e.url)), o || W().requestActive(), l) {
|
|
1295
1295
|
let t = An();
|
|
1296
1296
|
t.token ? e.config.headers.Authorization = t.token : e.abort();
|
|
1297
1297
|
}
|
|
@@ -1446,7 +1446,7 @@ async function Y(e, t, n) {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
// ../../packages/dlzn-ui/hooks/useLabel/index.ts
|
|
1448
1448
|
function Xn(e, t) {
|
|
1449
|
-
return
|
|
1449
|
+
return S(() => {
|
|
1450
1450
|
if (t === void 0) return e.value.map((e) => e.label);
|
|
1451
1451
|
if (Array.isArray(t)) return e.value.length === 0 ? [] : Gt(e.value, t);
|
|
1452
1452
|
if (e.value.length === 0) return "";
|
|
@@ -1461,11 +1461,11 @@ function Xn(e, t) {
|
|
|
1461
1461
|
var Zn = {
|
|
1462
1462
|
systemDeptTree: () => J.Get("system/user/deptTree", {
|
|
1463
1463
|
shareRequest: !0,
|
|
1464
|
-
transform: (e) =>
|
|
1464
|
+
transform: (e) => oe(e, { fieldNamesMapping: { value: "id" } })
|
|
1465
1465
|
}),
|
|
1466
1466
|
systemMenuTree: () => J.Get("system/menu/list", {
|
|
1467
1467
|
shareRequest: !0,
|
|
1468
|
-
transform: (e) =>
|
|
1468
|
+
transform: (e) => ae(e.map((e) => ({
|
|
1469
1469
|
...e,
|
|
1470
1470
|
label: e.menuName,
|
|
1471
1471
|
value: e.menuId
|
|
@@ -1551,19 +1551,22 @@ var tr = /* @__PURE__ */ O({
|
|
|
1551
1551
|
onRemove: { type: Function }
|
|
1552
1552
|
}, It),
|
|
1553
1553
|
setup(e) {
|
|
1554
|
-
let t = e, n =
|
|
1555
|
-
let e =
|
|
1556
|
-
|
|
1557
|
-
e
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1554
|
+
let t = e, n = j("isFormDisabled", S(() => !1)), r = j("isFormReadonly", S(() => !1)), i = S(() => typeof t.options == "string" ? Z(t.options).value : t.options), a = S(() => {
|
|
1555
|
+
let e = t.disabled ?? n.value, i = t.readonly ?? r.value, a = {
|
|
1556
|
+
...t,
|
|
1557
|
+
minCollapsedNum: e || i ? 0 : t.minCollapsedNum
|
|
1558
|
+
};
|
|
1559
|
+
return Object.keys(a).forEach((e) => {
|
|
1560
|
+
a[e] === void 0 && delete a[e];
|
|
1561
|
+
}), a;
|
|
1562
|
+
}), o = k();
|
|
1563
|
+
function s(e) {
|
|
1564
|
+
o.exposed = e ?? {};
|
|
1562
1565
|
}
|
|
1563
|
-
return (e, t) => (P(),
|
|
1564
|
-
...
|
|
1565
|
-
options:
|
|
1566
|
-
ref:
|
|
1566
|
+
return (e, t) => (P(), C(L(A(z(Ue), N(e.$attrs, {
|
|
1567
|
+
...a.value,
|
|
1568
|
+
options: i.value,
|
|
1569
|
+
ref: s
|
|
1567
1570
|
}), e.$slots))));
|
|
1568
1571
|
}
|
|
1569
1572
|
}), nr = /* @__PURE__ */ O({
|
|
@@ -1597,13 +1600,13 @@ var tr = /* @__PURE__ */ O({
|
|
|
1597
1600
|
function a(e) {
|
|
1598
1601
|
i.exposed = e ?? {};
|
|
1599
1602
|
}
|
|
1600
|
-
let o =
|
|
1603
|
+
let o = S(() => {
|
|
1601
1604
|
let e;
|
|
1602
|
-
return n.dicCode ? (n.options && p.error("TCheckboxGroup: dicCode and options cannot be used together"), e =
|
|
1605
|
+
return n.dicCode ? (n.options && p.error("TCheckboxGroup: dicCode and options cannot be used together"), e = vn(n.dicCode).value) : e = typeof n.options == "string" ? Z(n.options).value : n.options, n.showCheckAll && (e === void 0 ? p.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
1603
1606
|
checkAll: !0,
|
|
1604
1607
|
label: "全选"
|
|
1605
1608
|
})), e;
|
|
1606
|
-
}), s =
|
|
1609
|
+
}), s = S(() => {
|
|
1607
1610
|
if (!Array.isArray(n.modelValue)) p.error("TCheckboxGroup: modelValue must be an array");
|
|
1608
1611
|
else if (o.value !== void 0) {
|
|
1609
1612
|
let e = o.value.every((e) => typeof (e.value ?? e) == "string"), t = o.value.every((e) => typeof (e.value ?? e) == "number");
|
|
@@ -1611,13 +1614,13 @@ var tr = /* @__PURE__ */ O({
|
|
|
1611
1614
|
if (t) return n.modelValue.map((e) => u(e) ? Number(e) : e);
|
|
1612
1615
|
}
|
|
1613
1616
|
return n.modelValue;
|
|
1614
|
-
}), l =
|
|
1617
|
+
}), l = S(() => {
|
|
1615
1618
|
let e = { ...n };
|
|
1616
1619
|
return delete e.dicCode, delete e.showCheckAll, Object.keys(e).forEach((t) => {
|
|
1617
1620
|
e[t] === void 0 && delete e[t];
|
|
1618
1621
|
}), e;
|
|
1619
1622
|
});
|
|
1620
|
-
return (e, t) => (P(),
|
|
1623
|
+
return (e, t) => (P(), C(L(A(z(We), N(e.$attrs, {
|
|
1621
1624
|
...l.value,
|
|
1622
1625
|
options: o.value,
|
|
1623
1626
|
modelValue: s.value,
|
|
@@ -1675,10 +1678,10 @@ var tr = /* @__PURE__ */ O({
|
|
|
1675
1678
|
onPaste: { type: Function },
|
|
1676
1679
|
onValidate: { type: Function },
|
|
1677
1680
|
onWheel: { type: Function }
|
|
1678
|
-
},
|
|
1681
|
+
}, le),
|
|
1679
1682
|
emits: ["update:modelValue"],
|
|
1680
1683
|
setup(e, { emit: t }) {
|
|
1681
|
-
let n = e, r = t, i = j("isFormDisabled",
|
|
1684
|
+
let n = e, r = t, i = j("isFormDisabled", S(() => !1)), a = j("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1682
1685
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1683
1686
|
return {
|
|
1684
1687
|
...n,
|
|
@@ -1713,14 +1716,14 @@ var tr = /* @__PURE__ */ O({
|
|
|
1713
1716
|
function l(e) {
|
|
1714
1717
|
c.exposed = e ?? {};
|
|
1715
1718
|
}
|
|
1716
|
-
let u =
|
|
1719
|
+
let u = S(() => N(s, {
|
|
1717
1720
|
...o.value,
|
|
1718
1721
|
onChange: (...e) => {
|
|
1719
1722
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1720
1723
|
},
|
|
1721
1724
|
ref: l
|
|
1722
1725
|
}));
|
|
1723
|
-
return (e, t) => (P(),
|
|
1726
|
+
return (e, t) => (P(), C(z(ue), Oe(Ce(u.value)), null, 16));
|
|
1724
1727
|
}
|
|
1725
1728
|
}), ir = /* @__PURE__ */ O({
|
|
1726
1729
|
inheritAttrs: !1,
|
|
@@ -1813,14 +1816,14 @@ var tr = /* @__PURE__ */ O({
|
|
|
1813
1816
|
},
|
|
1814
1817
|
emits: ["update:modelValue"],
|
|
1815
1818
|
setup(e, { emit: t }) {
|
|
1816
|
-
let n = e, r = t, i = j("isFormDisabled",
|
|
1819
|
+
let n = e, r = t, i = j("isFormDisabled", S(() => !1)), a = j("isFormReadonly", S(() => !1)), o = F(n.modelValue);
|
|
1817
1820
|
B(() => n.modelValue, (e) => {
|
|
1818
1821
|
o.value = e;
|
|
1819
1822
|
}, { deep: !0 });
|
|
1820
1823
|
function s() {
|
|
1821
1824
|
if (n.defaultTime !== void 0) return n.defaultTime;
|
|
1822
1825
|
switch (n.type) {
|
|
1823
|
-
case "datetimerange": return [
|
|
1826
|
+
case "datetimerange": return [x().startOf("day").toDate(), x().endOf("day").toDate()];
|
|
1824
1827
|
default: return;
|
|
1825
1828
|
}
|
|
1826
1829
|
}
|
|
@@ -1860,163 +1863,163 @@ var tr = /* @__PURE__ */ O({
|
|
|
1860
1863
|
case "date": return [
|
|
1861
1864
|
{
|
|
1862
1865
|
text: "今天",
|
|
1863
|
-
value:
|
|
1866
|
+
value: x().toDate()
|
|
1864
1867
|
},
|
|
1865
1868
|
{
|
|
1866
1869
|
text: "昨天",
|
|
1867
|
-
value: () =>
|
|
1870
|
+
value: () => x().subtract(1, "day").toDate()
|
|
1868
1871
|
},
|
|
1869
1872
|
{
|
|
1870
1873
|
text: "一周前",
|
|
1871
|
-
value: () =>
|
|
1874
|
+
value: () => x().subtract(1, "week").toDate()
|
|
1872
1875
|
}
|
|
1873
1876
|
];
|
|
1874
1877
|
case "daterange": return [
|
|
1875
1878
|
{
|
|
1876
1879
|
text: "最近一周",
|
|
1877
|
-
value: () => [
|
|
1880
|
+
value: () => [x().subtract(1, "week").toDate(), x().toDate()]
|
|
1878
1881
|
},
|
|
1879
1882
|
{
|
|
1880
1883
|
text: "本月",
|
|
1881
|
-
value: () => [
|
|
1884
|
+
value: () => [x().startOf("month").toDate(), x().endOf("month").toDate()]
|
|
1882
1885
|
},
|
|
1883
1886
|
{
|
|
1884
1887
|
text: "上一个月",
|
|
1885
|
-
value: () => [
|
|
1888
|
+
value: () => [x().subtract(1, "month").startOf("month").toDate(), x().subtract(1, "month").endOf("month").toDate()]
|
|
1886
1889
|
},
|
|
1887
1890
|
{
|
|
1888
1891
|
text: "最近一个月",
|
|
1889
|
-
value: () => [
|
|
1892
|
+
value: () => [x().subtract(1, "month").toDate(), x().toDate()]
|
|
1890
1893
|
},
|
|
1891
1894
|
{
|
|
1892
1895
|
text: "最近三个月",
|
|
1893
|
-
value: () => [
|
|
1896
|
+
value: () => [x().subtract(3, "month").toDate(), x().toDate()]
|
|
1894
1897
|
},
|
|
1895
1898
|
{
|
|
1896
1899
|
text: "最近半年",
|
|
1897
|
-
value: () => [
|
|
1900
|
+
value: () => [x().subtract(6, "month").toDate(), x().toDate()]
|
|
1898
1901
|
},
|
|
1899
1902
|
{
|
|
1900
1903
|
text: "最近一年",
|
|
1901
|
-
value: () => [
|
|
1904
|
+
value: () => [x().subtract(1, "year").toDate(), x().toDate()]
|
|
1902
1905
|
},
|
|
1903
1906
|
{
|
|
1904
1907
|
text: "最近两年",
|
|
1905
|
-
value: () => [
|
|
1908
|
+
value: () => [x().subtract(2, "year").toDate(), x().toDate()]
|
|
1906
1909
|
},
|
|
1907
1910
|
{
|
|
1908
1911
|
text: "最近三年",
|
|
1909
|
-
value: () => [
|
|
1912
|
+
value: () => [x().subtract(3, "year").toDate(), x().toDate()]
|
|
1910
1913
|
}
|
|
1911
1914
|
];
|
|
1912
1915
|
case "datetime": return [
|
|
1913
1916
|
{
|
|
1914
1917
|
text: "今天",
|
|
1915
|
-
value:
|
|
1918
|
+
value: x().toDate()
|
|
1916
1919
|
},
|
|
1917
1920
|
{
|
|
1918
1921
|
text: "今日开始",
|
|
1919
|
-
value: () =>
|
|
1922
|
+
value: () => x().startOf("day").toDate()
|
|
1920
1923
|
},
|
|
1921
1924
|
{
|
|
1922
1925
|
text: "今日结束",
|
|
1923
|
-
value: () =>
|
|
1926
|
+
value: () => x().endOf("day").toDate()
|
|
1924
1927
|
},
|
|
1925
1928
|
{
|
|
1926
1929
|
text: "昨天",
|
|
1927
|
-
value: () =>
|
|
1930
|
+
value: () => x().subtract(1, "day").toDate()
|
|
1928
1931
|
},
|
|
1929
1932
|
{
|
|
1930
1933
|
text: "三天前",
|
|
1931
|
-
value: () =>
|
|
1934
|
+
value: () => x().subtract(3, "day").toDate()
|
|
1932
1935
|
},
|
|
1933
1936
|
{
|
|
1934
1937
|
text: "一周前",
|
|
1935
|
-
value: () =>
|
|
1938
|
+
value: () => x().subtract(1, "week").toDate()
|
|
1936
1939
|
},
|
|
1937
1940
|
{
|
|
1938
1941
|
text: "一个月前",
|
|
1939
|
-
value: () =>
|
|
1942
|
+
value: () => x().subtract(1, "month").toDate()
|
|
1940
1943
|
},
|
|
1941
1944
|
{
|
|
1942
1945
|
text: "本月初",
|
|
1943
|
-
value: () =>
|
|
1946
|
+
value: () => x().startOf("month").toDate()
|
|
1944
1947
|
},
|
|
1945
1948
|
{
|
|
1946
1949
|
text: "本月末",
|
|
1947
|
-
value: () =>
|
|
1950
|
+
value: () => x().endOf("month").toDate()
|
|
1948
1951
|
}
|
|
1949
1952
|
];
|
|
1950
1953
|
case "datetimerange": return [
|
|
1951
1954
|
{
|
|
1952
1955
|
text: "今天",
|
|
1953
|
-
value: () => [
|
|
1956
|
+
value: () => [x().startOf("day").toDate(), x().endOf("day").toDate()]
|
|
1954
1957
|
},
|
|
1955
1958
|
{
|
|
1956
1959
|
text: "昨天",
|
|
1957
|
-
value: () => [
|
|
1960
|
+
value: () => [x().subtract(1, "day").startOf("day").toDate(), x().subtract(1, "day").endOf("day").toDate()]
|
|
1958
1961
|
},
|
|
1959
1962
|
{
|
|
1960
1963
|
text: "最近一周",
|
|
1961
|
-
value: () => [
|
|
1964
|
+
value: () => [x().startOf("day").subtract(1, "week").toDate(), x().endOf("day").toDate()]
|
|
1962
1965
|
},
|
|
1963
1966
|
{
|
|
1964
1967
|
text: "本月",
|
|
1965
|
-
value: () => [
|
|
1968
|
+
value: () => [x().startOf("month").toDate(), x().endOf("month").toDate()]
|
|
1966
1969
|
},
|
|
1967
1970
|
{
|
|
1968
1971
|
text: "上个月",
|
|
1969
|
-
value: () => [
|
|
1972
|
+
value: () => [x().subtract(1, "month").startOf("month").toDate(), x().subtract(1, "month").endOf("month").toDate()]
|
|
1970
1973
|
},
|
|
1971
1974
|
{
|
|
1972
1975
|
text: "最近一个月",
|
|
1973
|
-
value: () => [
|
|
1976
|
+
value: () => [x().startOf("day").subtract(1, "month").toDate(), x().endOf("day").toDate()]
|
|
1974
1977
|
},
|
|
1975
1978
|
{
|
|
1976
1979
|
text: "最近三个月",
|
|
1977
|
-
value: () => [
|
|
1980
|
+
value: () => [x().startOf("day").subtract(3, "month").toDate(), x().endOf("day").toDate()]
|
|
1978
1981
|
},
|
|
1979
1982
|
{
|
|
1980
1983
|
text: "最近半年",
|
|
1981
|
-
value: () => [
|
|
1984
|
+
value: () => [x().startOf("day").subtract(6, "month").toDate(), x().endOf("day").toDate()]
|
|
1982
1985
|
},
|
|
1983
1986
|
{
|
|
1984
1987
|
text: "最近一年",
|
|
1985
|
-
value: () => [
|
|
1988
|
+
value: () => [x().startOf("day").subtract(1, "year").toDate(), x().endOf("day").toDate()]
|
|
1986
1989
|
}
|
|
1987
1990
|
];
|
|
1988
1991
|
case "monthrange": return [
|
|
1989
1992
|
{
|
|
1990
1993
|
text: "本月",
|
|
1991
|
-
value: [
|
|
1994
|
+
value: [x().toDate(), x().toDate()]
|
|
1992
1995
|
},
|
|
1993
1996
|
{
|
|
1994
1997
|
text: "上月",
|
|
1995
|
-
value: () => [
|
|
1998
|
+
value: () => [x().subtract(1, "month").startOf("month").toDate(), x().subtract(1, "month").endOf("month").toDate()]
|
|
1996
1999
|
},
|
|
1997
2000
|
{
|
|
1998
2001
|
text: "今年至今",
|
|
1999
|
-
value: () => [
|
|
2002
|
+
value: () => [x().startOf("year").toDate(), x().toDate()]
|
|
2000
2003
|
},
|
|
2001
2004
|
{
|
|
2002
2005
|
text: "最近一个月",
|
|
2003
|
-
value: () => [
|
|
2006
|
+
value: () => [x().subtract(1, "month").toDate(), x().toDate()]
|
|
2004
2007
|
},
|
|
2005
2008
|
{
|
|
2006
2009
|
text: "最近三个月",
|
|
2007
|
-
value: () => [
|
|
2010
|
+
value: () => [x().subtract(3, "month").toDate(), x().toDate()]
|
|
2008
2011
|
},
|
|
2009
2012
|
{
|
|
2010
2013
|
text: "最近六个月",
|
|
2011
|
-
value: () => [
|
|
2014
|
+
value: () => [x().subtract(6, "month").toDate(), x().toDate()]
|
|
2012
2015
|
},
|
|
2013
2016
|
{
|
|
2014
2017
|
text: "最近一年",
|
|
2015
|
-
value: () => [
|
|
2018
|
+
value: () => [x().subtract(1, "year").toDate(), x().toDate()]
|
|
2016
2019
|
},
|
|
2017
2020
|
{
|
|
2018
2021
|
text: "最近三年",
|
|
2019
|
-
value: () => [
|
|
2022
|
+
value: () => [x().subtract(3, "year").toDate(), x().toDate()]
|
|
2020
2023
|
}
|
|
2021
2024
|
];
|
|
2022
2025
|
default: return [];
|
|
@@ -2046,7 +2049,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2046
2049
|
default: return "YYYY-MM-DD";
|
|
2047
2050
|
}
|
|
2048
2051
|
}
|
|
2049
|
-
let h =
|
|
2052
|
+
let h = S(() => {
|
|
2050
2053
|
let e = {
|
|
2051
2054
|
...n,
|
|
2052
2055
|
defaultTime: s(),
|
|
@@ -2066,7 +2069,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2066
2069
|
function _(e) {
|
|
2067
2070
|
g.exposed = e ?? {};
|
|
2068
2071
|
}
|
|
2069
|
-
return (t, i) => (P(),
|
|
2072
|
+
return (t, i) => (P(), C(L(A(z(pt), N(t.$attrs, {
|
|
2070
2073
|
...h.value,
|
|
2071
2074
|
modelValue: o.value,
|
|
2072
2075
|
"onUpdate:modelValue": (e) => {
|
|
@@ -2095,7 +2098,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2095
2098
|
readonly: void 0,
|
|
2096
2099
|
theme: "normal",
|
|
2097
2100
|
useGrouping: !0
|
|
2098
|
-
}, or = /*#__PURE__*/
|
|
2101
|
+
}, or = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
2099
2102
|
inheritAttrs: !1,
|
|
2100
2103
|
name: "TInputNumber",
|
|
2101
2104
|
__name: "input-number",
|
|
@@ -2133,7 +2136,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2133
2136
|
}, ar),
|
|
2134
2137
|
emits: ["update:modelValue"],
|
|
2135
2138
|
setup(e, { emit: t }) {
|
|
2136
|
-
let n = e, r = t, i =
|
|
2139
|
+
let n = e, r = t, i = S(() => {
|
|
2137
2140
|
let e = { ...n };
|
|
2138
2141
|
return e.autoWidth === void 0 && e.theme === "row" && (e.autoWidth = !0), e.useGrouping === !0 && e.format === void 0 && (e.format = (e) => d(e)), delete e.useGrouping, Object.keys(e).forEach((t) => {
|
|
2139
2142
|
e[t] === void 0 && delete e[t];
|
|
@@ -2142,7 +2145,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2142
2145
|
function o(e) {
|
|
2143
2146
|
a.exposed = e ?? {};
|
|
2144
2147
|
}
|
|
2145
|
-
return (e, t) => (P(),
|
|
2148
|
+
return (e, t) => (P(), C(L(A(z(nt), N(e.$attrs, {
|
|
2146
2149
|
...i.value,
|
|
2147
2150
|
onChange: (...e) => {
|
|
2148
2151
|
let [t, ...i] = e, a = z(c)(t) ? "" : t;
|
|
@@ -2185,12 +2188,12 @@ var tr = /* @__PURE__ */ O({
|
|
|
2185
2188
|
function a(e) {
|
|
2186
2189
|
i.exposed = e ?? {};
|
|
2187
2190
|
}
|
|
2188
|
-
let o =
|
|
2191
|
+
let o = S(() => n.dicCode ? (n.options && p.error("TRadioGroup: dicCode and options cannot be used together"), vn(n.dicCode).value) : typeof n.options == "string" ? Z(n.options).value : n.options), s = S(() => {
|
|
2189
2192
|
let e = { ...n };
|
|
2190
2193
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
2191
2194
|
e[t] === void 0 && delete e[t];
|
|
2192
2195
|
}), e;
|
|
2193
|
-
}), l =
|
|
2196
|
+
}), l = S(() => {
|
|
2194
2197
|
if (o.value !== void 0 && !c(n.modelValue)) {
|
|
2195
2198
|
let e = o.value.every((e) => typeof (e.value ?? e) == "string"), t = o.value.every((e) => typeof (e.value ?? e) == "number");
|
|
2196
2199
|
if (e) return f(n.modelValue);
|
|
@@ -2198,7 +2201,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2198
2201
|
}
|
|
2199
2202
|
return n.modelValue;
|
|
2200
2203
|
});
|
|
2201
|
-
return (e, t) => (P(),
|
|
2204
|
+
return (e, t) => (P(), C(L(A(z(ot), N(e.$attrs, {
|
|
2202
2205
|
...s.value,
|
|
2203
2206
|
options: o.value,
|
|
2204
2207
|
modelValue: l.value,
|
|
@@ -2281,7 +2284,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2281
2284
|
}
|
|
2282
2285
|
return e;
|
|
2283
2286
|
}
|
|
2284
|
-
}), i =
|
|
2287
|
+
}), i = S(() => {
|
|
2285
2288
|
let e = { ...t };
|
|
2286
2289
|
return delete e.isNumberRange, delete e.decimalPlaces, delete e.max, delete e.min, Object.keys(e).forEach((t) => {
|
|
2287
2290
|
e[t] === void 0 && delete e[t];
|
|
@@ -2290,7 +2293,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2290
2293
|
function o(e) {
|
|
2291
2294
|
a.exposed = e ?? {};
|
|
2292
2295
|
}
|
|
2293
|
-
return (t, a) => (P(),
|
|
2296
|
+
return (t, a) => (P(), C(L(A(z(st), N(t.$attrs, {
|
|
2294
2297
|
...i.value,
|
|
2295
2298
|
ref: o,
|
|
2296
2299
|
modelValue: r.value,
|
|
@@ -2396,67 +2399,68 @@ var tr = /* @__PURE__ */ O({
|
|
|
2396
2399
|
onSearch: { type: Function }
|
|
2397
2400
|
}, lr),
|
|
2398
2401
|
setup(e) {
|
|
2399
|
-
let t = e, n = k();
|
|
2400
|
-
function
|
|
2401
|
-
|
|
2402
|
+
let t = e, n = j("isFormDisabled", S(() => !1)), r = j("isFormReadonly", S(() => !1)), i = k();
|
|
2403
|
+
function a(e) {
|
|
2404
|
+
i.exposed = e ?? {};
|
|
2402
2405
|
}
|
|
2403
|
-
let
|
|
2406
|
+
let o = S(() => {
|
|
2404
2407
|
let e;
|
|
2405
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ? Z(t.options).value : t.options : (t.options && p.error("TSelect: dicCode and options cannot be used together"), e =
|
|
2408
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? Z(t.options).value : t.options : (t.options && p.error("TSelect: dicCode and options cannot be used together"), e = vn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? p.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
2406
2409
|
checkAll: !0,
|
|
2407
2410
|
[t.keys?.label ?? "label"]: "全选"
|
|
2408
2411
|
}) : p.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
2409
|
-
}),
|
|
2410
|
-
if (
|
|
2411
|
-
let e =
|
|
2412
|
+
}), s = S(() => {
|
|
2413
|
+
if (o.value !== void 0) {
|
|
2414
|
+
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");
|
|
2412
2415
|
if (t.multiple) {
|
|
2413
2416
|
if (Array.isArray(t.modelValue)) {
|
|
2414
2417
|
if (r) return t.modelValue.map((e) => c(e) ? e : String(e));
|
|
2415
|
-
if (
|
|
2418
|
+
if (i) return t.modelValue.map((e) => u(e) ? Number(e) : e);
|
|
2416
2419
|
}
|
|
2417
2420
|
} else if (r) return f(t.modelValue);
|
|
2418
|
-
else if (
|
|
2421
|
+
else if (i) return u(t.modelValue) ? Number(t.modelValue) : t.modelValue;
|
|
2419
2422
|
}
|
|
2420
2423
|
return t.modelValue;
|
|
2421
|
-
}),
|
|
2422
|
-
let e = {
|
|
2424
|
+
}), l = S(() => {
|
|
2425
|
+
let e = t.disabled ?? n.value, i = t.readonly ?? r.value, a = {
|
|
2423
2426
|
...t,
|
|
2424
|
-
filterable: t.filterable ??
|
|
2427
|
+
filterable: t.filterable ?? o.value.length > 8,
|
|
2428
|
+
minCollapsedNum: e || i ? 0 : t.minCollapsedNum
|
|
2425
2429
|
};
|
|
2426
|
-
return delete
|
|
2427
|
-
e
|
|
2428
|
-
}),
|
|
2429
|
-
}),
|
|
2430
|
+
return delete a.dicCode, delete a.showCheckAll, delete a.adornment, Object.keys(a).forEach((e) => {
|
|
2431
|
+
a[e] === void 0 && delete a[e];
|
|
2432
|
+
}), a;
|
|
2433
|
+
}), d = F(0);
|
|
2430
2434
|
ke(() => {
|
|
2431
|
-
yt(
|
|
2432
|
-
|
|
2435
|
+
yt(i.exposed.$el, () => {
|
|
2436
|
+
d.value = i.exposed.$el.offsetWidth;
|
|
2433
2437
|
}, { box: "border-box" });
|
|
2434
2438
|
});
|
|
2435
|
-
let
|
|
2436
|
-
if (
|
|
2437
|
-
}),
|
|
2438
|
-
...
|
|
2439
|
-
modelValue:
|
|
2439
|
+
let m = S(() => {
|
|
2440
|
+
if (l.value.scroll?.type === "virtual" && o.value.length > (l.value.scroll?.threshold ?? 150)) return "300px";
|
|
2441
|
+
}), h = S(() => ({
|
|
2442
|
+
...l.value,
|
|
2443
|
+
modelValue: s.value,
|
|
2440
2444
|
onChange: (...e) => {
|
|
2441
2445
|
let [n, ...r] = e, i = c(n) ? "" : n;
|
|
2442
2446
|
t["onUpdate:modelValue"]?.(i), t.onChange?.(i, ...r);
|
|
2443
2447
|
},
|
|
2444
|
-
options:
|
|
2448
|
+
options: o.value,
|
|
2445
2449
|
popupProps: {
|
|
2446
|
-
...
|
|
2450
|
+
...l.value.popupProps ?? {},
|
|
2447
2451
|
overlayInnerStyle: (e, t) => ({
|
|
2448
|
-
...
|
|
2449
|
-
minWidth: `${
|
|
2452
|
+
...m.value === void 0 ? {} : { height: m.value },
|
|
2453
|
+
minWidth: `${d.value}px`,
|
|
2450
2454
|
width: "auto",
|
|
2451
|
-
...typeof
|
|
2455
|
+
...typeof l.value.popupProps?.overlayInnerStyle == "function" ? l.value.popupProps.overlayInnerStyle(e, t) : l.value.popupProps?.overlayInnerStyle ?? {}
|
|
2452
2456
|
})
|
|
2453
2457
|
},
|
|
2454
|
-
ref:
|
|
2455
|
-
})),
|
|
2456
|
-
return (t, n) => e.adornment ? (P(),
|
|
2458
|
+
ref: a
|
|
2459
|
+
})), g = tt;
|
|
2460
|
+
return (t, n) => e.adornment ? (P(), C(L(A(z(g), t.$attrs, {
|
|
2457
2461
|
...e.adornment,
|
|
2458
|
-
default: () => A(z(ct),
|
|
2459
|
-
})), { key: 0 })) : (P(),
|
|
2462
|
+
default: () => A(z(ct), h.value, t.$slots)
|
|
2463
|
+
})), { key: 0 })) : (P(), C(L(A(z(ct), N(t.$attrs, h.value), t.$slots)), { key: 1 }));
|
|
2460
2464
|
}
|
|
2461
2465
|
}), dr = /* @__PURE__ */ O({
|
|
2462
2466
|
inheritAttrs: !1,
|
|
@@ -2500,10 +2504,10 @@ var tr = /* @__PURE__ */ O({
|
|
|
2500
2504
|
onMouseleave: { type: Function },
|
|
2501
2505
|
onPaste: { type: Function },
|
|
2502
2506
|
onRemove: { type: Function }
|
|
2503
|
-
},
|
|
2507
|
+
}, de),
|
|
2504
2508
|
emits: ["update:modelValue"],
|
|
2505
2509
|
setup(e, { emit: t }) {
|
|
2506
|
-
let n = e, r = t, i = j("isFormDisabled",
|
|
2510
|
+
let n = e, r = t, i = j("isFormDisabled", S(() => !1)), a = j("isFormReadonly", S(() => !1)), o = S(() => {
|
|
2507
2511
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
2508
2512
|
return {
|
|
2509
2513
|
...n,
|
|
@@ -2537,7 +2541,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2537
2541
|
function l(e) {
|
|
2538
2542
|
c.exposed = e ?? {};
|
|
2539
2543
|
}
|
|
2540
|
-
let u =
|
|
2544
|
+
let u = S(() => N(s, {
|
|
2541
2545
|
...o.value,
|
|
2542
2546
|
inputProps: {
|
|
2543
2547
|
readonly: !0,
|
|
@@ -2549,7 +2553,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2549
2553
|
placeholder: "请选择用户",
|
|
2550
2554
|
ref: l
|
|
2551
2555
|
}));
|
|
2552
|
-
return (e, t) => (P(),
|
|
2556
|
+
return (e, t) => (P(), C(z(fe), Oe(Ce(u.value)), {
|
|
2553
2557
|
tag: V(({ value: e }) => [E(R(z(Dn)(e).value?.userName), 1)]),
|
|
2554
2558
|
_: 1
|
|
2555
2559
|
}, 16));
|
|
@@ -2633,7 +2637,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2633
2637
|
treeStore: {}
|
|
2634
2638
|
}, fr),
|
|
2635
2639
|
setup(e, { expose: t }) {
|
|
2636
|
-
let n = e, r = Le(), i =
|
|
2640
|
+
let n = e, r = Le(), i = S(() => {
|
|
2637
2641
|
let e = { ...n };
|
|
2638
2642
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
2639
2643
|
e[t] === void 0 && delete e[t];
|
|
@@ -2642,7 +2646,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2642
2646
|
function o(e) {
|
|
2643
2647
|
a.exposed = e ?? {};
|
|
2644
2648
|
}
|
|
2645
|
-
return t({}), (e, t) => (P(),
|
|
2649
|
+
return t({}), (e, t) => (P(), C(L(A(z(lt), N(e.$attrs, {
|
|
2646
2650
|
...i.value,
|
|
2647
2651
|
ref: o
|
|
2648
2652
|
}), e.$slots))));
|
|
@@ -2714,36 +2718,39 @@ var tr = /* @__PURE__ */ O({
|
|
|
2714
2718
|
onSearch: {}
|
|
2715
2719
|
},
|
|
2716
2720
|
setup(e) {
|
|
2717
|
-
let t = e, n =
|
|
2718
|
-
let e =
|
|
2719
|
-
|
|
2721
|
+
let t = e, n = j("isFormDisabled", S(() => !1)), r = j("isFormReadonly", S(() => !1)), i = S(() => typeof t.data == "string" ? Z(t.data).value : t.data), a = S(() => {
|
|
2722
|
+
let e = t.disabled ?? n.value, i = t.readonly ?? r.value, a = {
|
|
2723
|
+
...t,
|
|
2724
|
+
minCollapsedNum: e || i ? 0 : t.minCollapsedNum
|
|
2725
|
+
};
|
|
2726
|
+
return a.treeProps = {
|
|
2720
2727
|
...fr,
|
|
2721
2728
|
checkable: !!t.multiple,
|
|
2722
2729
|
expandOnClickNode: !!t.multiple,
|
|
2723
2730
|
icon: fr.icon(),
|
|
2724
|
-
...
|
|
2725
|
-
}, Object.keys(
|
|
2726
|
-
e
|
|
2727
|
-
}),
|
|
2728
|
-
}),
|
|
2729
|
-
function
|
|
2730
|
-
|
|
2731
|
+
...a.treeProps ?? {}
|
|
2732
|
+
}, Object.keys(a).forEach((e) => {
|
|
2733
|
+
a[e] === void 0 && delete a[e];
|
|
2734
|
+
}), a;
|
|
2735
|
+
}), o = k();
|
|
2736
|
+
function s(e) {
|
|
2737
|
+
o.exposed = e ?? {};
|
|
2731
2738
|
}
|
|
2732
|
-
let
|
|
2739
|
+
let c = F(0);
|
|
2733
2740
|
return ke(() => {
|
|
2734
|
-
yt(
|
|
2735
|
-
|
|
2741
|
+
yt(o.exposed.$el, () => {
|
|
2742
|
+
c.value = o.exposed.$el.offsetWidth;
|
|
2736
2743
|
}, { box: "border-box" });
|
|
2737
|
-
}), (e, t) => (P(),
|
|
2738
|
-
...
|
|
2739
|
-
data:
|
|
2740
|
-
ref:
|
|
2744
|
+
}), (e, t) => (P(), C(L(A(z(ut), N(e.$attrs, {
|
|
2745
|
+
...a.value,
|
|
2746
|
+
data: i.value,
|
|
2747
|
+
ref: s,
|
|
2741
2748
|
popupProps: {
|
|
2742
|
-
...
|
|
2749
|
+
...a.value.popupProps ?? {},
|
|
2743
2750
|
overlayInnerStyle: (e, t) => ({
|
|
2744
2751
|
width: "auto",
|
|
2745
|
-
minWidth: `${
|
|
2746
|
-
...typeof
|
|
2752
|
+
minWidth: `${c.value}px`,
|
|
2753
|
+
...typeof a.value.popupProps?.overlayInnerStyle == "function" ? a.value.popupProps.overlayInnerStyle(e, t) : a.value.popupProps?.overlayInnerStyle ?? {}
|
|
2747
2754
|
})
|
|
2748
2755
|
}
|
|
2749
2756
|
}), e.$slots))));
|
|
@@ -2751,7 +2758,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2751
2758
|
}), hr = ".xlsx,.xls", gr = { class: "flex items-center" }, _r = {
|
|
2752
2759
|
key: 1,
|
|
2753
2760
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
2754
|
-
}, vr = /*#__PURE__*/
|
|
2761
|
+
}, vr = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
2755
2762
|
inheritAttrs: !1,
|
|
2756
2763
|
name: "TUpload",
|
|
2757
2764
|
__name: "upload",
|
|
@@ -2820,7 +2827,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2820
2827
|
onWaitingUploadFilesChange: {}
|
|
2821
2828
|
},
|
|
2822
2829
|
setup(e, { expose: t }) {
|
|
2823
|
-
let n = e, r =
|
|
2830
|
+
let n = e, r = S(() => {
|
|
2824
2831
|
if (n.requestMethod !== void 0) return (e) => new Promise((t) => {
|
|
2825
2832
|
typeof n.requestMethod == "function" ? n.requestMethod(e).then((e) => {
|
|
2826
2833
|
t({
|
|
@@ -2853,7 +2860,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2853
2860
|
function i() {
|
|
2854
2861
|
typeof n.downloadTemplate == "string" ? Y(n.downloadTemplate) : n.downloadTemplate.send();
|
|
2855
2862
|
}
|
|
2856
|
-
let a =
|
|
2863
|
+
let a = S(() => {
|
|
2857
2864
|
let e = { ...n };
|
|
2858
2865
|
return ["image", "image-flow"].includes(e.theme) && (e.accept = e.accept === ".xlsx,.xls" ? "image/*" : e.accept), Object.keys(e).forEach((t) => {
|
|
2859
2866
|
e[t] === void 0 && delete e[t];
|
|
@@ -2862,7 +2869,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2862
2869
|
function s(e) {
|
|
2863
2870
|
o.exposed = e ?? {};
|
|
2864
2871
|
}
|
|
2865
|
-
return t({}), (t, o) => (P(),
|
|
2872
|
+
return t({}), (t, o) => (P(), C(L(A(z(dt), N(t.$attrs, {
|
|
2866
2873
|
...a.value,
|
|
2867
2874
|
requestMethod: r.value,
|
|
2868
2875
|
ref: s
|
|
@@ -2876,7 +2883,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2876
2883
|
default: V(() => [E(R(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
2877
2884
|
_: 2
|
|
2878
2885
|
}, 1024),
|
|
2879
|
-
e.downloadTemplate ? (P(),
|
|
2886
|
+
e.downloadTemplate ? (P(), C(z($), {
|
|
2880
2887
|
key: 0,
|
|
2881
2888
|
theme: "primary",
|
|
2882
2889
|
variant: "outline",
|
|
@@ -2884,13 +2891,13 @@ var tr = /* @__PURE__ */ O({
|
|
|
2884
2891
|
}, {
|
|
2885
2892
|
default: V(() => [...o[0] ||= [E("下载模板", -1)]]),
|
|
2886
2893
|
_: 1
|
|
2887
|
-
})) :
|
|
2888
|
-
n.tips ? (P(),
|
|
2894
|
+
})) : w("v-if", !0),
|
|
2895
|
+
n.tips ? (P(), T("span", _r, R(n.tips), 1)) : w("v-if", !0)
|
|
2889
2896
|
])]),
|
|
2890
2897
|
key: "0"
|
|
2891
2898
|
} : void 0]), 1024));
|
|
2892
2899
|
}
|
|
2893
|
-
}), [["__scopeId", "data-v-51889a3b"]]), yr = /*#__PURE__*/
|
|
2900
|
+
}), [["__scopeId", "data-v-51889a3b"]]), yr = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
2894
2901
|
inheritAttrs: !1,
|
|
2895
2902
|
name: "TForm",
|
|
2896
2903
|
__name: "form",
|
|
@@ -2920,7 +2927,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2920
2927
|
onValidate: { type: Function }
|
|
2921
2928
|
}, Ft),
|
|
2922
2929
|
setup(e, { expose: t }) {
|
|
2923
|
-
let n = e, { customerFormItemComponentInitialValueMap: r = /* @__PURE__ */ new Map(), customerFormItemComponentMap: a = /* @__PURE__ */ new Map() } = Ct, o = k(), s = F(null), l =
|
|
2930
|
+
let n = e, { customerFormItemComponentInitialValueMap: r = /* @__PURE__ */ new Map(), customerFormItemComponentMap: a = /* @__PURE__ */ new Map() } = Ct, o = k(), s = F(null), l = S(() => n.items.map((e) => {
|
|
2924
2931
|
if (typeof e.__others == "function") {
|
|
2925
2932
|
let t = {
|
|
2926
2933
|
...e,
|
|
@@ -2969,27 +2976,27 @@ var tr = /* @__PURE__ */ O({
|
|
|
2969
2976
|
});
|
|
2970
2977
|
let d = /* @__PURE__ */ new Map(), f = {
|
|
2971
2978
|
TCascader: tr,
|
|
2972
|
-
TCheckbox:
|
|
2979
|
+
TCheckbox: se,
|
|
2973
2980
|
TCheckboxGroup: nr,
|
|
2974
|
-
TColorPicker:
|
|
2981
|
+
TColorPicker: ce,
|
|
2975
2982
|
TCron: rr,
|
|
2976
2983
|
TDatePicker: ir,
|
|
2977
|
-
TInput:
|
|
2984
|
+
TInput: ue,
|
|
2978
2985
|
TInputNumber: or,
|
|
2979
2986
|
TRadioGroup: sr,
|
|
2980
2987
|
TRangeInput: cr,
|
|
2981
2988
|
TSelect: ur,
|
|
2982
2989
|
TSelectSysUser: dr,
|
|
2983
|
-
TSlider:
|
|
2984
|
-
TSwitch:
|
|
2985
|
-
TTagInput:
|
|
2986
|
-
TTextarea:
|
|
2990
|
+
TSlider: pe,
|
|
2991
|
+
TSwitch: me,
|
|
2992
|
+
TTagInput: fe,
|
|
2993
|
+
TTextarea: he,
|
|
2987
2994
|
TTree: pr,
|
|
2988
2995
|
TTreeSelect: mr,
|
|
2989
2996
|
TUpload: vr
|
|
2990
2997
|
};
|
|
2991
2998
|
function m(e) {
|
|
2992
|
-
return typeof e == "string" ? a.has(e) ? (d.has(e) || d.set(e, Se(a.get(e))), d.get(e)) : f[e] :
|
|
2999
|
+
return typeof e == "string" ? a.has(e) ? (d.has(e) || d.set(e, Se(a.get(e))), d.get(e)) : f[e] : ue;
|
|
2993
3000
|
}
|
|
2994
3001
|
function h(e) {
|
|
2995
3002
|
let t = {};
|
|
@@ -3019,7 +3026,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
3019
3026
|
whitespace: !0
|
|
3020
3027
|
}), t;
|
|
3021
3028
|
}
|
|
3022
|
-
let _ =
|
|
3029
|
+
let _ = S(() => {
|
|
3023
3030
|
let e = { ...n };
|
|
3024
3031
|
if (e.rules !== void 0) {
|
|
3025
3032
|
let t = {};
|
|
@@ -3082,21 +3089,21 @@ var tr = /* @__PURE__ */ O({
|
|
|
3082
3089
|
let t = e ?? {};
|
|
3083
3090
|
s.value = t, o.exposed = t;
|
|
3084
3091
|
}
|
|
3085
|
-
let
|
|
3092
|
+
let te = Pe();
|
|
3086
3093
|
ke(() => {
|
|
3087
|
-
|
|
3088
|
-
|
|
3094
|
+
te.value = o.exposed.$el.getElementsByClassName("t-form__label"), y(), vt(o.exposed.$el, () => {
|
|
3095
|
+
y();
|
|
3089
3096
|
}, {
|
|
3090
3097
|
attributeFilter: ["class"],
|
|
3091
3098
|
characterData: !0,
|
|
3092
3099
|
childList: !0,
|
|
3093
3100
|
subtree: !0
|
|
3094
3101
|
}), yt(o.exposed.$el, () => {
|
|
3095
|
-
|
|
3102
|
+
y();
|
|
3096
3103
|
});
|
|
3097
3104
|
});
|
|
3098
|
-
function
|
|
3099
|
-
let e = [...
|
|
3105
|
+
function y() {
|
|
3106
|
+
let e = [...te.value];
|
|
3100
3107
|
if (e.forEach((e) => {
|
|
3101
3108
|
e.style.minWidth = "auto";
|
|
3102
3109
|
}), n.labelAlign === "top" || !n.autoLabelWidth) return;
|
|
@@ -3107,12 +3114,12 @@ var tr = /* @__PURE__ */ O({
|
|
|
3107
3114
|
e.style.minWidth = `${t}px`;
|
|
3108
3115
|
});
|
|
3109
3116
|
}
|
|
3110
|
-
return Ae("formData", n.data), Ae("formExposed", s), Ae("isFormDisabled",
|
|
3117
|
+
return Ae("formData", n.data), Ae("formExposed", s), Ae("isFormDisabled", S(() => n.disabled)), Ae("isFormReadonly", S(() => n.readonly)), t({}), (t, n) => (P(), T(ve, null, [w(" eslint-disable vue/no-mutating-props "), (P(), C(L(z(Ze)), N(N(t.$attrs, {
|
|
3111
3118
|
..._.value,
|
|
3112
3119
|
ref: ee
|
|
3113
3120
|
}), { "label-width": "fit-content" }), {
|
|
3114
|
-
default: V(() => [(P(!0),
|
|
3115
|
-
default: V(() => [n.slot ? Me(t.$slots, n.slot, {}, void 0, !0, 0) : (P(),
|
|
3121
|
+
default: V(() => [(P(!0), T(ve, null, I(l.value.filter((e) => e.show !== !1), (n) => (P(), C(z(Qe), N({ key: n.model ?? n.slot }, { ref_for: !0 }, N({ ...g(n) }, { class: { no_label_item: z(c)(n._label) } }), { name: n.model }), {
|
|
3122
|
+
default: V(() => [n.slot ? Me(t.$slots, n.slot, {}, void 0, !0, 0) : (P(), C(L(m(n.component)), N({
|
|
3116
3123
|
key: 1,
|
|
3117
3124
|
modelValue: e.data[n.model],
|
|
3118
3125
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
@@ -3141,8 +3148,8 @@ var tr = /* @__PURE__ */ O({
|
|
|
3141
3148
|
_label: "新密码",
|
|
3142
3149
|
_required: !0,
|
|
3143
3150
|
_rules: [{
|
|
3144
|
-
message:
|
|
3145
|
-
pattern:
|
|
3151
|
+
message: _e,
|
|
3152
|
+
pattern: ge
|
|
3146
3153
|
}],
|
|
3147
3154
|
component: "TInput",
|
|
3148
3155
|
model: "newPassword",
|
|
@@ -3162,7 +3169,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
3162
3169
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
3163
3170
|
], i = Re("form");
|
|
3164
3171
|
function a() {
|
|
3165
|
-
|
|
3172
|
+
G().close(n.name);
|
|
3166
3173
|
}
|
|
3167
3174
|
async function o() {
|
|
3168
3175
|
let e = await i.value.validate();
|
|
@@ -3177,7 +3184,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
3177
3184
|
}
|
|
3178
3185
|
}), An().logout();
|
|
3179
3186
|
}
|
|
3180
|
-
return t({ handleSubmit: o }), (e, t) => (P(),
|
|
3187
|
+
return t({ handleSubmit: o }), (e, t) => (P(), C(z(yr), {
|
|
3181
3188
|
ref: "form",
|
|
3182
3189
|
items: r,
|
|
3183
3190
|
"label-align": "right",
|
|
@@ -3218,10 +3225,10 @@ var Sr = {
|
|
|
3218
3225
|
function r() {
|
|
3219
3226
|
e.value = bt(Sr), t.value = [], n.value = [];
|
|
3220
3227
|
}
|
|
3221
|
-
let i =
|
|
3228
|
+
let i = S(() => e.value.admin), a = F("");
|
|
3222
3229
|
async function o(r = !0) {
|
|
3223
3230
|
let i = await xr();
|
|
3224
|
-
e.value = i.user, a.value !== e.value.userId &&
|
|
3231
|
+
e.value = i.user, a.value !== e.value.userId && G().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await cn().getRouters();
|
|
3225
3232
|
}
|
|
3226
3233
|
B(() => e.value.needChangePwd, (e) => {
|
|
3227
3234
|
e === 1 && VITE_FORCE_PWD_CHANGE && Ee(() => {
|
|
@@ -3258,7 +3265,7 @@ var Sr = {
|
|
|
3258
3265
|
roles: n,
|
|
3259
3266
|
userInfo: e
|
|
3260
3267
|
};
|
|
3261
|
-
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/
|
|
3268
|
+
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
3262
3269
|
inheritAttrs: !1,
|
|
3263
3270
|
name: "TButton",
|
|
3264
3271
|
__name: "button",
|
|
@@ -3333,7 +3340,7 @@ var Sr = {
|
|
|
3333
3340
|
}, { immediate: !0 }), B(u, (e) => {
|
|
3334
3341
|
e && c.value && (s.value = !0);
|
|
3335
3342
|
});
|
|
3336
|
-
let p =
|
|
3343
|
+
let p = S(() => i.loading === void 0 ? i.autoLoading ? s.value : !1 : i.loading), m = S(() => {
|
|
3337
3344
|
let e = {
|
|
3338
3345
|
...i,
|
|
3339
3346
|
...o(),
|
|
@@ -3350,7 +3357,7 @@ var Sr = {
|
|
|
3350
3357
|
function _() {
|
|
3351
3358
|
a.value = l.value?.textContent ?? "";
|
|
3352
3359
|
}
|
|
3353
|
-
let v =
|
|
3360
|
+
let v = S(() => {
|
|
3354
3361
|
if (!i.autoIcon || a.value.trim() === "") return;
|
|
3355
3362
|
let e = {
|
|
3356
3363
|
"mdi:plus": [
|
|
@@ -3423,10 +3430,10 @@ var Sr = {
|
|
|
3423
3430
|
break;
|
|
3424
3431
|
}
|
|
3425
3432
|
return t;
|
|
3426
|
-
}), ee = Fe(),
|
|
3433
|
+
}), ee = Fe(), te = S(() => N(ee, {
|
|
3427
3434
|
...m.value,
|
|
3428
3435
|
ref: g
|
|
3429
|
-
}, { class: "flex-shrink-0" })),
|
|
3436
|
+
}, { class: "flex-shrink-0" })), y = S(() => {
|
|
3430
3437
|
if (i.popconfirm) return {
|
|
3431
3438
|
...i.popconfirm,
|
|
3432
3439
|
onVisibleChange: (...e) => {
|
|
@@ -3434,8 +3441,8 @@ var Sr = {
|
|
|
3434
3441
|
}
|
|
3435
3442
|
};
|
|
3436
3443
|
});
|
|
3437
|
-
return (r, i) => z(Q)().checkPermissions(e.permission) ? (P(),
|
|
3438
|
-
default: V(() => [(P(),
|
|
3444
|
+
return (r, i) => z(Q)().checkPermissions(e.permission) ? (P(), T(ve, { key: 0 }, [y.value ? (P(), C(z(n), Oe(N({ key: 0 }, y.value)), {
|
|
3445
|
+
default: V(() => [(P(), C(L(A(z(He), te.value)), {
|
|
3439
3446
|
onVnodeMounted: _,
|
|
3440
3447
|
onVnodeUpdated: _
|
|
3441
3448
|
}, xe({ _: 2 }, [e.icon || v.value ? {
|
|
@@ -3447,7 +3454,7 @@ var Sr = {
|
|
|
3447
3454
|
fn: V((t) => [Me(r.$slots, e, Oe(Ce(t)), void 0, !0)])
|
|
3448
3455
|
}))]), 1536))]),
|
|
3449
3456
|
_: 3
|
|
3450
|
-
}, 16)) : (P(),
|
|
3457
|
+
}, 16)) : (P(), C(L(A(z(He), te.value)), {
|
|
3451
3458
|
key: 1,
|
|
3452
3459
|
onVnodeMounted: _,
|
|
3453
3460
|
onVnodeUpdated: _
|
|
@@ -3458,7 +3465,7 @@ var Sr = {
|
|
|
3458
3465
|
} : void 0, I(Object.keys(r.$slots), (e) => ({
|
|
3459
3466
|
name: e,
|
|
3460
3467
|
fn: V((t) => [Me(r.$slots, e, Oe(Ce(t)), void 0, !0)])
|
|
3461
|
-
}))]), 1536))], 64)) :
|
|
3468
|
+
}))]), 1536))], 64)) : w("v-if", !0);
|
|
3462
3469
|
}
|
|
3463
3470
|
}), [["__scopeId", "data-v-54ab3a55"]]), Cr = /* @__PURE__ */ O({
|
|
3464
3471
|
name: "TProvider",
|
|
@@ -3482,7 +3489,7 @@ var Sr = {
|
|
|
3482
3489
|
variant: "text"
|
|
3483
3490
|
})
|
|
3484
3491
|
} };
|
|
3485
|
-
return (e, n) => (P(),
|
|
3492
|
+
return (e, n) => (P(), C(z(ft), {
|
|
3486
3493
|
"empty-values": [""],
|
|
3487
3494
|
locale: z(Nt),
|
|
3488
3495
|
"value-on-clear": "",
|
|
@@ -3496,4 +3503,4 @@ var Sr = {
|
|
|
3496
3503
|
}, 8, ["locale"]));
|
|
3497
3504
|
}
|
|
3498
3505
|
});
|
|
3499
|
-
export {
|
|
3506
|
+
export { un as $, qn as A, q as B, Qn as C, Xn as D, er as E, Vn as F, Tn as G, Nn as H, Hn as I, gn as J, En as K, Un as L, Yn as M, Y as N, Gn as O, J as P, dn as Q, Rn as R, tr as S, $n as T, Mn as U, In as V, An as W, vn as X, _n as Y, yn as Z, or as _, br as a, Zt as at, rr as b, hr as c, Gt as ct, fr as d, zt as dt, $t as et, dr as f, Bt as ft, sr as g, cr as h, Pt as ht, Q as i, U as it, Jn as j, Kn as k, mr as l, Ut as lt, lr as m, Ft as mt, $ as n, G as nt, yr as o, qt as ot, ur as p, It as pt, Dn as q, xr as r, W as rt, vr as s, Kt as st, Cr as t, cn as tt, pr as u, Wt as ut, ar as v, Z as w, nr as x, ir as y, Ln as z };
|