dlzn-ui 2.0.32 → 2.0.34
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/LoginBg-DLvbYArg.css +1 -0
- package/assets/provider-CX7AzL0K.css +2 -0
- package/chunks/{AssignUser-CwTne2Qc.mjs → AssignUser-CmgcLlxC.mjs} +3 -3
- package/chunks/{Common-CkUSQvHq.mjs → Common-DZbBMKov.mjs} +1 -1
- package/chunks/{Day-BcnyU5sK.mjs → Day-NL0X-ECR.mjs} +1 -1
- package/chunks/{DictTypeDetail-CCAzju0B.mjs → DictTypeDetail-BNYU9qhL.mjs} +2 -2
- package/chunks/{Hour-Cwatbaf_.mjs → Hour-C_oljmnc.mjs} +1 -1
- package/chunks/{Index-Cj8p6UO8.mjs → Index-CGitH47m.mjs} +1 -1
- package/chunks/{Index-CKN8MPux.mjs → Index-CuglgjJr.mjs} +1 -1
- package/chunks/{Index-CtjRKRpF.mjs → Index-DtAHOfSR.mjs} +1 -1
- package/chunks/{Index-CtOfQO_c.mjs → Index-ckbYyFxj.mjs} +1 -1
- package/chunks/{IndexItem-PI7azFUZ.mjs → IndexItem-Rh--__FV.mjs} +1 -1
- package/chunks/{Log-BKG8INUi.mjs → Log-DnEz8ert.mjs} +2 -2
- package/chunks/LoginBg-BWz5nGWs.mjs +32 -0
- package/chunks/{Minute-xIvf6ywN.mjs → Minute-CxQp3Exi.mjs} +1 -1
- package/chunks/{Month-BR0hxhS7.mjs → Month-pbHyPA8m.mjs} +1 -1
- package/chunks/{Second-CAfVDcZ6.mjs → Second-D9SAH5mr.mjs} +1 -1
- package/chunks/{SelectDept-DpwFmg4t.mjs → SelectDept-DDGWjNmP.mjs} +1 -1
- package/chunks/{SelectMenu-PhyLqwyu.mjs → SelectMenu-BiHd6Ljn.mjs} +1 -1
- package/chunks/{SelectUser-BF4CSoDQ.mjs → SelectUser-COycsUpz.mjs} +2 -2
- package/chunks/{UserInfo-eE2h2il7.mjs → UserInfo-2VobCDpu.mjs} +1 -1
- package/chunks/{app-Bzy7d05r.mjs → app-CQG-8M_A.mjs} +1 -1
- package/chunks/{custom-page-list-V6c5UZq4.mjs → custom-page-list-3rO8mzjW.mjs} +4 -4
- package/chunks/{custom-page-table-C0a_H9Oi.mjs → custom-page-table-B7bPBile.mjs} +2 -2
- package/chunks/{overview-DT92-YBw.mjs → overview-Bkh-LBFm.mjs} +1 -1
- package/chunks/{page-list-BhLsMD_7.mjs → page-list-U_5LFlha.mjs} +3 -3
- package/chunks/{page-query-DiQBAtPy.mjs → page-query-CuEUmLfq.mjs} +1 -1
- package/chunks/{page-table-VlLsrpZs.mjs → page-table-BdrT0boc.mjs} +3 -3
- package/chunks/{pagination-gtzetvwl.mjs → pagination-D2As8nZe.mjs} +1 -1
- package/chunks/{provider-Ccvmo_nA.mjs → provider-CzMBS3Ky.mjs} +264 -251
- package/chunks/{table-C3GB8HZj.mjs → table-DCqmDWXx.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +9 -9
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +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.d.ts +3 -0
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +1 -1
- package/types/env.d.ts +1 -0
- package/views/monitor/logininfor/index.mjs +2 -2
- package/views/monitor/online/index.mjs +2 -2
- package/views/monitor/operlog/index.mjs +2 -2
- package/views/monitor/server/index.mjs +2 -2
- package/views/system/config/index.mjs +2 -2
- package/views/system/dept/index.mjs +2 -2
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +3 -3
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +2 -2
- package/views/system/notice/index.mjs +2 -2
- package/views/system/post/index.mjs +2 -2
- package/views/system/role/index.mjs +5 -5
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +3 -3
- package/views/tool/job/index.mjs +3 -3
- package/views/tool/job/modules/Log.mjs +1 -1
- package/assets/LoginBg-XqWOv7dJ.css +0 -1
- package/assets/provider-BVALV5nM.css +0 -2
- package/chunks/LoginBg-D3SWh-C6.mjs +0 -30
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../assets/css-BPkXehJY.css';import '../assets/provider-
|
|
1
|
+
import '../assets/css-BPkXehJY.css';import '../assets/provider-CX7AzL0K.css';/* empty css */
|
|
2
2
|
import { t as e } from "./icon-COjp1yrx.mjs";
|
|
3
3
|
import "../components/icon/index.mjs";
|
|
4
4
|
import { t } from "./popconfirm-Bc93K9mT.mjs";
|
|
@@ -45,13 +45,13 @@ import { t as fe } from "./switch-DNPmkfa_.mjs";
|
|
|
45
45
|
import "../components/switch/index.mjs";
|
|
46
46
|
import { t as pe } from "./textarea-CYirMH7f.mjs";
|
|
47
47
|
import "../components/textarea/index.mjs";
|
|
48
|
-
import { Fragment as me, KeepAlive as he, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as ge, createSlots as _e, createTextVNode as E, createVNode as D, defineAsyncComponent as ve, defineComponent as O, getCurrentInstance as k, guardReactiveProps as
|
|
49
|
-
import { Breadcrumb as
|
|
50
|
-
import { ElConfigProvider as
|
|
51
|
-
import { useElementSize as
|
|
48
|
+
import { Fragment as me, KeepAlive as he, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as ge, createSlots as _e, createTextVNode as E, createVNode as D, defineAsyncComponent as ve, defineComponent as O, getCurrentInstance as k, guardReactiveProps as A, h as j, inject as ye, markRaw as be, mergeDefaults as M, mergeProps as N, nextTick as P, normalizeClass as xe, normalizeProps as F, onMounted as Se, openBlock as I, provide as Ce, reactive as we, ref as L, renderList as R, renderSlot as Te, resolveComponent as Ee, resolveDynamicComponent as z, shallowRef as De, toDisplayString as B, unref as V, useAttrs as Oe, useSlots as ke, useTemplateRef as Ae, watch as H, withCtx as U, withModifiers as je } from "vue";
|
|
49
|
+
import { Breadcrumb as Me, BreadcrumbItem as Ne, Button as Pe, CheckboxGroup as Fe, ConfigProvider as Ie, Content as Le, DialogPlugin as Re, Drawer as ze, DrawerPlugin as Be, Dropdown as Ve, Form as He, FormItem as Ue, HeadMenu as We, Header as Ge, InputAdornment as Ke, Layout as qe, Menu as Je, MenuItem as Ye, RadioGroup as Xe, Select as Ze, Tree as Qe, TreeSelect as $e, Upload as et } from "tdesign-vue-next";
|
|
50
|
+
import { ElConfigProvider as tt } from "element-plus";
|
|
51
|
+
import { useElementSize as nt, useElementVisibility as rt, useFavicon as it, useFocus as at, useMutationObserver as ot, useResizeObserver as st } from "@vueuse/core";
|
|
52
52
|
import { cloneDeep as ct, isPlainObject as lt } from "lodash-es";
|
|
53
53
|
import { defineStore as ut } from "pinia";
|
|
54
|
-
import { createRouter as dt, createWebHistory as ft, useRoute as
|
|
54
|
+
import { createRouter as dt, createWebHistory as ft, useRoute as W, useRouter as pt } from "vue-router";
|
|
55
55
|
import mt from "virtual:dlzn-ui/app-params";
|
|
56
56
|
import { createAlova as ht } from "alova";
|
|
57
57
|
import gt from "alova/fetch";
|
|
@@ -247,7 +247,7 @@ var yt = {
|
|
|
247
247
|
}, xt = {
|
|
248
248
|
autoLabelWidth: !0,
|
|
249
249
|
colon: !0,
|
|
250
|
-
data: () =>
|
|
250
|
+
data: () => we({}),
|
|
251
251
|
disabled: !1,
|
|
252
252
|
labelAlign: "top",
|
|
253
253
|
layout: "inline",
|
|
@@ -261,29 +261,42 @@ var yt = {
|
|
|
261
261
|
//#endregion
|
|
262
262
|
//#region ../../packages/dlzn-ui/store/modules/common.ts
|
|
263
263
|
function St() {
|
|
264
|
-
return Y.Get(
|
|
264
|
+
return VITE_APP_ID === "1" ? Y.Get(`yq/oemConfig/getByDomain/${window.location.hostname}`, {
|
|
265
|
+
meta: { useToken: !1 },
|
|
266
|
+
transform(e) {
|
|
267
|
+
return {
|
|
268
|
+
appName: e.oemName,
|
|
269
|
+
logo: e.logo,
|
|
270
|
+
version: ""
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
}) : Y.Get("common/appInfo", { meta: {
|
|
265
274
|
useFailMsg: !1,
|
|
266
|
-
useLoading: !1,
|
|
267
275
|
useSysFailMsg: !1,
|
|
268
276
|
useToken: !1
|
|
269
277
|
} });
|
|
270
278
|
}
|
|
271
|
-
var
|
|
272
|
-
let e =
|
|
273
|
-
appName:
|
|
279
|
+
var G = ut("common", () => {
|
|
280
|
+
let e = L(!0), t = L(250), n = L({
|
|
281
|
+
appName: "",
|
|
282
|
+
logo: "",
|
|
274
283
|
version: ""
|
|
275
284
|
});
|
|
276
|
-
|
|
285
|
+
H(() => n.value.appName, (e) => {
|
|
277
286
|
e && (document.title = e);
|
|
278
|
-
});
|
|
287
|
+
}), it(S(() => n.value.logo || "favicon.ico"));
|
|
279
288
|
function r() {
|
|
280
289
|
St().then((e) => {
|
|
281
290
|
n.value = e;
|
|
282
291
|
}).catch((e) => {
|
|
283
|
-
|
|
292
|
+
n.value = {
|
|
293
|
+
appName: VITE_APP_NAME,
|
|
294
|
+
logo: "",
|
|
295
|
+
version: ""
|
|
296
|
+
}, console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
|
|
284
297
|
});
|
|
285
298
|
}
|
|
286
|
-
let i =
|
|
299
|
+
let i = L(!0), a = null;
|
|
287
300
|
function o() {
|
|
288
301
|
a !== null && (clearTimeout(a), a = null), i.value = !1, a = setTimeout(() => {
|
|
289
302
|
i.value = !0;
|
|
@@ -297,13 +310,13 @@ var W = ut("common", () => {
|
|
|
297
310
|
isRequestSleep: i,
|
|
298
311
|
requestActive: o
|
|
299
312
|
};
|
|
300
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }),
|
|
301
|
-
let e =
|
|
313
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), K = ut("recentRouters", () => {
|
|
314
|
+
let e = L([]), t = W(), n = pt();
|
|
302
315
|
function r() {
|
|
303
316
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
304
317
|
}
|
|
305
318
|
function i(t, n) {
|
|
306
|
-
let r = ct(n), i = e.value.findIndex((e) => e.name === r.name ||
|
|
319
|
+
let r = ct(n), i = e.value.findIndex((e) => e.name === r.name || rn(e.name).meta.title === rn(r.name).meta.title);
|
|
307
320
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
308
321
|
let n = e.value.findIndex((e) => e.name === t);
|
|
309
322
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -413,17 +426,17 @@ function At(e) {
|
|
|
413
426
|
return e.component;
|
|
414
427
|
}
|
|
415
428
|
var jt = ut("router", () => {
|
|
416
|
-
let e =
|
|
429
|
+
let e = L([]), t = pt(), n = Q();
|
|
417
430
|
async function r() {
|
|
418
431
|
let r = await Ct();
|
|
419
|
-
Ot.length = 0, e.value =
|
|
432
|
+
Ot.length = 0, e.value = be(Dt(Et(Tt(r)))), n.isAdmin && Object.keys(m).forEach((e) => {
|
|
420
433
|
if (!Ot.includes(e)) {
|
|
421
434
|
let t = `${e} 页面对应的路由不存在`;
|
|
422
435
|
console.error(t);
|
|
423
436
|
}
|
|
424
437
|
}), t.hasRoute("Index") && t.removeRoute("Index"), e.value.forEach((e) => {
|
|
425
438
|
t.addRoute(e);
|
|
426
|
-
}),
|
|
439
|
+
}), K().init();
|
|
427
440
|
}
|
|
428
441
|
function i() {
|
|
429
442
|
e.value.forEach((e) => {
|
|
@@ -438,8 +451,8 @@ var jt = ut("router", () => {
|
|
|
438
451
|
}), Mt = { class: "ml-2! flex items-center" }, Nt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
439
452
|
__name: "Aside",
|
|
440
453
|
setup(e) {
|
|
441
|
-
let t =
|
|
442
|
-
|
|
454
|
+
let t = W(), n = G(), r = S(() => n.appInfo.appName), i = jt(), a = L([]);
|
|
455
|
+
H(() => t.name, () => {
|
|
443
456
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
444
457
|
a.value.includes(e) || a.value.push(e);
|
|
445
458
|
});
|
|
@@ -447,34 +460,34 @@ var jt = ut("router", () => {
|
|
|
447
460
|
let o = S(() => {
|
|
448
461
|
let { hidden: e, parentName: n } = t.meta;
|
|
449
462
|
return n !== "" && e === !0 ? n : t.name;
|
|
450
|
-
});
|
|
451
|
-
return (e, t) => (
|
|
463
|
+
}), s = S(() => n.appInfo.logo || mt.asideTopLogoUrl);
|
|
464
|
+
return (e, t) => (I(), C(V(Je), {
|
|
452
465
|
expanded: a.value,
|
|
453
466
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
454
467
|
class: "w-full!",
|
|
455
468
|
value: o.value
|
|
456
469
|
}, {
|
|
457
|
-
logo:
|
|
470
|
+
logo: U(() => [ge("div", Mt, [D(V(p), {
|
|
458
471
|
class: "logo",
|
|
459
|
-
src:
|
|
472
|
+
src: s.value,
|
|
460
473
|
style: {
|
|
461
474
|
width: "28px",
|
|
462
475
|
height: "28px"
|
|
463
476
|
}
|
|
464
|
-
}, null, 8, ["src"]), D(
|
|
477
|
+
}, null, 8, ["src"]), D(V(d), {
|
|
465
478
|
"animation-speed": 8,
|
|
466
479
|
"class-name": "ml-2 text-xl !font-bold",
|
|
467
480
|
"show-border": !1,
|
|
468
481
|
text: r.value
|
|
469
482
|
}, null, 8, ["text"])])]),
|
|
470
|
-
default:
|
|
483
|
+
default: U(() => [D(h, { model: V(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
471
484
|
_: 1
|
|
472
485
|
}, 8, ["expanded", "value"]));
|
|
473
486
|
}
|
|
474
|
-
}), [["__scopeId", "data-v-
|
|
487
|
+
}), [["__scopeId", "data-v-36275803"]]), Pt = /* @__PURE__ */ O({
|
|
475
488
|
__name: "Breadcrumb",
|
|
476
489
|
setup(e, { expose: t }) {
|
|
477
|
-
let n =
|
|
490
|
+
let n = W(), r = pt(), i = K(), a = S(() => {
|
|
478
491
|
let e = n.matched.map((e) => ({
|
|
479
492
|
name: e.name,
|
|
480
493
|
title: e.meta.title
|
|
@@ -487,16 +500,16 @@ var jt = ut("router", () => {
|
|
|
487
500
|
function o(e) {
|
|
488
501
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
489
502
|
}
|
|
490
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (
|
|
503
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (I(), C(V(Me), {
|
|
491
504
|
key: 0,
|
|
492
505
|
class: "absolute top-px z-10 py-1!"
|
|
493
506
|
}, {
|
|
494
|
-
default:
|
|
507
|
+
default: U(() => [(I(!0), T(me, null, R(a.value, (e) => (I(), C(V(Ne), {
|
|
495
508
|
key: e.name,
|
|
496
509
|
disabled: e.disabled,
|
|
497
510
|
onClick: (t) => o(e.name)
|
|
498
511
|
}, {
|
|
499
|
-
default:
|
|
512
|
+
default: U(() => [E(B(e.title), 1)]),
|
|
500
513
|
_: 2
|
|
501
514
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
502
515
|
_: 1
|
|
@@ -506,11 +519,11 @@ var jt = ut("router", () => {
|
|
|
506
519
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
507
520
|
}(Ft || {}), It = /* @__PURE__ */ new Set();
|
|
508
521
|
function Lt(e, t, n) {
|
|
509
|
-
let i = S(() => typeof t.body == "function" ? t.body(
|
|
522
|
+
let i = S(() => typeof t.body == "function" ? t.body(j) : t.body), a = L(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: o, stop: s } = rt(a, {
|
|
510
523
|
controls: !0,
|
|
511
524
|
initialValue: !0
|
|
512
525
|
}), c = {
|
|
513
|
-
closeBtn: () =>
|
|
526
|
+
closeBtn: () => j($, {
|
|
514
527
|
icon: "mdi:close",
|
|
515
528
|
shape: "circle",
|
|
516
529
|
size: "small",
|
|
@@ -527,7 +540,7 @@ function Lt(e, t, n) {
|
|
|
527
540
|
placement: "center",
|
|
528
541
|
width: "fit-content",
|
|
529
542
|
...t ?? {},
|
|
530
|
-
body: () =>
|
|
543
|
+
body: () => j(Nn, {}, { default: () => i.value })
|
|
531
544
|
}, l, u = {
|
|
532
545
|
...c,
|
|
533
546
|
onClosed: () => {
|
|
@@ -536,7 +549,7 @@ function Lt(e, t, n) {
|
|
|
536
549
|
};
|
|
537
550
|
delete u.closeWhenCloseAll;
|
|
538
551
|
let d = r();
|
|
539
|
-
return l = e === void 0 ?
|
|
552
|
+
return l = e === void 0 ? Re(u, n ?? d) : Re[e](u, n ?? d), c.closeWhenCloseAll && It.add(l), l;
|
|
540
553
|
}
|
|
541
554
|
var Rt = function(...e) {
|
|
542
555
|
return Lt(void 0, ...e);
|
|
@@ -559,7 +572,7 @@ var zt = (e, t) => {
|
|
|
559
572
|
a.hide(), r();
|
|
560
573
|
},
|
|
561
574
|
theme: "warning"
|
|
562
|
-
} :
|
|
575
|
+
} : we({
|
|
563
576
|
...n,
|
|
564
577
|
onClose: (t) => {
|
|
565
578
|
let { trigger: n } = t;
|
|
@@ -598,18 +611,18 @@ function Ut(e) {
|
|
|
598
611
|
});
|
|
599
612
|
});
|
|
600
613
|
}
|
|
601
|
-
var
|
|
614
|
+
var q = /* @__PURE__ */ new Map();
|
|
602
615
|
function Wt() {
|
|
603
|
-
Ht.length = 0, Bt.clear(),
|
|
616
|
+
Ht.length = 0, Bt.clear(), q.clear();
|
|
604
617
|
}
|
|
605
618
|
function Gt(e) {
|
|
606
|
-
Bt.delete(e),
|
|
607
|
-
|
|
619
|
+
Bt.delete(e), q.has(e) && Ut(e).then((t) => {
|
|
620
|
+
q.get(e).value = t;
|
|
608
621
|
});
|
|
609
622
|
}
|
|
610
623
|
function Kt(e) {
|
|
611
624
|
let t;
|
|
612
|
-
return
|
|
625
|
+
return q.has(e) ? t = q.get(e) : (t = L(null), q.set(e, t), Ut(e).then((e) => {
|
|
613
626
|
t.value = e;
|
|
614
627
|
})), t;
|
|
615
628
|
}
|
|
@@ -628,7 +641,7 @@ function Jt() {
|
|
|
628
641
|
} });
|
|
629
642
|
}
|
|
630
643
|
var Yt = ut("login", () => {
|
|
631
|
-
let e =
|
|
644
|
+
let e = L(""), t = W(), n = pt();
|
|
632
645
|
async function r(t) {
|
|
633
646
|
let n = await qt(t);
|
|
634
647
|
e.value = n.token, await Q().getUserInfo();
|
|
@@ -636,7 +649,7 @@ var Yt = ut("login", () => {
|
|
|
636
649
|
function i() {
|
|
637
650
|
e.value = "", u().clear(), jt().clear(), Q().clear(), fn(), Wt(), ne();
|
|
638
651
|
}
|
|
639
|
-
|
|
652
|
+
H(() => t.name, () => {
|
|
640
653
|
t.name === "Login" && i();
|
|
641
654
|
});
|
|
642
655
|
async function a() {
|
|
@@ -650,7 +663,7 @@ var Yt = ut("login", () => {
|
|
|
650
663
|
}, { persist: { pick: ["token"] } }), Xt = { class: "flex items-center justify-between" }, Zt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
651
664
|
__name: "Header",
|
|
652
665
|
setup(t) {
|
|
653
|
-
let n =
|
|
666
|
+
let n = W(), r = pt(), i = Q(), a = G(), o = K();
|
|
654
667
|
function s(e) {
|
|
655
668
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
656
669
|
}
|
|
@@ -683,23 +696,23 @@ var Yt = ut("login", () => {
|
|
|
683
696
|
}
|
|
684
697
|
}), ee(e, i);
|
|
685
698
|
}
|
|
686
|
-
return (t, r) => (
|
|
687
|
-
default:
|
|
699
|
+
return (t, r) => (I(), C(V(Ge), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
700
|
+
default: U(() => [D(V(We), {
|
|
688
701
|
"expand-type": "popup",
|
|
689
|
-
value:
|
|
702
|
+
value: V(n).name,
|
|
690
703
|
onChange: s
|
|
691
704
|
}, {
|
|
692
|
-
logo:
|
|
705
|
+
logo: U(() => [D(V($), {
|
|
693
706
|
class: "ml-0! shrink-0",
|
|
694
707
|
shape: "circle",
|
|
695
708
|
size: "large",
|
|
696
709
|
variant: "text",
|
|
697
|
-
onClick: r[0] ||= (e) =>
|
|
710
|
+
onClick: r[0] ||= (e) => V(a).drawerOpen = !V(a).drawerOpen
|
|
698
711
|
}, {
|
|
699
|
-
default:
|
|
712
|
+
default: U(() => [D(V(e), { icon: "lineicons:menu-hamburger-1" })]),
|
|
700
713
|
_: 1
|
|
701
714
|
})]),
|
|
702
|
-
operations:
|
|
715
|
+
operations: U(() => [D(V(Ve), {
|
|
703
716
|
options: [{
|
|
704
717
|
content: "个人中心",
|
|
705
718
|
value: "profile"
|
|
@@ -711,44 +724,44 @@ var Yt = ut("login", () => {
|
|
|
711
724
|
trigger: "click",
|
|
712
725
|
onClick: u
|
|
713
726
|
}, {
|
|
714
|
-
default:
|
|
727
|
+
default: U(() => [V(d) ? (I(), C(V($), {
|
|
715
728
|
key: 0,
|
|
716
729
|
shape: "square",
|
|
717
730
|
variant: "text"
|
|
718
731
|
}, {
|
|
719
|
-
icon:
|
|
732
|
+
icon: U(() => [D(V(e), { icon: "material-symbols:account-circle" })]),
|
|
720
733
|
_: 1
|
|
721
|
-
})) : (
|
|
734
|
+
})) : (I(), C(V($), {
|
|
722
735
|
key: 1,
|
|
723
736
|
variant: "text"
|
|
724
737
|
}, {
|
|
725
|
-
icon:
|
|
738
|
+
icon: U(() => [D(V(e), {
|
|
726
739
|
class: "mr-2!",
|
|
727
740
|
icon: "material-symbols:account-circle"
|
|
728
741
|
})]),
|
|
729
|
-
suffix:
|
|
742
|
+
suffix: U(() => [D(V(e), {
|
|
730
743
|
icon: "icon-park-outline:down",
|
|
731
744
|
size: "18"
|
|
732
745
|
})]),
|
|
733
|
-
default:
|
|
746
|
+
default: U(() => [E(" " + B(V(i).userInfo.userName) + " ", 1)]),
|
|
734
747
|
_: 1
|
|
735
748
|
}))]),
|
|
736
749
|
_: 1
|
|
737
750
|
})]),
|
|
738
|
-
default:
|
|
751
|
+
default: U(() => [(I(!0), T(me, null, R(V(o).recentRouters, (t) => (I(), C(V(Ye), {
|
|
739
752
|
key: t.name,
|
|
740
753
|
value: t.name,
|
|
741
754
|
onContextmenu: (e) => f(e, t.name)
|
|
742
755
|
}, {
|
|
743
|
-
default:
|
|
756
|
+
default: U(() => [ge("div", Xt, [ge("span", null, B(V(rn)(t.name).meta.title), 1), V(o).recentRouters.length > 1 ? (I(), C(V($), {
|
|
744
757
|
key: 0,
|
|
745
758
|
class: "ml-1!",
|
|
746
759
|
shape: "square",
|
|
747
760
|
size: "small",
|
|
748
761
|
variant: "text",
|
|
749
|
-
onClick:
|
|
762
|
+
onClick: je((e) => c(t.name), ["stop"])
|
|
750
763
|
}, {
|
|
751
|
-
icon:
|
|
764
|
+
icon: U(() => [D(V(e), {
|
|
752
765
|
icon: "material-symbols:close",
|
|
753
766
|
style: { "font-size": "12px !important" }
|
|
754
767
|
})]),
|
|
@@ -764,37 +777,37 @@ var Yt = ut("login", () => {
|
|
|
764
777
|
}), [["__scopeId", "data-v-cdf58b1a"]]), Qt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
765
778
|
__name: "Entry",
|
|
766
779
|
setup(e) {
|
|
767
|
-
let t =
|
|
780
|
+
let t = W(), n = G(), r = K(), i = u(), a = S(() => r.recentRouters.filter((e) => rn(e.name).meta.noCache === !1).map((e) => e.name)), o = Ae("breadcrumb"), s = S(() => (o.value?.items.length ?? 0) > 0), d = S(() => l.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), f = l.isMd, p = Ae("contentRef"), { height: m } = nt(p);
|
|
768
781
|
function h({ size: e }) {
|
|
769
782
|
n.drawerSize = e;
|
|
770
783
|
}
|
|
771
784
|
let ee = S(() => t.meta.fullScreen);
|
|
772
785
|
return (e, t) => {
|
|
773
|
-
let r =
|
|
774
|
-
return ee.value ? (
|
|
775
|
-
default:
|
|
786
|
+
let r = Ee("RouterView");
|
|
787
|
+
return ee.value ? (I(), C(r, { key: 0 }, {
|
|
788
|
+
default: U(({ Component: e }) => [(I(), C(z(e)))]),
|
|
776
789
|
_: 1
|
|
777
|
-
})) : (
|
|
790
|
+
})) : (I(), C(V(qe), {
|
|
778
791
|
key: 1,
|
|
779
792
|
class: "h-full"
|
|
780
793
|
}, {
|
|
781
|
-
default:
|
|
794
|
+
default: U(() => [
|
|
782
795
|
D(Zt),
|
|
783
|
-
D(
|
|
784
|
-
visible:
|
|
785
|
-
"onUpdate:visible": t[0] ||= (e) =>
|
|
796
|
+
D(V(ze), {
|
|
797
|
+
visible: V(n).drawerOpen,
|
|
798
|
+
"onUpdate:visible": t[0] ||= (e) => V(n).drawerOpen = e,
|
|
786
799
|
footer: !1,
|
|
787
|
-
mode:
|
|
800
|
+
mode: V(f) ? "overlay" : "push",
|
|
788
801
|
placement: "left",
|
|
789
|
-
"show-overlay":
|
|
790
|
-
size:
|
|
802
|
+
"show-overlay": V(f),
|
|
803
|
+
size: V(f) ? "200px" : `${V(n).drawerSize}px`,
|
|
791
804
|
"size-draggable": {
|
|
792
805
|
max: 450,
|
|
793
806
|
min: 180
|
|
794
807
|
},
|
|
795
808
|
onSizeDragEnd: h
|
|
796
809
|
}, {
|
|
797
|
-
default:
|
|
810
|
+
default: U(() => [D(Nt, { class: "no_drawer_body_padding" })]),
|
|
798
811
|
_: 1
|
|
799
812
|
}, 8, [
|
|
800
813
|
"visible",
|
|
@@ -802,27 +815,27 @@ var Yt = ut("login", () => {
|
|
|
802
815
|
"show-overlay",
|
|
803
816
|
"size"
|
|
804
817
|
]),
|
|
805
|
-
D(
|
|
818
|
+
D(V(Le), {
|
|
806
819
|
ref_key: "contentRef",
|
|
807
820
|
ref: p,
|
|
808
821
|
class: "overflow-hidden"
|
|
809
822
|
}, {
|
|
810
|
-
default:
|
|
823
|
+
default: U(() => [D(V(c), {
|
|
811
824
|
always: "",
|
|
812
|
-
"view-class":
|
|
825
|
+
"view-class": xe(["relative flex flex-col", {
|
|
813
826
|
...d.value,
|
|
814
827
|
"pt-8": s.value
|
|
815
828
|
}]),
|
|
816
829
|
"view-style": {
|
|
817
830
|
minWidth: "1200px",
|
|
818
|
-
minHeight: `${Math.max(
|
|
831
|
+
minHeight: `${Math.max(V(m), 438)}px`
|
|
819
832
|
}
|
|
820
833
|
}, {
|
|
821
|
-
default:
|
|
822
|
-
default:
|
|
823
|
-
exclude:
|
|
834
|
+
default: U(() => [D(Pt, { ref: "breadcrumb" }, null, 512), D(r, null, {
|
|
835
|
+
default: U(({ Component: e }) => [(I(), C(he, {
|
|
836
|
+
exclude: V(i).excludeKPname,
|
|
824
837
|
include: a.value
|
|
825
|
-
}, [(
|
|
838
|
+
}, [(I(), C(z(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
826
839
|
_: 1
|
|
827
840
|
})]),
|
|
828
841
|
_: 1
|
|
@@ -836,7 +849,7 @@ var Yt = ut("login", () => {
|
|
|
836
849
|
}
|
|
837
850
|
}), [["__scopeId", "data-v-de5cbc76"]]), $t = /* @__PURE__ */ new Set();
|
|
838
851
|
function en(e, t) {
|
|
839
|
-
let n = S(() => typeof e.body == "function" ? e.body(
|
|
852
|
+
let n = S(() => typeof e.body == "function" ? e.body(j) : e.body), i = {
|
|
840
853
|
attach: "#app",
|
|
841
854
|
closeOnEscKeydown: !1,
|
|
842
855
|
closeOnOverlayClick: !1,
|
|
@@ -846,14 +859,14 @@ function en(e, t) {
|
|
|
846
859
|
lazy: !0,
|
|
847
860
|
sizeDraggable: !0,
|
|
848
861
|
...e ?? {},
|
|
849
|
-
body: () =>
|
|
862
|
+
body: () => j(Nn, {}, { default: () => n.value })
|
|
850
863
|
}, a, o = {
|
|
851
864
|
...i,
|
|
852
865
|
onClose: (e) => {
|
|
853
866
|
i.onClose?.(e), $t.delete(a);
|
|
854
867
|
}
|
|
855
868
|
};
|
|
856
|
-
return delete o.closeWhenCloseAll, a =
|
|
869
|
+
return delete o.closeWhenCloseAll, a = Be(o, t ?? r()), i.closeWhenCloseAll && $t.add(a), a;
|
|
857
870
|
}
|
|
858
871
|
var tn = function(...e) {
|
|
859
872
|
return en(...e);
|
|
@@ -898,7 +911,7 @@ function nn() {
|
|
|
898
911
|
path: "/"
|
|
899
912
|
};
|
|
900
913
|
}
|
|
901
|
-
var
|
|
914
|
+
var J = dt({
|
|
902
915
|
history: ft(VITE_BASE_URL),
|
|
903
916
|
routes: [
|
|
904
917
|
nn(),
|
|
@@ -945,16 +958,16 @@ var q = dt({
|
|
|
945
958
|
sensitive: !0,
|
|
946
959
|
strict: !0
|
|
947
960
|
});
|
|
948
|
-
|
|
949
|
-
if (e.query._fromLeftTree === "true" && u().add(e.name), !["Login", "Register"].includes(e.name)) return Yt().token === "" ? { name: "Login" } : jt().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(),
|
|
961
|
+
J.beforeEach(async (e) => {
|
|
962
|
+
if (e.query._fromLeftTree === "true" && u().add(e.name), !["Login", "Register"].includes(e.name)) return Yt().token === "" ? { name: "Login" } : jt().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), J.resolve({
|
|
950
963
|
path: e.path,
|
|
951
964
|
query: e.query
|
|
952
965
|
}));
|
|
953
|
-
}),
|
|
966
|
+
}), J.afterEach((e, t, n) => {
|
|
954
967
|
Rt.closeAll(), tn.closeAll();
|
|
955
968
|
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: s } = r;
|
|
956
|
-
document.title = s ||
|
|
957
|
-
let c =
|
|
969
|
+
document.title = s || G().appInfo.appName;
|
|
970
|
+
let c = K();
|
|
958
971
|
if (![
|
|
959
972
|
"Login",
|
|
960
973
|
"NotFound",
|
|
@@ -968,20 +981,20 @@ q.beforeEach(async (e) => {
|
|
|
968
981
|
}
|
|
969
982
|
u().remove(i);
|
|
970
983
|
});
|
|
971
|
-
function
|
|
972
|
-
if (
|
|
984
|
+
function rn(e) {
|
|
985
|
+
if (J.hasRoute(e)) return J.getRoutes().find((t) => t.name === e);
|
|
973
986
|
}
|
|
974
987
|
//#endregion
|
|
975
988
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
976
|
-
var
|
|
977
|
-
function
|
|
989
|
+
var an = 15e3, on = "网络错误,请稍后再试";
|
|
990
|
+
function sn(e, t = !0) {
|
|
978
991
|
let n = {};
|
|
979
992
|
return Object.keys(e).forEach((r) => {
|
|
980
993
|
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !v(e[r]))) && (n[r] = e[r]);
|
|
981
994
|
}), n;
|
|
982
995
|
}
|
|
983
|
-
function
|
|
984
|
-
return new URLSearchParams(
|
|
996
|
+
function cn(e, t = !0) {
|
|
997
|
+
return new URLSearchParams(sn(e, t)).toString();
|
|
985
998
|
}
|
|
986
999
|
var Y = ht({
|
|
987
1000
|
baseURL: VITE_BASE_URL,
|
|
@@ -1006,9 +1019,9 @@ var Y = ht({
|
|
|
1006
1019
|
...e.meta ?? {}
|
|
1007
1020
|
};
|
|
1008
1021
|
let r = Yt(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: c, useLoading: l, useResponseBlob: u, useToken: d } = e.meta;
|
|
1009
|
-
c ||
|
|
1022
|
+
c || G().requestActive(), d && (r.token ? e.config.headers.Authorization = r.token : e.abort()), l !== !1 && i.show(l === !0 ? void 0 : l);
|
|
1010
1023
|
let f = e.config.params;
|
|
1011
|
-
if (typeof f != "string" && (e.config.params =
|
|
1024
|
+
if (typeof f != "string" && (e.config.params = cn(f, o)), a && lt(e.data)) {
|
|
1012
1025
|
let t = {}, n = e.data;
|
|
1013
1026
|
Object.keys(n).forEach((e) => {
|
|
1014
1027
|
v(n[e]) || (t[e] = n[e]);
|
|
@@ -1020,7 +1033,7 @@ var Y = ht({
|
|
|
1020
1033
|
t.append(n, e.data[n]);
|
|
1021
1034
|
}), e.data = t;
|
|
1022
1035
|
}
|
|
1023
|
-
e.config.timeout ===
|
|
1036
|
+
e.config.timeout === an && (s || e.data instanceof FormData || u) && (e.config.timeout = 0);
|
|
1024
1037
|
},
|
|
1025
1038
|
cacheFor: null,
|
|
1026
1039
|
requestAdapter: gt(),
|
|
@@ -1035,7 +1048,7 @@ var Y = ht({
|
|
|
1035
1048
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1036
1049
|
if (t.toLowerCase().includes("timeout")) return n && o.error("请求超时"), Promise.reject(e);
|
|
1037
1050
|
}
|
|
1038
|
-
return n && o.error(
|
|
1051
|
+
return n && o.error(on), Promise.reject(e);
|
|
1039
1052
|
},
|
|
1040
1053
|
onSuccess: async (e, t) => {
|
|
1041
1054
|
if (typeof e == "string") return e;
|
|
@@ -1046,7 +1059,7 @@ var Y = ht({
|
|
|
1046
1059
|
403: "当前操作没有权限",
|
|
1047
1060
|
404: "访问资源不存在",
|
|
1048
1061
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1049
|
-
}[m] ??
|
|
1062
|
+
}[m] ?? on;
|
|
1050
1063
|
o.error(e);
|
|
1051
1064
|
}
|
|
1052
1065
|
return Promise.reject(e);
|
|
@@ -1087,7 +1100,7 @@ var Y = ht({
|
|
|
1087
1100
|
if (e >= 400) {
|
|
1088
1101
|
if (e === 600) {
|
|
1089
1102
|
if (!s) return h;
|
|
1090
|
-
} else e === 401 && d ?
|
|
1103
|
+
} else e === 401 && d ? J.push({ name: "Login" }) : a !== !1 && o.error(a === !0 ? n : a);
|
|
1091
1104
|
return Promise.reject(h);
|
|
1092
1105
|
}
|
|
1093
1106
|
{
|
|
@@ -1104,9 +1117,9 @@ var Y = ht({
|
|
|
1104
1117
|
},
|
|
1105
1118
|
shareRequest: !1,
|
|
1106
1119
|
statesHook: _t,
|
|
1107
|
-
timeout:
|
|
1108
|
-
}),
|
|
1109
|
-
function
|
|
1120
|
+
timeout: an
|
|
1121
|
+
}), ln = /* @__PURE__ */ new Map();
|
|
1122
|
+
function un(e) {
|
|
1110
1123
|
let t = Y.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
1111
1124
|
cssClass: e.cssClass,
|
|
1112
1125
|
dictType: e.dictType,
|
|
@@ -1115,26 +1128,26 @@ function ln(e) {
|
|
|
1115
1128
|
value: e.dictValue
|
|
1116
1129
|
})));
|
|
1117
1130
|
e.forEach((e) => {
|
|
1118
|
-
|
|
1131
|
+
ln.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
1119
1132
|
});
|
|
1120
1133
|
}
|
|
1121
|
-
var
|
|
1134
|
+
var X = [];
|
|
1122
1135
|
function dn(e) {
|
|
1123
|
-
return
|
|
1136
|
+
return X.includes(e) || X.push(e), new Promise((t) => {
|
|
1124
1137
|
setTimeout(() => {
|
|
1125
|
-
let n =
|
|
1126
|
-
n.length > 0 &&
|
|
1138
|
+
let n = X.filter((e) => !ln.has(e));
|
|
1139
|
+
n.length > 0 && un(n), X.length = 0, ln.get(e).then((e) => {
|
|
1127
1140
|
t(e);
|
|
1128
1141
|
});
|
|
1129
1142
|
});
|
|
1130
1143
|
});
|
|
1131
1144
|
}
|
|
1132
|
-
var
|
|
1145
|
+
var Z = /* @__PURE__ */ new Map();
|
|
1133
1146
|
function fn() {
|
|
1134
|
-
|
|
1147
|
+
X.length = 0, ln.clear(), Z.clear();
|
|
1135
1148
|
}
|
|
1136
1149
|
function pn(e, t) {
|
|
1137
|
-
let n =
|
|
1150
|
+
let n = mn(e);
|
|
1138
1151
|
return S(() => {
|
|
1139
1152
|
if (t === void 0) return n.value.map((e) => e.label);
|
|
1140
1153
|
if (Array.isArray(t)) return n.value.length === 0 ? [] : t.map((e) => n.value.find((t) => String(t.value) === String(e))?.label ?? b(e));
|
|
@@ -1146,20 +1159,20 @@ function pn(e, t) {
|
|
|
1146
1159
|
return n.value.find((e) => String(e.value) === String(t))?.label ?? b(t);
|
|
1147
1160
|
});
|
|
1148
1161
|
}
|
|
1149
|
-
function
|
|
1162
|
+
function mn(e, t) {
|
|
1150
1163
|
let n;
|
|
1151
|
-
return
|
|
1164
|
+
return Z.has(e) ? n = Z.get(e) : (n = L([]), Z.set(e, n), dn(e).then((e) => {
|
|
1152
1165
|
n.value = e;
|
|
1153
1166
|
})), S(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1154
1167
|
}
|
|
1155
|
-
function
|
|
1156
|
-
|
|
1157
|
-
|
|
1168
|
+
function hn(e) {
|
|
1169
|
+
ln.delete(e), Z.has(e) && dn(e).then((t) => {
|
|
1170
|
+
Z.get(e).value = t;
|
|
1158
1171
|
});
|
|
1159
1172
|
}
|
|
1160
1173
|
//#endregion
|
|
1161
1174
|
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
1162
|
-
var
|
|
1175
|
+
var gn = /* @__PURE__ */ O({
|
|
1163
1176
|
inheritAttrs: !1,
|
|
1164
1177
|
name: "TCheckboxGroup",
|
|
1165
1178
|
__name: "checkbox-group",
|
|
@@ -1192,7 +1205,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1192
1205
|
}
|
|
1193
1206
|
let s = S(() => {
|
|
1194
1207
|
let e;
|
|
1195
|
-
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e =
|
|
1208
|
+
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e = mn(r.dicCode).value) : e = typeof r.options == "string" ? te(r.options).value : r.options, r.showCheckAll && (e === void 0 ? n.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
1196
1209
|
checkAll: !0,
|
|
1197
1210
|
label: "全选"
|
|
1198
1211
|
})), e;
|
|
@@ -1210,7 +1223,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1210
1223
|
e[t] === void 0 && delete e[t];
|
|
1211
1224
|
}), e;
|
|
1212
1225
|
});
|
|
1213
|
-
return (e, t) => (
|
|
1226
|
+
return (e, t) => (I(), C(z(j(V(Fe), N(e.$attrs, {
|
|
1214
1227
|
...l.value,
|
|
1215
1228
|
options: s.value,
|
|
1216
1229
|
modelValue: c.value,
|
|
@@ -1220,10 +1233,10 @@ var hn = /* @__PURE__ */ O({
|
|
|
1220
1233
|
ref: o
|
|
1221
1234
|
}), e.$slots))));
|
|
1222
1235
|
}
|
|
1223
|
-
}),
|
|
1236
|
+
}), _n = /* @__PURE__ */ O({
|
|
1224
1237
|
inheritAttrs: !1,
|
|
1225
1238
|
__name: "cron",
|
|
1226
|
-
props: /*@__PURE__*/
|
|
1239
|
+
props: /*@__PURE__*/ M({
|
|
1227
1240
|
modelValue: {},
|
|
1228
1241
|
adornment: {},
|
|
1229
1242
|
align: {},
|
|
@@ -1271,16 +1284,16 @@ var hn = /* @__PURE__ */ O({
|
|
|
1271
1284
|
}, ie),
|
|
1272
1285
|
emits: ["update:modelValue"],
|
|
1273
1286
|
setup(e, { emit: t }) {
|
|
1274
|
-
let n = e, r = t, i =
|
|
1287
|
+
let n = e, r = t, i = ye("isFormDisabled", S(() => !1)), a = ye("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1275
1288
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1276
1289
|
return {
|
|
1277
1290
|
...n,
|
|
1278
|
-
adornment: { append: () =>
|
|
1291
|
+
adornment: { append: () => j($, {
|
|
1279
1292
|
default: "cron",
|
|
1280
1293
|
onClick: () => {
|
|
1281
|
-
let i =
|
|
1294
|
+
let i = L(null);
|
|
1282
1295
|
zt({
|
|
1283
|
-
body: () =>
|
|
1296
|
+
body: () => j(ve(() => import("../components/cron/src/Picker.mjs")), {
|
|
1284
1297
|
disabled: e,
|
|
1285
1298
|
modelValue: n.modelValue,
|
|
1286
1299
|
onVnodeMounted: (e) => {
|
|
@@ -1302,20 +1315,20 @@ var hn = /* @__PURE__ */ O({
|
|
|
1302
1315
|
variant: "text"
|
|
1303
1316
|
}) }
|
|
1304
1317
|
};
|
|
1305
|
-
}), s =
|
|
1318
|
+
}), s = Oe(), c = k();
|
|
1306
1319
|
function l(e) {
|
|
1307
1320
|
c.exposed = e ?? {};
|
|
1308
1321
|
}
|
|
1309
|
-
let u = S(() =>
|
|
1322
|
+
let u = S(() => N(s, {
|
|
1310
1323
|
...o.value,
|
|
1311
1324
|
onChange: (...e) => {
|
|
1312
1325
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1313
1326
|
},
|
|
1314
1327
|
ref: l
|
|
1315
1328
|
}));
|
|
1316
|
-
return (e, t) => (
|
|
1329
|
+
return (e, t) => (I(), C(V(ae), F(A(u.value)), null, 16));
|
|
1317
1330
|
}
|
|
1318
|
-
}),
|
|
1331
|
+
}), vn = /* @__PURE__ */ O({
|
|
1319
1332
|
inheritAttrs: !1,
|
|
1320
1333
|
name: "TRadioGroup",
|
|
1321
1334
|
__name: "radio-group",
|
|
@@ -1349,7 +1362,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1349
1362
|
function o(e) {
|
|
1350
1363
|
a.exposed = e ?? {};
|
|
1351
1364
|
}
|
|
1352
|
-
let s = S(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"),
|
|
1365
|
+
let s = S(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"), mn(r.dicCode).value) : typeof r.options == "string" ? te(r.options).value : r.options), c = S(() => {
|
|
1353
1366
|
let e = { ...r };
|
|
1354
1367
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1355
1368
|
e[t] === void 0 && delete e[t];
|
|
@@ -1362,18 +1375,18 @@ var hn = /* @__PURE__ */ O({
|
|
|
1362
1375
|
}
|
|
1363
1376
|
return r.modelValue;
|
|
1364
1377
|
});
|
|
1365
|
-
return (e, t) => (
|
|
1378
|
+
return (e, t) => (I(), C(z(j(V(Xe), N(e.$attrs, {
|
|
1366
1379
|
...c.value,
|
|
1367
1380
|
options: s.value,
|
|
1368
1381
|
modelValue: l.value,
|
|
1369
1382
|
onChange: (...e) => {
|
|
1370
|
-
let [t, ...n] = e, a =
|
|
1383
|
+
let [t, ...n] = e, a = V(v)(t) ? "" : t;
|
|
1371
1384
|
i("update:modelValue", a), r.onChange?.(a, ...n);
|
|
1372
1385
|
},
|
|
1373
1386
|
ref: o
|
|
1374
1387
|
}), e.$slots))));
|
|
1375
1388
|
}
|
|
1376
|
-
}),
|
|
1389
|
+
}), yn = {
|
|
1377
1390
|
clearable: !0,
|
|
1378
1391
|
disabled: void 0,
|
|
1379
1392
|
filterable: void 0,
|
|
@@ -1394,11 +1407,11 @@ var hn = /* @__PURE__ */ O({
|
|
|
1394
1407
|
}),
|
|
1395
1408
|
showArrow: !0,
|
|
1396
1409
|
showCheckAll: !1
|
|
1397
|
-
},
|
|
1410
|
+
}, bn = /* @__PURE__ */ O({
|
|
1398
1411
|
inheritAttrs: !1,
|
|
1399
1412
|
name: "TSelect",
|
|
1400
1413
|
__name: "select",
|
|
1401
|
-
props: /*@__PURE__*/
|
|
1414
|
+
props: /*@__PURE__*/ M({
|
|
1402
1415
|
adornment: {},
|
|
1403
1416
|
dicCode: {},
|
|
1404
1417
|
modelValue: {},
|
|
@@ -1458,7 +1471,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1458
1471
|
onPopupVisibleChange: { type: Function },
|
|
1459
1472
|
onRemove: { type: Function },
|
|
1460
1473
|
onSearch: { type: Function }
|
|
1461
|
-
},
|
|
1474
|
+
}, yn),
|
|
1462
1475
|
setup(e) {
|
|
1463
1476
|
let t = e, r = k();
|
|
1464
1477
|
function i(e) {
|
|
@@ -1466,7 +1479,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1466
1479
|
}
|
|
1467
1480
|
let a = S(() => {
|
|
1468
1481
|
let e;
|
|
1469
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ? te(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e =
|
|
1482
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? te(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e = mn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? n.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
1470
1483
|
checkAll: !0,
|
|
1471
1484
|
[t.keys?.label ?? "label"]: "全选"
|
|
1472
1485
|
}) : n.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
@@ -1490,8 +1503,8 @@ var hn = /* @__PURE__ */ O({
|
|
|
1490
1503
|
return delete e.dicCode, delete e.showCheckAll, delete e.adornment, Object.keys(e).forEach((t) => {
|
|
1491
1504
|
e[t] === void 0 && delete e[t];
|
|
1492
1505
|
}), e;
|
|
1493
|
-
}), c =
|
|
1494
|
-
|
|
1506
|
+
}), c = L(0);
|
|
1507
|
+
Se(() => {
|
|
1495
1508
|
st(r.exposed.$el, () => {
|
|
1496
1509
|
c.value = r.exposed.$el.offsetWidth;
|
|
1497
1510
|
}, { box: "border-box" });
|
|
@@ -1516,16 +1529,16 @@ var hn = /* @__PURE__ */ O({
|
|
|
1516
1529
|
})
|
|
1517
1530
|
},
|
|
1518
1531
|
ref: i
|
|
1519
|
-
})), d =
|
|
1520
|
-
return (t, n) => e.adornment ? (
|
|
1532
|
+
})), d = Ke;
|
|
1533
|
+
return (t, n) => e.adornment ? (I(), C(z(j(V(d), t.$attrs, {
|
|
1521
1534
|
...e.adornment,
|
|
1522
|
-
default: () =>
|
|
1523
|
-
})), { key: 0 })) : (
|
|
1535
|
+
default: () => j(V(Ze), u.value, t.$slots)
|
|
1536
|
+
})), { key: 0 })) : (I(), C(z(j(V(Ze), N(t.$attrs, u.value), t.$slots)), { key: 1 }));
|
|
1524
1537
|
}
|
|
1525
|
-
}),
|
|
1538
|
+
}), xn = /* @__PURE__ */ O({
|
|
1526
1539
|
inheritAttrs: !1,
|
|
1527
1540
|
__name: "select-sys-user",
|
|
1528
|
-
props: /*@__PURE__*/
|
|
1541
|
+
props: /*@__PURE__*/ M({
|
|
1529
1542
|
modelValue: {},
|
|
1530
1543
|
adornment: {},
|
|
1531
1544
|
autoWidth: { type: Boolean },
|
|
@@ -1567,16 +1580,16 @@ var hn = /* @__PURE__ */ O({
|
|
|
1567
1580
|
}, le),
|
|
1568
1581
|
emits: ["update:modelValue"],
|
|
1569
1582
|
setup(e, { emit: t }) {
|
|
1570
|
-
let n = e, r = t, i =
|
|
1583
|
+
let n = e, r = t, i = ye("isFormDisabled", S(() => !1)), a = ye("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1571
1584
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1572
1585
|
return {
|
|
1573
1586
|
...n,
|
|
1574
|
-
adornment: e || t ? void 0 : { append: () =>
|
|
1587
|
+
adornment: e || t ? void 0 : { append: () => j($, {
|
|
1575
1588
|
default: "选择用户",
|
|
1576
1589
|
onClick: () => {
|
|
1577
|
-
let e =
|
|
1590
|
+
let e = L(null);
|
|
1578
1591
|
zt({
|
|
1579
|
-
body: () =>
|
|
1592
|
+
body: () => j(ve(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
1580
1593
|
max: n.max,
|
|
1581
1594
|
modelValue: n.modelValue,
|
|
1582
1595
|
onVnodeMounted: (t) => {
|
|
@@ -1597,11 +1610,11 @@ var hn = /* @__PURE__ */ O({
|
|
|
1597
1610
|
variant: "text"
|
|
1598
1611
|
}) }
|
|
1599
1612
|
};
|
|
1600
|
-
}), s =
|
|
1613
|
+
}), s = Oe(), c = k();
|
|
1601
1614
|
function l(e) {
|
|
1602
1615
|
c.exposed = e ?? {};
|
|
1603
1616
|
}
|
|
1604
|
-
let u = S(() =>
|
|
1617
|
+
let u = S(() => N(s, {
|
|
1605
1618
|
...o.value,
|
|
1606
1619
|
inputProps: {
|
|
1607
1620
|
readonly: !0,
|
|
@@ -1613,34 +1626,34 @@ var hn = /* @__PURE__ */ O({
|
|
|
1613
1626
|
placeholder: "请选择用户",
|
|
1614
1627
|
ref: l
|
|
1615
1628
|
}));
|
|
1616
|
-
return (e, t) => (
|
|
1617
|
-
tag:
|
|
1629
|
+
return (e, t) => (I(), C(V(ue), F(A(u.value)), {
|
|
1630
|
+
tag: U(({ value: e }) => [E(B(V(Kt)(e).value?.userName), 1)]),
|
|
1618
1631
|
_: 1
|
|
1619
1632
|
}, 16));
|
|
1620
1633
|
}
|
|
1621
|
-
}),
|
|
1634
|
+
}), Sn = {
|
|
1622
1635
|
checkable: !1,
|
|
1623
1636
|
disabled: void 0,
|
|
1624
1637
|
expandOnClickNode: void 0,
|
|
1625
1638
|
hover: !0,
|
|
1626
1639
|
icon: () => (t, n) => {
|
|
1627
1640
|
let r = "";
|
|
1628
|
-
return n.getChildren && n.getChildren(!1) && (n.expanded ? (r = "cuida:caret-down-outline", n.loading && (r = "line-md:loading-twotone-loop")) : r = "cuida:caret-right-outline"), r === "" ? null :
|
|
1641
|
+
return n.getChildren && n.getChildren(!1) && (n.expanded ? (r = "cuida:caret-down-outline", n.loading && (r = "line-md:loading-twotone-loop")) : r = "cuida:caret-right-outline"), r === "" ? null : j($, {
|
|
1629
1642
|
shape: "circle",
|
|
1630
1643
|
size: "small",
|
|
1631
1644
|
variant: "outline"
|
|
1632
|
-
}, { icon: () =>
|
|
1645
|
+
}, { icon: () => j(e, { icon: r }) });
|
|
1633
1646
|
},
|
|
1634
1647
|
label: !0,
|
|
1635
1648
|
lazy: !0,
|
|
1636
1649
|
line: !0,
|
|
1637
1650
|
transition: !0,
|
|
1638
1651
|
valueMode: "all"
|
|
1639
|
-
},
|
|
1652
|
+
}, Cn = /* @__PURE__ */ O({
|
|
1640
1653
|
inheritAttrs: !1,
|
|
1641
1654
|
name: "TTree",
|
|
1642
1655
|
__name: "tree",
|
|
1643
|
-
props: /*@__PURE__*/
|
|
1656
|
+
props: /*@__PURE__*/ M({
|
|
1644
1657
|
"onUpdate:actived": { type: Function },
|
|
1645
1658
|
"onUpdate:expanded": { type: Function },
|
|
1646
1659
|
"onUpdate:modelValue": { type: Function },
|
|
@@ -1693,9 +1706,9 @@ var hn = /* @__PURE__ */ O({
|
|
|
1693
1706
|
onLoad: { type: Function },
|
|
1694
1707
|
onScroll: { type: Function },
|
|
1695
1708
|
treeStore: {}
|
|
1696
|
-
},
|
|
1709
|
+
}, Sn),
|
|
1697
1710
|
setup(e, { expose: t }) {
|
|
1698
|
-
let n = e, r =
|
|
1711
|
+
let n = e, r = ke(), i = S(() => {
|
|
1699
1712
|
let e = { ...n };
|
|
1700
1713
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1701
1714
|
e[t] === void 0 && delete e[t];
|
|
@@ -1704,12 +1717,12 @@ var hn = /* @__PURE__ */ O({
|
|
|
1704
1717
|
function o(e) {
|
|
1705
1718
|
a.exposed = e ?? {};
|
|
1706
1719
|
}
|
|
1707
|
-
return t({}), (e, t) => (
|
|
1720
|
+
return t({}), (e, t) => (I(), C(z(j(V(Qe), N(e.$attrs, {
|
|
1708
1721
|
...i.value,
|
|
1709
1722
|
ref: o
|
|
1710
1723
|
}), e.$slots))));
|
|
1711
1724
|
}
|
|
1712
|
-
}),
|
|
1725
|
+
}), wn = /* @__PURE__ */ O({
|
|
1713
1726
|
inheritAttrs: !1,
|
|
1714
1727
|
name: "TTreeSelect",
|
|
1715
1728
|
__name: "tree-select",
|
|
@@ -1782,10 +1795,10 @@ var hn = /* @__PURE__ */ O({
|
|
|
1782
1795
|
minCollapsedNum: 2,
|
|
1783
1796
|
...e.selectInputProps ?? {}
|
|
1784
1797
|
}, e.treeProps = {
|
|
1785
|
-
...
|
|
1798
|
+
...Sn,
|
|
1786
1799
|
checkable: !!t.multiple,
|
|
1787
1800
|
expandOnClickNode: !!t.multiple,
|
|
1788
|
-
icon:
|
|
1801
|
+
icon: Sn.icon(),
|
|
1789
1802
|
...e.treeProps ?? {}
|
|
1790
1803
|
}, Object.keys(e).forEach((t) => {
|
|
1791
1804
|
e[t] === void 0 && delete e[t];
|
|
@@ -1794,12 +1807,12 @@ var hn = /* @__PURE__ */ O({
|
|
|
1794
1807
|
function a(e) {
|
|
1795
1808
|
i.exposed = e ?? {};
|
|
1796
1809
|
}
|
|
1797
|
-
let o =
|
|
1798
|
-
return
|
|
1810
|
+
let o = L(0);
|
|
1811
|
+
return Se(() => {
|
|
1799
1812
|
st(i.exposed.$el, () => {
|
|
1800
1813
|
o.value = i.exposed.$el.offsetWidth;
|
|
1801
1814
|
}, { box: "border-box" });
|
|
1802
|
-
}), (e, t) => (
|
|
1815
|
+
}), (e, t) => (I(), C(z(j(V($e), N(e.$attrs, {
|
|
1803
1816
|
...r.value,
|
|
1804
1817
|
data: n.value,
|
|
1805
1818
|
ref: a,
|
|
@@ -1813,10 +1826,10 @@ var hn = /* @__PURE__ */ O({
|
|
|
1813
1826
|
}
|
|
1814
1827
|
}), e.$slots))));
|
|
1815
1828
|
}
|
|
1816
|
-
}),
|
|
1829
|
+
}), Tn = ".xlsx,.xls", En = { class: "flex items-center" }, Dn = {
|
|
1817
1830
|
key: 1,
|
|
1818
1831
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1819
|
-
},
|
|
1832
|
+
}, On = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
1820
1833
|
inheritAttrs: !1,
|
|
1821
1834
|
name: "TUpload",
|
|
1822
1835
|
__name: "upload",
|
|
@@ -1825,7 +1838,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1825
1838
|
"onUpdate:modelValue": {},
|
|
1826
1839
|
requestMethod: {},
|
|
1827
1840
|
abridgeName: {},
|
|
1828
|
-
accept: { default:
|
|
1841
|
+
accept: { default: Tn },
|
|
1829
1842
|
allowUploadDuplicateFile: { type: Boolean },
|
|
1830
1843
|
autoUpload: { type: Boolean },
|
|
1831
1844
|
beforeAllFilesUpload: {},
|
|
@@ -1927,39 +1940,39 @@ var hn = /* @__PURE__ */ O({
|
|
|
1927
1940
|
function s(e) {
|
|
1928
1941
|
o.exposed = e ?? {};
|
|
1929
1942
|
}
|
|
1930
|
-
return t({}), (t, o) => (
|
|
1943
|
+
return t({}), (t, o) => (I(), C(z(j(V(et), N(t.$attrs, {
|
|
1931
1944
|
...a.value,
|
|
1932
1945
|
requestMethod: r.value,
|
|
1933
1946
|
ref: s
|
|
1934
|
-
}, { class: a.value.theme }))), null, _e({ _: 2 }, [
|
|
1947
|
+
}, { class: a.value.theme }))), null, _e({ _: 2 }, [R(Object.keys(t.$slots), (e) => ({
|
|
1935
1948
|
name: e,
|
|
1936
|
-
fn:
|
|
1949
|
+
fn: U((n) => [Te(t.$slots, e, F(A(n)), void 0, !0)])
|
|
1937
1950
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
1938
1951
|
name: "trigger",
|
|
1939
|
-
fn:
|
|
1940
|
-
D(
|
|
1941
|
-
default:
|
|
1952
|
+
fn: U(({ files: t }) => [ge("div", En, [
|
|
1953
|
+
D(V($), { theme: "primary" }, {
|
|
1954
|
+
default: U(() => [E(B(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
1942
1955
|
_: 2
|
|
1943
1956
|
}, 1024),
|
|
1944
|
-
e.downloadTemplate ? (
|
|
1957
|
+
e.downloadTemplate ? (I(), C(V($), {
|
|
1945
1958
|
key: 0,
|
|
1946
1959
|
theme: "primary",
|
|
1947
1960
|
variant: "outline",
|
|
1948
|
-
onClick:
|
|
1961
|
+
onClick: je(i, ["stop"])
|
|
1949
1962
|
}, {
|
|
1950
|
-
default:
|
|
1963
|
+
default: U(() => [...o[0] ||= [E("下载模板", -1)]]),
|
|
1951
1964
|
_: 1
|
|
1952
1965
|
})) : w("v-if", !0),
|
|
1953
|
-
n.tips ? (
|
|
1966
|
+
n.tips ? (I(), T("span", Dn, B(n.tips), 1)) : w("v-if", !0)
|
|
1954
1967
|
])]),
|
|
1955
1968
|
key: "0"
|
|
1956
1969
|
} : void 0]), 1024));
|
|
1957
1970
|
}
|
|
1958
|
-
}), [["__scopeId", "data-v-
|
|
1971
|
+
}), [["__scopeId", "data-v-3f7d6566"]]), kn = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
1959
1972
|
inheritAttrs: !1,
|
|
1960
1973
|
name: "TForm",
|
|
1961
1974
|
__name: "form",
|
|
1962
|
-
props: /*@__PURE__*/
|
|
1975
|
+
props: /*@__PURE__*/ M({
|
|
1963
1976
|
autoLabelWidth: { type: Boolean },
|
|
1964
1977
|
data: {},
|
|
1965
1978
|
items: {},
|
|
@@ -1985,7 +1998,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1985
1998
|
onValidate: { type: Function }
|
|
1986
1999
|
}, xt),
|
|
1987
2000
|
setup(e, { expose: t }) {
|
|
1988
|
-
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: s = /* @__PURE__ */ new Map() } = mt, c = k(), l =
|
|
2001
|
+
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: s = /* @__PURE__ */ new Map() } = mt, c = k(), l = L(null), u = S(() => r.items.map((e) => {
|
|
1989
2002
|
if (typeof e.__others == "function") {
|
|
1990
2003
|
let t = {
|
|
1991
2004
|
...e,
|
|
@@ -2025,31 +2038,31 @@ var hn = /* @__PURE__ */ O({
|
|
|
2025
2038
|
}
|
|
2026
2039
|
});
|
|
2027
2040
|
}
|
|
2028
|
-
|
|
2041
|
+
H(u, d, {
|
|
2029
2042
|
deep: 2,
|
|
2030
2043
|
immediate: !0
|
|
2031
|
-
}),
|
|
2044
|
+
}), H(() => r.data, () => {
|
|
2032
2045
|
n.error("TForm: data is changed");
|
|
2033
2046
|
});
|
|
2034
2047
|
let f = /* @__PURE__ */ new Map(), p = {
|
|
2035
2048
|
TCheckbox: a,
|
|
2036
|
-
TCheckboxGroup:
|
|
2049
|
+
TCheckboxGroup: gn,
|
|
2037
2050
|
TColorPicker: re,
|
|
2038
|
-
TCron:
|
|
2051
|
+
TCron: _n,
|
|
2039
2052
|
TDatePicker: oe,
|
|
2040
2053
|
TInput: ae,
|
|
2041
2054
|
TInputNumber: se,
|
|
2042
|
-
TRadioGroup:
|
|
2055
|
+
TRadioGroup: vn,
|
|
2043
2056
|
TRangeInput: ce,
|
|
2044
|
-
TSelect:
|
|
2045
|
-
TSelectSysUser:
|
|
2057
|
+
TSelect: bn,
|
|
2058
|
+
TSelectSysUser: xn,
|
|
2046
2059
|
TSlider: de,
|
|
2047
2060
|
TSwitch: fe,
|
|
2048
2061
|
TTagInput: ue,
|
|
2049
2062
|
TTextarea: pe,
|
|
2050
|
-
TTree:
|
|
2051
|
-
TTreeSelect:
|
|
2052
|
-
TUpload:
|
|
2063
|
+
TTree: Cn,
|
|
2064
|
+
TTreeSelect: wn,
|
|
2065
|
+
TUpload: On
|
|
2053
2066
|
};
|
|
2054
2067
|
function m(e) {
|
|
2055
2068
|
return typeof e == "string" ? s.has(e) ? (f.has(e) || f.set(e, ve(s.get(e))), f.get(e)) : p[e] : ae;
|
|
@@ -2132,11 +2145,11 @@ var hn = /* @__PURE__ */ O({
|
|
|
2132
2145
|
if (!t.clearValidate._alreadyReplace) {
|
|
2133
2146
|
let e = t.clearValidate;
|
|
2134
2147
|
t.clearValidate = (...t) => {
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2148
|
+
P(() => {
|
|
2149
|
+
P(() => {
|
|
2150
|
+
P(() => {
|
|
2151
|
+
P(() => {
|
|
2152
|
+
P(() => {
|
|
2140
2153
|
e(...t);
|
|
2141
2154
|
});
|
|
2142
2155
|
});
|
|
@@ -2155,8 +2168,8 @@ var hn = /* @__PURE__ */ O({
|
|
|
2155
2168
|
let t = e ?? {};
|
|
2156
2169
|
l.value = t, c.exposed = t;
|
|
2157
2170
|
}
|
|
2158
|
-
let b =
|
|
2159
|
-
|
|
2171
|
+
let b = De();
|
|
2172
|
+
Se(() => {
|
|
2160
2173
|
b.value = c.exposed.$el.getElementsByClassName("t-form__label"), x(), ot(c.exposed.$el, () => {
|
|
2161
2174
|
x();
|
|
2162
2175
|
}, {
|
|
@@ -2180,12 +2193,12 @@ var hn = /* @__PURE__ */ O({
|
|
|
2180
2193
|
e.style.minWidth = `${t}px`;
|
|
2181
2194
|
});
|
|
2182
2195
|
}
|
|
2183
|
-
return
|
|
2196
|
+
return Ce("formData", r.data), Ce("formExposed", l), Ce("isFormDisabled", S(() => r.disabled)), Ce("isFormReadonly", S(() => r.readonly)), t({}), (t, n) => (I(), T(me, null, [w(" eslint-disable vue/no-mutating-props "), (I(), C(z(V(He)), N(N(t.$attrs, {
|
|
2184
2197
|
...g.value,
|
|
2185
2198
|
ref: y
|
|
2186
2199
|
}), { "label-width": "fit-content" }), {
|
|
2187
|
-
default:
|
|
2188
|
-
default:
|
|
2200
|
+
default: U(() => [(I(!0), T(me, null, R(u.value.filter((e) => e.show !== !1), (n) => (I(), C(V(Ue), N({ key: n.model ?? n.slot }, { ref_for: !0 }, N({ ...ee(n) }, { class: { no_label_item: V(v)(n._label) } }), { name: n.model }), {
|
|
2201
|
+
default: U(() => [n.slot ? Te(t.$slots, n.slot, {}, void 0, !0, 0) : (I(), C(z(m(n.component)), N({
|
|
2189
2202
|
key: 1,
|
|
2190
2203
|
modelValue: e.data[n.model],
|
|
2191
2204
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
@@ -2195,14 +2208,14 @@ var hn = /* @__PURE__ */ O({
|
|
|
2195
2208
|
_: 3
|
|
2196
2209
|
}, 16))], 2112));
|
|
2197
2210
|
}
|
|
2198
|
-
}), [["__scopeId", "data-v-a297275a"]]),
|
|
2211
|
+
}), [["__scopeId", "data-v-a297275a"]]), An = /* @__PURE__ */ O({
|
|
2199
2212
|
__name: "ResetPwd",
|
|
2200
2213
|
props: { showFooter: {
|
|
2201
2214
|
type: Boolean,
|
|
2202
2215
|
default: !0
|
|
2203
2216
|
} },
|
|
2204
2217
|
setup(e, { expose: t }) {
|
|
2205
|
-
let n =
|
|
2218
|
+
let n = W(), r = [
|
|
2206
2219
|
{
|
|
2207
2220
|
_label: "旧密码",
|
|
2208
2221
|
_required: !0,
|
|
@@ -2233,9 +2246,9 @@ var hn = /* @__PURE__ */ O({
|
|
|
2233
2246
|
type: "password"
|
|
2234
2247
|
},
|
|
2235
2248
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
2236
|
-
], i =
|
|
2249
|
+
], i = Ae("form");
|
|
2237
2250
|
function a() {
|
|
2238
|
-
|
|
2251
|
+
K().close(n.name);
|
|
2239
2252
|
}
|
|
2240
2253
|
async function o() {
|
|
2241
2254
|
let e = await i.value.validate();
|
|
@@ -2250,21 +2263,21 @@ var hn = /* @__PURE__ */ O({
|
|
|
2250
2263
|
}
|
|
2251
2264
|
}), Yt().logout();
|
|
2252
2265
|
}
|
|
2253
|
-
return t({ handleSubmit: o }), (e, t) => (
|
|
2266
|
+
return t({ handleSubmit: o }), (e, t) => (I(), C(V(kn), {
|
|
2254
2267
|
ref: "form",
|
|
2255
2268
|
items: r,
|
|
2256
2269
|
"label-align": "right",
|
|
2257
2270
|
layout: "vertical"
|
|
2258
2271
|
}, {
|
|
2259
|
-
footer:
|
|
2260
|
-
default:
|
|
2272
|
+
footer: U(() => [D(V($), { onClick: o }, {
|
|
2273
|
+
default: U(() => [...t[0] ||= [E("保存", -1)]]),
|
|
2261
2274
|
_: 1
|
|
2262
|
-
}), D(
|
|
2275
|
+
}), D(V($), {
|
|
2263
2276
|
class: "ml-4!",
|
|
2264
2277
|
theme: "default",
|
|
2265
2278
|
onClick: a
|
|
2266
2279
|
}, {
|
|
2267
|
-
default:
|
|
2280
|
+
default: U(() => [...t[1] ||= [E("关闭", -1)]]),
|
|
2268
2281
|
_: 1
|
|
2269
2282
|
})]),
|
|
2270
2283
|
_: 1
|
|
@@ -2273,13 +2286,13 @@ var hn = /* @__PURE__ */ O({
|
|
|
2273
2286
|
});
|
|
2274
2287
|
//#endregion
|
|
2275
2288
|
//#region ../../packages/dlzn-ui/store/modules/user.ts
|
|
2276
|
-
function
|
|
2289
|
+
function jn() {
|
|
2277
2290
|
return Y.Get("getInfo", { meta: {
|
|
2278
2291
|
useFailMsg: "获取用户信息失败",
|
|
2279
2292
|
useLoading: "正在获取用户信息..."
|
|
2280
2293
|
} });
|
|
2281
2294
|
}
|
|
2282
|
-
var
|
|
2295
|
+
var Mn = {
|
|
2283
2296
|
admin: !1,
|
|
2284
2297
|
dept: { deptName: "" },
|
|
2285
2298
|
needChangePwd: 0,
|
|
@@ -2287,20 +2300,20 @@ var jn = {
|
|
|
2287
2300
|
userId: "",
|
|
2288
2301
|
userName: ""
|
|
2289
2302
|
}, Q = ut("user", () => {
|
|
2290
|
-
let e =
|
|
2303
|
+
let e = L(ct(Mn)), t = L([]), n = L([]);
|
|
2291
2304
|
function r() {
|
|
2292
|
-
e.value = ct(
|
|
2305
|
+
e.value = ct(Mn), t.value = [], n.value = [];
|
|
2293
2306
|
}
|
|
2294
|
-
let i = S(() => e.value.admin), a =
|
|
2307
|
+
let i = S(() => e.value.admin), a = L("");
|
|
2295
2308
|
async function o(r = !0) {
|
|
2296
|
-
let i = await
|
|
2297
|
-
e.value = i.user, a.value !== e.value.userId &&
|
|
2309
|
+
let i = await jn();
|
|
2310
|
+
e.value = i.user, a.value !== e.value.userId && K().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await jt().getRouters();
|
|
2298
2311
|
}
|
|
2299
|
-
|
|
2300
|
-
e === 1 && VITE_FORCE_PWD_CHANGE &&
|
|
2301
|
-
let e =
|
|
2312
|
+
H(() => e.value.needChangePwd, (e) => {
|
|
2313
|
+
e === 1 && VITE_FORCE_PWD_CHANGE && P(() => {
|
|
2314
|
+
let e = L(null);
|
|
2302
2315
|
zt({
|
|
2303
|
-
body: () =>
|
|
2316
|
+
body: () => j(An, {
|
|
2304
2317
|
labelAlign: "top",
|
|
2305
2318
|
ref: e,
|
|
2306
2319
|
showFooter: !1
|
|
@@ -2335,7 +2348,7 @@ var jn = {
|
|
|
2335
2348
|
inheritAttrs: !1,
|
|
2336
2349
|
name: "TButton",
|
|
2337
2350
|
__name: "button",
|
|
2338
|
-
props: /*@__PURE__*/
|
|
2351
|
+
props: /*@__PURE__*/ M({
|
|
2339
2352
|
autoIcon: { type: Boolean },
|
|
2340
2353
|
autoLoading: { type: Boolean },
|
|
2341
2354
|
autoTheme: { type: Boolean },
|
|
@@ -2374,7 +2387,7 @@ var jn = {
|
|
|
2374
2387
|
] }
|
|
2375
2388
|
}, bt),
|
|
2376
2389
|
setup(n) {
|
|
2377
|
-
let r = n, a =
|
|
2390
|
+
let r = n, a = L("");
|
|
2378
2391
|
function o() {
|
|
2379
2392
|
if (!r.autoTheme || a.value.trim() === "") return {};
|
|
2380
2393
|
let e = /* @__PURE__ */ new Map([
|
|
@@ -2396,14 +2409,14 @@ var jn = {
|
|
|
2396
2409
|
}
|
|
2397
2410
|
return t;
|
|
2398
2411
|
}
|
|
2399
|
-
let s =
|
|
2400
|
-
|
|
2412
|
+
let s = L(!1), c = i.isLoading, l = L(null), { focused: u } = at(l), d, f;
|
|
2413
|
+
H(c, (e) => {
|
|
2401
2414
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2402
2415
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
2403
2416
|
}, 150)) : d === void 0 ? f = setTimeout(() => {
|
|
2404
2417
|
s.value = !1;
|
|
2405
2418
|
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
2406
|
-
}, { immediate: !0 }),
|
|
2419
|
+
}, { immediate: !0 }), H(u, (e) => {
|
|
2407
2420
|
e && c.value && (s.value = !0);
|
|
2408
2421
|
});
|
|
2409
2422
|
let p = S(() => r.loading === void 0 ? r.autoLoading ? s.value : !1 : r.loading), m = S(() => {
|
|
@@ -2484,7 +2497,7 @@ var jn = {
|
|
|
2484
2497
|
break;
|
|
2485
2498
|
}
|
|
2486
2499
|
if (t !== void 0) return t;
|
|
2487
|
-
}), v =
|
|
2500
|
+
}), v = Oe(), y = S(() => N(v, {
|
|
2488
2501
|
...m.value,
|
|
2489
2502
|
ref: ee
|
|
2490
2503
|
}, { class: "flex-shrink-0" })), b = S(() => {
|
|
@@ -2495,33 +2508,33 @@ var jn = {
|
|
|
2495
2508
|
}
|
|
2496
2509
|
};
|
|
2497
2510
|
});
|
|
2498
|
-
return (r, i) =>
|
|
2499
|
-
default:
|
|
2511
|
+
return (r, i) => V(Q)().checkPermissions(n.permission) ? (I(), T(me, { key: 0 }, [b.value ? (I(), C(V(t), F(N({ key: 0 }, b.value)), {
|
|
2512
|
+
default: U(() => [(I(), C(z(j(V(Pe), y.value)), {
|
|
2500
2513
|
onVnodeMounted: g,
|
|
2501
2514
|
onVnodeUpdated: g
|
|
2502
2515
|
}, _e({ _: 2 }, [n.icon || _.value ? {
|
|
2503
2516
|
name: "icon",
|
|
2504
|
-
fn:
|
|
2517
|
+
fn: U(() => [D(V(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
|
|
2505
2518
|
key: "0"
|
|
2506
|
-
} : void 0,
|
|
2519
|
+
} : void 0, R(Object.keys(r.$slots), (e) => ({
|
|
2507
2520
|
name: e,
|
|
2508
|
-
fn:
|
|
2521
|
+
fn: U((t) => [Te(r.$slots, e, F(A(t)), void 0, !0)])
|
|
2509
2522
|
}))]), 1536))]),
|
|
2510
2523
|
_: 3
|
|
2511
|
-
}, 16)) : (
|
|
2524
|
+
}, 16)) : (I(), C(z(j(V(Pe), y.value)), {
|
|
2512
2525
|
key: 1,
|
|
2513
2526
|
onVnodeMounted: g,
|
|
2514
2527
|
onVnodeUpdated: g
|
|
2515
2528
|
}, _e({ _: 2 }, [n.icon || _.value ? {
|
|
2516
2529
|
name: "icon",
|
|
2517
|
-
fn:
|
|
2530
|
+
fn: U(() => [D(V(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
|
|
2518
2531
|
key: "0"
|
|
2519
|
-
} : void 0,
|
|
2532
|
+
} : void 0, R(Object.keys(r.$slots), (e) => ({
|
|
2520
2533
|
name: e,
|
|
2521
|
-
fn:
|
|
2534
|
+
fn: U((t) => [Te(r.$slots, e, F(A(t)), void 0, !0)])
|
|
2522
2535
|
}))]), 1536))], 64)) : w("v-if", !0);
|
|
2523
2536
|
}
|
|
2524
|
-
}), [["__scopeId", "data-v-d7f7dcf0"]]),
|
|
2537
|
+
}), [["__scopeId", "data-v-d7f7dcf0"]]), Nn = /* @__PURE__ */ O({
|
|
2525
2538
|
name: "TProvider",
|
|
2526
2539
|
__name: "Provider",
|
|
2527
2540
|
setup(t) {
|
|
@@ -2540,14 +2553,14 @@ var jn = {
|
|
|
2540
2553
|
variant: "text"
|
|
2541
2554
|
}, { icon: () => t(e, { icon: `ph:caret-${n === "expand" ? "right" : "down"}-bold` }) })
|
|
2542
2555
|
} };
|
|
2543
|
-
return (e, t) => (
|
|
2556
|
+
return (e, t) => (I(), C(V(tt), {
|
|
2544
2557
|
"empty-values": [""],
|
|
2545
|
-
locale:
|
|
2558
|
+
locale: V(yt),
|
|
2546
2559
|
"value-on-clear": "",
|
|
2547
2560
|
"z-index": 5500
|
|
2548
2561
|
}, {
|
|
2549
|
-
default:
|
|
2550
|
-
default:
|
|
2562
|
+
default: U(() => [D(V(Ie), { "global-config": n }, {
|
|
2563
|
+
default: U(() => [Te(e.$slots, "default")]),
|
|
2551
2564
|
_: 3
|
|
2552
2565
|
})]),
|
|
2553
2566
|
_: 3
|
|
@@ -2555,4 +2568,4 @@ var jn = {
|
|
|
2555
2568
|
}
|
|
2556
2569
|
});
|
|
2557
2570
|
//#endregion
|
|
2558
|
-
export { Zt as A, jt as B,
|
|
2571
|
+
export { Zt as A, jt as B, sn as C, J as D, nn as E, zt as F, G as H, Rt as I, Pt as L, Wt as M, Gt as N, tn as O, Kt as P, Nt as R, Y as S, rn as T, xt as U, K as V, bt as W, gn as _, An as a, mn as b, Tn as c, Sn as d, xn as f, _n as g, vn as h, Q as i, Yt as j, Qt as k, wn as l, yn as m, $ as n, kn as o, bn as p, jn as r, On as s, Nn as t, Cn as u, fn as v, cn as w, hn as x, pn as y, Ct as z };
|