dlzn-ui 2.0.71 → 2.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{provider-ZjwvcnkO.css → provider-D46namSQ.css} +1 -1
- package/chunks/{AssignUser-CW4ULrl-.mjs → AssignUser-C5DWvec4.mjs} +3 -3
- package/chunks/{BasicInfo-CNhP2USU.mjs → BasicInfo-Dv4mgfWW.mjs} +1 -1
- package/chunks/{ColumnInfo-KmZzeuMq.mjs → ColumnInfo-DVeqpfc2.mjs} +2 -2
- package/chunks/{Common-B8p8gcCU.mjs → Common-BSNYpbyN.mjs} +1 -1
- package/chunks/{Day-Cqa6OkRF.mjs → Day-jO_dfjUE.mjs} +1 -1
- package/chunks/{DictTypeDetail-JQHiiTMP.mjs → DictTypeDetail-g9Ix_IJo.mjs} +2 -2
- package/chunks/{GenInfo-COMykZnt.mjs → GenInfo-DWzhyZSz.mjs} +1 -1
- package/chunks/{Hour-7mzDJP72.mjs → Hour-CUmEuL3W.mjs} +1 -1
- package/chunks/{Import-CfajRzVo.mjs → Import-DGEmqQQZ.mjs} +2 -2
- package/chunks/{Index-ILRusaHR.mjs → Index-BYhuLvTk.mjs} +1 -1
- package/chunks/{Index-CXv3o5Bz.mjs → Index-CNbyffaU.mjs} +1 -1
- package/chunks/{Index-BivHw-Hr.mjs → Index-hES_0fLD.mjs} +1 -1
- package/chunks/{Index-D3gRKL3e.mjs → Index-tGC7o9gW.mjs} +1 -1
- package/chunks/{IndexItem-CneV3vzz.mjs → IndexItem-BgXCWeGc.mjs} +1 -1
- package/chunks/{Log-CJ7bEKUs.mjs → Log-CEcmXDM1.mjs} +2 -2
- package/chunks/{LoginBg-Cw0UbxPO.mjs → LoginBg-C7Lp8Nfb.mjs} +1 -1
- package/chunks/{Minute-DM5ktcol.mjs → Minute-CWq5WHTh.mjs} +1 -1
- package/chunks/{Month-Cukr-HqT.mjs → Month-DF_avVjB.mjs} +1 -1
- package/chunks/{Preview-DBmYShko.mjs → Preview-CjnLl4P7.mjs} +1 -1
- package/chunks/{Second-BUdHQX1o.mjs → Second-D8W75b08.mjs} +1 -1
- package/chunks/{SelectDept-BuE-qe0W.mjs → SelectDept-cGz_hV4F.mjs} +1 -1
- package/chunks/{SelectMenu-Q8GtDiOu.mjs → SelectMenu-CEx7XJDP.mjs} +1 -1
- package/chunks/{SelectUser-BqvEqo-l.mjs → SelectUser-DHhwUFDX.mjs} +2 -2
- package/chunks/{UserInfo-CQHI6wvw.mjs → UserInfo-BEPs2G08.mjs} +1 -1
- package/chunks/{app-CJo9qtLZ.mjs → app-BaEAxO-8.mjs} +1 -1
- package/chunks/{custom-page-list-DnPQ63_e.mjs → custom-page-list-B4j5Z1pH.mjs} +4 -4
- package/chunks/{custom-page-table-BwdWHC6w.mjs → custom-page-table-mPIDm_Pp.mjs} +2 -2
- package/chunks/{job-t-2BppfP.mjs → job-D5-Tg9Jm.mjs} +3 -3
- package/chunks/{overview-CsU_QFn9.mjs → overview-Dho6kJKA.mjs} +1 -1
- package/chunks/{page-list-Bdy1Cmuf.mjs → page-list-DECmyMX0.mjs} +3 -3
- package/chunks/{page-query-Bu1LFDxF.mjs → page-query-87Yc4hJe.mjs} +1 -1
- package/chunks/{page-table--3QQfjqP.mjs → page-table-CjsfVwZX.mjs} +3 -3
- package/chunks/{pagination-BO-qCW39.mjs → pagination-DmFvgnEF.mjs} +1 -1
- package/chunks/{provider-iO4v3bSs.mjs → provider-DzEm2k6g.mjs} +411 -342
- package/chunks/{table-xTiCIDe0.mjs → table-iXPyNy4n.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/dialog/index.d.ts +2 -0
- package/components/dialog/index.mjs +2 -0
- package/components/dialog/src/dialog.d.ts +24 -0
- package/components/dialog/src/dialog.mjs +2 -0
- package/components/dialog/src/dialog.vue.d.ts +19 -0
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +9 -9
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +1 -1
- package/layout/Home1.mjs +38 -15
- 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.d.ts +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +1 -1
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +3 -3
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +1 -1
- package/views/monitor/cache/index.mjs +2 -2
- package/views/monitor/cacheList/index.mjs +2 -2
- package/views/monitor/job/index.mjs +1 -1
- package/views/monitor/logininfor/index.mjs +2 -2
- package/views/monitor/online/index.mjs +2 -2
- package/views/monitor/operlog/index.mjs +2 -2
- package/views/monitor/server/index.mjs +2 -2
- package/views/system/config/index.mjs +2 -2
- package/views/system/dept/index.mjs +2 -2
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +3 -3
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +2 -2
- package/views/system/menu/utils.mjs +1 -1
- package/views/system/notice/index.mjs +2 -2
- package/views/system/post/index.mjs +2 -2
- package/views/system/role/index.mjs +5 -5
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +3 -3
- package/views/tool/gen/editTable/index.mjs +4 -4
- package/views/tool/gen/editTable/modules/BasicInfo.mjs +1 -1
- package/views/tool/gen/editTable/modules/ColumnInfo.mjs +1 -1
- package/views/tool/gen/editTable/modules/GenInfo.mjs +1 -1
- package/views/tool/gen/index.mjs +4 -4
- package/views/tool/gen/modules/Import.mjs +1 -1
- package/views/tool/gen/modules/Preview.mjs +1 -1
- package/views/tool/job/index.mjs +1 -1
- package/views/tool/job/modules/Log.mjs +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../assets/css-Ctf0Amkf.css';import '../assets/provider-
|
|
1
|
+
import '../assets/css-Ctf0Amkf.css';import '../assets/provider-D46namSQ.css';/* empty css */
|
|
2
2
|
import { t as e } from "./icon-DcFIQ_yG.mjs";
|
|
3
3
|
import "../components/icon/index.mjs";
|
|
4
4
|
import { t } from "./popconfirm-Bc93K9mT.mjs";
|
|
@@ -49,13 +49,13 @@ import { t as _e } from "./switch-DNPmkfa_.mjs";
|
|
|
49
49
|
import "../components/switch/index.mjs";
|
|
50
50
|
import { t as ve } from "./textarea-CYirMH7f.mjs";
|
|
51
51
|
import "../components/textarea/index.mjs";
|
|
52
|
-
import { Fragment as
|
|
53
|
-
import { Breadcrumb as
|
|
52
|
+
import { Fragment as ye, KeepAlive as be, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as xe, createSlots as Se, createTextVNode as T, createVNode as E, defineAsyncComponent as Ce, defineComponent as D, getCurrentInstance as O, guardReactiveProps as k, h as A, inject as we, markRaw as Te, mergeDefaults as j, mergeProps as M, nextTick as N, normalizeClass as Ee, normalizeProps as P, onMounted as De, openBlock as F, provide as Oe, reactive as ke, ref as I, renderList as L, renderSlot as R, resolveComponent as Ae, resolveDynamicComponent as z, shallowRef as je, toDisplayString as B, unref as V, useAttrs as Me, useSlots as Ne, useTemplateRef as Pe, watch as H, withCtx as U, withModifiers as Fe } from "vue";
|
|
53
|
+
import { Breadcrumb as Ie, BreadcrumbItem as Le, Button as Re, CheckboxGroup as ze, ConfigProvider as Be, Content as Ve, Dialog as He, DialogPlugin as Ue, Drawer as We, DrawerPlugin as Ge, Form as Ke, FormItem as qe, HeadMenu as Je, Header as Ye, InputAdornment as Xe, Layout as Ze, Menu as Qe, MenuItem as $e, RadioGroup as et, Select as tt, Tree as nt, TreeSelect as rt, Upload as it } from "tdesign-vue-next";
|
|
54
54
|
import { ElConfigProvider as at } from "element-plus";
|
|
55
55
|
import { useElementSize as ot, useElementVisibility as st, useFavicon as ct, useFocus as lt, useMutationObserver as ut, useResizeObserver as dt } from "@vueuse/core";
|
|
56
56
|
import { cloneDeep as ft, isPlainObject as pt } from "lodash-es";
|
|
57
57
|
import { defineStore as mt } from "pinia";
|
|
58
|
-
import { NavigationFailureType as ht, createRouter as gt, createWebHistory as _t, isNavigationFailure as vt, useRoute as
|
|
58
|
+
import { NavigationFailureType as ht, createRouter as gt, createWebHistory as _t, isNavigationFailure as vt, useRoute as W, useRouter as yt } from "vue-router";
|
|
59
59
|
import bt from "virtual:dlzn-ui/app-params";
|
|
60
60
|
import { createAlova as xt } from "alova";
|
|
61
61
|
import St from "alova/fetch";
|
|
@@ -261,58 +261,126 @@ var Tt = {
|
|
|
261
261
|
requiredMark: void 0,
|
|
262
262
|
resetType: "initial",
|
|
263
263
|
showErrorMessage: !0
|
|
264
|
-
}, Ot =
|
|
264
|
+
}, Ot = {
|
|
265
|
+
closeBtn: () => A($, {
|
|
266
|
+
icon: "mdi:close",
|
|
267
|
+
shape: "circle",
|
|
268
|
+
size: "small",
|
|
269
|
+
theme: "default",
|
|
270
|
+
variant: "base"
|
|
271
|
+
}),
|
|
272
|
+
closeOnEscKeydown: !1,
|
|
273
|
+
closeOnOverlayClick: !1,
|
|
274
|
+
confirmOnEnter: !1,
|
|
275
|
+
destroyOnClose: !0,
|
|
276
|
+
draggable: !0,
|
|
277
|
+
footer: !0,
|
|
278
|
+
header: "提示",
|
|
279
|
+
lazy: !1,
|
|
280
|
+
mode: "modal",
|
|
281
|
+
placement: "center",
|
|
282
|
+
preventScrollThrough: !0,
|
|
283
|
+
showOverlay: !0,
|
|
284
|
+
width: "fit-content"
|
|
285
|
+
}, kt = /* @__PURE__ */ D({
|
|
286
|
+
inheritAttrs: !1,
|
|
287
|
+
name: "TDialog",
|
|
288
|
+
__name: "dialog",
|
|
289
|
+
props: /*@__PURE__*/ j({
|
|
290
|
+
attach: { type: [String, Function] },
|
|
291
|
+
body: {},
|
|
292
|
+
cancelBtn: {},
|
|
293
|
+
closeBtn: { type: [String, Boolean] },
|
|
294
|
+
closeOnEscKeydown: { type: Boolean },
|
|
295
|
+
closeOnOverlayClick: { type: Boolean },
|
|
296
|
+
confirmBtn: {},
|
|
297
|
+
confirmLoading: { type: Boolean },
|
|
298
|
+
confirmOnEnter: { type: Boolean },
|
|
299
|
+
destroyOnClose: { type: Boolean },
|
|
300
|
+
dialogClassName: {},
|
|
301
|
+
dialogStyle: {},
|
|
302
|
+
draggable: { type: Boolean },
|
|
303
|
+
footer: { type: Boolean },
|
|
304
|
+
header: { type: [String, Boolean] },
|
|
305
|
+
lazy: { type: Boolean },
|
|
306
|
+
mode: {},
|
|
307
|
+
placement: {},
|
|
308
|
+
preventScrollThrough: { type: Boolean },
|
|
309
|
+
showInAttachedElement: { type: Boolean },
|
|
310
|
+
showOverlay: { type: Boolean },
|
|
311
|
+
theme: {},
|
|
312
|
+
top: {},
|
|
313
|
+
width: {},
|
|
314
|
+
zIndex: {},
|
|
315
|
+
onBeforeClose: { type: Function },
|
|
316
|
+
onBeforeOpen: { type: Function },
|
|
317
|
+
onCancel: { type: Function },
|
|
318
|
+
onClose: { type: Function },
|
|
319
|
+
onCloseBtnClick: { type: Function },
|
|
320
|
+
onClosed: { type: Function },
|
|
321
|
+
onEscKeydown: { type: Function },
|
|
322
|
+
onOpened: { type: Function },
|
|
323
|
+
onOverlayClick: { type: Function },
|
|
324
|
+
onConfirm: { type: Function },
|
|
325
|
+
"onUpdate:visible": { type: Function },
|
|
326
|
+
visible: { type: Boolean }
|
|
327
|
+
}, {
|
|
328
|
+
...Ot,
|
|
329
|
+
closeBtn: () => Ot.closeBtn
|
|
330
|
+
}),
|
|
331
|
+
setup(e) {
|
|
332
|
+
let t = e, n = x(() => {
|
|
333
|
+
let e = { ...t };
|
|
334
|
+
return Object.keys(e).forEach((t) => {
|
|
335
|
+
e[t] === void 0 && delete e[t];
|
|
336
|
+
}), e;
|
|
337
|
+
}), r = O();
|
|
338
|
+
function i(e) {
|
|
339
|
+
r.exposed = e ?? {};
|
|
340
|
+
}
|
|
341
|
+
return (e, t) => (F(), S(z(A(V(He), M(e.$attrs, {
|
|
342
|
+
...n.value,
|
|
343
|
+
ref: i
|
|
344
|
+
}), e.$slots))));
|
|
345
|
+
}
|
|
346
|
+
}), At = /* @__PURE__ */ function(e) {
|
|
265
347
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
266
|
-
}(
|
|
267
|
-
function
|
|
268
|
-
let i =
|
|
348
|
+
}(At || {}), jt = /* @__PURE__ */ new Set();
|
|
349
|
+
function Mt(e, t, n) {
|
|
350
|
+
let i = x(() => typeof t.body == "function" ? t.body(A) : t.body), a = I(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: o, stop: s } = st(a, {
|
|
269
351
|
controls: !0,
|
|
270
352
|
initialValue: !0
|
|
271
353
|
}), c = {
|
|
272
|
-
|
|
273
|
-
icon: "mdi:close",
|
|
274
|
-
shape: "circle",
|
|
275
|
-
size: "small",
|
|
276
|
-
theme: "default",
|
|
277
|
-
variant: "base"
|
|
278
|
-
}),
|
|
279
|
-
closeOnEscKeydown: !1,
|
|
280
|
-
closeOnOverlayClick: !1,
|
|
354
|
+
...Ot,
|
|
281
355
|
closeWhenCloseAll: !0,
|
|
282
|
-
destroyOnClose: !0,
|
|
283
|
-
draggable: !0,
|
|
284
|
-
header: "提示",
|
|
285
|
-
mode: "modal",
|
|
286
|
-
placement: "center",
|
|
287
|
-
width: "fit-content",
|
|
288
356
|
...t ?? {},
|
|
289
|
-
body: () => A(
|
|
357
|
+
body: () => A(Hn, {}, { default: () => i.value })
|
|
290
358
|
}, l, u = {
|
|
291
359
|
...c,
|
|
292
360
|
onClosed: () => {
|
|
293
|
-
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(),
|
|
361
|
+
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(), jt.delete(l);
|
|
294
362
|
}
|
|
295
363
|
};
|
|
296
364
|
delete u.closeWhenCloseAll;
|
|
297
365
|
let d = r();
|
|
298
|
-
return l = e === void 0 ? Ue(u, n ?? d) : Ue[e](u, n ?? d), c.closeWhenCloseAll &&
|
|
366
|
+
return l = e === void 0 ? Ue(u, n ?? d) : Ue[e](u, n ?? d), c.closeWhenCloseAll && jt.add(l), l;
|
|
299
367
|
}
|
|
300
|
-
var
|
|
301
|
-
return
|
|
368
|
+
var Nt = function(...e) {
|
|
369
|
+
return Mt(void 0, ...e);
|
|
302
370
|
};
|
|
303
|
-
Object.values(
|
|
304
|
-
|
|
305
|
-
|
|
371
|
+
Object.values(At).forEach((e) => {
|
|
372
|
+
Nt[e] = e === "closeAll" ? () => {
|
|
373
|
+
jt.forEach((e) => {
|
|
306
374
|
e.hide();
|
|
307
375
|
});
|
|
308
|
-
} : (...t) =>
|
|
376
|
+
} : (...t) => Mt(e, ...t);
|
|
309
377
|
});
|
|
310
378
|
//#endregion
|
|
311
379
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
312
|
-
var
|
|
380
|
+
var G = (e, t) => {
|
|
313
381
|
let n = { ...typeof e == "string" ? {} : e };
|
|
314
382
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
315
|
-
let a =
|
|
383
|
+
let a = Nt(typeof e == "string" ? {
|
|
316
384
|
body: e,
|
|
317
385
|
onConfirm: () => {
|
|
318
386
|
a.hide(), r();
|
|
@@ -338,8 +406,8 @@ var W = (e, t) => {
|
|
|
338
406
|
};
|
|
339
407
|
//#endregion
|
|
340
408
|
//#region ../../packages/dlzn-ui/store/modules/common.ts
|
|
341
|
-
function
|
|
342
|
-
return VITE_APP_ID === "1" ?
|
|
409
|
+
function Pt() {
|
|
410
|
+
return VITE_APP_ID === "1" ? X.Get(`yq/oemConfig/getByDomain/${window.location.hostname}`, {
|
|
343
411
|
meta: { useToken: !1 },
|
|
344
412
|
transform(e) {
|
|
345
413
|
if (e === null) throw Error("oemConfig getByDomain return null");
|
|
@@ -350,26 +418,26 @@ function Mt() {
|
|
|
350
418
|
version: ""
|
|
351
419
|
};
|
|
352
420
|
}
|
|
353
|
-
}) :
|
|
421
|
+
}) : X.Get("common/appInfo", { meta: {
|
|
354
422
|
useFailMsg: !1,
|
|
355
423
|
useSysFailMsg: !1,
|
|
356
424
|
useToken: !1
|
|
357
425
|
} });
|
|
358
426
|
}
|
|
359
|
-
var
|
|
427
|
+
var K = mt("common", () => {
|
|
360
428
|
let e = I(!0), t = I(250), n = I({
|
|
361
429
|
appName: "",
|
|
362
430
|
color: "",
|
|
363
431
|
logo: "",
|
|
364
432
|
version: ""
|
|
365
433
|
});
|
|
366
|
-
|
|
434
|
+
H(() => n.value.appName, (e) => {
|
|
367
435
|
e && (document.title = e);
|
|
368
|
-
}),
|
|
436
|
+
}), H(() => n.value.color, (e) => {
|
|
369
437
|
e && (v().value = e);
|
|
370
|
-
}), ct(
|
|
438
|
+
}), ct(x(() => n.value.logo || "/favicon.ico"));
|
|
371
439
|
function r() {
|
|
372
|
-
|
|
440
|
+
Pt().then((e) => {
|
|
373
441
|
n.value = e;
|
|
374
442
|
}).catch((e) => {
|
|
375
443
|
n.value = {
|
|
@@ -394,13 +462,13 @@ var G = mt("common", () => {
|
|
|
394
462
|
isRequestSleep: i,
|
|
395
463
|
requestActive: o
|
|
396
464
|
};
|
|
397
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }),
|
|
398
|
-
let e = I([]), t =
|
|
465
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), q = mt("recentRouters", () => {
|
|
466
|
+
let e = I([]), t = W(), n = yt();
|
|
399
467
|
function r() {
|
|
400
468
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
401
469
|
}
|
|
402
470
|
function i(t, n) {
|
|
403
|
-
let r = ft(n), i = e.value.findIndex((e) => e.name === r.name ||
|
|
471
|
+
let r = ft(n), i = e.value.findIndex((e) => e.name === r.name || dn(e.name).meta.title === dn(r.name).meta.title);
|
|
404
472
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
405
473
|
let n = e.value.findIndex((e) => e.name === t);
|
|
406
474
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -431,16 +499,16 @@ var G = mt("common", () => {
|
|
|
431
499
|
}, { persist: { pick: ["recentRouters"] } });
|
|
432
500
|
//#endregion
|
|
433
501
|
//#region ../../packages/dlzn-ui/store/modules/router.ts
|
|
434
|
-
function
|
|
435
|
-
return
|
|
502
|
+
function Ft() {
|
|
503
|
+
return X.Get("getRouters", { meta: {
|
|
436
504
|
useFailMsg: "获取用户路由失败",
|
|
437
505
|
useLoading: "正在获取用户路由..."
|
|
438
506
|
} });
|
|
439
507
|
}
|
|
440
|
-
function
|
|
508
|
+
function It(e) {
|
|
441
509
|
return e.children !== void 0 || e.component !== void 0;
|
|
442
510
|
}
|
|
443
|
-
function
|
|
511
|
+
function Lt(e) {
|
|
444
512
|
let t = [];
|
|
445
513
|
return e.forEach((e) => {
|
|
446
514
|
e.path === "/" ? t.push({
|
|
@@ -449,7 +517,7 @@ function Ft(e) {
|
|
|
449
517
|
}) : t.push(e);
|
|
450
518
|
}), t;
|
|
451
519
|
}
|
|
452
|
-
function
|
|
520
|
+
function Rt(e) {
|
|
453
521
|
let t = (e, n) => {
|
|
454
522
|
let r = [];
|
|
455
523
|
return e.forEach((e) => {
|
|
@@ -473,12 +541,12 @@ function It(e) {
|
|
|
473
541
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
474
542
|
}
|
|
475
543
|
}
|
|
476
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
544
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = Ht(e)), It(i) && r.push(i);
|
|
477
545
|
}), r;
|
|
478
|
-
}, n =
|
|
546
|
+
}, n = un();
|
|
479
547
|
return n.children.push(...e), t([n], null);
|
|
480
548
|
}
|
|
481
|
-
function
|
|
549
|
+
function zt(e) {
|
|
482
550
|
let t = (e) => {
|
|
483
551
|
let n = [...e], r = n.length;
|
|
484
552
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -491,36 +559,36 @@ function Lt(e) {
|
|
|
491
559
|
};
|
|
492
560
|
return t(e);
|
|
493
561
|
}
|
|
494
|
-
var
|
|
495
|
-
function
|
|
562
|
+
var Bt = [];
|
|
563
|
+
function Vt(e) {
|
|
496
564
|
return `./${e.split("___")[0]}.vue`;
|
|
497
565
|
}
|
|
498
|
-
function
|
|
566
|
+
function Ht(e) {
|
|
499
567
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
500
|
-
let t = e.component, n = typeof t == "string" ? ne[
|
|
568
|
+
let t = e.component, n = typeof t == "string" ? ne[Vt(t)] : t;
|
|
501
569
|
if (n === void 0) {
|
|
502
|
-
let e = `路由组件${
|
|
570
|
+
let e = `路由组件${Vt(t)}不存在`;
|
|
503
571
|
return console.error(e), h["./NotFound.vue"];
|
|
504
572
|
}
|
|
505
|
-
return typeof t == "string" &&
|
|
573
|
+
return typeof t == "string" && Bt.push(Vt(t)), () => n().then((t) => ({
|
|
506
574
|
...t.default,
|
|
507
575
|
name: e.name
|
|
508
576
|
}));
|
|
509
577
|
}
|
|
510
578
|
return e.component;
|
|
511
579
|
}
|
|
512
|
-
var
|
|
580
|
+
var Ut = mt("router", () => {
|
|
513
581
|
let e = I([]), t = yt(), r = Q();
|
|
514
582
|
async function i() {
|
|
515
|
-
let i = await
|
|
583
|
+
let i = await Ft();
|
|
516
584
|
VITE_MODE === "development" && r.isAdmin && fetch("/__dev__/save-folder-alias", {
|
|
517
585
|
body: JSON.stringify(i),
|
|
518
586
|
headers: { "Content-Type": "application/json" },
|
|
519
587
|
method: "POST"
|
|
520
588
|
}).catch((e) => {
|
|
521
589
|
console.warn("[dev-save-folder-alias] 写入本地 json 失败", e);
|
|
522
|
-
}),
|
|
523
|
-
if (!
|
|
590
|
+
}), Bt.length = 0, e.value = Te(zt(Rt(Lt(i)))), r.isAdmin && Object.keys(ne).forEach((e) => {
|
|
591
|
+
if (!Bt.includes(e) && ![
|
|
524
592
|
"./tool",
|
|
525
593
|
"./system",
|
|
526
594
|
"./monitor"
|
|
@@ -530,7 +598,7 @@ var Vt = mt("router", () => {
|
|
|
530
598
|
}
|
|
531
599
|
}), t.hasRoute("Index") && t.removeRoute("Index"), e.value.forEach((e) => {
|
|
532
600
|
t.addRoute(e);
|
|
533
|
-
}),
|
|
601
|
+
}), q().init();
|
|
534
602
|
}
|
|
535
603
|
function a() {
|
|
536
604
|
e.value.forEach((e) => {
|
|
@@ -542,46 +610,46 @@ var Vt = mt("router", () => {
|
|
|
542
610
|
getRouters: i,
|
|
543
611
|
routersRaw: e
|
|
544
612
|
};
|
|
545
|
-
}),
|
|
613
|
+
}), Wt = { class: "ml-2! flex items-center" }, Gt = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
546
614
|
__name: "Aside",
|
|
547
615
|
setup(e) {
|
|
548
|
-
let t =
|
|
549
|
-
|
|
616
|
+
let t = W(), n = K(), r = x(() => n.appInfo.appName), i = Ut(), a = I([]);
|
|
617
|
+
H(() => t.name, () => {
|
|
550
618
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
551
619
|
a.value.includes(e) || a.value.push(e);
|
|
552
620
|
});
|
|
553
621
|
}, { immediate: !0 });
|
|
554
|
-
let o =
|
|
622
|
+
let o = x(() => {
|
|
555
623
|
let { hidden: e, parentName: n } = t.meta;
|
|
556
624
|
return n !== "" && e === !0 ? n : t.name;
|
|
557
|
-
}), s =
|
|
558
|
-
return (e, t) => (F(),
|
|
625
|
+
}), s = x(() => n.appInfo.logo || bt.asideTopLogoUrl);
|
|
626
|
+
return (e, t) => (F(), S(V(Qe), {
|
|
559
627
|
expanded: a.value,
|
|
560
628
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
561
629
|
class: "w-full!",
|
|
562
630
|
value: o.value
|
|
563
631
|
}, {
|
|
564
|
-
logo:
|
|
632
|
+
logo: U(() => [xe("div", Wt, [E(V(te), {
|
|
565
633
|
class: "logo",
|
|
566
634
|
src: s.value,
|
|
567
635
|
style: {
|
|
568
636
|
width: "28px",
|
|
569
637
|
height: "28px"
|
|
570
638
|
}
|
|
571
|
-
}, null, 8, ["src"]),
|
|
639
|
+
}, null, 8, ["src"]), E(V(ee), {
|
|
572
640
|
"animation-speed": 8,
|
|
573
641
|
"class-name": "ml-2 text-xl !font-bold",
|
|
574
642
|
"show-border": !1,
|
|
575
643
|
text: r.value
|
|
576
644
|
}, null, 8, ["text"])])]),
|
|
577
|
-
default:
|
|
645
|
+
default: U(() => [E(re, { model: V(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
578
646
|
_: 1
|
|
579
647
|
}, 8, ["expanded", "value"]));
|
|
580
648
|
}
|
|
581
|
-
}), [["__scopeId", "data-v-36275803"]]),
|
|
649
|
+
}), [["__scopeId", "data-v-36275803"]]), Kt = /* @__PURE__ */ D({
|
|
582
650
|
__name: "Breadcrumb",
|
|
583
651
|
setup(e, { expose: t }) {
|
|
584
|
-
let n =
|
|
652
|
+
let n = W(), r = yt(), i = q(), a = x(() => {
|
|
585
653
|
let e = n.matched.map((e) => ({
|
|
586
654
|
name: e.name,
|
|
587
655
|
title: e.meta.title
|
|
@@ -594,96 +662,96 @@ var Vt = mt("router", () => {
|
|
|
594
662
|
function o(e) {
|
|
595
663
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
596
664
|
}
|
|
597
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (F(),
|
|
665
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (F(), S(V(Ie), {
|
|
598
666
|
key: 0,
|
|
599
667
|
class: "absolute top-px z-10 py-1!"
|
|
600
668
|
}, {
|
|
601
|
-
default:
|
|
669
|
+
default: U(() => [(F(!0), w(ye, null, L(a.value, (e) => (F(), S(V(Le), {
|
|
602
670
|
key: e.name,
|
|
603
671
|
disabled: e.disabled,
|
|
604
672
|
onClick: (t) => o(e.name)
|
|
605
673
|
}, {
|
|
606
|
-
default:
|
|
674
|
+
default: U(() => [T(B(e.title), 1)]),
|
|
607
675
|
_: 2
|
|
608
676
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
609
677
|
_: 1
|
|
610
|
-
})) :
|
|
678
|
+
})) : C("v-if", !0);
|
|
611
679
|
}
|
|
612
|
-
}),
|
|
613
|
-
function
|
|
614
|
-
let t =
|
|
680
|
+
}), qt = /* @__PURE__ */ new Map();
|
|
681
|
+
function Jt(e) {
|
|
682
|
+
let t = X.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
615
683
|
...e,
|
|
616
684
|
label: e.userName,
|
|
617
685
|
value: e.userId
|
|
618
686
|
})));
|
|
619
687
|
e.forEach((e) => {
|
|
620
|
-
|
|
688
|
+
qt.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
621
689
|
});
|
|
622
690
|
}
|
|
623
|
-
var
|
|
624
|
-
function
|
|
625
|
-
return
|
|
691
|
+
var Yt = [];
|
|
692
|
+
function Xt(e) {
|
|
693
|
+
return Yt.includes(e) || Yt.push(e), new Promise((t) => {
|
|
626
694
|
setTimeout(() => {
|
|
627
|
-
let n =
|
|
628
|
-
n.length > 0 &&
|
|
695
|
+
let n = Yt.filter((e) => !qt.has(e));
|
|
696
|
+
n.length > 0 && Jt(n), Yt.length = 0, qt.get(e).then((e) => {
|
|
629
697
|
t(e);
|
|
630
698
|
});
|
|
631
699
|
});
|
|
632
700
|
});
|
|
633
701
|
}
|
|
634
|
-
var
|
|
635
|
-
function
|
|
636
|
-
|
|
702
|
+
var J = /* @__PURE__ */ new Map();
|
|
703
|
+
function Zt() {
|
|
704
|
+
Yt.length = 0, qt.clear(), J.clear();
|
|
637
705
|
}
|
|
638
|
-
function
|
|
639
|
-
|
|
640
|
-
|
|
706
|
+
function Qt(e) {
|
|
707
|
+
qt.delete(e), J.has(e) && Xt(e).then((t) => {
|
|
708
|
+
J.get(e).value = t;
|
|
641
709
|
});
|
|
642
710
|
}
|
|
643
|
-
function
|
|
711
|
+
function $t(e) {
|
|
644
712
|
let t;
|
|
645
|
-
return
|
|
713
|
+
return J.has(e) ? t = J.get(e) : (t = I(null), J.set(e, t), Xt(e).then((e) => {
|
|
646
714
|
t.value = e;
|
|
647
715
|
})), t;
|
|
648
716
|
}
|
|
649
717
|
//#endregion
|
|
650
718
|
//#region ../../packages/dlzn-ui/store/modules/login.ts
|
|
651
|
-
function
|
|
652
|
-
return
|
|
719
|
+
function en(e) {
|
|
720
|
+
return X.Post("login", e, { meta: {
|
|
653
721
|
useLoading: "登录中...",
|
|
654
722
|
useToken: !1
|
|
655
723
|
} });
|
|
656
724
|
}
|
|
657
|
-
function
|
|
658
|
-
return
|
|
725
|
+
function tn() {
|
|
726
|
+
return X.Post("logout", void 0, { meta: {
|
|
659
727
|
useLoading: "退出登录中...",
|
|
660
728
|
useSuccessMsg: !0
|
|
661
729
|
} });
|
|
662
730
|
}
|
|
663
|
-
var
|
|
664
|
-
let e = I(""), t =
|
|
731
|
+
var nn = mt("login", () => {
|
|
732
|
+
let e = I(""), t = W(), n = yt();
|
|
665
733
|
async function r(t) {
|
|
666
|
-
let n = await
|
|
734
|
+
let n = await en(t);
|
|
667
735
|
e.value = n.token, await Q().getUserInfo();
|
|
668
736
|
}
|
|
669
737
|
function i() {
|
|
670
|
-
e.value = "", y().clear(),
|
|
738
|
+
e.value = "", y().clear(), Ut().clear(), Q().clear(), xn(), Zt(), se();
|
|
671
739
|
}
|
|
672
|
-
|
|
740
|
+
H(() => t.name, () => {
|
|
673
741
|
t.name === "Login" && i();
|
|
674
742
|
});
|
|
675
743
|
async function a() {
|
|
676
|
-
await
|
|
744
|
+
await tn(), await n.push({ name: "Login" }), i();
|
|
677
745
|
}
|
|
678
746
|
return {
|
|
679
747
|
login: r,
|
|
680
748
|
logout: a,
|
|
681
749
|
token: e
|
|
682
750
|
};
|
|
683
|
-
}, { persist: { pick: ["token"] } }),
|
|
751
|
+
}, { persist: { pick: ["token"] } }), rn = { class: "flex items-center justify-between" }, an = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
684
752
|
__name: "Header",
|
|
685
753
|
setup(t) {
|
|
686
|
-
let n =
|
|
754
|
+
let n = W(), r = yt(), i = Q(), a = K(), o = q();
|
|
687
755
|
function s(e) {
|
|
688
756
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
689
757
|
}
|
|
@@ -692,7 +760,7 @@ var en = mt("login", () => {
|
|
|
692
760
|
}
|
|
693
761
|
let l = async (e) => {
|
|
694
762
|
let { value: t } = e;
|
|
695
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await
|
|
763
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await G("确定要退出登录吗?"), nn().logout());
|
|
696
764
|
}, u = _.isMd;
|
|
697
765
|
function d(e, t) {
|
|
698
766
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
@@ -716,78 +784,79 @@ var en = mt("login", () => {
|
|
|
716
784
|
}
|
|
717
785
|
}), ae(e, i);
|
|
718
786
|
}
|
|
719
|
-
|
|
720
|
-
|
|
787
|
+
let f = h["./modules/HeaderOperations.vue"] ? Ce(h["./modules/HeaderOperations.vue"]) : void 0;
|
|
788
|
+
return (t, r) => (F(), S(V(Ye), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
789
|
+
default: U(() => [E(V(Je), {
|
|
721
790
|
"expand-type": "popup",
|
|
722
|
-
value:
|
|
791
|
+
value: V(n).name,
|
|
723
792
|
onChange: s
|
|
724
793
|
}, {
|
|
725
|
-
logo:
|
|
794
|
+
logo: U(() => [E(V($), {
|
|
726
795
|
class: "ml-0! shrink-0",
|
|
727
796
|
shape: "circle",
|
|
728
797
|
size: "large",
|
|
729
798
|
variant: "text",
|
|
730
|
-
onClick: r[0] ||= (e) =>
|
|
799
|
+
onClick: r[0] ||= (e) => V(a).drawerOpen = !V(a).drawerOpen
|
|
731
800
|
}, {
|
|
732
|
-
default:
|
|
801
|
+
default: U(() => [E(V(e), { icon: "lineicons:menu-hamburger-1" })]),
|
|
733
802
|
_: 1
|
|
734
803
|
})]),
|
|
735
|
-
operations:
|
|
804
|
+
operations: U(() => [V(f) ? (F(), S(V(f), { key: 0 })) : C("v-if", !0), E(V(ie), {
|
|
736
805
|
options: [{
|
|
737
806
|
content: "个人中心",
|
|
738
807
|
value: "profile",
|
|
739
|
-
prefixIcon: () => A(
|
|
808
|
+
prefixIcon: () => A(V(e), {
|
|
740
809
|
icon: "material-symbols:account-circle",
|
|
741
810
|
size: "16"
|
|
742
811
|
})
|
|
743
812
|
}, {
|
|
744
813
|
content: "退出登录",
|
|
745
814
|
value: "logout",
|
|
746
|
-
prefixIcon: () => A(
|
|
815
|
+
prefixIcon: () => A(V(e), {
|
|
747
816
|
icon: "material-symbols:logout",
|
|
748
817
|
size: "16"
|
|
749
818
|
})
|
|
750
819
|
}],
|
|
751
820
|
onClick: l
|
|
752
821
|
}, {
|
|
753
|
-
default:
|
|
822
|
+
default: U(() => [V(u) ? (F(), S(V($), {
|
|
754
823
|
key: 0,
|
|
755
824
|
icon: "material-symbols:account-circle",
|
|
756
825
|
shape: "square",
|
|
757
826
|
variant: "text"
|
|
758
|
-
})) : (F(),
|
|
827
|
+
})) : (F(), S(V($), {
|
|
759
828
|
key: 1,
|
|
760
829
|
icon: "material-symbols:account-circle",
|
|
761
830
|
variant: "text"
|
|
762
831
|
}, {
|
|
763
|
-
suffix:
|
|
832
|
+
suffix: U(() => [E(V(e), {
|
|
764
833
|
icon: "icon-park-outline:down",
|
|
765
834
|
size: "18"
|
|
766
835
|
})]),
|
|
767
|
-
default:
|
|
836
|
+
default: U(() => [T(B(V(i).userInfo.userName) + " ", 1)]),
|
|
768
837
|
_: 1
|
|
769
838
|
}))]),
|
|
770
839
|
_: 1
|
|
771
840
|
}, 8, ["options"])]),
|
|
772
|
-
default:
|
|
841
|
+
default: U(() => [(F(!0), w(ye, null, L(V(o).recentRouters, (t) => (F(), S(V($e), {
|
|
773
842
|
key: t.name,
|
|
774
843
|
value: t.name,
|
|
775
844
|
onContextmenu: (e) => d(e, t.name)
|
|
776
845
|
}, {
|
|
777
|
-
default:
|
|
846
|
+
default: U(() => [xe("div", rn, [xe("span", null, B(V(dn)(t.name).meta.title), 1), V(o).recentRouters.length > 1 ? (F(), S(V($), {
|
|
778
847
|
key: 0,
|
|
779
848
|
class: "ml-1!",
|
|
780
849
|
shape: "square",
|
|
781
850
|
size: "small",
|
|
782
851
|
variant: "text",
|
|
783
|
-
onClick:
|
|
852
|
+
onClick: Fe((e) => c(t.name), ["stop"])
|
|
784
853
|
}, {
|
|
785
|
-
icon:
|
|
854
|
+
icon: U(() => [E(V(e), {
|
|
786
855
|
icon: "material-symbols:close",
|
|
787
856
|
style: { "font-size": "12px !important" }
|
|
788
857
|
})]),
|
|
789
858
|
_: 1
|
|
790
|
-
}, 8, ["onClick"])) :
|
|
859
|
+
}, 8, ["onClick"])) : C("v-if", !0)])]),
|
|
791
860
|
_: 2
|
|
792
861
|
}, 1032, ["value", "onContextmenu"]))), 128))]),
|
|
793
862
|
_: 1
|
|
@@ -795,40 +864,40 @@ var en = mt("login", () => {
|
|
|
795
864
|
_: 1
|
|
796
865
|
}));
|
|
797
866
|
}
|
|
798
|
-
}), [["__scopeId", "data-v-
|
|
867
|
+
}), [["__scopeId", "data-v-6c2c986c"]]), on = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
799
868
|
__name: "Entry",
|
|
800
869
|
setup(e) {
|
|
801
|
-
let t =
|
|
870
|
+
let t = W(), n = K(), r = q(), i = y(), a = x(() => r.recentRouters.filter((e) => dn(e.name).meta.noCache === !1).map((e) => e.name)), o = Pe("breadcrumb"), s = x(() => (o.value?.items.length ?? 0) > 0), c = x(() => _.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), l = _.isMd, u = Pe("contentRef"), { height: d } = ot(u);
|
|
802
871
|
function f({ size: e }) {
|
|
803
872
|
n.drawerSize = e;
|
|
804
873
|
}
|
|
805
|
-
let p =
|
|
874
|
+
let p = x(() => t.meta.fullScreen);
|
|
806
875
|
return (e, t) => {
|
|
807
|
-
let r =
|
|
808
|
-
return p.value ? (F(),
|
|
809
|
-
default:
|
|
876
|
+
let r = Ae("RouterView");
|
|
877
|
+
return p.value ? (F(), S(r, { key: 0 }, {
|
|
878
|
+
default: U(({ Component: e }) => [(F(), S(z(e)))]),
|
|
810
879
|
_: 1
|
|
811
|
-
})) : (F(),
|
|
880
|
+
})) : (F(), S(V(Ze), {
|
|
812
881
|
key: 1,
|
|
813
882
|
class: "h-full"
|
|
814
883
|
}, {
|
|
815
|
-
default:
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
visible:
|
|
819
|
-
"onUpdate:visible": t[0] ||= (e) =>
|
|
884
|
+
default: U(() => [
|
|
885
|
+
E(an),
|
|
886
|
+
E(V(We), {
|
|
887
|
+
visible: V(n).drawerOpen,
|
|
888
|
+
"onUpdate:visible": t[0] ||= (e) => V(n).drawerOpen = e,
|
|
820
889
|
footer: !1,
|
|
821
|
-
mode:
|
|
890
|
+
mode: V(l) ? "overlay" : "push",
|
|
822
891
|
placement: "left",
|
|
823
|
-
"show-overlay":
|
|
824
|
-
size:
|
|
892
|
+
"show-overlay": V(l),
|
|
893
|
+
size: V(l) ? "200px" : `${V(n).drawerSize}px`,
|
|
825
894
|
"size-draggable": {
|
|
826
895
|
max: 450,
|
|
827
896
|
min: 180
|
|
828
897
|
},
|
|
829
898
|
onSizeDragEnd: f
|
|
830
899
|
}, {
|
|
831
|
-
default:
|
|
900
|
+
default: U(() => [E(Gt, { class: "no_drawer_body_padding" })]),
|
|
832
901
|
_: 1
|
|
833
902
|
}, 8, [
|
|
834
903
|
"visible",
|
|
@@ -836,12 +905,12 @@ var en = mt("login", () => {
|
|
|
836
905
|
"show-overlay",
|
|
837
906
|
"size"
|
|
838
907
|
]),
|
|
839
|
-
|
|
908
|
+
E(V(Ve), {
|
|
840
909
|
ref_key: "contentRef",
|
|
841
910
|
ref: u,
|
|
842
911
|
class: "overflow-hidden"
|
|
843
912
|
}, {
|
|
844
|
-
default:
|
|
913
|
+
default: U(() => [E(V(g), {
|
|
845
914
|
always: "",
|
|
846
915
|
"view-class": Ee(["relative flex flex-col", {
|
|
847
916
|
...c.value,
|
|
@@ -849,14 +918,14 @@ var en = mt("login", () => {
|
|
|
849
918
|
}]),
|
|
850
919
|
"view-style": {
|
|
851
920
|
minWidth: "1200px",
|
|
852
|
-
minHeight: `${Math.max(
|
|
921
|
+
minHeight: `${Math.max(V(d), 438)}px`
|
|
853
922
|
}
|
|
854
923
|
}, {
|
|
855
|
-
default:
|
|
856
|
-
default:
|
|
857
|
-
exclude:
|
|
924
|
+
default: U(() => [E(Kt, { ref: "breadcrumb" }, null, 512), E(r, null, {
|
|
925
|
+
default: U(({ Component: e }) => [(F(), S(be, {
|
|
926
|
+
exclude: V(i).excludeKPname,
|
|
858
927
|
include: a.value
|
|
859
|
-
}, [(F(),
|
|
928
|
+
}, [(F(), S(z(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
860
929
|
_: 1
|
|
861
930
|
})]),
|
|
862
931
|
_: 1
|
|
@@ -868,9 +937,9 @@ var en = mt("login", () => {
|
|
|
868
937
|
}));
|
|
869
938
|
};
|
|
870
939
|
}
|
|
871
|
-
}), [["__scopeId", "data-v-de5cbc76"]]),
|
|
872
|
-
function
|
|
873
|
-
let n =
|
|
940
|
+
}), [["__scopeId", "data-v-de5cbc76"]]), sn = /* @__PURE__ */ new Set();
|
|
941
|
+
function cn(e, t) {
|
|
942
|
+
let n = x(() => typeof e.body == "function" ? e.body(A) : e.body), i = {
|
|
874
943
|
attach: "#app",
|
|
875
944
|
closeOnEscKeydown: !1,
|
|
876
945
|
closeOnOverlayClick: !1,
|
|
@@ -880,26 +949,26 @@ function on(e, t) {
|
|
|
880
949
|
lazy: !0,
|
|
881
950
|
sizeDraggable: !0,
|
|
882
951
|
...e ?? {},
|
|
883
|
-
body: () => A(
|
|
952
|
+
body: () => A(Hn, {}, { default: () => n.value })
|
|
884
953
|
}, a, o = {
|
|
885
954
|
...i,
|
|
886
955
|
onClose: (e) => {
|
|
887
|
-
i.onClose?.(e),
|
|
956
|
+
i.onClose?.(e), sn.delete(a);
|
|
888
957
|
}
|
|
889
958
|
};
|
|
890
|
-
return delete o.closeWhenCloseAll, a = Ge(o, t ?? r()), i.closeWhenCloseAll &&
|
|
959
|
+
return delete o.closeWhenCloseAll, a = Ge(o, t ?? r()), i.closeWhenCloseAll && sn.add(a), a;
|
|
891
960
|
}
|
|
892
|
-
var
|
|
893
|
-
return
|
|
961
|
+
var ln = function(...e) {
|
|
962
|
+
return cn(...e);
|
|
894
963
|
};
|
|
895
|
-
|
|
896
|
-
|
|
964
|
+
ln.closeAll = () => {
|
|
965
|
+
sn.forEach((e) => {
|
|
897
966
|
e.hide?.();
|
|
898
967
|
});
|
|
899
968
|
};
|
|
900
969
|
//#endregion
|
|
901
970
|
//#region ../../packages/dlzn-ui/router/index.ts
|
|
902
|
-
function
|
|
971
|
+
function un() {
|
|
903
972
|
return {
|
|
904
973
|
children: [{
|
|
905
974
|
children: [{
|
|
@@ -927,15 +996,15 @@ function cn() {
|
|
|
927
996
|
name: "Home",
|
|
928
997
|
path: "home"
|
|
929
998
|
}],
|
|
930
|
-
component:
|
|
999
|
+
component: on,
|
|
931
1000
|
name: "Index",
|
|
932
1001
|
path: "/"
|
|
933
1002
|
};
|
|
934
1003
|
}
|
|
935
|
-
var
|
|
1004
|
+
var Y = gt({
|
|
936
1005
|
history: _t(VITE_BASE_URL),
|
|
937
1006
|
routes: [
|
|
938
|
-
|
|
1007
|
+
un(),
|
|
939
1008
|
{
|
|
940
1009
|
component: h["./Login.vue"],
|
|
941
1010
|
meta: {
|
|
@@ -979,16 +1048,16 @@ var J = gt({
|
|
|
979
1048
|
sensitive: !0,
|
|
980
1049
|
strict: !0
|
|
981
1050
|
});
|
|
982
|
-
|
|
983
|
-
if (e.query._fromLeftTree === "true" && y().add(e.name), !["Login", "Register"].includes(e.name)) return
|
|
1051
|
+
Y.beforeEach(async (e) => {
|
|
1052
|
+
if (e.query._fromLeftTree === "true" && y().add(e.name), !["Login", "Register"].includes(e.name)) return nn().token === "" ? { name: "Login" } : Ut().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), Y.resolve({
|
|
984
1053
|
path: e.path,
|
|
985
1054
|
query: e.query
|
|
986
1055
|
}));
|
|
987
|
-
}),
|
|
988
|
-
|
|
1056
|
+
}), Y.afterEach((e, t, n) => {
|
|
1057
|
+
Nt.closeAll(), ln.closeAll();
|
|
989
1058
|
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: s } = r;
|
|
990
|
-
document.title = s ||
|
|
991
|
-
let c =
|
|
1059
|
+
document.title = s || K().appInfo.appName;
|
|
1060
|
+
let c = q();
|
|
992
1061
|
if (![
|
|
993
1062
|
"Login",
|
|
994
1063
|
"NotFound",
|
|
@@ -1002,22 +1071,22 @@ J.beforeEach(async (e) => {
|
|
|
1002
1071
|
}
|
|
1003
1072
|
y().remove(i), VITE_MODE === "development" && (vt(n, ht.aborted) ? m.info("导航被中断") : vt(n, ht.cancelled) ? m.info("导航被取消,因为有一个新的导航") : vt(n, ht.duplicated) && m.info("导航被阻止,因为我们已经在目标位置了"));
|
|
1004
1073
|
});
|
|
1005
|
-
function
|
|
1006
|
-
if (
|
|
1074
|
+
function dn(e) {
|
|
1075
|
+
if (Y.hasRoute(e)) return Y.getRoutes().find((t) => t.name === e);
|
|
1007
1076
|
}
|
|
1008
1077
|
//#endregion
|
|
1009
1078
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
1010
|
-
var
|
|
1011
|
-
function
|
|
1079
|
+
var fn = 15e3, pn = "网络错误,请稍后再试";
|
|
1080
|
+
function mn(e, t = !0) {
|
|
1012
1081
|
let n = {};
|
|
1013
1082
|
return Object.keys(e).forEach((r) => {
|
|
1014
1083
|
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !c(e[r]))) && (n[r] = e[r]);
|
|
1015
1084
|
}), n;
|
|
1016
1085
|
}
|
|
1017
|
-
function
|
|
1018
|
-
return new URLSearchParams(
|
|
1086
|
+
function hn(e, t = !0) {
|
|
1087
|
+
return new URLSearchParams(mn(e, t)).toString();
|
|
1019
1088
|
}
|
|
1020
|
-
function
|
|
1089
|
+
function gn(e) {
|
|
1021
1090
|
let { data: t, response: r, useDownload: i } = e;
|
|
1022
1091
|
if (typeof i == "string") f(t, i);
|
|
1023
1092
|
else {
|
|
@@ -1025,7 +1094,7 @@ function mn(e) {
|
|
|
1025
1094
|
e ? f(t, e) : n.error("返回的 response header 没有文件名");
|
|
1026
1095
|
}
|
|
1027
1096
|
}
|
|
1028
|
-
var
|
|
1097
|
+
var X = xt({
|
|
1029
1098
|
baseURL: VITE_BASE_URL,
|
|
1030
1099
|
beforeRequest(e) {
|
|
1031
1100
|
e.config.credentials = e.config.credentials ?? "omit";
|
|
@@ -1047,10 +1116,10 @@ var Y = xt({
|
|
|
1047
1116
|
useToken: !e.url.startsWith("http"),
|
|
1048
1117
|
...e.meta ?? {}
|
|
1049
1118
|
};
|
|
1050
|
-
let r =
|
|
1051
|
-
l ||
|
|
1119
|
+
let r = nn(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: l, useLoading: u, useResponseBlob: d, useToken: f } = e.meta;
|
|
1120
|
+
l || K().requestActive(), f && (r.token ? e.config.headers.Authorization = r.token : e.abort()), u !== !1 && i.show(u === !0 ? void 0 : u);
|
|
1052
1121
|
let p = e.config.params;
|
|
1053
|
-
if (typeof p != "string" && (e.config.params =
|
|
1122
|
+
if (typeof p != "string" && (e.config.params = hn(p, o)), a && pt(e.data)) {
|
|
1054
1123
|
let t = {}, n = e.data;
|
|
1055
1124
|
Object.keys(n).forEach((e) => {
|
|
1056
1125
|
c(n[e]) || (t[e] = n[e]);
|
|
@@ -1062,7 +1131,7 @@ var Y = xt({
|
|
|
1062
1131
|
t.append(n, e.data[n]);
|
|
1063
1132
|
}), e.data = t;
|
|
1064
1133
|
}
|
|
1065
|
-
e.config.timeout ===
|
|
1134
|
+
e.config.timeout === fn && (s || e.data instanceof FormData || d) && (e.config.timeout = 0);
|
|
1066
1135
|
},
|
|
1067
1136
|
cacheFor: null,
|
|
1068
1137
|
requestAdapter: St(),
|
|
@@ -1077,7 +1146,7 @@ var Y = xt({
|
|
|
1077
1146
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1078
1147
|
if (t.toLowerCase().includes("timeout")) return n && m.error("请求超时"), Promise.reject(e);
|
|
1079
1148
|
}
|
|
1080
|
-
return n && m.error(
|
|
1149
|
+
return n && m.error(pn), Promise.reject(e);
|
|
1081
1150
|
},
|
|
1082
1151
|
onSuccess: async (e, t) => {
|
|
1083
1152
|
if (typeof e == "string") return e;
|
|
@@ -1088,7 +1157,7 @@ var Y = xt({
|
|
|
1088
1157
|
403: "当前操作没有权限",
|
|
1089
1158
|
404: "访问资源不存在",
|
|
1090
1159
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1091
|
-
}[h] ??
|
|
1160
|
+
}[h] ?? pn;
|
|
1092
1161
|
m.error(e);
|
|
1093
1162
|
}
|
|
1094
1163
|
return Promise.reject(e);
|
|
@@ -1100,7 +1169,7 @@ var Y = xt({
|
|
|
1100
1169
|
} catch (e) {
|
|
1101
1170
|
return n.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1102
1171
|
}
|
|
1103
|
-
return i !== !1 &&
|
|
1172
|
+
return i !== !1 && gn({
|
|
1104
1173
|
data: t,
|
|
1105
1174
|
response: e,
|
|
1106
1175
|
useDownload: i
|
|
@@ -1126,12 +1195,12 @@ var Y = xt({
|
|
|
1126
1195
|
if (t >= 400) {
|
|
1127
1196
|
if (t === 600) {
|
|
1128
1197
|
if (d(l).then((e) => {
|
|
1129
|
-
|
|
1198
|
+
G({
|
|
1130
1199
|
body: () => A("div", { innerHTML: e }),
|
|
1131
1200
|
cancelBtn: null
|
|
1132
1201
|
});
|
|
1133
1202
|
}), !o) return g;
|
|
1134
|
-
} else t === 401 && u ?
|
|
1203
|
+
} else t === 401 && u ? Y.push({ name: "Login" }) : a !== !1 && m.error(a === !0 ? l : a);
|
|
1135
1204
|
return Promise.reject(g);
|
|
1136
1205
|
}
|
|
1137
1206
|
{
|
|
@@ -1140,7 +1209,7 @@ var Y = xt({
|
|
|
1140
1209
|
data: s,
|
|
1141
1210
|
msg: l
|
|
1142
1211
|
});
|
|
1143
|
-
return a === void 0 ? (i !== !1 && (typeof i == "string" ?
|
|
1212
|
+
return a === void 0 ? (i !== !1 && (typeof i == "string" ? gn({
|
|
1144
1213
|
data: s,
|
|
1145
1214
|
response: e,
|
|
1146
1215
|
useDownload: i
|
|
@@ -1152,10 +1221,10 @@ var Y = xt({
|
|
|
1152
1221
|
},
|
|
1153
1222
|
shareRequest: !1,
|
|
1154
1223
|
statesHook: Ct,
|
|
1155
|
-
timeout:
|
|
1156
|
-
}),
|
|
1157
|
-
function
|
|
1158
|
-
let t =
|
|
1224
|
+
timeout: fn
|
|
1225
|
+
}), _n = /* @__PURE__ */ new Map();
|
|
1226
|
+
function vn(e) {
|
|
1227
|
+
let t = X.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
1159
1228
|
cssClass: e.cssClass,
|
|
1160
1229
|
dictType: e.dictType,
|
|
1161
1230
|
label: e.dictLabel,
|
|
@@ -1163,42 +1232,42 @@ function hn(e) {
|
|
|
1163
1232
|
value: e.dictValue
|
|
1164
1233
|
})));
|
|
1165
1234
|
e.forEach((e) => {
|
|
1166
|
-
|
|
1235
|
+
_n.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
1167
1236
|
});
|
|
1168
1237
|
}
|
|
1169
|
-
var
|
|
1170
|
-
function
|
|
1171
|
-
return
|
|
1238
|
+
var yn = [];
|
|
1239
|
+
function bn(e) {
|
|
1240
|
+
return yn.includes(e) || yn.push(e), new Promise((t) => {
|
|
1172
1241
|
setTimeout(() => {
|
|
1173
|
-
let n =
|
|
1174
|
-
n.length > 0 &&
|
|
1242
|
+
let n = yn.filter((e) => !_n.has(e));
|
|
1243
|
+
n.length > 0 && vn(n), yn.length = 0, _n.get(e).then((e) => {
|
|
1175
1244
|
t(e);
|
|
1176
1245
|
});
|
|
1177
1246
|
});
|
|
1178
1247
|
});
|
|
1179
1248
|
}
|
|
1180
1249
|
var Z = /* @__PURE__ */ new Map();
|
|
1181
|
-
function
|
|
1182
|
-
|
|
1250
|
+
function xn() {
|
|
1251
|
+
yn.length = 0, _n.clear(), Z.clear();
|
|
1183
1252
|
}
|
|
1184
|
-
function
|
|
1185
|
-
let n =
|
|
1253
|
+
function Sn(e, t) {
|
|
1254
|
+
let n = Cn(e);
|
|
1186
1255
|
return t === void 0 ? p(n) : p(n, t);
|
|
1187
1256
|
}
|
|
1188
|
-
function
|
|
1257
|
+
function Cn(e, t) {
|
|
1189
1258
|
let n;
|
|
1190
|
-
return Z.has(e) ? n = Z.get(e) : (n = I([]), Z.set(e, n),
|
|
1259
|
+
return Z.has(e) ? n = Z.get(e) : (n = I([]), Z.set(e, n), bn(e).then((e) => {
|
|
1191
1260
|
n.value = e;
|
|
1192
|
-
})),
|
|
1261
|
+
})), x(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1193
1262
|
}
|
|
1194
|
-
function
|
|
1195
|
-
|
|
1263
|
+
function wn(e) {
|
|
1264
|
+
_n.delete(e), Z.has(e) && bn(e).then((t) => {
|
|
1196
1265
|
Z.get(e).value = t;
|
|
1197
1266
|
});
|
|
1198
1267
|
}
|
|
1199
1268
|
//#endregion
|
|
1200
1269
|
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
1201
|
-
var
|
|
1270
|
+
var Tn = /* @__PURE__ */ D({
|
|
1202
1271
|
inheritAttrs: !1,
|
|
1203
1272
|
name: "TCheckboxGroup",
|
|
1204
1273
|
__name: "checkbox-group",
|
|
@@ -1225,17 +1294,17 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1225
1294
|
},
|
|
1226
1295
|
emits: ["update:modelValue"],
|
|
1227
1296
|
setup(e, { emit: t }) {
|
|
1228
|
-
let r = e, i = t, a =
|
|
1297
|
+
let r = e, i = t, a = O();
|
|
1229
1298
|
function o(e) {
|
|
1230
1299
|
a.exposed = e ?? {};
|
|
1231
1300
|
}
|
|
1232
|
-
let s =
|
|
1301
|
+
let s = x(() => {
|
|
1233
1302
|
let e;
|
|
1234
|
-
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e =
|
|
1303
|
+
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e = Cn(r.dicCode).value) : e = typeof r.options == "string" ? oe(r.options).value : r.options, r.showCheckAll && (e === void 0 ? n.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
1235
1304
|
checkAll: !0,
|
|
1236
1305
|
label: "全选"
|
|
1237
1306
|
})), e;
|
|
1238
|
-
}), u =
|
|
1307
|
+
}), u = x(() => {
|
|
1239
1308
|
if (!Array.isArray(r.modelValue)) n.error("TCheckboxGroup: modelValue must be an array");
|
|
1240
1309
|
else if (s.value !== void 0) {
|
|
1241
1310
|
let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
|
|
@@ -1243,13 +1312,13 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1243
1312
|
if (t) return r.modelValue.map((e) => l(e) ? Number(e) : e);
|
|
1244
1313
|
}
|
|
1245
1314
|
return r.modelValue;
|
|
1246
|
-
}), d =
|
|
1315
|
+
}), d = x(() => {
|
|
1247
1316
|
let e = { ...r };
|
|
1248
1317
|
return delete e.dicCode, delete e.showCheckAll, Object.keys(e).forEach((t) => {
|
|
1249
1318
|
e[t] === void 0 && delete e[t];
|
|
1250
1319
|
}), e;
|
|
1251
1320
|
});
|
|
1252
|
-
return (e, t) => (F(),
|
|
1321
|
+
return (e, t) => (F(), S(z(A(V(ze), M(e.$attrs, {
|
|
1253
1322
|
...d.value,
|
|
1254
1323
|
options: s.value,
|
|
1255
1324
|
modelValue: u.value,
|
|
@@ -1259,7 +1328,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1259
1328
|
ref: o
|
|
1260
1329
|
}), e.$slots))));
|
|
1261
1330
|
}
|
|
1262
|
-
}),
|
|
1331
|
+
}), En = /* @__PURE__ */ D({
|
|
1263
1332
|
inheritAttrs: !1,
|
|
1264
1333
|
__name: "cron",
|
|
1265
1334
|
props: /*@__PURE__*/ j({
|
|
@@ -1310,7 +1379,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1310
1379
|
}, le),
|
|
1311
1380
|
emits: ["update:modelValue"],
|
|
1312
1381
|
setup(e, { emit: t }) {
|
|
1313
|
-
let n = e, r = t, i = we("isFormDisabled",
|
|
1382
|
+
let n = e, r = t, i = we("isFormDisabled", x(() => !1)), a = we("isFormReadonly", x(() => !1)), o = x(() => {
|
|
1314
1383
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1315
1384
|
return {
|
|
1316
1385
|
...n,
|
|
@@ -1318,8 +1387,8 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1318
1387
|
default: "cron",
|
|
1319
1388
|
onClick: () => {
|
|
1320
1389
|
let i = I(null);
|
|
1321
|
-
|
|
1322
|
-
body: () => A(
|
|
1390
|
+
G({
|
|
1391
|
+
body: () => A(Ce(() => import("../components/cron/src/Picker.mjs")), {
|
|
1323
1392
|
disabled: e,
|
|
1324
1393
|
modelValue: n.modelValue,
|
|
1325
1394
|
onVnodeMounted: (e) => {
|
|
@@ -1341,20 +1410,20 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1341
1410
|
variant: "text"
|
|
1342
1411
|
}) }
|
|
1343
1412
|
};
|
|
1344
|
-
}), s =
|
|
1413
|
+
}), s = Me(), c = O();
|
|
1345
1414
|
function l(e) {
|
|
1346
1415
|
c.exposed = e ?? {};
|
|
1347
1416
|
}
|
|
1348
|
-
let u =
|
|
1417
|
+
let u = x(() => M(s, {
|
|
1349
1418
|
...o.value,
|
|
1350
1419
|
onChange: (...e) => {
|
|
1351
1420
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1352
1421
|
},
|
|
1353
1422
|
ref: l
|
|
1354
1423
|
}));
|
|
1355
|
-
return (e, t) => (F(),
|
|
1424
|
+
return (e, t) => (F(), S(V(ue), P(k(u.value)), null, 16));
|
|
1356
1425
|
}
|
|
1357
|
-
}),
|
|
1426
|
+
}), Dn = /* @__PURE__ */ D({
|
|
1358
1427
|
inheritAttrs: !1,
|
|
1359
1428
|
name: "TRadioGroup",
|
|
1360
1429
|
__name: "radio-group",
|
|
@@ -1384,16 +1453,16 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1384
1453
|
},
|
|
1385
1454
|
emits: ["update:modelValue"],
|
|
1386
1455
|
setup(e, { emit: t }) {
|
|
1387
|
-
let r = e, i = t, a =
|
|
1456
|
+
let r = e, i = t, a = O();
|
|
1388
1457
|
function o(e) {
|
|
1389
1458
|
a.exposed = e ?? {};
|
|
1390
1459
|
}
|
|
1391
|
-
let s =
|
|
1460
|
+
let s = x(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"), Cn(r.dicCode).value) : typeof r.options == "string" ? oe(r.options).value : r.options), d = x(() => {
|
|
1392
1461
|
let e = { ...r };
|
|
1393
1462
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1394
1463
|
e[t] === void 0 && delete e[t];
|
|
1395
1464
|
}), e;
|
|
1396
|
-
}), f =
|
|
1465
|
+
}), f = x(() => {
|
|
1397
1466
|
if (s.value !== void 0 && !c(r.modelValue)) {
|
|
1398
1467
|
let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1399
1468
|
if (e) return u(r.modelValue);
|
|
@@ -1401,18 +1470,18 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1401
1470
|
}
|
|
1402
1471
|
return r.modelValue;
|
|
1403
1472
|
});
|
|
1404
|
-
return (e, t) => (F(),
|
|
1473
|
+
return (e, t) => (F(), S(z(A(V(et), M(e.$attrs, {
|
|
1405
1474
|
...d.value,
|
|
1406
1475
|
options: s.value,
|
|
1407
1476
|
modelValue: f.value,
|
|
1408
1477
|
onChange: (...e) => {
|
|
1409
|
-
let [t, ...n] = e, a =
|
|
1478
|
+
let [t, ...n] = e, a = V(c)(t) ? "" : t;
|
|
1410
1479
|
i("update:modelValue", a), r.onChange?.(a, ...n);
|
|
1411
1480
|
},
|
|
1412
1481
|
ref: o
|
|
1413
1482
|
}), e.$slots))));
|
|
1414
1483
|
}
|
|
1415
|
-
}),
|
|
1484
|
+
}), On = {
|
|
1416
1485
|
clearable: !0,
|
|
1417
1486
|
disabled: void 0,
|
|
1418
1487
|
filterable: void 0,
|
|
@@ -1433,7 +1502,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1433
1502
|
}),
|
|
1434
1503
|
showArrow: !0,
|
|
1435
1504
|
showCheckAll: !1
|
|
1436
|
-
},
|
|
1505
|
+
}, kn = /* @__PURE__ */ D({
|
|
1437
1506
|
inheritAttrs: !1,
|
|
1438
1507
|
name: "TSelect",
|
|
1439
1508
|
__name: "select",
|
|
@@ -1497,19 +1566,19 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1497
1566
|
onPopupVisibleChange: { type: Function },
|
|
1498
1567
|
onRemove: { type: Function },
|
|
1499
1568
|
onSearch: { type: Function }
|
|
1500
|
-
},
|
|
1569
|
+
}, On),
|
|
1501
1570
|
setup(e) {
|
|
1502
|
-
let t = e, r =
|
|
1571
|
+
let t = e, r = O();
|
|
1503
1572
|
function i(e) {
|
|
1504
1573
|
r.exposed = e ?? {};
|
|
1505
1574
|
}
|
|
1506
|
-
let a =
|
|
1575
|
+
let a = x(() => {
|
|
1507
1576
|
let e;
|
|
1508
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ? oe(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e =
|
|
1577
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? oe(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e = Cn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? n.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
1509
1578
|
checkAll: !0,
|
|
1510
1579
|
[t.keys?.label ?? "label"]: "全选"
|
|
1511
1580
|
}) : n.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
1512
|
-
}), o =
|
|
1581
|
+
}), o = x(() => {
|
|
1513
1582
|
if (a.value !== void 0) {
|
|
1514
1583
|
let e = a.value.flatMap((e) => e.children ?? [e]), n = t.keys?.value ?? "value", r = e.every((e) => typeof e[n] == "string"), i = e.every((e) => typeof e[n] == "number");
|
|
1515
1584
|
if (t.multiple) {
|
|
@@ -1521,7 +1590,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1521
1590
|
else if (i) return l(t.modelValue) ? Number(t.modelValue) : t.modelValue;
|
|
1522
1591
|
}
|
|
1523
1592
|
return t.modelValue;
|
|
1524
|
-
}), s =
|
|
1593
|
+
}), s = x(() => {
|
|
1525
1594
|
let e = {
|
|
1526
1595
|
...t,
|
|
1527
1596
|
filterable: t.filterable ?? a.value.length > 8
|
|
@@ -1535,9 +1604,9 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1535
1604
|
d.value = r.exposed.$el.offsetWidth;
|
|
1536
1605
|
}, { box: "border-box" });
|
|
1537
1606
|
});
|
|
1538
|
-
let f =
|
|
1607
|
+
let f = x(() => {
|
|
1539
1608
|
if (s.value.scroll?.type === "virtual" && a.value.length > (s.value.scroll?.threshold ?? 150)) return "300px";
|
|
1540
|
-
}), p =
|
|
1609
|
+
}), p = x(() => ({
|
|
1541
1610
|
...s.value,
|
|
1542
1611
|
modelValue: o.value,
|
|
1543
1612
|
onChange: (...e) => {
|
|
@@ -1556,12 +1625,12 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1556
1625
|
},
|
|
1557
1626
|
ref: i
|
|
1558
1627
|
})), m = Xe;
|
|
1559
|
-
return (t, n) => e.adornment ? (F(),
|
|
1628
|
+
return (t, n) => e.adornment ? (F(), S(z(A(V(m), t.$attrs, {
|
|
1560
1629
|
...e.adornment,
|
|
1561
|
-
default: () => A(
|
|
1562
|
-
})), { key: 0 })) : (F(),
|
|
1630
|
+
default: () => A(V(tt), p.value, t.$slots)
|
|
1631
|
+
})), { key: 0 })) : (F(), S(z(A(V(tt), M(t.$attrs, p.value), t.$slots)), { key: 1 }));
|
|
1563
1632
|
}
|
|
1564
|
-
}),
|
|
1633
|
+
}), An = /* @__PURE__ */ D({
|
|
1565
1634
|
inheritAttrs: !1,
|
|
1566
1635
|
__name: "select-sys-user",
|
|
1567
1636
|
props: /*@__PURE__*/ j({
|
|
@@ -1606,7 +1675,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1606
1675
|
}, me),
|
|
1607
1676
|
emits: ["update:modelValue"],
|
|
1608
1677
|
setup(e, { emit: t }) {
|
|
1609
|
-
let n = e, r = t, i = we("isFormDisabled",
|
|
1678
|
+
let n = e, r = t, i = we("isFormDisabled", x(() => !1)), a = we("isFormReadonly", x(() => !1)), o = x(() => {
|
|
1610
1679
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1611
1680
|
return {
|
|
1612
1681
|
...n,
|
|
@@ -1614,8 +1683,8 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1614
1683
|
default: "选择用户",
|
|
1615
1684
|
onClick: () => {
|
|
1616
1685
|
let e = I(null);
|
|
1617
|
-
|
|
1618
|
-
body: () => A(
|
|
1686
|
+
G({
|
|
1687
|
+
body: () => A(Ce(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
1619
1688
|
max: n.max,
|
|
1620
1689
|
modelValue: n.modelValue,
|
|
1621
1690
|
onVnodeMounted: (t) => {
|
|
@@ -1636,11 +1705,11 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1636
1705
|
variant: "text"
|
|
1637
1706
|
}) }
|
|
1638
1707
|
};
|
|
1639
|
-
}), s =
|
|
1708
|
+
}), s = Me(), c = O();
|
|
1640
1709
|
function l(e) {
|
|
1641
1710
|
c.exposed = e ?? {};
|
|
1642
1711
|
}
|
|
1643
|
-
let u =
|
|
1712
|
+
let u = x(() => M(s, {
|
|
1644
1713
|
...o.value,
|
|
1645
1714
|
inputProps: {
|
|
1646
1715
|
readonly: !0,
|
|
@@ -1652,12 +1721,12 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1652
1721
|
placeholder: "请选择用户",
|
|
1653
1722
|
ref: l
|
|
1654
1723
|
}));
|
|
1655
|
-
return (e, t) => (F(),
|
|
1656
|
-
tag:
|
|
1724
|
+
return (e, t) => (F(), S(V(he), P(k(u.value)), {
|
|
1725
|
+
tag: U(({ value: e }) => [T(B(V($t)(e).value?.userName), 1)]),
|
|
1657
1726
|
_: 1
|
|
1658
1727
|
}, 16));
|
|
1659
1728
|
}
|
|
1660
|
-
}),
|
|
1729
|
+
}), jn = {
|
|
1661
1730
|
checkable: !1,
|
|
1662
1731
|
disabled: void 0,
|
|
1663
1732
|
expandOnClickNode: void 0,
|
|
@@ -1676,7 +1745,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1676
1745
|
line: !0,
|
|
1677
1746
|
transition: !0,
|
|
1678
1747
|
valueMode: "all"
|
|
1679
|
-
},
|
|
1748
|
+
}, Mn = /* @__PURE__ */ D({
|
|
1680
1749
|
inheritAttrs: !1,
|
|
1681
1750
|
name: "TTree",
|
|
1682
1751
|
__name: "tree",
|
|
@@ -1733,23 +1802,23 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1733
1802
|
onLoad: { type: Function },
|
|
1734
1803
|
onScroll: { type: Function },
|
|
1735
1804
|
treeStore: {}
|
|
1736
|
-
},
|
|
1805
|
+
}, jn),
|
|
1737
1806
|
setup(e, { expose: t }) {
|
|
1738
|
-
let n = e, r =
|
|
1807
|
+
let n = e, r = Ne(), i = x(() => {
|
|
1739
1808
|
let e = { ...n };
|
|
1740
1809
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1741
1810
|
e[t] === void 0 && delete e[t];
|
|
1742
1811
|
}), e;
|
|
1743
|
-
}), a =
|
|
1812
|
+
}), a = O();
|
|
1744
1813
|
function o(e) {
|
|
1745
1814
|
a.exposed = e ?? {};
|
|
1746
1815
|
}
|
|
1747
|
-
return t({}), (e, t) => (F(),
|
|
1816
|
+
return t({}), (e, t) => (F(), S(z(A(V(nt), M(e.$attrs, {
|
|
1748
1817
|
...i.value,
|
|
1749
1818
|
ref: o
|
|
1750
1819
|
}), e.$slots))));
|
|
1751
1820
|
}
|
|
1752
|
-
}),
|
|
1821
|
+
}), Nn = /* @__PURE__ */ D({
|
|
1753
1822
|
inheritAttrs: !1,
|
|
1754
1823
|
name: "TTreeSelect",
|
|
1755
1824
|
__name: "tree-select",
|
|
@@ -1816,21 +1885,21 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1816
1885
|
onSearch: {}
|
|
1817
1886
|
},
|
|
1818
1887
|
setup(e) {
|
|
1819
|
-
let t = e, n =
|
|
1888
|
+
let t = e, n = x(() => typeof t.data == "string" ? oe(t.data).value : t.data), r = x(() => {
|
|
1820
1889
|
let e = { ...t };
|
|
1821
1890
|
return e.selectInputProps = {
|
|
1822
1891
|
minCollapsedNum: 2,
|
|
1823
1892
|
...e.selectInputProps ?? {}
|
|
1824
1893
|
}, e.treeProps = {
|
|
1825
|
-
...
|
|
1894
|
+
...jn,
|
|
1826
1895
|
checkable: !!t.multiple,
|
|
1827
1896
|
expandOnClickNode: !!t.multiple,
|
|
1828
|
-
icon:
|
|
1897
|
+
icon: jn.icon(),
|
|
1829
1898
|
...e.treeProps ?? {}
|
|
1830
1899
|
}, Object.keys(e).forEach((t) => {
|
|
1831
1900
|
e[t] === void 0 && delete e[t];
|
|
1832
1901
|
}), e;
|
|
1833
|
-
}), i =
|
|
1902
|
+
}), i = O();
|
|
1834
1903
|
function a(e) {
|
|
1835
1904
|
i.exposed = e ?? {};
|
|
1836
1905
|
}
|
|
@@ -1839,7 +1908,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1839
1908
|
dt(i.exposed.$el, () => {
|
|
1840
1909
|
o.value = i.exposed.$el.offsetWidth;
|
|
1841
1910
|
}, { box: "border-box" });
|
|
1842
|
-
}), (e, t) => (F(),
|
|
1911
|
+
}), (e, t) => (F(), S(z(A(V(rt), M(e.$attrs, {
|
|
1843
1912
|
...r.value,
|
|
1844
1913
|
data: n.value,
|
|
1845
1914
|
ref: a,
|
|
@@ -1853,10 +1922,10 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1853
1922
|
}
|
|
1854
1923
|
}), e.$slots))));
|
|
1855
1924
|
}
|
|
1856
|
-
}),
|
|
1925
|
+
}), Pn = ".xlsx,.xls", Fn = { class: "flex items-center" }, In = {
|
|
1857
1926
|
key: 1,
|
|
1858
1927
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1859
|
-
},
|
|
1928
|
+
}, Ln = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
1860
1929
|
inheritAttrs: !1,
|
|
1861
1930
|
name: "TUpload",
|
|
1862
1931
|
__name: "upload",
|
|
@@ -1865,7 +1934,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1865
1934
|
"onUpdate:modelValue": {},
|
|
1866
1935
|
requestMethod: {},
|
|
1867
1936
|
abridgeName: {},
|
|
1868
|
-
accept: { default:
|
|
1937
|
+
accept: { default: Pn },
|
|
1869
1938
|
allowUploadDuplicateFile: { type: Boolean },
|
|
1870
1939
|
autoUpload: { type: Boolean },
|
|
1871
1940
|
beforeAllFilesUpload: {},
|
|
@@ -1925,7 +1994,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1925
1994
|
onWaitingUploadFilesChange: {}
|
|
1926
1995
|
},
|
|
1927
1996
|
setup(e, { expose: t }) {
|
|
1928
|
-
let n = e, r =
|
|
1997
|
+
let n = e, r = x(() => {
|
|
1929
1998
|
if (n.requestMethod !== void 0) return (e) => new Promise((t) => {
|
|
1930
1999
|
typeof n.requestMethod == "function" ? n.requestMethod(e).then((e) => {
|
|
1931
2000
|
t({
|
|
@@ -1938,7 +2007,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1938
2007
|
response: {},
|
|
1939
2008
|
status: "fail"
|
|
1940
2009
|
});
|
|
1941
|
-
}) :
|
|
2010
|
+
}) : X.Post(n.requestMethod.ossUrl ?? "common/uploadOss", {
|
|
1942
2011
|
biz: n.requestMethod.biz,
|
|
1943
2012
|
file: e.raw
|
|
1944
2013
|
}, { meta: { useFormData: !0 } }).then((e) => {
|
|
@@ -1958,44 +2027,44 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1958
2027
|
function i() {
|
|
1959
2028
|
typeof n.downloadTemplate == "string" ? f(n.downloadTemplate) : n.downloadTemplate.send();
|
|
1960
2029
|
}
|
|
1961
|
-
let a =
|
|
2030
|
+
let a = x(() => {
|
|
1962
2031
|
let e = { ...n };
|
|
1963
2032
|
return ["image", "image-flow"].includes(e.theme) && (e.accept = e.accept === ".xlsx,.xls" ? "image/*" : e.accept), Object.keys(e).forEach((t) => {
|
|
1964
2033
|
e[t] === void 0 && delete e[t];
|
|
1965
2034
|
}), delete e.downloadTemplate, e.theme === "file" && delete e.tips, e;
|
|
1966
|
-
}), o =
|
|
2035
|
+
}), o = O();
|
|
1967
2036
|
function s(e) {
|
|
1968
2037
|
o.exposed = e ?? {};
|
|
1969
2038
|
}
|
|
1970
|
-
return t({}), (t, o) => (F(),
|
|
2039
|
+
return t({}), (t, o) => (F(), S(z(A(V(it), M(t.$attrs, {
|
|
1971
2040
|
...a.value,
|
|
1972
2041
|
requestMethod: r.value,
|
|
1973
2042
|
ref: s
|
|
1974
|
-
}, { class: a.value.theme }))), null,
|
|
2043
|
+
}, { class: a.value.theme }))), null, Se({ _: 2 }, [L(Object.keys(t.$slots), (e) => ({
|
|
1975
2044
|
name: e,
|
|
1976
|
-
fn:
|
|
2045
|
+
fn: U((n) => [R(t.$slots, e, P(k(n)), void 0, !0)])
|
|
1977
2046
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
1978
2047
|
name: "trigger",
|
|
1979
|
-
fn:
|
|
1980
|
-
|
|
1981
|
-
default:
|
|
2048
|
+
fn: U(({ files: t }) => [xe("div", Fn, [
|
|
2049
|
+
E(V($), { theme: "primary" }, {
|
|
2050
|
+
default: U(() => [T(B(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
1982
2051
|
_: 2
|
|
1983
2052
|
}, 1024),
|
|
1984
|
-
e.downloadTemplate ? (F(),
|
|
2053
|
+
e.downloadTemplate ? (F(), S(V($), {
|
|
1985
2054
|
key: 0,
|
|
1986
2055
|
theme: "primary",
|
|
1987
2056
|
variant: "outline",
|
|
1988
|
-
onClick:
|
|
2057
|
+
onClick: Fe(i, ["stop"])
|
|
1989
2058
|
}, {
|
|
1990
|
-
default:
|
|
2059
|
+
default: U(() => [...o[0] ||= [T("下载模板", -1)]]),
|
|
1991
2060
|
_: 1
|
|
1992
|
-
})) :
|
|
1993
|
-
n.tips ? (F(),
|
|
2061
|
+
})) : C("v-if", !0),
|
|
2062
|
+
n.tips ? (F(), w("span", In, B(n.tips), 1)) : C("v-if", !0)
|
|
1994
2063
|
])]),
|
|
1995
2064
|
key: "0"
|
|
1996
2065
|
} : void 0]), 1024));
|
|
1997
2066
|
}
|
|
1998
|
-
}), [["__scopeId", "data-v-51889a3b"]]),
|
|
2067
|
+
}), [["__scopeId", "data-v-51889a3b"]]), Rn = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
1999
2068
|
inheritAttrs: !1,
|
|
2000
2069
|
name: "TForm",
|
|
2001
2070
|
__name: "form",
|
|
@@ -2025,7 +2094,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2025
2094
|
onValidate: { type: Function }
|
|
2026
2095
|
}, Dt),
|
|
2027
2096
|
setup(e, { expose: t }) {
|
|
2028
|
-
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = bt, s =
|
|
2097
|
+
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = bt, s = O(), l = I(null), u = x(() => r.items.map((e) => {
|
|
2029
2098
|
if (typeof e.__others == "function") {
|
|
2030
2099
|
let t = {
|
|
2031
2100
|
...e,
|
|
@@ -2065,34 +2134,34 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2065
2134
|
}
|
|
2066
2135
|
});
|
|
2067
2136
|
}
|
|
2068
|
-
|
|
2137
|
+
H(u, d, {
|
|
2069
2138
|
deep: 2,
|
|
2070
2139
|
immediate: !0
|
|
2071
|
-
}),
|
|
2140
|
+
}), H(() => r.data, () => {
|
|
2072
2141
|
n.error("TForm: data is changed");
|
|
2073
2142
|
});
|
|
2074
2143
|
let f = /* @__PURE__ */ new Map(), p = {
|
|
2075
2144
|
TCheckbox: a,
|
|
2076
|
-
TCheckboxGroup:
|
|
2145
|
+
TCheckboxGroup: Tn,
|
|
2077
2146
|
TColorPicker: ce,
|
|
2078
|
-
TCron:
|
|
2147
|
+
TCron: En,
|
|
2079
2148
|
TDatePicker: de,
|
|
2080
2149
|
TInput: ue,
|
|
2081
2150
|
TInputNumber: fe,
|
|
2082
|
-
TRadioGroup:
|
|
2151
|
+
TRadioGroup: Dn,
|
|
2083
2152
|
TRangeInput: pe,
|
|
2084
|
-
TSelect:
|
|
2085
|
-
TSelectSysUser:
|
|
2153
|
+
TSelect: kn,
|
|
2154
|
+
TSelectSysUser: An,
|
|
2086
2155
|
TSlider: ge,
|
|
2087
2156
|
TSwitch: _e,
|
|
2088
2157
|
TTagInput: he,
|
|
2089
2158
|
TTextarea: ve,
|
|
2090
|
-
TTree:
|
|
2091
|
-
TTreeSelect:
|
|
2092
|
-
TUpload:
|
|
2159
|
+
TTree: Mn,
|
|
2160
|
+
TTreeSelect: Nn,
|
|
2161
|
+
TUpload: Ln
|
|
2093
2162
|
};
|
|
2094
2163
|
function h(e) {
|
|
2095
|
-
return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e,
|
|
2164
|
+
return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e, Ce(o.get(e))), f.get(e)) : p[e] : ue;
|
|
2096
2165
|
}
|
|
2097
2166
|
function g(e) {
|
|
2098
2167
|
let t = {};
|
|
@@ -2122,7 +2191,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2122
2191
|
whitespace: !0
|
|
2123
2192
|
}), t;
|
|
2124
2193
|
}
|
|
2125
|
-
let v =
|
|
2194
|
+
let v = x(() => {
|
|
2126
2195
|
let e = { ...r };
|
|
2127
2196
|
if (e.rules !== void 0) {
|
|
2128
2197
|
let t = {};
|
|
@@ -2195,7 +2264,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2195
2264
|
let t = e ?? {};
|
|
2196
2265
|
l.value = t, s.exposed = t;
|
|
2197
2266
|
}
|
|
2198
|
-
let b =
|
|
2267
|
+
let b = je();
|
|
2199
2268
|
De(() => {
|
|
2200
2269
|
b.value = s.exposed.$el.getElementsByClassName("t-form__label"), te(), ut(s.exposed.$el, () => {
|
|
2201
2270
|
te();
|
|
@@ -2220,12 +2289,12 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2220
2289
|
e.style.minWidth = `${t}px`;
|
|
2221
2290
|
});
|
|
2222
2291
|
}
|
|
2223
|
-
return Oe("formData", r.data), Oe("formExposed", l), Oe("isFormDisabled",
|
|
2292
|
+
return Oe("formData", r.data), Oe("formExposed", l), Oe("isFormDisabled", x(() => r.disabled)), Oe("isFormReadonly", x(() => r.readonly)), t({}), (t, n) => (F(), w(ye, null, [C(" eslint-disable vue/no-mutating-props "), (F(), S(z(V(Ke)), M(M(t.$attrs, {
|
|
2224
2293
|
...v.value,
|
|
2225
2294
|
ref: ee
|
|
2226
2295
|
}), { "label-width": "fit-content" }), {
|
|
2227
|
-
default:
|
|
2228
|
-
default:
|
|
2296
|
+
default: U(() => [(F(!0), w(ye, null, L(u.value.filter((e) => e.show !== !1), (n) => (F(), S(V(qe), M({ key: n.model ?? n.slot }, { ref_for: !0 }, M({ ..._(n) }, { class: { no_label_item: V(c)(n._label) } }), { name: n.model }), {
|
|
2297
|
+
default: U(() => [n.slot ? R(t.$slots, n.slot, {}, void 0, !0, 0) : (F(), S(z(h(n.component)), M({
|
|
2229
2298
|
key: 1,
|
|
2230
2299
|
modelValue: e.data[n.model],
|
|
2231
2300
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
@@ -2235,14 +2304,14 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2235
2304
|
_: 3
|
|
2236
2305
|
}, 16))], 2112));
|
|
2237
2306
|
}
|
|
2238
|
-
}), [["__scopeId", "data-v-d3f924b4"]]),
|
|
2307
|
+
}), [["__scopeId", "data-v-d3f924b4"]]), zn = /* @__PURE__ */ D({
|
|
2239
2308
|
__name: "ResetPwd",
|
|
2240
2309
|
props: { showFooter: {
|
|
2241
2310
|
type: Boolean,
|
|
2242
2311
|
default: !0
|
|
2243
2312
|
} },
|
|
2244
2313
|
setup(e, { expose: t }) {
|
|
2245
|
-
let n =
|
|
2314
|
+
let n = W(), r = [
|
|
2246
2315
|
{
|
|
2247
2316
|
_label: "旧密码",
|
|
2248
2317
|
_required: !0,
|
|
@@ -2273,13 +2342,13 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2273
2342
|
type: "password"
|
|
2274
2343
|
},
|
|
2275
2344
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
2276
|
-
], i =
|
|
2345
|
+
], i = Pe("form");
|
|
2277
2346
|
function a() {
|
|
2278
|
-
|
|
2347
|
+
q().close(n.name);
|
|
2279
2348
|
}
|
|
2280
2349
|
async function c() {
|
|
2281
2350
|
let e = await i.value.validate();
|
|
2282
|
-
await
|
|
2351
|
+
await X.Put("system/user/profile/updatePwd", void 0, {
|
|
2283
2352
|
meta: {
|
|
2284
2353
|
useLoading: "保存中...",
|
|
2285
2354
|
useSuccessMsg: !0
|
|
@@ -2288,23 +2357,23 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2288
2357
|
newPassword: e.newPassword,
|
|
2289
2358
|
oldPassword: e.oldPassword
|
|
2290
2359
|
}
|
|
2291
|
-
}),
|
|
2360
|
+
}), nn().logout();
|
|
2292
2361
|
}
|
|
2293
|
-
return t({ handleSubmit: c }), (e, t) => (F(),
|
|
2362
|
+
return t({ handleSubmit: c }), (e, t) => (F(), S(V(Rn), {
|
|
2294
2363
|
ref: "form",
|
|
2295
2364
|
items: r,
|
|
2296
2365
|
"label-align": "right",
|
|
2297
2366
|
layout: "vertical"
|
|
2298
2367
|
}, {
|
|
2299
|
-
footer:
|
|
2300
|
-
default:
|
|
2368
|
+
footer: U(() => [E(V($), { onClick: c }, {
|
|
2369
|
+
default: U(() => [...t[0] ||= [T("保存", -1)]]),
|
|
2301
2370
|
_: 1
|
|
2302
|
-
}),
|
|
2371
|
+
}), E(V($), {
|
|
2303
2372
|
class: "ml-4!",
|
|
2304
2373
|
theme: "default",
|
|
2305
2374
|
onClick: a
|
|
2306
2375
|
}, {
|
|
2307
|
-
default:
|
|
2376
|
+
default: U(() => [...t[1] ||= [T("关闭", -1)]]),
|
|
2308
2377
|
_: 1
|
|
2309
2378
|
})]),
|
|
2310
2379
|
_: 1
|
|
@@ -2313,13 +2382,13 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2313
2382
|
});
|
|
2314
2383
|
//#endregion
|
|
2315
2384
|
//#region ../../packages/dlzn-ui/store/modules/user.ts
|
|
2316
|
-
function
|
|
2317
|
-
return
|
|
2385
|
+
function Bn() {
|
|
2386
|
+
return X.Get("getInfo", { meta: {
|
|
2318
2387
|
useFailMsg: "获取用户信息失败",
|
|
2319
2388
|
useLoading: "正在获取用户信息..."
|
|
2320
2389
|
} });
|
|
2321
2390
|
}
|
|
2322
|
-
var
|
|
2391
|
+
var Vn = {
|
|
2323
2392
|
admin: !1,
|
|
2324
2393
|
dept: { deptName: "" },
|
|
2325
2394
|
needChangePwd: 0,
|
|
@@ -2327,20 +2396,20 @@ var Rn = {
|
|
|
2327
2396
|
userId: "",
|
|
2328
2397
|
userName: ""
|
|
2329
2398
|
}, Q = mt("user", () => {
|
|
2330
|
-
let e = I(ft(
|
|
2399
|
+
let e = I(ft(Vn)), t = I([]), n = I([]);
|
|
2331
2400
|
function r() {
|
|
2332
|
-
e.value = ft(
|
|
2401
|
+
e.value = ft(Vn), t.value = [], n.value = [];
|
|
2333
2402
|
}
|
|
2334
|
-
let i =
|
|
2403
|
+
let i = x(() => e.value.admin), a = I("");
|
|
2335
2404
|
async function o(r = !0) {
|
|
2336
|
-
let i = await
|
|
2337
|
-
e.value = i.user, a.value !== e.value.userId &&
|
|
2405
|
+
let i = await Bn();
|
|
2406
|
+
e.value = i.user, a.value !== e.value.userId && q().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await Ut().getRouters();
|
|
2338
2407
|
}
|
|
2339
|
-
|
|
2408
|
+
H(() => e.value.needChangePwd, (e) => {
|
|
2340
2409
|
e === 1 && VITE_FORCE_PWD_CHANGE && N(() => {
|
|
2341
2410
|
let e = I(null);
|
|
2342
|
-
|
|
2343
|
-
body: () => A(
|
|
2411
|
+
G({
|
|
2412
|
+
body: () => A(zn, {
|
|
2344
2413
|
labelAlign: "top",
|
|
2345
2414
|
ref: e,
|
|
2346
2415
|
showFooter: !1
|
|
@@ -2371,7 +2440,7 @@ var Rn = {
|
|
|
2371
2440
|
roles: n,
|
|
2372
2441
|
userInfo: e
|
|
2373
2442
|
};
|
|
2374
|
-
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ b(/* @__PURE__ */
|
|
2443
|
+
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
2375
2444
|
inheritAttrs: !1,
|
|
2376
2445
|
name: "TButton",
|
|
2377
2446
|
__name: "button",
|
|
@@ -2437,16 +2506,16 @@ var Rn = {
|
|
|
2437
2506
|
return t;
|
|
2438
2507
|
}
|
|
2439
2508
|
let s = I(!1), c = i.isLoading, l = I(null), { focused: u } = lt(l), d, f;
|
|
2440
|
-
|
|
2509
|
+
H(c, (e) => {
|
|
2441
2510
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2442
2511
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
2443
2512
|
}, 150)) : d === void 0 ? f = setTimeout(() => {
|
|
2444
2513
|
s.value = !1;
|
|
2445
2514
|
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
2446
|
-
}, { immediate: !0 }),
|
|
2515
|
+
}, { immediate: !0 }), H(u, (e) => {
|
|
2447
2516
|
e && c.value && (s.value = !0);
|
|
2448
2517
|
});
|
|
2449
|
-
let p =
|
|
2518
|
+
let p = x(() => r.loading === void 0 ? r.autoLoading ? s.value : !1 : r.loading), m = x(() => {
|
|
2450
2519
|
let e = {
|
|
2451
2520
|
...r,
|
|
2452
2521
|
...o(),
|
|
@@ -2455,7 +2524,7 @@ var Rn = {
|
|
|
2455
2524
|
return Object.keys(e).forEach((t) => {
|
|
2456
2525
|
e[t] === void 0 && delete e[t];
|
|
2457
2526
|
}), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
|
|
2458
|
-
}), h =
|
|
2527
|
+
}), h = O();
|
|
2459
2528
|
function g(e) {
|
|
2460
2529
|
let t = e ?? {};
|
|
2461
2530
|
h.exposed = t, l.value = t.$el;
|
|
@@ -2463,7 +2532,7 @@ var Rn = {
|
|
|
2463
2532
|
function _() {
|
|
2464
2533
|
a.value = l.value?.textContent ?? "";
|
|
2465
2534
|
}
|
|
2466
|
-
let v =
|
|
2535
|
+
let v = x(() => {
|
|
2467
2536
|
if (!r.autoIcon || a.value.trim() === "") return;
|
|
2468
2537
|
let e = {
|
|
2469
2538
|
"mdi:plus": [
|
|
@@ -2528,10 +2597,10 @@ var Rn = {
|
|
|
2528
2597
|
break;
|
|
2529
2598
|
}
|
|
2530
2599
|
if (t !== void 0) return t;
|
|
2531
|
-
}), y =
|
|
2600
|
+
}), y = Me(), ee = x(() => M(y, {
|
|
2532
2601
|
...m.value,
|
|
2533
2602
|
ref: g
|
|
2534
|
-
}, { class: "flex-shrink-0" })), b =
|
|
2603
|
+
}, { class: "flex-shrink-0" })), b = x(() => {
|
|
2535
2604
|
if (r.popconfirm) return {
|
|
2536
2605
|
...r.popconfirm,
|
|
2537
2606
|
onVisibleChange: (...e) => {
|
|
@@ -2539,33 +2608,33 @@ var Rn = {
|
|
|
2539
2608
|
}
|
|
2540
2609
|
};
|
|
2541
2610
|
});
|
|
2542
|
-
return (r, i) =>
|
|
2543
|
-
default:
|
|
2611
|
+
return (r, i) => V(Q)().checkPermissions(n.permission) ? (F(), w(ye, { key: 0 }, [b.value ? (F(), S(V(t), P(M({ key: 0 }, b.value)), {
|
|
2612
|
+
default: U(() => [(F(), S(z(A(V(Re), ee.value)), {
|
|
2544
2613
|
onVnodeMounted: _,
|
|
2545
2614
|
onVnodeUpdated: _
|
|
2546
|
-
},
|
|
2615
|
+
}, Se({ _: 2 }, [n.icon || v.value ? {
|
|
2547
2616
|
name: "icon",
|
|
2548
|
-
fn:
|
|
2617
|
+
fn: U(() => [E(V(e), { icon: n.icon || v.value }, null, 8, ["icon"])]),
|
|
2549
2618
|
key: "0"
|
|
2550
2619
|
} : void 0, L(Object.keys(r.$slots), (e) => ({
|
|
2551
2620
|
name: e,
|
|
2552
|
-
fn:
|
|
2621
|
+
fn: U((t) => [R(r.$slots, e, P(k(t)), void 0, !0)])
|
|
2553
2622
|
}))]), 1536))]),
|
|
2554
2623
|
_: 3
|
|
2555
|
-
}, 16)) : (F(),
|
|
2624
|
+
}, 16)) : (F(), S(z(A(V(Re), ee.value)), {
|
|
2556
2625
|
key: 1,
|
|
2557
2626
|
onVnodeMounted: _,
|
|
2558
2627
|
onVnodeUpdated: _
|
|
2559
|
-
},
|
|
2628
|
+
}, Se({ _: 2 }, [n.icon || v.value ? {
|
|
2560
2629
|
name: "icon",
|
|
2561
|
-
fn:
|
|
2630
|
+
fn: U(() => [E(V(e), { icon: n.icon || v.value }, null, 8, ["icon"])]),
|
|
2562
2631
|
key: "0"
|
|
2563
2632
|
} : void 0, L(Object.keys(r.$slots), (e) => ({
|
|
2564
2633
|
name: e,
|
|
2565
|
-
fn:
|
|
2566
|
-
}))]), 1536))], 64)) :
|
|
2634
|
+
fn: U((t) => [R(r.$slots, e, P(k(t)), void 0, !0)])
|
|
2635
|
+
}))]), 1536))], 64)) : C("v-if", !0);
|
|
2567
2636
|
}
|
|
2568
|
-
}), [["__scopeId", "data-v-af27d302"]]),
|
|
2637
|
+
}), [["__scopeId", "data-v-af27d302"]]), Hn = /* @__PURE__ */ D({
|
|
2569
2638
|
name: "TProvider",
|
|
2570
2639
|
__name: "Provider",
|
|
2571
2640
|
setup(e) {
|
|
@@ -2587,14 +2656,14 @@ var Rn = {
|
|
|
2587
2656
|
variant: "text"
|
|
2588
2657
|
})
|
|
2589
2658
|
} };
|
|
2590
|
-
return (e, n) => (F(),
|
|
2659
|
+
return (e, n) => (F(), S(V(at), {
|
|
2591
2660
|
"empty-values": [""],
|
|
2592
|
-
locale:
|
|
2661
|
+
locale: V(Tt),
|
|
2593
2662
|
"value-on-clear": "",
|
|
2594
2663
|
"z-index": 5500
|
|
2595
2664
|
}, {
|
|
2596
|
-
default:
|
|
2597
|
-
default:
|
|
2665
|
+
default: U(() => [E(V(Be), { "global-config": t }, {
|
|
2666
|
+
default: U(() => [R(e.$slots, "default")]),
|
|
2598
2667
|
_: 3
|
|
2599
2668
|
})]),
|
|
2600
2669
|
_: 3
|
|
@@ -2602,4 +2671,4 @@ var Rn = {
|
|
|
2602
2671
|
}
|
|
2603
2672
|
});
|
|
2604
2673
|
//#endregion
|
|
2605
|
-
export {
|
|
2674
|
+
export { an as A, K as B, mn as C, Y as D, un as E, Kt as F, Dt as G, Nt as H, Gt as I, Et as K, Ft as L, Zt as M, Qt as N, ln as O, $t as P, Ut as R, X as S, dn as T, kt as U, G as V, Ot 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, nn as j, on 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, q as z };
|