dlzn-ui 2.0.119 → 2.0.120
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/{Entry-B3ky07Qg.css → Entry-DPwbHRvz.css} +1 -1
- package/assets/Index-BLkWM5zw.css +1 -0
- package/chunks/{AssignUser-D_xW9lhD.mjs → AssignUser-DkKi-f-v.mjs} +3 -3
- package/chunks/{BasicInfo-B1mMBe7r.mjs → BasicInfo-CB8szxW9.mjs} +1 -1
- package/chunks/{ColumnInfo-BpBMql4K.mjs → ColumnInfo-zhHr__ba.mjs} +2 -2
- package/chunks/{Common-CoFFPqss.mjs → Common-KPxBvpik.mjs} +1 -1
- package/chunks/{Day-DIf-1kzz.mjs → Day-Y9p6ofoK.mjs} +1 -1
- package/chunks/{DictTypeDetail-8NDw3cLV.mjs → DictTypeDetail-V_uCKY0J.mjs} +2 -2
- package/chunks/{GenInfo-DH6_5FxE.mjs → GenInfo-DaCcg-D1.mjs} +1 -1
- package/chunks/{Hour-C3cFWOwh.mjs → Hour-BP3HeVca.mjs} +1 -1
- package/chunks/{Import-COaRd2Qp.mjs → Import-BjGT-GRs.mjs} +2 -2
- package/chunks/{Index-D7HI5DsK.mjs → Index-A9SGDL1F.mjs} +1 -1
- package/chunks/{Index-Z1CCFy3Y.mjs → Index-B7Sc5y9r.mjs} +1 -1
- package/chunks/{Index-D-kZLZXX.mjs → Index-B8ufwVJ9.mjs} +1 -1
- package/chunks/{Index-DJdYyQY1.mjs → Index-BAazGk36.mjs} +1 -1
- package/chunks/{Index-CRF_acX1.mjs → Index-BF6fQ7SM.mjs} +1 -1
- package/chunks/{Index-B03dFN4i.mjs → Index-BFuKKcM1.mjs} +1 -1
- package/chunks/{Index-DmwPJcki.mjs → Index-BQNLX14p.mjs} +1 -1
- package/chunks/{Index-BVT2LksZ.mjs → Index-Baaj06eI.mjs} +1 -1
- package/chunks/{Index-r02qcrn5.mjs → Index-BeddvN9C.mjs} +1 -1
- package/chunks/{Index-CYlCwdrM.mjs → Index-Bf9gbJEC.mjs} +1 -1
- package/chunks/{Index-U9mtqDkS.mjs → Index-BrWo56wC.mjs} +1 -1
- package/chunks/{Index-D5tZnEmT.mjs → Index-BtOfUwZT.mjs} +1 -1
- package/chunks/{Index-1BU-m7JA.mjs → Index-D7YDADTi.mjs} +1 -1
- package/chunks/{Index-CGtbxeDr.mjs → Index-DF7LPMzn.mjs} +1 -1
- package/chunks/{Index-eroDMhNZ.mjs → Index-DfG2tY1H.mjs} +1 -1
- package/chunks/{Index-CUKJliKN.mjs → Index-DylB6xuk.mjs} +1 -1
- package/chunks/{Index-BDSWxA4u.mjs → Index-YfqMckml.mjs} +1 -1
- package/chunks/{IndexItem-C7gkQg-7.mjs → IndexItem-D6Mi9qw4.mjs} +3 -3
- package/chunks/{Log-Kxzlgrpm.mjs → Log-BILDX40R.mjs} +2 -2
- package/chunks/{LoginBg-D3Bc-IlZ.mjs → LoginBg-DLTXfrrN.mjs} +1 -1
- package/chunks/{Minute-Bk5kdhYB.mjs → Minute-BbL7U2Qp.mjs} +1 -1
- package/chunks/{Month-n2riNYxV.mjs → Month-BnyV0kJI.mjs} +1 -1
- package/chunks/{Preview-DpZz-56K.mjs → Preview-D8ZjaRcx.mjs} +1 -1
- package/chunks/{Second-Blvdrkng.mjs → Second-BYACdhGy.mjs} +1 -1
- package/chunks/{SelectDept-BBnFp8FC.mjs → SelectDept-CHsBjGVm.mjs} +1 -1
- package/chunks/{SelectMenu-CjCHgrGM.mjs → SelectMenu-BP5WLJSx.mjs} +1 -1
- package/chunks/{SelectUser-DMeP9TbC.mjs → SelectUser-CaNg9y9w.mjs} +2 -2
- package/chunks/{UserInfo-BuWZ_W8c.mjs → UserInfo-CJkUlinr.mjs} +1 -1
- package/chunks/{Wrapper-D1bcKQEA.mjs → Wrapper-BDGVAn8t.mjs} +1 -1
- package/chunks/{app-CDouCMHH.mjs → app-CIaw9Pn2.mjs} +1 -1
- package/chunks/{custom-page-list-BRFugPwK.mjs → custom-page-list-B4Nxnwv1.mjs} +4 -4
- package/chunks/{custom-page-table-Bsm9zMZG.mjs → custom-page-table-BZFj0_E8.mjs} +2 -2
- package/chunks/{job-CSRDnXmS.mjs → job-ueF8d1ko.mjs} +3 -3
- package/chunks/jszip.min-CyohkHQt.mjs +3039 -0
- package/chunks/{overview-DJZvM0Vt.mjs → overview-Bzb1Eriu.mjs} +1 -1
- package/chunks/{page-list-DLWh40hO.mjs → page-list-BBhklVKH.mjs} +3 -3
- package/chunks/{page-query-4zeIi0-7.mjs → page-query-C5dvqOU9.mjs} +1 -1
- package/chunks/{page-table-cAWVNiYq.mjs → page-table-CmKz0Gxc.mjs} +3 -3
- package/chunks/{pagination-BKpHWQHn.mjs → pagination-BJ2XLyQj.mjs} +1 -1
- package/chunks/{provider-BNvP0xrG.mjs → provider-BsGzIGGC.mjs} +225 -213
- package/chunks/{table-B9W03_lw.mjs → table-BJEQzzOA.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/cascader/index.mjs +1 -1
- package/components/cascader/src/cascader.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/date-picker/index.mjs +1 -1
- package/components/date-picker/src/date-picker.mjs +1 -1
- package/components/dialog/index.mjs +1 -1
- package/components/dialog/src/dialog.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +11 -11
- package/components/input-number/index.mjs +1 -1
- package/components/input-number/src/input-number.mjs +1 -1
- 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/OptionLabel/Index.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/range-input/index.mjs +1 -1
- package/components/range-input/src/range-input.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/useLabel/index.mjs +1 -1
- package/hooks/useList/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/Login.mjs +2 -2
- package/layout/NotFound.mjs +1 -1
- package/layout/Test.mjs +2 -2
- 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 -2
- 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/autoImport/$fileView/Entry.mjs +3 -3
- package/plugins/autoImport/$fileView/index.mjs +1 -1
- package/plugins/autoImport/$fileView/pdf/Index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +1 -1
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/directive/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/Wrapper.mjs +1 -1
- package/plugins/tableRenders/cell/AudioPlay/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Avatar/Index.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/FormatDate/Index.mjs +1 -1
- package/plugins/tableRenders/cell/FormatNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Icon/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Image/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ImageViewer/Index.mjs +1 -1
- package/plugins/tableRenders/cell/InputNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/OptionLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyText/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +15 -15
- package/plugins/tableRenders/title/TypographyText/Index.mjs +1 -1
- package/plugins/tableRenders/title/index.mjs +2 -2
- 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/utils/gather.mjs +1 -1
- package/utils/index.mjs +1 -1
- package/utils/tool.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
- package/assets/Index-DEhdS9RX.css +0 -1
|
@@ -54,8 +54,20 @@ import { createAlova as At } from "alova";
|
|
|
54
54
|
import jt from "alova/fetch";
|
|
55
55
|
import Mt from "alova/vue";
|
|
56
56
|
import Nt from "path-browserify";
|
|
57
|
-
import '../assets/provider-D_qs42UA.css';//
|
|
58
|
-
var Pt = {
|
|
57
|
+
import '../assets/provider-D_qs42UA.css';// \0rolldown/runtime.js
|
|
58
|
+
var Pt = Object.create, Ft = Object.defineProperty, It = Object.getOwnPropertyDescriptor, Lt = Object.getOwnPropertyNames, Rt = Object.getPrototypeOf, zt = Object.prototype.hasOwnProperty, Bt = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), Vt = (e, t, n, r) => {
|
|
59
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = Lt(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !zt.call(e, s) && s !== n && Ft(e, s, {
|
|
60
|
+
get: ((e) => t[e]).bind(null, s),
|
|
61
|
+
enumerable: !(r = It(t, s)) || r.enumerable
|
|
62
|
+
});
|
|
63
|
+
return e;
|
|
64
|
+
}, Ht = (e, t, n) => (n = e == null ? {} : Pt(Rt(e)), Vt(t || !e || !e.__esModule || !zt.call(e, "default") ? Ft(n, "default", {
|
|
65
|
+
value: e,
|
|
66
|
+
enumerable: !0
|
|
67
|
+
}) : n, e)), Ut = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
68
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
69
|
+
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
70
|
+
}), Wt = {
|
|
59
71
|
name: "zh-cn",
|
|
60
72
|
el: {
|
|
61
73
|
breadcrumb: { label: "面包屑" },
|
|
@@ -236,12 +248,12 @@ var Pt = {
|
|
|
236
248
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
237
249
|
}
|
|
238
250
|
}
|
|
239
|
-
},
|
|
251
|
+
}, Gt = {
|
|
240
252
|
autoIcon: !0,
|
|
241
253
|
autoLoading: !0,
|
|
242
254
|
autoTheme: !0,
|
|
243
255
|
loading: void 0
|
|
244
|
-
},
|
|
256
|
+
}, Kt = {
|
|
245
257
|
autoLabelWidth: !0,
|
|
246
258
|
colon: !0,
|
|
247
259
|
data: () => je({}),
|
|
@@ -254,7 +266,7 @@ var Pt = {
|
|
|
254
266
|
requiredMark: void 0,
|
|
255
267
|
resetType: "initial",
|
|
256
268
|
showErrorMessage: !0
|
|
257
|
-
},
|
|
269
|
+
}, qt = {
|
|
258
270
|
clearable: !0,
|
|
259
271
|
disabled: void 0,
|
|
260
272
|
filterable: !0,
|
|
@@ -265,7 +277,7 @@ var Pt = {
|
|
|
265
277
|
showAllLevels: !0,
|
|
266
278
|
valueMode: "onlyLeaf",
|
|
267
279
|
valueType: "single"
|
|
268
|
-
},
|
|
280
|
+
}, Jt = class {
|
|
269
281
|
stream;
|
|
270
282
|
onDisposed;
|
|
271
283
|
audioElement;
|
|
@@ -294,7 +306,7 @@ var Pt = {
|
|
|
294
306
|
onTrackEnded = () => {
|
|
295
307
|
this.dispose();
|
|
296
308
|
};
|
|
297
|
-
},
|
|
309
|
+
}, Yt = new class {
|
|
298
310
|
players = /* @__PURE__ */ new Map();
|
|
299
311
|
play(e, t) {
|
|
300
312
|
if (this.players.has(e)) {
|
|
@@ -306,7 +318,7 @@ var Pt = {
|
|
|
306
318
|
}
|
|
307
319
|
let { disposeOthers: n = !0, setAudioElement: r } = t ?? {};
|
|
308
320
|
n && this.release();
|
|
309
|
-
let i = new
|
|
321
|
+
let i = new Jt(e, (e) => {
|
|
310
322
|
this.players.delete(e);
|
|
311
323
|
}, r);
|
|
312
324
|
return this.players.set(e, i), {
|
|
@@ -319,14 +331,14 @@ var Pt = {
|
|
|
319
331
|
else for (let e of [...this.players.values()]) e.dispose();
|
|
320
332
|
}
|
|
321
333
|
}();
|
|
322
|
-
function
|
|
323
|
-
return
|
|
334
|
+
function Xt(e, t) {
|
|
335
|
+
return Yt.play(e, t);
|
|
324
336
|
}
|
|
325
|
-
function
|
|
326
|
-
|
|
337
|
+
function Zt(e) {
|
|
338
|
+
Yt.release(e);
|
|
327
339
|
}
|
|
328
340
|
// ../../packages/dlzn-ui/utils/audio/playUrl.ts
|
|
329
|
-
var
|
|
341
|
+
var Qt = class {
|
|
330
342
|
url;
|
|
331
343
|
onDisposed;
|
|
332
344
|
audioElement;
|
|
@@ -348,7 +360,7 @@ var Ht = class {
|
|
|
348
360
|
onEnded = () => {
|
|
349
361
|
this.dispose();
|
|
350
362
|
};
|
|
351
|
-
},
|
|
363
|
+
}, $t = new class {
|
|
352
364
|
players = /* @__PURE__ */ new Map();
|
|
353
365
|
play(e, t) {
|
|
354
366
|
if (this.players.has(e)) {
|
|
@@ -360,7 +372,7 @@ var Ht = class {
|
|
|
360
372
|
}
|
|
361
373
|
let { disposeOthers: n = !0, setAudioElement: r } = t ?? {};
|
|
362
374
|
n && this.release();
|
|
363
|
-
let i = new
|
|
375
|
+
let i = new Qt(e, (e) => {
|
|
364
376
|
this.players.delete(e);
|
|
365
377
|
}, r);
|
|
366
378
|
return this.players.set(e, i), {
|
|
@@ -373,19 +385,19 @@ var Ht = class {
|
|
|
373
385
|
else for (let e of [...this.players.values()]) e.dispose();
|
|
374
386
|
}
|
|
375
387
|
}();
|
|
376
|
-
function
|
|
377
|
-
return
|
|
388
|
+
function en(e, t) {
|
|
389
|
+
return $t.play(e, t);
|
|
378
390
|
}
|
|
379
|
-
function
|
|
380
|
-
|
|
391
|
+
function tn(e) {
|
|
392
|
+
$t.release(e);
|
|
381
393
|
}
|
|
382
394
|
// ../../packages/dlzn-ui/utils/gather.ts
|
|
383
|
-
function
|
|
395
|
+
function nn(e, t) {
|
|
384
396
|
let n = Array.isArray(t), r = (n ? t : [t]).map((t) => e.find((e) => String(e.value) === String(t))?.label ?? f(t));
|
|
385
397
|
return n ? r : r[0];
|
|
386
398
|
}
|
|
387
399
|
// ../../packages/dlzn-ui/components/dialog/src/dialog.ts
|
|
388
|
-
var
|
|
400
|
+
var rn = {
|
|
389
401
|
closeBtn: () => A($, {
|
|
390
402
|
icon: "mdi:close",
|
|
391
403
|
shape: "circle",
|
|
@@ -406,7 +418,7 @@ var qt = {
|
|
|
406
418
|
preventScrollThrough: !0,
|
|
407
419
|
showOverlay: !0,
|
|
408
420
|
width: "fit-content"
|
|
409
|
-
},
|
|
421
|
+
}, an = /* @__PURE__ */ O({
|
|
410
422
|
inheritAttrs: !1,
|
|
411
423
|
name: "TDialog",
|
|
412
424
|
__name: "dialog",
|
|
@@ -453,9 +465,9 @@ var qt = {
|
|
|
453
465
|
"onUpdate:visible": { type: Function },
|
|
454
466
|
visible: { type: Boolean }
|
|
455
467
|
}, {
|
|
456
|
-
...
|
|
468
|
+
...rn,
|
|
457
469
|
attach: "body",
|
|
458
|
-
closeBtn: () =>
|
|
470
|
+
closeBtn: () => rn.closeBtn,
|
|
459
471
|
showInAttachedElement: !1
|
|
460
472
|
}),
|
|
461
473
|
setup(e) {
|
|
@@ -473,43 +485,43 @@ var qt = {
|
|
|
473
485
|
ref: i
|
|
474
486
|
}), e.$slots))));
|
|
475
487
|
}
|
|
476
|
-
}),
|
|
488
|
+
}), on = /* @__PURE__ */ function(e) {
|
|
477
489
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
478
|
-
}(
|
|
479
|
-
function
|
|
490
|
+
}(on || {}), sn = /* @__PURE__ */ new Set();
|
|
491
|
+
function cn(e, t, n) {
|
|
480
492
|
let r = S(() => typeof t.body == "function" ? t.body(A) : t.body), i = F(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: a, stop: o } = gt(i, {
|
|
481
493
|
controls: !0,
|
|
482
494
|
initialValue: !0
|
|
483
495
|
}), s = {
|
|
484
|
-
...
|
|
496
|
+
...rn,
|
|
485
497
|
closeWhenCloseAll: !0,
|
|
486
498
|
...t ?? {},
|
|
487
|
-
body: () => A(
|
|
499
|
+
body: () => A(Pr, {}, { default: () => r.value })
|
|
488
500
|
}, c, l = {
|
|
489
501
|
...s,
|
|
490
502
|
onClosed: () => {
|
|
491
|
-
i.value !== null && a.value && i.value.focus(), o(), s.onClosed?.(),
|
|
503
|
+
i.value !== null && a.value && i.value.focus(), o(), s.onClosed?.(), sn.delete(c);
|
|
492
504
|
}
|
|
493
505
|
};
|
|
494
506
|
delete l.closeWhenCloseAll;
|
|
495
507
|
let u = m();
|
|
496
|
-
return c = e === void 0 ? Ye(l, n ?? u) : Ye[e](l, n ?? u), s.closeWhenCloseAll &&
|
|
508
|
+
return c = e === void 0 ? Ye(l, n ?? u) : Ye[e](l, n ?? u), s.closeWhenCloseAll && sn.add(c), c;
|
|
497
509
|
}
|
|
498
|
-
var
|
|
499
|
-
return
|
|
510
|
+
var ln = function(...e) {
|
|
511
|
+
return cn(void 0, ...e);
|
|
500
512
|
};
|
|
501
|
-
Object.values(
|
|
502
|
-
|
|
503
|
-
|
|
513
|
+
Object.values(on).forEach((e) => {
|
|
514
|
+
ln[e] = e === "closeAll" ? () => {
|
|
515
|
+
sn.forEach((e) => {
|
|
504
516
|
e.hide();
|
|
505
517
|
});
|
|
506
|
-
} : (...t) =>
|
|
518
|
+
} : (...t) => cn(e, ...t);
|
|
507
519
|
});
|
|
508
520
|
// ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
509
521
|
var H = (e, t) => {
|
|
510
522
|
let n = { ...typeof e == "string" ? {} : e };
|
|
511
523
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
512
|
-
let a =
|
|
524
|
+
let a = ln(typeof e == "string" ? {
|
|
513
525
|
body: e,
|
|
514
526
|
onConfirm: () => {
|
|
515
527
|
a.hide(), r();
|
|
@@ -534,7 +546,7 @@ var H = (e, t) => {
|
|
|
534
546
|
});
|
|
535
547
|
};
|
|
536
548
|
// ../../packages/dlzn-ui/store/modules/common.ts
|
|
537
|
-
function
|
|
549
|
+
function un() {
|
|
538
550
|
return VITE_APP_ID === "1" ? q.Get(`yq/oemConfig/getByDomain/${window.location.hostname}`, {
|
|
539
551
|
meta: { useToken: !1 },
|
|
540
552
|
transform(e) {
|
|
@@ -565,7 +577,7 @@ var U = Ct("common", () => {
|
|
|
565
577
|
e && (_().value = e);
|
|
566
578
|
}), _t(S(() => n.value.logo || "/favicon.ico"));
|
|
567
579
|
function r() {
|
|
568
|
-
|
|
580
|
+
un().then((e) => {
|
|
569
581
|
n.value = e;
|
|
570
582
|
}).catch((e) => {
|
|
571
583
|
n.value = {
|
|
@@ -596,7 +608,7 @@ var U = Ct("common", () => {
|
|
|
596
608
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
597
609
|
}
|
|
598
610
|
function i(t, n) {
|
|
599
|
-
let r = xt(n), i = e.value.findIndex((e) => e.name === r.name ||
|
|
611
|
+
let r = xt(n), i = e.value.findIndex((e) => e.name === r.name || Yn(e.name).meta.title === Yn(r.name).meta.title);
|
|
600
612
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
601
613
|
let n = e.value.findIndex((e) => e.name === t);
|
|
602
614
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -626,16 +638,16 @@ var U = Ct("common", () => {
|
|
|
626
638
|
};
|
|
627
639
|
}, { persist: { pick: ["recentRouters"] } });
|
|
628
640
|
// ../../packages/dlzn-ui/store/modules/router.ts
|
|
629
|
-
function
|
|
641
|
+
function dn() {
|
|
630
642
|
return q.Get("getRouters", { meta: {
|
|
631
643
|
useFailMsg: "获取用户路由失败",
|
|
632
644
|
useLoading: "正在获取用户路由..."
|
|
633
645
|
} });
|
|
634
646
|
}
|
|
635
|
-
function
|
|
647
|
+
function fn(e) {
|
|
636
648
|
return e.children !== void 0 || e.component !== void 0;
|
|
637
649
|
}
|
|
638
|
-
function
|
|
650
|
+
function pn(e) {
|
|
639
651
|
let t = [];
|
|
640
652
|
return e.forEach((e) => {
|
|
641
653
|
e.path === "/" ? t.push({
|
|
@@ -644,7 +656,7 @@ function nn(e) {
|
|
|
644
656
|
}) : t.push(e);
|
|
645
657
|
}), t;
|
|
646
658
|
}
|
|
647
|
-
function
|
|
659
|
+
function mn(e) {
|
|
648
660
|
let t = (e, n) => {
|
|
649
661
|
let r = [];
|
|
650
662
|
return e.forEach((e) => {
|
|
@@ -668,12 +680,12 @@ function rn(e) {
|
|
|
668
680
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
669
681
|
}
|
|
670
682
|
}
|
|
671
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
683
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = vn(e)), fn(i) && r.push(i);
|
|
672
684
|
}), r;
|
|
673
|
-
}, n =
|
|
685
|
+
}, n = Jn();
|
|
674
686
|
return n.children.push(...e), t([n], null);
|
|
675
687
|
}
|
|
676
|
-
function
|
|
688
|
+
function hn(e) {
|
|
677
689
|
let t = (e) => {
|
|
678
690
|
let n = [...e], r = n.length;
|
|
679
691
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -686,36 +698,36 @@ function an(e) {
|
|
|
686
698
|
};
|
|
687
699
|
return t(e);
|
|
688
700
|
}
|
|
689
|
-
var
|
|
690
|
-
function
|
|
701
|
+
var gn = [];
|
|
702
|
+
function _n(e) {
|
|
691
703
|
return `./${e.split("___")[0]}.vue`;
|
|
692
704
|
}
|
|
693
|
-
function
|
|
705
|
+
function vn(e) {
|
|
694
706
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
695
|
-
let t = e.component, n = typeof t == "string" ? te[
|
|
707
|
+
let t = e.component, n = typeof t == "string" ? te[_n(t)] : t;
|
|
696
708
|
if (n === void 0) {
|
|
697
|
-
let e = `路由组件${
|
|
709
|
+
let e = `路由组件${_n(t)}不存在`;
|
|
698
710
|
return console.error(e), h["./NotFound.vue"];
|
|
699
711
|
}
|
|
700
|
-
return typeof t == "string" &&
|
|
712
|
+
return typeof t == "string" && gn.push(_n(t)), () => n().then((t) => ({
|
|
701
713
|
...t.default,
|
|
702
714
|
name: e.name
|
|
703
715
|
}));
|
|
704
716
|
}
|
|
705
717
|
return e.component;
|
|
706
718
|
}
|
|
707
|
-
var
|
|
719
|
+
var yn = Ct("router", () => {
|
|
708
720
|
let e = F([]), t = kt(), n = Q();
|
|
709
721
|
async function r() {
|
|
710
|
-
let r = await
|
|
722
|
+
let r = await dn();
|
|
711
723
|
VITE_MODE === "development" && n.isAdmin && fetch("/__dev__/save-folder-alias", {
|
|
712
724
|
body: JSON.stringify(r),
|
|
713
725
|
headers: { "Content-Type": "application/json" },
|
|
714
726
|
method: "POST"
|
|
715
727
|
}).catch((e) => {
|
|
716
728
|
console.warn("[dev-save-folder-alias] 写入本地 json 失败", e);
|
|
717
|
-
}),
|
|
718
|
-
if (!
|
|
729
|
+
}), gn.length = 0, e.value = we(hn(mn(pn(r)))), n.isAdmin && Object.keys(te).forEach((e) => {
|
|
730
|
+
if (!gn.includes(e) && ![
|
|
719
731
|
"./tool",
|
|
720
732
|
"./system",
|
|
721
733
|
"./monitor"
|
|
@@ -737,10 +749,10 @@ var ln = Ct("router", () => {
|
|
|
737
749
|
getRouters: r,
|
|
738
750
|
routersRaw: e
|
|
739
751
|
};
|
|
740
|
-
}),
|
|
752
|
+
}), bn = { class: "ml-2! flex items-center" }, xn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
741
753
|
__name: "Aside",
|
|
742
754
|
setup(e) {
|
|
743
|
-
let t = V(), n = U(), r = S(() => n.appInfo.appName), i =
|
|
755
|
+
let t = V(), n = U(), r = S(() => n.appInfo.appName), i = yn(), a = F([]);
|
|
744
756
|
z(() => t.name, () => {
|
|
745
757
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
746
758
|
a.value.includes(e) || a.value.push(e);
|
|
@@ -756,7 +768,7 @@ var ln = Ct("router", () => {
|
|
|
756
768
|
class: "w-full!",
|
|
757
769
|
value: o.value
|
|
758
770
|
}, {
|
|
759
|
-
logo: B(() => [be("div",
|
|
771
|
+
logo: B(() => [be("div", bn, [D(R(y), {
|
|
760
772
|
class: "logo",
|
|
761
773
|
src: s.value,
|
|
762
774
|
style: {
|
|
@@ -773,7 +785,7 @@ var ln = Ct("router", () => {
|
|
|
773
785
|
_: 1
|
|
774
786
|
}, 8, ["expanded", "value"]));
|
|
775
787
|
}
|
|
776
|
-
}), [["__scopeId", "data-v-637195ec"]]),
|
|
788
|
+
}), [["__scopeId", "data-v-637195ec"]]), Sn = /* @__PURE__ */ O({
|
|
777
789
|
__name: "Breadcrumb",
|
|
778
790
|
setup(e, { expose: t }) {
|
|
779
791
|
let n = V(), r = kt(), i = W(), a = S(() => {
|
|
@@ -804,8 +816,8 @@ var ln = Ct("router", () => {
|
|
|
804
816
|
_: 1
|
|
805
817
|
})) : w("v-if", !0);
|
|
806
818
|
}
|
|
807
|
-
}),
|
|
808
|
-
function
|
|
819
|
+
}), Cn = /* @__PURE__ */ new Map();
|
|
820
|
+
function wn(e) {
|
|
809
821
|
let t = q.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
810
822
|
cssClass: e.cssClass,
|
|
811
823
|
dictType: e.dictType,
|
|
@@ -814,111 +826,111 @@ function mn(e) {
|
|
|
814
826
|
value: e.dictValue
|
|
815
827
|
})));
|
|
816
828
|
e.forEach((e) => {
|
|
817
|
-
|
|
829
|
+
Cn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
818
830
|
});
|
|
819
831
|
}
|
|
820
|
-
var
|
|
821
|
-
function
|
|
822
|
-
return
|
|
832
|
+
var Tn = [];
|
|
833
|
+
function En(e) {
|
|
834
|
+
return Tn.includes(e) || Tn.push(e), new Promise((t) => {
|
|
823
835
|
setTimeout(() => {
|
|
824
|
-
let n =
|
|
825
|
-
n.length > 0 &&
|
|
836
|
+
let n = Tn.filter((e) => !Cn.has(e));
|
|
837
|
+
n.length > 0 && wn(n), Tn.length = 0, Cn.get(e).then((e) => {
|
|
826
838
|
t(e);
|
|
827
839
|
});
|
|
828
840
|
});
|
|
829
841
|
});
|
|
830
842
|
}
|
|
831
843
|
var G = /* @__PURE__ */ new Map();
|
|
832
|
-
function
|
|
833
|
-
|
|
844
|
+
function Dn() {
|
|
845
|
+
Tn.length = 0, Cn.clear(), G.clear();
|
|
834
846
|
}
|
|
835
|
-
function
|
|
836
|
-
let n =
|
|
837
|
-
return t === void 0 ?
|
|
847
|
+
function On(e, t) {
|
|
848
|
+
let n = kn(e);
|
|
849
|
+
return t === void 0 ? sr(n) : sr(n, t);
|
|
838
850
|
}
|
|
839
|
-
function
|
|
851
|
+
function kn(e, t) {
|
|
840
852
|
let n;
|
|
841
|
-
return G.has(e) ? n = G.get(e) : (n = F([]), G.set(e, n),
|
|
853
|
+
return G.has(e) ? n = G.get(e) : (n = F([]), G.set(e, n), En(e).then((e) => {
|
|
842
854
|
n.value = e;
|
|
843
855
|
})), S(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
844
856
|
}
|
|
845
|
-
function
|
|
846
|
-
|
|
857
|
+
function An(e) {
|
|
858
|
+
Cn.delete(e), G.has(e) && En(e).then((t) => {
|
|
847
859
|
G.get(e).value = t;
|
|
848
860
|
});
|
|
849
861
|
}
|
|
850
862
|
// ../../packages/dlzn-ui/hooks/useSysUser/index.ts
|
|
851
|
-
var
|
|
852
|
-
function
|
|
863
|
+
var jn = /* @__PURE__ */ new Map();
|
|
864
|
+
function Mn(e) {
|
|
853
865
|
let t = q.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
854
866
|
...e,
|
|
855
867
|
label: e.userName,
|
|
856
868
|
value: e.userId
|
|
857
869
|
})));
|
|
858
870
|
e.forEach((e) => {
|
|
859
|
-
|
|
871
|
+
jn.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
860
872
|
});
|
|
861
873
|
}
|
|
862
|
-
var
|
|
863
|
-
function
|
|
864
|
-
return
|
|
874
|
+
var Nn = [];
|
|
875
|
+
function Pn(e) {
|
|
876
|
+
return Nn.includes(e) || Nn.push(e), new Promise((t) => {
|
|
865
877
|
setTimeout(() => {
|
|
866
|
-
let n =
|
|
867
|
-
n.length > 0 &&
|
|
878
|
+
let n = Nn.filter((e) => !jn.has(e));
|
|
879
|
+
n.length > 0 && Mn(n), Nn.length = 0, jn.get(e).then((e) => {
|
|
868
880
|
t(e);
|
|
869
881
|
});
|
|
870
882
|
});
|
|
871
883
|
});
|
|
872
884
|
}
|
|
873
|
-
var
|
|
874
|
-
function
|
|
875
|
-
|
|
885
|
+
var Fn = /* @__PURE__ */ new Map();
|
|
886
|
+
function In() {
|
|
887
|
+
Nn.length = 0, jn.clear(), Fn.clear();
|
|
876
888
|
}
|
|
877
|
-
function
|
|
878
|
-
|
|
879
|
-
|
|
889
|
+
function Ln(e) {
|
|
890
|
+
jn.delete(e), Fn.has(e) && Pn(e).then((t) => {
|
|
891
|
+
Fn.get(e).value = t;
|
|
880
892
|
});
|
|
881
893
|
}
|
|
882
|
-
function
|
|
894
|
+
function Rn(e) {
|
|
883
895
|
let t;
|
|
884
|
-
return
|
|
896
|
+
return Fn.has(e) ? t = Fn.get(e) : (t = F(null), Fn.set(e, t), Pn(e).then((e) => {
|
|
885
897
|
t.value = e;
|
|
886
898
|
})), t;
|
|
887
899
|
}
|
|
888
900
|
// ../../packages/dlzn-ui/store/modules/login.ts
|
|
889
|
-
function
|
|
901
|
+
function zn(e) {
|
|
890
902
|
return q.Post("login", e, { meta: {
|
|
891
903
|
useLoading: "登录中...",
|
|
892
904
|
useToken: !1
|
|
893
905
|
} });
|
|
894
906
|
}
|
|
895
|
-
function
|
|
907
|
+
function Bn() {
|
|
896
908
|
return q.Post("logout", void 0, { meta: {
|
|
897
909
|
useLoading: "退出登录中...",
|
|
898
910
|
useSuccessMsg: !0
|
|
899
911
|
} });
|
|
900
912
|
}
|
|
901
|
-
var
|
|
913
|
+
var Vn = Ct("login", () => {
|
|
902
914
|
let e = F(""), t = V(), n = kt();
|
|
903
915
|
async function r(t) {
|
|
904
|
-
let n = await
|
|
916
|
+
let n = await zn(t);
|
|
905
917
|
e.value = n.token, await Q().getUserInfo();
|
|
906
918
|
}
|
|
907
919
|
function i() {
|
|
908
|
-
e.value = "", v().clear(),
|
|
920
|
+
e.value = "", v().clear(), yn().clear(), Q().clear(), Dn(), In(), lr();
|
|
909
921
|
}
|
|
910
922
|
z(() => t.name, () => {
|
|
911
923
|
t.name === "Login" && i();
|
|
912
924
|
});
|
|
913
925
|
async function a() {
|
|
914
|
-
await
|
|
926
|
+
await Bn(), await n.push({ name: "Login" }), i();
|
|
915
927
|
}
|
|
916
928
|
return {
|
|
917
929
|
login: r,
|
|
918
930
|
logout: a,
|
|
919
931
|
token: e
|
|
920
932
|
};
|
|
921
|
-
}, { persist: { pick: ["token"] } }),
|
|
933
|
+
}, { persist: { pick: ["token"] } }), Hn = { class: "flex items-center justify-between" }, Un = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
922
934
|
__name: "Header",
|
|
923
935
|
setup(e) {
|
|
924
936
|
let n = V(), r = kt(), i = Q(), a = U(), o = W();
|
|
@@ -930,7 +942,7 @@ var jn = Ct("login", () => {
|
|
|
930
942
|
}
|
|
931
943
|
let l = async (e) => {
|
|
932
944
|
let { value: t } = e;
|
|
933
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await H("确定要退出登录吗?"),
|
|
945
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await H("确定要退出登录吗?"), Vn().logout());
|
|
934
946
|
}, u = g.isMd;
|
|
935
947
|
function d(e, t) {
|
|
936
948
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
@@ -1013,7 +1025,7 @@ var jn = Ct("login", () => {
|
|
|
1013
1025
|
value: e.name,
|
|
1014
1026
|
onContextmenu: (t) => d(t, e.name)
|
|
1015
1027
|
}, {
|
|
1016
|
-
default: B(() => [be("div",
|
|
1028
|
+
default: B(() => [be("div", Hn, [be("span", null, L(R(Yn)(e.name).meta.title), 1), R(o).recentRouters.length > 1 ? (P(), C(R($), {
|
|
1017
1029
|
key: 0,
|
|
1018
1030
|
class: "ml-1!",
|
|
1019
1031
|
shape: "square",
|
|
@@ -1034,10 +1046,10 @@ var jn = Ct("login", () => {
|
|
|
1034
1046
|
_: 1
|
|
1035
1047
|
}));
|
|
1036
1048
|
}
|
|
1037
|
-
}), [["__scopeId", "data-v-6c2c986c"]]),
|
|
1049
|
+
}), [["__scopeId", "data-v-6c2c986c"]]), Wn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
1038
1050
|
__name: "Entry",
|
|
1039
1051
|
setup(t) {
|
|
1040
|
-
let n = V(), r = U(), i = W(), a = v(), o = S(() => i.recentRouters.filter((e) =>
|
|
1052
|
+
let n = V(), r = U(), i = W(), a = v(), o = S(() => i.recentRouters.filter((e) => Yn(e.name).meta.noCache === !1).map((e) => e.name)), s = ze("breadcrumb"), c = S(() => (s.value?.items.length ?? 0) > 0), l = S(() => g.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), u = g.isMd, d = ze("contentRef"), { height: f } = ht(d);
|
|
1041
1053
|
function p({ size: e }) {
|
|
1042
1054
|
r.drawerSize = e;
|
|
1043
1055
|
}
|
|
@@ -1052,7 +1064,7 @@ var jn = Ct("login", () => {
|
|
|
1052
1064
|
class: "h-full"
|
|
1053
1065
|
}, {
|
|
1054
1066
|
default: B(() => [
|
|
1055
|
-
D(
|
|
1067
|
+
D(Un),
|
|
1056
1068
|
D(R(Xe), {
|
|
1057
1069
|
visible: R(r).drawerOpen,
|
|
1058
1070
|
"onUpdate:visible": n[0] ||= (e) => R(r).drawerOpen = e,
|
|
@@ -1067,7 +1079,7 @@ var jn = Ct("login", () => {
|
|
|
1067
1079
|
},
|
|
1068
1080
|
onSizeDragEnd: p
|
|
1069
1081
|
}, {
|
|
1070
|
-
default: B(() => [D(
|
|
1082
|
+
default: B(() => [D(xn, { class: "no_drawer_body_padding" })]),
|
|
1071
1083
|
_: 1
|
|
1072
1084
|
}, 8, [
|
|
1073
1085
|
"visible",
|
|
@@ -1091,7 +1103,7 @@ var jn = Ct("login", () => {
|
|
|
1091
1103
|
minHeight: `${Math.max(R(f), 438)}px`
|
|
1092
1104
|
}
|
|
1093
1105
|
}, {
|
|
1094
|
-
default: B(() => [D(
|
|
1106
|
+
default: B(() => [D(Sn, { ref: "breadcrumb" }, null, 512), D(i, null, {
|
|
1095
1107
|
default: B(({ Component: e }) => [(P(), C(ye, {
|
|
1096
1108
|
exclude: R(a).excludeKPname,
|
|
1097
1109
|
include: o.value
|
|
@@ -1107,8 +1119,8 @@ var jn = Ct("login", () => {
|
|
|
1107
1119
|
}));
|
|
1108
1120
|
};
|
|
1109
1121
|
}
|
|
1110
|
-
}), [["__scopeId", "data-v-de5cbc76"]]),
|
|
1111
|
-
function
|
|
1122
|
+
}), [["__scopeId", "data-v-de5cbc76"]]), Gn = /* @__PURE__ */ new Set();
|
|
1123
|
+
function Kn(e, t) {
|
|
1112
1124
|
let n = S(() => typeof e.body == "function" ? e.body(A) : e.body), r = {
|
|
1113
1125
|
attach: "#app",
|
|
1114
1126
|
closeOnEscKeydown: !1,
|
|
@@ -1119,25 +1131,25 @@ function In(e, t) {
|
|
|
1119
1131
|
lazy: !0,
|
|
1120
1132
|
sizeDraggable: !0,
|
|
1121
1133
|
...e ?? {},
|
|
1122
|
-
body: () => A(
|
|
1134
|
+
body: () => A(Pr, {}, { default: () => n.value })
|
|
1123
1135
|
}, i, a = {
|
|
1124
1136
|
...r,
|
|
1125
1137
|
onClose: (e) => {
|
|
1126
|
-
r.onClose?.(e),
|
|
1138
|
+
r.onClose?.(e), Gn.delete(i);
|
|
1127
1139
|
}
|
|
1128
1140
|
};
|
|
1129
|
-
return delete a.closeWhenCloseAll, i = Ze(a, t ?? m()), r.closeWhenCloseAll &&
|
|
1141
|
+
return delete a.closeWhenCloseAll, i = Ze(a, t ?? m()), r.closeWhenCloseAll && Gn.add(i), i;
|
|
1130
1142
|
}
|
|
1131
|
-
var
|
|
1132
|
-
return
|
|
1143
|
+
var qn = function(...e) {
|
|
1144
|
+
return Kn(...e);
|
|
1133
1145
|
};
|
|
1134
|
-
|
|
1135
|
-
|
|
1146
|
+
qn.closeAll = () => {
|
|
1147
|
+
Gn.forEach((e) => {
|
|
1136
1148
|
e.hide?.();
|
|
1137
1149
|
});
|
|
1138
1150
|
};
|
|
1139
1151
|
// ../../packages/dlzn-ui/router/index.ts
|
|
1140
|
-
function
|
|
1152
|
+
function Jn() {
|
|
1141
1153
|
return {
|
|
1142
1154
|
children: [{
|
|
1143
1155
|
children: [{
|
|
@@ -1165,7 +1177,7 @@ function Rn() {
|
|
|
1165
1177
|
name: "Home",
|
|
1166
1178
|
path: "home"
|
|
1167
1179
|
}],
|
|
1168
|
-
component:
|
|
1180
|
+
component: Wn,
|
|
1169
1181
|
name: "Index",
|
|
1170
1182
|
path: "/"
|
|
1171
1183
|
};
|
|
@@ -1173,7 +1185,7 @@ function Rn() {
|
|
|
1173
1185
|
var K = Et({
|
|
1174
1186
|
history: Dt(VITE_BASE_URL),
|
|
1175
1187
|
routes: [
|
|
1176
|
-
|
|
1188
|
+
Jn(),
|
|
1177
1189
|
{
|
|
1178
1190
|
component: h["./Login.vue"],
|
|
1179
1191
|
meta: {
|
|
@@ -1218,12 +1230,12 @@ var K = Et({
|
|
|
1218
1230
|
strict: !0
|
|
1219
1231
|
});
|
|
1220
1232
|
K.beforeEach(async (e) => {
|
|
1221
|
-
if (e.query._fromLeftTree === "true" && v().add(e.name), !["Login", "Register"].includes(e.name)) return
|
|
1233
|
+
if (e.query._fromLeftTree === "true" && v().add(e.name), !["Login", "Register"].includes(e.name)) return Vn().token === "" ? { name: "Login" } : yn().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), K.resolve({
|
|
1222
1234
|
path: e.path,
|
|
1223
1235
|
query: e.query
|
|
1224
1236
|
}));
|
|
1225
1237
|
}), K.afterEach((e, t, n) => {
|
|
1226
|
-
|
|
1238
|
+
ln.closeAll(), qn.closeAll();
|
|
1227
1239
|
let { meta: r, name: a } = e, { fullScreen: o, parentName: s, title: c } = r;
|
|
1228
1240
|
document.title = c || U().appInfo.appName;
|
|
1229
1241
|
let l = W();
|
|
@@ -1240,27 +1252,27 @@ K.beforeEach(async (e) => {
|
|
|
1240
1252
|
}
|
|
1241
1253
|
v().remove(a), VITE_MODE === "development" && (Ot(n, Tt.aborted) ? i.info("导航被中断") : Ot(n, Tt.cancelled) ? i.info("导航被取消,因为有一个新的导航") : Ot(n, Tt.duplicated) && i.info("导航被阻止,因为我们已经在目标位置了"));
|
|
1242
1254
|
});
|
|
1243
|
-
function
|
|
1255
|
+
function Yn(e) {
|
|
1244
1256
|
if (K.hasRoute(e)) return K.getRoutes().find((t) => t.name === e);
|
|
1245
1257
|
}
|
|
1246
1258
|
// ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
1247
|
-
var
|
|
1248
|
-
function
|
|
1259
|
+
var Xn = 15e3, Zn = "网络错误,请稍后再试";
|
|
1260
|
+
function Qn(e, t = !1) {
|
|
1249
1261
|
let n = {};
|
|
1250
1262
|
return Object.keys(e).forEach((r) => {
|
|
1251
1263
|
(!t || l(e[r])) && (n[r] = e[r]);
|
|
1252
1264
|
}), n;
|
|
1253
1265
|
}
|
|
1254
|
-
function
|
|
1266
|
+
function $n(e, t = !0) {
|
|
1255
1267
|
let n = {};
|
|
1256
1268
|
return Object.keys(e).forEach((r) => {
|
|
1257
1269
|
(!t || l(e[r])) && (n[r] = e[r]);
|
|
1258
1270
|
}), n;
|
|
1259
1271
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return new URLSearchParams(
|
|
1272
|
+
function er(e, t = !0) {
|
|
1273
|
+
return new URLSearchParams($n(e, t)).toString();
|
|
1262
1274
|
}
|
|
1263
|
-
function
|
|
1275
|
+
function tr(e) {
|
|
1264
1276
|
let { data: t, response: n, useDownload: r } = e;
|
|
1265
1277
|
if (typeof r == "string") J(t, r);
|
|
1266
1278
|
else {
|
|
@@ -1292,18 +1304,18 @@ var q = At({
|
|
|
1292
1304
|
t !== void 0 && await t(e), e.config.credentials = e.config.credentials ?? "omit";
|
|
1293
1305
|
let [u, ...d] = VITE_API_PROXY_PREFIX_ARRAY;
|
|
1294
1306
|
if (!e.url.startsWith("http") && !d.some((t) => Nt.join("/", e.url).startsWith(Nt.join("/", t, "/"))) && (e.url = Nt.join(u, e.url)), o || U().requestActive(), l) {
|
|
1295
|
-
let t =
|
|
1307
|
+
let t = Vn();
|
|
1296
1308
|
t.token ? e.config.headers.Authorization = t.token : e.abort();
|
|
1297
1309
|
}
|
|
1298
1310
|
s !== !1 && r.show(s === !0 ? void 0 : s);
|
|
1299
1311
|
let f = e.config.params;
|
|
1300
|
-
if (typeof f != "string" && (e.config.params =
|
|
1312
|
+
if (typeof f != "string" && (e.config.params = er(f, i)), St(e.data) && (e.data = Qn(e.data, n)), a) {
|
|
1301
1313
|
let t = new FormData();
|
|
1302
1314
|
Object.keys(e.data).forEach((n) => {
|
|
1303
1315
|
t.append(n, e.data[n]);
|
|
1304
1316
|
}), e.data = t;
|
|
1305
1317
|
}
|
|
1306
|
-
e.config.timeout ===
|
|
1318
|
+
e.config.timeout === Xn && (a || e.data instanceof FormData || c) && (e.config.timeout = 0);
|
|
1307
1319
|
},
|
|
1308
1320
|
cacheFor: null,
|
|
1309
1321
|
requestAdapter: jt(),
|
|
@@ -1318,7 +1330,7 @@ var q = At({
|
|
|
1318
1330
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1319
1331
|
if (t.toLowerCase().includes("timeout")) return n && i.error("请求超时"), Promise.reject(e);
|
|
1320
1332
|
}
|
|
1321
|
-
return n && i.error(
|
|
1333
|
+
return n && i.error(Zn), Promise.reject(e);
|
|
1322
1334
|
},
|
|
1323
1335
|
onSuccess: async (e, t) => {
|
|
1324
1336
|
if (typeof e == "string") return e;
|
|
@@ -1329,7 +1341,7 @@ var q = At({
|
|
|
1329
1341
|
403: "当前操作没有权限",
|
|
1330
1342
|
404: "访问资源不存在",
|
|
1331
1343
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1332
|
-
}[m] ??
|
|
1344
|
+
}[m] ?? Zn;
|
|
1333
1345
|
i.error(e);
|
|
1334
1346
|
}
|
|
1335
1347
|
return Promise.reject(e);
|
|
@@ -1341,7 +1353,7 @@ var q = At({
|
|
|
1341
1353
|
} catch (e) {
|
|
1342
1354
|
return p.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1343
1355
|
}
|
|
1344
|
-
return r !== !1 &&
|
|
1356
|
+
return r !== !1 && tr({
|
|
1345
1357
|
data: t,
|
|
1346
1358
|
response: e,
|
|
1347
1359
|
useDownload: r
|
|
@@ -1366,7 +1378,7 @@ var q = At({
|
|
|
1366
1378
|
let { code: t, data: s, msg: l } = h;
|
|
1367
1379
|
if (t >= 400) {
|
|
1368
1380
|
if (t === 600) {
|
|
1369
|
-
if (
|
|
1381
|
+
if (or(l).then((e) => {
|
|
1370
1382
|
H({
|
|
1371
1383
|
body: () => A("div", { innerHTML: e }),
|
|
1372
1384
|
cancelBtn: null
|
|
@@ -1381,7 +1393,7 @@ var q = At({
|
|
|
1381
1393
|
data: s,
|
|
1382
1394
|
msg: l
|
|
1383
1395
|
});
|
|
1384
|
-
return a === void 0 ? (r !== !1 && (typeof r == "string" ?
|
|
1396
|
+
return a === void 0 ? (r !== !1 && (typeof r == "string" ? tr({
|
|
1385
1397
|
data: s,
|
|
1386
1398
|
response: e,
|
|
1387
1399
|
useDownload: r
|
|
@@ -1393,24 +1405,24 @@ var q = At({
|
|
|
1393
1405
|
},
|
|
1394
1406
|
shareRequest: !1,
|
|
1395
1407
|
statesHook: Mt,
|
|
1396
|
-
timeout:
|
|
1408
|
+
timeout: Xn
|
|
1397
1409
|
});
|
|
1398
1410
|
// ../../packages/dlzn-ui/utils/tool.ts
|
|
1399
|
-
async function
|
|
1411
|
+
async function nr(e, t) {
|
|
1400
1412
|
let { default: n } = await import("crypto-js"), r = n.enc.Utf8.parse(t);
|
|
1401
1413
|
return n.AES.decrypt(e, r, {
|
|
1402
1414
|
mode: n.mode.ECB,
|
|
1403
1415
|
padding: n.pad.Pkcs7
|
|
1404
1416
|
}).toString(n.enc.Utf8);
|
|
1405
1417
|
}
|
|
1406
|
-
async function
|
|
1418
|
+
async function rr(e, t) {
|
|
1407
1419
|
let { default: n } = await import("crypto-js"), r = n.enc.Utf8.parse(t), i = n.enc.Utf8.parse(e);
|
|
1408
1420
|
return n.AES.encrypt(i, r, {
|
|
1409
1421
|
mode: n.mode.ECB,
|
|
1410
1422
|
padding: n.pad.Pkcs7
|
|
1411
1423
|
}).toString();
|
|
1412
1424
|
}
|
|
1413
|
-
async function
|
|
1425
|
+
async function ir(e, t) {
|
|
1414
1426
|
let n = e.map((e) => new Promise((t) => {
|
|
1415
1427
|
e.source instanceof Blob ? t({
|
|
1416
1428
|
blob: e.source,
|
|
@@ -1425,18 +1437,18 @@ async function Jn(e, t) {
|
|
|
1425
1437
|
});
|
|
1426
1438
|
});
|
|
1427
1439
|
}));
|
|
1428
|
-
return Promise.all(n).then((e) => e.length === 1 ? J(e[0].blob, e[0].name) : import("jszip").then(({ default: n }) => {
|
|
1440
|
+
return Promise.all(n).then((e) => e.length === 1 ? J(e[0].blob, e[0].name) : import("./jszip.min-CyohkHQt.mjs").then((e) => /* @__PURE__ */ Ht(e.default, 1)).then(({ default: n }) => {
|
|
1429
1441
|
let r = new n(), i = r.folder(t);
|
|
1430
1442
|
return i === null ? Promise.reject("zip文件夹创建失败,请检查zipName是否合法") : (e.forEach((e) => {
|
|
1431
1443
|
i.file(e.name, e.blob);
|
|
1432
1444
|
}), r.generateAsync({ type: "blob" }).then((e) => J(e, t)));
|
|
1433
1445
|
}));
|
|
1434
1446
|
}
|
|
1435
|
-
async function
|
|
1447
|
+
async function ar() {
|
|
1436
1448
|
let { default: e } = await import("@fingerprintjs/fingerprintjs");
|
|
1437
1449
|
return (await (await e.load()).get()).visitorId;
|
|
1438
1450
|
}
|
|
1439
|
-
async function
|
|
1451
|
+
async function or(e, t) {
|
|
1440
1452
|
let { default: n } = await import("dompurify");
|
|
1441
1453
|
return n.sanitize(e, t);
|
|
1442
1454
|
}
|
|
@@ -1445,20 +1457,20 @@ async function J(e, t, n) {
|
|
|
1445
1457
|
r(e, t, n);
|
|
1446
1458
|
}
|
|
1447
1459
|
// ../../packages/dlzn-ui/hooks/useLabel/index.ts
|
|
1448
|
-
function
|
|
1460
|
+
function sr(e, t) {
|
|
1449
1461
|
return S(() => {
|
|
1450
1462
|
if (t === void 0) return e.value.map((e) => e.label);
|
|
1451
|
-
if (Array.isArray(t)) return e.value.length === 0 ? [] :
|
|
1463
|
+
if (Array.isArray(t)) return e.value.length === 0 ? [] : nn(e.value, t);
|
|
1452
1464
|
if (e.value.length === 0) return "";
|
|
1453
1465
|
if (typeof t == "string") {
|
|
1454
1466
|
let n = t.split(",").filter(Boolean);
|
|
1455
|
-
if (n.length > 0) return
|
|
1467
|
+
if (n.length > 0) return nn(e.value, n).join(",");
|
|
1456
1468
|
}
|
|
1457
|
-
return
|
|
1469
|
+
return nn(e.value, t);
|
|
1458
1470
|
});
|
|
1459
1471
|
}
|
|
1460
1472
|
// ../../packages/dlzn-ui/hooks/useList/index.ts
|
|
1461
|
-
var
|
|
1473
|
+
var cr = {
|
|
1462
1474
|
systemDeptTree: () => q.Get("system/user/deptTree", { transform: (e) => oe(e, { fieldNamesMapping: { value: "id" } }) }),
|
|
1463
1475
|
systemMenuTree: () => q.Get("system/menu/list", { transform: (e) => ae(e.map((e) => ({
|
|
1464
1476
|
...e,
|
|
@@ -1467,30 +1479,30 @@ var Qn = {
|
|
|
1467
1479
|
})), { idKey: "value" }) }),
|
|
1468
1480
|
...wt.useListPromiseMap ?? {}
|
|
1469
1481
|
}, Y = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map();
|
|
1470
|
-
function
|
|
1482
|
+
function lr() {
|
|
1471
1483
|
Y.clear(), X.clear();
|
|
1472
1484
|
}
|
|
1473
1485
|
function Z(e) {
|
|
1474
1486
|
let t = Y.has(e) ? Y.get(e) : F([]);
|
|
1475
|
-
return Y.has(e) || Y.set(e, t), t.value.length === 0 && (X.has(e) && X.get(e) !== !1 || (X.set(e, !0),
|
|
1487
|
+
return Y.has(e) || Y.set(e, t), t.value.length === 0 && (X.has(e) && X.get(e) !== !1 || (X.set(e, !0), cr[e]().then((e) => {
|
|
1476
1488
|
t.value = e;
|
|
1477
1489
|
}).finally(() => {
|
|
1478
1490
|
X.set(e, !1);
|
|
1479
1491
|
}))), t;
|
|
1480
1492
|
}
|
|
1481
|
-
function
|
|
1493
|
+
function ur(e, t) {
|
|
1482
1494
|
let n = Z(e);
|
|
1483
|
-
return t === void 0 ?
|
|
1495
|
+
return t === void 0 ? sr(n) : sr(n, t);
|
|
1484
1496
|
}
|
|
1485
|
-
function
|
|
1486
|
-
Y.has(e) && (X.has(e) && X.get(e) !== !1 || (X.set(e, !0),
|
|
1497
|
+
function dr(e) {
|
|
1498
|
+
Y.has(e) && (X.has(e) && X.get(e) !== !1 || (X.set(e, !0), cr[e]().then((t) => {
|
|
1487
1499
|
Y.get(e).value = t;
|
|
1488
1500
|
}).finally(() => {
|
|
1489
1501
|
X.set(e, !1);
|
|
1490
1502
|
})));
|
|
1491
1503
|
}
|
|
1492
1504
|
// ../../packages/dlzn-ui/components/cascader/src/cascader.vue
|
|
1493
|
-
var
|
|
1505
|
+
var fr = /* @__PURE__ */ O({
|
|
1494
1506
|
inheritAttrs: !1,
|
|
1495
1507
|
name: "TCascader",
|
|
1496
1508
|
__name: "cascader",
|
|
@@ -1547,7 +1559,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
1547
1559
|
onFocus: { type: Function },
|
|
1548
1560
|
onPopupVisibleChange: { type: Function },
|
|
1549
1561
|
onRemove: { type: Function }
|
|
1550
|
-
},
|
|
1562
|
+
}, qt),
|
|
1551
1563
|
setup(e) {
|
|
1552
1564
|
let t = e, n = j("isFormDisabled", S(() => !1)), r = j("isFormReadonly", S(() => !1)), i = S(() => typeof t.options == "string" ? Z(t.options).value : t.options), a = S(() => {
|
|
1553
1565
|
let e = t.disabled ?? n.value, i = t.readonly ?? r.value, a = {
|
|
@@ -1567,7 +1579,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
1567
1579
|
ref: s
|
|
1568
1580
|
}), e.$slots))));
|
|
1569
1581
|
}
|
|
1570
|
-
}),
|
|
1582
|
+
}), pr = /* @__PURE__ */ O({
|
|
1571
1583
|
inheritAttrs: !1,
|
|
1572
1584
|
name: "TCheckboxGroup",
|
|
1573
1585
|
__name: "checkbox-group",
|
|
@@ -1600,7 +1612,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
1600
1612
|
}
|
|
1601
1613
|
let o = S(() => {
|
|
1602
1614
|
let e;
|
|
1603
|
-
return n.dicCode ? (n.options && p.error("TCheckboxGroup: dicCode and options cannot be used together"), e =
|
|
1615
|
+
return n.dicCode ? (n.options && p.error("TCheckboxGroup: dicCode and options cannot be used together"), e = kn(n.dicCode).value) : e = typeof n.options == "string" ? Z(n.options).value : n.options, n.showCheckAll && (e === void 0 ? p.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
1604
1616
|
checkAll: !0,
|
|
1605
1617
|
label: "全选"
|
|
1606
1618
|
})), e;
|
|
@@ -1628,7 +1640,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
1628
1640
|
ref: a
|
|
1629
1641
|
}), e.$slots))));
|
|
1630
1642
|
}
|
|
1631
|
-
}),
|
|
1643
|
+
}), mr = /* @__PURE__ */ O({
|
|
1632
1644
|
inheritAttrs: !1,
|
|
1633
1645
|
__name: "cron",
|
|
1634
1646
|
props: /*@__PURE__*/ M({
|
|
@@ -1723,7 +1735,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
1723
1735
|
}));
|
|
1724
1736
|
return (e, t) => (P(), C(R(ue), Oe(Ce(u.value)), null, 16));
|
|
1725
1737
|
}
|
|
1726
|
-
}),
|
|
1738
|
+
}), hr = /* @__PURE__ */ O({
|
|
1727
1739
|
inheritAttrs: !1,
|
|
1728
1740
|
__name: "date-picker",
|
|
1729
1741
|
props: {
|
|
@@ -2088,7 +2100,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2088
2100
|
ref: _
|
|
2089
2101
|
}, { class: `t-is-${e.status}` }), t.$slots))));
|
|
2090
2102
|
}
|
|
2091
|
-
}),
|
|
2103
|
+
}), gr = {
|
|
2092
2104
|
autoWidth: void 0,
|
|
2093
2105
|
decimalPlaces: 2,
|
|
2094
2106
|
disabled: void 0,
|
|
@@ -2096,7 +2108,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2096
2108
|
readonly: void 0,
|
|
2097
2109
|
theme: "normal",
|
|
2098
2110
|
useGrouping: !0
|
|
2099
|
-
},
|
|
2111
|
+
}, _r = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
2100
2112
|
inheritAttrs: !1,
|
|
2101
2113
|
name: "TInputNumber",
|
|
2102
2114
|
__name: "input-number",
|
|
@@ -2131,7 +2143,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2131
2143
|
onKeypress: { type: Function },
|
|
2132
2144
|
onKeyup: { type: Function },
|
|
2133
2145
|
onValidate: { type: Function }
|
|
2134
|
-
},
|
|
2146
|
+
}, gr),
|
|
2135
2147
|
emits: ["update:modelValue"],
|
|
2136
2148
|
setup(e, { emit: t }) {
|
|
2137
2149
|
let n = e, r = t, i = S(() => {
|
|
@@ -2152,7 +2164,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2152
2164
|
ref: o
|
|
2153
2165
|
}), e.$slots))));
|
|
2154
2166
|
}
|
|
2155
|
-
}), [["__scopeId", "data-v-73c206ea"]]),
|
|
2167
|
+
}), [["__scopeId", "data-v-73c206ea"]]), vr = /* @__PURE__ */ O({
|
|
2156
2168
|
inheritAttrs: !1,
|
|
2157
2169
|
name: "TRadioGroup",
|
|
2158
2170
|
__name: "radio-group",
|
|
@@ -2186,7 +2198,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2186
2198
|
function a(e) {
|
|
2187
2199
|
i.exposed = e ?? {};
|
|
2188
2200
|
}
|
|
2189
|
-
let o = S(() => n.dicCode ? (n.options && p.error("TRadioGroup: dicCode and options cannot be used together"),
|
|
2201
|
+
let o = S(() => n.dicCode ? (n.options && p.error("TRadioGroup: dicCode and options cannot be used together"), kn(n.dicCode).value) : typeof n.options == "string" ? Z(n.options).value : n.options), s = S(() => {
|
|
2190
2202
|
let e = { ...n };
|
|
2191
2203
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
2192
2204
|
e[t] === void 0 && delete e[t];
|
|
@@ -2210,7 +2222,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2210
2222
|
ref: a
|
|
2211
2223
|
}), e.$slots))));
|
|
2212
2224
|
}
|
|
2213
|
-
}),
|
|
2225
|
+
}), yr = /* @__PURE__ */ O({
|
|
2214
2226
|
inheritAttrs: !1,
|
|
2215
2227
|
name: "TRangeInput",
|
|
2216
2228
|
__name: "range-input",
|
|
@@ -2311,7 +2323,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2311
2323
|
}
|
|
2312
2324
|
}), t.$slots))));
|
|
2313
2325
|
}
|
|
2314
|
-
}),
|
|
2326
|
+
}), br = {
|
|
2315
2327
|
clearable: !0,
|
|
2316
2328
|
disabled: void 0,
|
|
2317
2329
|
filterable: void 0,
|
|
@@ -2331,7 +2343,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2331
2343
|
}),
|
|
2332
2344
|
showArrow: !0,
|
|
2333
2345
|
showCheckAll: !1
|
|
2334
|
-
},
|
|
2346
|
+
}, xr = /* @__PURE__ */ O({
|
|
2335
2347
|
inheritAttrs: !1,
|
|
2336
2348
|
name: "TSelect",
|
|
2337
2349
|
__name: "select",
|
|
@@ -2395,7 +2407,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2395
2407
|
onPopupVisibleChange: { type: Function },
|
|
2396
2408
|
onRemove: { type: Function },
|
|
2397
2409
|
onSearch: { type: Function }
|
|
2398
|
-
},
|
|
2410
|
+
}, br),
|
|
2399
2411
|
setup(e) {
|
|
2400
2412
|
let t = e, n = j("isFormDisabled", S(() => !1)), r = j("isFormReadonly", S(() => !1)), i = k();
|
|
2401
2413
|
function a(e) {
|
|
@@ -2403,7 +2415,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2403
2415
|
}
|
|
2404
2416
|
let o = S(() => {
|
|
2405
2417
|
let e;
|
|
2406
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ? Z(t.options).value : t.options : (t.options && p.error("TSelect: dicCode and options cannot be used together"), e =
|
|
2418
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? Z(t.options).value : t.options : (t.options && p.error("TSelect: dicCode and options cannot be used together"), e = kn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? p.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
2407
2419
|
checkAll: !0,
|
|
2408
2420
|
[t.keys?.label ?? "label"]: "全选"
|
|
2409
2421
|
}) : p.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
@@ -2460,7 +2472,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2460
2472
|
default: () => A(R(lt), h.value, t.$slots)
|
|
2461
2473
|
})), { key: 0 })) : (P(), C(I(A(R(lt), N(t.$attrs, h.value), t.$slots)), { key: 1 }));
|
|
2462
2474
|
}
|
|
2463
|
-
}),
|
|
2475
|
+
}), Sr = /* @__PURE__ */ O({
|
|
2464
2476
|
inheritAttrs: !1,
|
|
2465
2477
|
__name: "select-sys-user",
|
|
2466
2478
|
props: /*@__PURE__*/ M({
|
|
@@ -2552,11 +2564,11 @@ var nr = /* @__PURE__ */ O({
|
|
|
2552
2564
|
ref: l
|
|
2553
2565
|
}));
|
|
2554
2566
|
return (e, t) => (P(), C(R(fe), Oe(Ce(u.value)), {
|
|
2555
|
-
tag: B(({ value: e }) => [E(L(R(
|
|
2567
|
+
tag: B(({ value: e }) => [E(L(R(Rn)(e).value?.userName), 1)]),
|
|
2556
2568
|
_: 1
|
|
2557
2569
|
}, 16));
|
|
2558
2570
|
}
|
|
2559
|
-
}),
|
|
2571
|
+
}), Cr = {
|
|
2560
2572
|
checkable: !1,
|
|
2561
2573
|
disabled: void 0,
|
|
2562
2574
|
expandOnClickNode: void 0,
|
|
@@ -2575,7 +2587,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2575
2587
|
line: !0,
|
|
2576
2588
|
transition: !0,
|
|
2577
2589
|
valueMode: "all"
|
|
2578
|
-
},
|
|
2590
|
+
}, wr = /* @__PURE__ */ O({
|
|
2579
2591
|
inheritAttrs: !1,
|
|
2580
2592
|
name: "TTree",
|
|
2581
2593
|
__name: "tree",
|
|
@@ -2633,7 +2645,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2633
2645
|
onLoad: { type: Function },
|
|
2634
2646
|
onScroll: { type: Function },
|
|
2635
2647
|
treeStore: {}
|
|
2636
|
-
},
|
|
2648
|
+
}, Cr),
|
|
2637
2649
|
setup(e, { expose: t }) {
|
|
2638
2650
|
let n = e, r = Re(), i = S(() => {
|
|
2639
2651
|
let e = { ...n };
|
|
@@ -2649,7 +2661,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2649
2661
|
ref: o
|
|
2650
2662
|
}), e.$slots))));
|
|
2651
2663
|
}
|
|
2652
|
-
}),
|
|
2664
|
+
}), Tr = /* @__PURE__ */ O({
|
|
2653
2665
|
inheritAttrs: !1,
|
|
2654
2666
|
name: "TTreeSelect",
|
|
2655
2667
|
__name: "tree-select",
|
|
@@ -2722,10 +2734,10 @@ var nr = /* @__PURE__ */ O({
|
|
|
2722
2734
|
minCollapsedNum: e || i ? 0 : t.minCollapsedNum
|
|
2723
2735
|
};
|
|
2724
2736
|
return a.treeProps = {
|
|
2725
|
-
...
|
|
2737
|
+
...Cr,
|
|
2726
2738
|
checkable: !!t.multiple,
|
|
2727
2739
|
expandOnClickNode: !!t.multiple,
|
|
2728
|
-
icon:
|
|
2740
|
+
icon: Cr.icon(),
|
|
2729
2741
|
...a.treeProps ?? {}
|
|
2730
2742
|
}, Object.keys(a).forEach((e) => {
|
|
2731
2743
|
a[e] === void 0 && delete a[e];
|
|
@@ -2753,10 +2765,10 @@ var nr = /* @__PURE__ */ O({
|
|
|
2753
2765
|
}
|
|
2754
2766
|
}), e.$slots))));
|
|
2755
2767
|
}
|
|
2756
|
-
}),
|
|
2768
|
+
}), Er = ".xlsx,.xls", Dr = { class: "flex items-center" }, Or = {
|
|
2757
2769
|
key: 1,
|
|
2758
2770
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
2759
|
-
},
|
|
2771
|
+
}, kr = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
2760
2772
|
inheritAttrs: !1,
|
|
2761
2773
|
name: "TUpload",
|
|
2762
2774
|
__name: "upload",
|
|
@@ -2765,7 +2777,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2765
2777
|
"onUpdate:modelValue": {},
|
|
2766
2778
|
requestMethod: {},
|
|
2767
2779
|
abridgeName: {},
|
|
2768
|
-
accept: { default:
|
|
2780
|
+
accept: { default: Er },
|
|
2769
2781
|
allowUploadDuplicateFile: { type: Boolean },
|
|
2770
2782
|
autoUpload: { type: Boolean },
|
|
2771
2783
|
beforeAllFilesUpload: {},
|
|
@@ -2876,7 +2888,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2876
2888
|
fn: B((n) => [Ne(t.$slots, e, Oe(Ce(n)), void 0, !0)])
|
|
2877
2889
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
2878
2890
|
name: "trigger",
|
|
2879
|
-
fn: B(({ files: t }) => [be("div",
|
|
2891
|
+
fn: B(({ files: t }) => [be("div", Dr, [
|
|
2880
2892
|
D(R($), { theme: "primary" }, {
|
|
2881
2893
|
default: B(() => [E(L(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
2882
2894
|
_: 2
|
|
@@ -2890,12 +2902,12 @@ var nr = /* @__PURE__ */ O({
|
|
|
2890
2902
|
default: B(() => [...o[0] ||= [E("下载模板", -1)]]),
|
|
2891
2903
|
_: 1
|
|
2892
2904
|
})) : w("v-if", !0),
|
|
2893
|
-
n.tips ? (P(), T("span",
|
|
2905
|
+
n.tips ? (P(), T("span", Or, L(n.tips), 1)) : w("v-if", !0)
|
|
2894
2906
|
])]),
|
|
2895
2907
|
key: "0"
|
|
2896
2908
|
} : void 0]), 1024));
|
|
2897
2909
|
}
|
|
2898
|
-
}), [["__scopeId", "data-v-51889a3b"]]),
|
|
2910
|
+
}), [["__scopeId", "data-v-51889a3b"]]), Ar = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
2899
2911
|
inheritAttrs: !1,
|
|
2900
2912
|
name: "TForm",
|
|
2901
2913
|
__name: "form",
|
|
@@ -2923,7 +2935,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
2923
2935
|
onReset: { type: Function },
|
|
2924
2936
|
onSubmit: { type: Function },
|
|
2925
2937
|
onValidate: { type: Function }
|
|
2926
|
-
},
|
|
2938
|
+
}, Kt),
|
|
2927
2939
|
setup(e, { expose: t }) {
|
|
2928
2940
|
let n = e, { customerFormItemComponentInitialValueMap: r = /* @__PURE__ */ new Map(), customerFormItemComponentMap: a = /* @__PURE__ */ new Map() } = wt, o = k(), s = F(null), l = S(() => n.items.map((e) => {
|
|
2929
2941
|
if (typeof e.__others == "function") {
|
|
@@ -2973,25 +2985,25 @@ var nr = /* @__PURE__ */ O({
|
|
|
2973
2985
|
p.error("TForm: data is changed");
|
|
2974
2986
|
});
|
|
2975
2987
|
let d = /* @__PURE__ */ new Map(), f = {
|
|
2976
|
-
TCascader:
|
|
2988
|
+
TCascader: fr,
|
|
2977
2989
|
TCheckbox: se,
|
|
2978
|
-
TCheckboxGroup:
|
|
2990
|
+
TCheckboxGroup: pr,
|
|
2979
2991
|
TColorPicker: ce,
|
|
2980
|
-
TCron:
|
|
2981
|
-
TDatePicker:
|
|
2992
|
+
TCron: mr,
|
|
2993
|
+
TDatePicker: hr,
|
|
2982
2994
|
TInput: ue,
|
|
2983
|
-
TInputNumber:
|
|
2984
|
-
TRadioGroup:
|
|
2985
|
-
TRangeInput:
|
|
2986
|
-
TSelect:
|
|
2987
|
-
TSelectSysUser:
|
|
2995
|
+
TInputNumber: _r,
|
|
2996
|
+
TRadioGroup: vr,
|
|
2997
|
+
TRangeInput: yr,
|
|
2998
|
+
TSelect: xr,
|
|
2999
|
+
TSelectSysUser: Sr,
|
|
2988
3000
|
TSlider: pe,
|
|
2989
3001
|
TSwitch: me,
|
|
2990
3002
|
TTagInput: fe,
|
|
2991
3003
|
TTextarea: he,
|
|
2992
|
-
TTree:
|
|
2993
|
-
TTreeSelect:
|
|
2994
|
-
TUpload:
|
|
3004
|
+
TTree: wr,
|
|
3005
|
+
TTreeSelect: Tr,
|
|
3006
|
+
TUpload: kr
|
|
2995
3007
|
};
|
|
2996
3008
|
function m(e) {
|
|
2997
3009
|
return typeof e == "string" ? a.has(e) ? (d.has(e) || d.set(e, Se(a.get(e))), d.get(e)) : f[e] : ue;
|
|
@@ -3127,7 +3139,7 @@ var nr = /* @__PURE__ */ O({
|
|
|
3127
3139
|
_: 3
|
|
3128
3140
|
}, 16))], 2112));
|
|
3129
3141
|
}
|
|
3130
|
-
}), [["__scopeId", "data-v-73a5d59c"]]),
|
|
3142
|
+
}), [["__scopeId", "data-v-73a5d59c"]]), jr = /* @__PURE__ */ O({
|
|
3131
3143
|
__name: "ResetPwd",
|
|
3132
3144
|
props: { showFooter: {
|
|
3133
3145
|
type: Boolean,
|
|
@@ -3180,9 +3192,9 @@ var nr = /* @__PURE__ */ O({
|
|
|
3180
3192
|
newPassword: e.newPassword,
|
|
3181
3193
|
oldPassword: e.oldPassword
|
|
3182
3194
|
}
|
|
3183
|
-
}),
|
|
3195
|
+
}), Vn().logout();
|
|
3184
3196
|
}
|
|
3185
|
-
return t({ handleSubmit: o }), (e, t) => (P(), C(R(
|
|
3197
|
+
return t({ handleSubmit: o }), (e, t) => (P(), C(R(Ar), {
|
|
3186
3198
|
ref: "form",
|
|
3187
3199
|
items: r,
|
|
3188
3200
|
"label-align": "right",
|
|
@@ -3204,13 +3216,13 @@ var nr = /* @__PURE__ */ O({
|
|
|
3204
3216
|
}
|
|
3205
3217
|
});
|
|
3206
3218
|
// ../../packages/dlzn-ui/store/modules/user.ts
|
|
3207
|
-
function
|
|
3219
|
+
function Mr() {
|
|
3208
3220
|
return q.Get("getInfo", { meta: {
|
|
3209
3221
|
useFailMsg: "获取用户信息失败",
|
|
3210
3222
|
useLoading: "正在获取用户信息..."
|
|
3211
3223
|
} });
|
|
3212
3224
|
}
|
|
3213
|
-
var
|
|
3225
|
+
var Nr = {
|
|
3214
3226
|
admin: !1,
|
|
3215
3227
|
dept: { deptName: "" },
|
|
3216
3228
|
needChangePwd: 0,
|
|
@@ -3219,20 +3231,20 @@ var Cr = {
|
|
|
3219
3231
|
userName: "",
|
|
3220
3232
|
...wt.defaultUserInfo ?? {}
|
|
3221
3233
|
}, Q = Ct("user", () => {
|
|
3222
|
-
let e = F(xt(
|
|
3234
|
+
let e = F(xt(Nr)), t = F([]), n = F([]);
|
|
3223
3235
|
function r() {
|
|
3224
|
-
e.value = xt(
|
|
3236
|
+
e.value = xt(Nr), t.value = [], n.value = [];
|
|
3225
3237
|
}
|
|
3226
3238
|
let i = S(() => e.value.admin), a = F("");
|
|
3227
3239
|
async function o(r = !0) {
|
|
3228
|
-
let i = await
|
|
3229
|
-
e.value = i.user, a.value !== e.value.userId && W().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await
|
|
3240
|
+
let i = await Mr();
|
|
3241
|
+
e.value = i.user, a.value !== e.value.userId && W().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await yn().getRouters();
|
|
3230
3242
|
}
|
|
3231
3243
|
z(() => e.value.needChangePwd, (e) => {
|
|
3232
3244
|
e === 1 && VITE_FORCE_PWD_CHANGE && Ee(() => {
|
|
3233
3245
|
let e = F(null);
|
|
3234
3246
|
H({
|
|
3235
|
-
body: () => A(
|
|
3247
|
+
body: () => A(jr, {
|
|
3236
3248
|
labelAlign: "top",
|
|
3237
3249
|
ref: e,
|
|
3238
3250
|
showFooter: !1
|
|
@@ -3304,7 +3316,7 @@ var Cr = {
|
|
|
3304
3316
|
Object,
|
|
3305
3317
|
Array
|
|
3306
3318
|
] }
|
|
3307
|
-
},
|
|
3319
|
+
}, Gt),
|
|
3308
3320
|
setup(e) {
|
|
3309
3321
|
let i = e, a = F("");
|
|
3310
3322
|
function o() {
|
|
@@ -3465,7 +3477,7 @@ var Cr = {
|
|
|
3465
3477
|
fn: B((t) => [Ne(r.$slots, e, Oe(Ce(t)), void 0, !0)])
|
|
3466
3478
|
}))]), 1536))], 64)) : w("v-if", !0);
|
|
3467
3479
|
}
|
|
3468
|
-
}), [["__scopeId", "data-v-54ab3a55"]]),
|
|
3480
|
+
}), [["__scopeId", "data-v-54ab3a55"]]), Pr = /* @__PURE__ */ O({
|
|
3469
3481
|
name: "TProvider",
|
|
3470
3482
|
__name: "Provider",
|
|
3471
3483
|
setup(e) {
|
|
@@ -3489,7 +3501,7 @@ var Cr = {
|
|
|
3489
3501
|
} };
|
|
3490
3502
|
return (e, n) => (P(), C(R(pt), {
|
|
3491
3503
|
"empty-values": [""],
|
|
3492
|
-
locale: R(
|
|
3504
|
+
locale: R(Wt),
|
|
3493
3505
|
"value-on-clear": "",
|
|
3494
3506
|
"z-index": 5500
|
|
3495
3507
|
}, {
|
|
@@ -3501,4 +3513,4 @@ var Cr = {
|
|
|
3501
3513
|
}, 8, ["locale"]));
|
|
3502
3514
|
}
|
|
3503
3515
|
});
|
|
3504
|
-
export {
|
|
3516
|
+
export { xn as $, ir as A, K as B, lr as C, sr as D, dr as E, Qn as F, In as G, Wn as H, $n as I, Dn as J, Ln as K, er as L, or as M, J as N, nr as O, q as P, Sn as Q, Yn as R, fr as S, ur as T, Un as U, qn as V, Vn as W, kn as X, On as Y, An as Z, _r as _, Ut as _t, jr as a, ln as at, mr as b, Er as c, nn as ct, Cr as d, Xt as dt, dn as et, Sr as f, Zt as ft, vr as g, Bt as gt, yr as h, Gt as ht, Q as i, H as it, ar as j, rr as k, Tr as l, en as lt, br as m, Kt as mt, $ as n, W as nt, Ar as o, an as ot, xr as p, qt as pt, Rn as q, Mr as r, U as rt, kr as s, rn as st, Pr as t, yn as tt, wr as u, tn as ut, gr as v, Z as w, pr as x, hr as y, Jn as z };
|