dlzn-ui 2.0.79 → 2.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{provider-D9p8lK5s.css → provider-SiARbNH3.css} +1 -1
- package/chunks/{AssignUser-CwvoGHQL.mjs → AssignUser-CnXv8KWI.mjs} +3 -3
- package/chunks/{BasicInfo-BZw88jHM.mjs → BasicInfo-DQg-xtOy.mjs} +1 -1
- package/chunks/{ColumnInfo-Doj48XuU.mjs → ColumnInfo-Bw-Sh3Pr.mjs} +2 -2
- package/chunks/{Common-Ddi24YPp.mjs → Common-DoIVfEtK.mjs} +1 -1
- package/chunks/{Day-CPDOqBSC.mjs → Day-BIjko1H-.mjs} +1 -1
- package/chunks/{DictTypeDetail-BLUo4FKe.mjs → DictTypeDetail-D6CCL-vB.mjs} +2 -2
- package/chunks/{GenInfo-C-wgllU6.mjs → GenInfo-Boa-8-8N.mjs} +1 -1
- package/chunks/{Hour-2xl1fQye.mjs → Hour-BQhioigz.mjs} +1 -1
- package/chunks/{Import-CvQFTTUH.mjs → Import-nSqcRgBx.mjs} +2 -2
- package/chunks/{Index-D_dbZ8pN.mjs → Index-CB4vuxnX.mjs} +1 -1
- package/chunks/{Index-gTrIPOGH.mjs → Index-CqL2WO06.mjs} +1 -1
- package/chunks/{Index-CkuucUFn.mjs → Index-DVaWYMqH.mjs} +1 -1
- package/chunks/{Index-DFEGfYFV.mjs → Index-DfyH8C66.mjs} +1 -1
- package/chunks/{IndexItem-C23Kjhta.mjs → IndexItem-BIgu8wI8.mjs} +1 -1
- package/chunks/{Log-DPV5f0u0.mjs → Log-Bob_F-fZ.mjs} +2 -2
- package/chunks/{LoginBg--1x-2klC.mjs → LoginBg-UBA_J_Ms.mjs} +1 -1
- package/chunks/{Minute-DdDt7yxv.mjs → Minute-CaZ3pjQn.mjs} +1 -1
- package/chunks/{Month-C7VovTy5.mjs → Month-BcquSyZM.mjs} +1 -1
- package/chunks/{Preview-Wm4DOV5i.mjs → Preview-CigS4jgs.mjs} +1 -1
- package/chunks/{Second-jooG58mK.mjs → Second-CUt3Bj5r.mjs} +1 -1
- package/chunks/{SelectDept-B13E56FA.mjs → SelectDept-t3bUQ4xY.mjs} +1 -1
- package/chunks/{SelectMenu-BOEFM73n.mjs → SelectMenu-Bnk4qKEX.mjs} +1 -1
- package/chunks/{SelectUser-B8zjcN-h.mjs → SelectUser-DDcMFChM.mjs} +2 -2
- package/chunks/{UserInfo-C3RCXZcZ.mjs → UserInfo-Dq2Komej.mjs} +1 -1
- package/chunks/{app-BZxLzD3_.mjs → app-UJuvugpl.mjs} +1 -1
- package/chunks/{custom-page-list-nyaD0ILH.mjs → custom-page-list-C8f1-kiq.mjs} +4 -4
- package/chunks/{custom-page-table-BI0OFMeZ.mjs → custom-page-table-B70OuYRF.mjs} +2 -2
- package/chunks/{job-Tg0hZCDw.mjs → job-DO54vUo7.mjs} +3 -3
- package/chunks/{overview-CZSPc9-U.mjs → overview-CeVZnY2J.mjs} +1 -1
- package/chunks/{page-list-EmNsMYVR.mjs → page-list-C4IEREyw.mjs} +3 -3
- package/chunks/{page-query-CLGqXnvG.mjs → page-query-B0Kt4Fot.mjs} +1 -1
- package/chunks/{page-table-CQ5ftqtL.mjs → page-table-CdzajqEK.mjs} +3 -3
- package/chunks/{pagination-Dr-DqqVm.mjs → pagination-CFpC5pII.mjs} +1 -1
- package/chunks/{provider-n5W3UNd-.mjs → provider-cBcjojmr.mjs} +317 -314
- package/chunks/{table-CVcPr832.mjs → table-C7gGTLdE.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/dialog/index.mjs +1 -1
- package/components/dialog/src/dialog.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +9 -9
- package/components/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 +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/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +3 -3
- 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/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../assets/css-Ctf0Amkf.css';import '../assets/provider-
|
|
1
|
+
import '../assets/css-Ctf0Amkf.css';import '../assets/provider-SiARbNH3.css';/* empty css */
|
|
2
2
|
import { t as e } from "./icon-DcFIQ_yG.mjs";
|
|
3
3
|
import "../components/icon/index.mjs";
|
|
4
4
|
import { t } from "./popconfirm-Bc93K9mT.mjs";
|
|
@@ -49,20 +49,20 @@ import { t as _e } from "./switch-DNPmkfa_.mjs";
|
|
|
49
49
|
import "../components/switch/index.mjs";
|
|
50
50
|
import { t as ve } from "./textarea-CYirMH7f.mjs";
|
|
51
51
|
import "../components/textarea/index.mjs";
|
|
52
|
-
import { Fragment as
|
|
53
|
-
import { Breadcrumb as
|
|
54
|
-
import { ElConfigProvider as
|
|
55
|
-
import { useElementSize as
|
|
56
|
-
import { cloneDeep as
|
|
57
|
-
import { defineStore as
|
|
58
|
-
import
|
|
59
|
-
import { NavigationFailureType as
|
|
60
|
-
import { createAlova as
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
52
|
+
import { Fragment as x, KeepAlive as ye, Suspense as be, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as xe, createSlots as Se, createTextVNode as E, createVNode as D, defineAsyncComponent as Ce, defineComponent as O, getCurrentInstance as k, guardReactiveProps as we, h as A, inject as Te, markRaw as Ee, mergeDefaults as j, mergeProps as M, nextTick as N, normalizeClass as De, normalizeProps as P, onMounted as Oe, openBlock as F, provide as ke, reactive as Ae, ref as I, renderList as L, renderSlot as R, resolveComponent as je, resolveDynamicComponent as z, shallowRef as Me, toDisplayString as B, unref as V, useAttrs as Ne, useSlots as Pe, useTemplateRef as Fe, watch as H, withCtx as U, withModifiers as Ie } from "vue";
|
|
53
|
+
import { Breadcrumb as Le, BreadcrumbItem as Re, Button as ze, CheckboxGroup as Be, ConfigProvider as Ve, Content as He, Dialog as Ue, DialogPlugin as We, Drawer as Ge, DrawerPlugin as Ke, Form as qe, FormItem as Je, HeadMenu as Ye, Header as Xe, InputAdornment as Ze, Layout as Qe, Menu as $e, MenuItem as et, RadioGroup as tt, Select as nt, Tree as rt, TreeSelect as it, Upload as at } from "tdesign-vue-next";
|
|
54
|
+
import { ElConfigProvider as ot } from "element-plus";
|
|
55
|
+
import { useElementSize as st, useElementVisibility as ct, useFavicon as lt, useFocus as ut, useMutationObserver as dt, useResizeObserver as ft } from "@vueuse/core";
|
|
56
|
+
import { cloneDeep as pt, isPlainObject as mt } from "lodash-es";
|
|
57
|
+
import { defineStore as ht } from "pinia";
|
|
58
|
+
import gt from "virtual:dlzn-ui/app-params";
|
|
59
|
+
import { NavigationFailureType as _t, createRouter as vt, createWebHistory as yt, isNavigationFailure as bt, useRoute as W, useRouter as xt } from "vue-router";
|
|
60
|
+
import { createAlova as St } from "alova";
|
|
61
|
+
import Ct from "alova/fetch";
|
|
62
|
+
import wt from "alova/vue";
|
|
63
|
+
import Tt from "path-browserify";
|
|
64
64
|
//#region ../../node_modules/.pnpm/element-plus@2.14.5_vue@3.5.41/node_modules/element-plus/es/locale/lang/zh-cn.mjs
|
|
65
|
-
var
|
|
65
|
+
var Et = {
|
|
66
66
|
name: "zh-cn",
|
|
67
67
|
el: {
|
|
68
68
|
breadcrumb: { label: "面包屑" },
|
|
@@ -243,15 +243,15 @@ var Tt = {
|
|
|
243
243
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
},
|
|
246
|
+
}, Dt = {
|
|
247
247
|
autoIcon: !0,
|
|
248
248
|
autoLoading: !0,
|
|
249
249
|
autoTheme: !0,
|
|
250
250
|
loading: void 0
|
|
251
|
-
},
|
|
251
|
+
}, Ot = {
|
|
252
252
|
autoLabelWidth: !0,
|
|
253
253
|
colon: !0,
|
|
254
|
-
data: () =>
|
|
254
|
+
data: () => Ae({}),
|
|
255
255
|
disabled: !1,
|
|
256
256
|
labelAlign: "top",
|
|
257
257
|
layout: "inline",
|
|
@@ -261,7 +261,7 @@ var Tt = {
|
|
|
261
261
|
requiredMark: void 0,
|
|
262
262
|
resetType: "initial",
|
|
263
263
|
showErrorMessage: !0
|
|
264
|
-
},
|
|
264
|
+
}, kt = {
|
|
265
265
|
closeBtn: () => A($, {
|
|
266
266
|
icon: "mdi:close",
|
|
267
267
|
shape: "circle",
|
|
@@ -282,7 +282,7 @@ var Tt = {
|
|
|
282
282
|
preventScrollThrough: !0,
|
|
283
283
|
showOverlay: !0,
|
|
284
284
|
width: "fit-content"
|
|
285
|
-
},
|
|
285
|
+
}, At = /* @__PURE__ */ O({
|
|
286
286
|
inheritAttrs: !1,
|
|
287
287
|
name: "TDialog",
|
|
288
288
|
__name: "dialog",
|
|
@@ -329,70 +329,70 @@ var Tt = {
|
|
|
329
329
|
"onUpdate:visible": { type: Function },
|
|
330
330
|
visible: { type: Boolean }
|
|
331
331
|
}, {
|
|
332
|
-
...
|
|
332
|
+
...kt,
|
|
333
333
|
attach: "body",
|
|
334
|
-
closeBtn: () =>
|
|
334
|
+
closeBtn: () => kt.closeBtn,
|
|
335
335
|
showInAttachedElement: !1
|
|
336
336
|
}),
|
|
337
337
|
setup(e) {
|
|
338
|
-
let t = e, n =
|
|
338
|
+
let t = e, n = S(() => {
|
|
339
339
|
let e = { ...t };
|
|
340
340
|
return Object.keys(e).forEach((t) => {
|
|
341
341
|
e[t] === void 0 && delete e[t];
|
|
342
342
|
}), e;
|
|
343
|
-
}), r =
|
|
343
|
+
}), r = k();
|
|
344
344
|
function i(e) {
|
|
345
345
|
r.exposed = e ?? {};
|
|
346
346
|
}
|
|
347
|
-
return (e, t) => (F(),
|
|
347
|
+
return (e, t) => (F(), C(z(A(V(Ue), M(e.$attrs, {
|
|
348
348
|
...n.value,
|
|
349
349
|
ref: i
|
|
350
350
|
}), e.$slots))));
|
|
351
351
|
}
|
|
352
|
-
}),
|
|
352
|
+
}), jt = /* @__PURE__ */ function(e) {
|
|
353
353
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
354
|
-
}(
|
|
355
|
-
function
|
|
356
|
-
let i =
|
|
354
|
+
}(jt || {}), Mt = /* @__PURE__ */ new Set();
|
|
355
|
+
function Nt(e, t, n) {
|
|
356
|
+
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 } = ct(a, {
|
|
357
357
|
controls: !0,
|
|
358
358
|
initialValue: !0
|
|
359
359
|
}), c = {
|
|
360
|
-
...
|
|
360
|
+
...kt,
|
|
361
361
|
closeWhenCloseAll: !0,
|
|
362
362
|
...t ?? {},
|
|
363
|
-
body: () => A(
|
|
363
|
+
body: () => A(Un, {}, { default: () => i.value })
|
|
364
364
|
}, l, u = {
|
|
365
365
|
...c,
|
|
366
366
|
onClosed: () => {
|
|
367
|
-
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(),
|
|
367
|
+
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(), Mt.delete(l);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
delete u.closeWhenCloseAll;
|
|
371
371
|
let d = r();
|
|
372
|
-
return l = e === void 0 ?
|
|
372
|
+
return l = e === void 0 ? We(u, n ?? d) : We[e](u, n ?? d), c.closeWhenCloseAll && Mt.add(l), l;
|
|
373
373
|
}
|
|
374
|
-
var
|
|
375
|
-
return
|
|
374
|
+
var Pt = function(...e) {
|
|
375
|
+
return Nt(void 0, ...e);
|
|
376
376
|
};
|
|
377
|
-
Object.values(
|
|
378
|
-
|
|
379
|
-
|
|
377
|
+
Object.values(jt).forEach((e) => {
|
|
378
|
+
Pt[e] = e === "closeAll" ? () => {
|
|
379
|
+
Mt.forEach((e) => {
|
|
380
380
|
e.hide();
|
|
381
381
|
});
|
|
382
|
-
} : (...t) =>
|
|
382
|
+
} : (...t) => Nt(e, ...t);
|
|
383
383
|
});
|
|
384
384
|
//#endregion
|
|
385
385
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
386
386
|
var G = (e, t) => {
|
|
387
387
|
let n = { ...typeof e == "string" ? {} : e };
|
|
388
388
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
389
|
-
let a =
|
|
389
|
+
let a = Pt(typeof e == "string" ? {
|
|
390
390
|
body: e,
|
|
391
391
|
onConfirm: () => {
|
|
392
392
|
a.hide(), r();
|
|
393
393
|
},
|
|
394
394
|
theme: "warning"
|
|
395
|
-
} :
|
|
395
|
+
} : Ae({
|
|
396
396
|
...n,
|
|
397
397
|
onClose: (t) => {
|
|
398
398
|
let { trigger: n } = t;
|
|
@@ -412,7 +412,7 @@ var G = (e, t) => {
|
|
|
412
412
|
};
|
|
413
413
|
//#endregion
|
|
414
414
|
//#region ../../packages/dlzn-ui/store/modules/common.ts
|
|
415
|
-
function
|
|
415
|
+
function Ft() {
|
|
416
416
|
return VITE_APP_ID === "1" ? X.Get(`yq/oemConfig/getByDomain/${window.location.hostname}`, {
|
|
417
417
|
meta: { useToken: !1 },
|
|
418
418
|
transform(e) {
|
|
@@ -430,7 +430,7 @@ function Pt() {
|
|
|
430
430
|
useToken: !1
|
|
431
431
|
} });
|
|
432
432
|
}
|
|
433
|
-
var K =
|
|
433
|
+
var K = ht("common", () => {
|
|
434
434
|
let e = I(!0), t = I(250), n = I({
|
|
435
435
|
appName: "",
|
|
436
436
|
color: "",
|
|
@@ -441,9 +441,9 @@ var K = mt("common", () => {
|
|
|
441
441
|
e && (document.title = e);
|
|
442
442
|
}), H(() => n.value.color, (e) => {
|
|
443
443
|
e && (v().value = e);
|
|
444
|
-
}),
|
|
444
|
+
}), lt(S(() => n.value.logo || "/favicon.ico"));
|
|
445
445
|
function r() {
|
|
446
|
-
|
|
446
|
+
Ft().then((e) => {
|
|
447
447
|
n.value = e;
|
|
448
448
|
}).catch((e) => {
|
|
449
449
|
n.value = {
|
|
@@ -468,13 +468,13 @@ var K = mt("common", () => {
|
|
|
468
468
|
isRequestSleep: i,
|
|
469
469
|
requestActive: o
|
|
470
470
|
};
|
|
471
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), q =
|
|
472
|
-
let e = I([]), t = W(), n =
|
|
471
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), q = ht("recentRouters", () => {
|
|
472
|
+
let e = I([]), t = W(), n = xt();
|
|
473
473
|
function r() {
|
|
474
474
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
475
475
|
}
|
|
476
476
|
function i(t, n) {
|
|
477
|
-
let r =
|
|
477
|
+
let r = pt(n), i = e.value.findIndex((e) => e.name === r.name || fn(e.name).meta.title === fn(r.name).meta.title);
|
|
478
478
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
479
479
|
let n = e.value.findIndex((e) => e.name === t);
|
|
480
480
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -505,16 +505,16 @@ var K = mt("common", () => {
|
|
|
505
505
|
}, { persist: { pick: ["recentRouters"] } });
|
|
506
506
|
//#endregion
|
|
507
507
|
//#region ../../packages/dlzn-ui/store/modules/router.ts
|
|
508
|
-
function
|
|
508
|
+
function It() {
|
|
509
509
|
return X.Get("getRouters", { meta: {
|
|
510
510
|
useFailMsg: "获取用户路由失败",
|
|
511
511
|
useLoading: "正在获取用户路由..."
|
|
512
512
|
} });
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Lt(e) {
|
|
515
515
|
return e.children !== void 0 || e.component !== void 0;
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function Rt(e) {
|
|
518
518
|
let t = [];
|
|
519
519
|
return e.forEach((e) => {
|
|
520
520
|
e.path === "/" ? t.push({
|
|
@@ -523,7 +523,7 @@ function Lt(e) {
|
|
|
523
523
|
}) : t.push(e);
|
|
524
524
|
}), t;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function zt(e) {
|
|
527
527
|
let t = (e, n) => {
|
|
528
528
|
let r = [];
|
|
529
529
|
return e.forEach((e) => {
|
|
@@ -547,12 +547,12 @@ function Rt(e) {
|
|
|
547
547
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
550
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = Ut(e)), Lt(i) && r.push(i);
|
|
551
551
|
}), r;
|
|
552
|
-
}, n =
|
|
552
|
+
}, n = dn();
|
|
553
553
|
return n.children.push(...e), t([n], null);
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function Bt(e) {
|
|
556
556
|
let t = (e) => {
|
|
557
557
|
let n = [...e], r = n.length;
|
|
558
558
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -565,36 +565,36 @@ function zt(e) {
|
|
|
565
565
|
};
|
|
566
566
|
return t(e);
|
|
567
567
|
}
|
|
568
|
-
var
|
|
569
|
-
function
|
|
568
|
+
var Vt = [];
|
|
569
|
+
function Ht(e) {
|
|
570
570
|
return `./${e.split("___")[0]}.vue`;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function Ut(e) {
|
|
573
573
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
574
|
-
let t = e.component, n = typeof t == "string" ? ne[
|
|
574
|
+
let t = e.component, n = typeof t == "string" ? ne[Ht(t)] : t;
|
|
575
575
|
if (n === void 0) {
|
|
576
|
-
let e = `路由组件${
|
|
576
|
+
let e = `路由组件${Ht(t)}不存在`;
|
|
577
577
|
return console.error(e), h["./NotFound.vue"];
|
|
578
578
|
}
|
|
579
|
-
return typeof t == "string" &&
|
|
579
|
+
return typeof t == "string" && Vt.push(Ht(t)), () => n().then((t) => ({
|
|
580
580
|
...t.default,
|
|
581
581
|
name: e.name
|
|
582
582
|
}));
|
|
583
583
|
}
|
|
584
584
|
return e.component;
|
|
585
585
|
}
|
|
586
|
-
var
|
|
587
|
-
let e = I([]), t =
|
|
586
|
+
var Wt = ht("router", () => {
|
|
587
|
+
let e = I([]), t = xt(), r = Q();
|
|
588
588
|
async function i() {
|
|
589
|
-
let i = await
|
|
589
|
+
let i = await It();
|
|
590
590
|
VITE_MODE === "development" && r.isAdmin && fetch("/__dev__/save-folder-alias", {
|
|
591
591
|
body: JSON.stringify(i),
|
|
592
592
|
headers: { "Content-Type": "application/json" },
|
|
593
593
|
method: "POST"
|
|
594
594
|
}).catch((e) => {
|
|
595
595
|
console.warn("[dev-save-folder-alias] 写入本地 json 失败", e);
|
|
596
|
-
}),
|
|
597
|
-
if (!
|
|
596
|
+
}), Vt.length = 0, e.value = Ee(Bt(zt(Rt(i)))), r.isAdmin && Object.keys(ne).forEach((e) => {
|
|
597
|
+
if (!Vt.includes(e) && ![
|
|
598
598
|
"./tool",
|
|
599
599
|
"./system",
|
|
600
600
|
"./monitor"
|
|
@@ -616,46 +616,46 @@ var Ut = mt("router", () => {
|
|
|
616
616
|
getRouters: i,
|
|
617
617
|
routersRaw: e
|
|
618
618
|
};
|
|
619
|
-
}),
|
|
619
|
+
}), Gt = { class: "ml-2! flex items-center" }, Kt = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
620
620
|
__name: "Aside",
|
|
621
621
|
setup(e) {
|
|
622
|
-
let t = W(), n = K(), r =
|
|
622
|
+
let t = W(), n = K(), r = S(() => n.appInfo.appName), i = Wt(), a = I([]);
|
|
623
623
|
H(() => t.name, () => {
|
|
624
624
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
625
625
|
a.value.includes(e) || a.value.push(e);
|
|
626
626
|
});
|
|
627
627
|
}, { immediate: !0 });
|
|
628
|
-
let o =
|
|
628
|
+
let o = S(() => {
|
|
629
629
|
let { hidden: e, parentName: n } = t.meta;
|
|
630
630
|
return n !== "" && e === !0 ? n : t.name;
|
|
631
|
-
}), s =
|
|
632
|
-
return (e, t) => (F(),
|
|
631
|
+
}), s = S(() => n.appInfo.logo || gt.asideTopLogoUrl);
|
|
632
|
+
return (e, t) => (F(), C(V($e), {
|
|
633
633
|
expanded: a.value,
|
|
634
634
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
635
635
|
class: "w-full!",
|
|
636
636
|
value: o.value
|
|
637
637
|
}, {
|
|
638
|
-
logo: U(() => [xe("div",
|
|
638
|
+
logo: U(() => [xe("div", Gt, [D(V(te), {
|
|
639
639
|
class: "logo",
|
|
640
640
|
src: s.value,
|
|
641
641
|
style: {
|
|
642
642
|
width: "28px",
|
|
643
643
|
height: "28px"
|
|
644
644
|
}
|
|
645
|
-
}, null, 8, ["src"]),
|
|
645
|
+
}, null, 8, ["src"]), D(V(ee), {
|
|
646
646
|
"animation-speed": 8,
|
|
647
647
|
"class-name": "ml-2 text-xl !font-bold",
|
|
648
648
|
"show-border": !1,
|
|
649
649
|
text: r.value
|
|
650
650
|
}, null, 8, ["text"])])]),
|
|
651
|
-
default: U(() => [
|
|
651
|
+
default: U(() => [D(re, { model: V(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
652
652
|
_: 1
|
|
653
653
|
}, 8, ["expanded", "value"]));
|
|
654
654
|
}
|
|
655
|
-
}), [["__scopeId", "data-v-36275803"]]),
|
|
655
|
+
}), [["__scopeId", "data-v-36275803"]]), qt = /* @__PURE__ */ O({
|
|
656
656
|
__name: "Breadcrumb",
|
|
657
657
|
setup(e, { expose: t }) {
|
|
658
|
-
let n = W(), r =
|
|
658
|
+
let n = W(), r = xt(), i = q(), a = S(() => {
|
|
659
659
|
let e = n.matched.map((e) => ({
|
|
660
660
|
name: e.name,
|
|
661
661
|
title: e.meta.title
|
|
@@ -668,96 +668,96 @@ var Ut = mt("router", () => {
|
|
|
668
668
|
function o(e) {
|
|
669
669
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
670
670
|
}
|
|
671
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (F(),
|
|
671
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (F(), C(V(Le), {
|
|
672
672
|
key: 0,
|
|
673
673
|
class: "absolute top-px z-10 py-1!"
|
|
674
674
|
}, {
|
|
675
|
-
default: U(() => [(F(!0),
|
|
675
|
+
default: U(() => [(F(!0), T(x, null, L(a.value, (e) => (F(), C(V(Re), {
|
|
676
676
|
key: e.name,
|
|
677
677
|
disabled: e.disabled,
|
|
678
678
|
onClick: (t) => o(e.name)
|
|
679
679
|
}, {
|
|
680
|
-
default: U(() => [
|
|
680
|
+
default: U(() => [E(B(e.title), 1)]),
|
|
681
681
|
_: 2
|
|
682
682
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
683
683
|
_: 1
|
|
684
|
-
})) :
|
|
684
|
+
})) : w("v-if", !0);
|
|
685
685
|
}
|
|
686
|
-
}),
|
|
687
|
-
function
|
|
686
|
+
}), Jt = /* @__PURE__ */ new Map();
|
|
687
|
+
function Yt(e) {
|
|
688
688
|
let t = X.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
689
689
|
...e,
|
|
690
690
|
label: e.userName,
|
|
691
691
|
value: e.userId
|
|
692
692
|
})));
|
|
693
693
|
e.forEach((e) => {
|
|
694
|
-
|
|
694
|
+
Jt.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
|
-
var
|
|
698
|
-
function
|
|
699
|
-
return
|
|
697
|
+
var Xt = [];
|
|
698
|
+
function Zt(e) {
|
|
699
|
+
return Xt.includes(e) || Xt.push(e), new Promise((t) => {
|
|
700
700
|
setTimeout(() => {
|
|
701
|
-
let n =
|
|
702
|
-
n.length > 0 &&
|
|
701
|
+
let n = Xt.filter((e) => !Jt.has(e));
|
|
702
|
+
n.length > 0 && Yt(n), Xt.length = 0, Jt.get(e).then((e) => {
|
|
703
703
|
t(e);
|
|
704
704
|
});
|
|
705
705
|
});
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
708
|
var J = /* @__PURE__ */ new Map();
|
|
709
|
-
function
|
|
710
|
-
|
|
709
|
+
function Qt() {
|
|
710
|
+
Xt.length = 0, Jt.clear(), J.clear();
|
|
711
711
|
}
|
|
712
|
-
function
|
|
713
|
-
|
|
712
|
+
function $t(e) {
|
|
713
|
+
Jt.delete(e), J.has(e) && Zt(e).then((t) => {
|
|
714
714
|
J.get(e).value = t;
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function en(e) {
|
|
718
718
|
let t;
|
|
719
|
-
return J.has(e) ? t = J.get(e) : (t = I(null), J.set(e, t),
|
|
719
|
+
return J.has(e) ? t = J.get(e) : (t = I(null), J.set(e, t), Zt(e).then((e) => {
|
|
720
720
|
t.value = e;
|
|
721
721
|
})), t;
|
|
722
722
|
}
|
|
723
723
|
//#endregion
|
|
724
724
|
//#region ../../packages/dlzn-ui/store/modules/login.ts
|
|
725
|
-
function
|
|
725
|
+
function tn(e) {
|
|
726
726
|
return X.Post("login", e, { meta: {
|
|
727
727
|
useLoading: "登录中...",
|
|
728
728
|
useToken: !1
|
|
729
729
|
} });
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function nn() {
|
|
732
732
|
return X.Post("logout", void 0, { meta: {
|
|
733
733
|
useLoading: "退出登录中...",
|
|
734
734
|
useSuccessMsg: !0
|
|
735
735
|
} });
|
|
736
736
|
}
|
|
737
|
-
var
|
|
738
|
-
let e = I(""), t = W(), n =
|
|
737
|
+
var rn = ht("login", () => {
|
|
738
|
+
let e = I(""), t = W(), n = xt();
|
|
739
739
|
async function r(t) {
|
|
740
|
-
let n = await
|
|
740
|
+
let n = await tn(t);
|
|
741
741
|
e.value = n.token, await Q().getUserInfo();
|
|
742
742
|
}
|
|
743
743
|
function i() {
|
|
744
|
-
e.value = "", y().clear(),
|
|
744
|
+
e.value = "", y().clear(), Wt().clear(), Q().clear(), Sn(), Qt(), se();
|
|
745
745
|
}
|
|
746
746
|
H(() => t.name, () => {
|
|
747
747
|
t.name === "Login" && i();
|
|
748
748
|
});
|
|
749
749
|
async function a() {
|
|
750
|
-
await
|
|
750
|
+
await nn(), await n.push({ name: "Login" }), i();
|
|
751
751
|
}
|
|
752
752
|
return {
|
|
753
753
|
login: r,
|
|
754
754
|
logout: a,
|
|
755
755
|
token: e
|
|
756
756
|
};
|
|
757
|
-
}, { persist: { pick: ["token"] } }),
|
|
757
|
+
}, { persist: { pick: ["token"] } }), an = { class: "flex items-center justify-between" }, on = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
758
758
|
__name: "Header",
|
|
759
759
|
setup(t) {
|
|
760
|
-
let n = W(), r =
|
|
760
|
+
let n = W(), r = xt(), i = Q(), a = K(), o = q();
|
|
761
761
|
function s(e) {
|
|
762
762
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
763
763
|
}
|
|
@@ -766,7 +766,7 @@ var nn = mt("login", () => {
|
|
|
766
766
|
}
|
|
767
767
|
let l = async (e) => {
|
|
768
768
|
let { value: t } = e;
|
|
769
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await G("确定要退出登录吗?"),
|
|
769
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await G("确定要退出登录吗?"), rn().logout());
|
|
770
770
|
}, u = _.isMd;
|
|
771
771
|
function d(e, t) {
|
|
772
772
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
@@ -791,23 +791,23 @@ var nn = mt("login", () => {
|
|
|
791
791
|
}), ae(e, i);
|
|
792
792
|
}
|
|
793
793
|
let f = h["./modules/HeaderOperations.vue"] ? Ce(h["./modules/HeaderOperations.vue"]) : void 0;
|
|
794
|
-
return (t, r) => (F(),
|
|
795
|
-
default: U(() => [
|
|
794
|
+
return (t, r) => (F(), C(V(Xe), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
795
|
+
default: U(() => [D(V(Ye), {
|
|
796
796
|
"expand-type": "popup",
|
|
797
797
|
value: V(n).name,
|
|
798
798
|
onChange: s
|
|
799
799
|
}, {
|
|
800
|
-
logo: U(() => [
|
|
800
|
+
logo: U(() => [D(V($), {
|
|
801
801
|
class: "ml-0! shrink-0",
|
|
802
802
|
shape: "circle",
|
|
803
803
|
size: "large",
|
|
804
804
|
variant: "text",
|
|
805
805
|
onClick: r[0] ||= (e) => V(a).drawerOpen = !V(a).drawerOpen
|
|
806
806
|
}, {
|
|
807
|
-
default: U(() => [
|
|
807
|
+
default: U(() => [D(V(e), { icon: "lineicons:menu-hamburger-1" })]),
|
|
808
808
|
_: 1
|
|
809
809
|
})]),
|
|
810
|
-
operations: U(() => [V(f) ? (F(),
|
|
810
|
+
operations: U(() => [V(f) ? (F(), C(V(f), { key: 0 })) : w("v-if", !0), D(V(ie), {
|
|
811
811
|
options: [{
|
|
812
812
|
content: "个人中心",
|
|
813
813
|
value: "profile",
|
|
@@ -825,44 +825,44 @@ var nn = mt("login", () => {
|
|
|
825
825
|
}],
|
|
826
826
|
onClick: l
|
|
827
827
|
}, {
|
|
828
|
-
default: U(() => [V(u) ? (F(),
|
|
828
|
+
default: U(() => [V(u) ? (F(), C(V($), {
|
|
829
829
|
key: 0,
|
|
830
830
|
icon: "material-symbols:account-circle",
|
|
831
831
|
shape: "square",
|
|
832
832
|
variant: "text"
|
|
833
|
-
})) : (F(),
|
|
833
|
+
})) : (F(), C(V($), {
|
|
834
834
|
key: 1,
|
|
835
835
|
icon: "material-symbols:account-circle",
|
|
836
836
|
variant: "text"
|
|
837
837
|
}, {
|
|
838
|
-
suffix: U(() => [
|
|
838
|
+
suffix: U(() => [D(V(e), {
|
|
839
839
|
icon: "icon-park-outline:down",
|
|
840
840
|
size: "18"
|
|
841
841
|
})]),
|
|
842
|
-
default: U(() => [
|
|
842
|
+
default: U(() => [E(B(V(i).userInfo.userName) + " ", 1)]),
|
|
843
843
|
_: 1
|
|
844
844
|
}))]),
|
|
845
845
|
_: 1
|
|
846
846
|
}, 8, ["options"])]),
|
|
847
|
-
default: U(() => [(F(!0),
|
|
847
|
+
default: U(() => [(F(!0), T(x, null, L(V(o).recentRouters, (t) => (F(), C(V(et), {
|
|
848
848
|
key: t.name,
|
|
849
849
|
value: t.name,
|
|
850
850
|
onContextmenu: (e) => d(e, t.name)
|
|
851
851
|
}, {
|
|
852
|
-
default: U(() => [xe("div",
|
|
852
|
+
default: U(() => [xe("div", an, [xe("span", null, B(V(fn)(t.name).meta.title), 1), V(o).recentRouters.length > 1 ? (F(), C(V($), {
|
|
853
853
|
key: 0,
|
|
854
854
|
class: "ml-1!",
|
|
855
855
|
shape: "square",
|
|
856
856
|
size: "small",
|
|
857
857
|
variant: "text",
|
|
858
|
-
onClick:
|
|
858
|
+
onClick: Ie((e) => c(t.name), ["stop"])
|
|
859
859
|
}, {
|
|
860
|
-
icon: U(() => [
|
|
860
|
+
icon: U(() => [D(V(e), {
|
|
861
861
|
icon: "material-symbols:close",
|
|
862
862
|
style: { "font-size": "12px !important" }
|
|
863
863
|
})]),
|
|
864
864
|
_: 1
|
|
865
|
-
}, 8, ["onClick"])) :
|
|
865
|
+
}, 8, ["onClick"])) : w("v-if", !0)])]),
|
|
866
866
|
_: 2
|
|
867
867
|
}, 1032, ["value", "onContextmenu"]))), 128))]),
|
|
868
868
|
_: 1
|
|
@@ -870,26 +870,26 @@ var nn = mt("login", () => {
|
|
|
870
870
|
_: 1
|
|
871
871
|
}));
|
|
872
872
|
}
|
|
873
|
-
}), [["__scopeId", "data-v-6c2c986c"]]),
|
|
873
|
+
}), [["__scopeId", "data-v-6c2c986c"]]), sn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
874
874
|
__name: "Entry",
|
|
875
875
|
setup(e) {
|
|
876
|
-
let t = W(), n = K(), r = q(), i = y(), a =
|
|
876
|
+
let t = W(), n = K(), r = q(), i = y(), a = S(() => r.recentRouters.filter((e) => fn(e.name).meta.noCache === !1).map((e) => e.name)), o = Fe("breadcrumb"), s = S(() => (o.value?.items.length ?? 0) > 0), c = S(() => _.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), l = _.isMd, u = Fe("contentRef"), { height: d } = st(u);
|
|
877
877
|
function f({ size: e }) {
|
|
878
878
|
n.drawerSize = e;
|
|
879
879
|
}
|
|
880
|
-
let p =
|
|
880
|
+
let p = S(() => t.meta.fullScreen);
|
|
881
881
|
return (e, t) => {
|
|
882
|
-
let r =
|
|
883
|
-
return p.value ? (F(),
|
|
884
|
-
default: U(({ Component: e }) => [(F(),
|
|
882
|
+
let r = je("RouterView");
|
|
883
|
+
return p.value ? (F(), C(r, { key: 0 }, {
|
|
884
|
+
default: U(({ Component: e }) => [(F(), C(z(e)))]),
|
|
885
885
|
_: 1
|
|
886
|
-
})) : (F(),
|
|
886
|
+
})) : (F(), C(V(Qe), {
|
|
887
887
|
key: 1,
|
|
888
888
|
class: "h-full"
|
|
889
889
|
}, {
|
|
890
890
|
default: U(() => [
|
|
891
|
-
|
|
892
|
-
|
|
891
|
+
D(on),
|
|
892
|
+
D(V(Ge), {
|
|
893
893
|
visible: V(n).drawerOpen,
|
|
894
894
|
"onUpdate:visible": t[0] ||= (e) => V(n).drawerOpen = e,
|
|
895
895
|
footer: !1,
|
|
@@ -903,7 +903,7 @@ var nn = mt("login", () => {
|
|
|
903
903
|
},
|
|
904
904
|
onSizeDragEnd: f
|
|
905
905
|
}, {
|
|
906
|
-
default: U(() => [
|
|
906
|
+
default: U(() => [D(Kt, { class: "no_drawer_body_padding" })]),
|
|
907
907
|
_: 1
|
|
908
908
|
}, 8, [
|
|
909
909
|
"visible",
|
|
@@ -911,14 +911,14 @@ var nn = mt("login", () => {
|
|
|
911
911
|
"show-overlay",
|
|
912
912
|
"size"
|
|
913
913
|
]),
|
|
914
|
-
|
|
914
|
+
D(V(He), {
|
|
915
915
|
ref_key: "contentRef",
|
|
916
916
|
ref: u,
|
|
917
917
|
class: "overflow-hidden"
|
|
918
918
|
}, {
|
|
919
|
-
default: U(() => [
|
|
919
|
+
default: U(() => [D(V(g), {
|
|
920
920
|
always: "",
|
|
921
|
-
"view-class":
|
|
921
|
+
"view-class": De(["relative flex flex-col", {
|
|
922
922
|
...c.value,
|
|
923
923
|
"pt-8": s.value
|
|
924
924
|
}]),
|
|
@@ -927,11 +927,14 @@ var nn = mt("login", () => {
|
|
|
927
927
|
minHeight: `${Math.max(V(d), 438)}px`
|
|
928
928
|
}
|
|
929
929
|
}, {
|
|
930
|
-
default: U(() => [
|
|
931
|
-
default: U(({ Component: e }) => [(F(),
|
|
930
|
+
default: U(() => [D(qt, { ref: "breadcrumb" }, null, 512), D(r, null, {
|
|
931
|
+
default: U(({ Component: e }) => [(F(), C(ye, {
|
|
932
932
|
exclude: V(i).excludeKPname,
|
|
933
933
|
include: a.value
|
|
934
|
-
}, [(F(),
|
|
934
|
+
}, [(F(), C(be, null, {
|
|
935
|
+
default: U(() => [(F(), C(z(e), { class: "flex-auto" }))]),
|
|
936
|
+
_: 2
|
|
937
|
+
}, 1024))], 1032, ["exclude", "include"]))]),
|
|
935
938
|
_: 1
|
|
936
939
|
})]),
|
|
937
940
|
_: 1
|
|
@@ -943,9 +946,9 @@ var nn = mt("login", () => {
|
|
|
943
946
|
}));
|
|
944
947
|
};
|
|
945
948
|
}
|
|
946
|
-
}), [["__scopeId", "data-v-
|
|
947
|
-
function
|
|
948
|
-
let n =
|
|
949
|
+
}), [["__scopeId", "data-v-f74cbe56"]]), cn = /* @__PURE__ */ new Set();
|
|
950
|
+
function ln(e, t) {
|
|
951
|
+
let n = S(() => typeof e.body == "function" ? e.body(A) : e.body), i = {
|
|
949
952
|
attach: "#app",
|
|
950
953
|
closeOnEscKeydown: !1,
|
|
951
954
|
closeOnOverlayClick: !1,
|
|
@@ -955,26 +958,26 @@ function cn(e, t) {
|
|
|
955
958
|
lazy: !0,
|
|
956
959
|
sizeDraggable: !0,
|
|
957
960
|
...e ?? {},
|
|
958
|
-
body: () => A(
|
|
961
|
+
body: () => A(Un, {}, { default: () => n.value })
|
|
959
962
|
}, a, o = {
|
|
960
963
|
...i,
|
|
961
964
|
onClose: (e) => {
|
|
962
|
-
i.onClose?.(e),
|
|
965
|
+
i.onClose?.(e), cn.delete(a);
|
|
963
966
|
}
|
|
964
967
|
};
|
|
965
|
-
return delete o.closeWhenCloseAll, a =
|
|
968
|
+
return delete o.closeWhenCloseAll, a = Ke(o, t ?? r()), i.closeWhenCloseAll && cn.add(a), a;
|
|
966
969
|
}
|
|
967
|
-
var
|
|
968
|
-
return
|
|
970
|
+
var un = function(...e) {
|
|
971
|
+
return ln(...e);
|
|
969
972
|
};
|
|
970
|
-
|
|
971
|
-
|
|
973
|
+
un.closeAll = () => {
|
|
974
|
+
cn.forEach((e) => {
|
|
972
975
|
e.hide?.();
|
|
973
976
|
});
|
|
974
977
|
};
|
|
975
978
|
//#endregion
|
|
976
979
|
//#region ../../packages/dlzn-ui/router/index.ts
|
|
977
|
-
function
|
|
980
|
+
function dn() {
|
|
978
981
|
return {
|
|
979
982
|
children: [{
|
|
980
983
|
children: [{
|
|
@@ -1002,15 +1005,15 @@ function un() {
|
|
|
1002
1005
|
name: "Home",
|
|
1003
1006
|
path: "home"
|
|
1004
1007
|
}],
|
|
1005
|
-
component:
|
|
1008
|
+
component: sn,
|
|
1006
1009
|
name: "Index",
|
|
1007
1010
|
path: "/"
|
|
1008
1011
|
};
|
|
1009
1012
|
}
|
|
1010
|
-
var Y =
|
|
1011
|
-
history:
|
|
1013
|
+
var Y = vt({
|
|
1014
|
+
history: yt(VITE_BASE_URL),
|
|
1012
1015
|
routes: [
|
|
1013
|
-
|
|
1016
|
+
dn(),
|
|
1014
1017
|
{
|
|
1015
1018
|
component: h["./Login.vue"],
|
|
1016
1019
|
meta: {
|
|
@@ -1055,12 +1058,12 @@ var Y = _t({
|
|
|
1055
1058
|
strict: !0
|
|
1056
1059
|
});
|
|
1057
1060
|
Y.beforeEach(async (e) => {
|
|
1058
|
-
if (e.query._fromLeftTree === "true" && y().add(e.name), !["Login", "Register"].includes(e.name)) return
|
|
1061
|
+
if (e.query._fromLeftTree === "true" && y().add(e.name), !["Login", "Register"].includes(e.name)) return rn().token === "" ? { name: "Login" } : Wt().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), Y.resolve({
|
|
1059
1062
|
path: e.path,
|
|
1060
1063
|
query: e.query
|
|
1061
1064
|
}));
|
|
1062
1065
|
}), Y.afterEach((e, t, n) => {
|
|
1063
|
-
|
|
1066
|
+
Pt.closeAll(), un.closeAll();
|
|
1064
1067
|
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: s } = r;
|
|
1065
1068
|
document.title = s || K().appInfo.appName;
|
|
1066
1069
|
let c = q();
|
|
@@ -1075,24 +1078,24 @@ Y.beforeEach(async (e) => {
|
|
|
1075
1078
|
query: e.query
|
|
1076
1079
|
});
|
|
1077
1080
|
}
|
|
1078
|
-
y().remove(i), VITE_MODE === "development" && (
|
|
1081
|
+
y().remove(i), VITE_MODE === "development" && (bt(n, _t.aborted) ? m.info("导航被中断") : bt(n, _t.cancelled) ? m.info("导航被取消,因为有一个新的导航") : bt(n, _t.duplicated) && m.info("导航被阻止,因为我们已经在目标位置了"));
|
|
1079
1082
|
});
|
|
1080
|
-
function
|
|
1083
|
+
function fn(e) {
|
|
1081
1084
|
if (Y.hasRoute(e)) return Y.getRoutes().find((t) => t.name === e);
|
|
1082
1085
|
}
|
|
1083
1086
|
//#endregion
|
|
1084
1087
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
1085
|
-
var
|
|
1086
|
-
function
|
|
1088
|
+
var pn = 15e3, mn = "网络错误,请稍后再试";
|
|
1089
|
+
function hn(e, t = !0) {
|
|
1087
1090
|
let n = {};
|
|
1088
1091
|
return Object.keys(e).forEach((r) => {
|
|
1089
1092
|
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !c(e[r]))) && (n[r] = e[r]);
|
|
1090
1093
|
}), n;
|
|
1091
1094
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return new URLSearchParams(
|
|
1095
|
+
function gn(e, t = !0) {
|
|
1096
|
+
return new URLSearchParams(hn(e, t)).toString();
|
|
1094
1097
|
}
|
|
1095
|
-
function
|
|
1098
|
+
function _n(e) {
|
|
1096
1099
|
let { data: t, response: r, useDownload: i } = e;
|
|
1097
1100
|
if (typeof i == "string") f(t, i);
|
|
1098
1101
|
else {
|
|
@@ -1100,12 +1103,12 @@ function gn(e) {
|
|
|
1100
1103
|
e ? f(t, e) : n.error("返回的 response header 没有文件名");
|
|
1101
1104
|
}
|
|
1102
1105
|
}
|
|
1103
|
-
var X =
|
|
1106
|
+
var X = St({
|
|
1104
1107
|
baseURL: VITE_BASE_URL,
|
|
1105
1108
|
beforeRequest(e) {
|
|
1106
1109
|
e.config.credentials = e.config.credentials ?? "omit";
|
|
1107
1110
|
let [t, ...n] = VITE_API_PROXY_PREFIX_ARRAY;
|
|
1108
|
-
!e.url.startsWith("http") && !n.some((t) =>
|
|
1111
|
+
!e.url.startsWith("http") && !n.some((t) => Tt.join("/", e.url).startsWith(Tt.join("/", t, "/"))) && (e.url = Tt.join(t, e.url)), e.meta = {
|
|
1109
1112
|
use600Alert: !0,
|
|
1110
1113
|
useDataResult: !0,
|
|
1111
1114
|
useDownload: !1,
|
|
@@ -1122,10 +1125,10 @@ var X = xt({
|
|
|
1122
1125
|
useToken: !e.url.startsWith("http"),
|
|
1123
1126
|
...e.meta ?? {}
|
|
1124
1127
|
};
|
|
1125
|
-
let r =
|
|
1128
|
+
let r = rn(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: l, useLoading: u, useResponseBlob: d, useToken: f } = e.meta;
|
|
1126
1129
|
l || K().requestActive(), f && (r.token ? e.config.headers.Authorization = r.token : e.abort()), u !== !1 && i.show(u === !0 ? void 0 : u);
|
|
1127
1130
|
let p = e.config.params;
|
|
1128
|
-
if (typeof p != "string" && (e.config.params =
|
|
1131
|
+
if (typeof p != "string" && (e.config.params = gn(p, o)), a && mt(e.data)) {
|
|
1129
1132
|
let t = {}, n = e.data;
|
|
1130
1133
|
Object.keys(n).forEach((e) => {
|
|
1131
1134
|
c(n[e]) || (t[e] = n[e]);
|
|
@@ -1137,10 +1140,10 @@ var X = xt({
|
|
|
1137
1140
|
t.append(n, e.data[n]);
|
|
1138
1141
|
}), e.data = t;
|
|
1139
1142
|
}
|
|
1140
|
-
e.config.timeout ===
|
|
1143
|
+
e.config.timeout === pn && (s || e.data instanceof FormData || d) && (e.config.timeout = 0);
|
|
1141
1144
|
},
|
|
1142
1145
|
cacheFor: null,
|
|
1143
|
-
requestAdapter:
|
|
1146
|
+
requestAdapter: Ct(),
|
|
1144
1147
|
responded: {
|
|
1145
1148
|
onComplete: (e) => {
|
|
1146
1149
|
e.meta.useLoading !== !1 && i.hide();
|
|
@@ -1152,7 +1155,7 @@ var X = xt({
|
|
|
1152
1155
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1153
1156
|
if (t.toLowerCase().includes("timeout")) return n && m.error("请求超时"), Promise.reject(e);
|
|
1154
1157
|
}
|
|
1155
|
-
return n && m.error(
|
|
1158
|
+
return n && m.error(mn), Promise.reject(e);
|
|
1156
1159
|
},
|
|
1157
1160
|
onSuccess: async (e, t) => {
|
|
1158
1161
|
if (typeof e == "string") return e;
|
|
@@ -1163,7 +1166,7 @@ var X = xt({
|
|
|
1163
1166
|
403: "当前操作没有权限",
|
|
1164
1167
|
404: "访问资源不存在",
|
|
1165
1168
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1166
|
-
}[h] ??
|
|
1169
|
+
}[h] ?? mn;
|
|
1167
1170
|
m.error(e);
|
|
1168
1171
|
}
|
|
1169
1172
|
return Promise.reject(e);
|
|
@@ -1175,7 +1178,7 @@ var X = xt({
|
|
|
1175
1178
|
} catch (e) {
|
|
1176
1179
|
return n.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1177
1180
|
}
|
|
1178
|
-
return i !== !1 &&
|
|
1181
|
+
return i !== !1 && _n({
|
|
1179
1182
|
data: t,
|
|
1180
1183
|
response: e,
|
|
1181
1184
|
useDownload: i
|
|
@@ -1210,12 +1213,12 @@ var X = xt({
|
|
|
1210
1213
|
return Promise.reject(g);
|
|
1211
1214
|
}
|
|
1212
1215
|
{
|
|
1213
|
-
let a =
|
|
1216
|
+
let a = gt.alovaResCodeSuccessCb?.({
|
|
1214
1217
|
code: t,
|
|
1215
1218
|
data: s,
|
|
1216
1219
|
msg: l
|
|
1217
1220
|
});
|
|
1218
|
-
return a === void 0 ? (i !== !1 && (typeof i == "string" ?
|
|
1221
|
+
return a === void 0 ? (i !== !1 && (typeof i == "string" ? _n({
|
|
1219
1222
|
data: s,
|
|
1220
1223
|
response: e,
|
|
1221
1224
|
useDownload: i
|
|
@@ -1226,10 +1229,10 @@ var X = xt({
|
|
|
1226
1229
|
}
|
|
1227
1230
|
},
|
|
1228
1231
|
shareRequest: !1,
|
|
1229
|
-
statesHook:
|
|
1230
|
-
timeout:
|
|
1231
|
-
}),
|
|
1232
|
-
function
|
|
1232
|
+
statesHook: wt,
|
|
1233
|
+
timeout: pn
|
|
1234
|
+
}), vn = /* @__PURE__ */ new Map();
|
|
1235
|
+
function yn(e) {
|
|
1233
1236
|
let t = X.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
1234
1237
|
cssClass: e.cssClass,
|
|
1235
1238
|
dictType: e.dictType,
|
|
@@ -1238,42 +1241,42 @@ function vn(e) {
|
|
|
1238
1241
|
value: e.dictValue
|
|
1239
1242
|
})));
|
|
1240
1243
|
e.forEach((e) => {
|
|
1241
|
-
|
|
1244
|
+
vn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
1242
1245
|
});
|
|
1243
1246
|
}
|
|
1244
|
-
var
|
|
1245
|
-
function
|
|
1246
|
-
return
|
|
1247
|
+
var bn = [];
|
|
1248
|
+
function xn(e) {
|
|
1249
|
+
return bn.includes(e) || bn.push(e), new Promise((t) => {
|
|
1247
1250
|
setTimeout(() => {
|
|
1248
|
-
let n =
|
|
1249
|
-
n.length > 0 &&
|
|
1251
|
+
let n = bn.filter((e) => !vn.has(e));
|
|
1252
|
+
n.length > 0 && yn(n), bn.length = 0, vn.get(e).then((e) => {
|
|
1250
1253
|
t(e);
|
|
1251
1254
|
});
|
|
1252
1255
|
});
|
|
1253
1256
|
});
|
|
1254
1257
|
}
|
|
1255
1258
|
var Z = /* @__PURE__ */ new Map();
|
|
1256
|
-
function
|
|
1257
|
-
|
|
1259
|
+
function Sn() {
|
|
1260
|
+
bn.length = 0, vn.clear(), Z.clear();
|
|
1258
1261
|
}
|
|
1259
|
-
function
|
|
1260
|
-
let n =
|
|
1262
|
+
function Cn(e, t) {
|
|
1263
|
+
let n = wn(e);
|
|
1261
1264
|
return t === void 0 ? p(n) : p(n, t);
|
|
1262
1265
|
}
|
|
1263
|
-
function
|
|
1266
|
+
function wn(e, t) {
|
|
1264
1267
|
let n;
|
|
1265
|
-
return Z.has(e) ? n = Z.get(e) : (n = I([]), Z.set(e, n),
|
|
1268
|
+
return Z.has(e) ? n = Z.get(e) : (n = I([]), Z.set(e, n), xn(e).then((e) => {
|
|
1266
1269
|
n.value = e;
|
|
1267
|
-
})),
|
|
1270
|
+
})), S(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1268
1271
|
}
|
|
1269
|
-
function
|
|
1270
|
-
|
|
1272
|
+
function Tn(e) {
|
|
1273
|
+
vn.delete(e), Z.has(e) && xn(e).then((t) => {
|
|
1271
1274
|
Z.get(e).value = t;
|
|
1272
1275
|
});
|
|
1273
1276
|
}
|
|
1274
1277
|
//#endregion
|
|
1275
1278
|
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
1276
|
-
var
|
|
1279
|
+
var En = /* @__PURE__ */ O({
|
|
1277
1280
|
inheritAttrs: !1,
|
|
1278
1281
|
name: "TCheckboxGroup",
|
|
1279
1282
|
__name: "checkbox-group",
|
|
@@ -1300,17 +1303,17 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1300
1303
|
},
|
|
1301
1304
|
emits: ["update:modelValue"],
|
|
1302
1305
|
setup(e, { emit: t }) {
|
|
1303
|
-
let r = e, i = t, a =
|
|
1306
|
+
let r = e, i = t, a = k();
|
|
1304
1307
|
function o(e) {
|
|
1305
1308
|
a.exposed = e ?? {};
|
|
1306
1309
|
}
|
|
1307
|
-
let s =
|
|
1310
|
+
let s = S(() => {
|
|
1308
1311
|
let e;
|
|
1309
|
-
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e =
|
|
1312
|
+
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e = wn(r.dicCode).value) : e = typeof r.options == "string" ? oe(r.options).value : r.options, r.showCheckAll && (e === void 0 ? n.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
1310
1313
|
checkAll: !0,
|
|
1311
1314
|
label: "全选"
|
|
1312
1315
|
})), e;
|
|
1313
|
-
}), u =
|
|
1316
|
+
}), u = S(() => {
|
|
1314
1317
|
if (!Array.isArray(r.modelValue)) n.error("TCheckboxGroup: modelValue must be an array");
|
|
1315
1318
|
else if (s.value !== void 0) {
|
|
1316
1319
|
let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
|
|
@@ -1318,13 +1321,13 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1318
1321
|
if (t) return r.modelValue.map((e) => l(e) ? Number(e) : e);
|
|
1319
1322
|
}
|
|
1320
1323
|
return r.modelValue;
|
|
1321
|
-
}), d =
|
|
1324
|
+
}), d = S(() => {
|
|
1322
1325
|
let e = { ...r };
|
|
1323
1326
|
return delete e.dicCode, delete e.showCheckAll, Object.keys(e).forEach((t) => {
|
|
1324
1327
|
e[t] === void 0 && delete e[t];
|
|
1325
1328
|
}), e;
|
|
1326
1329
|
});
|
|
1327
|
-
return (e, t) => (F(),
|
|
1330
|
+
return (e, t) => (F(), C(z(A(V(Be), M(e.$attrs, {
|
|
1328
1331
|
...d.value,
|
|
1329
1332
|
options: s.value,
|
|
1330
1333
|
modelValue: u.value,
|
|
@@ -1334,7 +1337,7 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1334
1337
|
ref: o
|
|
1335
1338
|
}), e.$slots))));
|
|
1336
1339
|
}
|
|
1337
|
-
}),
|
|
1340
|
+
}), Dn = /* @__PURE__ */ O({
|
|
1338
1341
|
inheritAttrs: !1,
|
|
1339
1342
|
__name: "cron",
|
|
1340
1343
|
props: /*@__PURE__*/ j({
|
|
@@ -1385,7 +1388,7 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1385
1388
|
}, le),
|
|
1386
1389
|
emits: ["update:modelValue"],
|
|
1387
1390
|
setup(e, { emit: t }) {
|
|
1388
|
-
let n = e, r = t, i =
|
|
1391
|
+
let n = e, r = t, i = Te("isFormDisabled", S(() => !1)), a = Te("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1389
1392
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1390
1393
|
return {
|
|
1391
1394
|
...n,
|
|
@@ -1416,20 +1419,20 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1416
1419
|
variant: "text"
|
|
1417
1420
|
}) }
|
|
1418
1421
|
};
|
|
1419
|
-
}), s =
|
|
1422
|
+
}), s = Ne(), c = k();
|
|
1420
1423
|
function l(e) {
|
|
1421
1424
|
c.exposed = e ?? {};
|
|
1422
1425
|
}
|
|
1423
|
-
let u =
|
|
1426
|
+
let u = S(() => M(s, {
|
|
1424
1427
|
...o.value,
|
|
1425
1428
|
onChange: (...e) => {
|
|
1426
1429
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1427
1430
|
},
|
|
1428
1431
|
ref: l
|
|
1429
1432
|
}));
|
|
1430
|
-
return (e, t) => (F(),
|
|
1433
|
+
return (e, t) => (F(), C(V(ue), P(we(u.value)), null, 16));
|
|
1431
1434
|
}
|
|
1432
|
-
}),
|
|
1435
|
+
}), On = /* @__PURE__ */ O({
|
|
1433
1436
|
inheritAttrs: !1,
|
|
1434
1437
|
name: "TRadioGroup",
|
|
1435
1438
|
__name: "radio-group",
|
|
@@ -1459,16 +1462,16 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1459
1462
|
},
|
|
1460
1463
|
emits: ["update:modelValue"],
|
|
1461
1464
|
setup(e, { emit: t }) {
|
|
1462
|
-
let r = e, i = t, a =
|
|
1465
|
+
let r = e, i = t, a = k();
|
|
1463
1466
|
function o(e) {
|
|
1464
1467
|
a.exposed = e ?? {};
|
|
1465
1468
|
}
|
|
1466
|
-
let s =
|
|
1469
|
+
let s = S(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"), wn(r.dicCode).value) : typeof r.options == "string" ? oe(r.options).value : r.options), d = S(() => {
|
|
1467
1470
|
let e = { ...r };
|
|
1468
1471
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1469
1472
|
e[t] === void 0 && delete e[t];
|
|
1470
1473
|
}), e;
|
|
1471
|
-
}), f =
|
|
1474
|
+
}), f = S(() => {
|
|
1472
1475
|
if (s.value !== void 0 && !c(r.modelValue)) {
|
|
1473
1476
|
let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1474
1477
|
if (e) return u(r.modelValue);
|
|
@@ -1476,7 +1479,7 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1476
1479
|
}
|
|
1477
1480
|
return r.modelValue;
|
|
1478
1481
|
});
|
|
1479
|
-
return (e, t) => (F(),
|
|
1482
|
+
return (e, t) => (F(), C(z(A(V(tt), M(e.$attrs, {
|
|
1480
1483
|
...d.value,
|
|
1481
1484
|
options: s.value,
|
|
1482
1485
|
modelValue: f.value,
|
|
@@ -1487,7 +1490,7 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1487
1490
|
ref: o
|
|
1488
1491
|
}), e.$slots))));
|
|
1489
1492
|
}
|
|
1490
|
-
}),
|
|
1493
|
+
}), kn = {
|
|
1491
1494
|
clearable: !0,
|
|
1492
1495
|
disabled: void 0,
|
|
1493
1496
|
filterable: void 0,
|
|
@@ -1508,7 +1511,7 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1508
1511
|
}),
|
|
1509
1512
|
showArrow: !0,
|
|
1510
1513
|
showCheckAll: !1
|
|
1511
|
-
},
|
|
1514
|
+
}, An = /* @__PURE__ */ O({
|
|
1512
1515
|
inheritAttrs: !1,
|
|
1513
1516
|
name: "TSelect",
|
|
1514
1517
|
__name: "select",
|
|
@@ -1572,19 +1575,19 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1572
1575
|
onPopupVisibleChange: { type: Function },
|
|
1573
1576
|
onRemove: { type: Function },
|
|
1574
1577
|
onSearch: { type: Function }
|
|
1575
|
-
},
|
|
1578
|
+
}, kn),
|
|
1576
1579
|
setup(e) {
|
|
1577
|
-
let t = e, r =
|
|
1580
|
+
let t = e, r = k();
|
|
1578
1581
|
function i(e) {
|
|
1579
1582
|
r.exposed = e ?? {};
|
|
1580
1583
|
}
|
|
1581
|
-
let a =
|
|
1584
|
+
let a = S(() => {
|
|
1582
1585
|
let e;
|
|
1583
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ? oe(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e =
|
|
1586
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? oe(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e = wn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? n.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
1584
1587
|
checkAll: !0,
|
|
1585
1588
|
[t.keys?.label ?? "label"]: "全选"
|
|
1586
1589
|
}) : n.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
1587
|
-
}), o =
|
|
1590
|
+
}), o = S(() => {
|
|
1588
1591
|
if (a.value !== void 0) {
|
|
1589
1592
|
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");
|
|
1590
1593
|
if (t.multiple) {
|
|
@@ -1596,7 +1599,7 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1596
1599
|
else if (i) return l(t.modelValue) ? Number(t.modelValue) : t.modelValue;
|
|
1597
1600
|
}
|
|
1598
1601
|
return t.modelValue;
|
|
1599
|
-
}), s =
|
|
1602
|
+
}), s = S(() => {
|
|
1600
1603
|
let e = {
|
|
1601
1604
|
...t,
|
|
1602
1605
|
filterable: t.filterable ?? a.value.length > 8
|
|
@@ -1605,14 +1608,14 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1605
1608
|
e[t] === void 0 && delete e[t];
|
|
1606
1609
|
}), e;
|
|
1607
1610
|
}), d = I(0);
|
|
1608
|
-
|
|
1609
|
-
|
|
1611
|
+
Oe(() => {
|
|
1612
|
+
ft(r.exposed.$el, () => {
|
|
1610
1613
|
d.value = r.exposed.$el.offsetWidth;
|
|
1611
1614
|
}, { box: "border-box" });
|
|
1612
1615
|
});
|
|
1613
|
-
let f =
|
|
1616
|
+
let f = S(() => {
|
|
1614
1617
|
if (s.value.scroll?.type === "virtual" && a.value.length > (s.value.scroll?.threshold ?? 150)) return "300px";
|
|
1615
|
-
}), p =
|
|
1618
|
+
}), p = S(() => ({
|
|
1616
1619
|
...s.value,
|
|
1617
1620
|
modelValue: o.value,
|
|
1618
1621
|
onChange: (...e) => {
|
|
@@ -1630,13 +1633,13 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1630
1633
|
})
|
|
1631
1634
|
},
|
|
1632
1635
|
ref: i
|
|
1633
|
-
})), m =
|
|
1634
|
-
return (t, n) => e.adornment ? (F(),
|
|
1636
|
+
})), m = Ze;
|
|
1637
|
+
return (t, n) => e.adornment ? (F(), C(z(A(V(m), t.$attrs, {
|
|
1635
1638
|
...e.adornment,
|
|
1636
|
-
default: () => A(V(
|
|
1637
|
-
})), { key: 0 })) : (F(),
|
|
1639
|
+
default: () => A(V(nt), p.value, t.$slots)
|
|
1640
|
+
})), { key: 0 })) : (F(), C(z(A(V(nt), M(t.$attrs, p.value), t.$slots)), { key: 1 }));
|
|
1638
1641
|
}
|
|
1639
|
-
}),
|
|
1642
|
+
}), jn = /* @__PURE__ */ O({
|
|
1640
1643
|
inheritAttrs: !1,
|
|
1641
1644
|
__name: "select-sys-user",
|
|
1642
1645
|
props: /*@__PURE__*/ j({
|
|
@@ -1681,7 +1684,7 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1681
1684
|
}, me),
|
|
1682
1685
|
emits: ["update:modelValue"],
|
|
1683
1686
|
setup(e, { emit: t }) {
|
|
1684
|
-
let n = e, r = t, i =
|
|
1687
|
+
let n = e, r = t, i = Te("isFormDisabled", S(() => !1)), a = Te("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1685
1688
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1686
1689
|
return {
|
|
1687
1690
|
...n,
|
|
@@ -1711,11 +1714,11 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1711
1714
|
variant: "text"
|
|
1712
1715
|
}) }
|
|
1713
1716
|
};
|
|
1714
|
-
}), s =
|
|
1717
|
+
}), s = Ne(), c = k();
|
|
1715
1718
|
function l(e) {
|
|
1716
1719
|
c.exposed = e ?? {};
|
|
1717
1720
|
}
|
|
1718
|
-
let u =
|
|
1721
|
+
let u = S(() => M(s, {
|
|
1719
1722
|
...o.value,
|
|
1720
1723
|
inputProps: {
|
|
1721
1724
|
readonly: !0,
|
|
@@ -1727,12 +1730,12 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1727
1730
|
placeholder: "请选择用户",
|
|
1728
1731
|
ref: l
|
|
1729
1732
|
}));
|
|
1730
|
-
return (e, t) => (F(),
|
|
1731
|
-
tag: U(({ value: e }) => [
|
|
1733
|
+
return (e, t) => (F(), C(V(he), P(we(u.value)), {
|
|
1734
|
+
tag: U(({ value: e }) => [E(B(V(en)(e).value?.userName), 1)]),
|
|
1732
1735
|
_: 1
|
|
1733
1736
|
}, 16));
|
|
1734
1737
|
}
|
|
1735
|
-
}),
|
|
1738
|
+
}), Mn = {
|
|
1736
1739
|
checkable: !1,
|
|
1737
1740
|
disabled: void 0,
|
|
1738
1741
|
expandOnClickNode: void 0,
|
|
@@ -1751,7 +1754,7 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1751
1754
|
line: !0,
|
|
1752
1755
|
transition: !0,
|
|
1753
1756
|
valueMode: "all"
|
|
1754
|
-
},
|
|
1757
|
+
}, Nn = /* @__PURE__ */ O({
|
|
1755
1758
|
inheritAttrs: !1,
|
|
1756
1759
|
name: "TTree",
|
|
1757
1760
|
__name: "tree",
|
|
@@ -1808,23 +1811,23 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1808
1811
|
onLoad: { type: Function },
|
|
1809
1812
|
onScroll: { type: Function },
|
|
1810
1813
|
treeStore: {}
|
|
1811
|
-
},
|
|
1814
|
+
}, Mn),
|
|
1812
1815
|
setup(e, { expose: t }) {
|
|
1813
|
-
let n = e, r =
|
|
1816
|
+
let n = e, r = Pe(), i = S(() => {
|
|
1814
1817
|
let e = { ...n };
|
|
1815
1818
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1816
1819
|
e[t] === void 0 && delete e[t];
|
|
1817
1820
|
}), e;
|
|
1818
|
-
}), a =
|
|
1821
|
+
}), a = k();
|
|
1819
1822
|
function o(e) {
|
|
1820
1823
|
a.exposed = e ?? {};
|
|
1821
1824
|
}
|
|
1822
|
-
return t({}), (e, t) => (F(),
|
|
1825
|
+
return t({}), (e, t) => (F(), C(z(A(V(rt), M(e.$attrs, {
|
|
1823
1826
|
...i.value,
|
|
1824
1827
|
ref: o
|
|
1825
1828
|
}), e.$slots))));
|
|
1826
1829
|
}
|
|
1827
|
-
}),
|
|
1830
|
+
}), Pn = /* @__PURE__ */ O({
|
|
1828
1831
|
inheritAttrs: !1,
|
|
1829
1832
|
name: "TTreeSelect",
|
|
1830
1833
|
__name: "tree-select",
|
|
@@ -1891,30 +1894,30 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1891
1894
|
onSearch: {}
|
|
1892
1895
|
},
|
|
1893
1896
|
setup(e) {
|
|
1894
|
-
let t = e, n =
|
|
1897
|
+
let t = e, n = S(() => typeof t.data == "string" ? oe(t.data).value : t.data), r = S(() => {
|
|
1895
1898
|
let e = { ...t };
|
|
1896
1899
|
return e.selectInputProps = {
|
|
1897
1900
|
minCollapsedNum: 2,
|
|
1898
1901
|
...e.selectInputProps ?? {}
|
|
1899
1902
|
}, e.treeProps = {
|
|
1900
|
-
...
|
|
1903
|
+
...Mn,
|
|
1901
1904
|
checkable: !!t.multiple,
|
|
1902
1905
|
expandOnClickNode: !!t.multiple,
|
|
1903
|
-
icon:
|
|
1906
|
+
icon: Mn.icon(),
|
|
1904
1907
|
...e.treeProps ?? {}
|
|
1905
1908
|
}, Object.keys(e).forEach((t) => {
|
|
1906
1909
|
e[t] === void 0 && delete e[t];
|
|
1907
1910
|
}), e;
|
|
1908
|
-
}), i =
|
|
1911
|
+
}), i = k();
|
|
1909
1912
|
function a(e) {
|
|
1910
1913
|
i.exposed = e ?? {};
|
|
1911
1914
|
}
|
|
1912
1915
|
let o = I(0);
|
|
1913
|
-
return
|
|
1914
|
-
|
|
1916
|
+
return Oe(() => {
|
|
1917
|
+
ft(i.exposed.$el, () => {
|
|
1915
1918
|
o.value = i.exposed.$el.offsetWidth;
|
|
1916
1919
|
}, { box: "border-box" });
|
|
1917
|
-
}), (e, t) => (F(),
|
|
1920
|
+
}), (e, t) => (F(), C(z(A(V(it), M(e.$attrs, {
|
|
1918
1921
|
...r.value,
|
|
1919
1922
|
data: n.value,
|
|
1920
1923
|
ref: a,
|
|
@@ -1928,10 +1931,10 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1928
1931
|
}
|
|
1929
1932
|
}), e.$slots))));
|
|
1930
1933
|
}
|
|
1931
|
-
}),
|
|
1934
|
+
}), Fn = ".xlsx,.xls", In = { class: "flex items-center" }, Ln = {
|
|
1932
1935
|
key: 1,
|
|
1933
1936
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1934
|
-
},
|
|
1937
|
+
}, Rn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
1935
1938
|
inheritAttrs: !1,
|
|
1936
1939
|
name: "TUpload",
|
|
1937
1940
|
__name: "upload",
|
|
@@ -1940,7 +1943,7 @@ var Tn = /* @__PURE__ */ D({
|
|
|
1940
1943
|
"onUpdate:modelValue": {},
|
|
1941
1944
|
requestMethod: {},
|
|
1942
1945
|
abridgeName: {},
|
|
1943
|
-
accept: { default:
|
|
1946
|
+
accept: { default: Fn },
|
|
1944
1947
|
allowUploadDuplicateFile: { type: Boolean },
|
|
1945
1948
|
autoUpload: { type: Boolean },
|
|
1946
1949
|
beforeAllFilesUpload: {},
|
|
@@ -2000,7 +2003,7 @@ var Tn = /* @__PURE__ */ D({
|
|
|
2000
2003
|
onWaitingUploadFilesChange: {}
|
|
2001
2004
|
},
|
|
2002
2005
|
setup(e, { expose: t }) {
|
|
2003
|
-
let n = e, r =
|
|
2006
|
+
let n = e, r = S(() => {
|
|
2004
2007
|
if (n.requestMethod !== void 0) return (e) => new Promise((t) => {
|
|
2005
2008
|
typeof n.requestMethod == "function" ? n.requestMethod(e).then((e) => {
|
|
2006
2009
|
t({
|
|
@@ -2033,44 +2036,44 @@ var Tn = /* @__PURE__ */ D({
|
|
|
2033
2036
|
function i() {
|
|
2034
2037
|
typeof n.downloadTemplate == "string" ? f(n.downloadTemplate) : n.downloadTemplate.send();
|
|
2035
2038
|
}
|
|
2036
|
-
let a =
|
|
2039
|
+
let a = S(() => {
|
|
2037
2040
|
let e = { ...n };
|
|
2038
2041
|
return ["image", "image-flow"].includes(e.theme) && (e.accept = e.accept === ".xlsx,.xls" ? "image/*" : e.accept), Object.keys(e).forEach((t) => {
|
|
2039
2042
|
e[t] === void 0 && delete e[t];
|
|
2040
2043
|
}), delete e.downloadTemplate, e.theme === "file" && delete e.tips, e;
|
|
2041
|
-
}), o =
|
|
2044
|
+
}), o = k();
|
|
2042
2045
|
function s(e) {
|
|
2043
2046
|
o.exposed = e ?? {};
|
|
2044
2047
|
}
|
|
2045
|
-
return t({}), (t, o) => (F(),
|
|
2048
|
+
return t({}), (t, o) => (F(), C(z(A(V(at), M(t.$attrs, {
|
|
2046
2049
|
...a.value,
|
|
2047
2050
|
requestMethod: r.value,
|
|
2048
2051
|
ref: s
|
|
2049
2052
|
}, { class: a.value.theme }))), null, Se({ _: 2 }, [L(Object.keys(t.$slots), (e) => ({
|
|
2050
2053
|
name: e,
|
|
2051
|
-
fn: U((n) => [R(t.$slots, e, P(
|
|
2054
|
+
fn: U((n) => [R(t.$slots, e, P(we(n)), void 0, !0)])
|
|
2052
2055
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
2053
2056
|
name: "trigger",
|
|
2054
|
-
fn: U(({ files: t }) => [xe("div",
|
|
2055
|
-
|
|
2056
|
-
default: U(() => [
|
|
2057
|
+
fn: U(({ files: t }) => [xe("div", In, [
|
|
2058
|
+
D(V($), { theme: "primary" }, {
|
|
2059
|
+
default: U(() => [E(B(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
2057
2060
|
_: 2
|
|
2058
2061
|
}, 1024),
|
|
2059
|
-
e.downloadTemplate ? (F(),
|
|
2062
|
+
e.downloadTemplate ? (F(), C(V($), {
|
|
2060
2063
|
key: 0,
|
|
2061
2064
|
theme: "primary",
|
|
2062
2065
|
variant: "outline",
|
|
2063
|
-
onClick:
|
|
2066
|
+
onClick: Ie(i, ["stop"])
|
|
2064
2067
|
}, {
|
|
2065
|
-
default: U(() => [...o[0] ||= [
|
|
2068
|
+
default: U(() => [...o[0] ||= [E("下载模板", -1)]]),
|
|
2066
2069
|
_: 1
|
|
2067
|
-
})) :
|
|
2068
|
-
n.tips ? (F(),
|
|
2070
|
+
})) : w("v-if", !0),
|
|
2071
|
+
n.tips ? (F(), T("span", Ln, B(n.tips), 1)) : w("v-if", !0)
|
|
2069
2072
|
])]),
|
|
2070
2073
|
key: "0"
|
|
2071
2074
|
} : void 0]), 1024));
|
|
2072
2075
|
}
|
|
2073
|
-
}), [["__scopeId", "data-v-51889a3b"]]),
|
|
2076
|
+
}), [["__scopeId", "data-v-51889a3b"]]), zn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
2074
2077
|
inheritAttrs: !1,
|
|
2075
2078
|
name: "TForm",
|
|
2076
2079
|
__name: "form",
|
|
@@ -2098,9 +2101,9 @@ var Tn = /* @__PURE__ */ D({
|
|
|
2098
2101
|
onReset: { type: Function },
|
|
2099
2102
|
onSubmit: { type: Function },
|
|
2100
2103
|
onValidate: { type: Function }
|
|
2101
|
-
},
|
|
2104
|
+
}, Ot),
|
|
2102
2105
|
setup(e, { expose: t }) {
|
|
2103
|
-
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } =
|
|
2106
|
+
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = gt, s = k(), l = I(null), u = S(() => r.items.map((e) => {
|
|
2104
2107
|
if (typeof e.__others == "function") {
|
|
2105
2108
|
let t = {
|
|
2106
2109
|
...e,
|
|
@@ -2148,23 +2151,23 @@ var Tn = /* @__PURE__ */ D({
|
|
|
2148
2151
|
});
|
|
2149
2152
|
let f = /* @__PURE__ */ new Map(), p = {
|
|
2150
2153
|
TCheckbox: a,
|
|
2151
|
-
TCheckboxGroup:
|
|
2154
|
+
TCheckboxGroup: En,
|
|
2152
2155
|
TColorPicker: ce,
|
|
2153
|
-
TCron:
|
|
2156
|
+
TCron: Dn,
|
|
2154
2157
|
TDatePicker: de,
|
|
2155
2158
|
TInput: ue,
|
|
2156
2159
|
TInputNumber: fe,
|
|
2157
|
-
TRadioGroup:
|
|
2160
|
+
TRadioGroup: On,
|
|
2158
2161
|
TRangeInput: pe,
|
|
2159
|
-
TSelect:
|
|
2160
|
-
TSelectSysUser:
|
|
2162
|
+
TSelect: An,
|
|
2163
|
+
TSelectSysUser: jn,
|
|
2161
2164
|
TSlider: ge,
|
|
2162
2165
|
TSwitch: _e,
|
|
2163
2166
|
TTagInput: he,
|
|
2164
2167
|
TTextarea: ve,
|
|
2165
|
-
TTree:
|
|
2166
|
-
TTreeSelect:
|
|
2167
|
-
TUpload:
|
|
2168
|
+
TTree: Nn,
|
|
2169
|
+
TTreeSelect: Pn,
|
|
2170
|
+
TUpload: Rn
|
|
2168
2171
|
};
|
|
2169
2172
|
function h(e) {
|
|
2170
2173
|
return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e, Ce(o.get(e))), f.get(e)) : p[e] : ue;
|
|
@@ -2197,7 +2200,7 @@ var Tn = /* @__PURE__ */ D({
|
|
|
2197
2200
|
whitespace: !0
|
|
2198
2201
|
}), t;
|
|
2199
2202
|
}
|
|
2200
|
-
let v =
|
|
2203
|
+
let v = S(() => {
|
|
2201
2204
|
let e = { ...r };
|
|
2202
2205
|
if (e.rules !== void 0) {
|
|
2203
2206
|
let t = {};
|
|
@@ -2270,16 +2273,16 @@ var Tn = /* @__PURE__ */ D({
|
|
|
2270
2273
|
let t = e ?? {};
|
|
2271
2274
|
l.value = t, s.exposed = t;
|
|
2272
2275
|
}
|
|
2273
|
-
let b =
|
|
2274
|
-
|
|
2275
|
-
b.value = s.exposed.$el.getElementsByClassName("t-form__label"), te(),
|
|
2276
|
+
let b = Me();
|
|
2277
|
+
Oe(() => {
|
|
2278
|
+
b.value = s.exposed.$el.getElementsByClassName("t-form__label"), te(), dt(s.exposed.$el, () => {
|
|
2276
2279
|
te();
|
|
2277
2280
|
}, {
|
|
2278
2281
|
attributeFilter: ["class"],
|
|
2279
2282
|
characterData: !0,
|
|
2280
2283
|
childList: !0,
|
|
2281
2284
|
subtree: !0
|
|
2282
|
-
}),
|
|
2285
|
+
}), ft(s.exposed.$el, () => {
|
|
2283
2286
|
te();
|
|
2284
2287
|
});
|
|
2285
2288
|
});
|
|
@@ -2295,12 +2298,12 @@ var Tn = /* @__PURE__ */ D({
|
|
|
2295
2298
|
e.style.minWidth = `${t}px`;
|
|
2296
2299
|
});
|
|
2297
2300
|
}
|
|
2298
|
-
return
|
|
2301
|
+
return ke("formData", r.data), ke("formExposed", l), ke("isFormDisabled", S(() => r.disabled)), ke("isFormReadonly", S(() => r.readonly)), t({}), (t, n) => (F(), T(x, null, [w(" eslint-disable vue/no-mutating-props "), (F(), C(z(V(qe)), M(M(t.$attrs, {
|
|
2299
2302
|
...v.value,
|
|
2300
2303
|
ref: ee
|
|
2301
2304
|
}), { "label-width": "fit-content" }), {
|
|
2302
|
-
default: U(() => [(F(!0),
|
|
2303
|
-
default: U(() => [n.slot ? R(t.$slots, n.slot, {}, void 0, !0, 0) : (F(),
|
|
2305
|
+
default: U(() => [(F(!0), T(x, null, L(u.value.filter((e) => e.show !== !1), (n) => (F(), C(V(Je), M({ key: n.model ?? n.slot }, { ref_for: !0 }, M({ ..._(n) }, { class: { no_label_item: V(c)(n._label) } }), { name: n.model }), {
|
|
2306
|
+
default: U(() => [n.slot ? R(t.$slots, n.slot, {}, void 0, !0, 0) : (F(), C(z(h(n.component)), M({
|
|
2304
2307
|
key: 1,
|
|
2305
2308
|
modelValue: e.data[n.model],
|
|
2306
2309
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
@@ -2310,7 +2313,7 @@ var Tn = /* @__PURE__ */ D({
|
|
|
2310
2313
|
_: 3
|
|
2311
2314
|
}, 16))], 2112));
|
|
2312
2315
|
}
|
|
2313
|
-
}), [["__scopeId", "data-v-95c0d8f5"]]),
|
|
2316
|
+
}), [["__scopeId", "data-v-95c0d8f5"]]), Bn = /* @__PURE__ */ O({
|
|
2314
2317
|
__name: "ResetPwd",
|
|
2315
2318
|
props: { showFooter: {
|
|
2316
2319
|
type: Boolean,
|
|
@@ -2348,7 +2351,7 @@ var Tn = /* @__PURE__ */ D({
|
|
|
2348
2351
|
type: "password"
|
|
2349
2352
|
},
|
|
2350
2353
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
2351
|
-
], i =
|
|
2354
|
+
], i = Fe("form");
|
|
2352
2355
|
function a() {
|
|
2353
2356
|
q().close(n.name);
|
|
2354
2357
|
}
|
|
@@ -2363,23 +2366,23 @@ var Tn = /* @__PURE__ */ D({
|
|
|
2363
2366
|
newPassword: e.newPassword,
|
|
2364
2367
|
oldPassword: e.oldPassword
|
|
2365
2368
|
}
|
|
2366
|
-
}),
|
|
2369
|
+
}), rn().logout();
|
|
2367
2370
|
}
|
|
2368
|
-
return t({ handleSubmit: c }), (e, t) => (F(),
|
|
2371
|
+
return t({ handleSubmit: c }), (e, t) => (F(), C(V(zn), {
|
|
2369
2372
|
ref: "form",
|
|
2370
2373
|
items: r,
|
|
2371
2374
|
"label-align": "right",
|
|
2372
2375
|
layout: "vertical"
|
|
2373
2376
|
}, {
|
|
2374
|
-
footer: U(() => [
|
|
2375
|
-
default: U(() => [...t[0] ||= [
|
|
2377
|
+
footer: U(() => [D(V($), { onClick: c }, {
|
|
2378
|
+
default: U(() => [...t[0] ||= [E("保存", -1)]]),
|
|
2376
2379
|
_: 1
|
|
2377
|
-
}),
|
|
2380
|
+
}), D(V($), {
|
|
2378
2381
|
class: "ml-4!",
|
|
2379
2382
|
theme: "default",
|
|
2380
2383
|
onClick: a
|
|
2381
2384
|
}, {
|
|
2382
|
-
default: U(() => [...t[1] ||= [
|
|
2385
|
+
default: U(() => [...t[1] ||= [E("关闭", -1)]]),
|
|
2383
2386
|
_: 1
|
|
2384
2387
|
})]),
|
|
2385
2388
|
_: 1
|
|
@@ -2388,35 +2391,35 @@ var Tn = /* @__PURE__ */ D({
|
|
|
2388
2391
|
});
|
|
2389
2392
|
//#endregion
|
|
2390
2393
|
//#region ../../packages/dlzn-ui/store/modules/user.ts
|
|
2391
|
-
function
|
|
2394
|
+
function Vn() {
|
|
2392
2395
|
return X.Get("getInfo", { meta: {
|
|
2393
2396
|
useFailMsg: "获取用户信息失败",
|
|
2394
2397
|
useLoading: "正在获取用户信息..."
|
|
2395
2398
|
} });
|
|
2396
2399
|
}
|
|
2397
|
-
var
|
|
2400
|
+
var Hn = {
|
|
2398
2401
|
admin: !1,
|
|
2399
2402
|
dept: { deptName: "" },
|
|
2400
2403
|
needChangePwd: 0,
|
|
2401
2404
|
nickName: "",
|
|
2402
2405
|
userId: "",
|
|
2403
2406
|
userName: "",
|
|
2404
|
-
...
|
|
2405
|
-
}, Q =
|
|
2406
|
-
let e = I(
|
|
2407
|
+
...gt.defaultUserInfo ?? {}
|
|
2408
|
+
}, Q = ht("user", () => {
|
|
2409
|
+
let e = I(pt(Hn)), t = I([]), n = I([]);
|
|
2407
2410
|
function r() {
|
|
2408
|
-
e.value =
|
|
2411
|
+
e.value = pt(Hn), t.value = [], n.value = [];
|
|
2409
2412
|
}
|
|
2410
|
-
let i =
|
|
2413
|
+
let i = S(() => e.value.admin), a = I("");
|
|
2411
2414
|
async function o(r = !0) {
|
|
2412
|
-
let i = await
|
|
2413
|
-
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
|
|
2415
|
+
let i = await Vn();
|
|
2416
|
+
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 Wt().getRouters();
|
|
2414
2417
|
}
|
|
2415
2418
|
H(() => e.value.needChangePwd, (e) => {
|
|
2416
2419
|
e === 1 && VITE_FORCE_PWD_CHANGE && N(() => {
|
|
2417
2420
|
let e = I(null);
|
|
2418
2421
|
G({
|
|
2419
|
-
body: () => A(
|
|
2422
|
+
body: () => A(Bn, {
|
|
2420
2423
|
labelAlign: "top",
|
|
2421
2424
|
ref: e,
|
|
2422
2425
|
showFooter: !1
|
|
@@ -2447,7 +2450,7 @@ var Vn = {
|
|
|
2447
2450
|
roles: n,
|
|
2448
2451
|
userInfo: e
|
|
2449
2452
|
};
|
|
2450
|
-
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ b(/* @__PURE__ */
|
|
2453
|
+
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
2451
2454
|
inheritAttrs: !1,
|
|
2452
2455
|
name: "TButton",
|
|
2453
2456
|
__name: "button",
|
|
@@ -2488,7 +2491,7 @@ var Vn = {
|
|
|
2488
2491
|
Object,
|
|
2489
2492
|
Array
|
|
2490
2493
|
] }
|
|
2491
|
-
},
|
|
2494
|
+
}, Dt),
|
|
2492
2495
|
setup(n) {
|
|
2493
2496
|
let r = n, a = I("");
|
|
2494
2497
|
function o() {
|
|
@@ -2512,7 +2515,7 @@ var Vn = {
|
|
|
2512
2515
|
}
|
|
2513
2516
|
return t;
|
|
2514
2517
|
}
|
|
2515
|
-
let s = I(!1), c = i.isLoading, l = I(null), { focused: u } =
|
|
2518
|
+
let s = I(!1), c = i.isLoading, l = I(null), { focused: u } = ut(l), d, f;
|
|
2516
2519
|
H(c, (e) => {
|
|
2517
2520
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2518
2521
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
@@ -2522,7 +2525,7 @@ var Vn = {
|
|
|
2522
2525
|
}, { immediate: !0 }), H(u, (e) => {
|
|
2523
2526
|
e && c.value && (s.value = !0);
|
|
2524
2527
|
});
|
|
2525
|
-
let p =
|
|
2528
|
+
let p = S(() => r.loading === void 0 ? r.autoLoading ? s.value : !1 : r.loading), m = S(() => {
|
|
2526
2529
|
let e = {
|
|
2527
2530
|
...r,
|
|
2528
2531
|
...o(),
|
|
@@ -2531,7 +2534,7 @@ var Vn = {
|
|
|
2531
2534
|
return Object.keys(e).forEach((t) => {
|
|
2532
2535
|
e[t] === void 0 && delete e[t];
|
|
2533
2536
|
}), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
|
|
2534
|
-
}), h =
|
|
2537
|
+
}), h = k();
|
|
2535
2538
|
function g(e) {
|
|
2536
2539
|
let t = e ?? {};
|
|
2537
2540
|
h.exposed = t, l.value = t.$el;
|
|
@@ -2539,7 +2542,7 @@ var Vn = {
|
|
|
2539
2542
|
function _() {
|
|
2540
2543
|
a.value = l.value?.textContent ?? "";
|
|
2541
2544
|
}
|
|
2542
|
-
let v =
|
|
2545
|
+
let v = S(() => {
|
|
2543
2546
|
if (!r.autoIcon || a.value.trim() === "") return;
|
|
2544
2547
|
let e = {
|
|
2545
2548
|
"mdi:plus": [
|
|
@@ -2604,10 +2607,10 @@ var Vn = {
|
|
|
2604
2607
|
break;
|
|
2605
2608
|
}
|
|
2606
2609
|
if (t !== void 0) return t;
|
|
2607
|
-
}), y =
|
|
2610
|
+
}), y = Ne(), ee = S(() => M(y, {
|
|
2608
2611
|
...m.value,
|
|
2609
2612
|
ref: g
|
|
2610
|
-
}, { class: "flex-shrink-0" })), b =
|
|
2613
|
+
}, { class: "flex-shrink-0" })), b = S(() => {
|
|
2611
2614
|
if (r.popconfirm) return {
|
|
2612
2615
|
...r.popconfirm,
|
|
2613
2616
|
onVisibleChange: (...e) => {
|
|
@@ -2615,33 +2618,33 @@ var Vn = {
|
|
|
2615
2618
|
}
|
|
2616
2619
|
};
|
|
2617
2620
|
});
|
|
2618
|
-
return (r, i) => V(Q)().checkPermissions(n.permission) ? (F(),
|
|
2619
|
-
default: U(() => [(F(),
|
|
2621
|
+
return (r, i) => V(Q)().checkPermissions(n.permission) ? (F(), T(x, { key: 0 }, [b.value ? (F(), C(V(t), P(M({ key: 0 }, b.value)), {
|
|
2622
|
+
default: U(() => [(F(), C(z(A(V(ze), ee.value)), {
|
|
2620
2623
|
onVnodeMounted: _,
|
|
2621
2624
|
onVnodeUpdated: _
|
|
2622
2625
|
}, Se({ _: 2 }, [n.icon || v.value ? {
|
|
2623
2626
|
name: "icon",
|
|
2624
|
-
fn: U(() => [
|
|
2627
|
+
fn: U(() => [D(V(e), { icon: n.icon || v.value }, null, 8, ["icon"])]),
|
|
2625
2628
|
key: "0"
|
|
2626
2629
|
} : void 0, L(Object.keys(r.$slots), (e) => ({
|
|
2627
2630
|
name: e,
|
|
2628
|
-
fn: U((t) => [R(r.$slots, e, P(
|
|
2631
|
+
fn: U((t) => [R(r.$slots, e, P(we(t)), void 0, !0)])
|
|
2629
2632
|
}))]), 1536))]),
|
|
2630
2633
|
_: 3
|
|
2631
|
-
}, 16)) : (F(),
|
|
2634
|
+
}, 16)) : (F(), C(z(A(V(ze), ee.value)), {
|
|
2632
2635
|
key: 1,
|
|
2633
2636
|
onVnodeMounted: _,
|
|
2634
2637
|
onVnodeUpdated: _
|
|
2635
2638
|
}, Se({ _: 2 }, [n.icon || v.value ? {
|
|
2636
2639
|
name: "icon",
|
|
2637
|
-
fn: U(() => [
|
|
2640
|
+
fn: U(() => [D(V(e), { icon: n.icon || v.value }, null, 8, ["icon"])]),
|
|
2638
2641
|
key: "0"
|
|
2639
2642
|
} : void 0, L(Object.keys(r.$slots), (e) => ({
|
|
2640
2643
|
name: e,
|
|
2641
|
-
fn: U((t) => [R(r.$slots, e, P(
|
|
2642
|
-
}))]), 1536))], 64)) :
|
|
2644
|
+
fn: U((t) => [R(r.$slots, e, P(we(t)), void 0, !0)])
|
|
2645
|
+
}))]), 1536))], 64)) : w("v-if", !0);
|
|
2643
2646
|
}
|
|
2644
|
-
}), [["__scopeId", "data-v-af27d302"]]),
|
|
2647
|
+
}), [["__scopeId", "data-v-af27d302"]]), Un = /* @__PURE__ */ O({
|
|
2645
2648
|
name: "TProvider",
|
|
2646
2649
|
__name: "Provider",
|
|
2647
2650
|
setup(e) {
|
|
@@ -2663,13 +2666,13 @@ var Vn = {
|
|
|
2663
2666
|
variant: "text"
|
|
2664
2667
|
})
|
|
2665
2668
|
} };
|
|
2666
|
-
return (e, n) => (F(),
|
|
2669
|
+
return (e, n) => (F(), C(V(ot), {
|
|
2667
2670
|
"empty-values": [""],
|
|
2668
|
-
locale: V(
|
|
2671
|
+
locale: V(Et),
|
|
2669
2672
|
"value-on-clear": "",
|
|
2670
2673
|
"z-index": 5500
|
|
2671
2674
|
}, {
|
|
2672
|
-
default: U(() => [
|
|
2675
|
+
default: U(() => [D(V(Ve), { "global-config": t }, {
|
|
2673
2676
|
default: U(() => [R(e.$slots, "default")]),
|
|
2674
2677
|
_: 3
|
|
2675
2678
|
})]),
|
|
@@ -2678,4 +2681,4 @@ var Vn = {
|
|
|
2678
2681
|
}
|
|
2679
2682
|
});
|
|
2680
2683
|
//#endregion
|
|
2681
|
-
export {
|
|
2684
|
+
export { on as A, K as B, hn as C, Y as D, dn as E, qt as F, Ot as G, Pt as H, Kt as I, Dt as K, It as L, Qt as M, $t as N, un as O, en as P, Wt as R, X as S, fn as T, At as U, G as V, kt as W, En as _, Bn as a, wn as b, Fn as c, Mn as d, jn as f, Dn as g, On as h, Q as i, rn as j, sn as k, Pn as l, kn as m, $ as n, zn as o, An as p, Vn as r, Rn as s, Un as t, Nn as u, Sn as v, gn as w, Tn as x, Cn as y, q as z };
|