dlzn-ui 2.0.88 → 2.0.90
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/table-Dq4nevWy.css +1 -0
- package/chunks/{AssignUser-CBq40k_h.mjs → AssignUser-C1TJqI7T.mjs} +3 -3
- package/chunks/{BasicInfo-BvKBHQyo.mjs → BasicInfo-ieKCaGwH.mjs} +1 -1
- package/chunks/{ColumnInfo-DfdyRhPB.mjs → ColumnInfo-BhkorfJI.mjs} +2 -2
- package/chunks/{Common-DgFtn6uk.mjs → Common-BvSQiKo2.mjs} +1 -1
- package/chunks/{Day-D57OuSr1.mjs → Day-CTBFWJIV.mjs} +1 -1
- package/chunks/{DictTypeDetail-DCOljFJR.mjs → DictTypeDetail-BgfdUvJ-.mjs} +2 -2
- package/chunks/{GenInfo-Cpjb07t9.mjs → GenInfo-hM-odgqv.mjs} +1 -1
- package/chunks/{Hour-C2kHsnWx.mjs → Hour-BCoOdrBX.mjs} +1 -1
- package/chunks/{Import-BZyaz6ej.mjs → Import-DXsRyeub.mjs} +2 -2
- package/chunks/{Index-BLw1K1xl.mjs → Index-C8rKiUnc.mjs} +1 -1
- package/chunks/{Index-C_Gf0Jgf.mjs → Index-CrYhNcWE.mjs} +1 -1
- package/chunks/{Index-BHTir2BG.mjs → Index-DZAUiAs7.mjs} +1 -1
- package/chunks/{Index-qbd9CTh4.mjs → Index-_rLBm48m.mjs} +1 -1
- package/chunks/{IndexItem-COlhUIdm.mjs → IndexItem-BERW_4wf.mjs} +1 -1
- package/chunks/{Log--6mSFdDa.mjs → Log-BgqKjZhH.mjs} +5 -7
- package/chunks/{LoginBg-DBc-wBJI.mjs → LoginBg-DbmOre6P.mjs} +1 -1
- package/chunks/{Minute-cq4gHso5.mjs → Minute-Br6DyEnJ.mjs} +1 -1
- package/chunks/{Month-RO9Bk7PX.mjs → Month-BSkP_NNE.mjs} +1 -1
- package/chunks/{Preview-Gx0BbBT4.mjs → Preview-Dq6tVW4P.mjs} +1 -1
- package/chunks/{Second-CKdMmksB.mjs → Second-BaOHtpcm.mjs} +1 -1
- package/chunks/{SelectDept-BPAzWxOq.mjs → SelectDept-JdE01RJl.mjs} +1 -1
- package/chunks/{SelectMenu-C8m9RvV3.mjs → SelectMenu-CBGt2RrU.mjs} +1 -1
- package/chunks/{SelectUser-DGyPbCbP.mjs → SelectUser-CQpx2HzJ.mjs} +2 -2
- package/chunks/{UserInfo-CDNoS8Vd.mjs → UserInfo-tWIden6Y.mjs} +1 -1
- package/chunks/{app-Cd7qvZaM.mjs → app-dUSiq7Ru.mjs} +1 -1
- package/chunks/{custom-page-list-DWqks1x-.mjs → custom-page-list-CUeAAYEa.mjs} +4 -4
- package/chunks/{custom-page-table-BsTYXR3M.mjs → custom-page-table-C-gi7OGt.mjs} +2 -2
- package/chunks/{job-CUY-MY_i.mjs → job-DnYhSDP4.mjs} +3 -3
- package/chunks/{overview-ub_GTqi8.mjs → overview-D_tbwhqT.mjs} +1 -1
- package/chunks/{page-list-Cigr4VQZ.mjs → page-list-VSe1LOfK.mjs} +3 -3
- package/chunks/page-query-8XmyQiCK.mjs +119 -0
- package/chunks/{page-table-B576pyOx.mjs → page-table-BdNBjt_k.mjs} +4 -4
- package/chunks/{pagination-D9VeheYA.mjs → pagination-BOb4D8uP.mjs} +1 -1
- package/chunks/{provider-BeVE1nWg.mjs → provider-CQbOYjc5.mjs} +237 -237
- package/chunks/{table-D1Jknq-w.mjs → table-BEeznK4Y.mjs} +40 -42
- 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/src/checkbox.vue.d.ts +2 -2
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/date-picker/src/date-picker.vue.d.ts +2 -2
- 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-list/src/page-list.vue.d.ts +403 -0
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-query/src/page-query.vue.d.ts +1 -2
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/page-table/src/page-table.vue.d.ts +319 -0
- 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.d.ts +6 -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/useMountedPromise/index.d.ts +2 -0
- package/hooks/useMountedPromise/index.mjs +14 -0
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +2 -2
- package/layout/Home1.mjs +1 -1
- 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 +2 -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 +19 -21
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Checkbox/Index.vue.d.ts +4 -4
- 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 +27 -27
- 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
- package/assets/table-D9WewhPF.css +0 -1
- package/chunks/page-query-BmWKqp80.mjs +0 -121
|
@@ -49,20 +49,20 @@ import { t as ge } from "./switch-BByqwNgy.mjs";
|
|
|
49
49
|
import "../components/textarea/index.mjs";
|
|
50
50
|
import { t as _e } from "./textarea-C9VbFXpr.mjs";
|
|
51
51
|
import { passwordReg as ve, passwordRegMessage as ye } from "../constants/regs.mjs";
|
|
52
|
-
import { Fragment as be, KeepAlive as xe, Suspense as Se, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as Ce, createSlots as we, createTextVNode as w, createVNode as T, defineAsyncComponent as Te, defineComponent as E, getCurrentInstance as D, guardReactiveProps as O, h as k, inject as Ee, markRaw as De, mergeDefaults as A, mergeProps as j,
|
|
53
|
-
import { Breadcrumb as
|
|
54
|
-
import { ElConfigProvider as
|
|
55
|
-
import { useElementSize as
|
|
56
|
-
import { cloneDeep as
|
|
52
|
+
import { Fragment as be, KeepAlive as xe, Suspense as Se, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as Ce, createSlots as we, createTextVNode as w, createVNode as T, defineAsyncComponent as Te, defineComponent as E, getCurrentInstance as D, guardReactiveProps as O, h as k, inject as Ee, markRaw as De, mergeDefaults as A, mergeProps as j, normalizeClass as Oe, normalizeProps as M, onMounted as ke, openBlock as N, provide as Ae, reactive as je, ref as P, renderList as F, renderSlot as Me, resolveComponent as Ne, resolveDynamicComponent as I, shallowRef as Pe, toDisplayString as L, unref as R, useAttrs as Fe, useSlots as Ie, useTemplateRef as Le, watch as z, withCtx as B, withModifiers as Re } from "vue";
|
|
53
|
+
import { Breadcrumb as ze, BreadcrumbItem as Be, Button as Ve, CheckboxGroup as He, ConfigProvider as Ue, Content as We, Dialog as Ge, DialogPlugin as Ke, Drawer as qe, DrawerPlugin as Je, Form as Ye, FormItem as Xe, HeadMenu as Ze, Header as Qe, InputAdornment as $e, Layout as et, Menu as tt, MenuItem as nt, RadioGroup as rt, Select as it, Tree as at, TreeSelect as ot, Upload as st } from "tdesign-vue-next";
|
|
54
|
+
import { ElConfigProvider as ct } from "element-plus";
|
|
55
|
+
import { useElementSize as lt, useElementVisibility as ut, useFavicon as dt, useFocus as ft, useMutationObserver as pt, useResizeObserver as mt } from "@vueuse/core";
|
|
56
|
+
import { cloneDeep as ht, isPlainObject as gt } from "lodash-es";
|
|
57
57
|
import { defineStore as V } from "pinia";
|
|
58
|
-
import
|
|
59
|
-
import { NavigationFailureType as
|
|
60
|
-
import { createAlova as
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
58
|
+
import _t from "virtual:dlzn-ui/app-params";
|
|
59
|
+
import { NavigationFailureType as vt, createRouter as yt, createWebHistory as bt, isNavigationFailure as xt, useRoute as H, useRouter as U } 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
|
// ../../node_modules/.pnpm/element-plus@2.14.8_vue@3.5.45/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 Dt = {
|
|
|
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: () => je({}),
|
|
255
255
|
disabled: !1,
|
|
256
256
|
labelAlign: "top",
|
|
257
257
|
layout: "inline",
|
|
@@ -261,7 +261,7 @@ var Dt = {
|
|
|
261
261
|
requiredMark: void 0,
|
|
262
262
|
resetType: "initial",
|
|
263
263
|
showErrorMessage: !0
|
|
264
|
-
},
|
|
264
|
+
}, kt = {
|
|
265
265
|
closeBtn: () => k($, {
|
|
266
266
|
icon: "mdi:close",
|
|
267
267
|
shape: "circle",
|
|
@@ -282,7 +282,7 @@ var Dt = {
|
|
|
282
282
|
preventScrollThrough: !0,
|
|
283
283
|
showOverlay: !0,
|
|
284
284
|
width: "fit-content"
|
|
285
|
-
},
|
|
285
|
+
}, At = /* @__PURE__ */ E({
|
|
286
286
|
inheritAttrs: !1,
|
|
287
287
|
name: "TDialog",
|
|
288
288
|
__name: "dialog",
|
|
@@ -329,9 +329,9 @@ var Dt = {
|
|
|
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) {
|
|
@@ -344,54 +344,54 @@ var Dt = {
|
|
|
344
344
|
function i(e) {
|
|
345
345
|
r.exposed = e ?? {};
|
|
346
346
|
}
|
|
347
|
-
return (e, t) => (N(), x(I(k(R(
|
|
347
|
+
return (e, t) => (N(), x(I(k(R(Ge), j(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 r = b(() => typeof t.body == "function" ? t.body(k) : t.body), i = P(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: a, stop: s } =
|
|
354
|
+
}(jt || {}), Mt = /* @__PURE__ */ new Set();
|
|
355
|
+
function Nt(e, t, n) {
|
|
356
|
+
let r = b(() => typeof t.body == "function" ? t.body(k) : t.body), i = P(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: a, stop: s } = ut(i, {
|
|
357
357
|
controls: !0,
|
|
358
358
|
initialValue: !0
|
|
359
359
|
}), c = {
|
|
360
|
-
...
|
|
360
|
+
...kt,
|
|
361
361
|
closeWhenCloseAll: !0,
|
|
362
362
|
...t ?? {},
|
|
363
|
-
body: () => k(
|
|
363
|
+
body: () => k(Hn, {}, { default: () => r.value })
|
|
364
364
|
}, l, u = {
|
|
365
365
|
...c,
|
|
366
366
|
onClosed: () => {
|
|
367
|
-
i.value !== null && a.value && i.value.focus(), s(), c.onClosed?.(),
|
|
367
|
+
i.value !== null && a.value && i.value.focus(), s(), c.onClosed?.(), Mt.delete(l);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
delete u.closeWhenCloseAll;
|
|
371
371
|
let d = o();
|
|
372
|
-
return l = e === void 0 ?
|
|
372
|
+
return l = e === void 0 ? Ke(u, n ?? d) : Ke[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
|
// ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
385
385
|
var W = (e, t) => {
|
|
386
386
|
let n = { ...typeof e == "string" ? {} : e };
|
|
387
387
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
388
|
-
let a =
|
|
388
|
+
let a = Pt(typeof e == "string" ? {
|
|
389
389
|
body: e,
|
|
390
390
|
onConfirm: () => {
|
|
391
391
|
a.hide(), r();
|
|
392
392
|
},
|
|
393
393
|
theme: "warning"
|
|
394
|
-
} :
|
|
394
|
+
} : je({
|
|
395
395
|
...n,
|
|
396
396
|
onClose: (t) => {
|
|
397
397
|
let { trigger: n } = t;
|
|
@@ -410,7 +410,7 @@ var W = (e, t) => {
|
|
|
410
410
|
});
|
|
411
411
|
};
|
|
412
412
|
// ../../packages/dlzn-ui/store/modules/common.ts
|
|
413
|
-
function
|
|
413
|
+
function Ft() {
|
|
414
414
|
return VITE_APP_ID === "1" ? X.Get(`yq/oemConfig/getByDomain/${window.location.hostname}`, {
|
|
415
415
|
meta: { useToken: !1 },
|
|
416
416
|
transform(e) {
|
|
@@ -439,9 +439,9 @@ var G = V("common", () => {
|
|
|
439
439
|
e && (document.title = e);
|
|
440
440
|
}), z(() => n.value.color, (e) => {
|
|
441
441
|
e && (h().value = e);
|
|
442
|
-
}),
|
|
442
|
+
}), dt(b(() => n.value.logo || "/favicon.ico"));
|
|
443
443
|
function r() {
|
|
444
|
-
|
|
444
|
+
Ft().then((e) => {
|
|
445
445
|
n.value = e;
|
|
446
446
|
}).catch((e) => {
|
|
447
447
|
n.value = {
|
|
@@ -472,7 +472,7 @@ var G = V("common", () => {
|
|
|
472
472
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
473
473
|
}
|
|
474
474
|
function i(t, n) {
|
|
475
|
-
let r =
|
|
475
|
+
let r = ht(n), i = e.value.findIndex((e) => e.name === r.name || Y(e.name).meta.title === Y(r.name).meta.title);
|
|
476
476
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
477
477
|
let n = e.value.findIndex((e) => e.name === t);
|
|
478
478
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -502,16 +502,16 @@ var G = V("common", () => {
|
|
|
502
502
|
};
|
|
503
503
|
}, { persist: { pick: ["recentRouters"] } });
|
|
504
504
|
// ../../packages/dlzn-ui/store/modules/router.ts
|
|
505
|
-
function
|
|
505
|
+
function It() {
|
|
506
506
|
return X.Get("getRouters", { meta: {
|
|
507
507
|
useFailMsg: "获取用户路由失败",
|
|
508
508
|
useLoading: "正在获取用户路由..."
|
|
509
509
|
} });
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Lt(e) {
|
|
512
512
|
return e.children !== void 0 || e.component !== void 0;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Rt(e) {
|
|
515
515
|
let t = [];
|
|
516
516
|
return e.forEach((e) => {
|
|
517
517
|
e.path === "/" ? t.push({
|
|
@@ -520,7 +520,7 @@ function zt(e) {
|
|
|
520
520
|
}) : t.push(e);
|
|
521
521
|
}), t;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function zt(e) {
|
|
524
524
|
let t = (e, n) => {
|
|
525
525
|
let r = [];
|
|
526
526
|
return e.forEach((e) => {
|
|
@@ -544,12 +544,12 @@ function Bt(e) {
|
|
|
544
544
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
547
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = Ut(e)), Lt(i) && r.push(i);
|
|
548
548
|
}), r;
|
|
549
|
-
}, n =
|
|
549
|
+
}, n = dn();
|
|
550
550
|
return n.children.push(...e), t([n], null);
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Bt(e) {
|
|
553
553
|
let t = (e) => {
|
|
554
554
|
let n = [...e], r = n.length;
|
|
555
555
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -562,36 +562,36 @@ function Vt(e) {
|
|
|
562
562
|
};
|
|
563
563
|
return t(e);
|
|
564
564
|
}
|
|
565
|
-
var
|
|
566
|
-
function
|
|
565
|
+
var Vt = [];
|
|
566
|
+
function Ht(e) {
|
|
567
567
|
return `./${e.split("___")[0]}.vue`;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function Ut(e) {
|
|
570
570
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
571
|
-
let t = e.component, n = typeof t == "string" ? v[
|
|
571
|
+
let t = e.component, n = typeof t == "string" ? v[Ht(t)] : t;
|
|
572
572
|
if (n === void 0) {
|
|
573
|
-
let e = `路由组件${
|
|
573
|
+
let e = `路由组件${Ht(t)}不存在`;
|
|
574
574
|
return console.error(e), p["./NotFound.vue"];
|
|
575
575
|
}
|
|
576
|
-
return typeof t == "string" &&
|
|
576
|
+
return typeof t == "string" && Vt.push(Ht(t)), () => n().then((t) => ({
|
|
577
577
|
...t.default,
|
|
578
578
|
name: e.name
|
|
579
579
|
}));
|
|
580
580
|
}
|
|
581
581
|
return e.component;
|
|
582
582
|
}
|
|
583
|
-
var
|
|
583
|
+
var Wt = V("router", () => {
|
|
584
584
|
let e = P([]), t = U(), n = Q();
|
|
585
585
|
async function r() {
|
|
586
|
-
let r = await
|
|
586
|
+
let r = await It();
|
|
587
587
|
VITE_MODE === "development" && n.isAdmin && fetch("/__dev__/save-folder-alias", {
|
|
588
588
|
body: JSON.stringify(r),
|
|
589
589
|
headers: { "Content-Type": "application/json" },
|
|
590
590
|
method: "POST"
|
|
591
591
|
}).catch((e) => {
|
|
592
592
|
console.warn("[dev-save-folder-alias] 写入本地 json 失败", e);
|
|
593
|
-
}),
|
|
594
|
-
if (!
|
|
593
|
+
}), Vt.length = 0, e.value = De(Bt(zt(Rt(r)))), n.isAdmin && Object.keys(v).forEach((e) => {
|
|
594
|
+
if (!Vt.includes(e) && ![
|
|
595
595
|
"./tool",
|
|
596
596
|
"./system",
|
|
597
597
|
"./monitor"
|
|
@@ -613,10 +613,10 @@ var Gt = V("router", () => {
|
|
|
613
613
|
getRouters: r,
|
|
614
614
|
routersRaw: e
|
|
615
615
|
};
|
|
616
|
-
}),
|
|
616
|
+
}), Gt = { class: "ml-2! flex items-center" }, Kt = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
617
617
|
__name: "Aside",
|
|
618
618
|
setup(e) {
|
|
619
|
-
let t = H(), n = G(), r = b(() => n.appInfo.appName), i =
|
|
619
|
+
let t = H(), n = G(), r = b(() => n.appInfo.appName), i = Wt(), a = P([]);
|
|
620
620
|
z(() => t.name, () => {
|
|
621
621
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
622
622
|
a.value.includes(e) || a.value.push(e);
|
|
@@ -625,14 +625,14 @@ var Gt = V("router", () => {
|
|
|
625
625
|
let o = b(() => {
|
|
626
626
|
let { hidden: e, parentName: n } = t.meta;
|
|
627
627
|
return n !== "" && e === !0 ? n : t.name;
|
|
628
|
-
}), s = b(() => n.appInfo.logo ||
|
|
629
|
-
return (e, t) => (N(), x(R(
|
|
628
|
+
}), s = b(() => n.appInfo.logo || _t.asideTopLogoUrl);
|
|
629
|
+
return (e, t) => (N(), x(R(tt), {
|
|
630
630
|
expanded: a.value,
|
|
631
631
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
632
632
|
class: "w-full!",
|
|
633
633
|
value: o.value
|
|
634
634
|
}, {
|
|
635
|
-
logo: B(() => [Ce("div",
|
|
635
|
+
logo: B(() => [Ce("div", Gt, [T(R(ne), {
|
|
636
636
|
class: "logo",
|
|
637
637
|
src: s.value,
|
|
638
638
|
style: {
|
|
@@ -649,7 +649,7 @@ var Gt = V("router", () => {
|
|
|
649
649
|
_: 1
|
|
650
650
|
}, 8, ["expanded", "value"]));
|
|
651
651
|
}
|
|
652
|
-
}), [["__scopeId", "data-v-36275803"]]),
|
|
652
|
+
}), [["__scopeId", "data-v-36275803"]]), qt = /* @__PURE__ */ E({
|
|
653
653
|
__name: "Breadcrumb",
|
|
654
654
|
setup(e, { expose: t }) {
|
|
655
655
|
let n = H(), r = U(), i = K(), a = b(() => {
|
|
@@ -665,11 +665,11 @@ var Gt = V("router", () => {
|
|
|
665
665
|
function o(e) {
|
|
666
666
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
667
667
|
}
|
|
668
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (N(), x(R(
|
|
668
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (N(), x(R(ze), {
|
|
669
669
|
key: 0,
|
|
670
670
|
class: "absolute top-px z-10 py-1!"
|
|
671
671
|
}, {
|
|
672
|
-
default: B(() => [(N(!0), C(be, null, F(a.value, (e) => (N(), x(R(
|
|
672
|
+
default: B(() => [(N(!0), C(be, null, F(a.value, (e) => (N(), x(R(Be), {
|
|
673
673
|
key: e.name,
|
|
674
674
|
disabled: e.disabled,
|
|
675
675
|
onClick: (t) => o(e.name)
|
|
@@ -680,77 +680,77 @@ var Gt = V("router", () => {
|
|
|
680
680
|
_: 1
|
|
681
681
|
})) : S("v-if", !0);
|
|
682
682
|
}
|
|
683
|
-
}),
|
|
684
|
-
function
|
|
683
|
+
}), Jt = /* @__PURE__ */ new Map();
|
|
684
|
+
function Yt(e) {
|
|
685
685
|
let t = X.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
686
686
|
...e,
|
|
687
687
|
label: e.userName,
|
|
688
688
|
value: e.userId
|
|
689
689
|
})));
|
|
690
690
|
e.forEach((e) => {
|
|
691
|
-
|
|
691
|
+
Jt.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
|
-
var
|
|
695
|
-
function
|
|
696
|
-
return
|
|
694
|
+
var Xt = [];
|
|
695
|
+
function Zt(e) {
|
|
696
|
+
return Xt.includes(e) || Xt.push(e), new Promise((t) => {
|
|
697
697
|
setTimeout(() => {
|
|
698
|
-
let n =
|
|
699
|
-
n.length > 0 &&
|
|
698
|
+
let n = Xt.filter((e) => !Jt.has(e));
|
|
699
|
+
n.length > 0 && Yt(n), Xt.length = 0, Jt.get(e).then((e) => {
|
|
700
700
|
t(e);
|
|
701
701
|
});
|
|
702
702
|
});
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
705
|
var q = /* @__PURE__ */ new Map();
|
|
706
|
-
function
|
|
707
|
-
|
|
706
|
+
function Qt() {
|
|
707
|
+
Xt.length = 0, Jt.clear(), q.clear();
|
|
708
708
|
}
|
|
709
|
-
function
|
|
710
|
-
|
|
709
|
+
function $t(e) {
|
|
710
|
+
Jt.delete(e), q.has(e) && Zt(e).then((t) => {
|
|
711
711
|
q.get(e).value = t;
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function en(e) {
|
|
715
715
|
let t;
|
|
716
|
-
return q.has(e) ? t = q.get(e) : (t = P(null), q.set(e, t),
|
|
716
|
+
return q.has(e) ? t = q.get(e) : (t = P(null), q.set(e, t), Zt(e).then((e) => {
|
|
717
717
|
t.value = e;
|
|
718
718
|
})), t;
|
|
719
719
|
}
|
|
720
720
|
// ../../packages/dlzn-ui/store/modules/login.ts
|
|
721
|
-
function
|
|
721
|
+
function tn(e) {
|
|
722
722
|
return X.Post("login", e, { meta: {
|
|
723
723
|
useLoading: "登录中...",
|
|
724
724
|
useToken: !1
|
|
725
725
|
} });
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function nn() {
|
|
728
728
|
return X.Post("logout", void 0, { meta: {
|
|
729
729
|
useLoading: "退出登录中...",
|
|
730
730
|
useSuccessMsg: !0
|
|
731
731
|
} });
|
|
732
732
|
}
|
|
733
|
-
var
|
|
733
|
+
var rn = V("login", () => {
|
|
734
734
|
let e = P(""), t = H(), n = U();
|
|
735
735
|
async function r(t) {
|
|
736
|
-
let n = await
|
|
736
|
+
let n = await tn(t);
|
|
737
737
|
e.value = n.token, await Q().getUserInfo();
|
|
738
738
|
}
|
|
739
739
|
function i() {
|
|
740
|
-
e.value = "", g().clear(),
|
|
740
|
+
e.value = "", g().clear(), Wt().clear(), Q().clear(), xn(), Qt(), oe();
|
|
741
741
|
}
|
|
742
742
|
z(() => t.name, () => {
|
|
743
743
|
t.name === "Login" && i();
|
|
744
744
|
});
|
|
745
745
|
async function a() {
|
|
746
|
-
await
|
|
746
|
+
await nn(), await n.push({ name: "Login" }), i();
|
|
747
747
|
}
|
|
748
748
|
return {
|
|
749
749
|
login: r,
|
|
750
750
|
logout: a,
|
|
751
751
|
token: e
|
|
752
752
|
};
|
|
753
|
-
}, { persist: { pick: ["token"] } }),
|
|
753
|
+
}, { persist: { pick: ["token"] } }), an = { class: "flex items-center justify-between" }, on = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
754
754
|
__name: "Header",
|
|
755
755
|
setup(t) {
|
|
756
756
|
let n = H(), r = U(), i = Q(), a = G(), o = K();
|
|
@@ -762,7 +762,7 @@ var an = V("login", () => {
|
|
|
762
762
|
}
|
|
763
763
|
let l = async (e) => {
|
|
764
764
|
let { value: t } = e;
|
|
765
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await W("确定要退出登录吗?"),
|
|
765
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await W("确定要退出登录吗?"), rn().logout());
|
|
766
766
|
}, u = m.isMd;
|
|
767
767
|
function d(e, t) {
|
|
768
768
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
@@ -787,8 +787,8 @@ var an = V("login", () => {
|
|
|
787
787
|
}), re(e, i);
|
|
788
788
|
}
|
|
789
789
|
let f = p["./modules/HeaderOperations.vue"] ? Te(p["./modules/HeaderOperations.vue"]) : void 0;
|
|
790
|
-
return (t, r) => (N(), x(R(
|
|
791
|
-
default: B(() => [T(R(
|
|
790
|
+
return (t, r) => (N(), x(R(Qe), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
791
|
+
default: B(() => [T(R(Ze), {
|
|
792
792
|
"expand-type": "popup",
|
|
793
793
|
value: R(n).name,
|
|
794
794
|
onChange: s
|
|
@@ -840,18 +840,18 @@ var an = V("login", () => {
|
|
|
840
840
|
}))]),
|
|
841
841
|
_: 1
|
|
842
842
|
}, 8, ["options"])]),
|
|
843
|
-
default: B(() => [(N(!0), C(be, null, F(R(o).recentRouters, (t) => (N(), x(R(
|
|
843
|
+
default: B(() => [(N(!0), C(be, null, F(R(o).recentRouters, (t) => (N(), x(R(nt), {
|
|
844
844
|
key: t.name,
|
|
845
845
|
value: t.name,
|
|
846
846
|
onContextmenu: (e) => d(e, t.name)
|
|
847
847
|
}, {
|
|
848
|
-
default: B(() => [Ce("div",
|
|
848
|
+
default: B(() => [Ce("div", an, [Ce("span", null, L(R(Y)(t.name).meta.title), 1), R(o).recentRouters.length > 1 ? (N(), x(R($), {
|
|
849
849
|
key: 0,
|
|
850
850
|
class: "ml-1!",
|
|
851
851
|
shape: "square",
|
|
852
852
|
size: "small",
|
|
853
853
|
variant: "text",
|
|
854
|
-
onClick:
|
|
854
|
+
onClick: Re((e) => c(t.name), ["stop"])
|
|
855
855
|
}, {
|
|
856
856
|
icon: B(() => [T(R(e), {
|
|
857
857
|
icon: "material-symbols:close",
|
|
@@ -866,26 +866,26 @@ var an = V("login", () => {
|
|
|
866
866
|
_: 1
|
|
867
867
|
}));
|
|
868
868
|
}
|
|
869
|
-
}), [["__scopeId", "data-v-6c2c986c"]]),
|
|
869
|
+
}), [["__scopeId", "data-v-6c2c986c"]]), sn = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
870
870
|
__name: "Entry",
|
|
871
871
|
setup(e) {
|
|
872
|
-
let t = H(), n = G(), r = K(), i = g(), a = b(() => r.recentRouters.filter((e) => Y(e.name).meta.noCache === !1).map((e) => e.name)), o =
|
|
872
|
+
let t = H(), n = G(), r = K(), i = g(), a = b(() => r.recentRouters.filter((e) => Y(e.name).meta.noCache === !1).map((e) => e.name)), o = Le("breadcrumb"), s = b(() => (o.value?.items.length ?? 0) > 0), c = b(() => m.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), l = m.isMd, u = Le("contentRef"), { height: d } = lt(u);
|
|
873
873
|
function f({ size: e }) {
|
|
874
874
|
n.drawerSize = e;
|
|
875
875
|
}
|
|
876
876
|
let p = b(() => t.meta.fullScreen);
|
|
877
877
|
return (e, t) => {
|
|
878
|
-
let r =
|
|
878
|
+
let r = Ne("RouterView");
|
|
879
879
|
return p.value ? (N(), x(r, { key: 0 }, {
|
|
880
880
|
default: B(({ Component: e }) => [(N(), x(I(e)))]),
|
|
881
881
|
_: 1
|
|
882
|
-
})) : (N(), x(R(
|
|
882
|
+
})) : (N(), x(R(et), {
|
|
883
883
|
key: 1,
|
|
884
884
|
class: "h-full"
|
|
885
885
|
}, {
|
|
886
886
|
default: B(() => [
|
|
887
|
-
T(
|
|
888
|
-
T(R(
|
|
887
|
+
T(on),
|
|
888
|
+
T(R(qe), {
|
|
889
889
|
visible: R(n).drawerOpen,
|
|
890
890
|
"onUpdate:visible": t[0] ||= (e) => R(n).drawerOpen = e,
|
|
891
891
|
footer: !1,
|
|
@@ -899,7 +899,7 @@ var an = V("login", () => {
|
|
|
899
899
|
},
|
|
900
900
|
onSizeDragEnd: f
|
|
901
901
|
}, {
|
|
902
|
-
default: B(() => [T(
|
|
902
|
+
default: B(() => [T(Kt, { class: "no_drawer_body_padding" })]),
|
|
903
903
|
_: 1
|
|
904
904
|
}, 8, [
|
|
905
905
|
"visible",
|
|
@@ -907,14 +907,14 @@ var an = V("login", () => {
|
|
|
907
907
|
"show-overlay",
|
|
908
908
|
"size"
|
|
909
909
|
]),
|
|
910
|
-
T(R(
|
|
910
|
+
T(R(We), {
|
|
911
911
|
ref_key: "contentRef",
|
|
912
912
|
ref: u,
|
|
913
913
|
class: "overflow-hidden"
|
|
914
914
|
}, {
|
|
915
915
|
default: B(() => [T(R(ee), {
|
|
916
916
|
always: "",
|
|
917
|
-
"view-class":
|
|
917
|
+
"view-class": Oe(["relative flex flex-col", {
|
|
918
918
|
...c.value,
|
|
919
919
|
"pt-8": s.value
|
|
920
920
|
}]),
|
|
@@ -923,7 +923,7 @@ var an = V("login", () => {
|
|
|
923
923
|
minHeight: `${Math.max(R(d), 438)}px`
|
|
924
924
|
}
|
|
925
925
|
}, {
|
|
926
|
-
default: B(() => [T(
|
|
926
|
+
default: B(() => [T(qt, { ref: "breadcrumb" }, null, 512), T(r, null, {
|
|
927
927
|
default: B(({ Component: e }) => [(N(), x(xe, {
|
|
928
928
|
exclude: R(i).excludeKPname,
|
|
929
929
|
include: a.value
|
|
@@ -942,8 +942,8 @@ var an = V("login", () => {
|
|
|
942
942
|
}));
|
|
943
943
|
};
|
|
944
944
|
}
|
|
945
|
-
}), [["__scopeId", "data-v-f74cbe56"]]),
|
|
946
|
-
function
|
|
945
|
+
}), [["__scopeId", "data-v-f74cbe56"]]), cn = /* @__PURE__ */ new Set();
|
|
946
|
+
function ln(e, t) {
|
|
947
947
|
let n = b(() => typeof e.body == "function" ? e.body(k) : e.body), r = {
|
|
948
948
|
attach: "#app",
|
|
949
949
|
closeOnEscKeydown: !1,
|
|
@@ -954,25 +954,25 @@ function un(e, t) {
|
|
|
954
954
|
lazy: !0,
|
|
955
955
|
sizeDraggable: !0,
|
|
956
956
|
...e ?? {},
|
|
957
|
-
body: () => k(
|
|
957
|
+
body: () => k(Hn, {}, { default: () => n.value })
|
|
958
958
|
}, i, a = {
|
|
959
959
|
...r,
|
|
960
960
|
onClose: (e) => {
|
|
961
|
-
r.onClose?.(e),
|
|
961
|
+
r.onClose?.(e), cn.delete(i);
|
|
962
962
|
}
|
|
963
963
|
};
|
|
964
|
-
return delete a.closeWhenCloseAll, i =
|
|
964
|
+
return delete a.closeWhenCloseAll, i = Je(a, t ?? o()), r.closeWhenCloseAll && cn.add(i), i;
|
|
965
965
|
}
|
|
966
|
-
var
|
|
967
|
-
return
|
|
966
|
+
var un = function(...e) {
|
|
967
|
+
return ln(...e);
|
|
968
968
|
};
|
|
969
|
-
|
|
970
|
-
|
|
969
|
+
un.closeAll = () => {
|
|
970
|
+
cn.forEach((e) => {
|
|
971
971
|
e.hide?.();
|
|
972
972
|
});
|
|
973
973
|
};
|
|
974
974
|
// ../../packages/dlzn-ui/router/index.ts
|
|
975
|
-
function
|
|
975
|
+
function dn() {
|
|
976
976
|
return {
|
|
977
977
|
children: [{
|
|
978
978
|
children: [{
|
|
@@ -1000,15 +1000,15 @@ function fn() {
|
|
|
1000
1000
|
name: "Home",
|
|
1001
1001
|
path: "home"
|
|
1002
1002
|
}],
|
|
1003
|
-
component:
|
|
1003
|
+
component: sn,
|
|
1004
1004
|
name: "Index",
|
|
1005
1005
|
path: "/"
|
|
1006
1006
|
};
|
|
1007
1007
|
}
|
|
1008
|
-
var J =
|
|
1009
|
-
history:
|
|
1008
|
+
var J = yt({
|
|
1009
|
+
history: bt(VITE_BASE_URL),
|
|
1010
1010
|
routes: [
|
|
1011
|
-
|
|
1011
|
+
dn(),
|
|
1012
1012
|
{
|
|
1013
1013
|
component: p["./Login.vue"],
|
|
1014
1014
|
meta: {
|
|
@@ -1053,12 +1053,12 @@ var J = bt({
|
|
|
1053
1053
|
strict: !0
|
|
1054
1054
|
});
|
|
1055
1055
|
J.beforeEach(async (e) => {
|
|
1056
|
-
if (e.query._fromLeftTree === "true" && g().add(e.name), !["Login", "Register"].includes(e.name)) return
|
|
1056
|
+
if (e.query._fromLeftTree === "true" && g().add(e.name), !["Login", "Register"].includes(e.name)) return rn().token === "" ? { name: "Login" } : Wt().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), J.resolve({
|
|
1057
1057
|
path: e.path,
|
|
1058
1058
|
query: e.query
|
|
1059
1059
|
}));
|
|
1060
1060
|
}), J.afterEach((e, t, n) => {
|
|
1061
|
-
|
|
1061
|
+
Pt.closeAll(), un.closeAll();
|
|
1062
1062
|
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: s } = r;
|
|
1063
1063
|
document.title = s || G().appInfo.appName;
|
|
1064
1064
|
let c = K();
|
|
@@ -1073,23 +1073,23 @@ J.beforeEach(async (e) => {
|
|
|
1073
1073
|
query: e.query
|
|
1074
1074
|
});
|
|
1075
1075
|
}
|
|
1076
|
-
g().remove(i), VITE_MODE === "development" && (
|
|
1076
|
+
g().remove(i), VITE_MODE === "development" && (xt(n, vt.aborted) ? l.info("导航被中断") : xt(n, vt.cancelled) ? l.info("导航被取消,因为有一个新的导航") : xt(n, vt.duplicated) && l.info("导航被阻止,因为我们已经在目标位置了"));
|
|
1077
1077
|
});
|
|
1078
1078
|
function Y(e) {
|
|
1079
1079
|
if (J.hasRoute(e)) return J.getRoutes().find((t) => t.name === e);
|
|
1080
1080
|
}
|
|
1081
1081
|
// ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
1082
|
-
var
|
|
1083
|
-
function
|
|
1082
|
+
var fn = 15e3, pn = "网络错误,请稍后再试";
|
|
1083
|
+
function mn(e, t = !0) {
|
|
1084
1084
|
let n = {};
|
|
1085
1085
|
return Object.keys(e).forEach((r) => {
|
|
1086
1086
|
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !s(e[r]))) && (n[r] = e[r]);
|
|
1087
1087
|
}), n;
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1090
|
-
return new URLSearchParams(
|
|
1089
|
+
function hn(e, t = !0) {
|
|
1090
|
+
return new URLSearchParams(mn(e, t)).toString();
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function gn(e) {
|
|
1093
1093
|
let { data: t, response: n, useDownload: r } = e;
|
|
1094
1094
|
if (typeof r == "string") f(t, r);
|
|
1095
1095
|
else {
|
|
@@ -1097,12 +1097,12 @@ function _n(e) {
|
|
|
1097
1097
|
e ? f(t, e) : a.error("返回的 response header 没有文件名");
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
|
-
var X =
|
|
1100
|
+
var X = St({
|
|
1101
1101
|
baseURL: VITE_BASE_URL,
|
|
1102
1102
|
beforeRequest(e) {
|
|
1103
1103
|
e.config.credentials = e.config.credentials ?? "omit";
|
|
1104
1104
|
let [t, ...r] = VITE_API_PROXY_PREFIX_ARRAY;
|
|
1105
|
-
!e.url.startsWith("http") && !r.some((t) =>
|
|
1105
|
+
!e.url.startsWith("http") && !r.some((t) => Tt.join("/", e.url).startsWith(Tt.join("/", t, "/"))) && (e.url = Tt.join(t, e.url)), e.meta = {
|
|
1106
1106
|
use600Alert: !0,
|
|
1107
1107
|
useDataResult: !0,
|
|
1108
1108
|
useDownload: !1,
|
|
@@ -1119,10 +1119,10 @@ var X = Ct({
|
|
|
1119
1119
|
useToken: !e.url.startsWith("http"),
|
|
1120
1120
|
...e.meta ?? {}
|
|
1121
1121
|
};
|
|
1122
|
-
let i =
|
|
1122
|
+
let i = rn(), { useEmptyData: a, useEmptyParams: o, useFormData: c, useInPolling: l, useLoading: u, useResponseBlob: d, useToken: f } = e.meta;
|
|
1123
1123
|
l || G().requestActive(), f && (i.token ? e.config.headers.Authorization = i.token : e.abort()), u !== !1 && n.show(u === !0 ? void 0 : u);
|
|
1124
1124
|
let p = e.config.params;
|
|
1125
|
-
if (typeof p != "string" && (e.config.params =
|
|
1125
|
+
if (typeof p != "string" && (e.config.params = hn(p, o)), a && gt(e.data)) {
|
|
1126
1126
|
let t = {}, n = e.data;
|
|
1127
1127
|
Object.keys(n).forEach((e) => {
|
|
1128
1128
|
s(n[e]) || (t[e] = n[e]);
|
|
@@ -1134,10 +1134,10 @@ var X = Ct({
|
|
|
1134
1134
|
t.append(n, e.data[n]);
|
|
1135
1135
|
}), e.data = t;
|
|
1136
1136
|
}
|
|
1137
|
-
e.config.timeout ===
|
|
1137
|
+
e.config.timeout === fn && (c || e.data instanceof FormData || d) && (e.config.timeout = 0);
|
|
1138
1138
|
},
|
|
1139
1139
|
cacheFor: null,
|
|
1140
|
-
requestAdapter:
|
|
1140
|
+
requestAdapter: Ct(),
|
|
1141
1141
|
responded: {
|
|
1142
1142
|
onComplete: (e) => {
|
|
1143
1143
|
e.meta.useLoading !== !1 && n.hide();
|
|
@@ -1149,7 +1149,7 @@ var X = Ct({
|
|
|
1149
1149
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1150
1150
|
if (t.toLowerCase().includes("timeout")) return n && l.error("请求超时"), Promise.reject(e);
|
|
1151
1151
|
}
|
|
1152
|
-
return n && l.error(
|
|
1152
|
+
return n && l.error(pn), Promise.reject(e);
|
|
1153
1153
|
},
|
|
1154
1154
|
onSuccess: async (e, t) => {
|
|
1155
1155
|
if (typeof e == "string") return e;
|
|
@@ -1160,7 +1160,7 @@ var X = Ct({
|
|
|
1160
1160
|
403: "当前操作没有权限",
|
|
1161
1161
|
404: "访问资源不存在",
|
|
1162
1162
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1163
|
-
}[ee] ??
|
|
1163
|
+
}[ee] ?? pn;
|
|
1164
1164
|
l.error(e);
|
|
1165
1165
|
}
|
|
1166
1166
|
return Promise.reject(e);
|
|
@@ -1172,7 +1172,7 @@ var X = Ct({
|
|
|
1172
1172
|
} catch (e) {
|
|
1173
1173
|
return a.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1174
1174
|
}
|
|
1175
|
-
return r !== !1 &&
|
|
1175
|
+
return r !== !1 && gn({
|
|
1176
1176
|
data: t,
|
|
1177
1177
|
response: e,
|
|
1178
1178
|
useDownload: r
|
|
@@ -1207,12 +1207,12 @@ var X = Ct({
|
|
|
1207
1207
|
return Promise.reject(h);
|
|
1208
1208
|
}
|
|
1209
1209
|
{
|
|
1210
|
-
let i =
|
|
1210
|
+
let i = _t.alovaResCodeSuccessCb?.({
|
|
1211
1211
|
code: t,
|
|
1212
1212
|
data: s,
|
|
1213
1213
|
msg: u
|
|
1214
1214
|
});
|
|
1215
|
-
return i === void 0 ? (r !== !1 && (typeof r == "string" ?
|
|
1215
|
+
return i === void 0 ? (r !== !1 && (typeof r == "string" ? gn({
|
|
1216
1216
|
data: s,
|
|
1217
1217
|
response: e,
|
|
1218
1218
|
useDownload: r
|
|
@@ -1223,10 +1223,10 @@ var X = Ct({
|
|
|
1223
1223
|
}
|
|
1224
1224
|
},
|
|
1225
1225
|
shareRequest: !1,
|
|
1226
|
-
statesHook:
|
|
1227
|
-
timeout:
|
|
1228
|
-
}),
|
|
1229
|
-
function
|
|
1226
|
+
statesHook: wt,
|
|
1227
|
+
timeout: fn
|
|
1228
|
+
}), _n = /* @__PURE__ */ new Map();
|
|
1229
|
+
function vn(e) {
|
|
1230
1230
|
let t = X.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
1231
1231
|
cssClass: e.cssClass,
|
|
1232
1232
|
dictType: e.dictType,
|
|
@@ -1235,41 +1235,41 @@ function yn(e) {
|
|
|
1235
1235
|
value: e.dictValue
|
|
1236
1236
|
})));
|
|
1237
1237
|
e.forEach((e) => {
|
|
1238
|
-
|
|
1238
|
+
_n.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
1239
1239
|
});
|
|
1240
1240
|
}
|
|
1241
|
-
var
|
|
1242
|
-
function
|
|
1243
|
-
return
|
|
1241
|
+
var yn = [];
|
|
1242
|
+
function bn(e) {
|
|
1243
|
+
return yn.includes(e) || yn.push(e), new Promise((t) => {
|
|
1244
1244
|
setTimeout(() => {
|
|
1245
|
-
let n =
|
|
1246
|
-
n.length > 0 &&
|
|
1245
|
+
let n = yn.filter((e) => !_n.has(e));
|
|
1246
|
+
n.length > 0 && vn(n), yn.length = 0, _n.get(e).then((e) => {
|
|
1247
1247
|
t(e);
|
|
1248
1248
|
});
|
|
1249
1249
|
});
|
|
1250
1250
|
});
|
|
1251
1251
|
}
|
|
1252
1252
|
var Z = /* @__PURE__ */ new Map();
|
|
1253
|
-
function
|
|
1254
|
-
|
|
1253
|
+
function xn() {
|
|
1254
|
+
yn.length = 0, _n.clear(), Z.clear();
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1257
|
-
let n =
|
|
1256
|
+
function Sn(e, t) {
|
|
1257
|
+
let n = Cn(e);
|
|
1258
1258
|
return t === void 0 ? i(n) : i(n, t);
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function Cn(e, t) {
|
|
1261
1261
|
let n;
|
|
1262
|
-
return Z.has(e) ? n = Z.get(e) : (n = P([]), Z.set(e, n),
|
|
1262
|
+
return Z.has(e) ? n = Z.get(e) : (n = P([]), Z.set(e, n), bn(e).then((e) => {
|
|
1263
1263
|
n.value = e;
|
|
1264
1264
|
})), b(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1267
|
-
|
|
1266
|
+
function wn(e) {
|
|
1267
|
+
_n.delete(e), Z.has(e) && bn(e).then((t) => {
|
|
1268
1268
|
Z.get(e).value = t;
|
|
1269
1269
|
});
|
|
1270
1270
|
}
|
|
1271
1271
|
// ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
1272
|
-
var
|
|
1272
|
+
var Tn = /* @__PURE__ */ E({
|
|
1273
1273
|
inheritAttrs: !1,
|
|
1274
1274
|
name: "TCheckboxGroup",
|
|
1275
1275
|
__name: "checkbox-group",
|
|
@@ -1302,7 +1302,7 @@ var En = /* @__PURE__ */ E({
|
|
|
1302
1302
|
}
|
|
1303
1303
|
let l = b(() => {
|
|
1304
1304
|
let e;
|
|
1305
|
-
return n.dicCode ? (n.options && a.error("TCheckboxGroup: dicCode and options cannot be used together"), e =
|
|
1305
|
+
return n.dicCode ? (n.options && a.error("TCheckboxGroup: dicCode and options cannot be used together"), e = Cn(n.dicCode).value) : e = typeof n.options == "string" ? ae(n.options).value : n.options, n.showCheckAll && (e === void 0 ? a.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
1306
1306
|
checkAll: !0,
|
|
1307
1307
|
label: "全选"
|
|
1308
1308
|
})), e;
|
|
@@ -1320,7 +1320,7 @@ var En = /* @__PURE__ */ E({
|
|
|
1320
1320
|
e[t] === void 0 && delete e[t];
|
|
1321
1321
|
}), e;
|
|
1322
1322
|
});
|
|
1323
|
-
return (e, t) => (N(), x(I(k(R(
|
|
1323
|
+
return (e, t) => (N(), x(I(k(R(He), j(e.$attrs, {
|
|
1324
1324
|
...d.value,
|
|
1325
1325
|
options: l.value,
|
|
1326
1326
|
modelValue: u.value,
|
|
@@ -1330,7 +1330,7 @@ var En = /* @__PURE__ */ E({
|
|
|
1330
1330
|
ref: o
|
|
1331
1331
|
}), e.$slots))));
|
|
1332
1332
|
}
|
|
1333
|
-
}),
|
|
1333
|
+
}), En = /* @__PURE__ */ E({
|
|
1334
1334
|
inheritAttrs: !1,
|
|
1335
1335
|
__name: "cron",
|
|
1336
1336
|
props: /*@__PURE__*/ A({
|
|
@@ -1412,7 +1412,7 @@ var En = /* @__PURE__ */ E({
|
|
|
1412
1412
|
variant: "text"
|
|
1413
1413
|
}) }
|
|
1414
1414
|
};
|
|
1415
|
-
}), s =
|
|
1415
|
+
}), s = Fe(), c = D();
|
|
1416
1416
|
function l(e) {
|
|
1417
1417
|
c.exposed = e ?? {};
|
|
1418
1418
|
}
|
|
@@ -1425,7 +1425,7 @@ var En = /* @__PURE__ */ E({
|
|
|
1425
1425
|
}));
|
|
1426
1426
|
return (e, t) => (N(), x(R(le), M(O(u.value)), null, 16));
|
|
1427
1427
|
}
|
|
1428
|
-
}),
|
|
1428
|
+
}), Dn = /* @__PURE__ */ E({
|
|
1429
1429
|
inheritAttrs: !1,
|
|
1430
1430
|
name: "TRadioGroup",
|
|
1431
1431
|
__name: "radio-group",
|
|
@@ -1459,7 +1459,7 @@ var En = /* @__PURE__ */ E({
|
|
|
1459
1459
|
function o(e) {
|
|
1460
1460
|
i.exposed = e ?? {};
|
|
1461
1461
|
}
|
|
1462
|
-
let l = b(() => n.dicCode ? (n.options && a.error("TRadioGroup: dicCode and options cannot be used together"),
|
|
1462
|
+
let l = b(() => n.dicCode ? (n.options && a.error("TRadioGroup: dicCode and options cannot be used together"), Cn(n.dicCode).value) : typeof n.options == "string" ? ae(n.options).value : n.options), d = b(() => {
|
|
1463
1463
|
let e = { ...n };
|
|
1464
1464
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1465
1465
|
e[t] === void 0 && delete e[t];
|
|
@@ -1472,7 +1472,7 @@ var En = /* @__PURE__ */ E({
|
|
|
1472
1472
|
}
|
|
1473
1473
|
return n.modelValue;
|
|
1474
1474
|
});
|
|
1475
|
-
return (e, t) => (N(), x(I(k(R(
|
|
1475
|
+
return (e, t) => (N(), x(I(k(R(rt), j(e.$attrs, {
|
|
1476
1476
|
...d.value,
|
|
1477
1477
|
options: l.value,
|
|
1478
1478
|
modelValue: f.value,
|
|
@@ -1483,7 +1483,7 @@ var En = /* @__PURE__ */ E({
|
|
|
1483
1483
|
ref: o
|
|
1484
1484
|
}), e.$slots))));
|
|
1485
1485
|
}
|
|
1486
|
-
}),
|
|
1486
|
+
}), On = {
|
|
1487
1487
|
clearable: !0,
|
|
1488
1488
|
disabled: void 0,
|
|
1489
1489
|
filterable: void 0,
|
|
@@ -1504,7 +1504,7 @@ var En = /* @__PURE__ */ E({
|
|
|
1504
1504
|
}),
|
|
1505
1505
|
showArrow: !0,
|
|
1506
1506
|
showCheckAll: !1
|
|
1507
|
-
},
|
|
1507
|
+
}, kn = /* @__PURE__ */ E({
|
|
1508
1508
|
inheritAttrs: !1,
|
|
1509
1509
|
name: "TSelect",
|
|
1510
1510
|
__name: "select",
|
|
@@ -1568,7 +1568,7 @@ var En = /* @__PURE__ */ E({
|
|
|
1568
1568
|
onPopupVisibleChange: { type: Function },
|
|
1569
1569
|
onRemove: { type: Function },
|
|
1570
1570
|
onSearch: { type: Function }
|
|
1571
|
-
},
|
|
1571
|
+
}, On),
|
|
1572
1572
|
setup(e) {
|
|
1573
1573
|
let t = e, n = D();
|
|
1574
1574
|
function r(e) {
|
|
@@ -1576,7 +1576,7 @@ var En = /* @__PURE__ */ E({
|
|
|
1576
1576
|
}
|
|
1577
1577
|
let i = b(() => {
|
|
1578
1578
|
let e;
|
|
1579
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ? ae(t.options).value : t.options : (t.options && a.error("TSelect: dicCode and options cannot be used together"), e =
|
|
1579
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? ae(t.options).value : t.options : (t.options && a.error("TSelect: dicCode and options cannot be used together"), e = Cn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? a.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
1580
1580
|
checkAll: !0,
|
|
1581
1581
|
[t.keys?.label ?? "label"]: "全选"
|
|
1582
1582
|
}) : a.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
@@ -1601,8 +1601,8 @@ var En = /* @__PURE__ */ E({
|
|
|
1601
1601
|
e[t] === void 0 && delete e[t];
|
|
1602
1602
|
}), e;
|
|
1603
1603
|
}), d = P(0);
|
|
1604
|
-
|
|
1605
|
-
|
|
1604
|
+
ke(() => {
|
|
1605
|
+
mt(n.exposed.$el, () => {
|
|
1606
1606
|
d.value = n.exposed.$el.offsetWidth;
|
|
1607
1607
|
}, { box: "border-box" });
|
|
1608
1608
|
});
|
|
@@ -1626,13 +1626,13 @@ var En = /* @__PURE__ */ E({
|
|
|
1626
1626
|
})
|
|
1627
1627
|
},
|
|
1628
1628
|
ref: r
|
|
1629
|
-
})), m =
|
|
1629
|
+
})), m = $e;
|
|
1630
1630
|
return (t, n) => e.adornment ? (N(), x(I(k(R(m), t.$attrs, {
|
|
1631
1631
|
...e.adornment,
|
|
1632
|
-
default: () => k(R(
|
|
1633
|
-
})), { key: 0 })) : (N(), x(I(k(R(
|
|
1632
|
+
default: () => k(R(it), p.value, t.$slots)
|
|
1633
|
+
})), { key: 0 })) : (N(), x(I(k(R(it), j(t.$attrs, p.value), t.$slots)), { key: 1 }));
|
|
1634
1634
|
}
|
|
1635
|
-
}),
|
|
1635
|
+
}), An = /* @__PURE__ */ E({
|
|
1636
1636
|
inheritAttrs: !1,
|
|
1637
1637
|
__name: "select-sys-user",
|
|
1638
1638
|
props: /*@__PURE__*/ A({
|
|
@@ -1707,7 +1707,7 @@ var En = /* @__PURE__ */ E({
|
|
|
1707
1707
|
variant: "text"
|
|
1708
1708
|
}) }
|
|
1709
1709
|
};
|
|
1710
|
-
}), s =
|
|
1710
|
+
}), s = Fe(), c = D();
|
|
1711
1711
|
function l(e) {
|
|
1712
1712
|
c.exposed = e ?? {};
|
|
1713
1713
|
}
|
|
@@ -1724,11 +1724,11 @@ var En = /* @__PURE__ */ E({
|
|
|
1724
1724
|
ref: l
|
|
1725
1725
|
}));
|
|
1726
1726
|
return (e, t) => (N(), x(R(me), M(O(u.value)), {
|
|
1727
|
-
tag: B(({ value: e }) => [w(L(R(
|
|
1727
|
+
tag: B(({ value: e }) => [w(L(R(en)(e).value?.userName), 1)]),
|
|
1728
1728
|
_: 1
|
|
1729
1729
|
}, 16));
|
|
1730
1730
|
}
|
|
1731
|
-
}),
|
|
1731
|
+
}), jn = {
|
|
1732
1732
|
checkable: !1,
|
|
1733
1733
|
disabled: void 0,
|
|
1734
1734
|
expandOnClickNode: void 0,
|
|
@@ -1747,7 +1747,7 @@ var En = /* @__PURE__ */ E({
|
|
|
1747
1747
|
line: !0,
|
|
1748
1748
|
transition: !0,
|
|
1749
1749
|
valueMode: "all"
|
|
1750
|
-
},
|
|
1750
|
+
}, Mn = /* @__PURE__ */ E({
|
|
1751
1751
|
inheritAttrs: !1,
|
|
1752
1752
|
name: "TTree",
|
|
1753
1753
|
__name: "tree",
|
|
@@ -1805,9 +1805,9 @@ var En = /* @__PURE__ */ E({
|
|
|
1805
1805
|
onLoad: { type: Function },
|
|
1806
1806
|
onScroll: { type: Function },
|
|
1807
1807
|
treeStore: {}
|
|
1808
|
-
},
|
|
1808
|
+
}, jn),
|
|
1809
1809
|
setup(e, { expose: t }) {
|
|
1810
|
-
let n = e, r =
|
|
1810
|
+
let n = e, r = Ie(), i = b(() => {
|
|
1811
1811
|
let e = { ...n };
|
|
1812
1812
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1813
1813
|
e[t] === void 0 && delete e[t];
|
|
@@ -1816,12 +1816,12 @@ var En = /* @__PURE__ */ E({
|
|
|
1816
1816
|
function o(e) {
|
|
1817
1817
|
a.exposed = e ?? {};
|
|
1818
1818
|
}
|
|
1819
|
-
return t({}), (e, t) => (N(), x(I(k(R(
|
|
1819
|
+
return t({}), (e, t) => (N(), x(I(k(R(at), j(e.$attrs, {
|
|
1820
1820
|
...i.value,
|
|
1821
1821
|
ref: o
|
|
1822
1822
|
}), e.$slots))));
|
|
1823
1823
|
}
|
|
1824
|
-
}),
|
|
1824
|
+
}), Nn = /* @__PURE__ */ E({
|
|
1825
1825
|
inheritAttrs: !1,
|
|
1826
1826
|
name: "TTreeSelect",
|
|
1827
1827
|
__name: "tree-select",
|
|
@@ -1894,10 +1894,10 @@ var En = /* @__PURE__ */ E({
|
|
|
1894
1894
|
minCollapsedNum: 2,
|
|
1895
1895
|
...e.selectInputProps ?? {}
|
|
1896
1896
|
}, e.treeProps = {
|
|
1897
|
-
...
|
|
1897
|
+
...jn,
|
|
1898
1898
|
checkable: !!t.multiple,
|
|
1899
1899
|
expandOnClickNode: !!t.multiple,
|
|
1900
|
-
icon:
|
|
1900
|
+
icon: jn.icon(),
|
|
1901
1901
|
...e.treeProps ?? {}
|
|
1902
1902
|
}, Object.keys(e).forEach((t) => {
|
|
1903
1903
|
e[t] === void 0 && delete e[t];
|
|
@@ -1907,11 +1907,11 @@ var En = /* @__PURE__ */ E({
|
|
|
1907
1907
|
i.exposed = e ?? {};
|
|
1908
1908
|
}
|
|
1909
1909
|
let o = P(0);
|
|
1910
|
-
return
|
|
1911
|
-
|
|
1910
|
+
return ke(() => {
|
|
1911
|
+
mt(i.exposed.$el, () => {
|
|
1912
1912
|
o.value = i.exposed.$el.offsetWidth;
|
|
1913
1913
|
}, { box: "border-box" });
|
|
1914
|
-
}), (e, t) => (N(), x(I(k(R(
|
|
1914
|
+
}), (e, t) => (N(), x(I(k(R(ot), j(e.$attrs, {
|
|
1915
1915
|
...r.value,
|
|
1916
1916
|
data: n.value,
|
|
1917
1917
|
ref: a,
|
|
@@ -1925,10 +1925,10 @@ var En = /* @__PURE__ */ E({
|
|
|
1925
1925
|
}
|
|
1926
1926
|
}), e.$slots))));
|
|
1927
1927
|
}
|
|
1928
|
-
}),
|
|
1928
|
+
}), Pn = ".xlsx,.xls", Fn = { class: "flex items-center" }, In = {
|
|
1929
1929
|
key: 1,
|
|
1930
1930
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1931
|
-
},
|
|
1931
|
+
}, Ln = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
1932
1932
|
inheritAttrs: !1,
|
|
1933
1933
|
name: "TUpload",
|
|
1934
1934
|
__name: "upload",
|
|
@@ -1937,7 +1937,7 @@ var En = /* @__PURE__ */ E({
|
|
|
1937
1937
|
"onUpdate:modelValue": {},
|
|
1938
1938
|
requestMethod: {},
|
|
1939
1939
|
abridgeName: {},
|
|
1940
|
-
accept: { default:
|
|
1940
|
+
accept: { default: Pn },
|
|
1941
1941
|
allowUploadDuplicateFile: { type: Boolean },
|
|
1942
1942
|
autoUpload: { type: Boolean },
|
|
1943
1943
|
beforeAllFilesUpload: {},
|
|
@@ -2039,16 +2039,16 @@ var En = /* @__PURE__ */ E({
|
|
|
2039
2039
|
function s(e) {
|
|
2040
2040
|
o.exposed = e ?? {};
|
|
2041
2041
|
}
|
|
2042
|
-
return t({}), (t, o) => (N(), x(I(k(R(
|
|
2042
|
+
return t({}), (t, o) => (N(), x(I(k(R(st), j(t.$attrs, {
|
|
2043
2043
|
...a.value,
|
|
2044
2044
|
requestMethod: r.value,
|
|
2045
2045
|
ref: s
|
|
2046
2046
|
}, { class: a.value.theme }))), null, we({ _: 2 }, [F(Object.keys(t.$slots), (e) => ({
|
|
2047
2047
|
name: e,
|
|
2048
|
-
fn: B((n) => [
|
|
2048
|
+
fn: B((n) => [Me(t.$slots, e, M(O(n)), void 0, !0)])
|
|
2049
2049
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
2050
2050
|
name: "trigger",
|
|
2051
|
-
fn: B(({ files: t }) => [Ce("div",
|
|
2051
|
+
fn: B(({ files: t }) => [Ce("div", Fn, [
|
|
2052
2052
|
T(R($), { theme: "primary" }, {
|
|
2053
2053
|
default: B(() => [w(L(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
2054
2054
|
_: 2
|
|
@@ -2057,17 +2057,17 @@ var En = /* @__PURE__ */ E({
|
|
|
2057
2057
|
key: 0,
|
|
2058
2058
|
theme: "primary",
|
|
2059
2059
|
variant: "outline",
|
|
2060
|
-
onClick:
|
|
2060
|
+
onClick: Re(i, ["stop"])
|
|
2061
2061
|
}, {
|
|
2062
2062
|
default: B(() => [...o[0] ||= [w("下载模板", -1)]]),
|
|
2063
2063
|
_: 1
|
|
2064
2064
|
})) : S("v-if", !0),
|
|
2065
|
-
n.tips ? (N(), C("span",
|
|
2065
|
+
n.tips ? (N(), C("span", In, L(n.tips), 1)) : S("v-if", !0)
|
|
2066
2066
|
])]),
|
|
2067
2067
|
key: "0"
|
|
2068
2068
|
} : void 0]), 1024));
|
|
2069
2069
|
}
|
|
2070
|
-
}), [["__scopeId", "data-v-51889a3b"]]),
|
|
2070
|
+
}), [["__scopeId", "data-v-51889a3b"]]), Rn = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
2071
2071
|
inheritAttrs: !1,
|
|
2072
2072
|
name: "TForm",
|
|
2073
2073
|
__name: "form",
|
|
@@ -2095,9 +2095,9 @@ var En = /* @__PURE__ */ E({
|
|
|
2095
2095
|
onReset: { type: Function },
|
|
2096
2096
|
onSubmit: { type: Function },
|
|
2097
2097
|
onValidate: { type: Function }
|
|
2098
|
-
},
|
|
2098
|
+
}, Ot),
|
|
2099
2099
|
setup(e, { expose: t }) {
|
|
2100
|
-
let n = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } =
|
|
2100
|
+
let n = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = _t, c = D(), u = P(null), d = b(() => n.items.map((e) => {
|
|
2101
2101
|
if (typeof e.__others == "function") {
|
|
2102
2102
|
let t = {
|
|
2103
2103
|
...e,
|
|
@@ -2145,23 +2145,23 @@ var En = /* @__PURE__ */ E({
|
|
|
2145
2145
|
});
|
|
2146
2146
|
let p = /* @__PURE__ */ new Map(), m = {
|
|
2147
2147
|
TCheckbox: r,
|
|
2148
|
-
TCheckboxGroup:
|
|
2148
|
+
TCheckboxGroup: Tn,
|
|
2149
2149
|
TColorPicker: se,
|
|
2150
|
-
TCron:
|
|
2150
|
+
TCron: En,
|
|
2151
2151
|
TDatePicker: ue,
|
|
2152
2152
|
TInput: le,
|
|
2153
2153
|
TInputNumber: de,
|
|
2154
|
-
TRadioGroup:
|
|
2154
|
+
TRadioGroup: Dn,
|
|
2155
2155
|
TRangeInput: fe,
|
|
2156
|
-
TSelect:
|
|
2157
|
-
TSelectSysUser:
|
|
2156
|
+
TSelect: kn,
|
|
2157
|
+
TSelectSysUser: An,
|
|
2158
2158
|
TSlider: he,
|
|
2159
2159
|
TSwitch: ge,
|
|
2160
2160
|
TTagInput: me,
|
|
2161
2161
|
TTextarea: _e,
|
|
2162
|
-
TTree:
|
|
2163
|
-
TTreeSelect:
|
|
2164
|
-
TUpload:
|
|
2162
|
+
TTree: Mn,
|
|
2163
|
+
TTreeSelect: Nn,
|
|
2164
|
+
TUpload: Ln
|
|
2165
2165
|
};
|
|
2166
2166
|
function ee(e) {
|
|
2167
2167
|
return typeof e == "string" ? o.has(e) ? (p.has(e) || p.set(e, Te(o.get(e))), p.get(e)) : m[e] : le;
|
|
@@ -2257,16 +2257,16 @@ var En = /* @__PURE__ */ E({
|
|
|
2257
2257
|
let t = e ?? {};
|
|
2258
2258
|
u.value = t, c.exposed = t;
|
|
2259
2259
|
}
|
|
2260
|
-
let ne =
|
|
2261
|
-
|
|
2262
|
-
ne.value = c.exposed.$el.getElementsByClassName("t-form__label"), y(),
|
|
2260
|
+
let ne = Pe();
|
|
2261
|
+
ke(() => {
|
|
2262
|
+
ne.value = c.exposed.$el.getElementsByClassName("t-form__label"), y(), pt(c.exposed.$el, () => {
|
|
2263
2263
|
y();
|
|
2264
2264
|
}, {
|
|
2265
2265
|
attributeFilter: ["class"],
|
|
2266
2266
|
characterData: !0,
|
|
2267
2267
|
childList: !0,
|
|
2268
2268
|
subtree: !0
|
|
2269
|
-
}),
|
|
2269
|
+
}), mt(c.exposed.$el, () => {
|
|
2270
2270
|
y();
|
|
2271
2271
|
});
|
|
2272
2272
|
});
|
|
@@ -2282,12 +2282,12 @@ var En = /* @__PURE__ */ E({
|
|
|
2282
2282
|
e.style.minWidth = `${t}px`;
|
|
2283
2283
|
});
|
|
2284
2284
|
}
|
|
2285
|
-
return
|
|
2285
|
+
return Ae("formData", n.data), Ae("formExposed", u), Ae("isFormDisabled", b(() => n.disabled)), Ae("isFormReadonly", b(() => n.readonly)), t({}), (t, n) => (N(), C(be, null, [S(" eslint-disable vue/no-mutating-props "), (N(), x(I(R(Ye)), j(j(t.$attrs, {
|
|
2286
2286
|
..._.value,
|
|
2287
2287
|
ref: te
|
|
2288
2288
|
}), { "label-width": "fit-content" }), {
|
|
2289
|
-
default: B(() => [(N(!0), C(be, null, F(d.value.filter((e) => e.show !== !1), (n) => (N(), x(R(
|
|
2290
|
-
default: B(() => [n.slot ?
|
|
2289
|
+
default: B(() => [(N(!0), C(be, null, F(d.value.filter((e) => e.show !== !1), (n) => (N(), x(R(Xe), j({ key: n.model ?? n.slot }, { ref_for: !0 }, j({ ...g(n) }, { class: { no_label_item: R(s)(n._label) } }), { name: n.model }), {
|
|
2290
|
+
default: B(() => [n.slot ? Me(t.$slots, n.slot, {}, void 0, !0, 0) : (N(), x(I(ee(n.component)), j({
|
|
2291
2291
|
key: 1,
|
|
2292
2292
|
modelValue: e.data[n.model],
|
|
2293
2293
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
@@ -2297,7 +2297,7 @@ var En = /* @__PURE__ */ E({
|
|
|
2297
2297
|
_: 3
|
|
2298
2298
|
}, 16))], 2112));
|
|
2299
2299
|
}
|
|
2300
|
-
}), [["__scopeId", "data-v-761be9bc"]]),
|
|
2300
|
+
}), [["__scopeId", "data-v-761be9bc"]]), zn = /* @__PURE__ */ E({
|
|
2301
2301
|
__name: "ResetPwd",
|
|
2302
2302
|
props: { showFooter: {
|
|
2303
2303
|
type: Boolean,
|
|
@@ -2335,7 +2335,7 @@ var En = /* @__PURE__ */ E({
|
|
|
2335
2335
|
type: "password"
|
|
2336
2336
|
},
|
|
2337
2337
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
2338
|
-
], i =
|
|
2338
|
+
], i = Le("form");
|
|
2339
2339
|
function a() {
|
|
2340
2340
|
K().close(n.name);
|
|
2341
2341
|
}
|
|
@@ -2350,9 +2350,9 @@ var En = /* @__PURE__ */ E({
|
|
|
2350
2350
|
newPassword: e.newPassword,
|
|
2351
2351
|
oldPassword: e.oldPassword
|
|
2352
2352
|
}
|
|
2353
|
-
}),
|
|
2353
|
+
}), rn().logout();
|
|
2354
2354
|
}
|
|
2355
|
-
return t({ handleSubmit: o }), (e, t) => (N(), x(R(
|
|
2355
|
+
return t({ handleSubmit: o }), (e, t) => (N(), x(R(Rn), {
|
|
2356
2356
|
ref: "form",
|
|
2357
2357
|
items: r,
|
|
2358
2358
|
"label-align": "right",
|
|
@@ -2374,35 +2374,35 @@ var En = /* @__PURE__ */ E({
|
|
|
2374
2374
|
}
|
|
2375
2375
|
});
|
|
2376
2376
|
// ../../packages/dlzn-ui/store/modules/user.ts
|
|
2377
|
-
function
|
|
2377
|
+
function Bn() {
|
|
2378
2378
|
return X.Get("getInfo", { meta: {
|
|
2379
2379
|
useFailMsg: "获取用户信息失败",
|
|
2380
2380
|
useLoading: "正在获取用户信息..."
|
|
2381
2381
|
} });
|
|
2382
2382
|
}
|
|
2383
|
-
var
|
|
2383
|
+
var Vn = {
|
|
2384
2384
|
admin: !1,
|
|
2385
2385
|
dept: { deptName: "" },
|
|
2386
2386
|
needChangePwd: 0,
|
|
2387
2387
|
nickName: "",
|
|
2388
2388
|
userId: "",
|
|
2389
2389
|
userName: "",
|
|
2390
|
-
...
|
|
2390
|
+
..._t.defaultUserInfo ?? {}
|
|
2391
2391
|
}, Q = V("user", () => {
|
|
2392
|
-
let e = P(
|
|
2392
|
+
let e = P(ht(Vn)), t = P([]), n = P([]);
|
|
2393
2393
|
function r() {
|
|
2394
|
-
e.value =
|
|
2394
|
+
e.value = ht(Vn), t.value = [], n.value = [];
|
|
2395
2395
|
}
|
|
2396
2396
|
let i = b(() => e.value.admin), a = P("");
|
|
2397
2397
|
async function o(r = !0) {
|
|
2398
|
-
let i = await
|
|
2399
|
-
e.value = i.user, a.value !== e.value.userId && K().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await
|
|
2398
|
+
let i = await Bn();
|
|
2399
|
+
e.value = i.user, a.value !== e.value.userId && K().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await Wt().getRouters();
|
|
2400
2400
|
}
|
|
2401
2401
|
z(() => e.value.needChangePwd, (e) => {
|
|
2402
|
-
e === 1 && VITE_FORCE_PWD_CHANGE
|
|
2402
|
+
if (e === 1 && VITE_FORCE_PWD_CHANGE) {
|
|
2403
2403
|
let e = P(null);
|
|
2404
2404
|
W({
|
|
2405
|
-
body: () => k(
|
|
2405
|
+
body: () => k(zn, {
|
|
2406
2406
|
labelAlign: "top",
|
|
2407
2407
|
ref: e,
|
|
2408
2408
|
showFooter: !1
|
|
@@ -2416,7 +2416,7 @@ var Hn = {
|
|
|
2416
2416
|
},
|
|
2417
2417
|
width: 430
|
|
2418
2418
|
});
|
|
2419
|
-
}
|
|
2419
|
+
}
|
|
2420
2420
|
}, { immediate: !0 });
|
|
2421
2421
|
function s(e) {
|
|
2422
2422
|
if (e === void 0) return !0;
|
|
@@ -2474,7 +2474,7 @@ var Hn = {
|
|
|
2474
2474
|
Object,
|
|
2475
2475
|
Array
|
|
2476
2476
|
] }
|
|
2477
|
-
},
|
|
2477
|
+
}, Dt),
|
|
2478
2478
|
setup(r) {
|
|
2479
2479
|
let i = r, a = P("");
|
|
2480
2480
|
function o() {
|
|
@@ -2498,7 +2498,7 @@ var Hn = {
|
|
|
2498
2498
|
}
|
|
2499
2499
|
return t;
|
|
2500
2500
|
}
|
|
2501
|
-
let s = P(!1), c = n.isLoading, l = P(null), { focused: u } =
|
|
2501
|
+
let s = P(!1), c = n.isLoading, l = P(null), { focused: u } = ft(l), d, f;
|
|
2502
2502
|
z(c, (e) => {
|
|
2503
2503
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2504
2504
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
@@ -2593,7 +2593,7 @@ var Hn = {
|
|
|
2593
2593
|
break;
|
|
2594
2594
|
}
|
|
2595
2595
|
if (t !== void 0) return t;
|
|
2596
|
-
}), v =
|
|
2596
|
+
}), v = Fe(), te = b(() => j(v, {
|
|
2597
2597
|
...m.value,
|
|
2598
2598
|
ref: h
|
|
2599
2599
|
}, { class: "flex-shrink-0" })), ne = b(() => {
|
|
@@ -2605,7 +2605,7 @@ var Hn = {
|
|
|
2605
2605
|
};
|
|
2606
2606
|
});
|
|
2607
2607
|
return (n, i) => R(Q)().checkPermissions(r.permission) ? (N(), C(be, { key: 0 }, [ne.value ? (N(), x(R(t), M(j({ key: 0 }, ne.value)), {
|
|
2608
|
-
default: B(() => [(N(), x(I(k(R(
|
|
2608
|
+
default: B(() => [(N(), x(I(k(R(Ve), te.value)), {
|
|
2609
2609
|
onVnodeMounted: g,
|
|
2610
2610
|
onVnodeUpdated: g
|
|
2611
2611
|
}, we({ _: 2 }, [r.icon || _.value ? {
|
|
@@ -2614,10 +2614,10 @@ var Hn = {
|
|
|
2614
2614
|
key: "0"
|
|
2615
2615
|
} : void 0, F(Object.keys(n.$slots), (e) => ({
|
|
2616
2616
|
name: e,
|
|
2617
|
-
fn: B((t) => [
|
|
2617
|
+
fn: B((t) => [Me(n.$slots, e, M(O(t)), void 0, !0)])
|
|
2618
2618
|
}))]), 1536))]),
|
|
2619
2619
|
_: 3
|
|
2620
|
-
}, 16)) : (N(), x(I(k(R(
|
|
2620
|
+
}, 16)) : (N(), x(I(k(R(Ve), te.value)), {
|
|
2621
2621
|
key: 1,
|
|
2622
2622
|
onVnodeMounted: g,
|
|
2623
2623
|
onVnodeUpdated: g
|
|
@@ -2627,10 +2627,10 @@ var Hn = {
|
|
|
2627
2627
|
key: "0"
|
|
2628
2628
|
} : void 0, F(Object.keys(n.$slots), (e) => ({
|
|
2629
2629
|
name: e,
|
|
2630
|
-
fn: B((t) => [
|
|
2630
|
+
fn: B((t) => [Me(n.$slots, e, M(O(t)), void 0, !0)])
|
|
2631
2631
|
}))]), 1536))], 64)) : S("v-if", !0);
|
|
2632
2632
|
}
|
|
2633
|
-
}), [["__scopeId", "data-v-2ba81aa7"]]),
|
|
2633
|
+
}), [["__scopeId", "data-v-2ba81aa7"]]), Hn = /* @__PURE__ */ E({
|
|
2634
2634
|
name: "TProvider",
|
|
2635
2635
|
__name: "Provider",
|
|
2636
2636
|
setup(e) {
|
|
@@ -2652,18 +2652,18 @@ var Hn = {
|
|
|
2652
2652
|
variant: "text"
|
|
2653
2653
|
})
|
|
2654
2654
|
} };
|
|
2655
|
-
return (e, n) => (N(), x(R(
|
|
2655
|
+
return (e, n) => (N(), x(R(ct), {
|
|
2656
2656
|
"empty-values": [""],
|
|
2657
|
-
locale: R(
|
|
2657
|
+
locale: R(Et),
|
|
2658
2658
|
"value-on-clear": "",
|
|
2659
2659
|
"z-index": 5500
|
|
2660
2660
|
}, {
|
|
2661
|
-
default: B(() => [T(R(
|
|
2662
|
-
default: B(() => [
|
|
2661
|
+
default: B(() => [T(R(Ue), { "global-config": t }, {
|
|
2662
|
+
default: B(() => [Me(e.$slots, "default")]),
|
|
2663
2663
|
_: 3
|
|
2664
2664
|
})]),
|
|
2665
2665
|
_: 3
|
|
2666
2666
|
}, 8, ["locale"]));
|
|
2667
2667
|
}
|
|
2668
2668
|
});
|
|
2669
|
-
export {
|
|
2669
|
+
export { on as A, G as B, mn as C, J 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, Y as T, At as U, W as V, kt as W, Tn as _, zn as a, Cn as b, Pn as c, jn as d, An as f, En as g, Dn as h, Q as i, rn as j, sn as k, Nn as l, On as m, $ as n, Rn as o, kn as p, Bn as r, Ln as s, Hn as t, Mn as u, xn as v, hn as w, wn as x, Sn as y, K as z };
|