dlzn-ui 2.0.30 → 2.0.32
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/color-picker-DD6DUdBH.css +1 -0
- package/assets/css/tdesign-reset.css +1 -1
- package/assets/{provider-XeFy2v3X.css → provider-BVALV5nM.css} +1 -1
- package/chunks/{AssignUser-DZvNJ6_v.mjs → AssignUser-CwTne2Qc.mjs} +3 -3
- package/chunks/{Common-DZTByJ2b.mjs → Common-CkUSQvHq.mjs} +1 -1
- package/chunks/{Day-D47hdyiq.mjs → Day-BcnyU5sK.mjs} +1 -1
- package/chunks/{DictTypeDetail--OE6JJ5s.mjs → DictTypeDetail-CCAzju0B.mjs} +2 -2
- package/chunks/{Hour-CkkZZ5R6.mjs → Hour-Cwatbaf_.mjs} +1 -1
- package/chunks/{Index-0-JzYXfb.mjs → Index-B-O5KGpr.mjs} +1 -1
- package/chunks/Index-But4jrnW.mjs +61 -0
- package/chunks/{Index-DsO5SwJk.mjs → Index-CKN8MPux.mjs} +1 -1
- package/chunks/{Index-CSNXgzLe.mjs → Index-Cj8p6UO8.mjs} +1 -1
- package/chunks/{Index-C_JjguDb.mjs → Index-CtOfQO_c.mjs} +1 -1
- package/chunks/{Index-2AaTfz2L.mjs → Index-CtjRKRpF.mjs} +1 -1
- package/chunks/{IndexItem-CUgu9du0.mjs → IndexItem-PI7azFUZ.mjs} +1 -1
- package/chunks/{Log-DTQeRVz1.mjs → Log-BKG8INUi.mjs} +2 -2
- package/chunks/{Minute-Dl21u3sJ.mjs → Minute-xIvf6ywN.mjs} +1 -1
- package/chunks/{Month-DIgPlTW3.mjs → Month-BR0hxhS7.mjs} +1 -1
- package/chunks/{Second-C9JrfdJq.mjs → Second-CAfVDcZ6.mjs} +1 -1
- package/chunks/{SelectDept-BdP4Fevb.mjs → SelectDept-DpwFmg4t.mjs} +2 -2
- package/chunks/{SelectMenu-C8uTKPyO.mjs → SelectMenu-PhyLqwyu.mjs} +2 -2
- package/chunks/{SelectUser-Y-2MCvw3.mjs → SelectUser-BF4CSoDQ.mjs} +2 -2
- package/chunks/{UserInfo-BXDXYNSa.mjs → UserInfo-eE2h2il7.mjs} +1 -1
- package/chunks/{app-C4vupHU4.mjs → app-Bzy7d05r.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-V6c5UZq4.mjs} +4 -4
- package/chunks/{custom-page-table-y7emjJnS.mjs → custom-page-table-C0a_H9Oi.mjs} +2 -2
- package/chunks/{overview-YqvRmr0O.mjs → overview-DT92-YBw.mjs} +1 -1
- package/chunks/{page-list-DUYDkWcj.mjs → page-list-BhLsMD_7.mjs} +3 -3
- package/chunks/{page-query-oFiHpSCX.mjs → page-query-DiQBAtPy.mjs} +1 -1
- package/chunks/{page-table-C1hMMXID.mjs → page-table-VlLsrpZs.mjs} +3 -3
- package/chunks/{pagination-CQPdVoCT.mjs → pagination-gtzetvwl.mjs} +1 -1
- package/chunks/{provider-BhFm5rvy.mjs → provider-Ccvmo_nA.mjs} +273 -266
- package/chunks/{table-CqT9HbMR.mjs → table-C3GB8HZj.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 +1 -1
- 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/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.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +1 -1
- package/utils/boolean.mjs +1 -1
- package/views/index.mjs +2 -0
- package/views/monitor/logininfor/index.mjs +2 -2
- package/views/monitor/online/index.mjs +82 -0
- package/views/monitor/online/index.vue.d.ts +3 -0
- package/views/monitor/operlog/index.mjs +2 -2
- package/views/monitor/server/index.mjs +216 -0
- package/views/monitor/server/index.vue.d.ts +3 -0
- 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
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import '../assets/css-BPkXehJY.css';import '../assets/provider-
|
|
1
|
+
import '../assets/css-BPkXehJY.css';import '../assets/provider-BVALV5nM.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
|
|
47
|
-
import { Breadcrumb as
|
|
48
|
-
import { ElConfigProvider as
|
|
49
|
-
import { useElementSize as
|
|
50
|
-
import { cloneDeep as
|
|
51
|
-
import { defineStore as
|
|
52
|
-
import { createRouter as
|
|
53
|
-
import
|
|
54
|
-
import { createAlova as
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
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 ye, h as A, inject as be, markRaw as xe, mergeDefaults as j, mergeProps as M, nextTick as N, normalizeClass as Se, normalizeProps as P, onMounted as Ce, openBlock as F, provide as we, reactive as Te, ref as I, renderList as L, renderSlot as Ee, resolveComponent as De, resolveDynamicComponent as R, shallowRef as Oe, toDisplayString as z, unref as B, useAttrs as ke, useSlots as Ae, useTemplateRef as je, watch as V, withCtx as H, withModifiers as Me } from "vue";
|
|
49
|
+
import { Breadcrumb as Ne, BreadcrumbItem as Pe, Button as Fe, CheckboxGroup as Ie, ConfigProvider as Le, Content as Re, DialogPlugin as ze, Drawer as Be, DrawerPlugin as Ve, Dropdown as He, Form as Ue, FormItem as We, HeadMenu as Ge, Header as Ke, InputAdornment as qe, Layout as Je, Menu as Ye, MenuItem as Xe, RadioGroup as Ze, Select as Qe, Tree as $e, TreeSelect as et, Upload as tt } from "tdesign-vue-next";
|
|
50
|
+
import { ElConfigProvider as nt } from "element-plus";
|
|
51
|
+
import { useElementSize as rt, useElementVisibility 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 U, 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,15 +239,15 @@ 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
|
-
data: () =>
|
|
250
|
+
data: () => Te({}),
|
|
249
251
|
disabled: !1,
|
|
250
252
|
labelAlign: "top",
|
|
251
253
|
layout: "inline",
|
|
@@ -258,7 +260,7 @@ var vt = {
|
|
|
258
260
|
};
|
|
259
261
|
//#endregion
|
|
260
262
|
//#region ../../packages/dlzn-ui/store/modules/common.ts
|
|
261
|
-
function
|
|
263
|
+
function St() {
|
|
262
264
|
return Y.Get("common/appInfo", { meta: {
|
|
263
265
|
useFailMsg: !1,
|
|
264
266
|
useLoading: !1,
|
|
@@ -266,7 +268,7 @@ function xt() {
|
|
|
266
268
|
useToken: !1
|
|
267
269
|
} });
|
|
268
270
|
}
|
|
269
|
-
var W =
|
|
271
|
+
var W = ut("common", () => {
|
|
270
272
|
let e = I(!0), t = I(250), n = I({
|
|
271
273
|
appName: VITE_APP_NAME,
|
|
272
274
|
version: ""
|
|
@@ -275,7 +277,7 @@ var W = lt("common", () => {
|
|
|
275
277
|
e && (document.title = e);
|
|
276
278
|
});
|
|
277
279
|
function r() {
|
|
278
|
-
|
|
280
|
+
St().then((e) => {
|
|
279
281
|
n.value = e;
|
|
280
282
|
}).catch((e) => {
|
|
281
283
|
console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
|
|
@@ -295,13 +297,13 @@ var W = lt("common", () => {
|
|
|
295
297
|
isRequestSleep: i,
|
|
296
298
|
requestActive: o
|
|
297
299
|
};
|
|
298
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), G =
|
|
299
|
-
let e = I([]), t = U(), n =
|
|
300
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), G = ut("recentRouters", () => {
|
|
301
|
+
let e = I([]), t = U(), n = pt();
|
|
300
302
|
function r() {
|
|
301
303
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
302
304
|
}
|
|
303
305
|
function i(t, n) {
|
|
304
|
-
let r =
|
|
306
|
+
let r = ct(n), i = e.value.findIndex((e) => e.name === r.name || J(e.name).meta.title === J(r.name).meta.title);
|
|
305
307
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
306
308
|
let n = e.value.findIndex((e) => e.name === t);
|
|
307
309
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -332,16 +334,16 @@ var W = lt("common", () => {
|
|
|
332
334
|
}, { persist: { pick: ["recentRouters"] } });
|
|
333
335
|
//#endregion
|
|
334
336
|
//#region ../../packages/dlzn-ui/store/modules/router.ts
|
|
335
|
-
function
|
|
337
|
+
function Ct() {
|
|
336
338
|
return Y.Get("getRouters", { meta: {
|
|
337
339
|
useFailMsg: "获取用户路由失败",
|
|
338
340
|
useLoading: "正在获取用户路由..."
|
|
339
341
|
} });
|
|
340
342
|
}
|
|
341
|
-
function
|
|
343
|
+
function wt(e) {
|
|
342
344
|
return e.children !== void 0 || e.component !== void 0;
|
|
343
345
|
}
|
|
344
|
-
function
|
|
346
|
+
function Tt(e) {
|
|
345
347
|
let t = [];
|
|
346
348
|
return e.forEach((e) => {
|
|
347
349
|
e.path === "/" ? t.push({
|
|
@@ -350,7 +352,7 @@ function wt(e) {
|
|
|
350
352
|
}) : t.push(e);
|
|
351
353
|
}), t;
|
|
352
354
|
}
|
|
353
|
-
function
|
|
355
|
+
function Et(e) {
|
|
354
356
|
let t = (e, n) => {
|
|
355
357
|
let r = [];
|
|
356
358
|
return e.forEach((e) => {
|
|
@@ -374,12 +376,12 @@ function Tt(e) {
|
|
|
374
376
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
375
377
|
}
|
|
376
378
|
}
|
|
377
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
379
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = At(e)), wt(i) && r.push(i);
|
|
378
380
|
}), r;
|
|
379
|
-
}, n =
|
|
381
|
+
}, n = nn();
|
|
380
382
|
return n.children.push(...e), t([n], null);
|
|
381
383
|
}
|
|
382
|
-
function
|
|
384
|
+
function Dt(e) {
|
|
383
385
|
let t = (e) => {
|
|
384
386
|
let n = [...e], r = n.length;
|
|
385
387
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -392,30 +394,30 @@ function Et(e) {
|
|
|
392
394
|
};
|
|
393
395
|
return t(e);
|
|
394
396
|
}
|
|
395
|
-
var
|
|
396
|
-
function
|
|
397
|
+
var Ot = [];
|
|
398
|
+
function kt(e) {
|
|
397
399
|
return `./${e.split("___")[0]}.vue`;
|
|
398
400
|
}
|
|
399
|
-
function
|
|
401
|
+
function At(e) {
|
|
400
402
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
401
|
-
let t = e.component, n = typeof t == "string" ? m[
|
|
403
|
+
let t = e.component, n = typeof t == "string" ? m[kt(t)] : t;
|
|
402
404
|
if (n === void 0) {
|
|
403
|
-
let e = `路由组件${
|
|
405
|
+
let e = `路由组件${kt(t)}不存在`;
|
|
404
406
|
return console.error(e), s["./NotFound.vue"];
|
|
405
407
|
}
|
|
406
|
-
return typeof t == "string" &&
|
|
408
|
+
return typeof t == "string" && Ot.push(kt(t)), () => n().then((t) => ({
|
|
407
409
|
...t.default,
|
|
408
410
|
name: e.name
|
|
409
411
|
}));
|
|
410
412
|
}
|
|
411
413
|
return e.component;
|
|
412
414
|
}
|
|
413
|
-
var
|
|
414
|
-
let e = I([]), t =
|
|
415
|
+
var jt = ut("router", () => {
|
|
416
|
+
let e = I([]), t = pt(), n = Q();
|
|
415
417
|
async function r() {
|
|
416
|
-
let r = await
|
|
417
|
-
|
|
418
|
-
if (!
|
|
418
|
+
let r = await Ct();
|
|
419
|
+
Ot.length = 0, e.value = xe(Dt(Et(Tt(r)))), n.isAdmin && Object.keys(m).forEach((e) => {
|
|
420
|
+
if (!Ot.includes(e)) {
|
|
419
421
|
let t = `${e} 页面对应的路由不存在`;
|
|
420
422
|
console.error(t);
|
|
421
423
|
}
|
|
@@ -433,10 +435,10 @@ var At = lt("router", () => {
|
|
|
433
435
|
getRouters: r,
|
|
434
436
|
routersRaw: e
|
|
435
437
|
};
|
|
436
|
-
}),
|
|
438
|
+
}), Mt = { class: "ml-2! flex items-center" }, Nt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
437
439
|
__name: "Aside",
|
|
438
440
|
setup(e) {
|
|
439
|
-
let t = U(), n = W(), r = S(() => n.appInfo.appName), i =
|
|
441
|
+
let t = U(), n = W(), r = S(() => n.appInfo.appName), i = jt(), a = I([]);
|
|
440
442
|
V(() => t.name, () => {
|
|
441
443
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
442
444
|
a.value.includes(e) || a.value.push(e);
|
|
@@ -446,15 +448,15 @@ var At = lt("router", () => {
|
|
|
446
448
|
let { hidden: e, parentName: n } = t.meta;
|
|
447
449
|
return n !== "" && e === !0 ? n : t.name;
|
|
448
450
|
});
|
|
449
|
-
return (e, t) => (F(), C(B(
|
|
451
|
+
return (e, t) => (F(), C(B(Ye), {
|
|
450
452
|
expanded: a.value,
|
|
451
453
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
452
454
|
class: "w-full!",
|
|
453
455
|
value: o.value
|
|
454
456
|
}, {
|
|
455
|
-
logo: H(() => [
|
|
457
|
+
logo: H(() => [ge("div", Mt, [D(B(p), {
|
|
456
458
|
class: "logo",
|
|
457
|
-
src: B(
|
|
459
|
+
src: B(mt).asideTopLogoUrl,
|
|
458
460
|
style: {
|
|
459
461
|
width: "28px",
|
|
460
462
|
height: "28px"
|
|
@@ -469,10 +471,10 @@ var At = lt("router", () => {
|
|
|
469
471
|
_: 1
|
|
470
472
|
}, 8, ["expanded", "value"]));
|
|
471
473
|
}
|
|
472
|
-
}), [["__scopeId", "data-v-b32f75fd"]]),
|
|
474
|
+
}), [["__scopeId", "data-v-b32f75fd"]]), Pt = /* @__PURE__ */ O({
|
|
473
475
|
__name: "Breadcrumb",
|
|
474
476
|
setup(e, { expose: t }) {
|
|
475
|
-
let n = U(), r =
|
|
477
|
+
let n = U(), r = pt(), i = G(), a = S(() => {
|
|
476
478
|
let e = n.matched.map((e) => ({
|
|
477
479
|
name: e.name,
|
|
478
480
|
title: e.meta.title
|
|
@@ -485,11 +487,11 @@ var At = lt("router", () => {
|
|
|
485
487
|
function o(e) {
|
|
486
488
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
487
489
|
}
|
|
488
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (F(), C(B(
|
|
490
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (F(), C(B(Ne), {
|
|
489
491
|
key: 0,
|
|
490
492
|
class: "absolute top-px z-10 py-1!"
|
|
491
493
|
}, {
|
|
492
|
-
default: H(() => [(F(!0), T(
|
|
494
|
+
default: H(() => [(F(!0), T(me, null, L(a.value, (e) => (F(), C(B(Pe), {
|
|
493
495
|
key: e.name,
|
|
494
496
|
disabled: e.disabled,
|
|
495
497
|
onClick: (t) => o(e.name)
|
|
@@ -500,11 +502,11 @@ var At = lt("router", () => {
|
|
|
500
502
|
_: 1
|
|
501
503
|
})) : w("v-if", !0);
|
|
502
504
|
}
|
|
503
|
-
}),
|
|
505
|
+
}), Ft = /* @__PURE__ */ function(e) {
|
|
504
506
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
505
|
-
}(
|
|
506
|
-
function
|
|
507
|
-
let i = S(() => typeof t.body == "function" ? t.body(A) : t.body), a = I(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: o, stop: s } =
|
|
507
|
+
}(Ft || {}), It = /* @__PURE__ */ new Set();
|
|
508
|
+
function Lt(e, t, n) {
|
|
509
|
+
let i = S(() => typeof t.body == "function" ? t.body(A) : t.body), a = I(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: o, stop: s } = it(a, {
|
|
508
510
|
controls: !0,
|
|
509
511
|
initialValue: !0
|
|
510
512
|
}), c = {
|
|
@@ -525,39 +527,39 @@ function It(e, t, n) {
|
|
|
525
527
|
placement: "center",
|
|
526
528
|
width: "fit-content",
|
|
527
529
|
...t ?? {},
|
|
528
|
-
body: () => A(
|
|
530
|
+
body: () => A(Mn, {}, { default: () => i.value })
|
|
529
531
|
}, l, u = {
|
|
530
532
|
...c,
|
|
531
533
|
onClosed: () => {
|
|
532
|
-
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(),
|
|
534
|
+
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(), It.delete(l);
|
|
533
535
|
}
|
|
534
536
|
};
|
|
535
537
|
delete u.closeWhenCloseAll;
|
|
536
538
|
let d = r();
|
|
537
|
-
return l = e === void 0 ?
|
|
539
|
+
return l = e === void 0 ? ze(u, n ?? d) : ze[e](u, n ?? d), c.closeWhenCloseAll && It.add(l), l;
|
|
538
540
|
}
|
|
539
|
-
var
|
|
540
|
-
return
|
|
541
|
+
var Rt = function(...e) {
|
|
542
|
+
return Lt(void 0, ...e);
|
|
541
543
|
};
|
|
542
|
-
Object.values(
|
|
543
|
-
|
|
544
|
-
|
|
544
|
+
Object.values(Ft).forEach((e) => {
|
|
545
|
+
Rt[e] = e === "closeAll" ? () => {
|
|
546
|
+
It.forEach((e) => {
|
|
545
547
|
e.hide();
|
|
546
548
|
});
|
|
547
|
-
} : (...t) =>
|
|
549
|
+
} : (...t) => Lt(e, ...t);
|
|
548
550
|
});
|
|
549
551
|
//#endregion
|
|
550
552
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
551
|
-
var
|
|
553
|
+
var zt = (e, t) => {
|
|
552
554
|
let n = { ...typeof e == "string" ? {} : e };
|
|
553
555
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
554
|
-
let a =
|
|
556
|
+
let a = Rt(typeof e == "string" ? {
|
|
555
557
|
body: e,
|
|
556
558
|
onConfirm: () => {
|
|
557
559
|
a.hide(), r();
|
|
558
560
|
},
|
|
559
561
|
theme: "warning"
|
|
560
|
-
} :
|
|
562
|
+
} : Te({
|
|
561
563
|
...n,
|
|
562
564
|
onClose: (t) => {
|
|
563
565
|
let { trigger: n } = t;
|
|
@@ -574,81 +576,81 @@ var Rt = (e, t) => {
|
|
|
574
576
|
}
|
|
575
577
|
}), t);
|
|
576
578
|
});
|
|
577
|
-
},
|
|
578
|
-
function
|
|
579
|
+
}, Bt = /* @__PURE__ */ new Map();
|
|
580
|
+
function Vt(e) {
|
|
579
581
|
let t = Y.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
580
582
|
...e,
|
|
581
583
|
label: e.userName,
|
|
582
584
|
value: e.userId
|
|
583
585
|
})));
|
|
584
586
|
e.forEach((e) => {
|
|
585
|
-
|
|
587
|
+
Bt.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
586
588
|
});
|
|
587
589
|
}
|
|
588
|
-
var
|
|
589
|
-
function
|
|
590
|
-
return
|
|
590
|
+
var Ht = [];
|
|
591
|
+
function Ut(e) {
|
|
592
|
+
return Ht.includes(e) || Ht.push(e), new Promise((t) => {
|
|
591
593
|
setTimeout(() => {
|
|
592
|
-
let n =
|
|
593
|
-
n.length > 0 &&
|
|
594
|
+
let n = Ht.filter((e) => !Bt.has(e));
|
|
595
|
+
n.length > 0 && Vt(n), Ht.length = 0, Bt.get(e).then((e) => {
|
|
594
596
|
t(e);
|
|
595
597
|
});
|
|
596
598
|
});
|
|
597
599
|
});
|
|
598
600
|
}
|
|
599
601
|
var K = /* @__PURE__ */ new Map();
|
|
600
|
-
function
|
|
601
|
-
|
|
602
|
+
function Wt() {
|
|
603
|
+
Ht.length = 0, Bt.clear(), K.clear();
|
|
602
604
|
}
|
|
603
|
-
function
|
|
604
|
-
|
|
605
|
+
function Gt(e) {
|
|
606
|
+
Bt.delete(e), K.has(e) && Ut(e).then((t) => {
|
|
605
607
|
K.get(e).value = t;
|
|
606
608
|
});
|
|
607
609
|
}
|
|
608
|
-
function
|
|
610
|
+
function Kt(e) {
|
|
609
611
|
let t;
|
|
610
|
-
return K.has(e) ? t = K.get(e) : (t = I(null), K.set(e, t),
|
|
612
|
+
return K.has(e) ? t = K.get(e) : (t = I(null), K.set(e, t), Ut(e).then((e) => {
|
|
611
613
|
t.value = e;
|
|
612
614
|
})), t;
|
|
613
615
|
}
|
|
614
616
|
//#endregion
|
|
615
617
|
//#region ../../packages/dlzn-ui/store/modules/login.ts
|
|
616
|
-
function
|
|
618
|
+
function qt(e) {
|
|
617
619
|
return Y.Post("login", e, { meta: {
|
|
618
620
|
useLoading: "登录中...",
|
|
619
621
|
useToken: !1
|
|
620
622
|
} });
|
|
621
623
|
}
|
|
622
|
-
function
|
|
624
|
+
function Jt() {
|
|
623
625
|
return Y.Post("logout", void 0, { meta: {
|
|
624
626
|
useLoading: "退出登录中...",
|
|
625
627
|
useSuccessMsg: !0
|
|
626
628
|
} });
|
|
627
629
|
}
|
|
628
|
-
var
|
|
629
|
-
let e = I(""), t = U(), n =
|
|
630
|
+
var Yt = ut("login", () => {
|
|
631
|
+
let e = I(""), t = U(), n = pt();
|
|
630
632
|
async function r(t) {
|
|
631
|
-
let n = await
|
|
633
|
+
let n = await qt(t);
|
|
632
634
|
e.value = n.token, await Q().getUserInfo();
|
|
633
635
|
}
|
|
634
636
|
function i() {
|
|
635
|
-
e.value = "", u().clear(),
|
|
637
|
+
e.value = "", u().clear(), jt().clear(), Q().clear(), fn(), Wt(), ne();
|
|
636
638
|
}
|
|
637
639
|
V(() => t.name, () => {
|
|
638
640
|
t.name === "Login" && i();
|
|
639
641
|
});
|
|
640
642
|
async function a() {
|
|
641
|
-
await
|
|
643
|
+
await Jt(), await n.push({ name: "Login" }), i();
|
|
642
644
|
}
|
|
643
645
|
return {
|
|
644
646
|
login: r,
|
|
645
647
|
logout: a,
|
|
646
648
|
token: e
|
|
647
649
|
};
|
|
648
|
-
}, { persist: { pick: ["token"] } }),
|
|
650
|
+
}, { persist: { pick: ["token"] } }), Xt = { class: "flex items-center justify-between" }, Zt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
649
651
|
__name: "Header",
|
|
650
652
|
setup(t) {
|
|
651
|
-
let n = U(), r =
|
|
653
|
+
let n = U(), r = pt(), i = Q(), a = W(), o = G();
|
|
652
654
|
function s(e) {
|
|
653
655
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
654
656
|
}
|
|
@@ -657,7 +659,7 @@ var Jt = lt("login", () => {
|
|
|
657
659
|
}
|
|
658
660
|
let u = async (e) => {
|
|
659
661
|
let { value: t } = e;
|
|
660
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await
|
|
662
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await zt("确定要退出登录吗?"), Yt().logout());
|
|
661
663
|
}, d = l.isMd;
|
|
662
664
|
function f(e, t) {
|
|
663
665
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
@@ -681,8 +683,8 @@ var Jt = lt("login", () => {
|
|
|
681
683
|
}
|
|
682
684
|
}), ee(e, i);
|
|
683
685
|
}
|
|
684
|
-
return (t, r) => (F(), C(B(
|
|
685
|
-
default: H(() => [D(B(
|
|
686
|
+
return (t, r) => (F(), C(B(Ke), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
687
|
+
default: H(() => [D(B(Ge), {
|
|
686
688
|
"expand-type": "popup",
|
|
687
689
|
value: B(n).name,
|
|
688
690
|
onChange: s
|
|
@@ -697,7 +699,7 @@ var Jt = lt("login", () => {
|
|
|
697
699
|
default: H(() => [D(B(e), { icon: "lineicons:menu-hamburger-1" })]),
|
|
698
700
|
_: 1
|
|
699
701
|
})]),
|
|
700
|
-
operations: H(() => [D(B(
|
|
702
|
+
operations: H(() => [D(B(He), {
|
|
701
703
|
options: [{
|
|
702
704
|
content: "个人中心",
|
|
703
705
|
value: "profile"
|
|
@@ -733,18 +735,18 @@ var Jt = lt("login", () => {
|
|
|
733
735
|
}))]),
|
|
734
736
|
_: 1
|
|
735
737
|
})]),
|
|
736
|
-
default: H(() => [(F(!0), T(
|
|
738
|
+
default: H(() => [(F(!0), T(me, null, L(B(o).recentRouters, (t) => (F(), C(B(Xe), {
|
|
737
739
|
key: t.name,
|
|
738
740
|
value: t.name,
|
|
739
741
|
onContextmenu: (e) => f(e, t.name)
|
|
740
742
|
}, {
|
|
741
|
-
default: H(() => [
|
|
743
|
+
default: H(() => [ge("div", Xt, [ge("span", null, z(B(J)(t.name).meta.title), 1), B(o).recentRouters.length > 1 ? (F(), C(B($), {
|
|
742
744
|
key: 0,
|
|
743
745
|
class: "ml-1!",
|
|
744
746
|
shape: "square",
|
|
745
747
|
size: "small",
|
|
746
748
|
variant: "text",
|
|
747
|
-
onClick:
|
|
749
|
+
onClick: Me((e) => c(t.name), ["stop"])
|
|
748
750
|
}, {
|
|
749
751
|
icon: H(() => [D(B(e), {
|
|
750
752
|
icon: "material-symbols:close",
|
|
@@ -759,26 +761,26 @@ var Jt = lt("login", () => {
|
|
|
759
761
|
_: 1
|
|
760
762
|
}));
|
|
761
763
|
}
|
|
762
|
-
}), [["__scopeId", "data-v-cdf58b1a"]]),
|
|
764
|
+
}), [["__scopeId", "data-v-cdf58b1a"]]), Qt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
763
765
|
__name: "Entry",
|
|
764
766
|
setup(e) {
|
|
765
|
-
let t = U(), n = W(), r = G(), i = u(), a = S(() => r.recentRouters.filter((e) => J(e.name).meta.noCache === !1).map((e) => e.name)), o =
|
|
767
|
+
let t = U(), n = W(), r = G(), i = u(), a = S(() => r.recentRouters.filter((e) => J(e.name).meta.noCache === !1).map((e) => e.name)), o = je("breadcrumb"), s = S(() => (o.value?.items.length ?? 0) > 0), d = S(() => l.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), f = l.isMd, p = je("contentRef"), { height: m } = rt(p);
|
|
766
768
|
function h({ size: e }) {
|
|
767
769
|
n.drawerSize = e;
|
|
768
770
|
}
|
|
769
771
|
let ee = S(() => t.meta.fullScreen);
|
|
770
772
|
return (e, t) => {
|
|
771
|
-
let r =
|
|
773
|
+
let r = De("RouterView");
|
|
772
774
|
return ee.value ? (F(), C(r, { key: 0 }, {
|
|
773
775
|
default: H(({ Component: e }) => [(F(), C(R(e)))]),
|
|
774
776
|
_: 1
|
|
775
|
-
})) : (F(), C(B(
|
|
777
|
+
})) : (F(), C(B(Je), {
|
|
776
778
|
key: 1,
|
|
777
779
|
class: "h-full"
|
|
778
780
|
}, {
|
|
779
781
|
default: H(() => [
|
|
780
|
-
D(
|
|
781
|
-
D(B(
|
|
782
|
+
D(Zt),
|
|
783
|
+
D(B(Be), {
|
|
782
784
|
visible: B(n).drawerOpen,
|
|
783
785
|
"onUpdate:visible": t[0] ||= (e) => B(n).drawerOpen = e,
|
|
784
786
|
footer: !1,
|
|
@@ -792,7 +794,7 @@ var Jt = lt("login", () => {
|
|
|
792
794
|
},
|
|
793
795
|
onSizeDragEnd: h
|
|
794
796
|
}, {
|
|
795
|
-
default: H(() => [D(
|
|
797
|
+
default: H(() => [D(Nt, { class: "no_drawer_body_padding" })]),
|
|
796
798
|
_: 1
|
|
797
799
|
}, 8, [
|
|
798
800
|
"visible",
|
|
@@ -800,14 +802,14 @@ var Jt = lt("login", () => {
|
|
|
800
802
|
"show-overlay",
|
|
801
803
|
"size"
|
|
802
804
|
]),
|
|
803
|
-
D(B(
|
|
805
|
+
D(B(Re), {
|
|
804
806
|
ref_key: "contentRef",
|
|
805
807
|
ref: p,
|
|
806
808
|
class: "overflow-hidden"
|
|
807
809
|
}, {
|
|
808
810
|
default: H(() => [D(B(c), {
|
|
809
811
|
always: "",
|
|
810
|
-
"view-class":
|
|
812
|
+
"view-class": Se(["relative flex flex-col", {
|
|
811
813
|
...d.value,
|
|
812
814
|
"pt-8": s.value
|
|
813
815
|
}]),
|
|
@@ -816,8 +818,8 @@ var Jt = lt("login", () => {
|
|
|
816
818
|
minHeight: `${Math.max(B(m), 438)}px`
|
|
817
819
|
}
|
|
818
820
|
}, {
|
|
819
|
-
default: H(() => [D(
|
|
820
|
-
default: H(({ Component: e }) => [(F(), C(
|
|
821
|
+
default: H(() => [D(Pt, { ref: "breadcrumb" }, null, 512), D(r, null, {
|
|
822
|
+
default: H(({ Component: e }) => [(F(), C(he, {
|
|
821
823
|
exclude: B(i).excludeKPname,
|
|
822
824
|
include: a.value
|
|
823
825
|
}, [(F(), C(R(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
@@ -832,8 +834,8 @@ var Jt = lt("login", () => {
|
|
|
832
834
|
}));
|
|
833
835
|
};
|
|
834
836
|
}
|
|
835
|
-
}), [["__scopeId", "data-v-de5cbc76"]]),
|
|
836
|
-
function
|
|
837
|
+
}), [["__scopeId", "data-v-de5cbc76"]]), $t = /* @__PURE__ */ new Set();
|
|
838
|
+
function en(e, t) {
|
|
837
839
|
let n = S(() => typeof e.body == "function" ? e.body(A) : e.body), i = {
|
|
838
840
|
attach: "#app",
|
|
839
841
|
closeOnEscKeydown: !1,
|
|
@@ -844,26 +846,26 @@ function $t(e, t) {
|
|
|
844
846
|
lazy: !0,
|
|
845
847
|
sizeDraggable: !0,
|
|
846
848
|
...e ?? {},
|
|
847
|
-
body: () => A(
|
|
849
|
+
body: () => A(Mn, {}, { default: () => n.value })
|
|
848
850
|
}, a, o = {
|
|
849
851
|
...i,
|
|
850
852
|
onClose: (e) => {
|
|
851
|
-
i.onClose?.(e),
|
|
853
|
+
i.onClose?.(e), $t.delete(a);
|
|
852
854
|
}
|
|
853
855
|
};
|
|
854
|
-
return delete o.closeWhenCloseAll, a =
|
|
856
|
+
return delete o.closeWhenCloseAll, a = Ve(o, t ?? r()), i.closeWhenCloseAll && $t.add(a), a;
|
|
855
857
|
}
|
|
856
|
-
var
|
|
857
|
-
return
|
|
858
|
+
var tn = function(...e) {
|
|
859
|
+
return en(...e);
|
|
858
860
|
};
|
|
859
|
-
|
|
860
|
-
|
|
861
|
+
tn.closeAll = () => {
|
|
862
|
+
$t.forEach((e) => {
|
|
861
863
|
e.hide?.();
|
|
862
864
|
});
|
|
863
865
|
};
|
|
864
866
|
//#endregion
|
|
865
867
|
//#region ../../packages/dlzn-ui/router/index.ts
|
|
866
|
-
function
|
|
868
|
+
function nn() {
|
|
867
869
|
return {
|
|
868
870
|
children: [{
|
|
869
871
|
children: [{
|
|
@@ -891,15 +893,15 @@ function tn() {
|
|
|
891
893
|
name: "Home",
|
|
892
894
|
path: "home"
|
|
893
895
|
}],
|
|
894
|
-
component:
|
|
896
|
+
component: Qt,
|
|
895
897
|
name: "Index",
|
|
896
898
|
path: "/"
|
|
897
899
|
};
|
|
898
900
|
}
|
|
899
|
-
var q =
|
|
900
|
-
history:
|
|
901
|
+
var q = dt({
|
|
902
|
+
history: ft(VITE_BASE_URL),
|
|
901
903
|
routes: [
|
|
902
|
-
|
|
904
|
+
nn(),
|
|
903
905
|
{
|
|
904
906
|
component: s["./Login.vue"],
|
|
905
907
|
meta: {
|
|
@@ -944,12 +946,12 @@ var q = ut({
|
|
|
944
946
|
strict: !0
|
|
945
947
|
});
|
|
946
948
|
q.beforeEach(async (e) => {
|
|
947
|
-
if (e.query._fromLeftTree === "true" && u().add(e.name), !["Login", "Register"].includes(e.name)) return
|
|
949
|
+
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(), q.resolve({
|
|
948
950
|
path: e.path,
|
|
949
951
|
query: e.query
|
|
950
952
|
}));
|
|
951
953
|
}), q.afterEach((e, t, n) => {
|
|
952
|
-
|
|
954
|
+
Rt.closeAll(), tn.closeAll();
|
|
953
955
|
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: s } = r;
|
|
954
956
|
document.title = s || W().appInfo.appName;
|
|
955
957
|
let c = G();
|
|
@@ -971,22 +973,22 @@ function J(e) {
|
|
|
971
973
|
}
|
|
972
974
|
//#endregion
|
|
973
975
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
974
|
-
var
|
|
975
|
-
function
|
|
976
|
+
var rn = 15e3, an = "网络错误,请稍后再试";
|
|
977
|
+
function on(e, t = !0) {
|
|
976
978
|
let n = {};
|
|
977
979
|
return Object.keys(e).forEach((r) => {
|
|
978
980
|
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !v(e[r]))) && (n[r] = e[r]);
|
|
979
981
|
}), n;
|
|
980
982
|
}
|
|
981
|
-
function
|
|
982
|
-
return new URLSearchParams(
|
|
983
|
+
function sn(e, t = !0) {
|
|
984
|
+
return new URLSearchParams(on(e, t)).toString();
|
|
983
985
|
}
|
|
984
|
-
var Y =
|
|
986
|
+
var Y = ht({
|
|
985
987
|
baseURL: VITE_BASE_URL,
|
|
986
988
|
beforeRequest(e) {
|
|
987
989
|
e.config.credentials = e.config.credentials ?? "omit";
|
|
988
990
|
let [t, ...n] = VITE_API_PREFIX_ARRAY;
|
|
989
|
-
!e.url.startsWith("http") && !n.some((t) =>
|
|
991
|
+
!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
992
|
use600Alert: !0,
|
|
991
993
|
useDataResult: !0,
|
|
992
994
|
useDownload: !1,
|
|
@@ -1003,10 +1005,10 @@ var Y = mt({
|
|
|
1003
1005
|
useToken: !0,
|
|
1004
1006
|
...e.meta ?? {}
|
|
1005
1007
|
};
|
|
1006
|
-
let r =
|
|
1008
|
+
let r = Yt(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: c, useLoading: l, useResponseBlob: u, useToken: d } = e.meta;
|
|
1007
1009
|
c || W().requestActive(), d && (r.token ? e.config.headers.Authorization = r.token : e.abort()), l !== !1 && i.show(l === !0 ? void 0 : l);
|
|
1008
1010
|
let f = e.config.params;
|
|
1009
|
-
if (typeof f != "string" && (e.config.params =
|
|
1011
|
+
if (typeof f != "string" && (e.config.params = sn(f, o)), a && lt(e.data)) {
|
|
1010
1012
|
let t = {}, n = e.data;
|
|
1011
1013
|
Object.keys(n).forEach((e) => {
|
|
1012
1014
|
v(n[e]) || (t[e] = n[e]);
|
|
@@ -1018,10 +1020,10 @@ var Y = mt({
|
|
|
1018
1020
|
t.append(n, e.data[n]);
|
|
1019
1021
|
}), e.data = t;
|
|
1020
1022
|
}
|
|
1021
|
-
e.config.timeout ===
|
|
1023
|
+
e.config.timeout === rn && (s || e.data instanceof FormData || u) && (e.config.timeout = 0);
|
|
1022
1024
|
},
|
|
1023
1025
|
cacheFor: null,
|
|
1024
|
-
requestAdapter:
|
|
1026
|
+
requestAdapter: gt(),
|
|
1025
1027
|
responded: {
|
|
1026
1028
|
onComplete: (e) => {
|
|
1027
1029
|
e.meta.useLoading !== !1 && i.hide();
|
|
@@ -1033,7 +1035,7 @@ var Y = mt({
|
|
|
1033
1035
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1034
1036
|
if (t.toLowerCase().includes("timeout")) return n && o.error("请求超时"), Promise.reject(e);
|
|
1035
1037
|
}
|
|
1036
|
-
return n && o.error(
|
|
1038
|
+
return n && o.error(an), Promise.reject(e);
|
|
1037
1039
|
},
|
|
1038
1040
|
onSuccess: async (e, t) => {
|
|
1039
1041
|
if (typeof e == "string") return e;
|
|
@@ -1044,7 +1046,7 @@ var Y = mt({
|
|
|
1044
1046
|
403: "当前操作没有权限",
|
|
1045
1047
|
404: "访问资源不存在",
|
|
1046
1048
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1047
|
-
}[m] ??
|
|
1049
|
+
}[m] ?? an;
|
|
1048
1050
|
o.error(e);
|
|
1049
1051
|
}
|
|
1050
1052
|
return Promise.reject(e);
|
|
@@ -1089,7 +1091,7 @@ var Y = mt({
|
|
|
1089
1091
|
return Promise.reject(h);
|
|
1090
1092
|
}
|
|
1091
1093
|
{
|
|
1092
|
-
let i =
|
|
1094
|
+
let i = mt.alovaResCodeSuccessCb?.({
|
|
1093
1095
|
code: e,
|
|
1094
1096
|
data: t,
|
|
1095
1097
|
msg: n
|
|
@@ -1101,10 +1103,10 @@ var Y = mt({
|
|
|
1101
1103
|
}
|
|
1102
1104
|
},
|
|
1103
1105
|
shareRequest: !1,
|
|
1104
|
-
statesHook:
|
|
1105
|
-
timeout:
|
|
1106
|
-
}),
|
|
1107
|
-
function
|
|
1106
|
+
statesHook: _t,
|
|
1107
|
+
timeout: rn
|
|
1108
|
+
}), cn = /* @__PURE__ */ new Map();
|
|
1109
|
+
function ln(e) {
|
|
1108
1110
|
let t = Y.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
1109
1111
|
cssClass: e.cssClass,
|
|
1110
1112
|
dictType: e.dictType,
|
|
@@ -1113,25 +1115,25 @@ function cn(e) {
|
|
|
1113
1115
|
value: e.dictValue
|
|
1114
1116
|
})));
|
|
1115
1117
|
e.forEach((e) => {
|
|
1116
|
-
|
|
1118
|
+
cn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
1117
1119
|
});
|
|
1118
1120
|
}
|
|
1119
|
-
var
|
|
1120
|
-
function
|
|
1121
|
-
return
|
|
1121
|
+
var un = [];
|
|
1122
|
+
function dn(e) {
|
|
1123
|
+
return un.includes(e) || un.push(e), new Promise((t) => {
|
|
1122
1124
|
setTimeout(() => {
|
|
1123
|
-
let n =
|
|
1124
|
-
n.length > 0 &&
|
|
1125
|
+
let n = un.filter((e) => !cn.has(e));
|
|
1126
|
+
n.length > 0 && ln(n), un.length = 0, cn.get(e).then((e) => {
|
|
1125
1127
|
t(e);
|
|
1126
1128
|
});
|
|
1127
1129
|
});
|
|
1128
1130
|
});
|
|
1129
1131
|
}
|
|
1130
1132
|
var X = /* @__PURE__ */ new Map();
|
|
1131
|
-
function
|
|
1132
|
-
|
|
1133
|
+
function fn() {
|
|
1134
|
+
un.length = 0, cn.clear(), X.clear();
|
|
1133
1135
|
}
|
|
1134
|
-
function
|
|
1136
|
+
function pn(e, t) {
|
|
1135
1137
|
let n = Z(e);
|
|
1136
1138
|
return S(() => {
|
|
1137
1139
|
if (t === void 0) return n.value.map((e) => e.label);
|
|
@@ -1146,18 +1148,18 @@ function fn(e, t) {
|
|
|
1146
1148
|
}
|
|
1147
1149
|
function Z(e, t) {
|
|
1148
1150
|
let n;
|
|
1149
|
-
return X.has(e) ? n = X.get(e) : (n = I([]), X.set(e, n),
|
|
1151
|
+
return X.has(e) ? n = X.get(e) : (n = I([]), X.set(e, n), dn(e).then((e) => {
|
|
1150
1152
|
n.value = e;
|
|
1151
1153
|
})), S(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1152
1154
|
}
|
|
1153
|
-
function
|
|
1154
|
-
|
|
1155
|
+
function mn(e) {
|
|
1156
|
+
cn.delete(e), X.has(e) && dn(e).then((t) => {
|
|
1155
1157
|
X.get(e).value = t;
|
|
1156
1158
|
});
|
|
1157
1159
|
}
|
|
1158
1160
|
//#endregion
|
|
1159
1161
|
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
1160
|
-
var
|
|
1162
|
+
var hn = /* @__PURE__ */ O({
|
|
1161
1163
|
inheritAttrs: !1,
|
|
1162
1164
|
name: "TCheckboxGroup",
|
|
1163
1165
|
__name: "checkbox-group",
|
|
@@ -1208,7 +1210,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1208
1210
|
e[t] === void 0 && delete e[t];
|
|
1209
1211
|
}), e;
|
|
1210
1212
|
});
|
|
1211
|
-
return (e, t) => (F(), C(R(A(B(
|
|
1213
|
+
return (e, t) => (F(), C(R(A(B(Ie), M(e.$attrs, {
|
|
1212
1214
|
...l.value,
|
|
1213
1215
|
options: s.value,
|
|
1214
1216
|
modelValue: c.value,
|
|
@@ -1218,7 +1220,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1218
1220
|
ref: o
|
|
1219
1221
|
}), e.$slots))));
|
|
1220
1222
|
}
|
|
1221
|
-
}),
|
|
1223
|
+
}), gn = /* @__PURE__ */ O({
|
|
1222
1224
|
inheritAttrs: !1,
|
|
1223
1225
|
__name: "cron",
|
|
1224
1226
|
props: /*@__PURE__*/ j({
|
|
@@ -1266,10 +1268,10 @@ var mn = /* @__PURE__ */ O({
|
|
|
1266
1268
|
onPaste: { type: Function },
|
|
1267
1269
|
onValidate: { type: Function },
|
|
1268
1270
|
onWheel: { type: Function }
|
|
1269
|
-
},
|
|
1271
|
+
}, ie),
|
|
1270
1272
|
emits: ["update:modelValue"],
|
|
1271
1273
|
setup(e, { emit: t }) {
|
|
1272
|
-
let n = e, r = t, i =
|
|
1274
|
+
let n = e, r = t, i = be("isFormDisabled", S(() => !1)), a = be("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1273
1275
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1274
1276
|
return {
|
|
1275
1277
|
...n,
|
|
@@ -1277,8 +1279,8 @@ var mn = /* @__PURE__ */ O({
|
|
|
1277
1279
|
default: "cron",
|
|
1278
1280
|
onClick: () => {
|
|
1279
1281
|
let i = I(null);
|
|
1280
|
-
|
|
1281
|
-
body: () => A(
|
|
1282
|
+
zt({
|
|
1283
|
+
body: () => A(ve(() => import("../components/cron/src/Picker.mjs")), {
|
|
1282
1284
|
disabled: e,
|
|
1283
1285
|
modelValue: n.modelValue,
|
|
1284
1286
|
onVnodeMounted: (e) => {
|
|
@@ -1300,7 +1302,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1300
1302
|
variant: "text"
|
|
1301
1303
|
}) }
|
|
1302
1304
|
};
|
|
1303
|
-
}), s =
|
|
1305
|
+
}), s = ke(), c = k();
|
|
1304
1306
|
function l(e) {
|
|
1305
1307
|
c.exposed = e ?? {};
|
|
1306
1308
|
}
|
|
@@ -1311,9 +1313,9 @@ var mn = /* @__PURE__ */ O({
|
|
|
1311
1313
|
},
|
|
1312
1314
|
ref: l
|
|
1313
1315
|
}));
|
|
1314
|
-
return (e, t) => (F(), C(B(
|
|
1316
|
+
return (e, t) => (F(), C(B(ae), P(ye(u.value)), null, 16));
|
|
1315
1317
|
}
|
|
1316
|
-
}),
|
|
1318
|
+
}), _n = /* @__PURE__ */ O({
|
|
1317
1319
|
inheritAttrs: !1,
|
|
1318
1320
|
name: "TRadioGroup",
|
|
1319
1321
|
__name: "radio-group",
|
|
@@ -1360,7 +1362,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1360
1362
|
}
|
|
1361
1363
|
return r.modelValue;
|
|
1362
1364
|
});
|
|
1363
|
-
return (e, t) => (F(), C(R(A(B(
|
|
1365
|
+
return (e, t) => (F(), C(R(A(B(Ze), M(e.$attrs, {
|
|
1364
1366
|
...c.value,
|
|
1365
1367
|
options: s.value,
|
|
1366
1368
|
modelValue: l.value,
|
|
@@ -1371,7 +1373,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1371
1373
|
ref: o
|
|
1372
1374
|
}), e.$slots))));
|
|
1373
1375
|
}
|
|
1374
|
-
}),
|
|
1376
|
+
}), vn = {
|
|
1375
1377
|
clearable: !0,
|
|
1376
1378
|
disabled: void 0,
|
|
1377
1379
|
filterable: void 0,
|
|
@@ -1392,7 +1394,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1392
1394
|
}),
|
|
1393
1395
|
showArrow: !0,
|
|
1394
1396
|
showCheckAll: !1
|
|
1395
|
-
},
|
|
1397
|
+
}, yn = /* @__PURE__ */ O({
|
|
1396
1398
|
inheritAttrs: !1,
|
|
1397
1399
|
name: "TSelect",
|
|
1398
1400
|
__name: "select",
|
|
@@ -1456,7 +1458,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1456
1458
|
onPopupVisibleChange: { type: Function },
|
|
1457
1459
|
onRemove: { type: Function },
|
|
1458
1460
|
onSearch: { type: Function }
|
|
1459
|
-
},
|
|
1461
|
+
}, vn),
|
|
1460
1462
|
setup(e) {
|
|
1461
1463
|
let t = e, r = k();
|
|
1462
1464
|
function i(e) {
|
|
@@ -1489,8 +1491,8 @@ var mn = /* @__PURE__ */ O({
|
|
|
1489
1491
|
e[t] === void 0 && delete e[t];
|
|
1490
1492
|
}), e;
|
|
1491
1493
|
}), c = I(0);
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
+
Ce(() => {
|
|
1495
|
+
st(r.exposed.$el, () => {
|
|
1494
1496
|
c.value = r.exposed.$el.offsetWidth;
|
|
1495
1497
|
}, { box: "border-box" });
|
|
1496
1498
|
});
|
|
@@ -1514,13 +1516,13 @@ var mn = /* @__PURE__ */ O({
|
|
|
1514
1516
|
})
|
|
1515
1517
|
},
|
|
1516
1518
|
ref: i
|
|
1517
|
-
})), d =
|
|
1519
|
+
})), d = qe;
|
|
1518
1520
|
return (t, n) => e.adornment ? (F(), C(R(A(B(d), t.$attrs, {
|
|
1519
1521
|
...e.adornment,
|
|
1520
|
-
default: () => A(B(
|
|
1521
|
-
})), { key: 0 })) : (F(), C(R(A(B(
|
|
1522
|
+
default: () => A(B(Qe), u.value, t.$slots)
|
|
1523
|
+
})), { key: 0 })) : (F(), C(R(A(B(Qe), M(t.$attrs, u.value), t.$slots)), { key: 1 }));
|
|
1522
1524
|
}
|
|
1523
|
-
}),
|
|
1525
|
+
}), bn = /* @__PURE__ */ O({
|
|
1524
1526
|
inheritAttrs: !1,
|
|
1525
1527
|
__name: "select-sys-user",
|
|
1526
1528
|
props: /*@__PURE__*/ j({
|
|
@@ -1562,10 +1564,10 @@ var mn = /* @__PURE__ */ O({
|
|
|
1562
1564
|
onMouseleave: { type: Function },
|
|
1563
1565
|
onPaste: { type: Function },
|
|
1564
1566
|
onRemove: { type: Function }
|
|
1565
|
-
},
|
|
1567
|
+
}, le),
|
|
1566
1568
|
emits: ["update:modelValue"],
|
|
1567
1569
|
setup(e, { emit: t }) {
|
|
1568
|
-
let n = e, r = t, i =
|
|
1570
|
+
let n = e, r = t, i = be("isFormDisabled", S(() => !1)), a = be("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1569
1571
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1570
1572
|
return {
|
|
1571
1573
|
...n,
|
|
@@ -1573,8 +1575,8 @@ var mn = /* @__PURE__ */ O({
|
|
|
1573
1575
|
default: "选择用户",
|
|
1574
1576
|
onClick: () => {
|
|
1575
1577
|
let e = I(null);
|
|
1576
|
-
|
|
1577
|
-
body: () => A(
|
|
1578
|
+
zt({
|
|
1579
|
+
body: () => A(ve(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
1578
1580
|
max: n.max,
|
|
1579
1581
|
modelValue: n.modelValue,
|
|
1580
1582
|
onVnodeMounted: (t) => {
|
|
@@ -1595,7 +1597,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1595
1597
|
variant: "text"
|
|
1596
1598
|
}) }
|
|
1597
1599
|
};
|
|
1598
|
-
}), s =
|
|
1600
|
+
}), s = ke(), c = k();
|
|
1599
1601
|
function l(e) {
|
|
1600
1602
|
c.exposed = e ?? {};
|
|
1601
1603
|
}
|
|
@@ -1611,12 +1613,12 @@ var mn = /* @__PURE__ */ O({
|
|
|
1611
1613
|
placeholder: "请选择用户",
|
|
1612
1614
|
ref: l
|
|
1613
1615
|
}));
|
|
1614
|
-
return (e, t) => (F(), C(B(
|
|
1615
|
-
tag: H(({ value: e }) => [E(z(B(
|
|
1616
|
+
return (e, t) => (F(), C(B(ue), P(ye(u.value)), {
|
|
1617
|
+
tag: H(({ value: e }) => [E(z(B(Kt)(e).value?.userName), 1)]),
|
|
1616
1618
|
_: 1
|
|
1617
1619
|
}, 16));
|
|
1618
1620
|
}
|
|
1619
|
-
}),
|
|
1621
|
+
}), xn = {
|
|
1620
1622
|
checkable: !1,
|
|
1621
1623
|
disabled: void 0,
|
|
1622
1624
|
expandOnClickNode: void 0,
|
|
@@ -1634,7 +1636,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1634
1636
|
line: !0,
|
|
1635
1637
|
transition: !0,
|
|
1636
1638
|
valueMode: "all"
|
|
1637
|
-
},
|
|
1639
|
+
}, Sn = /* @__PURE__ */ O({
|
|
1638
1640
|
inheritAttrs: !1,
|
|
1639
1641
|
name: "TTree",
|
|
1640
1642
|
__name: "tree",
|
|
@@ -1691,9 +1693,9 @@ var mn = /* @__PURE__ */ O({
|
|
|
1691
1693
|
onLoad: { type: Function },
|
|
1692
1694
|
onScroll: { type: Function },
|
|
1693
1695
|
treeStore: {}
|
|
1694
|
-
},
|
|
1696
|
+
}, xn),
|
|
1695
1697
|
setup(e, { expose: t }) {
|
|
1696
|
-
let n = e, r =
|
|
1698
|
+
let n = e, r = Ae(), i = S(() => {
|
|
1697
1699
|
let e = { ...n };
|
|
1698
1700
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1699
1701
|
e[t] === void 0 && delete e[t];
|
|
@@ -1702,12 +1704,12 @@ var mn = /* @__PURE__ */ O({
|
|
|
1702
1704
|
function o(e) {
|
|
1703
1705
|
a.exposed = e ?? {};
|
|
1704
1706
|
}
|
|
1705
|
-
return t({}), (e, t) => (F(), C(R(A(B(
|
|
1707
|
+
return t({}), (e, t) => (F(), C(R(A(B($e), M(e.$attrs, {
|
|
1706
1708
|
...i.value,
|
|
1707
1709
|
ref: o
|
|
1708
1710
|
}), e.$slots))));
|
|
1709
1711
|
}
|
|
1710
|
-
}),
|
|
1712
|
+
}), Cn = /* @__PURE__ */ O({
|
|
1711
1713
|
inheritAttrs: !1,
|
|
1712
1714
|
name: "TTreeSelect",
|
|
1713
1715
|
__name: "tree-select",
|
|
@@ -1780,10 +1782,10 @@ var mn = /* @__PURE__ */ O({
|
|
|
1780
1782
|
minCollapsedNum: 2,
|
|
1781
1783
|
...e.selectInputProps ?? {}
|
|
1782
1784
|
}, e.treeProps = {
|
|
1783
|
-
...
|
|
1785
|
+
...xn,
|
|
1784
1786
|
checkable: !!t.multiple,
|
|
1785
1787
|
expandOnClickNode: !!t.multiple,
|
|
1786
|
-
icon:
|
|
1788
|
+
icon: xn.icon(),
|
|
1787
1789
|
...e.treeProps ?? {}
|
|
1788
1790
|
}, Object.keys(e).forEach((t) => {
|
|
1789
1791
|
e[t] === void 0 && delete e[t];
|
|
@@ -1793,11 +1795,11 @@ var mn = /* @__PURE__ */ O({
|
|
|
1793
1795
|
i.exposed = e ?? {};
|
|
1794
1796
|
}
|
|
1795
1797
|
let o = I(0);
|
|
1796
|
-
return
|
|
1797
|
-
|
|
1798
|
+
return Ce(() => {
|
|
1799
|
+
st(i.exposed.$el, () => {
|
|
1798
1800
|
o.value = i.exposed.$el.offsetWidth;
|
|
1799
1801
|
}, { box: "border-box" });
|
|
1800
|
-
}), (e, t) => (F(), C(R(A(B(
|
|
1802
|
+
}), (e, t) => (F(), C(R(A(B(et), M(e.$attrs, {
|
|
1801
1803
|
...r.value,
|
|
1802
1804
|
data: n.value,
|
|
1803
1805
|
ref: a,
|
|
@@ -1811,10 +1813,10 @@ var mn = /* @__PURE__ */ O({
|
|
|
1811
1813
|
}
|
|
1812
1814
|
}), e.$slots))));
|
|
1813
1815
|
}
|
|
1814
|
-
}),
|
|
1816
|
+
}), wn = ".xlsx,.xls", Tn = { class: "flex items-center" }, En = {
|
|
1815
1817
|
key: 1,
|
|
1816
1818
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1817
|
-
},
|
|
1819
|
+
}, Dn = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
1818
1820
|
inheritAttrs: !1,
|
|
1819
1821
|
name: "TUpload",
|
|
1820
1822
|
__name: "upload",
|
|
@@ -1823,7 +1825,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
1823
1825
|
"onUpdate:modelValue": {},
|
|
1824
1826
|
requestMethod: {},
|
|
1825
1827
|
abridgeName: {},
|
|
1826
|
-
accept: { default:
|
|
1828
|
+
accept: { default: wn },
|
|
1827
1829
|
allowUploadDuplicateFile: { type: Boolean },
|
|
1828
1830
|
autoUpload: { type: Boolean },
|
|
1829
1831
|
beforeAllFilesUpload: {},
|
|
@@ -1925,16 +1927,16 @@ var mn = /* @__PURE__ */ O({
|
|
|
1925
1927
|
function s(e) {
|
|
1926
1928
|
o.exposed = e ?? {};
|
|
1927
1929
|
}
|
|
1928
|
-
return t({}), (t, o) => (F(), C(R(A(B(
|
|
1930
|
+
return t({}), (t, o) => (F(), C(R(A(B(tt), M(t.$attrs, {
|
|
1929
1931
|
...a.value,
|
|
1930
1932
|
requestMethod: r.value,
|
|
1931
1933
|
ref: s
|
|
1932
|
-
}, { class: a.value.theme }))), null,
|
|
1934
|
+
}, { class: a.value.theme }))), null, _e({ _: 2 }, [L(Object.keys(t.$slots), (e) => ({
|
|
1933
1935
|
name: e,
|
|
1934
|
-
fn: H((n) => [
|
|
1936
|
+
fn: H((n) => [Ee(t.$slots, e, P(ye(n)), void 0, !0)])
|
|
1935
1937
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
1936
1938
|
name: "trigger",
|
|
1937
|
-
fn: H(({ files: t }) => [
|
|
1939
|
+
fn: H(({ files: t }) => [ge("div", Tn, [
|
|
1938
1940
|
D(B($), { theme: "primary" }, {
|
|
1939
1941
|
default: H(() => [E(z(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
1940
1942
|
_: 2
|
|
@@ -1943,17 +1945,17 @@ var mn = /* @__PURE__ */ O({
|
|
|
1943
1945
|
key: 0,
|
|
1944
1946
|
theme: "primary",
|
|
1945
1947
|
variant: "outline",
|
|
1946
|
-
onClick:
|
|
1948
|
+
onClick: Me(i, ["stop"])
|
|
1947
1949
|
}, {
|
|
1948
1950
|
default: H(() => [...o[0] ||= [E("下载模板", -1)]]),
|
|
1949
1951
|
_: 1
|
|
1950
1952
|
})) : w("v-if", !0),
|
|
1951
|
-
n.tips ? (F(), T("span",
|
|
1953
|
+
n.tips ? (F(), T("span", En, z(n.tips), 1)) : w("v-if", !0)
|
|
1952
1954
|
])]),
|
|
1953
1955
|
key: "0"
|
|
1954
1956
|
} : void 0]), 1024));
|
|
1955
1957
|
}
|
|
1956
|
-
}), [["__scopeId", "data-v-924bd747"]]),
|
|
1958
|
+
}), [["__scopeId", "data-v-924bd747"]]), On = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
1957
1959
|
inheritAttrs: !1,
|
|
1958
1960
|
name: "TForm",
|
|
1959
1961
|
__name: "form",
|
|
@@ -1981,9 +1983,9 @@ var mn = /* @__PURE__ */ O({
|
|
|
1981
1983
|
onReset: { type: Function },
|
|
1982
1984
|
onSubmit: { type: Function },
|
|
1983
1985
|
onValidate: { type: Function }
|
|
1984
|
-
},
|
|
1986
|
+
}, xt),
|
|
1985
1987
|
setup(e, { expose: t }) {
|
|
1986
|
-
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: s = /* @__PURE__ */ new Map() } =
|
|
1988
|
+
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: s = /* @__PURE__ */ new Map() } = mt, c = k(), l = I(null), u = S(() => r.items.map((e) => {
|
|
1987
1989
|
if (typeof e.__others == "function") {
|
|
1988
1990
|
let t = {
|
|
1989
1991
|
...e,
|
|
@@ -2031,25 +2033,26 @@ var mn = /* @__PURE__ */ O({
|
|
|
2031
2033
|
});
|
|
2032
2034
|
let f = /* @__PURE__ */ new Map(), p = {
|
|
2033
2035
|
TCheckbox: a,
|
|
2034
|
-
TCheckboxGroup:
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2036
|
+
TCheckboxGroup: hn,
|
|
2037
|
+
TColorPicker: re,
|
|
2038
|
+
TCron: gn,
|
|
2039
|
+
TDatePicker: oe,
|
|
2040
|
+
TInput: ae,
|
|
2041
|
+
TInputNumber: se,
|
|
2042
|
+
TRadioGroup: _n,
|
|
2043
|
+
TRangeInput: ce,
|
|
2044
|
+
TSelect: yn,
|
|
2045
|
+
TSelectSysUser: bn,
|
|
2046
|
+
TSlider: de,
|
|
2047
|
+
TSwitch: fe,
|
|
2048
|
+
TTagInput: ue,
|
|
2049
|
+
TTextarea: pe,
|
|
2050
|
+
TTree: Sn,
|
|
2051
|
+
TTreeSelect: Cn,
|
|
2052
|
+
TUpload: Dn
|
|
2050
2053
|
};
|
|
2051
2054
|
function m(e) {
|
|
2052
|
-
return typeof e == "string" ? s.has(e) ? (f.has(e) || f.set(e,
|
|
2055
|
+
return typeof e == "string" ? s.has(e) ? (f.has(e) || f.set(e, ve(s.get(e))), f.get(e)) : p[e] : ae;
|
|
2053
2056
|
}
|
|
2054
2057
|
function h(e) {
|
|
2055
2058
|
let t = {};
|
|
@@ -2152,16 +2155,16 @@ var mn = /* @__PURE__ */ O({
|
|
|
2152
2155
|
let t = e ?? {};
|
|
2153
2156
|
l.value = t, c.exposed = t;
|
|
2154
2157
|
}
|
|
2155
|
-
let b =
|
|
2156
|
-
|
|
2157
|
-
b.value = c.exposed.$el.getElementsByClassName("t-form__label"), x(),
|
|
2158
|
+
let b = Oe();
|
|
2159
|
+
Ce(() => {
|
|
2160
|
+
b.value = c.exposed.$el.getElementsByClassName("t-form__label"), x(), ot(c.exposed.$el, () => {
|
|
2158
2161
|
x();
|
|
2159
2162
|
}, {
|
|
2160
2163
|
attributeFilter: ["class"],
|
|
2161
2164
|
characterData: !0,
|
|
2162
2165
|
childList: !0,
|
|
2163
2166
|
subtree: !0
|
|
2164
|
-
}),
|
|
2167
|
+
}), st(c.exposed.$el, () => {
|
|
2165
2168
|
x();
|
|
2166
2169
|
});
|
|
2167
2170
|
});
|
|
@@ -2177,12 +2180,12 @@ var mn = /* @__PURE__ */ O({
|
|
|
2177
2180
|
e.style.minWidth = `${t}px`;
|
|
2178
2181
|
});
|
|
2179
2182
|
}
|
|
2180
|
-
return
|
|
2183
|
+
return we("formData", r.data), we("formExposed", l), we("isFormDisabled", S(() => r.disabled)), we("isFormReadonly", S(() => r.readonly)), t({}), (t, n) => (F(), T(me, null, [w(" eslint-disable vue/no-mutating-props "), (F(), C(R(B(Ue)), M(M(t.$attrs, {
|
|
2181
2184
|
...g.value,
|
|
2182
2185
|
ref: y
|
|
2183
2186
|
}), { "label-width": "fit-content" }), {
|
|
2184
|
-
default: H(() => [(F(!0), T(
|
|
2185
|
-
default: H(() => [n.slot ?
|
|
2187
|
+
default: H(() => [(F(!0), T(me, null, L(u.value.filter((e) => e.show !== !1), (n) => (F(), C(B(We), M({ key: n.model ?? n.slot }, { ref_for: !0 }, M({ ...ee(n) }, { class: { no_label_item: B(v)(n._label) } }), { name: n.model }), {
|
|
2188
|
+
default: H(() => [n.slot ? Ee(t.$slots, n.slot, {}, void 0, !0, 0) : (F(), C(R(m(n.component)), M({
|
|
2186
2189
|
key: 1,
|
|
2187
2190
|
modelValue: e.data[n.model],
|
|
2188
2191
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
@@ -2192,7 +2195,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
2192
2195
|
_: 3
|
|
2193
2196
|
}, 16))], 2112));
|
|
2194
2197
|
}
|
|
2195
|
-
}), [["__scopeId", "data-v-
|
|
2198
|
+
}), [["__scopeId", "data-v-a297275a"]]), kn = /* @__PURE__ */ O({
|
|
2196
2199
|
__name: "ResetPwd",
|
|
2197
2200
|
props: { showFooter: {
|
|
2198
2201
|
type: Boolean,
|
|
@@ -2230,7 +2233,7 @@ var mn = /* @__PURE__ */ O({
|
|
|
2230
2233
|
type: "password"
|
|
2231
2234
|
},
|
|
2232
2235
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
2233
|
-
], i =
|
|
2236
|
+
], i = je("form");
|
|
2234
2237
|
function a() {
|
|
2235
2238
|
G().close(n.name);
|
|
2236
2239
|
}
|
|
@@ -2245,9 +2248,9 @@ var mn = /* @__PURE__ */ O({
|
|
|
2245
2248
|
newPassword: e.newPassword,
|
|
2246
2249
|
oldPassword: e.oldPassword
|
|
2247
2250
|
}
|
|
2248
|
-
}),
|
|
2251
|
+
}), Yt().logout();
|
|
2249
2252
|
}
|
|
2250
|
-
return t({ handleSubmit: o }), (e, t) => (F(), C(B(
|
|
2253
|
+
return t({ handleSubmit: o }), (e, t) => (F(), C(B(On), {
|
|
2251
2254
|
ref: "form",
|
|
2252
2255
|
items: r,
|
|
2253
2256
|
"label-align": "right",
|
|
@@ -2270,34 +2273,34 @@ var mn = /* @__PURE__ */ O({
|
|
|
2270
2273
|
});
|
|
2271
2274
|
//#endregion
|
|
2272
2275
|
//#region ../../packages/dlzn-ui/store/modules/user.ts
|
|
2273
|
-
function
|
|
2276
|
+
function An() {
|
|
2274
2277
|
return Y.Get("getInfo", { meta: {
|
|
2275
2278
|
useFailMsg: "获取用户信息失败",
|
|
2276
2279
|
useLoading: "正在获取用户信息..."
|
|
2277
2280
|
} });
|
|
2278
2281
|
}
|
|
2279
|
-
var
|
|
2282
|
+
var jn = {
|
|
2280
2283
|
admin: !1,
|
|
2281
2284
|
dept: { deptName: "" },
|
|
2282
2285
|
needChangePwd: 0,
|
|
2283
2286
|
nickName: "",
|
|
2284
2287
|
userId: "",
|
|
2285
2288
|
userName: ""
|
|
2286
|
-
}, Q =
|
|
2287
|
-
let e = I(
|
|
2289
|
+
}, Q = ut("user", () => {
|
|
2290
|
+
let e = I(ct(jn)), t = I([]), n = I([]);
|
|
2288
2291
|
function r() {
|
|
2289
|
-
e.value =
|
|
2292
|
+
e.value = ct(jn), t.value = [], n.value = [];
|
|
2290
2293
|
}
|
|
2291
2294
|
let i = S(() => e.value.admin), a = I("");
|
|
2292
2295
|
async function o(r = !0) {
|
|
2293
|
-
let i = await
|
|
2294
|
-
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
|
|
2296
|
+
let i = await An();
|
|
2297
|
+
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 jt().getRouters();
|
|
2295
2298
|
}
|
|
2296
2299
|
V(() => e.value.needChangePwd, (e) => {
|
|
2297
2300
|
e === 1 && VITE_FORCE_PWD_CHANGE && N(() => {
|
|
2298
2301
|
let e = I(null);
|
|
2299
|
-
|
|
2300
|
-
body: () => A(
|
|
2302
|
+
zt({
|
|
2303
|
+
body: () => A(kn, {
|
|
2301
2304
|
labelAlign: "top",
|
|
2302
2305
|
ref: e,
|
|
2303
2306
|
showFooter: !1
|
|
@@ -2369,7 +2372,7 @@ var An = {
|
|
|
2369
2372
|
Object,
|
|
2370
2373
|
Array
|
|
2371
2374
|
] }
|
|
2372
|
-
},
|
|
2375
|
+
}, bt),
|
|
2373
2376
|
setup(n) {
|
|
2374
2377
|
let r = n, a = I("");
|
|
2375
2378
|
function o() {
|
|
@@ -2393,7 +2396,7 @@ var An = {
|
|
|
2393
2396
|
}
|
|
2394
2397
|
return t;
|
|
2395
2398
|
}
|
|
2396
|
-
let s = I(!1), c = i.isLoading, l = I(null), { focused: u } =
|
|
2399
|
+
let s = I(!1), c = i.isLoading, l = I(null), { focused: u } = at(l), d, f;
|
|
2397
2400
|
V(c, (e) => {
|
|
2398
2401
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2399
2402
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
@@ -2430,6 +2433,7 @@ var An = {
|
|
|
2430
2433
|
],
|
|
2431
2434
|
"mdi:cancel": ["取消"],
|
|
2432
2435
|
"mdi:remove": ["清除"],
|
|
2436
|
+
"ant-design:clear-outlined": ["清空"],
|
|
2433
2437
|
"entypo:switch": ["开启"],
|
|
2434
2438
|
"material-symbols:pause": ["暂停"],
|
|
2435
2439
|
"ri:edit-line": ["编辑"],
|
|
@@ -2438,7 +2442,9 @@ var An = {
|
|
|
2438
2442
|
"carbon:executable-program": ["执行"],
|
|
2439
2443
|
"ri:save-line": ["保存", "提交"],
|
|
2440
2444
|
"uiw:down": ["展开"],
|
|
2445
|
+
"garden:exit-stroke-12": ["强退"],
|
|
2441
2446
|
"uiw:up": ["收起"],
|
|
2447
|
+
"clarity:unlock-line": ["解锁"],
|
|
2442
2448
|
"mdi:close": ["关闭"],
|
|
2443
2449
|
"ri:reset-left-fill": ["重置"],
|
|
2444
2450
|
"tabler:refresh": [
|
|
@@ -2470,14 +2476,15 @@ var An = {
|
|
|
2470
2476
|
"material-symbols:folder-outline": ["文件夹"],
|
|
2471
2477
|
"mdi:file-outline": ["文件"],
|
|
2472
2478
|
"bi:journal-text": ["日志"],
|
|
2473
|
-
"material-symbols:security": ["权限"]
|
|
2479
|
+
"material-symbols:security": ["权限"],
|
|
2480
|
+
"ri:wechat-channels-line": ["视频号"]
|
|
2474
2481
|
}, t;
|
|
2475
2482
|
for (let [n, r] of Object.entries(e)) if (r.some((e) => a.value.includes(e))) {
|
|
2476
2483
|
t = n;
|
|
2477
2484
|
break;
|
|
2478
2485
|
}
|
|
2479
2486
|
if (t !== void 0) return t;
|
|
2480
|
-
}), v =
|
|
2487
|
+
}), v = ke(), y = S(() => M(v, {
|
|
2481
2488
|
...m.value,
|
|
2482
2489
|
ref: ee
|
|
2483
2490
|
}, { class: "flex-shrink-0" })), b = S(() => {
|
|
@@ -2488,33 +2495,33 @@ var An = {
|
|
|
2488
2495
|
}
|
|
2489
2496
|
};
|
|
2490
2497
|
});
|
|
2491
|
-
return (r, i) => B(Q)().checkPermissions(n.permission) ? (F(), T(
|
|
2492
|
-
default: H(() => [(F(), C(R(A(B(
|
|
2498
|
+
return (r, i) => B(Q)().checkPermissions(n.permission) ? (F(), T(me, { key: 0 }, [b.value ? (F(), C(B(t), P(M({ key: 0 }, b.value)), {
|
|
2499
|
+
default: H(() => [(F(), C(R(A(B(Fe), y.value)), {
|
|
2493
2500
|
onVnodeMounted: g,
|
|
2494
2501
|
onVnodeUpdated: g
|
|
2495
|
-
},
|
|
2502
|
+
}, _e({ _: 2 }, [n.icon || _.value ? {
|
|
2496
2503
|
name: "icon",
|
|
2497
2504
|
fn: H(() => [D(B(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
|
|
2498
2505
|
key: "0"
|
|
2499
2506
|
} : void 0, L(Object.keys(r.$slots), (e) => ({
|
|
2500
2507
|
name: e,
|
|
2501
|
-
fn: H((t) => [
|
|
2508
|
+
fn: H((t) => [Ee(r.$slots, e, P(ye(t)), void 0, !0)])
|
|
2502
2509
|
}))]), 1536))]),
|
|
2503
2510
|
_: 3
|
|
2504
|
-
}, 16)) : (F(), C(R(A(B(
|
|
2511
|
+
}, 16)) : (F(), C(R(A(B(Fe), y.value)), {
|
|
2505
2512
|
key: 1,
|
|
2506
2513
|
onVnodeMounted: g,
|
|
2507
2514
|
onVnodeUpdated: g
|
|
2508
|
-
},
|
|
2515
|
+
}, _e({ _: 2 }, [n.icon || _.value ? {
|
|
2509
2516
|
name: "icon",
|
|
2510
2517
|
fn: H(() => [D(B(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
|
|
2511
2518
|
key: "0"
|
|
2512
2519
|
} : void 0, L(Object.keys(r.$slots), (e) => ({
|
|
2513
2520
|
name: e,
|
|
2514
|
-
fn: H((t) => [
|
|
2521
|
+
fn: H((t) => [Ee(r.$slots, e, P(ye(t)), void 0, !0)])
|
|
2515
2522
|
}))]), 1536))], 64)) : w("v-if", !0);
|
|
2516
2523
|
}
|
|
2517
|
-
}), [["__scopeId", "data-v-
|
|
2524
|
+
}), [["__scopeId", "data-v-d7f7dcf0"]]), Mn = /* @__PURE__ */ O({
|
|
2518
2525
|
name: "TProvider",
|
|
2519
2526
|
__name: "Provider",
|
|
2520
2527
|
setup(t) {
|
|
@@ -2533,14 +2540,14 @@ var An = {
|
|
|
2533
2540
|
variant: "text"
|
|
2534
2541
|
}, { icon: () => t(e, { icon: `ph:caret-${n === "expand" ? "right" : "down"}-bold` }) })
|
|
2535
2542
|
} };
|
|
2536
|
-
return (e, t) => (F(), C(B(
|
|
2543
|
+
return (e, t) => (F(), C(B(nt), {
|
|
2537
2544
|
"empty-values": [""],
|
|
2538
|
-
locale: B(
|
|
2545
|
+
locale: B(yt),
|
|
2539
2546
|
"value-on-clear": "",
|
|
2540
2547
|
"z-index": 5500
|
|
2541
2548
|
}, {
|
|
2542
|
-
default: H(() => [D(B(
|
|
2543
|
-
default: H(() => [
|
|
2549
|
+
default: H(() => [D(B(Le), { "global-config": n }, {
|
|
2550
|
+
default: H(() => [Ee(e.$slots, "default")]),
|
|
2544
2551
|
_: 3
|
|
2545
2552
|
})]),
|
|
2546
2553
|
_: 3
|
|
@@ -2548,4 +2555,4 @@ var An = {
|
|
|
2548
2555
|
}
|
|
2549
2556
|
});
|
|
2550
2557
|
//#endregion
|
|
2551
|
-
export {
|
|
2558
|
+
export { Zt as A, jt as B, on as C, q as D, nn as E, zt as F, W 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, J as T, xt as U, G as V, bt as W, hn as _, kn as a, Z as b, wn as c, xn as d, bn as f, gn as g, _n as h, Q as i, Yt as j, Qt as k, Cn as l, vn as m, $ as n, On as o, yn as p, An as r, Dn as s, Mn as t, Sn as u, fn as v, sn as w, mn as x, pn as y, Ct as z };
|