dlzn-ui 2.0.31 → 2.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/Index-CubAI_w9.css +1 -0
- package/assets/LoginBg-DLvbYArg.css +1 -0
- package/assets/color-picker-DD6DUdBH.css +1 -0
- package/assets/css/tdesign-reset.css +1 -1
- package/assets/provider-CX7AzL0K.css +2 -0
- package/chunks/{AssignUser-DZvNJ6_v.mjs → AssignUser-BZPMi3Wa.mjs} +3 -3
- package/chunks/{Common-DZTByJ2b.mjs → Common-BDKC6VDe.mjs} +1 -1
- package/chunks/{Day-D47hdyiq.mjs → Day-B4JwxB6u.mjs} +1 -1
- package/chunks/{DictTypeDetail--OE6JJ5s.mjs → DictTypeDetail-oLXx8xwa.mjs} +2 -2
- package/chunks/{Hour-CkkZZ5R6.mjs → Hour-BoWSVKlZ.mjs} +1 -1
- package/chunks/{Index-0-JzYXfb.mjs → Index-B-O5KGpr.mjs} +1 -1
- package/chunks/{Index-C_JjguDb.mjs → Index-BGyyQolK.mjs} +1 -1
- package/chunks/Index-But4jrnW.mjs +61 -0
- package/chunks/{Index-CSNXgzLe.mjs → Index-CHwBzoZd.mjs} +1 -1
- package/chunks/{Index-DsO5SwJk.mjs → Index-Ky12ZH7D.mjs} +1 -1
- package/chunks/{Index-2AaTfz2L.mjs → Index-qbTJrnid.mjs} +1 -1
- package/chunks/{IndexItem-CUgu9du0.mjs → IndexItem-DwRl6GmT.mjs} +1 -1
- package/chunks/{Log-DTQeRVz1.mjs → Log-DDpSyKvQ.mjs} +2 -2
- package/chunks/LoginBg-CsiJm3HE.mjs +32 -0
- package/chunks/{Minute-Dl21u3sJ.mjs → Minute-BlsmsI2Z.mjs} +1 -1
- package/chunks/{Month-DIgPlTW3.mjs → Month-BKhOwTpZ.mjs} +1 -1
- package/chunks/{Second-C9JrfdJq.mjs → Second-C8Lw1Sc4.mjs} +1 -1
- package/chunks/{SelectDept-BdP4Fevb.mjs → SelectDept-C6b7jMR5.mjs} +2 -2
- package/chunks/{SelectMenu-C8uTKPyO.mjs → SelectMenu-BRJngDFJ.mjs} +2 -2
- package/chunks/{SelectUser-Y-2MCvw3.mjs → SelectUser-DUSo8Kdx.mjs} +2 -2
- package/chunks/{UserInfo-BXDXYNSa.mjs → UserInfo--gKGxPoB.mjs} +1 -1
- package/chunks/{app-C4vupHU4.mjs → app-BcwgRDZ-.mjs} +1 -1
- package/chunks/{checkbox-DsFECVao.mjs → checkbox-Drb_LAT6.mjs} +0 -9
- package/chunks/color-picker-BVropPi4.mjs +77 -0
- package/chunks/{custom-page-list-Dkjf1nLR.mjs → custom-page-list-B657p9BV.mjs} +4 -4
- package/chunks/{custom-page-table-y7emjJnS.mjs → custom-page-table-B4Glo_zD.mjs} +2 -2
- package/chunks/{overview-YqvRmr0O.mjs → overview-2_X06o48.mjs} +1 -1
- package/chunks/{page-list-DUYDkWcj.mjs → page-list-By3axT7k.mjs} +3 -3
- package/chunks/{page-query-oFiHpSCX.mjs → page-query-BOHkwTVH.mjs} +1 -1
- package/chunks/{page-table-C1hMMXID.mjs → page-table-BbDMZJp_.mjs} +3 -3
- package/chunks/{pagination-CQPdVoCT.mjs → pagination-Bt_B8E8C.mjs} +1 -1
- package/chunks/{provider-BhFm5rvy.mjs → provider-C_p0YvSj.mjs} +370 -350
- package/chunks/{table-CqT9HbMR.mjs → table-BRexgHvh.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox/index.mjs +1 -1
- package/components/checkbox/src/checkbox.d.ts +1 -1
- package/components/checkbox/src/checkbox.mjs +1 -1
- package/components/checkbox/src/checkbox.vue.d.ts +0 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/color-picker/index.d.ts +2 -0
- package/components/color-picker/index.mjs +2 -0
- package/components/color-picker/src/color-picker.d.ts +16 -0
- package/components/color-picker/src/color-picker.mjs +2 -0
- package/components/color-picker/src/color-picker.vue.d.ts +12 -0
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/cron/src/cron.vue.d.ts +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.d.ts +2 -0
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +10 -10
- package/components/input/src/input.vue.d.ts +1 -1
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.d.ts +97 -45
- 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/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/constants/index.d.ts +1 -1
- package/constants/index.mjs +2 -2
- package/constants/{others.d.ts → regs.d.ts} +1 -0
- package/constants/{others.mjs → regs.mjs} +3 -3
- package/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +26 -10
- 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/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ColorPicker/Index.mjs +2 -0
- package/plugins/tableRenders/cell/ColorPicker/Index.vue.d.ts +21 -0
- package/plugins/tableRenders/cell/ColorPicker/index.d.ts +2 -0
- package/plugins/tableRenders/cell/ColorPicker/index2.mjs +0 -0
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Input/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Input/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.d.ts +2 -0
- package/plugins/tableRenders/cell/index.mjs +45 -43
- package/router/index.mjs +1 -1
- package/store/modules/common.d.ts +3 -0
- 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/types/env.d.ts +1 -0
- package/utils/boolean.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/notice/index.mjs +2 -2
- package/views/system/post/index.mjs +2 -2
- package/views/system/role/index.mjs +5 -5
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +4 -4
- package/views/tool/job/index.mjs +3 -3
- package/views/tool/job/modules/Log.mjs +1 -1
- package/assets/Index-D8NszkhN.css +0 -1
- package/assets/LoginBg-XqWOv7dJ.css +0 -1
- package/assets/provider-XeFy2v3X.css +0 -2
- package/chunks/LoginBg-D3SWh-C6.mjs +0 -30
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import '../assets/css-BPkXehJY.css';import '../assets/provider-
|
|
1
|
+
import '../assets/css-BPkXehJY.css';import '../assets/provider-CX7AzL0K.css';/* empty css */
|
|
2
2
|
import { t as e } from "./icon-COjp1yrx.mjs";
|
|
3
3
|
import "../components/icon/index.mjs";
|
|
4
4
|
import { t } from "./popconfirm-Bc93K9mT.mjs";
|
|
5
5
|
import "../components/popconfirm/index.mjs";
|
|
6
6
|
import { n, t as r } from "./useAppContext-D47amIp5.mjs";
|
|
7
7
|
import i from "../plugins/autoImport/$loading/index.mjs";
|
|
8
|
-
import { t as a } from "./checkbox-
|
|
8
|
+
import { t as a } from "./checkbox-Drb_LAT6.mjs";
|
|
9
9
|
import "../components/checkbox/index.mjs";
|
|
10
10
|
import o from "../plugins/autoImport/$msg/index.mjs";
|
|
11
11
|
import s from "../layout/index.mjs";
|
|
@@ -21,42 +21,44 @@ import "../components/image/index.mjs";
|
|
|
21
21
|
import m from "../views/index.mjs";
|
|
22
22
|
import { t as h } from "./MenuNode-6Nca-v9i.mjs";
|
|
23
23
|
import ee from "../hooks/useContextMenu/index.mjs";
|
|
24
|
-
import { passwordReg as g, passwordRegMessage as _ } from "../constants/
|
|
24
|
+
import { passwordReg as g, passwordRegMessage as _ } from "../constants/regs.mjs";
|
|
25
25
|
import { isFalsy as v, isValidNumberString as y } from "../utils/boolean.mjs";
|
|
26
26
|
import { stringDisplay as b } from "../utils/string.mjs";
|
|
27
27
|
import { saveAs as x } from "../utils/tool.mjs";
|
|
28
28
|
import "../utils/index.mjs";
|
|
29
29
|
import te, { useClearList as ne } from "../hooks/useList/index.mjs";
|
|
30
|
-
import {
|
|
30
|
+
import { t as re } from "./color-picker-BVropPi4.mjs";
|
|
31
|
+
import "../components/color-picker/index.mjs";
|
|
32
|
+
import { n as ie, t as ae } from "./input-UQjpNb61.mjs";
|
|
31
33
|
import "../components/input/index.mjs";
|
|
32
|
-
import { t as
|
|
34
|
+
import { t as oe } from "./date-picker-D15OhWnK.mjs";
|
|
33
35
|
import "../components/date-picker/index.mjs";
|
|
34
|
-
import { t as
|
|
36
|
+
import { t as se } from "./input-number-q9JM7-Uo.mjs";
|
|
35
37
|
import "../components/input-number/index.mjs";
|
|
36
|
-
import { t as
|
|
38
|
+
import { t as ce } from "./range-input-CkZteidJ.mjs";
|
|
37
39
|
import "../components/range-input/index.mjs";
|
|
38
|
-
import { n as
|
|
40
|
+
import { n as le, t as ue } from "./tag-input-BuAFWI1F.mjs";
|
|
39
41
|
import "../components/tag-input/index.mjs";
|
|
40
|
-
import { t as
|
|
42
|
+
import { t as de } from "./slider-DSeKLd2m.mjs";
|
|
41
43
|
import "../components/slider/index.mjs";
|
|
42
|
-
import { t as
|
|
44
|
+
import { t as fe } from "./switch-DNPmkfa_.mjs";
|
|
43
45
|
import "../components/switch/index.mjs";
|
|
44
|
-
import { t as
|
|
46
|
+
import { t as pe } from "./textarea-CYirMH7f.mjs";
|
|
45
47
|
import "../components/textarea/index.mjs";
|
|
46
|
-
import { Fragment as
|
|
48
|
+
import { Fragment as me, KeepAlive as he, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as ge, createSlots as _e, createTextVNode as E, createVNode as D, defineAsyncComponent as ve, defineComponent as O, getCurrentInstance as k, guardReactiveProps as A, h as j, inject as ye, markRaw as be, mergeDefaults as M, mergeProps as N, nextTick as P, normalizeClass as xe, normalizeProps as F, onMounted as Se, openBlock as I, provide as Ce, reactive as we, ref as L, renderList as R, renderSlot as Te, resolveComponent as Ee, resolveDynamicComponent as z, shallowRef as De, toDisplayString as B, unref as V, useAttrs as Oe, useSlots as ke, useTemplateRef as Ae, watch as H, withCtx as U, withModifiers as je } from "vue";
|
|
47
49
|
import { Breadcrumb as Me, BreadcrumbItem as Ne, Button as Pe, CheckboxGroup as Fe, ConfigProvider as Ie, Content as Le, DialogPlugin as Re, Drawer as ze, DrawerPlugin as Be, Dropdown as Ve, Form as He, FormItem as Ue, HeadMenu as We, Header as Ge, InputAdornment as Ke, Layout as qe, Menu as Je, MenuItem as Ye, RadioGroup as Xe, Select as Ze, Tree as Qe, TreeSelect as $e, Upload as et } from "tdesign-vue-next";
|
|
48
50
|
import { ElConfigProvider as tt } from "element-plus";
|
|
49
|
-
import { useElementSize as nt, useElementVisibility as rt,
|
|
50
|
-
import { cloneDeep as
|
|
51
|
-
import { defineStore as
|
|
52
|
-
import { createRouter as
|
|
53
|
-
import
|
|
54
|
-
import { createAlova as
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
51
|
+
import { useElementSize as nt, useElementVisibility as rt, useFavicon as it, useFocus as at, useMutationObserver as ot, useResizeObserver as st } from "@vueuse/core";
|
|
52
|
+
import { cloneDeep as ct, isPlainObject as lt } from "lodash-es";
|
|
53
|
+
import { defineStore as ut } from "pinia";
|
|
54
|
+
import { createRouter as dt, createWebHistory as ft, useRoute as W, useRouter as pt } from "vue-router";
|
|
55
|
+
import mt from "virtual:dlzn-ui/app-params";
|
|
56
|
+
import { createAlova as ht } from "alova";
|
|
57
|
+
import gt from "alova/fetch";
|
|
58
|
+
import _t from "alova/vue";
|
|
59
|
+
import vt from "path-browserify";
|
|
58
60
|
//#region ../../node_modules/.pnpm/element-plus@2.14.5_vue@3.5.41/node_modules/element-plus/es/locale/lang/zh-cn.mjs
|
|
59
|
-
var
|
|
61
|
+
var yt = {
|
|
60
62
|
name: "zh-cn",
|
|
61
63
|
el: {
|
|
62
64
|
breadcrumb: { label: "面包屑" },
|
|
@@ -237,12 +239,12 @@ var vt = {
|
|
|
237
239
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
238
240
|
}
|
|
239
241
|
}
|
|
240
|
-
},
|
|
242
|
+
}, bt = {
|
|
241
243
|
autoIcon: !0,
|
|
242
244
|
autoLoading: !0,
|
|
243
245
|
autoTheme: !0,
|
|
244
246
|
loading: void 0
|
|
245
|
-
},
|
|
247
|
+
}, xt = {
|
|
246
248
|
autoLabelWidth: !0,
|
|
247
249
|
colon: !0,
|
|
248
250
|
data: () => we({}),
|
|
@@ -258,30 +260,43 @@ var vt = {
|
|
|
258
260
|
};
|
|
259
261
|
//#endregion
|
|
260
262
|
//#region ../../packages/dlzn-ui/store/modules/common.ts
|
|
261
|
-
function
|
|
262
|
-
return Y.Get("
|
|
263
|
+
function St() {
|
|
264
|
+
return VITE_APP_ID === "1" ? Y.Get("yq/oemConfig/getByDomain/baidu.com", {
|
|
265
|
+
meta: { useToken: !1 },
|
|
266
|
+
transform(e) {
|
|
267
|
+
return {
|
|
268
|
+
appName: e.oemName,
|
|
269
|
+
logo: e.logo,
|
|
270
|
+
version: ""
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
}) : Y.Get("common/appInfo", { meta: {
|
|
263
274
|
useFailMsg: !1,
|
|
264
|
-
useLoading: !1,
|
|
265
275
|
useSysFailMsg: !1,
|
|
266
276
|
useToken: !1
|
|
267
277
|
} });
|
|
268
278
|
}
|
|
269
|
-
var
|
|
270
|
-
let e =
|
|
271
|
-
appName:
|
|
279
|
+
var G = ut("common", () => {
|
|
280
|
+
let e = L(!0), t = L(250), n = L({
|
|
281
|
+
appName: "",
|
|
282
|
+
logo: "",
|
|
272
283
|
version: ""
|
|
273
284
|
});
|
|
274
|
-
|
|
285
|
+
H(() => n.value.appName, (e) => {
|
|
275
286
|
e && (document.title = e);
|
|
276
|
-
});
|
|
287
|
+
}), it(S(() => n.value.logo || "favicon.ico"));
|
|
277
288
|
function r() {
|
|
278
|
-
|
|
289
|
+
St().then((e) => {
|
|
279
290
|
n.value = e;
|
|
280
291
|
}).catch((e) => {
|
|
281
|
-
|
|
292
|
+
n.value = {
|
|
293
|
+
appName: VITE_APP_NAME,
|
|
294
|
+
logo: "",
|
|
295
|
+
version: ""
|
|
296
|
+
}, console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
|
|
282
297
|
});
|
|
283
298
|
}
|
|
284
|
-
let i =
|
|
299
|
+
let i = L(!0), a = null;
|
|
285
300
|
function o() {
|
|
286
301
|
a !== null && (clearTimeout(a), a = null), i.value = !1, a = setTimeout(() => {
|
|
287
302
|
i.value = !0;
|
|
@@ -295,13 +310,13 @@ var W = lt("common", () => {
|
|
|
295
310
|
isRequestSleep: i,
|
|
296
311
|
requestActive: o
|
|
297
312
|
};
|
|
298
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }),
|
|
299
|
-
let e =
|
|
313
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), K = ut("recentRouters", () => {
|
|
314
|
+
let e = L([]), t = W(), n = pt();
|
|
300
315
|
function r() {
|
|
301
316
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
302
317
|
}
|
|
303
318
|
function i(t, n) {
|
|
304
|
-
let r =
|
|
319
|
+
let r = ct(n), i = e.value.findIndex((e) => e.name === r.name || rn(e.name).meta.title === rn(r.name).meta.title);
|
|
305
320
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
306
321
|
let n = e.value.findIndex((e) => e.name === t);
|
|
307
322
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -332,16 +347,16 @@ var W = lt("common", () => {
|
|
|
332
347
|
}, { persist: { pick: ["recentRouters"] } });
|
|
333
348
|
//#endregion
|
|
334
349
|
//#region ../../packages/dlzn-ui/store/modules/router.ts
|
|
335
|
-
function
|
|
350
|
+
function Ct() {
|
|
336
351
|
return Y.Get("getRouters", { meta: {
|
|
337
352
|
useFailMsg: "获取用户路由失败",
|
|
338
353
|
useLoading: "正在获取用户路由..."
|
|
339
354
|
} });
|
|
340
355
|
}
|
|
341
|
-
function
|
|
356
|
+
function wt(e) {
|
|
342
357
|
return e.children !== void 0 || e.component !== void 0;
|
|
343
358
|
}
|
|
344
|
-
function
|
|
359
|
+
function Tt(e) {
|
|
345
360
|
let t = [];
|
|
346
361
|
return e.forEach((e) => {
|
|
347
362
|
e.path === "/" ? t.push({
|
|
@@ -350,7 +365,7 @@ function wt(e) {
|
|
|
350
365
|
}) : t.push(e);
|
|
351
366
|
}), t;
|
|
352
367
|
}
|
|
353
|
-
function
|
|
368
|
+
function Et(e) {
|
|
354
369
|
let t = (e, n) => {
|
|
355
370
|
let r = [];
|
|
356
371
|
return e.forEach((e) => {
|
|
@@ -374,12 +389,12 @@ function Tt(e) {
|
|
|
374
389
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
375
390
|
}
|
|
376
391
|
}
|
|
377
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
392
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = At(e)), wt(i) && r.push(i);
|
|
378
393
|
}), r;
|
|
379
|
-
}, n =
|
|
394
|
+
}, n = nn();
|
|
380
395
|
return n.children.push(...e), t([n], null);
|
|
381
396
|
}
|
|
382
|
-
function
|
|
397
|
+
function Dt(e) {
|
|
383
398
|
let t = (e) => {
|
|
384
399
|
let n = [...e], r = n.length;
|
|
385
400
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -392,36 +407,36 @@ function Et(e) {
|
|
|
392
407
|
};
|
|
393
408
|
return t(e);
|
|
394
409
|
}
|
|
395
|
-
var
|
|
396
|
-
function
|
|
410
|
+
var Ot = [];
|
|
411
|
+
function kt(e) {
|
|
397
412
|
return `./${e.split("___")[0]}.vue`;
|
|
398
413
|
}
|
|
399
|
-
function
|
|
414
|
+
function At(e) {
|
|
400
415
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
401
|
-
let t = e.component, n = typeof t == "string" ? m[
|
|
416
|
+
let t = e.component, n = typeof t == "string" ? m[kt(t)] : t;
|
|
402
417
|
if (n === void 0) {
|
|
403
|
-
let e = `路由组件${
|
|
418
|
+
let e = `路由组件${kt(t)}不存在`;
|
|
404
419
|
return console.error(e), s["./NotFound.vue"];
|
|
405
420
|
}
|
|
406
|
-
return typeof t == "string" &&
|
|
421
|
+
return typeof t == "string" && Ot.push(kt(t)), () => n().then((t) => ({
|
|
407
422
|
...t.default,
|
|
408
423
|
name: e.name
|
|
409
424
|
}));
|
|
410
425
|
}
|
|
411
426
|
return e.component;
|
|
412
427
|
}
|
|
413
|
-
var
|
|
414
|
-
let e =
|
|
428
|
+
var jt = ut("router", () => {
|
|
429
|
+
let e = L([]), t = pt(), n = Q();
|
|
415
430
|
async function r() {
|
|
416
|
-
let r = await
|
|
417
|
-
|
|
418
|
-
if (!
|
|
431
|
+
let r = await Ct();
|
|
432
|
+
Ot.length = 0, e.value = be(Dt(Et(Tt(r)))), n.isAdmin && Object.keys(m).forEach((e) => {
|
|
433
|
+
if (!Ot.includes(e)) {
|
|
419
434
|
let t = `${e} 页面对应的路由不存在`;
|
|
420
435
|
console.error(t);
|
|
421
436
|
}
|
|
422
437
|
}), t.hasRoute("Index") && t.removeRoute("Index"), e.value.forEach((e) => {
|
|
423
438
|
t.addRoute(e);
|
|
424
|
-
}),
|
|
439
|
+
}), K().init();
|
|
425
440
|
}
|
|
426
441
|
function i() {
|
|
427
442
|
e.value.forEach((e) => {
|
|
@@ -433,11 +448,11 @@ var At = lt("router", () => {
|
|
|
433
448
|
getRouters: r,
|
|
434
449
|
routersRaw: e
|
|
435
450
|
};
|
|
436
|
-
}),
|
|
451
|
+
}), Mt = { class: "ml-2! flex items-center" }, Nt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
437
452
|
__name: "Aside",
|
|
438
453
|
setup(e) {
|
|
439
|
-
let t =
|
|
440
|
-
|
|
454
|
+
let t = W(), n = G(), r = S(() => n.appInfo.appName), i = jt(), a = L([]);
|
|
455
|
+
H(() => t.name, () => {
|
|
441
456
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
442
457
|
a.value.includes(e) || a.value.push(e);
|
|
443
458
|
});
|
|
@@ -445,34 +460,34 @@ var At = lt("router", () => {
|
|
|
445
460
|
let o = S(() => {
|
|
446
461
|
let { hidden: e, parentName: n } = t.meta;
|
|
447
462
|
return n !== "" && e === !0 ? n : t.name;
|
|
448
|
-
});
|
|
449
|
-
return (e, t) => (
|
|
463
|
+
}), s = S(() => n.appInfo.logo || mt.asideTopLogoUrl);
|
|
464
|
+
return (e, t) => (I(), C(V(Je), {
|
|
450
465
|
expanded: a.value,
|
|
451
466
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
452
467
|
class: "w-full!",
|
|
453
468
|
value: o.value
|
|
454
469
|
}, {
|
|
455
|
-
logo:
|
|
470
|
+
logo: U(() => [ge("div", Mt, [D(V(p), {
|
|
456
471
|
class: "logo",
|
|
457
|
-
src:
|
|
472
|
+
src: s.value,
|
|
458
473
|
style: {
|
|
459
474
|
width: "28px",
|
|
460
475
|
height: "28px"
|
|
461
476
|
}
|
|
462
|
-
}, null, 8, ["src"]), D(
|
|
477
|
+
}, null, 8, ["src"]), D(V(d), {
|
|
463
478
|
"animation-speed": 8,
|
|
464
479
|
"class-name": "ml-2 text-xl !font-bold",
|
|
465
480
|
"show-border": !1,
|
|
466
481
|
text: r.value
|
|
467
482
|
}, null, 8, ["text"])])]),
|
|
468
|
-
default:
|
|
483
|
+
default: U(() => [D(h, { model: V(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
469
484
|
_: 1
|
|
470
485
|
}, 8, ["expanded", "value"]));
|
|
471
486
|
}
|
|
472
|
-
}), [["__scopeId", "data-v-
|
|
487
|
+
}), [["__scopeId", "data-v-36275803"]]), Pt = /* @__PURE__ */ O({
|
|
473
488
|
__name: "Breadcrumb",
|
|
474
489
|
setup(e, { expose: t }) {
|
|
475
|
-
let n =
|
|
490
|
+
let n = W(), r = pt(), i = K(), a = S(() => {
|
|
476
491
|
let e = n.matched.map((e) => ({
|
|
477
492
|
name: e.name,
|
|
478
493
|
title: e.meta.title
|
|
@@ -485,30 +500,30 @@ var At = lt("router", () => {
|
|
|
485
500
|
function o(e) {
|
|
486
501
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
487
502
|
}
|
|
488
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (
|
|
503
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (I(), C(V(Me), {
|
|
489
504
|
key: 0,
|
|
490
505
|
class: "absolute top-px z-10 py-1!"
|
|
491
506
|
}, {
|
|
492
|
-
default:
|
|
507
|
+
default: U(() => [(I(!0), T(me, null, R(a.value, (e) => (I(), C(V(Ne), {
|
|
493
508
|
key: e.name,
|
|
494
509
|
disabled: e.disabled,
|
|
495
510
|
onClick: (t) => o(e.name)
|
|
496
511
|
}, {
|
|
497
|
-
default:
|
|
512
|
+
default: U(() => [E(B(e.title), 1)]),
|
|
498
513
|
_: 2
|
|
499
514
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
500
515
|
_: 1
|
|
501
516
|
})) : w("v-if", !0);
|
|
502
517
|
}
|
|
503
|
-
}),
|
|
518
|
+
}), Ft = /* @__PURE__ */ function(e) {
|
|
504
519
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
505
|
-
}(
|
|
506
|
-
function
|
|
507
|
-
let i = S(() => typeof t.body == "function" ? t.body(
|
|
520
|
+
}(Ft || {}), It = /* @__PURE__ */ new Set();
|
|
521
|
+
function Lt(e, t, n) {
|
|
522
|
+
let i = S(() => typeof t.body == "function" ? t.body(j) : t.body), a = L(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: o, stop: s } = rt(a, {
|
|
508
523
|
controls: !0,
|
|
509
524
|
initialValue: !0
|
|
510
525
|
}), c = {
|
|
511
|
-
closeBtn: () =>
|
|
526
|
+
closeBtn: () => j($, {
|
|
512
527
|
icon: "mdi:close",
|
|
513
528
|
shape: "circle",
|
|
514
529
|
size: "small",
|
|
@@ -525,33 +540,33 @@ function It(e, t, n) {
|
|
|
525
540
|
placement: "center",
|
|
526
541
|
width: "fit-content",
|
|
527
542
|
...t ?? {},
|
|
528
|
-
body: () =>
|
|
543
|
+
body: () => j(Nn, {}, { default: () => i.value })
|
|
529
544
|
}, l, u = {
|
|
530
545
|
...c,
|
|
531
546
|
onClosed: () => {
|
|
532
|
-
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(),
|
|
547
|
+
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(), It.delete(l);
|
|
533
548
|
}
|
|
534
549
|
};
|
|
535
550
|
delete u.closeWhenCloseAll;
|
|
536
551
|
let d = r();
|
|
537
|
-
return l = e === void 0 ? Re(u, n ?? d) : Re[e](u, n ?? d), c.closeWhenCloseAll &&
|
|
552
|
+
return l = e === void 0 ? Re(u, n ?? d) : Re[e](u, n ?? d), c.closeWhenCloseAll && It.add(l), l;
|
|
538
553
|
}
|
|
539
|
-
var
|
|
540
|
-
return
|
|
554
|
+
var Rt = function(...e) {
|
|
555
|
+
return Lt(void 0, ...e);
|
|
541
556
|
};
|
|
542
|
-
Object.values(
|
|
543
|
-
|
|
544
|
-
|
|
557
|
+
Object.values(Ft).forEach((e) => {
|
|
558
|
+
Rt[e] = e === "closeAll" ? () => {
|
|
559
|
+
It.forEach((e) => {
|
|
545
560
|
e.hide();
|
|
546
561
|
});
|
|
547
|
-
} : (...t) =>
|
|
562
|
+
} : (...t) => Lt(e, ...t);
|
|
548
563
|
});
|
|
549
564
|
//#endregion
|
|
550
565
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
551
|
-
var
|
|
566
|
+
var zt = (e, t) => {
|
|
552
567
|
let n = { ...typeof e == "string" ? {} : e };
|
|
553
568
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
554
|
-
let a =
|
|
569
|
+
let a = Rt(typeof e == "string" ? {
|
|
555
570
|
body: e,
|
|
556
571
|
onConfirm: () => {
|
|
557
572
|
a.hide(), r();
|
|
@@ -574,81 +589,81 @@ var Rt = (e, t) => {
|
|
|
574
589
|
}
|
|
575
590
|
}), t);
|
|
576
591
|
});
|
|
577
|
-
},
|
|
578
|
-
function
|
|
592
|
+
}, Bt = /* @__PURE__ */ new Map();
|
|
593
|
+
function Vt(e) {
|
|
579
594
|
let t = Y.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
580
595
|
...e,
|
|
581
596
|
label: e.userName,
|
|
582
597
|
value: e.userId
|
|
583
598
|
})));
|
|
584
599
|
e.forEach((e) => {
|
|
585
|
-
|
|
600
|
+
Bt.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
586
601
|
});
|
|
587
602
|
}
|
|
588
|
-
var
|
|
589
|
-
function
|
|
590
|
-
return
|
|
603
|
+
var Ht = [];
|
|
604
|
+
function Ut(e) {
|
|
605
|
+
return Ht.includes(e) || Ht.push(e), new Promise((t) => {
|
|
591
606
|
setTimeout(() => {
|
|
592
|
-
let n =
|
|
593
|
-
n.length > 0 &&
|
|
607
|
+
let n = Ht.filter((e) => !Bt.has(e));
|
|
608
|
+
n.length > 0 && Vt(n), Ht.length = 0, Bt.get(e).then((e) => {
|
|
594
609
|
t(e);
|
|
595
610
|
});
|
|
596
611
|
});
|
|
597
612
|
});
|
|
598
613
|
}
|
|
599
|
-
var
|
|
600
|
-
function
|
|
601
|
-
|
|
614
|
+
var q = /* @__PURE__ */ new Map();
|
|
615
|
+
function Wt() {
|
|
616
|
+
Ht.length = 0, Bt.clear(), q.clear();
|
|
602
617
|
}
|
|
603
|
-
function
|
|
604
|
-
|
|
605
|
-
|
|
618
|
+
function Gt(e) {
|
|
619
|
+
Bt.delete(e), q.has(e) && Ut(e).then((t) => {
|
|
620
|
+
q.get(e).value = t;
|
|
606
621
|
});
|
|
607
622
|
}
|
|
608
|
-
function
|
|
623
|
+
function Kt(e) {
|
|
609
624
|
let t;
|
|
610
|
-
return
|
|
625
|
+
return q.has(e) ? t = q.get(e) : (t = L(null), q.set(e, t), Ut(e).then((e) => {
|
|
611
626
|
t.value = e;
|
|
612
627
|
})), t;
|
|
613
628
|
}
|
|
614
629
|
//#endregion
|
|
615
630
|
//#region ../../packages/dlzn-ui/store/modules/login.ts
|
|
616
|
-
function
|
|
631
|
+
function qt(e) {
|
|
617
632
|
return Y.Post("login", e, { meta: {
|
|
618
633
|
useLoading: "登录中...",
|
|
619
634
|
useToken: !1
|
|
620
635
|
} });
|
|
621
636
|
}
|
|
622
|
-
function
|
|
637
|
+
function Jt() {
|
|
623
638
|
return Y.Post("logout", void 0, { meta: {
|
|
624
639
|
useLoading: "退出登录中...",
|
|
625
640
|
useSuccessMsg: !0
|
|
626
641
|
} });
|
|
627
642
|
}
|
|
628
|
-
var
|
|
629
|
-
let e =
|
|
643
|
+
var Yt = ut("login", () => {
|
|
644
|
+
let e = L(""), t = W(), n = pt();
|
|
630
645
|
async function r(t) {
|
|
631
|
-
let n = await
|
|
646
|
+
let n = await qt(t);
|
|
632
647
|
e.value = n.token, await Q().getUserInfo();
|
|
633
648
|
}
|
|
634
649
|
function i() {
|
|
635
|
-
e.value = "", u().clear(),
|
|
650
|
+
e.value = "", u().clear(), jt().clear(), Q().clear(), fn(), Wt(), ne();
|
|
636
651
|
}
|
|
637
|
-
|
|
652
|
+
H(() => t.name, () => {
|
|
638
653
|
t.name === "Login" && i();
|
|
639
654
|
});
|
|
640
655
|
async function a() {
|
|
641
|
-
await
|
|
656
|
+
await Jt(), await n.push({ name: "Login" }), i();
|
|
642
657
|
}
|
|
643
658
|
return {
|
|
644
659
|
login: r,
|
|
645
660
|
logout: a,
|
|
646
661
|
token: e
|
|
647
662
|
};
|
|
648
|
-
}, { persist: { pick: ["token"] } }),
|
|
663
|
+
}, { persist: { pick: ["token"] } }), Xt = { class: "flex items-center justify-between" }, Zt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
649
664
|
__name: "Header",
|
|
650
665
|
setup(t) {
|
|
651
|
-
let n =
|
|
666
|
+
let n = W(), r = pt(), i = Q(), a = G(), o = K();
|
|
652
667
|
function s(e) {
|
|
653
668
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
654
669
|
}
|
|
@@ -657,7 +672,7 @@ var Jt = lt("login", () => {
|
|
|
657
672
|
}
|
|
658
673
|
let u = async (e) => {
|
|
659
674
|
let { value: t } = e;
|
|
660
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await
|
|
675
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await zt("确定要退出登录吗?"), Yt().logout());
|
|
661
676
|
}, d = l.isMd;
|
|
662
677
|
function f(e, t) {
|
|
663
678
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
@@ -681,23 +696,23 @@ var Jt = lt("login", () => {
|
|
|
681
696
|
}
|
|
682
697
|
}), ee(e, i);
|
|
683
698
|
}
|
|
684
|
-
return (t, r) => (
|
|
685
|
-
default:
|
|
699
|
+
return (t, r) => (I(), C(V(Ge), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
700
|
+
default: U(() => [D(V(We), {
|
|
686
701
|
"expand-type": "popup",
|
|
687
|
-
value:
|
|
702
|
+
value: V(n).name,
|
|
688
703
|
onChange: s
|
|
689
704
|
}, {
|
|
690
|
-
logo:
|
|
705
|
+
logo: U(() => [D(V($), {
|
|
691
706
|
class: "ml-0! shrink-0",
|
|
692
707
|
shape: "circle",
|
|
693
708
|
size: "large",
|
|
694
709
|
variant: "text",
|
|
695
|
-
onClick: r[0] ||= (e) =>
|
|
710
|
+
onClick: r[0] ||= (e) => V(a).drawerOpen = !V(a).drawerOpen
|
|
696
711
|
}, {
|
|
697
|
-
default:
|
|
712
|
+
default: U(() => [D(V(e), { icon: "lineicons:menu-hamburger-1" })]),
|
|
698
713
|
_: 1
|
|
699
714
|
})]),
|
|
700
|
-
operations:
|
|
715
|
+
operations: U(() => [D(V(Ve), {
|
|
701
716
|
options: [{
|
|
702
717
|
content: "个人中心",
|
|
703
718
|
value: "profile"
|
|
@@ -709,36 +724,36 @@ var Jt = lt("login", () => {
|
|
|
709
724
|
trigger: "click",
|
|
710
725
|
onClick: u
|
|
711
726
|
}, {
|
|
712
|
-
default:
|
|
727
|
+
default: U(() => [V(d) ? (I(), C(V($), {
|
|
713
728
|
key: 0,
|
|
714
729
|
shape: "square",
|
|
715
730
|
variant: "text"
|
|
716
731
|
}, {
|
|
717
|
-
icon:
|
|
732
|
+
icon: U(() => [D(V(e), { icon: "material-symbols:account-circle" })]),
|
|
718
733
|
_: 1
|
|
719
|
-
})) : (
|
|
734
|
+
})) : (I(), C(V($), {
|
|
720
735
|
key: 1,
|
|
721
736
|
variant: "text"
|
|
722
737
|
}, {
|
|
723
|
-
icon:
|
|
738
|
+
icon: U(() => [D(V(e), {
|
|
724
739
|
class: "mr-2!",
|
|
725
740
|
icon: "material-symbols:account-circle"
|
|
726
741
|
})]),
|
|
727
|
-
suffix:
|
|
742
|
+
suffix: U(() => [D(V(e), {
|
|
728
743
|
icon: "icon-park-outline:down",
|
|
729
744
|
size: "18"
|
|
730
745
|
})]),
|
|
731
|
-
default:
|
|
746
|
+
default: U(() => [E(" " + B(V(i).userInfo.userName) + " ", 1)]),
|
|
732
747
|
_: 1
|
|
733
748
|
}))]),
|
|
734
749
|
_: 1
|
|
735
750
|
})]),
|
|
736
|
-
default:
|
|
751
|
+
default: U(() => [(I(!0), T(me, null, R(V(o).recentRouters, (t) => (I(), C(V(Ye), {
|
|
737
752
|
key: t.name,
|
|
738
753
|
value: t.name,
|
|
739
754
|
onContextmenu: (e) => f(e, t.name)
|
|
740
755
|
}, {
|
|
741
|
-
default:
|
|
756
|
+
default: U(() => [ge("div", Xt, [ge("span", null, B(V(rn)(t.name).meta.title), 1), V(o).recentRouters.length > 1 ? (I(), C(V($), {
|
|
742
757
|
key: 0,
|
|
743
758
|
class: "ml-1!",
|
|
744
759
|
shape: "square",
|
|
@@ -746,7 +761,7 @@ var Jt = lt("login", () => {
|
|
|
746
761
|
variant: "text",
|
|
747
762
|
onClick: je((e) => c(t.name), ["stop"])
|
|
748
763
|
}, {
|
|
749
|
-
icon:
|
|
764
|
+
icon: U(() => [D(V(e), {
|
|
750
765
|
icon: "material-symbols:close",
|
|
751
766
|
style: { "font-size": "12px !important" }
|
|
752
767
|
})]),
|
|
@@ -759,40 +774,40 @@ var Jt = lt("login", () => {
|
|
|
759
774
|
_: 1
|
|
760
775
|
}));
|
|
761
776
|
}
|
|
762
|
-
}), [["__scopeId", "data-v-cdf58b1a"]]),
|
|
777
|
+
}), [["__scopeId", "data-v-cdf58b1a"]]), Qt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
763
778
|
__name: "Entry",
|
|
764
779
|
setup(e) {
|
|
765
|
-
let t =
|
|
780
|
+
let t = W(), n = G(), r = K(), i = u(), a = S(() => r.recentRouters.filter((e) => rn(e.name).meta.noCache === !1).map((e) => e.name)), o = Ae("breadcrumb"), s = S(() => (o.value?.items.length ?? 0) > 0), d = S(() => l.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), f = l.isMd, p = Ae("contentRef"), { height: m } = nt(p);
|
|
766
781
|
function h({ size: e }) {
|
|
767
782
|
n.drawerSize = e;
|
|
768
783
|
}
|
|
769
784
|
let ee = S(() => t.meta.fullScreen);
|
|
770
785
|
return (e, t) => {
|
|
771
786
|
let r = Ee("RouterView");
|
|
772
|
-
return ee.value ? (
|
|
773
|
-
default:
|
|
787
|
+
return ee.value ? (I(), C(r, { key: 0 }, {
|
|
788
|
+
default: U(({ Component: e }) => [(I(), C(z(e)))]),
|
|
774
789
|
_: 1
|
|
775
|
-
})) : (
|
|
790
|
+
})) : (I(), C(V(qe), {
|
|
776
791
|
key: 1,
|
|
777
792
|
class: "h-full"
|
|
778
793
|
}, {
|
|
779
|
-
default:
|
|
780
|
-
D(
|
|
781
|
-
D(
|
|
782
|
-
visible:
|
|
783
|
-
"onUpdate:visible": t[0] ||= (e) =>
|
|
794
|
+
default: U(() => [
|
|
795
|
+
D(Zt),
|
|
796
|
+
D(V(ze), {
|
|
797
|
+
visible: V(n).drawerOpen,
|
|
798
|
+
"onUpdate:visible": t[0] ||= (e) => V(n).drawerOpen = e,
|
|
784
799
|
footer: !1,
|
|
785
|
-
mode:
|
|
800
|
+
mode: V(f) ? "overlay" : "push",
|
|
786
801
|
placement: "left",
|
|
787
|
-
"show-overlay":
|
|
788
|
-
size:
|
|
802
|
+
"show-overlay": V(f),
|
|
803
|
+
size: V(f) ? "200px" : `${V(n).drawerSize}px`,
|
|
789
804
|
"size-draggable": {
|
|
790
805
|
max: 450,
|
|
791
806
|
min: 180
|
|
792
807
|
},
|
|
793
808
|
onSizeDragEnd: h
|
|
794
809
|
}, {
|
|
795
|
-
default:
|
|
810
|
+
default: U(() => [D(Nt, { class: "no_drawer_body_padding" })]),
|
|
796
811
|
_: 1
|
|
797
812
|
}, 8, [
|
|
798
813
|
"visible",
|
|
@@ -800,12 +815,12 @@ var Jt = lt("login", () => {
|
|
|
800
815
|
"show-overlay",
|
|
801
816
|
"size"
|
|
802
817
|
]),
|
|
803
|
-
D(
|
|
818
|
+
D(V(Le), {
|
|
804
819
|
ref_key: "contentRef",
|
|
805
820
|
ref: p,
|
|
806
821
|
class: "overflow-hidden"
|
|
807
822
|
}, {
|
|
808
|
-
default:
|
|
823
|
+
default: U(() => [D(V(c), {
|
|
809
824
|
always: "",
|
|
810
825
|
"view-class": xe(["relative flex flex-col", {
|
|
811
826
|
...d.value,
|
|
@@ -813,14 +828,14 @@ var Jt = lt("login", () => {
|
|
|
813
828
|
}]),
|
|
814
829
|
"view-style": {
|
|
815
830
|
minWidth: "1200px",
|
|
816
|
-
minHeight: `${Math.max(
|
|
831
|
+
minHeight: `${Math.max(V(m), 438)}px`
|
|
817
832
|
}
|
|
818
833
|
}, {
|
|
819
|
-
default:
|
|
820
|
-
default:
|
|
821
|
-
exclude:
|
|
834
|
+
default: U(() => [D(Pt, { ref: "breadcrumb" }, null, 512), D(r, null, {
|
|
835
|
+
default: U(({ Component: e }) => [(I(), C(he, {
|
|
836
|
+
exclude: V(i).excludeKPname,
|
|
822
837
|
include: a.value
|
|
823
|
-
}, [(
|
|
838
|
+
}, [(I(), C(z(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
824
839
|
_: 1
|
|
825
840
|
})]),
|
|
826
841
|
_: 1
|
|
@@ -832,9 +847,9 @@ var Jt = lt("login", () => {
|
|
|
832
847
|
}));
|
|
833
848
|
};
|
|
834
849
|
}
|
|
835
|
-
}), [["__scopeId", "data-v-de5cbc76"]]),
|
|
836
|
-
function
|
|
837
|
-
let n = S(() => typeof e.body == "function" ? e.body(
|
|
850
|
+
}), [["__scopeId", "data-v-de5cbc76"]]), $t = /* @__PURE__ */ new Set();
|
|
851
|
+
function en(e, t) {
|
|
852
|
+
let n = S(() => typeof e.body == "function" ? e.body(j) : e.body), i = {
|
|
838
853
|
attach: "#app",
|
|
839
854
|
closeOnEscKeydown: !1,
|
|
840
855
|
closeOnOverlayClick: !1,
|
|
@@ -844,26 +859,26 @@ function $t(e, t) {
|
|
|
844
859
|
lazy: !0,
|
|
845
860
|
sizeDraggable: !0,
|
|
846
861
|
...e ?? {},
|
|
847
|
-
body: () =>
|
|
862
|
+
body: () => j(Nn, {}, { default: () => n.value })
|
|
848
863
|
}, a, o = {
|
|
849
864
|
...i,
|
|
850
865
|
onClose: (e) => {
|
|
851
|
-
i.onClose?.(e),
|
|
866
|
+
i.onClose?.(e), $t.delete(a);
|
|
852
867
|
}
|
|
853
868
|
};
|
|
854
|
-
return delete o.closeWhenCloseAll, a = Be(o, t ?? r()), i.closeWhenCloseAll &&
|
|
869
|
+
return delete o.closeWhenCloseAll, a = Be(o, t ?? r()), i.closeWhenCloseAll && $t.add(a), a;
|
|
855
870
|
}
|
|
856
|
-
var
|
|
857
|
-
return
|
|
871
|
+
var tn = function(...e) {
|
|
872
|
+
return en(...e);
|
|
858
873
|
};
|
|
859
|
-
|
|
860
|
-
|
|
874
|
+
tn.closeAll = () => {
|
|
875
|
+
$t.forEach((e) => {
|
|
861
876
|
e.hide?.();
|
|
862
877
|
});
|
|
863
878
|
};
|
|
864
879
|
//#endregion
|
|
865
880
|
//#region ../../packages/dlzn-ui/router/index.ts
|
|
866
|
-
function
|
|
881
|
+
function nn() {
|
|
867
882
|
return {
|
|
868
883
|
children: [{
|
|
869
884
|
children: [{
|
|
@@ -891,15 +906,15 @@ function tn() {
|
|
|
891
906
|
name: "Home",
|
|
892
907
|
path: "home"
|
|
893
908
|
}],
|
|
894
|
-
component:
|
|
909
|
+
component: Qt,
|
|
895
910
|
name: "Index",
|
|
896
911
|
path: "/"
|
|
897
912
|
};
|
|
898
913
|
}
|
|
899
|
-
var
|
|
900
|
-
history:
|
|
914
|
+
var J = dt({
|
|
915
|
+
history: ft(VITE_BASE_URL),
|
|
901
916
|
routes: [
|
|
902
|
-
|
|
917
|
+
nn(),
|
|
903
918
|
{
|
|
904
919
|
component: s["./Login.vue"],
|
|
905
920
|
meta: {
|
|
@@ -943,16 +958,16 @@ var q = ut({
|
|
|
943
958
|
sensitive: !0,
|
|
944
959
|
strict: !0
|
|
945
960
|
});
|
|
946
|
-
|
|
947
|
-
if (e.query._fromLeftTree === "true" && u().add(e.name), !["Login", "Register"].includes(e.name)) return
|
|
961
|
+
J.beforeEach(async (e) => {
|
|
962
|
+
if (e.query._fromLeftTree === "true" && u().add(e.name), !["Login", "Register"].includes(e.name)) return Yt().token === "" ? { name: "Login" } : jt().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), J.resolve({
|
|
948
963
|
path: e.path,
|
|
949
964
|
query: e.query
|
|
950
965
|
}));
|
|
951
|
-
}),
|
|
952
|
-
|
|
966
|
+
}), J.afterEach((e, t, n) => {
|
|
967
|
+
Rt.closeAll(), tn.closeAll();
|
|
953
968
|
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: s } = r;
|
|
954
|
-
document.title = s ||
|
|
955
|
-
let c =
|
|
969
|
+
document.title = s || G().appInfo.appName;
|
|
970
|
+
let c = K();
|
|
956
971
|
if (![
|
|
957
972
|
"Login",
|
|
958
973
|
"NotFound",
|
|
@@ -966,27 +981,27 @@ q.beforeEach(async (e) => {
|
|
|
966
981
|
}
|
|
967
982
|
u().remove(i);
|
|
968
983
|
});
|
|
969
|
-
function
|
|
970
|
-
if (
|
|
984
|
+
function rn(e) {
|
|
985
|
+
if (J.hasRoute(e)) return J.getRoutes().find((t) => t.name === e);
|
|
971
986
|
}
|
|
972
987
|
//#endregion
|
|
973
988
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
974
|
-
var
|
|
975
|
-
function
|
|
989
|
+
var an = 15e3, on = "网络错误,请稍后再试";
|
|
990
|
+
function sn(e, t = !0) {
|
|
976
991
|
let n = {};
|
|
977
992
|
return Object.keys(e).forEach((r) => {
|
|
978
993
|
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !v(e[r]))) && (n[r] = e[r]);
|
|
979
994
|
}), n;
|
|
980
995
|
}
|
|
981
|
-
function
|
|
982
|
-
return new URLSearchParams(
|
|
996
|
+
function cn(e, t = !0) {
|
|
997
|
+
return new URLSearchParams(sn(e, t)).toString();
|
|
983
998
|
}
|
|
984
|
-
var Y =
|
|
999
|
+
var Y = ht({
|
|
985
1000
|
baseURL: VITE_BASE_URL,
|
|
986
1001
|
beforeRequest(e) {
|
|
987
1002
|
e.config.credentials = e.config.credentials ?? "omit";
|
|
988
1003
|
let [t, ...n] = VITE_API_PREFIX_ARRAY;
|
|
989
|
-
!e.url.startsWith("http") && !n.some((t) =>
|
|
1004
|
+
!e.url.startsWith("http") && !n.some((t) => vt.join("/", e.url).startsWith(vt.join("/", t, "/"))) && (e.url = vt.join(t, e.url)), e.meta = {
|
|
990
1005
|
use600Alert: !0,
|
|
991
1006
|
useDataResult: !0,
|
|
992
1007
|
useDownload: !1,
|
|
@@ -1003,10 +1018,10 @@ var Y = mt({
|
|
|
1003
1018
|
useToken: !0,
|
|
1004
1019
|
...e.meta ?? {}
|
|
1005
1020
|
};
|
|
1006
|
-
let r =
|
|
1007
|
-
c ||
|
|
1021
|
+
let r = Yt(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: c, useLoading: l, useResponseBlob: u, useToken: d } = e.meta;
|
|
1022
|
+
c || G().requestActive(), d && (r.token ? e.config.headers.Authorization = r.token : e.abort()), l !== !1 && i.show(l === !0 ? void 0 : l);
|
|
1008
1023
|
let f = e.config.params;
|
|
1009
|
-
if (typeof f != "string" && (e.config.params =
|
|
1024
|
+
if (typeof f != "string" && (e.config.params = cn(f, o)), a && lt(e.data)) {
|
|
1010
1025
|
let t = {}, n = e.data;
|
|
1011
1026
|
Object.keys(n).forEach((e) => {
|
|
1012
1027
|
v(n[e]) || (t[e] = n[e]);
|
|
@@ -1018,10 +1033,10 @@ var Y = mt({
|
|
|
1018
1033
|
t.append(n, e.data[n]);
|
|
1019
1034
|
}), e.data = t;
|
|
1020
1035
|
}
|
|
1021
|
-
e.config.timeout ===
|
|
1036
|
+
e.config.timeout === an && (s || e.data instanceof FormData || u) && (e.config.timeout = 0);
|
|
1022
1037
|
},
|
|
1023
1038
|
cacheFor: null,
|
|
1024
|
-
requestAdapter:
|
|
1039
|
+
requestAdapter: gt(),
|
|
1025
1040
|
responded: {
|
|
1026
1041
|
onComplete: (e) => {
|
|
1027
1042
|
e.meta.useLoading !== !1 && i.hide();
|
|
@@ -1033,7 +1048,7 @@ var Y = mt({
|
|
|
1033
1048
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1034
1049
|
if (t.toLowerCase().includes("timeout")) return n && o.error("请求超时"), Promise.reject(e);
|
|
1035
1050
|
}
|
|
1036
|
-
return n && o.error(
|
|
1051
|
+
return n && o.error(on), Promise.reject(e);
|
|
1037
1052
|
},
|
|
1038
1053
|
onSuccess: async (e, t) => {
|
|
1039
1054
|
if (typeof e == "string") return e;
|
|
@@ -1044,7 +1059,7 @@ var Y = mt({
|
|
|
1044
1059
|
403: "当前操作没有权限",
|
|
1045
1060
|
404: "访问资源不存在",
|
|
1046
1061
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1047
|
-
}[m] ??
|
|
1062
|
+
}[m] ?? on;
|
|
1048
1063
|
o.error(e);
|
|
1049
1064
|
}
|
|
1050
1065
|
return Promise.reject(e);
|
|
@@ -1085,11 +1100,11 @@ var Y = mt({
|
|
|
1085
1100
|
if (e >= 400) {
|
|
1086
1101
|
if (e === 600) {
|
|
1087
1102
|
if (!s) return h;
|
|
1088
|
-
} else e === 401 && d ?
|
|
1103
|
+
} else e === 401 && d ? J.push({ name: "Login" }) : a !== !1 && o.error(a === !0 ? n : a);
|
|
1089
1104
|
return Promise.reject(h);
|
|
1090
1105
|
}
|
|
1091
1106
|
{
|
|
1092
|
-
let i =
|
|
1107
|
+
let i = mt.alovaResCodeSuccessCb?.({
|
|
1093
1108
|
code: e,
|
|
1094
1109
|
data: t,
|
|
1095
1110
|
msg: n
|
|
@@ -1101,10 +1116,10 @@ var Y = mt({
|
|
|
1101
1116
|
}
|
|
1102
1117
|
},
|
|
1103
1118
|
shareRequest: !1,
|
|
1104
|
-
statesHook:
|
|
1105
|
-
timeout:
|
|
1106
|
-
}),
|
|
1107
|
-
function
|
|
1119
|
+
statesHook: _t,
|
|
1120
|
+
timeout: an
|
|
1121
|
+
}), ln = /* @__PURE__ */ new Map();
|
|
1122
|
+
function un(e) {
|
|
1108
1123
|
let t = Y.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
1109
1124
|
cssClass: e.cssClass,
|
|
1110
1125
|
dictType: e.dictType,
|
|
@@ -1113,26 +1128,26 @@ function cn(e) {
|
|
|
1113
1128
|
value: e.dictValue
|
|
1114
1129
|
})));
|
|
1115
1130
|
e.forEach((e) => {
|
|
1116
|
-
|
|
1131
|
+
ln.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
1117
1132
|
});
|
|
1118
1133
|
}
|
|
1119
|
-
var
|
|
1120
|
-
function
|
|
1121
|
-
return
|
|
1134
|
+
var X = [];
|
|
1135
|
+
function dn(e) {
|
|
1136
|
+
return X.includes(e) || X.push(e), new Promise((t) => {
|
|
1122
1137
|
setTimeout(() => {
|
|
1123
|
-
let n =
|
|
1124
|
-
n.length > 0 &&
|
|
1138
|
+
let n = X.filter((e) => !ln.has(e));
|
|
1139
|
+
n.length > 0 && un(n), X.length = 0, ln.get(e).then((e) => {
|
|
1125
1140
|
t(e);
|
|
1126
1141
|
});
|
|
1127
1142
|
});
|
|
1128
1143
|
});
|
|
1129
1144
|
}
|
|
1130
|
-
var
|
|
1131
|
-
function
|
|
1132
|
-
|
|
1145
|
+
var Z = /* @__PURE__ */ new Map();
|
|
1146
|
+
function fn() {
|
|
1147
|
+
X.length = 0, ln.clear(), Z.clear();
|
|
1133
1148
|
}
|
|
1134
|
-
function
|
|
1135
|
-
let n =
|
|
1149
|
+
function pn(e, t) {
|
|
1150
|
+
let n = mn(e);
|
|
1136
1151
|
return S(() => {
|
|
1137
1152
|
if (t === void 0) return n.value.map((e) => e.label);
|
|
1138
1153
|
if (Array.isArray(t)) return n.value.length === 0 ? [] : t.map((e) => n.value.find((t) => String(t.value) === String(e))?.label ?? b(e));
|
|
@@ -1144,20 +1159,20 @@ function fn(e, t) {
|
|
|
1144
1159
|
return n.value.find((e) => String(e.value) === String(t))?.label ?? b(t);
|
|
1145
1160
|
});
|
|
1146
1161
|
}
|
|
1147
|
-
function
|
|
1162
|
+
function mn(e, t) {
|
|
1148
1163
|
let n;
|
|
1149
|
-
return
|
|
1164
|
+
return Z.has(e) ? n = Z.get(e) : (n = L([]), Z.set(e, n), dn(e).then((e) => {
|
|
1150
1165
|
n.value = e;
|
|
1151
1166
|
})), S(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1152
1167
|
}
|
|
1153
|
-
function
|
|
1154
|
-
|
|
1155
|
-
|
|
1168
|
+
function hn(e) {
|
|
1169
|
+
ln.delete(e), Z.has(e) && dn(e).then((t) => {
|
|
1170
|
+
Z.get(e).value = t;
|
|
1156
1171
|
});
|
|
1157
1172
|
}
|
|
1158
1173
|
//#endregion
|
|
1159
1174
|
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
1160
|
-
var
|
|
1175
|
+
var gn = /* @__PURE__ */ O({
|
|
1161
1176
|
inheritAttrs: !1,
|
|
1162
1177
|
name: "TCheckboxGroup",
|
|
1163
1178
|
__name: "checkbox-group",
|
|
@@ -1190,7 +1205,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1190
1205
|
}
|
|
1191
1206
|
let s = S(() => {
|
|
1192
1207
|
let e;
|
|
1193
|
-
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e =
|
|
1208
|
+
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e = mn(r.dicCode).value) : e = typeof r.options == "string" ? te(r.options).value : r.options, r.showCheckAll && (e === void 0 ? n.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
1194
1209
|
checkAll: !0,
|
|
1195
1210
|
label: "全选"
|
|
1196
1211
|
})), e;
|
|
@@ -1208,7 +1223,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1208
1223
|
e[t] === void 0 && delete e[t];
|
|
1209
1224
|
}), e;
|
|
1210
1225
|
});
|
|
1211
|
-
return (e, t) => (
|
|
1226
|
+
return (e, t) => (I(), C(z(j(V(Fe), N(e.$attrs, {
|
|
1212
1227
|
...l.value,
|
|
1213
1228
|
options: s.value,
|
|
1214
1229
|
modelValue: c.value,
|
|
@@ -1218,10 +1233,10 @@ var mn = /* @__PURE__ */ O({
|
|
|
1218
1233
|
ref: o
|
|
1219
1234
|
}), e.$slots))));
|
|
1220
1235
|
}
|
|
1221
|
-
}),
|
|
1236
|
+
}), _n = /* @__PURE__ */ O({
|
|
1222
1237
|
inheritAttrs: !1,
|
|
1223
1238
|
__name: "cron",
|
|
1224
|
-
props: /*@__PURE__*/
|
|
1239
|
+
props: /*@__PURE__*/ M({
|
|
1225
1240
|
modelValue: {},
|
|
1226
1241
|
adornment: {},
|
|
1227
1242
|
align: {},
|
|
@@ -1266,19 +1281,19 @@ var mn = /* @__PURE__ */ O({
|
|
|
1266
1281
|
onPaste: { type: Function },
|
|
1267
1282
|
onValidate: { type: Function },
|
|
1268
1283
|
onWheel: { type: Function }
|
|
1269
|
-
},
|
|
1284
|
+
}, ie),
|
|
1270
1285
|
emits: ["update:modelValue"],
|
|
1271
1286
|
setup(e, { emit: t }) {
|
|
1272
1287
|
let n = e, r = t, i = ye("isFormDisabled", S(() => !1)), a = ye("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1273
1288
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1274
1289
|
return {
|
|
1275
1290
|
...n,
|
|
1276
|
-
adornment: { append: () =>
|
|
1291
|
+
adornment: { append: () => j($, {
|
|
1277
1292
|
default: "cron",
|
|
1278
1293
|
onClick: () => {
|
|
1279
|
-
let i =
|
|
1280
|
-
|
|
1281
|
-
body: () =>
|
|
1294
|
+
let i = L(null);
|
|
1295
|
+
zt({
|
|
1296
|
+
body: () => j(ve(() => import("../components/cron/src/Picker.mjs")), {
|
|
1282
1297
|
disabled: e,
|
|
1283
1298
|
modelValue: n.modelValue,
|
|
1284
1299
|
onVnodeMounted: (e) => {
|
|
@@ -1304,16 +1319,16 @@ var mn = /* @__PURE__ */ O({
|
|
|
1304
1319
|
function l(e) {
|
|
1305
1320
|
c.exposed = e ?? {};
|
|
1306
1321
|
}
|
|
1307
|
-
let u = S(() =>
|
|
1322
|
+
let u = S(() => N(s, {
|
|
1308
1323
|
...o.value,
|
|
1309
1324
|
onChange: (...e) => {
|
|
1310
1325
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1311
1326
|
},
|
|
1312
1327
|
ref: l
|
|
1313
1328
|
}));
|
|
1314
|
-
return (e, t) => (
|
|
1329
|
+
return (e, t) => (I(), C(V(ae), F(A(u.value)), null, 16));
|
|
1315
1330
|
}
|
|
1316
|
-
}),
|
|
1331
|
+
}), vn = /* @__PURE__ */ O({
|
|
1317
1332
|
inheritAttrs: !1,
|
|
1318
1333
|
name: "TRadioGroup",
|
|
1319
1334
|
__name: "radio-group",
|
|
@@ -1347,7 +1362,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1347
1362
|
function o(e) {
|
|
1348
1363
|
a.exposed = e ?? {};
|
|
1349
1364
|
}
|
|
1350
|
-
let s = S(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"),
|
|
1365
|
+
let s = S(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"), mn(r.dicCode).value) : typeof r.options == "string" ? te(r.options).value : r.options), c = S(() => {
|
|
1351
1366
|
let e = { ...r };
|
|
1352
1367
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1353
1368
|
e[t] === void 0 && delete e[t];
|
|
@@ -1360,18 +1375,18 @@ var mn = /* @__PURE__ */ O({
|
|
|
1360
1375
|
}
|
|
1361
1376
|
return r.modelValue;
|
|
1362
1377
|
});
|
|
1363
|
-
return (e, t) => (
|
|
1378
|
+
return (e, t) => (I(), C(z(j(V(Xe), N(e.$attrs, {
|
|
1364
1379
|
...c.value,
|
|
1365
1380
|
options: s.value,
|
|
1366
1381
|
modelValue: l.value,
|
|
1367
1382
|
onChange: (...e) => {
|
|
1368
|
-
let [t, ...n] = e, a =
|
|
1383
|
+
let [t, ...n] = e, a = V(v)(t) ? "" : t;
|
|
1369
1384
|
i("update:modelValue", a), r.onChange?.(a, ...n);
|
|
1370
1385
|
},
|
|
1371
1386
|
ref: o
|
|
1372
1387
|
}), e.$slots))));
|
|
1373
1388
|
}
|
|
1374
|
-
}),
|
|
1389
|
+
}), yn = {
|
|
1375
1390
|
clearable: !0,
|
|
1376
1391
|
disabled: void 0,
|
|
1377
1392
|
filterable: void 0,
|
|
@@ -1392,11 +1407,11 @@ var mn = /* @__PURE__ */ O({
|
|
|
1392
1407
|
}),
|
|
1393
1408
|
showArrow: !0,
|
|
1394
1409
|
showCheckAll: !1
|
|
1395
|
-
},
|
|
1410
|
+
}, bn = /* @__PURE__ */ O({
|
|
1396
1411
|
inheritAttrs: !1,
|
|
1397
1412
|
name: "TSelect",
|
|
1398
1413
|
__name: "select",
|
|
1399
|
-
props: /*@__PURE__*/
|
|
1414
|
+
props: /*@__PURE__*/ M({
|
|
1400
1415
|
adornment: {},
|
|
1401
1416
|
dicCode: {},
|
|
1402
1417
|
modelValue: {},
|
|
@@ -1456,7 +1471,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1456
1471
|
onPopupVisibleChange: { type: Function },
|
|
1457
1472
|
onRemove: { type: Function },
|
|
1458
1473
|
onSearch: { type: Function }
|
|
1459
|
-
},
|
|
1474
|
+
}, yn),
|
|
1460
1475
|
setup(e) {
|
|
1461
1476
|
let t = e, r = k();
|
|
1462
1477
|
function i(e) {
|
|
@@ -1464,7 +1479,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1464
1479
|
}
|
|
1465
1480
|
let a = S(() => {
|
|
1466
1481
|
let e;
|
|
1467
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ? te(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e =
|
|
1482
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? te(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e = mn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? n.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
1468
1483
|
checkAll: !0,
|
|
1469
1484
|
[t.keys?.label ?? "label"]: "全选"
|
|
1470
1485
|
}) : n.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
@@ -1488,9 +1503,9 @@ var mn = /* @__PURE__ */ O({
|
|
|
1488
1503
|
return delete e.dicCode, delete e.showCheckAll, delete e.adornment, Object.keys(e).forEach((t) => {
|
|
1489
1504
|
e[t] === void 0 && delete e[t];
|
|
1490
1505
|
}), e;
|
|
1491
|
-
}), c =
|
|
1506
|
+
}), c = L(0);
|
|
1492
1507
|
Se(() => {
|
|
1493
|
-
|
|
1508
|
+
st(r.exposed.$el, () => {
|
|
1494
1509
|
c.value = r.exposed.$el.offsetWidth;
|
|
1495
1510
|
}, { box: "border-box" });
|
|
1496
1511
|
});
|
|
@@ -1515,15 +1530,15 @@ var mn = /* @__PURE__ */ O({
|
|
|
1515
1530
|
},
|
|
1516
1531
|
ref: i
|
|
1517
1532
|
})), d = Ke;
|
|
1518
|
-
return (t, n) => e.adornment ? (
|
|
1533
|
+
return (t, n) => e.adornment ? (I(), C(z(j(V(d), t.$attrs, {
|
|
1519
1534
|
...e.adornment,
|
|
1520
|
-
default: () =>
|
|
1521
|
-
})), { key: 0 })) : (
|
|
1535
|
+
default: () => j(V(Ze), u.value, t.$slots)
|
|
1536
|
+
})), { key: 0 })) : (I(), C(z(j(V(Ze), N(t.$attrs, u.value), t.$slots)), { key: 1 }));
|
|
1522
1537
|
}
|
|
1523
|
-
}),
|
|
1538
|
+
}), xn = /* @__PURE__ */ O({
|
|
1524
1539
|
inheritAttrs: !1,
|
|
1525
1540
|
__name: "select-sys-user",
|
|
1526
|
-
props: /*@__PURE__*/
|
|
1541
|
+
props: /*@__PURE__*/ M({
|
|
1527
1542
|
modelValue: {},
|
|
1528
1543
|
adornment: {},
|
|
1529
1544
|
autoWidth: { type: Boolean },
|
|
@@ -1562,19 +1577,19 @@ var mn = /* @__PURE__ */ O({
|
|
|
1562
1577
|
onMouseleave: { type: Function },
|
|
1563
1578
|
onPaste: { type: Function },
|
|
1564
1579
|
onRemove: { type: Function }
|
|
1565
|
-
},
|
|
1580
|
+
}, le),
|
|
1566
1581
|
emits: ["update:modelValue"],
|
|
1567
1582
|
setup(e, { emit: t }) {
|
|
1568
1583
|
let n = e, r = t, i = ye("isFormDisabled", S(() => !1)), a = ye("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1569
1584
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1570
1585
|
return {
|
|
1571
1586
|
...n,
|
|
1572
|
-
adornment: e || t ? void 0 : { append: () =>
|
|
1587
|
+
adornment: e || t ? void 0 : { append: () => j($, {
|
|
1573
1588
|
default: "选择用户",
|
|
1574
1589
|
onClick: () => {
|
|
1575
|
-
let e =
|
|
1576
|
-
|
|
1577
|
-
body: () =>
|
|
1590
|
+
let e = L(null);
|
|
1591
|
+
zt({
|
|
1592
|
+
body: () => j(ve(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
1578
1593
|
max: n.max,
|
|
1579
1594
|
modelValue: n.modelValue,
|
|
1580
1595
|
onVnodeMounted: (t) => {
|
|
@@ -1599,7 +1614,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1599
1614
|
function l(e) {
|
|
1600
1615
|
c.exposed = e ?? {};
|
|
1601
1616
|
}
|
|
1602
|
-
let u = S(() =>
|
|
1617
|
+
let u = S(() => N(s, {
|
|
1603
1618
|
...o.value,
|
|
1604
1619
|
inputProps: {
|
|
1605
1620
|
readonly: !0,
|
|
@@ -1611,34 +1626,34 @@ var mn = /* @__PURE__ */ O({
|
|
|
1611
1626
|
placeholder: "请选择用户",
|
|
1612
1627
|
ref: l
|
|
1613
1628
|
}));
|
|
1614
|
-
return (e, t) => (
|
|
1615
|
-
tag:
|
|
1629
|
+
return (e, t) => (I(), C(V(ue), F(A(u.value)), {
|
|
1630
|
+
tag: U(({ value: e }) => [E(B(V(Kt)(e).value?.userName), 1)]),
|
|
1616
1631
|
_: 1
|
|
1617
1632
|
}, 16));
|
|
1618
1633
|
}
|
|
1619
|
-
}),
|
|
1634
|
+
}), Sn = {
|
|
1620
1635
|
checkable: !1,
|
|
1621
1636
|
disabled: void 0,
|
|
1622
1637
|
expandOnClickNode: void 0,
|
|
1623
1638
|
hover: !0,
|
|
1624
1639
|
icon: () => (t, n) => {
|
|
1625
1640
|
let r = "";
|
|
1626
|
-
return n.getChildren && n.getChildren(!1) && (n.expanded ? (r = "cuida:caret-down-outline", n.loading && (r = "line-md:loading-twotone-loop")) : r = "cuida:caret-right-outline"), r === "" ? null :
|
|
1641
|
+
return n.getChildren && n.getChildren(!1) && (n.expanded ? (r = "cuida:caret-down-outline", n.loading && (r = "line-md:loading-twotone-loop")) : r = "cuida:caret-right-outline"), r === "" ? null : j($, {
|
|
1627
1642
|
shape: "circle",
|
|
1628
1643
|
size: "small",
|
|
1629
1644
|
variant: "outline"
|
|
1630
|
-
}, { icon: () =>
|
|
1645
|
+
}, { icon: () => j(e, { icon: r }) });
|
|
1631
1646
|
},
|
|
1632
1647
|
label: !0,
|
|
1633
1648
|
lazy: !0,
|
|
1634
1649
|
line: !0,
|
|
1635
1650
|
transition: !0,
|
|
1636
1651
|
valueMode: "all"
|
|
1637
|
-
},
|
|
1652
|
+
}, Cn = /* @__PURE__ */ O({
|
|
1638
1653
|
inheritAttrs: !1,
|
|
1639
1654
|
name: "TTree",
|
|
1640
1655
|
__name: "tree",
|
|
1641
|
-
props: /*@__PURE__*/
|
|
1656
|
+
props: /*@__PURE__*/ M({
|
|
1642
1657
|
"onUpdate:actived": { type: Function },
|
|
1643
1658
|
"onUpdate:expanded": { type: Function },
|
|
1644
1659
|
"onUpdate:modelValue": { type: Function },
|
|
@@ -1691,7 +1706,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1691
1706
|
onLoad: { type: Function },
|
|
1692
1707
|
onScroll: { type: Function },
|
|
1693
1708
|
treeStore: {}
|
|
1694
|
-
},
|
|
1709
|
+
}, Sn),
|
|
1695
1710
|
setup(e, { expose: t }) {
|
|
1696
1711
|
let n = e, r = ke(), i = S(() => {
|
|
1697
1712
|
let e = { ...n };
|
|
@@ -1702,12 +1717,12 @@ var mn = /* @__PURE__ */ O({
|
|
|
1702
1717
|
function o(e) {
|
|
1703
1718
|
a.exposed = e ?? {};
|
|
1704
1719
|
}
|
|
1705
|
-
return t({}), (e, t) => (
|
|
1720
|
+
return t({}), (e, t) => (I(), C(z(j(V(Qe), N(e.$attrs, {
|
|
1706
1721
|
...i.value,
|
|
1707
1722
|
ref: o
|
|
1708
1723
|
}), e.$slots))));
|
|
1709
1724
|
}
|
|
1710
|
-
}),
|
|
1725
|
+
}), wn = /* @__PURE__ */ O({
|
|
1711
1726
|
inheritAttrs: !1,
|
|
1712
1727
|
name: "TTreeSelect",
|
|
1713
1728
|
__name: "tree-select",
|
|
@@ -1780,10 +1795,10 @@ var mn = /* @__PURE__ */ O({
|
|
|
1780
1795
|
minCollapsedNum: 2,
|
|
1781
1796
|
...e.selectInputProps ?? {}
|
|
1782
1797
|
}, e.treeProps = {
|
|
1783
|
-
...
|
|
1798
|
+
...Sn,
|
|
1784
1799
|
checkable: !!t.multiple,
|
|
1785
1800
|
expandOnClickNode: !!t.multiple,
|
|
1786
|
-
icon:
|
|
1801
|
+
icon: Sn.icon(),
|
|
1787
1802
|
...e.treeProps ?? {}
|
|
1788
1803
|
}, Object.keys(e).forEach((t) => {
|
|
1789
1804
|
e[t] === void 0 && delete e[t];
|
|
@@ -1792,12 +1807,12 @@ var mn = /* @__PURE__ */ O({
|
|
|
1792
1807
|
function a(e) {
|
|
1793
1808
|
i.exposed = e ?? {};
|
|
1794
1809
|
}
|
|
1795
|
-
let o =
|
|
1810
|
+
let o = L(0);
|
|
1796
1811
|
return Se(() => {
|
|
1797
|
-
|
|
1812
|
+
st(i.exposed.$el, () => {
|
|
1798
1813
|
o.value = i.exposed.$el.offsetWidth;
|
|
1799
1814
|
}, { box: "border-box" });
|
|
1800
|
-
}), (e, t) => (
|
|
1815
|
+
}), (e, t) => (I(), C(z(j(V($e), N(e.$attrs, {
|
|
1801
1816
|
...r.value,
|
|
1802
1817
|
data: n.value,
|
|
1803
1818
|
ref: a,
|
|
@@ -1811,10 +1826,10 @@ var mn = /* @__PURE__ */ O({
|
|
|
1811
1826
|
}
|
|
1812
1827
|
}), e.$slots))));
|
|
1813
1828
|
}
|
|
1814
|
-
}),
|
|
1829
|
+
}), Tn = ".xlsx,.xls", En = { class: "flex items-center" }, Dn = {
|
|
1815
1830
|
key: 1,
|
|
1816
1831
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1817
|
-
},
|
|
1832
|
+
}, On = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
1818
1833
|
inheritAttrs: !1,
|
|
1819
1834
|
name: "TUpload",
|
|
1820
1835
|
__name: "upload",
|
|
@@ -1823,7 +1838,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1823
1838
|
"onUpdate:modelValue": {},
|
|
1824
1839
|
requestMethod: {},
|
|
1825
1840
|
abridgeName: {},
|
|
1826
|
-
accept: { default:
|
|
1841
|
+
accept: { default: Tn },
|
|
1827
1842
|
allowUploadDuplicateFile: { type: Boolean },
|
|
1828
1843
|
autoUpload: { type: Boolean },
|
|
1829
1844
|
beforeAllFilesUpload: {},
|
|
@@ -1925,39 +1940,39 @@ var mn = /* @__PURE__ */ O({
|
|
|
1925
1940
|
function s(e) {
|
|
1926
1941
|
o.exposed = e ?? {};
|
|
1927
1942
|
}
|
|
1928
|
-
return t({}), (t, o) => (
|
|
1943
|
+
return t({}), (t, o) => (I(), C(z(j(V(et), N(t.$attrs, {
|
|
1929
1944
|
...a.value,
|
|
1930
1945
|
requestMethod: r.value,
|
|
1931
1946
|
ref: s
|
|
1932
|
-
}, { class: a.value.theme }))), null,
|
|
1947
|
+
}, { class: a.value.theme }))), null, _e({ _: 2 }, [R(Object.keys(t.$slots), (e) => ({
|
|
1933
1948
|
name: e,
|
|
1934
|
-
fn:
|
|
1949
|
+
fn: U((n) => [Te(t.$slots, e, F(A(n)), void 0, !0)])
|
|
1935
1950
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
1936
1951
|
name: "trigger",
|
|
1937
|
-
fn:
|
|
1938
|
-
D(
|
|
1939
|
-
default:
|
|
1952
|
+
fn: U(({ files: t }) => [ge("div", En, [
|
|
1953
|
+
D(V($), { theme: "primary" }, {
|
|
1954
|
+
default: U(() => [E(B(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
1940
1955
|
_: 2
|
|
1941
1956
|
}, 1024),
|
|
1942
|
-
e.downloadTemplate ? (
|
|
1957
|
+
e.downloadTemplate ? (I(), C(V($), {
|
|
1943
1958
|
key: 0,
|
|
1944
1959
|
theme: "primary",
|
|
1945
1960
|
variant: "outline",
|
|
1946
1961
|
onClick: je(i, ["stop"])
|
|
1947
1962
|
}, {
|
|
1948
|
-
default:
|
|
1963
|
+
default: U(() => [...o[0] ||= [E("下载模板", -1)]]),
|
|
1949
1964
|
_: 1
|
|
1950
1965
|
})) : w("v-if", !0),
|
|
1951
|
-
n.tips ? (
|
|
1966
|
+
n.tips ? (I(), T("span", Dn, B(n.tips), 1)) : w("v-if", !0)
|
|
1952
1967
|
])]),
|
|
1953
1968
|
key: "0"
|
|
1954
1969
|
} : void 0]), 1024));
|
|
1955
1970
|
}
|
|
1956
|
-
}), [["__scopeId", "data-v-
|
|
1971
|
+
}), [["__scopeId", "data-v-3f7d6566"]]), kn = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
1957
1972
|
inheritAttrs: !1,
|
|
1958
1973
|
name: "TForm",
|
|
1959
1974
|
__name: "form",
|
|
1960
|
-
props: /*@__PURE__*/
|
|
1975
|
+
props: /*@__PURE__*/ M({
|
|
1961
1976
|
autoLabelWidth: { type: Boolean },
|
|
1962
1977
|
data: {},
|
|
1963
1978
|
items: {},
|
|
@@ -1981,9 +1996,9 @@ var mn = /* @__PURE__ */ O({
|
|
|
1981
1996
|
onReset: { type: Function },
|
|
1982
1997
|
onSubmit: { type: Function },
|
|
1983
1998
|
onValidate: { type: Function }
|
|
1984
|
-
},
|
|
1999
|
+
}, xt),
|
|
1985
2000
|
setup(e, { expose: t }) {
|
|
1986
|
-
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: s = /* @__PURE__ */ new Map() } =
|
|
2001
|
+
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: s = /* @__PURE__ */ new Map() } = mt, c = k(), l = L(null), u = S(() => r.items.map((e) => {
|
|
1987
2002
|
if (typeof e.__others == "function") {
|
|
1988
2003
|
let t = {
|
|
1989
2004
|
...e,
|
|
@@ -2023,33 +2038,34 @@ var mn = /* @__PURE__ */ O({
|
|
|
2023
2038
|
}
|
|
2024
2039
|
});
|
|
2025
2040
|
}
|
|
2026
|
-
|
|
2041
|
+
H(u, d, {
|
|
2027
2042
|
deep: 2,
|
|
2028
2043
|
immediate: !0
|
|
2029
|
-
}),
|
|
2044
|
+
}), H(() => r.data, () => {
|
|
2030
2045
|
n.error("TForm: data is changed");
|
|
2031
2046
|
});
|
|
2032
2047
|
let f = /* @__PURE__ */ new Map(), p = {
|
|
2033
2048
|
TCheckbox: a,
|
|
2034
|
-
TCheckboxGroup:
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2049
|
+
TCheckboxGroup: gn,
|
|
2050
|
+
TColorPicker: re,
|
|
2051
|
+
TCron: _n,
|
|
2052
|
+
TDatePicker: oe,
|
|
2053
|
+
TInput: ae,
|
|
2054
|
+
TInputNumber: se,
|
|
2055
|
+
TRadioGroup: vn,
|
|
2056
|
+
TRangeInput: ce,
|
|
2057
|
+
TSelect: bn,
|
|
2058
|
+
TSelectSysUser: xn,
|
|
2059
|
+
TSlider: de,
|
|
2060
|
+
TSwitch: fe,
|
|
2061
|
+
TTagInput: ue,
|
|
2062
|
+
TTextarea: pe,
|
|
2063
|
+
TTree: Cn,
|
|
2064
|
+
TTreeSelect: wn,
|
|
2065
|
+
TUpload: On
|
|
2050
2066
|
};
|
|
2051
2067
|
function m(e) {
|
|
2052
|
-
return typeof e == "string" ? s.has(e) ? (f.has(e) || f.set(e,
|
|
2068
|
+
return typeof e == "string" ? s.has(e) ? (f.has(e) || f.set(e, ve(s.get(e))), f.get(e)) : p[e] : ae;
|
|
2053
2069
|
}
|
|
2054
2070
|
function h(e) {
|
|
2055
2071
|
let t = {};
|
|
@@ -2129,11 +2145,11 @@ var mn = /* @__PURE__ */ O({
|
|
|
2129
2145
|
if (!t.clearValidate._alreadyReplace) {
|
|
2130
2146
|
let e = t.clearValidate;
|
|
2131
2147
|
t.clearValidate = (...t) => {
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2148
|
+
P(() => {
|
|
2149
|
+
P(() => {
|
|
2150
|
+
P(() => {
|
|
2151
|
+
P(() => {
|
|
2152
|
+
P(() => {
|
|
2137
2153
|
e(...t);
|
|
2138
2154
|
});
|
|
2139
2155
|
});
|
|
@@ -2154,14 +2170,14 @@ var mn = /* @__PURE__ */ O({
|
|
|
2154
2170
|
}
|
|
2155
2171
|
let b = De();
|
|
2156
2172
|
Se(() => {
|
|
2157
|
-
b.value = c.exposed.$el.getElementsByClassName("t-form__label"), x(),
|
|
2173
|
+
b.value = c.exposed.$el.getElementsByClassName("t-form__label"), x(), ot(c.exposed.$el, () => {
|
|
2158
2174
|
x();
|
|
2159
2175
|
}, {
|
|
2160
2176
|
attributeFilter: ["class"],
|
|
2161
2177
|
characterData: !0,
|
|
2162
2178
|
childList: !0,
|
|
2163
2179
|
subtree: !0
|
|
2164
|
-
}),
|
|
2180
|
+
}), st(c.exposed.$el, () => {
|
|
2165
2181
|
x();
|
|
2166
2182
|
});
|
|
2167
2183
|
});
|
|
@@ -2177,12 +2193,12 @@ var mn = /* @__PURE__ */ O({
|
|
|
2177
2193
|
e.style.minWidth = `${t}px`;
|
|
2178
2194
|
});
|
|
2179
2195
|
}
|
|
2180
|
-
return Ce("formData", r.data), Ce("formExposed", l), Ce("isFormDisabled", S(() => r.disabled)), Ce("isFormReadonly", S(() => r.readonly)), t({}), (t, n) => (
|
|
2196
|
+
return Ce("formData", r.data), Ce("formExposed", l), Ce("isFormDisabled", S(() => r.disabled)), Ce("isFormReadonly", S(() => r.readonly)), t({}), (t, n) => (I(), T(me, null, [w(" eslint-disable vue/no-mutating-props "), (I(), C(z(V(He)), N(N(t.$attrs, {
|
|
2181
2197
|
...g.value,
|
|
2182
2198
|
ref: y
|
|
2183
2199
|
}), { "label-width": "fit-content" }), {
|
|
2184
|
-
default:
|
|
2185
|
-
default:
|
|
2200
|
+
default: U(() => [(I(!0), T(me, null, R(u.value.filter((e) => e.show !== !1), (n) => (I(), C(V(Ue), N({ key: n.model ?? n.slot }, { ref_for: !0 }, N({ ...ee(n) }, { class: { no_label_item: V(v)(n._label) } }), { name: n.model }), {
|
|
2201
|
+
default: U(() => [n.slot ? Te(t.$slots, n.slot, {}, void 0, !0, 0) : (I(), C(z(m(n.component)), N({
|
|
2186
2202
|
key: 1,
|
|
2187
2203
|
modelValue: e.data[n.model],
|
|
2188
2204
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
@@ -2192,14 +2208,14 @@ var mn = /* @__PURE__ */ O({
|
|
|
2192
2208
|
_: 3
|
|
2193
2209
|
}, 16))], 2112));
|
|
2194
2210
|
}
|
|
2195
|
-
}), [["__scopeId", "data-v-
|
|
2211
|
+
}), [["__scopeId", "data-v-a297275a"]]), An = /* @__PURE__ */ O({
|
|
2196
2212
|
__name: "ResetPwd",
|
|
2197
2213
|
props: { showFooter: {
|
|
2198
2214
|
type: Boolean,
|
|
2199
2215
|
default: !0
|
|
2200
2216
|
} },
|
|
2201
2217
|
setup(e, { expose: t }) {
|
|
2202
|
-
let n =
|
|
2218
|
+
let n = W(), r = [
|
|
2203
2219
|
{
|
|
2204
2220
|
_label: "旧密码",
|
|
2205
2221
|
_required: !0,
|
|
@@ -2232,7 +2248,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
2232
2248
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
2233
2249
|
], i = Ae("form");
|
|
2234
2250
|
function a() {
|
|
2235
|
-
|
|
2251
|
+
K().close(n.name);
|
|
2236
2252
|
}
|
|
2237
2253
|
async function o() {
|
|
2238
2254
|
let e = await i.value.validate();
|
|
@@ -2245,23 +2261,23 @@ var mn = /* @__PURE__ */ O({
|
|
|
2245
2261
|
newPassword: e.newPassword,
|
|
2246
2262
|
oldPassword: e.oldPassword
|
|
2247
2263
|
}
|
|
2248
|
-
}),
|
|
2264
|
+
}), Yt().logout();
|
|
2249
2265
|
}
|
|
2250
|
-
return t({ handleSubmit: o }), (e, t) => (
|
|
2266
|
+
return t({ handleSubmit: o }), (e, t) => (I(), C(V(kn), {
|
|
2251
2267
|
ref: "form",
|
|
2252
2268
|
items: r,
|
|
2253
2269
|
"label-align": "right",
|
|
2254
2270
|
layout: "vertical"
|
|
2255
2271
|
}, {
|
|
2256
|
-
footer:
|
|
2257
|
-
default:
|
|
2272
|
+
footer: U(() => [D(V($), { onClick: o }, {
|
|
2273
|
+
default: U(() => [...t[0] ||= [E("保存", -1)]]),
|
|
2258
2274
|
_: 1
|
|
2259
|
-
}), D(
|
|
2275
|
+
}), D(V($), {
|
|
2260
2276
|
class: "ml-4!",
|
|
2261
2277
|
theme: "default",
|
|
2262
2278
|
onClick: a
|
|
2263
2279
|
}, {
|
|
2264
|
-
default:
|
|
2280
|
+
default: U(() => [...t[1] ||= [E("关闭", -1)]]),
|
|
2265
2281
|
_: 1
|
|
2266
2282
|
})]),
|
|
2267
2283
|
_: 1
|
|
@@ -2270,34 +2286,34 @@ var mn = /* @__PURE__ */ O({
|
|
|
2270
2286
|
});
|
|
2271
2287
|
//#endregion
|
|
2272
2288
|
//#region ../../packages/dlzn-ui/store/modules/user.ts
|
|
2273
|
-
function
|
|
2289
|
+
function jn() {
|
|
2274
2290
|
return Y.Get("getInfo", { meta: {
|
|
2275
2291
|
useFailMsg: "获取用户信息失败",
|
|
2276
2292
|
useLoading: "正在获取用户信息..."
|
|
2277
2293
|
} });
|
|
2278
2294
|
}
|
|
2279
|
-
var
|
|
2295
|
+
var Mn = {
|
|
2280
2296
|
admin: !1,
|
|
2281
2297
|
dept: { deptName: "" },
|
|
2282
2298
|
needChangePwd: 0,
|
|
2283
2299
|
nickName: "",
|
|
2284
2300
|
userId: "",
|
|
2285
2301
|
userName: ""
|
|
2286
|
-
}, Q =
|
|
2287
|
-
let e =
|
|
2302
|
+
}, Q = ut("user", () => {
|
|
2303
|
+
let e = L(ct(Mn)), t = L([]), n = L([]);
|
|
2288
2304
|
function r() {
|
|
2289
|
-
e.value =
|
|
2305
|
+
e.value = ct(Mn), t.value = [], n.value = [];
|
|
2290
2306
|
}
|
|
2291
|
-
let i = S(() => e.value.admin), a =
|
|
2307
|
+
let i = S(() => e.value.admin), a = L("");
|
|
2292
2308
|
async function o(r = !0) {
|
|
2293
|
-
let i = await
|
|
2294
|
-
e.value = i.user, a.value !== e.value.userId &&
|
|
2309
|
+
let i = await jn();
|
|
2310
|
+
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 jt().getRouters();
|
|
2295
2311
|
}
|
|
2296
|
-
|
|
2297
|
-
e === 1 && VITE_FORCE_PWD_CHANGE &&
|
|
2298
|
-
let e =
|
|
2299
|
-
|
|
2300
|
-
body: () =>
|
|
2312
|
+
H(() => e.value.needChangePwd, (e) => {
|
|
2313
|
+
e === 1 && VITE_FORCE_PWD_CHANGE && P(() => {
|
|
2314
|
+
let e = L(null);
|
|
2315
|
+
zt({
|
|
2316
|
+
body: () => j(An, {
|
|
2301
2317
|
labelAlign: "top",
|
|
2302
2318
|
ref: e,
|
|
2303
2319
|
showFooter: !1
|
|
@@ -2332,7 +2348,7 @@ var An = {
|
|
|
2332
2348
|
inheritAttrs: !1,
|
|
2333
2349
|
name: "TButton",
|
|
2334
2350
|
__name: "button",
|
|
2335
|
-
props: /*@__PURE__*/
|
|
2351
|
+
props: /*@__PURE__*/ M({
|
|
2336
2352
|
autoIcon: { type: Boolean },
|
|
2337
2353
|
autoLoading: { type: Boolean },
|
|
2338
2354
|
autoTheme: { type: Boolean },
|
|
@@ -2369,9 +2385,9 @@ var An = {
|
|
|
2369
2385
|
Object,
|
|
2370
2386
|
Array
|
|
2371
2387
|
] }
|
|
2372
|
-
},
|
|
2388
|
+
}, bt),
|
|
2373
2389
|
setup(n) {
|
|
2374
|
-
let r = n, a =
|
|
2390
|
+
let r = n, a = L("");
|
|
2375
2391
|
function o() {
|
|
2376
2392
|
if (!r.autoTheme || a.value.trim() === "") return {};
|
|
2377
2393
|
let e = /* @__PURE__ */ new Map([
|
|
@@ -2393,14 +2409,14 @@ var An = {
|
|
|
2393
2409
|
}
|
|
2394
2410
|
return t;
|
|
2395
2411
|
}
|
|
2396
|
-
let s =
|
|
2397
|
-
|
|
2412
|
+
let s = L(!1), c = i.isLoading, l = L(null), { focused: u } = at(l), d, f;
|
|
2413
|
+
H(c, (e) => {
|
|
2398
2414
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2399
2415
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
2400
2416
|
}, 150)) : d === void 0 ? f = setTimeout(() => {
|
|
2401
2417
|
s.value = !1;
|
|
2402
2418
|
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
2403
|
-
}, { immediate: !0 }),
|
|
2419
|
+
}, { immediate: !0 }), H(u, (e) => {
|
|
2404
2420
|
e && c.value && (s.value = !0);
|
|
2405
2421
|
});
|
|
2406
2422
|
let p = S(() => r.loading === void 0 ? r.autoLoading ? s.value : !1 : r.loading), m = S(() => {
|
|
@@ -2430,6 +2446,7 @@ var An = {
|
|
|
2430
2446
|
],
|
|
2431
2447
|
"mdi:cancel": ["取消"],
|
|
2432
2448
|
"mdi:remove": ["清除"],
|
|
2449
|
+
"ant-design:clear-outlined": ["清空"],
|
|
2433
2450
|
"entypo:switch": ["开启"],
|
|
2434
2451
|
"material-symbols:pause": ["暂停"],
|
|
2435
2452
|
"ri:edit-line": ["编辑"],
|
|
@@ -2438,7 +2455,9 @@ var An = {
|
|
|
2438
2455
|
"carbon:executable-program": ["执行"],
|
|
2439
2456
|
"ri:save-line": ["保存", "提交"],
|
|
2440
2457
|
"uiw:down": ["展开"],
|
|
2458
|
+
"garden:exit-stroke-12": ["强退"],
|
|
2441
2459
|
"uiw:up": ["收起"],
|
|
2460
|
+
"clarity:unlock-line": ["解锁"],
|
|
2442
2461
|
"mdi:close": ["关闭"],
|
|
2443
2462
|
"ri:reset-left-fill": ["重置"],
|
|
2444
2463
|
"tabler:refresh": [
|
|
@@ -2470,14 +2489,15 @@ var An = {
|
|
|
2470
2489
|
"material-symbols:folder-outline": ["文件夹"],
|
|
2471
2490
|
"mdi:file-outline": ["文件"],
|
|
2472
2491
|
"bi:journal-text": ["日志"],
|
|
2473
|
-
"material-symbols:security": ["权限"]
|
|
2492
|
+
"material-symbols:security": ["权限"],
|
|
2493
|
+
"ri:wechat-channels-line": ["视频号"]
|
|
2474
2494
|
}, t;
|
|
2475
2495
|
for (let [n, r] of Object.entries(e)) if (r.some((e) => a.value.includes(e))) {
|
|
2476
2496
|
t = n;
|
|
2477
2497
|
break;
|
|
2478
2498
|
}
|
|
2479
2499
|
if (t !== void 0) return t;
|
|
2480
|
-
}), v = Oe(), y = S(() =>
|
|
2500
|
+
}), v = Oe(), y = S(() => N(v, {
|
|
2481
2501
|
...m.value,
|
|
2482
2502
|
ref: ee
|
|
2483
2503
|
}, { class: "flex-shrink-0" })), b = S(() => {
|
|
@@ -2488,33 +2508,33 @@ var An = {
|
|
|
2488
2508
|
}
|
|
2489
2509
|
};
|
|
2490
2510
|
});
|
|
2491
|
-
return (r, i) =>
|
|
2492
|
-
default:
|
|
2511
|
+
return (r, i) => V(Q)().checkPermissions(n.permission) ? (I(), T(me, { key: 0 }, [b.value ? (I(), C(V(t), F(N({ key: 0 }, b.value)), {
|
|
2512
|
+
default: U(() => [(I(), C(z(j(V(Pe), y.value)), {
|
|
2493
2513
|
onVnodeMounted: g,
|
|
2494
2514
|
onVnodeUpdated: g
|
|
2495
|
-
},
|
|
2515
|
+
}, _e({ _: 2 }, [n.icon || _.value ? {
|
|
2496
2516
|
name: "icon",
|
|
2497
|
-
fn:
|
|
2517
|
+
fn: U(() => [D(V(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
|
|
2498
2518
|
key: "0"
|
|
2499
|
-
} : void 0,
|
|
2519
|
+
} : void 0, R(Object.keys(r.$slots), (e) => ({
|
|
2500
2520
|
name: e,
|
|
2501
|
-
fn:
|
|
2521
|
+
fn: U((t) => [Te(r.$slots, e, F(A(t)), void 0, !0)])
|
|
2502
2522
|
}))]), 1536))]),
|
|
2503
2523
|
_: 3
|
|
2504
|
-
}, 16)) : (
|
|
2524
|
+
}, 16)) : (I(), C(z(j(V(Pe), y.value)), {
|
|
2505
2525
|
key: 1,
|
|
2506
2526
|
onVnodeMounted: g,
|
|
2507
2527
|
onVnodeUpdated: g
|
|
2508
|
-
},
|
|
2528
|
+
}, _e({ _: 2 }, [n.icon || _.value ? {
|
|
2509
2529
|
name: "icon",
|
|
2510
|
-
fn:
|
|
2530
|
+
fn: U(() => [D(V(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
|
|
2511
2531
|
key: "0"
|
|
2512
|
-
} : void 0,
|
|
2532
|
+
} : void 0, R(Object.keys(r.$slots), (e) => ({
|
|
2513
2533
|
name: e,
|
|
2514
|
-
fn:
|
|
2534
|
+
fn: U((t) => [Te(r.$slots, e, F(A(t)), void 0, !0)])
|
|
2515
2535
|
}))]), 1536))], 64)) : w("v-if", !0);
|
|
2516
2536
|
}
|
|
2517
|
-
}), [["__scopeId", "data-v-
|
|
2537
|
+
}), [["__scopeId", "data-v-d7f7dcf0"]]), Nn = /* @__PURE__ */ O({
|
|
2518
2538
|
name: "TProvider",
|
|
2519
2539
|
__name: "Provider",
|
|
2520
2540
|
setup(t) {
|
|
@@ -2533,14 +2553,14 @@ var An = {
|
|
|
2533
2553
|
variant: "text"
|
|
2534
2554
|
}, { icon: () => t(e, { icon: `ph:caret-${n === "expand" ? "right" : "down"}-bold` }) })
|
|
2535
2555
|
} };
|
|
2536
|
-
return (e, t) => (
|
|
2556
|
+
return (e, t) => (I(), C(V(tt), {
|
|
2537
2557
|
"empty-values": [""],
|
|
2538
|
-
locale:
|
|
2558
|
+
locale: V(yt),
|
|
2539
2559
|
"value-on-clear": "",
|
|
2540
2560
|
"z-index": 5500
|
|
2541
2561
|
}, {
|
|
2542
|
-
default:
|
|
2543
|
-
default:
|
|
2562
|
+
default: U(() => [D(V(Ie), { "global-config": n }, {
|
|
2563
|
+
default: U(() => [Te(e.$slots, "default")]),
|
|
2544
2564
|
_: 3
|
|
2545
2565
|
})]),
|
|
2546
2566
|
_: 3
|
|
@@ -2548,4 +2568,4 @@ var An = {
|
|
|
2548
2568
|
}
|
|
2549
2569
|
});
|
|
2550
2570
|
//#endregion
|
|
2551
|
-
export {
|
|
2571
|
+
export { Zt as A, jt as B, sn as C, J as D, nn as E, zt as F, G as H, Rt as I, Pt as L, Wt as M, Gt as N, tn as O, Kt as P, Nt as R, Y as S, rn as T, xt as U, K as V, bt as W, gn as _, An as a, mn as b, Tn as c, Sn as d, xn as f, _n as g, vn as h, Q as i, Yt as j, Qt as k, wn as l, yn as m, $ as n, kn as o, bn as p, jn as r, On as s, Nn as t, Cn as u, fn as v, cn as w, hn as x, pn as y, Ct as z };
|