dlzn-ui 2.0.60 → 2.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunks/{AssignUser-bMazhfbV.mjs → AssignUser-BxZWNghF.mjs} +3 -3
- package/chunks/{BasicInfo-gyjQU2uO.mjs → BasicInfo-CD6UhCHM.mjs} +1 -1
- package/chunks/{ColumnInfo-CFYZ5hWe.mjs → ColumnInfo-BsM9uvbw.mjs} +2 -2
- package/chunks/{Common-DBSYg1d6.mjs → Common-r0077gpA.mjs} +1 -1
- package/chunks/{Day-ChCPxAyN.mjs → Day-Df_DXxOG.mjs} +1 -1
- package/chunks/{DictTypeDetail-ndBNKRnJ.mjs → DictTypeDetail-CUkL2r99.mjs} +2 -2
- package/chunks/{GenInfo-Cu9r0CWu.mjs → GenInfo-DCo-Ncab.mjs} +1 -1
- package/chunks/{Hour-DliOctKJ.mjs → Hour-CcmblN8t.mjs} +1 -1
- package/chunks/{Import-Bzr5ifWR.mjs → Import-CiwMo4sc.mjs} +2 -2
- package/chunks/{Index-DkdDlFEM.mjs → Index-DDgWuN67.mjs} +1 -1
- package/chunks/{Index-BlMeGYHt.mjs → Index-D_WqbxQR.mjs} +1 -1
- package/chunks/{Index-MqUf5ZDu.mjs → Index-DzA8iaYc.mjs} +1 -1
- package/chunks/{Index-BTzAo7cI.mjs → Index-G8XRYnzj.mjs} +1 -1
- package/chunks/{IndexItem-A_Ovo4M5.mjs → IndexItem-DmCPA4jz.mjs} +1 -1
- package/chunks/{Log-BDGXwssd.mjs → Log-BJ4Apmda.mjs} +2 -2
- package/chunks/{LoginBg-DKefXcPd.mjs → LoginBg-BGUfFQNy.mjs} +1 -1
- package/chunks/{Minute-COzGc3ad.mjs → Minute-fJGF2MAo.mjs} +1 -1
- package/chunks/{Month-Dx81Eaal.mjs → Month-BHiN8-3x.mjs} +1 -1
- package/chunks/{Preview-ChIMapuV.mjs → Preview-DGEnhY8r.mjs} +1 -1
- package/chunks/{Second-BWbEhs38.mjs → Second-VgElJg0N.mjs} +1 -1
- package/chunks/{SelectDept-DbVJHioK.mjs → SelectDept-DaMp8MXg.mjs} +1 -1
- package/chunks/{SelectMenu-C7L1sfLX.mjs → SelectMenu-CJf96ril.mjs} +1 -1
- package/chunks/{SelectUser-C43-AOq3.mjs → SelectUser-BRCKc66l.mjs} +2 -2
- package/chunks/{UserInfo-Dmiw8nUq.mjs → UserInfo-Db7N8FDE.mjs} +1 -1
- package/chunks/{app-Ch2PbR-W.mjs → app-DW1XaURQ.mjs} +1 -1
- package/chunks/{custom-page-list-C_Ls1OqQ.mjs → custom-page-list-DAV9ecpr.mjs} +4 -4
- package/chunks/{custom-page-table-DD3RNBZW.mjs → custom-page-table-D65vHcSH.mjs} +2 -2
- package/chunks/{job-DcKHJj9d.mjs → job-DB2318_Y.mjs} +3 -3
- package/chunks/{overview-CtHQkWg4.mjs → overview-CMFG_jwZ.mjs} +1 -1
- package/chunks/{page-list-BwtbLllw.mjs → page-list-CJcCFpxm.mjs} +3 -3
- package/chunks/{page-query-21MkVjW-.mjs → page-query-CkazN4cq.mjs} +1 -1
- package/chunks/{page-table-CNXoo8NE.mjs → page-table-6tPwlBIq.mjs} +3 -3
- package/chunks/{pagination-D9t3wPwB.mjs → pagination-CEhAl0rS.mjs} +1 -1
- package/chunks/{provider-BPshoiNR.mjs → provider-Db8pIWwt.mjs} +389 -383
- package/chunks/{table-CZTzoYO4.mjs → table-Cg_n6-dq.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-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +9 -9
- 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.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/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +1 -1
- package/layout/Home1.mjs +2 -2
- package/layout/Login.mjs +2 -2
- package/layout/NotFound.mjs +1 -1
- package/layout/modules/Aside.mjs +1 -1
- package/layout/modules/Breadcrumb.mjs +1 -1
- package/layout/modules/Header.mjs +1 -1
- package/layout/modules/LoginBg.mjs +1 -1
- package/layout/profile/Index.mjs +2 -2
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/main.mjs +2 -2
- package/package.json +3 -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/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +3 -3
- package/proj-template/package.json +0 -4
- package/proj-template/pnpm-workspace.yaml +2 -0
- package/router/index.mjs +1 -1
- package/store/index.d.ts +1 -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/views/monitor/cache/index.mjs +2 -2
- package/views/monitor/cacheList/index.mjs +2 -2
- package/views/monitor/job/index.mjs +1 -1
- package/views/monitor/logininfor/index.mjs +2 -2
- package/views/monitor/online/index.mjs +2 -2
- package/views/monitor/operlog/index.mjs +2 -2
- package/views/monitor/server/index.mjs +2 -2
- package/views/system/config/index.mjs +2 -2
- package/views/system/dept/index.mjs +2 -2
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +3 -3
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +2 -2
- package/views/system/menu/utils.mjs +1 -1
- package/views/system/notice/index.mjs +2 -2
- package/views/system/post/index.mjs +2 -2
- package/views/system/role/index.mjs +5 -5
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +3 -3
- package/views/tool/gen/editTable/index.mjs +4 -4
- package/views/tool/gen/editTable/modules/BasicInfo.mjs +1 -1
- package/views/tool/gen/editTable/modules/ColumnInfo.mjs +1 -1
- package/views/tool/gen/editTable/modules/GenInfo.mjs +1 -1
- package/views/tool/gen/index.mjs +4 -4
- package/views/tool/gen/modules/Import.mjs +1 -1
- package/views/tool/gen/modules/Preview.mjs +1 -1
- package/views/tool/job/index.mjs +1 -1
- package/views/tool/job/modules/Log.mjs +1 -1
|
@@ -47,20 +47,20 @@ import { t as ge } from "./switch-DNPmkfa_.mjs";
|
|
|
47
47
|
import "../components/switch/index.mjs";
|
|
48
48
|
import { t as _e } from "./textarea-CYirMH7f.mjs";
|
|
49
49
|
import "../components/textarea/index.mjs";
|
|
50
|
-
import { Fragment as
|
|
51
|
-
import { Breadcrumb as
|
|
52
|
-
import { ElConfigProvider as
|
|
53
|
-
import { useElementSize as
|
|
54
|
-
import { cloneDeep as
|
|
55
|
-
import { defineStore as
|
|
56
|
-
import { createRouter as ht, createWebHistory as gt, useRoute as
|
|
57
|
-
import
|
|
58
|
-
import { createAlova as
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
50
|
+
import { Fragment as x, KeepAlive as ve, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as ye, createSlots as be, createTextVNode as E, createVNode as D, defineAsyncComponent as xe, defineComponent as O, getCurrentInstance as k, guardReactiveProps as A, h as j, inject as Se, markRaw as Ce, mergeDefaults as M, mergeProps as N, nextTick as P, normalizeClass as we, normalizeProps as F, onMounted as Te, openBlock as I, provide as Ee, reactive as De, ref as L, renderList as R, renderSlot as Oe, resolveComponent as ke, resolveDynamicComponent as z, shallowRef as Ae, toDisplayString as B, unref as V, useAttrs as je, useSlots as Me, useTemplateRef as Ne, watch as H, withCtx as U, withModifiers as Pe } from "vue";
|
|
51
|
+
import { Breadcrumb as Fe, BreadcrumbItem as Ie, Button as Le, CheckboxGroup as Re, ConfigProvider as ze, Content as Be, DialogPlugin as Ve, Drawer as He, DrawerPlugin as Ue, Dropdown as We, Form as Ge, FormItem as Ke, HeadMenu as qe, Header as Je, InputAdornment as Ye, Layout as Xe, Menu as Ze, MenuItem as Qe, RadioGroup as $e, Select as et, Tree as tt, TreeSelect as nt, Upload as rt } from "tdesign-vue-next";
|
|
52
|
+
import { ElConfigProvider as it } from "element-plus";
|
|
53
|
+
import { useElementSize as at, useElementVisibility as ot, useFavicon as st, useFocus as ct, useMutationObserver as lt, useResizeObserver as ut } from "@vueuse/core";
|
|
54
|
+
import { cloneDeep as dt, isPlainObject as ft } from "lodash-es";
|
|
55
|
+
import { defineStore as pt } from "pinia";
|
|
56
|
+
import { NavigationFailureType as mt, createRouter as ht, createWebHistory as gt, isNavigationFailure as _t, useRoute as W, useRouter as vt } from "vue-router";
|
|
57
|
+
import yt from "virtual:dlzn-ui/app-params";
|
|
58
|
+
import { createAlova as bt } from "alova";
|
|
59
|
+
import xt from "alova/fetch";
|
|
60
|
+
import St from "alova/vue";
|
|
61
|
+
import Ct from "path-browserify";
|
|
62
62
|
//#region ../../node_modules/.pnpm/element-plus@2.14.5_vue@3.5.41/node_modules/element-plus/es/locale/lang/zh-cn.mjs
|
|
63
|
-
var
|
|
63
|
+
var wt = {
|
|
64
64
|
name: "zh-cn",
|
|
65
65
|
el: {
|
|
66
66
|
breadcrumb: { label: "面包屑" },
|
|
@@ -241,15 +241,15 @@ var Ct = {
|
|
|
241
241
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
},
|
|
244
|
+
}, Tt = {
|
|
245
245
|
autoIcon: !0,
|
|
246
246
|
autoLoading: !0,
|
|
247
247
|
autoTheme: !0,
|
|
248
248
|
loading: void 0
|
|
249
|
-
},
|
|
249
|
+
}, Et = {
|
|
250
250
|
autoLabelWidth: !0,
|
|
251
251
|
colon: !0,
|
|
252
|
-
data: () =>
|
|
252
|
+
data: () => De({}),
|
|
253
253
|
disabled: !1,
|
|
254
254
|
labelAlign: "top",
|
|
255
255
|
layout: "inline",
|
|
@@ -259,15 +259,15 @@ var Ct = {
|
|
|
259
259
|
requiredMark: void 0,
|
|
260
260
|
resetType: "initial",
|
|
261
261
|
showErrorMessage: !0
|
|
262
|
-
},
|
|
262
|
+
}, Dt = /* @__PURE__ */ function(e) {
|
|
263
263
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
264
|
-
}(
|
|
265
|
-
function
|
|
266
|
-
let i =
|
|
264
|
+
}(Dt || {}), Ot = /* @__PURE__ */ new Set();
|
|
265
|
+
function kt(e, t, n) {
|
|
266
|
+
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 } = ot(a, {
|
|
267
267
|
controls: !0,
|
|
268
268
|
initialValue: !0
|
|
269
269
|
}), c = {
|
|
270
|
-
closeBtn: () =>
|
|
270
|
+
closeBtn: () => j($, {
|
|
271
271
|
icon: "mdi:close",
|
|
272
272
|
shape: "circle",
|
|
273
273
|
size: "small",
|
|
@@ -284,39 +284,39 @@ function Ot(e, t, n) {
|
|
|
284
284
|
placement: "center",
|
|
285
285
|
width: "fit-content",
|
|
286
286
|
...t ?? {},
|
|
287
|
-
body: () =>
|
|
287
|
+
body: () => j(zn, {}, { default: () => i.value })
|
|
288
288
|
}, l, u = {
|
|
289
289
|
...c,
|
|
290
290
|
onClosed: () => {
|
|
291
|
-
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(),
|
|
291
|
+
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(), Ot.delete(l);
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
delete u.closeWhenCloseAll;
|
|
295
295
|
let d = r();
|
|
296
|
-
return l = e === void 0 ?
|
|
296
|
+
return l = e === void 0 ? Ve(u, n ?? d) : Ve[e](u, n ?? d), c.closeWhenCloseAll && Ot.add(l), l;
|
|
297
297
|
}
|
|
298
|
-
var
|
|
299
|
-
return
|
|
298
|
+
var At = function(...e) {
|
|
299
|
+
return kt(void 0, ...e);
|
|
300
300
|
};
|
|
301
|
-
Object.values(
|
|
302
|
-
|
|
303
|
-
|
|
301
|
+
Object.values(Dt).forEach((e) => {
|
|
302
|
+
At[e] = e === "closeAll" ? () => {
|
|
303
|
+
Ot.forEach((e) => {
|
|
304
304
|
e.hide();
|
|
305
305
|
});
|
|
306
|
-
} : (...t) =>
|
|
306
|
+
} : (...t) => kt(e, ...t);
|
|
307
307
|
});
|
|
308
308
|
//#endregion
|
|
309
309
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
310
|
-
var
|
|
310
|
+
var G = (e, t) => {
|
|
311
311
|
let n = { ...typeof e == "string" ? {} : e };
|
|
312
312
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
313
|
-
let a =
|
|
313
|
+
let a = At(typeof e == "string" ? {
|
|
314
314
|
body: e,
|
|
315
315
|
onConfirm: () => {
|
|
316
316
|
a.hide(), r();
|
|
317
317
|
},
|
|
318
318
|
theme: "warning"
|
|
319
|
-
} :
|
|
319
|
+
} : De({
|
|
320
320
|
...n,
|
|
321
321
|
onClose: (t) => {
|
|
322
322
|
let { trigger: n } = t;
|
|
@@ -336,7 +336,7 @@ var W = (e, t) => {
|
|
|
336
336
|
};
|
|
337
337
|
//#endregion
|
|
338
338
|
//#region ../../packages/dlzn-ui/store/modules/common.ts
|
|
339
|
-
function
|
|
339
|
+
function jt() {
|
|
340
340
|
return VITE_APP_ID === "1" ? X.Get(`yq/oemConfig/getByDomain/${window.location.hostname}`, {
|
|
341
341
|
meta: { useToken: !1 },
|
|
342
342
|
transform(e) {
|
|
@@ -354,20 +354,20 @@ function At() {
|
|
|
354
354
|
useToken: !1
|
|
355
355
|
} });
|
|
356
356
|
}
|
|
357
|
-
var
|
|
358
|
-
let e =
|
|
357
|
+
var K = pt("common", () => {
|
|
358
|
+
let e = L(!0), t = L(250), n = L({
|
|
359
359
|
appName: "",
|
|
360
360
|
color: "",
|
|
361
361
|
logo: "",
|
|
362
362
|
version: ""
|
|
363
363
|
});
|
|
364
|
-
|
|
364
|
+
H(() => n.value.appName, (e) => {
|
|
365
365
|
e && (document.title = e);
|
|
366
|
-
}),
|
|
366
|
+
}), H(() => n.value.color, (e) => {
|
|
367
367
|
e && (v().value = e);
|
|
368
|
-
}),
|
|
368
|
+
}), st(S(() => n.value.logo || "/favicon.ico"));
|
|
369
369
|
function r() {
|
|
370
|
-
|
|
370
|
+
jt().then((e) => {
|
|
371
371
|
n.value = e;
|
|
372
372
|
}).catch((e) => {
|
|
373
373
|
n.value = {
|
|
@@ -378,7 +378,7 @@ var G = H("common", () => {
|
|
|
378
378
|
}, console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
let i =
|
|
381
|
+
let i = L(!0), a = null;
|
|
382
382
|
function o() {
|
|
383
383
|
a !== null && (clearTimeout(a), a = null), i.value = !1, a = setTimeout(() => {
|
|
384
384
|
i.value = !0;
|
|
@@ -392,13 +392,13 @@ var G = H("common", () => {
|
|
|
392
392
|
isRequestSleep: i,
|
|
393
393
|
requestActive: o
|
|
394
394
|
};
|
|
395
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }),
|
|
396
|
-
let e =
|
|
395
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), q = pt("recentRouters", () => {
|
|
396
|
+
let e = L([]), t = W(), n = vt();
|
|
397
397
|
function r() {
|
|
398
398
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
399
399
|
}
|
|
400
400
|
function i(t, n) {
|
|
401
|
-
let r =
|
|
401
|
+
let r = dt(n), i = e.value.findIndex((e) => e.name === r.name || cn(e.name).meta.title === cn(r.name).meta.title);
|
|
402
402
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
403
403
|
let n = e.value.findIndex((e) => e.name === t);
|
|
404
404
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -429,16 +429,16 @@ var G = H("common", () => {
|
|
|
429
429
|
}, { persist: { pick: ["recentRouters"] } });
|
|
430
430
|
//#endregion
|
|
431
431
|
//#region ../../packages/dlzn-ui/store/modules/router.ts
|
|
432
|
-
function
|
|
432
|
+
function Mt() {
|
|
433
433
|
return X.Get("getRouters", { meta: {
|
|
434
434
|
useFailMsg: "获取用户路由失败",
|
|
435
435
|
useLoading: "正在获取用户路由..."
|
|
436
436
|
} });
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function Nt(e) {
|
|
439
439
|
return e.children !== void 0 || e.component !== void 0;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Pt(e) {
|
|
442
442
|
let t = [];
|
|
443
443
|
return e.forEach((e) => {
|
|
444
444
|
e.path === "/" ? t.push({
|
|
@@ -447,7 +447,7 @@ function Nt(e) {
|
|
|
447
447
|
}) : t.push(e);
|
|
448
448
|
}), t;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Ft(e) {
|
|
451
451
|
let t = (e, n) => {
|
|
452
452
|
let r = [];
|
|
453
453
|
return e.forEach((e) => {
|
|
@@ -471,12 +471,12 @@ function Pt(e) {
|
|
|
471
471
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
474
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = zt(e)), Nt(i) && r.push(i);
|
|
475
475
|
}), r;
|
|
476
|
-
}, n =
|
|
476
|
+
}, n = sn();
|
|
477
477
|
return n.children.push(...e), t([n], null);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function It(e) {
|
|
480
480
|
let t = (e) => {
|
|
481
481
|
let n = [...e], r = n.length;
|
|
482
482
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -489,91 +489,97 @@ function Ft(e) {
|
|
|
489
489
|
};
|
|
490
490
|
return t(e);
|
|
491
491
|
}
|
|
492
|
-
var
|
|
493
|
-
function
|
|
492
|
+
var Lt = [];
|
|
493
|
+
function Rt(e) {
|
|
494
494
|
return `./${e.split("___")[0]}.vue`;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function zt(e) {
|
|
497
497
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
498
|
-
let t = e.component, n = typeof t == "string" ? ne[
|
|
498
|
+
let t = e.component, n = typeof t == "string" ? ne[Rt(t)] : t;
|
|
499
499
|
if (n === void 0) {
|
|
500
|
-
let e = `路由组件${
|
|
500
|
+
let e = `路由组件${Rt(t)}不存在`;
|
|
501
501
|
return console.error(e), h["./NotFound.vue"];
|
|
502
502
|
}
|
|
503
|
-
return typeof t == "string" &&
|
|
503
|
+
return typeof t == "string" && Lt.push(Rt(t)), () => n().then((t) => ({
|
|
504
504
|
...t.default,
|
|
505
505
|
name: e.name
|
|
506
506
|
}));
|
|
507
507
|
}
|
|
508
508
|
return e.component;
|
|
509
509
|
}
|
|
510
|
-
var
|
|
511
|
-
let e =
|
|
512
|
-
async function
|
|
513
|
-
let
|
|
514
|
-
|
|
515
|
-
|
|
510
|
+
var Bt = pt("router", () => {
|
|
511
|
+
let e = L([]), t = vt(), r = Q();
|
|
512
|
+
async function i() {
|
|
513
|
+
let i = await Mt();
|
|
514
|
+
VITE_MODE === "development" && r.isAdmin && fetch("/__dev__/save-folder-alias", {
|
|
515
|
+
body: JSON.stringify(i),
|
|
516
|
+
headers: { "Content-Type": "application/json" },
|
|
517
|
+
method: "POST"
|
|
518
|
+
}).catch((e) => {
|
|
519
|
+
console.warn("[dev-save-folder-alias] 写入本地 json 失败", e);
|
|
520
|
+
}), Lt.length = 0, e.value = Ce(It(Ft(Pt(i)))), r.isAdmin && Object.keys(ne).forEach((e) => {
|
|
521
|
+
if (!Lt.includes(e) && ![
|
|
516
522
|
"./tool",
|
|
517
523
|
"./system",
|
|
518
524
|
"./monitor"
|
|
519
525
|
].some((t) => e.startsWith(t))) {
|
|
520
526
|
let t = `${e} 页面对应的路由不存在`;
|
|
521
|
-
console.error(t);
|
|
527
|
+
VITE_MODE === "development" ? n.error(t) : console.error(t);
|
|
522
528
|
}
|
|
523
529
|
}), t.hasRoute("Index") && t.removeRoute("Index"), e.value.forEach((e) => {
|
|
524
530
|
t.addRoute(e);
|
|
525
|
-
}),
|
|
531
|
+
}), q().init();
|
|
526
532
|
}
|
|
527
|
-
function
|
|
533
|
+
function a() {
|
|
528
534
|
e.value.forEach((e) => {
|
|
529
535
|
t.removeRoute(e.name);
|
|
530
536
|
}), e.value = [];
|
|
531
537
|
}
|
|
532
538
|
return {
|
|
533
|
-
clear:
|
|
534
|
-
getRouters:
|
|
539
|
+
clear: a,
|
|
540
|
+
getRouters: i,
|
|
535
541
|
routersRaw: e
|
|
536
542
|
};
|
|
537
|
-
}),
|
|
543
|
+
}), Vt = { class: "ml-2! flex items-center" }, Ht = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
538
544
|
__name: "Aside",
|
|
539
545
|
setup(e) {
|
|
540
|
-
let t =
|
|
541
|
-
|
|
546
|
+
let t = W(), n = K(), r = S(() => n.appInfo.appName), i = Bt(), a = L([]);
|
|
547
|
+
H(() => t.name, () => {
|
|
542
548
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
543
549
|
a.value.includes(e) || a.value.push(e);
|
|
544
550
|
});
|
|
545
551
|
}, { immediate: !0 });
|
|
546
|
-
let o =
|
|
552
|
+
let o = S(() => {
|
|
547
553
|
let { hidden: e, parentName: n } = t.meta;
|
|
548
554
|
return n !== "" && e === !0 ? n : t.name;
|
|
549
|
-
}), s =
|
|
550
|
-
return (e, t) => (
|
|
555
|
+
}), s = S(() => n.appInfo.logo || yt.asideTopLogoUrl);
|
|
556
|
+
return (e, t) => (I(), C(V(Ze), {
|
|
551
557
|
expanded: a.value,
|
|
552
558
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
553
559
|
class: "w-full!",
|
|
554
560
|
value: o.value
|
|
555
561
|
}, {
|
|
556
|
-
logo:
|
|
562
|
+
logo: U(() => [ye("div", Vt, [D(V(te), {
|
|
557
563
|
class: "logo",
|
|
558
564
|
src: s.value,
|
|
559
565
|
style: {
|
|
560
566
|
width: "28px",
|
|
561
567
|
height: "28px"
|
|
562
568
|
}
|
|
563
|
-
}, null, 8, ["src"]),
|
|
569
|
+
}, null, 8, ["src"]), D(V(ee), {
|
|
564
570
|
"animation-speed": 8,
|
|
565
571
|
"class-name": "ml-2 text-xl !font-bold",
|
|
566
572
|
"show-border": !1,
|
|
567
573
|
text: r.value
|
|
568
574
|
}, null, 8, ["text"])])]),
|
|
569
|
-
default:
|
|
575
|
+
default: U(() => [D(re, { model: V(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
570
576
|
_: 1
|
|
571
577
|
}, 8, ["expanded", "value"]));
|
|
572
578
|
}
|
|
573
|
-
}), [["__scopeId", "data-v-36275803"]]),
|
|
579
|
+
}), [["__scopeId", "data-v-36275803"]]), Ut = /* @__PURE__ */ O({
|
|
574
580
|
__name: "Breadcrumb",
|
|
575
581
|
setup(e, { expose: t }) {
|
|
576
|
-
let n =
|
|
582
|
+
let n = W(), r = vt(), i = q(), a = S(() => {
|
|
577
583
|
let e = n.matched.map((e) => ({
|
|
578
584
|
name: e.name,
|
|
579
585
|
title: e.meta.title
|
|
@@ -586,96 +592,96 @@ var zt = H("router", () => {
|
|
|
586
592
|
function o(e) {
|
|
587
593
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
588
594
|
}
|
|
589
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (
|
|
595
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (I(), C(V(Fe), {
|
|
590
596
|
key: 0,
|
|
591
597
|
class: "absolute top-px z-10 py-1!"
|
|
592
598
|
}, {
|
|
593
|
-
default:
|
|
599
|
+
default: U(() => [(I(!0), T(x, null, R(a.value, (e) => (I(), C(V(Ie), {
|
|
594
600
|
key: e.name,
|
|
595
601
|
disabled: e.disabled,
|
|
596
602
|
onClick: (t) => o(e.name)
|
|
597
603
|
}, {
|
|
598
|
-
default:
|
|
604
|
+
default: U(() => [E(B(e.title), 1)]),
|
|
599
605
|
_: 2
|
|
600
606
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
601
607
|
_: 1
|
|
602
|
-
})) :
|
|
608
|
+
})) : w("v-if", !0);
|
|
603
609
|
}
|
|
604
|
-
}),
|
|
605
|
-
function
|
|
610
|
+
}), Wt = /* @__PURE__ */ new Map();
|
|
611
|
+
function Gt(e) {
|
|
606
612
|
let t = X.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
607
613
|
...e,
|
|
608
614
|
label: e.userName,
|
|
609
615
|
value: e.userId
|
|
610
616
|
})));
|
|
611
617
|
e.forEach((e) => {
|
|
612
|
-
|
|
618
|
+
Wt.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
613
619
|
});
|
|
614
620
|
}
|
|
615
|
-
var
|
|
616
|
-
function
|
|
617
|
-
return
|
|
621
|
+
var Kt = [];
|
|
622
|
+
function qt(e) {
|
|
623
|
+
return Kt.includes(e) || Kt.push(e), new Promise((t) => {
|
|
618
624
|
setTimeout(() => {
|
|
619
|
-
let n =
|
|
620
|
-
n.length > 0 &&
|
|
625
|
+
let n = Kt.filter((e) => !Wt.has(e));
|
|
626
|
+
n.length > 0 && Gt(n), Kt.length = 0, Wt.get(e).then((e) => {
|
|
621
627
|
t(e);
|
|
622
628
|
});
|
|
623
629
|
});
|
|
624
630
|
});
|
|
625
631
|
}
|
|
626
|
-
var
|
|
627
|
-
function
|
|
628
|
-
|
|
632
|
+
var J = /* @__PURE__ */ new Map();
|
|
633
|
+
function Jt() {
|
|
634
|
+
Kt.length = 0, Wt.clear(), J.clear();
|
|
629
635
|
}
|
|
630
|
-
function
|
|
631
|
-
|
|
632
|
-
|
|
636
|
+
function Yt(e) {
|
|
637
|
+
Wt.delete(e), J.has(e) && qt(e).then((t) => {
|
|
638
|
+
J.get(e).value = t;
|
|
633
639
|
});
|
|
634
640
|
}
|
|
635
|
-
function
|
|
641
|
+
function Xt(e) {
|
|
636
642
|
let t;
|
|
637
|
-
return
|
|
643
|
+
return J.has(e) ? t = J.get(e) : (t = L(null), J.set(e, t), qt(e).then((e) => {
|
|
638
644
|
t.value = e;
|
|
639
645
|
})), t;
|
|
640
646
|
}
|
|
641
647
|
//#endregion
|
|
642
648
|
//#region ../../packages/dlzn-ui/store/modules/login.ts
|
|
643
|
-
function
|
|
649
|
+
function Zt(e) {
|
|
644
650
|
return X.Post("login", e, { meta: {
|
|
645
651
|
useLoading: "登录中...",
|
|
646
652
|
useToken: !1
|
|
647
653
|
} });
|
|
648
654
|
}
|
|
649
|
-
function
|
|
655
|
+
function Qt() {
|
|
650
656
|
return X.Post("logout", void 0, { meta: {
|
|
651
657
|
useLoading: "退出登录中...",
|
|
652
658
|
useSuccessMsg: !0
|
|
653
659
|
} });
|
|
654
660
|
}
|
|
655
|
-
var
|
|
656
|
-
let e =
|
|
661
|
+
var $t = pt("login", () => {
|
|
662
|
+
let e = L(""), t = W(), n = vt();
|
|
657
663
|
async function r(t) {
|
|
658
|
-
let n = await
|
|
664
|
+
let n = await Zt(t);
|
|
659
665
|
e.value = n.token, await Q().getUserInfo();
|
|
660
666
|
}
|
|
661
667
|
function i() {
|
|
662
|
-
e.value = "", y().clear(),
|
|
668
|
+
e.value = "", y().clear(), Bt().clear(), Q().clear(), vn(), Jt(), oe();
|
|
663
669
|
}
|
|
664
|
-
|
|
670
|
+
H(() => t.name, () => {
|
|
665
671
|
t.name === "Login" && i();
|
|
666
672
|
});
|
|
667
673
|
async function a() {
|
|
668
|
-
await
|
|
674
|
+
await Qt(), await n.push({ name: "Login" }), i();
|
|
669
675
|
}
|
|
670
676
|
return {
|
|
671
677
|
login: r,
|
|
672
678
|
logout: a,
|
|
673
679
|
token: e
|
|
674
680
|
};
|
|
675
|
-
}, { persist: { pick: ["token"] } }),
|
|
681
|
+
}, { persist: { pick: ["token"] } }), en = { class: "flex items-center justify-between" }, tn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
676
682
|
__name: "Header",
|
|
677
683
|
setup(t) {
|
|
678
|
-
let n =
|
|
684
|
+
let n = W(), r = vt(), i = Q(), a = K(), o = q();
|
|
679
685
|
function s(e) {
|
|
680
686
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
681
687
|
}
|
|
@@ -684,7 +690,7 @@ var Qt = H("login", () => {
|
|
|
684
690
|
}
|
|
685
691
|
let l = async (e) => {
|
|
686
692
|
let { value: t } = e;
|
|
687
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await
|
|
693
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await G("确定要退出登录吗?"), $t().logout());
|
|
688
694
|
}, u = _.isMd;
|
|
689
695
|
function d(e, t) {
|
|
690
696
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
@@ -708,34 +714,34 @@ var Qt = H("login", () => {
|
|
|
708
714
|
}
|
|
709
715
|
}), ie(e, i);
|
|
710
716
|
}
|
|
711
|
-
return (t, r) => (
|
|
712
|
-
default:
|
|
717
|
+
return (t, r) => (I(), C(V(Je), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
718
|
+
default: U(() => [D(V(qe), {
|
|
713
719
|
"expand-type": "popup",
|
|
714
|
-
value:
|
|
720
|
+
value: V(n).name,
|
|
715
721
|
onChange: s
|
|
716
722
|
}, {
|
|
717
|
-
logo:
|
|
723
|
+
logo: U(() => [D(V($), {
|
|
718
724
|
class: "ml-0! shrink-0",
|
|
719
725
|
shape: "circle",
|
|
720
726
|
size: "large",
|
|
721
727
|
variant: "text",
|
|
722
|
-
onClick: r[0] ||= (e) =>
|
|
728
|
+
onClick: r[0] ||= (e) => V(a).drawerOpen = !V(a).drawerOpen
|
|
723
729
|
}, {
|
|
724
|
-
default:
|
|
730
|
+
default: U(() => [D(V(e), { icon: "lineicons:menu-hamburger-1" })]),
|
|
725
731
|
_: 1
|
|
726
732
|
})]),
|
|
727
|
-
operations:
|
|
733
|
+
operations: U(() => [D(V(We), {
|
|
728
734
|
options: [{
|
|
729
735
|
content: "个人中心",
|
|
730
736
|
value: "profile",
|
|
731
|
-
prefixIcon: () =>
|
|
737
|
+
prefixIcon: () => j(V(e), {
|
|
732
738
|
icon: "material-symbols:account-circle",
|
|
733
739
|
size: "16"
|
|
734
740
|
})
|
|
735
741
|
}, {
|
|
736
742
|
content: "退出登录",
|
|
737
743
|
value: "logout",
|
|
738
|
-
prefixIcon: () =>
|
|
744
|
+
prefixIcon: () => j(V(e), {
|
|
739
745
|
icon: "material-symbols:logout",
|
|
740
746
|
size: "16"
|
|
741
747
|
})
|
|
@@ -744,46 +750,46 @@ var Qt = H("login", () => {
|
|
|
744
750
|
trigger: "click",
|
|
745
751
|
onClick: l
|
|
746
752
|
}, {
|
|
747
|
-
default:
|
|
753
|
+
default: U(() => [V(u) ? (I(), C(V($), {
|
|
748
754
|
key: 0,
|
|
749
755
|
shape: "square",
|
|
750
756
|
variant: "text"
|
|
751
757
|
}, {
|
|
752
|
-
icon:
|
|
758
|
+
icon: U(() => [D(V(e), { icon: "material-symbols:account-circle" })]),
|
|
753
759
|
_: 1
|
|
754
|
-
})) : (
|
|
760
|
+
})) : (I(), C(V($), {
|
|
755
761
|
key: 1,
|
|
756
762
|
variant: "text"
|
|
757
763
|
}, {
|
|
758
|
-
icon:
|
|
759
|
-
suffix:
|
|
764
|
+
icon: U(() => [D(V(e), { icon: "material-symbols:account-circle" })]),
|
|
765
|
+
suffix: U(() => [D(V(e), {
|
|
760
766
|
icon: "icon-park-outline:down",
|
|
761
767
|
size: "18"
|
|
762
768
|
})]),
|
|
763
|
-
default:
|
|
769
|
+
default: U(() => [E(" " + B(V(i).userInfo.userName) + " ", 1)]),
|
|
764
770
|
_: 1
|
|
765
771
|
}))]),
|
|
766
772
|
_: 1
|
|
767
773
|
}, 8, ["options"])]),
|
|
768
|
-
default:
|
|
774
|
+
default: U(() => [(I(!0), T(x, null, R(V(o).recentRouters, (t) => (I(), C(V(Qe), {
|
|
769
775
|
key: t.name,
|
|
770
776
|
value: t.name,
|
|
771
777
|
onContextmenu: (e) => d(e, t.name)
|
|
772
778
|
}, {
|
|
773
|
-
default:
|
|
779
|
+
default: U(() => [ye("div", en, [ye("span", null, B(V(cn)(t.name).meta.title), 1), V(o).recentRouters.length > 1 ? (I(), C(V($), {
|
|
774
780
|
key: 0,
|
|
775
781
|
class: "ml-1!",
|
|
776
782
|
shape: "square",
|
|
777
783
|
size: "small",
|
|
778
784
|
variant: "text",
|
|
779
|
-
onClick:
|
|
785
|
+
onClick: Pe((e) => c(t.name), ["stop"])
|
|
780
786
|
}, {
|
|
781
|
-
icon:
|
|
787
|
+
icon: U(() => [D(V(e), {
|
|
782
788
|
icon: "material-symbols:close",
|
|
783
789
|
style: { "font-size": "12px !important" }
|
|
784
790
|
})]),
|
|
785
791
|
_: 1
|
|
786
|
-
}, 8, ["onClick"])) :
|
|
792
|
+
}, 8, ["onClick"])) : w("v-if", !0)])]),
|
|
787
793
|
_: 2
|
|
788
794
|
}, 1032, ["value", "onContextmenu"]))), 128))]),
|
|
789
795
|
_: 1
|
|
@@ -791,40 +797,40 @@ var Qt = H("login", () => {
|
|
|
791
797
|
_: 1
|
|
792
798
|
}));
|
|
793
799
|
}
|
|
794
|
-
}), [["__scopeId", "data-v-516f6ba1"]]),
|
|
800
|
+
}), [["__scopeId", "data-v-516f6ba1"]]), nn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
795
801
|
__name: "Entry",
|
|
796
802
|
setup(e) {
|
|
797
|
-
let t =
|
|
803
|
+
let t = W(), n = K(), r = q(), i = y(), a = S(() => r.recentRouters.filter((e) => cn(e.name).meta.noCache === !1).map((e) => e.name)), o = Ne("breadcrumb"), s = S(() => (o.value?.items.length ?? 0) > 0), c = S(() => _.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), l = _.isMd, u = Ne("contentRef"), { height: d } = at(u);
|
|
798
804
|
function f({ size: e }) {
|
|
799
805
|
n.drawerSize = e;
|
|
800
806
|
}
|
|
801
|
-
let p =
|
|
807
|
+
let p = S(() => t.meta.fullScreen);
|
|
802
808
|
return (e, t) => {
|
|
803
|
-
let r =
|
|
804
|
-
return p.value ? (
|
|
805
|
-
default:
|
|
809
|
+
let r = ke("RouterView");
|
|
810
|
+
return p.value ? (I(), C(r, { key: 0 }, {
|
|
811
|
+
default: U(({ Component: e }) => [(I(), C(z(e)))]),
|
|
806
812
|
_: 1
|
|
807
|
-
})) : (
|
|
813
|
+
})) : (I(), C(V(Xe), {
|
|
808
814
|
key: 1,
|
|
809
815
|
class: "h-full"
|
|
810
816
|
}, {
|
|
811
|
-
default:
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
visible:
|
|
815
|
-
"onUpdate:visible": t[0] ||= (e) =>
|
|
817
|
+
default: U(() => [
|
|
818
|
+
D(tn),
|
|
819
|
+
D(V(He), {
|
|
820
|
+
visible: V(n).drawerOpen,
|
|
821
|
+
"onUpdate:visible": t[0] ||= (e) => V(n).drawerOpen = e,
|
|
816
822
|
footer: !1,
|
|
817
|
-
mode:
|
|
823
|
+
mode: V(l) ? "overlay" : "push",
|
|
818
824
|
placement: "left",
|
|
819
|
-
"show-overlay":
|
|
820
|
-
size:
|
|
825
|
+
"show-overlay": V(l),
|
|
826
|
+
size: V(l) ? "200px" : `${V(n).drawerSize}px`,
|
|
821
827
|
"size-draggable": {
|
|
822
828
|
max: 450,
|
|
823
829
|
min: 180
|
|
824
830
|
},
|
|
825
831
|
onSizeDragEnd: f
|
|
826
832
|
}, {
|
|
827
|
-
default:
|
|
833
|
+
default: U(() => [D(Ht, { class: "no_drawer_body_padding" })]),
|
|
828
834
|
_: 1
|
|
829
835
|
}, 8, [
|
|
830
836
|
"visible",
|
|
@@ -832,27 +838,27 @@ var Qt = H("login", () => {
|
|
|
832
838
|
"show-overlay",
|
|
833
839
|
"size"
|
|
834
840
|
]),
|
|
835
|
-
|
|
841
|
+
D(V(Be), {
|
|
836
842
|
ref_key: "contentRef",
|
|
837
843
|
ref: u,
|
|
838
844
|
class: "overflow-hidden"
|
|
839
845
|
}, {
|
|
840
|
-
default:
|
|
846
|
+
default: U(() => [D(V(g), {
|
|
841
847
|
always: "",
|
|
842
|
-
"view-class":
|
|
848
|
+
"view-class": we(["relative flex flex-col", {
|
|
843
849
|
...c.value,
|
|
844
850
|
"pt-8": s.value
|
|
845
851
|
}]),
|
|
846
852
|
"view-style": {
|
|
847
853
|
minWidth: "1200px",
|
|
848
|
-
minHeight: `${Math.max(
|
|
854
|
+
minHeight: `${Math.max(V(d), 438)}px`
|
|
849
855
|
}
|
|
850
856
|
}, {
|
|
851
|
-
default:
|
|
852
|
-
default:
|
|
853
|
-
exclude:
|
|
857
|
+
default: U(() => [D(Ut, { ref: "breadcrumb" }, null, 512), D(r, null, {
|
|
858
|
+
default: U(({ Component: e }) => [(I(), C(ve, {
|
|
859
|
+
exclude: V(i).excludeKPname,
|
|
854
860
|
include: a.value
|
|
855
|
-
}, [(
|
|
861
|
+
}, [(I(), C(z(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
856
862
|
_: 1
|
|
857
863
|
})]),
|
|
858
864
|
_: 1
|
|
@@ -864,9 +870,9 @@ var Qt = H("login", () => {
|
|
|
864
870
|
}));
|
|
865
871
|
};
|
|
866
872
|
}
|
|
867
|
-
}), [["__scopeId", "data-v-de5cbc76"]]),
|
|
868
|
-
function
|
|
869
|
-
let n =
|
|
873
|
+
}), [["__scopeId", "data-v-de5cbc76"]]), rn = /* @__PURE__ */ new Set();
|
|
874
|
+
function an(e, t) {
|
|
875
|
+
let n = S(() => typeof e.body == "function" ? e.body(j) : e.body), i = {
|
|
870
876
|
attach: "#app",
|
|
871
877
|
closeOnEscKeydown: !1,
|
|
872
878
|
closeOnOverlayClick: !1,
|
|
@@ -876,26 +882,26 @@ function rn(e, t) {
|
|
|
876
882
|
lazy: !0,
|
|
877
883
|
sizeDraggable: !0,
|
|
878
884
|
...e ?? {},
|
|
879
|
-
body: () =>
|
|
885
|
+
body: () => j(zn, {}, { default: () => n.value })
|
|
880
886
|
}, a, o = {
|
|
881
887
|
...i,
|
|
882
888
|
onClose: (e) => {
|
|
883
|
-
i.onClose?.(e),
|
|
889
|
+
i.onClose?.(e), rn.delete(a);
|
|
884
890
|
}
|
|
885
891
|
};
|
|
886
|
-
return delete o.closeWhenCloseAll, a =
|
|
892
|
+
return delete o.closeWhenCloseAll, a = Ue(o, t ?? r()), i.closeWhenCloseAll && rn.add(a), a;
|
|
887
893
|
}
|
|
888
|
-
var
|
|
889
|
-
return
|
|
894
|
+
var on = function(...e) {
|
|
895
|
+
return an(...e);
|
|
890
896
|
};
|
|
891
|
-
|
|
892
|
-
|
|
897
|
+
on.closeAll = () => {
|
|
898
|
+
rn.forEach((e) => {
|
|
893
899
|
e.hide?.();
|
|
894
900
|
});
|
|
895
901
|
};
|
|
896
902
|
//#endregion
|
|
897
903
|
//#region ../../packages/dlzn-ui/router/index.ts
|
|
898
|
-
function
|
|
904
|
+
function sn() {
|
|
899
905
|
return {
|
|
900
906
|
children: [{
|
|
901
907
|
children: [{
|
|
@@ -923,15 +929,15 @@ function on() {
|
|
|
923
929
|
name: "Home",
|
|
924
930
|
path: "home"
|
|
925
931
|
}],
|
|
926
|
-
component:
|
|
932
|
+
component: nn,
|
|
927
933
|
name: "Index",
|
|
928
934
|
path: "/"
|
|
929
935
|
};
|
|
930
936
|
}
|
|
931
|
-
var
|
|
937
|
+
var Y = ht({
|
|
932
938
|
history: gt(VITE_BASE_URL),
|
|
933
939
|
routes: [
|
|
934
|
-
|
|
940
|
+
sn(),
|
|
935
941
|
{
|
|
936
942
|
component: h["./Login.vue"],
|
|
937
943
|
meta: {
|
|
@@ -975,16 +981,16 @@ var J = ht({
|
|
|
975
981
|
sensitive: !0,
|
|
976
982
|
strict: !0
|
|
977
983
|
});
|
|
978
|
-
|
|
979
|
-
if (e.query._fromLeftTree === "true" && y().add(e.name), !["Login", "Register"].includes(e.name)) return
|
|
984
|
+
Y.beforeEach(async (e) => {
|
|
985
|
+
if (e.query._fromLeftTree === "true" && y().add(e.name), !["Login", "Register"].includes(e.name)) return $t().token === "" ? { name: "Login" } : Bt().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), Y.resolve({
|
|
980
986
|
path: e.path,
|
|
981
987
|
query: e.query
|
|
982
988
|
}));
|
|
983
|
-
}),
|
|
984
|
-
|
|
989
|
+
}), Y.afterEach((e, t, n) => {
|
|
990
|
+
At.closeAll(), on.closeAll();
|
|
985
991
|
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: s } = r;
|
|
986
|
-
document.title = s ||
|
|
987
|
-
let c =
|
|
992
|
+
document.title = s || K().appInfo.appName;
|
|
993
|
+
let c = q();
|
|
988
994
|
if (![
|
|
989
995
|
"Login",
|
|
990
996
|
"NotFound",
|
|
@@ -996,24 +1002,24 @@ J.beforeEach(async (e) => {
|
|
|
996
1002
|
query: e.query
|
|
997
1003
|
});
|
|
998
1004
|
}
|
|
999
|
-
y().remove(i);
|
|
1005
|
+
y().remove(i), VITE_MODE === "development" && (_t(n, mt.aborted) ? m.info("导航被中断") : _t(n, mt.cancelled) ? m.info("导航被取消,因为有一个新的导航") : _t(n, mt.duplicated) && m.info("导航被阻止,因为我们已经在目标位置了"));
|
|
1000
1006
|
});
|
|
1001
|
-
function
|
|
1002
|
-
if (
|
|
1007
|
+
function cn(e) {
|
|
1008
|
+
if (Y.hasRoute(e)) return Y.getRoutes().find((t) => t.name === e);
|
|
1003
1009
|
}
|
|
1004
1010
|
//#endregion
|
|
1005
1011
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
1006
|
-
var
|
|
1007
|
-
function
|
|
1012
|
+
var ln = 15e3, un = "网络错误,请稍后再试";
|
|
1013
|
+
function dn(e, t = !0) {
|
|
1008
1014
|
let n = {};
|
|
1009
1015
|
return Object.keys(e).forEach((r) => {
|
|
1010
1016
|
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !c(e[r]))) && (n[r] = e[r]);
|
|
1011
1017
|
}), n;
|
|
1012
1018
|
}
|
|
1013
|
-
function
|
|
1014
|
-
return new URLSearchParams(
|
|
1019
|
+
function fn(e, t = !0) {
|
|
1020
|
+
return new URLSearchParams(dn(e, t)).toString();
|
|
1015
1021
|
}
|
|
1016
|
-
function
|
|
1022
|
+
function pn(e) {
|
|
1017
1023
|
let { data: t, response: r, useDownload: i } = e;
|
|
1018
1024
|
if (typeof i == "string") f(t, i);
|
|
1019
1025
|
else {
|
|
@@ -1021,12 +1027,12 @@ function dn(e) {
|
|
|
1021
1027
|
e ? f(t, e) : n.error("返回的 response header 没有文件名");
|
|
1022
1028
|
}
|
|
1023
1029
|
}
|
|
1024
|
-
var X =
|
|
1030
|
+
var X = bt({
|
|
1025
1031
|
baseURL: VITE_BASE_URL,
|
|
1026
1032
|
beforeRequest(e) {
|
|
1027
1033
|
e.config.credentials = e.config.credentials ?? "omit";
|
|
1028
1034
|
let [t, ...n] = VITE_API_PREFIX_ARRAY;
|
|
1029
|
-
!e.url.startsWith("http") && !n.some((t) =>
|
|
1035
|
+
!e.url.startsWith("http") && !n.some((t) => Ct.join("/", e.url).startsWith(Ct.join("/", t, "/"))) && (e.url = Ct.join(t, e.url)), e.meta = {
|
|
1030
1036
|
use600Alert: !0,
|
|
1031
1037
|
useDataResult: !0,
|
|
1032
1038
|
useDownload: !1,
|
|
@@ -1043,10 +1049,10 @@ var X = yt({
|
|
|
1043
1049
|
useToken: !e.url.startsWith("http"),
|
|
1044
1050
|
...e.meta ?? {}
|
|
1045
1051
|
};
|
|
1046
|
-
let r =
|
|
1047
|
-
l ||
|
|
1052
|
+
let r = $t(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: l, useLoading: u, useResponseBlob: d, useToken: f } = e.meta;
|
|
1053
|
+
l || K().requestActive(), f && (r.token ? e.config.headers.Authorization = r.token : e.abort()), u !== !1 && i.show(u === !0 ? void 0 : u);
|
|
1048
1054
|
let p = e.config.params;
|
|
1049
|
-
if (typeof p != "string" && (e.config.params =
|
|
1055
|
+
if (typeof p != "string" && (e.config.params = fn(p, o)), a && ft(e.data)) {
|
|
1050
1056
|
let t = {}, n = e.data;
|
|
1051
1057
|
Object.keys(n).forEach((e) => {
|
|
1052
1058
|
c(n[e]) || (t[e] = n[e]);
|
|
@@ -1058,10 +1064,10 @@ var X = yt({
|
|
|
1058
1064
|
t.append(n, e.data[n]);
|
|
1059
1065
|
}), e.data = t;
|
|
1060
1066
|
}
|
|
1061
|
-
e.config.timeout ===
|
|
1067
|
+
e.config.timeout === ln && (s || e.data instanceof FormData || d) && (e.config.timeout = 0);
|
|
1062
1068
|
},
|
|
1063
1069
|
cacheFor: null,
|
|
1064
|
-
requestAdapter:
|
|
1070
|
+
requestAdapter: xt(),
|
|
1065
1071
|
responded: {
|
|
1066
1072
|
onComplete: (e) => {
|
|
1067
1073
|
e.meta.useLoading !== !1 && i.hide();
|
|
@@ -1073,7 +1079,7 @@ var X = yt({
|
|
|
1073
1079
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1074
1080
|
if (t.toLowerCase().includes("timeout")) return n && m.error("请求超时"), Promise.reject(e);
|
|
1075
1081
|
}
|
|
1076
|
-
return n && m.error(
|
|
1082
|
+
return n && m.error(un), Promise.reject(e);
|
|
1077
1083
|
},
|
|
1078
1084
|
onSuccess: async (e, t) => {
|
|
1079
1085
|
if (typeof e == "string") return e;
|
|
@@ -1084,7 +1090,7 @@ var X = yt({
|
|
|
1084
1090
|
403: "当前操作没有权限",
|
|
1085
1091
|
404: "访问资源不存在",
|
|
1086
1092
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1087
|
-
}[h] ??
|
|
1093
|
+
}[h] ?? un;
|
|
1088
1094
|
m.error(e);
|
|
1089
1095
|
}
|
|
1090
1096
|
return Promise.reject(e);
|
|
@@ -1096,7 +1102,7 @@ var X = yt({
|
|
|
1096
1102
|
} catch (e) {
|
|
1097
1103
|
return n.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1098
1104
|
}
|
|
1099
|
-
return i !== !1 &&
|
|
1105
|
+
return i !== !1 && pn({
|
|
1100
1106
|
data: t,
|
|
1101
1107
|
response: e,
|
|
1102
1108
|
useDownload: i
|
|
@@ -1122,21 +1128,21 @@ var X = yt({
|
|
|
1122
1128
|
if (t >= 400) {
|
|
1123
1129
|
if (t === 600) {
|
|
1124
1130
|
if (d(l).then((e) => {
|
|
1125
|
-
|
|
1126
|
-
body: () =>
|
|
1131
|
+
G({
|
|
1132
|
+
body: () => j("div", { innerHTML: e }),
|
|
1127
1133
|
cancelBtn: null
|
|
1128
1134
|
});
|
|
1129
1135
|
}), !o) return g;
|
|
1130
|
-
} else t === 401 && u ?
|
|
1136
|
+
} else t === 401 && u ? Y.push({ name: "Login" }) : a !== !1 && m.error(a === !0 ? l : a);
|
|
1131
1137
|
return Promise.reject(g);
|
|
1132
1138
|
}
|
|
1133
1139
|
{
|
|
1134
|
-
let a =
|
|
1140
|
+
let a = yt.alovaResCodeSuccessCb?.({
|
|
1135
1141
|
code: t,
|
|
1136
1142
|
data: s,
|
|
1137
1143
|
msg: l
|
|
1138
1144
|
});
|
|
1139
|
-
return a === void 0 ? (i !== !1 && (typeof i == "string" ?
|
|
1145
|
+
return a === void 0 ? (i !== !1 && (typeof i == "string" ? pn({
|
|
1140
1146
|
data: s,
|
|
1141
1147
|
response: e,
|
|
1142
1148
|
useDownload: i
|
|
@@ -1147,10 +1153,10 @@ var X = yt({
|
|
|
1147
1153
|
}
|
|
1148
1154
|
},
|
|
1149
1155
|
shareRequest: !1,
|
|
1150
|
-
statesHook:
|
|
1151
|
-
timeout:
|
|
1152
|
-
}),
|
|
1153
|
-
function
|
|
1156
|
+
statesHook: St,
|
|
1157
|
+
timeout: ln
|
|
1158
|
+
}), mn = /* @__PURE__ */ new Map();
|
|
1159
|
+
function hn(e) {
|
|
1154
1160
|
let t = X.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
1155
1161
|
cssClass: e.cssClass,
|
|
1156
1162
|
dictType: e.dictType,
|
|
@@ -1159,42 +1165,42 @@ function pn(e) {
|
|
|
1159
1165
|
value: e.dictValue
|
|
1160
1166
|
})));
|
|
1161
1167
|
e.forEach((e) => {
|
|
1162
|
-
|
|
1168
|
+
mn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
1163
1169
|
});
|
|
1164
1170
|
}
|
|
1165
|
-
var
|
|
1166
|
-
function
|
|
1167
|
-
return
|
|
1171
|
+
var gn = [];
|
|
1172
|
+
function _n(e) {
|
|
1173
|
+
return gn.includes(e) || gn.push(e), new Promise((t) => {
|
|
1168
1174
|
setTimeout(() => {
|
|
1169
|
-
let n =
|
|
1170
|
-
n.length > 0 &&
|
|
1175
|
+
let n = gn.filter((e) => !mn.has(e));
|
|
1176
|
+
n.length > 0 && hn(n), gn.length = 0, mn.get(e).then((e) => {
|
|
1171
1177
|
t(e);
|
|
1172
1178
|
});
|
|
1173
1179
|
});
|
|
1174
1180
|
});
|
|
1175
1181
|
}
|
|
1176
1182
|
var Z = /* @__PURE__ */ new Map();
|
|
1177
|
-
function
|
|
1178
|
-
|
|
1183
|
+
function vn() {
|
|
1184
|
+
gn.length = 0, mn.clear(), Z.clear();
|
|
1179
1185
|
}
|
|
1180
|
-
function
|
|
1181
|
-
let n =
|
|
1186
|
+
function yn(e, t) {
|
|
1187
|
+
let n = bn(e);
|
|
1182
1188
|
return t === void 0 ? p(n) : p(n, t);
|
|
1183
1189
|
}
|
|
1184
|
-
function
|
|
1190
|
+
function bn(e, t) {
|
|
1185
1191
|
let n;
|
|
1186
|
-
return Z.has(e) ? n = Z.get(e) : (n =
|
|
1192
|
+
return Z.has(e) ? n = Z.get(e) : (n = L([]), Z.set(e, n), _n(e).then((e) => {
|
|
1187
1193
|
n.value = e;
|
|
1188
|
-
})),
|
|
1194
|
+
})), S(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1189
1195
|
}
|
|
1190
|
-
function
|
|
1191
|
-
|
|
1196
|
+
function xn(e) {
|
|
1197
|
+
mn.delete(e), Z.has(e) && _n(e).then((t) => {
|
|
1192
1198
|
Z.get(e).value = t;
|
|
1193
1199
|
});
|
|
1194
1200
|
}
|
|
1195
1201
|
//#endregion
|
|
1196
1202
|
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
1197
|
-
var
|
|
1203
|
+
var Sn = /* @__PURE__ */ O({
|
|
1198
1204
|
inheritAttrs: !1,
|
|
1199
1205
|
name: "TCheckboxGroup",
|
|
1200
1206
|
__name: "checkbox-group",
|
|
@@ -1221,17 +1227,17 @@ var bn = /* @__PURE__ */ D({
|
|
|
1221
1227
|
},
|
|
1222
1228
|
emits: ["update:modelValue"],
|
|
1223
1229
|
setup(e, { emit: t }) {
|
|
1224
|
-
let r = e, i = t, a =
|
|
1230
|
+
let r = e, i = t, a = k();
|
|
1225
1231
|
function o(e) {
|
|
1226
1232
|
a.exposed = e ?? {};
|
|
1227
1233
|
}
|
|
1228
|
-
let s =
|
|
1234
|
+
let s = S(() => {
|
|
1229
1235
|
let e;
|
|
1230
|
-
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e =
|
|
1236
|
+
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e = bn(r.dicCode).value) : e = typeof r.options == "string" ? ae(r.options).value : r.options, r.showCheckAll && (e === void 0 ? n.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
1231
1237
|
checkAll: !0,
|
|
1232
1238
|
label: "全选"
|
|
1233
1239
|
})), e;
|
|
1234
|
-
}), u =
|
|
1240
|
+
}), u = S(() => {
|
|
1235
1241
|
if (!Array.isArray(r.modelValue)) n.error("TCheckboxGroup: modelValue must be an array");
|
|
1236
1242
|
else if (s.value !== void 0) {
|
|
1237
1243
|
let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
|
|
@@ -1239,13 +1245,13 @@ var bn = /* @__PURE__ */ D({
|
|
|
1239
1245
|
if (t) return r.modelValue.map((e) => l(e) ? Number(e) : e);
|
|
1240
1246
|
}
|
|
1241
1247
|
return r.modelValue;
|
|
1242
|
-
}), d =
|
|
1248
|
+
}), d = S(() => {
|
|
1243
1249
|
let e = { ...r };
|
|
1244
1250
|
return delete e.dicCode, delete e.showCheckAll, Object.keys(e).forEach((t) => {
|
|
1245
1251
|
e[t] === void 0 && delete e[t];
|
|
1246
1252
|
}), e;
|
|
1247
1253
|
});
|
|
1248
|
-
return (e, t) => (
|
|
1254
|
+
return (e, t) => (I(), C(z(j(V(Re), N(e.$attrs, {
|
|
1249
1255
|
...d.value,
|
|
1250
1256
|
options: s.value,
|
|
1251
1257
|
modelValue: u.value,
|
|
@@ -1255,10 +1261,10 @@ var bn = /* @__PURE__ */ D({
|
|
|
1255
1261
|
ref: o
|
|
1256
1262
|
}), e.$slots))));
|
|
1257
1263
|
}
|
|
1258
|
-
}),
|
|
1264
|
+
}), Cn = /* @__PURE__ */ O({
|
|
1259
1265
|
inheritAttrs: !1,
|
|
1260
1266
|
__name: "cron",
|
|
1261
|
-
props: /*@__PURE__*/
|
|
1267
|
+
props: /*@__PURE__*/ M({
|
|
1262
1268
|
modelValue: {},
|
|
1263
1269
|
adornment: {},
|
|
1264
1270
|
align: {},
|
|
@@ -1306,16 +1312,16 @@ var bn = /* @__PURE__ */ D({
|
|
|
1306
1312
|
}, ce),
|
|
1307
1313
|
emits: ["update:modelValue"],
|
|
1308
1314
|
setup(e, { emit: t }) {
|
|
1309
|
-
let n = e, r = t, i =
|
|
1315
|
+
let n = e, r = t, i = Se("isFormDisabled", S(() => !1)), a = Se("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1310
1316
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1311
1317
|
return {
|
|
1312
1318
|
...n,
|
|
1313
|
-
adornment: { append: () =>
|
|
1319
|
+
adornment: { append: () => j($, {
|
|
1314
1320
|
default: "cron",
|
|
1315
1321
|
onClick: () => {
|
|
1316
|
-
let i =
|
|
1317
|
-
|
|
1318
|
-
body: () =>
|
|
1322
|
+
let i = L(null);
|
|
1323
|
+
G({
|
|
1324
|
+
body: () => j(xe(() => import("../components/cron/src/Picker.mjs")), {
|
|
1319
1325
|
disabled: e,
|
|
1320
1326
|
modelValue: n.modelValue,
|
|
1321
1327
|
onVnodeMounted: (e) => {
|
|
@@ -1337,20 +1343,20 @@ var bn = /* @__PURE__ */ D({
|
|
|
1337
1343
|
variant: "text"
|
|
1338
1344
|
}) }
|
|
1339
1345
|
};
|
|
1340
|
-
}), s =
|
|
1346
|
+
}), s = je(), c = k();
|
|
1341
1347
|
function l(e) {
|
|
1342
1348
|
c.exposed = e ?? {};
|
|
1343
1349
|
}
|
|
1344
|
-
let u =
|
|
1350
|
+
let u = S(() => N(s, {
|
|
1345
1351
|
...o.value,
|
|
1346
1352
|
onChange: (...e) => {
|
|
1347
1353
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1348
1354
|
},
|
|
1349
1355
|
ref: l
|
|
1350
1356
|
}));
|
|
1351
|
-
return (e, t) => (
|
|
1357
|
+
return (e, t) => (I(), C(V(le), F(A(u.value)), null, 16));
|
|
1352
1358
|
}
|
|
1353
|
-
}),
|
|
1359
|
+
}), wn = /* @__PURE__ */ O({
|
|
1354
1360
|
inheritAttrs: !1,
|
|
1355
1361
|
name: "TRadioGroup",
|
|
1356
1362
|
__name: "radio-group",
|
|
@@ -1380,16 +1386,16 @@ var bn = /* @__PURE__ */ D({
|
|
|
1380
1386
|
},
|
|
1381
1387
|
emits: ["update:modelValue"],
|
|
1382
1388
|
setup(e, { emit: t }) {
|
|
1383
|
-
let r = e, i = t, a =
|
|
1389
|
+
let r = e, i = t, a = k();
|
|
1384
1390
|
function o(e) {
|
|
1385
1391
|
a.exposed = e ?? {};
|
|
1386
1392
|
}
|
|
1387
|
-
let s =
|
|
1393
|
+
let s = S(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"), bn(r.dicCode).value) : typeof r.options == "string" ? ae(r.options).value : r.options), d = S(() => {
|
|
1388
1394
|
let e = { ...r };
|
|
1389
1395
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1390
1396
|
e[t] === void 0 && delete e[t];
|
|
1391
1397
|
}), e;
|
|
1392
|
-
}), f =
|
|
1398
|
+
}), f = S(() => {
|
|
1393
1399
|
if (s.value !== void 0 && !c(r.modelValue)) {
|
|
1394
1400
|
let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1395
1401
|
if (e) return u(r.modelValue);
|
|
@@ -1397,18 +1403,18 @@ var bn = /* @__PURE__ */ D({
|
|
|
1397
1403
|
}
|
|
1398
1404
|
return r.modelValue;
|
|
1399
1405
|
});
|
|
1400
|
-
return (e, t) => (
|
|
1406
|
+
return (e, t) => (I(), C(z(j(V($e), N(e.$attrs, {
|
|
1401
1407
|
...d.value,
|
|
1402
1408
|
options: s.value,
|
|
1403
1409
|
modelValue: f.value,
|
|
1404
1410
|
onChange: (...e) => {
|
|
1405
|
-
let [t, ...n] = e, a =
|
|
1411
|
+
let [t, ...n] = e, a = V(c)(t) ? "" : t;
|
|
1406
1412
|
i("update:modelValue", a), r.onChange?.(a, ...n);
|
|
1407
1413
|
},
|
|
1408
1414
|
ref: o
|
|
1409
1415
|
}), e.$slots))));
|
|
1410
1416
|
}
|
|
1411
|
-
}),
|
|
1417
|
+
}), Tn = {
|
|
1412
1418
|
clearable: !0,
|
|
1413
1419
|
disabled: void 0,
|
|
1414
1420
|
filterable: void 0,
|
|
@@ -1429,11 +1435,11 @@ var bn = /* @__PURE__ */ D({
|
|
|
1429
1435
|
}),
|
|
1430
1436
|
showArrow: !0,
|
|
1431
1437
|
showCheckAll: !1
|
|
1432
|
-
},
|
|
1438
|
+
}, En = /* @__PURE__ */ O({
|
|
1433
1439
|
inheritAttrs: !1,
|
|
1434
1440
|
name: "TSelect",
|
|
1435
1441
|
__name: "select",
|
|
1436
|
-
props: /*@__PURE__*/
|
|
1442
|
+
props: /*@__PURE__*/ M({
|
|
1437
1443
|
adornment: {},
|
|
1438
1444
|
dicCode: {},
|
|
1439
1445
|
modelValue: {},
|
|
@@ -1493,19 +1499,19 @@ var bn = /* @__PURE__ */ D({
|
|
|
1493
1499
|
onPopupVisibleChange: { type: Function },
|
|
1494
1500
|
onRemove: { type: Function },
|
|
1495
1501
|
onSearch: { type: Function }
|
|
1496
|
-
},
|
|
1502
|
+
}, Tn),
|
|
1497
1503
|
setup(e) {
|
|
1498
|
-
let t = e, r =
|
|
1504
|
+
let t = e, r = k();
|
|
1499
1505
|
function i(e) {
|
|
1500
1506
|
r.exposed = e ?? {};
|
|
1501
1507
|
}
|
|
1502
|
-
let a =
|
|
1508
|
+
let a = S(() => {
|
|
1503
1509
|
let e;
|
|
1504
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ? ae(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e =
|
|
1510
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? ae(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e = bn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? n.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
1505
1511
|
checkAll: !0,
|
|
1506
1512
|
[t.keys?.label ?? "label"]: "全选"
|
|
1507
1513
|
}) : n.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
1508
|
-
}), o =
|
|
1514
|
+
}), o = S(() => {
|
|
1509
1515
|
if (a.value !== void 0) {
|
|
1510
1516
|
let e = a.value.flatMap((e) => e.children ?? [e]), n = t.keys?.value ?? "value", r = e.every((e) => typeof e[n] == "string"), i = e.every((e) => typeof e[n] == "number");
|
|
1511
1517
|
if (t.multiple) {
|
|
@@ -1517,7 +1523,7 @@ var bn = /* @__PURE__ */ D({
|
|
|
1517
1523
|
else if (i) return l(t.modelValue) ? Number(t.modelValue) : t.modelValue;
|
|
1518
1524
|
}
|
|
1519
1525
|
return t.modelValue;
|
|
1520
|
-
}), s =
|
|
1526
|
+
}), s = S(() => {
|
|
1521
1527
|
let e = {
|
|
1522
1528
|
...t,
|
|
1523
1529
|
filterable: t.filterable ?? a.value.length > 8
|
|
@@ -1525,15 +1531,15 @@ var bn = /* @__PURE__ */ D({
|
|
|
1525
1531
|
return delete e.dicCode, delete e.showCheckAll, delete e.adornment, Object.keys(e).forEach((t) => {
|
|
1526
1532
|
e[t] === void 0 && delete e[t];
|
|
1527
1533
|
}), e;
|
|
1528
|
-
}), d =
|
|
1529
|
-
|
|
1530
|
-
|
|
1534
|
+
}), d = L(0);
|
|
1535
|
+
Te(() => {
|
|
1536
|
+
ut(r.exposed.$el, () => {
|
|
1531
1537
|
d.value = r.exposed.$el.offsetWidth;
|
|
1532
1538
|
}, { box: "border-box" });
|
|
1533
1539
|
});
|
|
1534
|
-
let f =
|
|
1540
|
+
let f = S(() => {
|
|
1535
1541
|
if (s.value.scroll?.type === "virtual" && a.value.length > (s.value.scroll?.threshold ?? 150)) return "300px";
|
|
1536
|
-
}), p =
|
|
1542
|
+
}), p = S(() => ({
|
|
1537
1543
|
...s.value,
|
|
1538
1544
|
modelValue: o.value,
|
|
1539
1545
|
onChange: (...e) => {
|
|
@@ -1551,16 +1557,16 @@ var bn = /* @__PURE__ */ D({
|
|
|
1551
1557
|
})
|
|
1552
1558
|
},
|
|
1553
1559
|
ref: i
|
|
1554
|
-
})), m =
|
|
1555
|
-
return (t, n) => e.adornment ? (
|
|
1560
|
+
})), m = Ye;
|
|
1561
|
+
return (t, n) => e.adornment ? (I(), C(z(j(V(m), t.$attrs, {
|
|
1556
1562
|
...e.adornment,
|
|
1557
|
-
default: () =>
|
|
1558
|
-
})), { key: 0 })) : (
|
|
1563
|
+
default: () => j(V(et), p.value, t.$slots)
|
|
1564
|
+
})), { key: 0 })) : (I(), C(z(j(V(et), N(t.$attrs, p.value), t.$slots)), { key: 1 }));
|
|
1559
1565
|
}
|
|
1560
|
-
}),
|
|
1566
|
+
}), Dn = /* @__PURE__ */ O({
|
|
1561
1567
|
inheritAttrs: !1,
|
|
1562
1568
|
__name: "select-sys-user",
|
|
1563
|
-
props: /*@__PURE__*/
|
|
1569
|
+
props: /*@__PURE__*/ M({
|
|
1564
1570
|
modelValue: {},
|
|
1565
1571
|
adornment: {},
|
|
1566
1572
|
autoWidth: { type: Boolean },
|
|
@@ -1602,16 +1608,16 @@ var bn = /* @__PURE__ */ D({
|
|
|
1602
1608
|
}, pe),
|
|
1603
1609
|
emits: ["update:modelValue"],
|
|
1604
1610
|
setup(e, { emit: t }) {
|
|
1605
|
-
let n = e, r = t, i =
|
|
1611
|
+
let n = e, r = t, i = Se("isFormDisabled", S(() => !1)), a = Se("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1606
1612
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1607
1613
|
return {
|
|
1608
1614
|
...n,
|
|
1609
|
-
adornment: e || t ? void 0 : { append: () =>
|
|
1615
|
+
adornment: e || t ? void 0 : { append: () => j($, {
|
|
1610
1616
|
default: "选择用户",
|
|
1611
1617
|
onClick: () => {
|
|
1612
|
-
let e =
|
|
1613
|
-
|
|
1614
|
-
body: () =>
|
|
1618
|
+
let e = L(null);
|
|
1619
|
+
G({
|
|
1620
|
+
body: () => j(xe(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
1615
1621
|
max: n.max,
|
|
1616
1622
|
modelValue: n.modelValue,
|
|
1617
1623
|
onVnodeMounted: (t) => {
|
|
@@ -1632,11 +1638,11 @@ var bn = /* @__PURE__ */ D({
|
|
|
1632
1638
|
variant: "text"
|
|
1633
1639
|
}) }
|
|
1634
1640
|
};
|
|
1635
|
-
}), s =
|
|
1641
|
+
}), s = je(), c = k();
|
|
1636
1642
|
function l(e) {
|
|
1637
1643
|
c.exposed = e ?? {};
|
|
1638
1644
|
}
|
|
1639
|
-
let u =
|
|
1645
|
+
let u = S(() => N(s, {
|
|
1640
1646
|
...o.value,
|
|
1641
1647
|
inputProps: {
|
|
1642
1648
|
readonly: !0,
|
|
@@ -1648,19 +1654,19 @@ var bn = /* @__PURE__ */ D({
|
|
|
1648
1654
|
placeholder: "请选择用户",
|
|
1649
1655
|
ref: l
|
|
1650
1656
|
}));
|
|
1651
|
-
return (e, t) => (
|
|
1652
|
-
tag:
|
|
1657
|
+
return (e, t) => (I(), C(V(me), F(A(u.value)), {
|
|
1658
|
+
tag: U(({ value: e }) => [E(B(V(Xt)(e).value?.userName), 1)]),
|
|
1653
1659
|
_: 1
|
|
1654
1660
|
}, 16));
|
|
1655
1661
|
}
|
|
1656
|
-
}),
|
|
1662
|
+
}), On = {
|
|
1657
1663
|
checkable: !1,
|
|
1658
1664
|
disabled: void 0,
|
|
1659
1665
|
expandOnClickNode: void 0,
|
|
1660
1666
|
hover: !0,
|
|
1661
1667
|
icon: () => (e, t) => {
|
|
1662
1668
|
let n = "";
|
|
1663
|
-
return t.getChildren && t.getChildren(!1) && (t.expanded ? (n = "cuida:caret-down-outline", t.loading && (n = "line-md:loading-twotone-loop")) : n = "cuida:caret-right-outline"), n === "" ? null :
|
|
1669
|
+
return t.getChildren && t.getChildren(!1) && (t.expanded ? (n = "cuida:caret-down-outline", t.loading && (n = "line-md:loading-twotone-loop")) : n = "cuida:caret-right-outline"), n === "" ? null : j($, {
|
|
1664
1670
|
icon: n,
|
|
1665
1671
|
shape: "circle",
|
|
1666
1672
|
size: "small",
|
|
@@ -1672,11 +1678,11 @@ var bn = /* @__PURE__ */ D({
|
|
|
1672
1678
|
line: !0,
|
|
1673
1679
|
transition: !0,
|
|
1674
1680
|
valueMode: "all"
|
|
1675
|
-
},
|
|
1681
|
+
}, kn = /* @__PURE__ */ O({
|
|
1676
1682
|
inheritAttrs: !1,
|
|
1677
1683
|
name: "TTree",
|
|
1678
1684
|
__name: "tree",
|
|
1679
|
-
props: /*@__PURE__*/
|
|
1685
|
+
props: /*@__PURE__*/ M({
|
|
1680
1686
|
icon: { type: [Function, Boolean] },
|
|
1681
1687
|
"onUpdate:actived": { type: Function },
|
|
1682
1688
|
"onUpdate:expanded": { type: Function },
|
|
@@ -1729,23 +1735,23 @@ var bn = /* @__PURE__ */ D({
|
|
|
1729
1735
|
onLoad: { type: Function },
|
|
1730
1736
|
onScroll: { type: Function },
|
|
1731
1737
|
treeStore: {}
|
|
1732
|
-
},
|
|
1738
|
+
}, On),
|
|
1733
1739
|
setup(e, { expose: t }) {
|
|
1734
|
-
let n = e, r =
|
|
1740
|
+
let n = e, r = Me(), i = S(() => {
|
|
1735
1741
|
let e = { ...n };
|
|
1736
1742
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1737
1743
|
e[t] === void 0 && delete e[t];
|
|
1738
1744
|
}), e;
|
|
1739
|
-
}), a =
|
|
1745
|
+
}), a = k();
|
|
1740
1746
|
function o(e) {
|
|
1741
1747
|
a.exposed = e ?? {};
|
|
1742
1748
|
}
|
|
1743
|
-
return t({}), (e, t) => (
|
|
1749
|
+
return t({}), (e, t) => (I(), C(z(j(V(tt), N(e.$attrs, {
|
|
1744
1750
|
...i.value,
|
|
1745
1751
|
ref: o
|
|
1746
1752
|
}), e.$slots))));
|
|
1747
1753
|
}
|
|
1748
|
-
}),
|
|
1754
|
+
}), An = /* @__PURE__ */ O({
|
|
1749
1755
|
inheritAttrs: !1,
|
|
1750
1756
|
name: "TTreeSelect",
|
|
1751
1757
|
__name: "tree-select",
|
|
@@ -1812,30 +1818,30 @@ var bn = /* @__PURE__ */ D({
|
|
|
1812
1818
|
onSearch: {}
|
|
1813
1819
|
},
|
|
1814
1820
|
setup(e) {
|
|
1815
|
-
let t = e, n =
|
|
1821
|
+
let t = e, n = S(() => typeof t.data == "string" ? ae(t.data).value : t.data), r = S(() => {
|
|
1816
1822
|
let e = { ...t };
|
|
1817
1823
|
return e.selectInputProps = {
|
|
1818
1824
|
minCollapsedNum: 2,
|
|
1819
1825
|
...e.selectInputProps ?? {}
|
|
1820
1826
|
}, e.treeProps = {
|
|
1821
|
-
...
|
|
1827
|
+
...On,
|
|
1822
1828
|
checkable: !!t.multiple,
|
|
1823
1829
|
expandOnClickNode: !!t.multiple,
|
|
1824
|
-
icon:
|
|
1830
|
+
icon: On.icon(),
|
|
1825
1831
|
...e.treeProps ?? {}
|
|
1826
1832
|
}, Object.keys(e).forEach((t) => {
|
|
1827
1833
|
e[t] === void 0 && delete e[t];
|
|
1828
1834
|
}), e;
|
|
1829
|
-
}), i =
|
|
1835
|
+
}), i = k();
|
|
1830
1836
|
function a(e) {
|
|
1831
1837
|
i.exposed = e ?? {};
|
|
1832
1838
|
}
|
|
1833
|
-
let o =
|
|
1834
|
-
return
|
|
1835
|
-
|
|
1839
|
+
let o = L(0);
|
|
1840
|
+
return Te(() => {
|
|
1841
|
+
ut(i.exposed.$el, () => {
|
|
1836
1842
|
o.value = i.exposed.$el.offsetWidth;
|
|
1837
1843
|
}, { box: "border-box" });
|
|
1838
|
-
}), (e, t) => (
|
|
1844
|
+
}), (e, t) => (I(), C(z(j(V(nt), N(e.$attrs, {
|
|
1839
1845
|
...r.value,
|
|
1840
1846
|
data: n.value,
|
|
1841
1847
|
ref: a,
|
|
@@ -1849,10 +1855,10 @@ var bn = /* @__PURE__ */ D({
|
|
|
1849
1855
|
}
|
|
1850
1856
|
}), e.$slots))));
|
|
1851
1857
|
}
|
|
1852
|
-
}),
|
|
1858
|
+
}), jn = ".xlsx,.xls", Mn = { class: "flex items-center" }, Nn = {
|
|
1853
1859
|
key: 1,
|
|
1854
1860
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1855
|
-
},
|
|
1861
|
+
}, Pn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
1856
1862
|
inheritAttrs: !1,
|
|
1857
1863
|
name: "TUpload",
|
|
1858
1864
|
__name: "upload",
|
|
@@ -1861,7 +1867,7 @@ var bn = /* @__PURE__ */ D({
|
|
|
1861
1867
|
"onUpdate:modelValue": {},
|
|
1862
1868
|
requestMethod: {},
|
|
1863
1869
|
abridgeName: {},
|
|
1864
|
-
accept: { default:
|
|
1870
|
+
accept: { default: jn },
|
|
1865
1871
|
allowUploadDuplicateFile: { type: Boolean },
|
|
1866
1872
|
autoUpload: { type: Boolean },
|
|
1867
1873
|
beforeAllFilesUpload: {},
|
|
@@ -1921,7 +1927,7 @@ var bn = /* @__PURE__ */ D({
|
|
|
1921
1927
|
onWaitingUploadFilesChange: {}
|
|
1922
1928
|
},
|
|
1923
1929
|
setup(e, { expose: t }) {
|
|
1924
|
-
let n = e, r =
|
|
1930
|
+
let n = e, r = S(() => {
|
|
1925
1931
|
if (n.requestMethod !== void 0) return (e) => new Promise((t) => {
|
|
1926
1932
|
typeof n.requestMethod == "function" ? n.requestMethod(e).then((e) => {
|
|
1927
1933
|
t({
|
|
@@ -1954,48 +1960,48 @@ var bn = /* @__PURE__ */ D({
|
|
|
1954
1960
|
function i() {
|
|
1955
1961
|
typeof n.downloadTemplate == "string" ? f(n.downloadTemplate) : n.downloadTemplate.send();
|
|
1956
1962
|
}
|
|
1957
|
-
let a =
|
|
1963
|
+
let a = S(() => {
|
|
1958
1964
|
let e = { ...n };
|
|
1959
1965
|
return ["image", "image-flow"].includes(e.theme) && (e.accept = e.accept === ".xlsx,.xls" ? "image/*" : e.accept), Object.keys(e).forEach((t) => {
|
|
1960
1966
|
e[t] === void 0 && delete e[t];
|
|
1961
1967
|
}), delete e.downloadTemplate, e.theme === "file" && delete e.tips, e;
|
|
1962
|
-
}), o =
|
|
1968
|
+
}), o = k();
|
|
1963
1969
|
function s(e) {
|
|
1964
1970
|
o.exposed = e ?? {};
|
|
1965
1971
|
}
|
|
1966
|
-
return t({}), (t, o) => (
|
|
1972
|
+
return t({}), (t, o) => (I(), C(z(j(V(rt), N(t.$attrs, {
|
|
1967
1973
|
...a.value,
|
|
1968
1974
|
requestMethod: r.value,
|
|
1969
1975
|
ref: s
|
|
1970
|
-
}, { class: a.value.theme }))), null,
|
|
1976
|
+
}, { class: a.value.theme }))), null, be({ _: 2 }, [R(Object.keys(t.$slots), (e) => ({
|
|
1971
1977
|
name: e,
|
|
1972
|
-
fn:
|
|
1978
|
+
fn: U((n) => [Oe(t.$slots, e, F(A(n)), void 0, !0)])
|
|
1973
1979
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
1974
1980
|
name: "trigger",
|
|
1975
|
-
fn:
|
|
1976
|
-
|
|
1977
|
-
default:
|
|
1981
|
+
fn: U(({ files: t }) => [ye("div", Mn, [
|
|
1982
|
+
D(V($), { theme: "primary" }, {
|
|
1983
|
+
default: U(() => [E(B(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
1978
1984
|
_: 2
|
|
1979
1985
|
}, 1024),
|
|
1980
|
-
e.downloadTemplate ? (
|
|
1986
|
+
e.downloadTemplate ? (I(), C(V($), {
|
|
1981
1987
|
key: 0,
|
|
1982
1988
|
theme: "primary",
|
|
1983
1989
|
variant: "outline",
|
|
1984
|
-
onClick:
|
|
1990
|
+
onClick: Pe(i, ["stop"])
|
|
1985
1991
|
}, {
|
|
1986
|
-
default:
|
|
1992
|
+
default: U(() => [...o[0] ||= [E("下载模板", -1)]]),
|
|
1987
1993
|
_: 1
|
|
1988
|
-
})) :
|
|
1989
|
-
n.tips ? (
|
|
1994
|
+
})) : w("v-if", !0),
|
|
1995
|
+
n.tips ? (I(), T("span", Nn, B(n.tips), 1)) : w("v-if", !0)
|
|
1990
1996
|
])]),
|
|
1991
1997
|
key: "0"
|
|
1992
1998
|
} : void 0]), 1024));
|
|
1993
1999
|
}
|
|
1994
|
-
}), [["__scopeId", "data-v-51889a3b"]]),
|
|
2000
|
+
}), [["__scopeId", "data-v-51889a3b"]]), Fn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
1995
2001
|
inheritAttrs: !1,
|
|
1996
2002
|
name: "TForm",
|
|
1997
2003
|
__name: "form",
|
|
1998
|
-
props: /*@__PURE__*/
|
|
2004
|
+
props: /*@__PURE__*/ M({
|
|
1999
2005
|
autoLabelWidth: { type: Boolean },
|
|
2000
2006
|
data: {},
|
|
2001
2007
|
items: {},
|
|
@@ -2019,9 +2025,9 @@ var bn = /* @__PURE__ */ D({
|
|
|
2019
2025
|
onReset: { type: Function },
|
|
2020
2026
|
onSubmit: { type: Function },
|
|
2021
2027
|
onValidate: { type: Function }
|
|
2022
|
-
},
|
|
2028
|
+
}, Et),
|
|
2023
2029
|
setup(e, { expose: t }) {
|
|
2024
|
-
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } =
|
|
2030
|
+
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = yt, s = k(), l = L(null), u = S(() => r.items.map((e) => {
|
|
2025
2031
|
if (typeof e.__others == "function") {
|
|
2026
2032
|
let t = {
|
|
2027
2033
|
...e,
|
|
@@ -2061,34 +2067,34 @@ var bn = /* @__PURE__ */ D({
|
|
|
2061
2067
|
}
|
|
2062
2068
|
});
|
|
2063
2069
|
}
|
|
2064
|
-
|
|
2070
|
+
H(u, d, {
|
|
2065
2071
|
deep: 2,
|
|
2066
2072
|
immediate: !0
|
|
2067
|
-
}),
|
|
2073
|
+
}), H(() => r.data, () => {
|
|
2068
2074
|
n.error("TForm: data is changed");
|
|
2069
2075
|
});
|
|
2070
2076
|
let f = /* @__PURE__ */ new Map(), p = {
|
|
2071
2077
|
TCheckbox: a,
|
|
2072
|
-
TCheckboxGroup:
|
|
2078
|
+
TCheckboxGroup: Sn,
|
|
2073
2079
|
TColorPicker: se,
|
|
2074
|
-
TCron:
|
|
2080
|
+
TCron: Cn,
|
|
2075
2081
|
TDatePicker: ue,
|
|
2076
2082
|
TInput: le,
|
|
2077
2083
|
TInputNumber: de,
|
|
2078
|
-
TRadioGroup:
|
|
2084
|
+
TRadioGroup: wn,
|
|
2079
2085
|
TRangeInput: fe,
|
|
2080
|
-
TSelect:
|
|
2081
|
-
TSelectSysUser:
|
|
2086
|
+
TSelect: En,
|
|
2087
|
+
TSelectSysUser: Dn,
|
|
2082
2088
|
TSlider: he,
|
|
2083
2089
|
TSwitch: ge,
|
|
2084
2090
|
TTagInput: me,
|
|
2085
2091
|
TTextarea: _e,
|
|
2086
|
-
TTree:
|
|
2087
|
-
TTreeSelect:
|
|
2088
|
-
TUpload:
|
|
2092
|
+
TTree: kn,
|
|
2093
|
+
TTreeSelect: An,
|
|
2094
|
+
TUpload: Pn
|
|
2089
2095
|
};
|
|
2090
2096
|
function h(e) {
|
|
2091
|
-
return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e,
|
|
2097
|
+
return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e, xe(o.get(e))), f.get(e)) : p[e] : le;
|
|
2092
2098
|
}
|
|
2093
2099
|
function g(e) {
|
|
2094
2100
|
let t = {};
|
|
@@ -2118,7 +2124,7 @@ var bn = /* @__PURE__ */ D({
|
|
|
2118
2124
|
whitespace: !0
|
|
2119
2125
|
}), t;
|
|
2120
2126
|
}
|
|
2121
|
-
let v =
|
|
2127
|
+
let v = S(() => {
|
|
2122
2128
|
let e = { ...r };
|
|
2123
2129
|
if (e.rules !== void 0) {
|
|
2124
2130
|
let t = {};
|
|
@@ -2168,11 +2174,11 @@ var bn = /* @__PURE__ */ D({
|
|
|
2168
2174
|
if (!t.clearValidate._alreadyReplace) {
|
|
2169
2175
|
let e = t.clearValidate;
|
|
2170
2176
|
t.clearValidate = (...t) => {
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2177
|
+
P(() => {
|
|
2178
|
+
P(() => {
|
|
2179
|
+
P(() => {
|
|
2180
|
+
P(() => {
|
|
2181
|
+
P(() => {
|
|
2176
2182
|
e(...t);
|
|
2177
2183
|
});
|
|
2178
2184
|
});
|
|
@@ -2191,16 +2197,16 @@ var bn = /* @__PURE__ */ D({
|
|
|
2191
2197
|
let t = e ?? {};
|
|
2192
2198
|
l.value = t, s.exposed = t;
|
|
2193
2199
|
}
|
|
2194
|
-
let b =
|
|
2195
|
-
|
|
2196
|
-
b.value = s.exposed.$el.getElementsByClassName("t-form__label"), te(),
|
|
2200
|
+
let b = Ae();
|
|
2201
|
+
Te(() => {
|
|
2202
|
+
b.value = s.exposed.$el.getElementsByClassName("t-form__label"), te(), lt(s.exposed.$el, () => {
|
|
2197
2203
|
te();
|
|
2198
2204
|
}, {
|
|
2199
2205
|
attributeFilter: ["class"],
|
|
2200
2206
|
characterData: !0,
|
|
2201
2207
|
childList: !0,
|
|
2202
2208
|
subtree: !0
|
|
2203
|
-
}),
|
|
2209
|
+
}), ut(s.exposed.$el, () => {
|
|
2204
2210
|
te();
|
|
2205
2211
|
});
|
|
2206
2212
|
});
|
|
@@ -2216,12 +2222,12 @@ var bn = /* @__PURE__ */ D({
|
|
|
2216
2222
|
e.style.minWidth = `${t}px`;
|
|
2217
2223
|
});
|
|
2218
2224
|
}
|
|
2219
|
-
return
|
|
2225
|
+
return Ee("formData", r.data), Ee("formExposed", l), Ee("isFormDisabled", S(() => r.disabled)), Ee("isFormReadonly", S(() => r.readonly)), t({}), (t, n) => (I(), T(x, null, [w(" eslint-disable vue/no-mutating-props "), (I(), C(z(V(Ge)), N(N(t.$attrs, {
|
|
2220
2226
|
...v.value,
|
|
2221
2227
|
ref: ee
|
|
2222
2228
|
}), { "label-width": "fit-content" }), {
|
|
2223
|
-
default:
|
|
2224
|
-
default:
|
|
2229
|
+
default: U(() => [(I(!0), T(x, null, R(u.value.filter((e) => e.show !== !1), (n) => (I(), C(V(Ke), N({ key: n.model ?? n.slot }, { ref_for: !0 }, N({ ..._(n) }, { class: { no_label_item: V(c)(n._label) } }), { name: n.model }), {
|
|
2230
|
+
default: U(() => [n.slot ? Oe(t.$slots, n.slot, {}, void 0, !0, 0) : (I(), C(z(h(n.component)), N({
|
|
2225
2231
|
key: 1,
|
|
2226
2232
|
modelValue: e.data[n.model],
|
|
2227
2233
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
@@ -2231,14 +2237,14 @@ var bn = /* @__PURE__ */ D({
|
|
|
2231
2237
|
_: 3
|
|
2232
2238
|
}, 16))], 2112));
|
|
2233
2239
|
}
|
|
2234
|
-
}), [["__scopeId", "data-v-d3f924b4"]]),
|
|
2240
|
+
}), [["__scopeId", "data-v-d3f924b4"]]), In = /* @__PURE__ */ O({
|
|
2235
2241
|
__name: "ResetPwd",
|
|
2236
2242
|
props: { showFooter: {
|
|
2237
2243
|
type: Boolean,
|
|
2238
2244
|
default: !0
|
|
2239
2245
|
} },
|
|
2240
2246
|
setup(e, { expose: t }) {
|
|
2241
|
-
let n =
|
|
2247
|
+
let n = W(), r = [
|
|
2242
2248
|
{
|
|
2243
2249
|
_label: "旧密码",
|
|
2244
2250
|
_required: !0,
|
|
@@ -2269,9 +2275,9 @@ var bn = /* @__PURE__ */ D({
|
|
|
2269
2275
|
type: "password"
|
|
2270
2276
|
},
|
|
2271
2277
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
2272
|
-
], i =
|
|
2278
|
+
], i = Ne("form");
|
|
2273
2279
|
function a() {
|
|
2274
|
-
|
|
2280
|
+
q().close(n.name);
|
|
2275
2281
|
}
|
|
2276
2282
|
async function c() {
|
|
2277
2283
|
let e = await i.value.validate();
|
|
@@ -2284,23 +2290,23 @@ var bn = /* @__PURE__ */ D({
|
|
|
2284
2290
|
newPassword: e.newPassword,
|
|
2285
2291
|
oldPassword: e.oldPassword
|
|
2286
2292
|
}
|
|
2287
|
-
}),
|
|
2293
|
+
}), $t().logout();
|
|
2288
2294
|
}
|
|
2289
|
-
return t({ handleSubmit: c }), (e, t) => (
|
|
2295
|
+
return t({ handleSubmit: c }), (e, t) => (I(), C(V(Fn), {
|
|
2290
2296
|
ref: "form",
|
|
2291
2297
|
items: r,
|
|
2292
2298
|
"label-align": "right",
|
|
2293
2299
|
layout: "vertical"
|
|
2294
2300
|
}, {
|
|
2295
|
-
footer:
|
|
2296
|
-
default:
|
|
2301
|
+
footer: U(() => [D(V($), { onClick: c }, {
|
|
2302
|
+
default: U(() => [...t[0] ||= [E("保存", -1)]]),
|
|
2297
2303
|
_: 1
|
|
2298
|
-
}),
|
|
2304
|
+
}), D(V($), {
|
|
2299
2305
|
class: "ml-4!",
|
|
2300
2306
|
theme: "default",
|
|
2301
2307
|
onClick: a
|
|
2302
2308
|
}, {
|
|
2303
|
-
default:
|
|
2309
|
+
default: U(() => [...t[1] ||= [E("关闭", -1)]]),
|
|
2304
2310
|
_: 1
|
|
2305
2311
|
})]),
|
|
2306
2312
|
_: 1
|
|
@@ -2309,34 +2315,34 @@ var bn = /* @__PURE__ */ D({
|
|
|
2309
2315
|
});
|
|
2310
2316
|
//#endregion
|
|
2311
2317
|
//#region ../../packages/dlzn-ui/store/modules/user.ts
|
|
2312
|
-
function
|
|
2318
|
+
function Ln() {
|
|
2313
2319
|
return X.Get("getInfo", { meta: {
|
|
2314
2320
|
useFailMsg: "获取用户信息失败",
|
|
2315
2321
|
useLoading: "正在获取用户信息..."
|
|
2316
2322
|
} });
|
|
2317
2323
|
}
|
|
2318
|
-
var
|
|
2324
|
+
var Rn = {
|
|
2319
2325
|
admin: !1,
|
|
2320
2326
|
dept: { deptName: "" },
|
|
2321
2327
|
needChangePwd: 0,
|
|
2322
2328
|
nickName: "",
|
|
2323
2329
|
userId: "",
|
|
2324
2330
|
userName: ""
|
|
2325
|
-
}, Q =
|
|
2326
|
-
let e =
|
|
2331
|
+
}, Q = pt("user", () => {
|
|
2332
|
+
let e = L(dt(Rn)), t = L([]), n = L([]);
|
|
2327
2333
|
function r() {
|
|
2328
|
-
e.value =
|
|
2334
|
+
e.value = dt(Rn), t.value = [], n.value = [];
|
|
2329
2335
|
}
|
|
2330
|
-
let i =
|
|
2336
|
+
let i = S(() => e.value.admin), a = L("");
|
|
2331
2337
|
async function o(r = !0) {
|
|
2332
|
-
let i = await
|
|
2333
|
-
e.value = i.user, a.value !== e.value.userId &&
|
|
2338
|
+
let i = await Ln();
|
|
2339
|
+
e.value = i.user, a.value !== e.value.userId && q().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await Bt().getRouters();
|
|
2334
2340
|
}
|
|
2335
|
-
|
|
2336
|
-
e === 1 && VITE_FORCE_PWD_CHANGE &&
|
|
2337
|
-
let e =
|
|
2338
|
-
|
|
2339
|
-
body: () =>
|
|
2341
|
+
H(() => e.value.needChangePwd, (e) => {
|
|
2342
|
+
e === 1 && VITE_FORCE_PWD_CHANGE && P(() => {
|
|
2343
|
+
let e = L(null);
|
|
2344
|
+
G({
|
|
2345
|
+
body: () => j(In, {
|
|
2340
2346
|
labelAlign: "top",
|
|
2341
2347
|
ref: e,
|
|
2342
2348
|
showFooter: !1
|
|
@@ -2367,11 +2373,11 @@ var In = {
|
|
|
2367
2373
|
roles: n,
|
|
2368
2374
|
userInfo: e
|
|
2369
2375
|
};
|
|
2370
|
-
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ b(/* @__PURE__ */
|
|
2376
|
+
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
2371
2377
|
inheritAttrs: !1,
|
|
2372
2378
|
name: "TButton",
|
|
2373
2379
|
__name: "button",
|
|
2374
|
-
props: /*@__PURE__*/
|
|
2380
|
+
props: /*@__PURE__*/ M({
|
|
2375
2381
|
autoIcon: { type: Boolean },
|
|
2376
2382
|
autoLoading: { type: Boolean },
|
|
2377
2383
|
autoTheme: { type: Boolean },
|
|
@@ -2408,9 +2414,9 @@ var In = {
|
|
|
2408
2414
|
Object,
|
|
2409
2415
|
Array
|
|
2410
2416
|
] }
|
|
2411
|
-
},
|
|
2417
|
+
}, Tt),
|
|
2412
2418
|
setup(n) {
|
|
2413
|
-
let r = n, a =
|
|
2419
|
+
let r = n, a = L("");
|
|
2414
2420
|
function o() {
|
|
2415
2421
|
if (!r.autoTheme || a.value.trim() === "") return {};
|
|
2416
2422
|
let e = /* @__PURE__ */ new Map([
|
|
@@ -2432,17 +2438,17 @@ var In = {
|
|
|
2432
2438
|
}
|
|
2433
2439
|
return t;
|
|
2434
2440
|
}
|
|
2435
|
-
let s =
|
|
2436
|
-
|
|
2441
|
+
let s = L(!1), c = i.isLoading, l = L(null), { focused: u } = ct(l), d, f;
|
|
2442
|
+
H(c, (e) => {
|
|
2437
2443
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2438
2444
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
2439
2445
|
}, 150)) : d === void 0 ? f = setTimeout(() => {
|
|
2440
2446
|
s.value = !1;
|
|
2441
2447
|
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
2442
|
-
}, { immediate: !0 }),
|
|
2448
|
+
}, { immediate: !0 }), H(u, (e) => {
|
|
2443
2449
|
e && c.value && (s.value = !0);
|
|
2444
2450
|
});
|
|
2445
|
-
let p =
|
|
2451
|
+
let p = S(() => r.loading === void 0 ? r.autoLoading ? s.value : !1 : r.loading), m = S(() => {
|
|
2446
2452
|
let e = {
|
|
2447
2453
|
...r,
|
|
2448
2454
|
...o(),
|
|
@@ -2451,7 +2457,7 @@ var In = {
|
|
|
2451
2457
|
return Object.keys(e).forEach((t) => {
|
|
2452
2458
|
e[t] === void 0 && delete e[t];
|
|
2453
2459
|
}), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
|
|
2454
|
-
}), h =
|
|
2460
|
+
}), h = k();
|
|
2455
2461
|
function g(e) {
|
|
2456
2462
|
let t = e ?? {};
|
|
2457
2463
|
h.exposed = t, l.value = t.$el;
|
|
@@ -2459,7 +2465,7 @@ var In = {
|
|
|
2459
2465
|
function _() {
|
|
2460
2466
|
a.value = l.value?.textContent ?? "";
|
|
2461
2467
|
}
|
|
2462
|
-
let v =
|
|
2468
|
+
let v = S(() => {
|
|
2463
2469
|
if (!r.autoIcon || a.value.trim() === "") return;
|
|
2464
2470
|
let e = {
|
|
2465
2471
|
"mdi:plus": [
|
|
@@ -2524,10 +2530,10 @@ var In = {
|
|
|
2524
2530
|
break;
|
|
2525
2531
|
}
|
|
2526
2532
|
if (t !== void 0) return t;
|
|
2527
|
-
}), y =
|
|
2533
|
+
}), y = je(), ee = S(() => N(y, {
|
|
2528
2534
|
...m.value,
|
|
2529
2535
|
ref: g
|
|
2530
|
-
}, { class: "flex-shrink-0" })), b =
|
|
2536
|
+
}, { class: "flex-shrink-0" })), b = S(() => {
|
|
2531
2537
|
if (r.popconfirm) return {
|
|
2532
2538
|
...r.popconfirm,
|
|
2533
2539
|
onVisibleChange: (...e) => {
|
|
@@ -2535,33 +2541,33 @@ var In = {
|
|
|
2535
2541
|
}
|
|
2536
2542
|
};
|
|
2537
2543
|
});
|
|
2538
|
-
return (r, i) =>
|
|
2539
|
-
default:
|
|
2544
|
+
return (r, i) => V(Q)().checkPermissions(n.permission) ? (I(), T(x, { key: 0 }, [b.value ? (I(), C(V(t), F(N({ key: 0 }, b.value)), {
|
|
2545
|
+
default: U(() => [(I(), C(z(j(V(Le), ee.value)), {
|
|
2540
2546
|
onVnodeMounted: _,
|
|
2541
2547
|
onVnodeUpdated: _
|
|
2542
|
-
},
|
|
2548
|
+
}, be({ _: 2 }, [n.icon || v.value ? {
|
|
2543
2549
|
name: "icon",
|
|
2544
|
-
fn:
|
|
2550
|
+
fn: U(() => [D(V(e), { icon: n.icon || v.value }, null, 8, ["icon"])]),
|
|
2545
2551
|
key: "0"
|
|
2546
|
-
} : void 0,
|
|
2552
|
+
} : void 0, R(Object.keys(r.$slots), (e) => ({
|
|
2547
2553
|
name: e,
|
|
2548
|
-
fn:
|
|
2554
|
+
fn: U((t) => [Oe(r.$slots, e, F(A(t)), void 0, !0)])
|
|
2549
2555
|
}))]), 1536))]),
|
|
2550
2556
|
_: 3
|
|
2551
|
-
}, 16)) : (
|
|
2557
|
+
}, 16)) : (I(), C(z(j(V(Le), ee.value)), {
|
|
2552
2558
|
key: 1,
|
|
2553
2559
|
onVnodeMounted: _,
|
|
2554
2560
|
onVnodeUpdated: _
|
|
2555
|
-
},
|
|
2561
|
+
}, be({ _: 2 }, [n.icon || v.value ? {
|
|
2556
2562
|
name: "icon",
|
|
2557
|
-
fn:
|
|
2563
|
+
fn: U(() => [D(V(e), { icon: n.icon || v.value }, null, 8, ["icon"])]),
|
|
2558
2564
|
key: "0"
|
|
2559
|
-
} : void 0,
|
|
2565
|
+
} : void 0, R(Object.keys(r.$slots), (e) => ({
|
|
2560
2566
|
name: e,
|
|
2561
|
-
fn:
|
|
2562
|
-
}))]), 1536))], 64)) :
|
|
2567
|
+
fn: U((t) => [Oe(r.$slots, e, F(A(t)), void 0, !0)])
|
|
2568
|
+
}))]), 1536))], 64)) : w("v-if", !0);
|
|
2563
2569
|
}
|
|
2564
|
-
}), [["__scopeId", "data-v-3e5dd427"]]),
|
|
2570
|
+
}), [["__scopeId", "data-v-3e5dd427"]]), zn = /* @__PURE__ */ O({
|
|
2565
2571
|
name: "TProvider",
|
|
2566
2572
|
__name: "Provider",
|
|
2567
2573
|
setup(e) {
|
|
@@ -2583,14 +2589,14 @@ var In = {
|
|
|
2583
2589
|
variant: "text"
|
|
2584
2590
|
})
|
|
2585
2591
|
} };
|
|
2586
|
-
return (e, n) => (
|
|
2592
|
+
return (e, n) => (I(), C(V(it), {
|
|
2587
2593
|
"empty-values": [""],
|
|
2588
|
-
locale:
|
|
2594
|
+
locale: V(wt),
|
|
2589
2595
|
"value-on-clear": "",
|
|
2590
2596
|
"z-index": 5500
|
|
2591
2597
|
}, {
|
|
2592
|
-
default:
|
|
2593
|
-
default:
|
|
2598
|
+
default: U(() => [D(V(ze), { "global-config": t }, {
|
|
2599
|
+
default: U(() => [Oe(e.$slots, "default")]),
|
|
2594
2600
|
_: 3
|
|
2595
2601
|
})]),
|
|
2596
2602
|
_: 3
|
|
@@ -2598,4 +2604,4 @@ var In = {
|
|
|
2598
2604
|
}
|
|
2599
2605
|
});
|
|
2600
2606
|
//#endregion
|
|
2601
|
-
export {
|
|
2607
|
+
export { tn as A, K as B, dn as C, Y as D, sn as E, Ut as F, At as H, Ht as I, Mt as L, Jt as M, Yt as N, on as O, Xt as P, Bt as R, X as S, cn as T, Et as U, G as V, Tt as W, Sn as _, In as a, bn as b, jn as c, On as d, Dn as f, Cn as g, wn as h, Q as i, $t as j, nn as k, An as l, Tn as m, $ as n, Fn as o, En as p, Ln as r, Pn as s, zn as t, kn as u, vn as v, fn as w, xn as x, yn as y, q as z };
|