dlzn-ui 2.0.52 → 2.0.54
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-CwykAGOx.css → provider-BBCGISR5.css} +1 -1
- package/chunks/{AssignUser-B11nIqo_.mjs → AssignUser-DFGKVyHA.mjs} +14 -14
- package/chunks/{BasicInfo-9WqspD1Z.mjs → BasicInfo-oYAekSwI.mjs} +1 -1
- package/chunks/{ColumnInfo-B_lgPqVS.mjs → ColumnInfo-CVSldNXs.mjs} +2 -2
- package/chunks/{Common-BVD38hp6.mjs → Common-DDWrIunx.mjs} +1 -1
- package/chunks/{Day-CHWBklI0.mjs → Day-Che8kW_B.mjs} +1 -1
- package/chunks/{DictTypeDetail-C8SPo0b_.mjs → DictTypeDetail-vPGWHXOl.mjs} +8 -8
- package/chunks/{GenInfo-Dxoe_3RM.mjs → GenInfo-BcwpyZSj.mjs} +1 -1
- package/chunks/{Hour-NaDEj833.mjs → Hour-BoXdhMMY.mjs} +1 -1
- package/chunks/{Import-BZkJuPLC.mjs → Import-BVbnDZt3.mjs} +2 -2
- package/chunks/{Index-QeguMHYR.mjs → Index-C1v5EsZk.mjs} +1 -1
- package/chunks/{Index-LNJ_79uk.mjs → Index-CnjpeIQL.mjs} +1 -1
- package/chunks/{Index-ClKOg-Wu.mjs → Index-CxEYiUa-.mjs} +1 -1
- package/chunks/{Index-CQSAs1h6.mjs → Index-xoyD_qOp.mjs} +1 -1
- package/chunks/{IndexItem-D7mOSNO6.mjs → IndexItem-BT-IQMY5.mjs} +1 -1
- package/chunks/{Log-DSKkWGbI.mjs → Log-DOEaFtk1.mjs} +11 -11
- package/chunks/{LoginBg-BharyaPx.mjs → LoginBg-YM4US_NO.mjs} +1 -1
- package/chunks/{Minute-CM6f_BSX.mjs → Minute-BJpoCyM8.mjs} +1 -1
- package/chunks/{Month-DRWusngF.mjs → Month-UU1z-xQV.mjs} +1 -1
- package/chunks/{Preview-hFTldEUR.mjs → Preview-SqQ2UnMr.mjs} +1 -1
- package/chunks/{Second-BTRO-iOb.mjs → Second-BOsQlzmK.mjs} +1 -1
- package/chunks/{SelectDept-B_9npI--.mjs → SelectDept-DJciskzT.mjs} +1 -1
- package/chunks/{SelectMenu-CB0bsNEl.mjs → SelectMenu-7XAtNOza.mjs} +1 -1
- package/chunks/{SelectUser-CZ4P-c67.mjs → SelectUser-ChPXL5SD.mjs} +2 -2
- package/chunks/{UserInfo-CT_ez2uW.mjs → UserInfo-Bzdeuht7.mjs} +7 -7
- package/chunks/{app-DNfYzQDT.mjs → app-CouSbYl9.mjs} +1 -1
- package/chunks/auto-complete-WniYblq6.mjs +77 -0
- package/chunks/{custom-page-list-v88splrD.mjs → custom-page-list-ijqPjUG8.mjs} +4 -4
- package/chunks/{custom-page-table-BheCVTlP.mjs → custom-page-table-CUlGWxoP.mjs} +2 -2
- package/chunks/{overview-MLIPTO-D.mjs → overview-ZgCAiVFV.mjs} +1 -1
- package/chunks/{page-list-BLDYBbVJ.mjs → page-list-DsgM0XRF.mjs} +3 -3
- package/chunks/{page-query-JDsWn-xy.mjs → page-query-D-9Bfc2i.mjs} +1 -1
- package/chunks/{page-table-Be4aMLTf.mjs → page-table-BNO8b2RS.mjs} +3 -3
- package/chunks/{pagination-Cck2wqel.mjs → pagination-CQP7D64K.mjs} +1 -1
- package/chunks/{provider-CDqQoKIA.mjs → provider-Bb25LOJZ.mjs} +483 -470
- package/chunks/{table-5y2fT5vf.mjs → table-v44larO2.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/auto-complete/index.d.ts +2 -0
- package/components/auto-complete/index.mjs +2 -0
- package/components/auto-complete/src/auto-complete.d.ts +12 -0
- package/components/auto-complete/src/auto-complete.mjs +2 -0
- package/components/auto-complete/src/auto-complete.vue.d.ts +10 -0
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +9 -9
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.d.ts +21 -21
- 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/src/tree.vue.d.ts +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 +48 -26
- package/layout/Home1.mjs +31 -0
- package/layout/Home1.vue.d.ts +3 -0
- package/layout/Login.mjs +2 -2
- package/layout/NotFound.mjs +1 -1
- package/layout/index.mjs +2 -0
- 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/modules/LoginBgBak.mjs +7 -1
- package/layout/profile/Index.mjs +2 -2
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/layout/vueBits/Grainient.mjs +140 -0
- package/layout/vueBits/Grainient.vue.d.ts +52 -0
- package/layout/vueBits/LightRays.vue.d.ts +1 -1
- package/layout/vueBits/Prism.vue.d.ts +5 -5
- package/main.mjs +3 -3
- package/package.json +2 -1
- package/plugins/autoImport/$alova/index.mjs +1 -1
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +1 -1
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +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/proj-template/package.json +37 -0
- package/proj-template/pnpm-workspace.yaml +0 -1
- 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 +2 -2
- package/store/modules/user.mjs +1 -1
- package/utils/index.mjs +3 -3
- package/utils/tool.d.ts +2 -0
- package/utils/tool.mjs +6 -2
- package/utils/tree.d.ts +2 -1
- package/utils/tree.mjs +8 -5
- package/views/monitor/cache/index.mjs +2 -2
- package/views/monitor/cacheList/index.mjs +2 -2
- 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 +11 -11
- package/views/system/dept/index.mjs +15 -15
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +16 -16
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +19 -19
- package/views/system/menu/utils.mjs +1 -1
- package/views/system/notice/index.mjs +6 -6
- package/views/system/post/index.mjs +6 -6
- package/views/system/role/index.mjs +36 -36
- 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 +41 -41
- package/views/tool/gen/editTable/index.mjs +13 -13
- 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 +15 -15
- package/views/tool/gen/modules/Import.mjs +1 -1
- package/views/tool/gen/modules/Preview.mjs +1 -1
- package/views/tool/job/index.mjs +26 -26
- package/views/tool/job/modules/Log.mjs +1 -1
- package/proj-template/patches/omi@7.7.13.patch +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../assets/css-Ctf0Amkf.css';import '../assets/provider-
|
|
1
|
+
import '../assets/css-Ctf0Amkf.css';import '../assets/provider-BBCGISR5.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";
|
|
@@ -11,56 +11,56 @@ import { passwordReg as o, passwordRegMessage as s } from "../constants/regs.mjs
|
|
|
11
11
|
import { isFalsy as c, isValidNumberString as l } from "../utils/boolean.mjs";
|
|
12
12
|
import "./utils-ag05P503.mjs";
|
|
13
13
|
import { stringDisplay as u } from "../utils/string.mjs";
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
14
|
+
import { sanitizeHtml as d, saveAs as f } from "../utils/tool.mjs";
|
|
15
|
+
import p from "../hooks/useLabel/index.mjs";
|
|
16
|
+
import m from "../plugins/autoImport/$msg/index.mjs";
|
|
17
|
+
import h from "../layout/index.mjs";
|
|
18
18
|
import { t as ee } from "./scrollbar-CoERe4kE.mjs";
|
|
19
19
|
import "../components/scrollbar/index.mjs";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
20
|
+
import g from "../hooks/useMQ/index.mjs";
|
|
21
|
+
import _ from "../hooks/usePrimaryColor/index.mjs";
|
|
22
|
+
import v from "../store/modules/excludeKPname.mjs";
|
|
23
23
|
import { t as te } from "./gradient-text-BAIl_tKw.mjs";
|
|
24
|
-
import { t as
|
|
24
|
+
import { t as y } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
25
25
|
import "../components/gradient-text/index.mjs";
|
|
26
|
-
import { t as
|
|
26
|
+
import { t as ne } from "./image-cancjWRE.mjs";
|
|
27
27
|
import "../components/image/index.mjs";
|
|
28
|
-
import
|
|
29
|
-
import { t as
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import { t as
|
|
28
|
+
import re from "../views/index.mjs";
|
|
29
|
+
import { t as ie } from "./MenuNode-BVu_0JxZ.mjs";
|
|
30
|
+
import ae from "../hooks/useContextMenu/index.mjs";
|
|
31
|
+
import oe, { useClearList as se } from "../hooks/useList/index.mjs";
|
|
32
|
+
import { t as ce } from "./color-picker-BVropPi4.mjs";
|
|
33
33
|
import "../components/color-picker/index.mjs";
|
|
34
|
-
import { n as
|
|
34
|
+
import { n as le, t as ue } from "./input-UQjpNb61.mjs";
|
|
35
35
|
import "../components/input/index.mjs";
|
|
36
|
-
import { t as
|
|
36
|
+
import { t as de } from "./date-picker-BaOpewZr.mjs";
|
|
37
37
|
import "../components/date-picker/index.mjs";
|
|
38
|
-
import { t as
|
|
38
|
+
import { t as fe } from "./input-number-7Y1iWPPV.mjs";
|
|
39
39
|
import "../components/input-number/index.mjs";
|
|
40
|
-
import { t as
|
|
40
|
+
import { t as pe } from "./range-input-PIfE-AxB.mjs";
|
|
41
41
|
import "../components/range-input/index.mjs";
|
|
42
|
-
import { n as
|
|
42
|
+
import { n as me, t as he } from "./tag-input-BuAFWI1F.mjs";
|
|
43
43
|
import "../components/tag-input/index.mjs";
|
|
44
|
-
import { t as
|
|
44
|
+
import { t as ge } from "./slider-DSeKLd2m.mjs";
|
|
45
45
|
import "../components/slider/index.mjs";
|
|
46
|
-
import { t as
|
|
46
|
+
import { t as _e } from "./switch-DNPmkfa_.mjs";
|
|
47
47
|
import "../components/switch/index.mjs";
|
|
48
|
-
import { t as
|
|
48
|
+
import { t as ve } from "./textarea-CYirMH7f.mjs";
|
|
49
49
|
import "../components/textarea/index.mjs";
|
|
50
|
-
import { Fragment as
|
|
51
|
-
import { Breadcrumb as
|
|
52
|
-
import { ElConfigProvider as
|
|
53
|
-
import { useElementSize as
|
|
54
|
-
import { cloneDeep as
|
|
55
|
-
import { defineStore as
|
|
56
|
-
import { createRouter as
|
|
57
|
-
import
|
|
58
|
-
import { createAlova as
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
50
|
+
import { Fragment as ye, KeepAlive as be, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as xe, createSlots as Se, createTextVNode as w, createVNode as T, defineAsyncComponent as Ce, defineComponent as E, getCurrentInstance as D, guardReactiveProps as we, h as O, inject as Te, markRaw as Ee, mergeDefaults as k, mergeProps as A, nextTick as j, normalizeClass as De, normalizeProps as M, onMounted as Oe, openBlock as N, provide as ke, reactive as Ae, ref as P, renderList as F, renderSlot as je, resolveComponent as Me, resolveDynamicComponent as I, shallowRef as Ne, toDisplayString as L, unref as R, useAttrs as Pe, useSlots as Fe, useTemplateRef as Ie, watch as z, withCtx as B, withModifiers as Le } from "vue";
|
|
51
|
+
import { Breadcrumb as Re, BreadcrumbItem as ze, Button as Be, CheckboxGroup as Ve, ConfigProvider as He, Content as Ue, DialogPlugin as We, Drawer as Ge, DrawerPlugin as Ke, Dropdown as qe, Form as Je, FormItem as Ye, HeadMenu as Xe, Header as Ze, InputAdornment as Qe, Layout as $e, Menu as et, MenuItem as tt, RadioGroup as nt, Select as rt, Tree as it, TreeSelect as at, Upload as ot } from "tdesign-vue-next";
|
|
52
|
+
import { ElConfigProvider as st } from "element-plus";
|
|
53
|
+
import { useElementSize as ct, useElementVisibility as lt, useFavicon as ut, useFocus as dt, useMutationObserver as ft, useResizeObserver as pt } from "@vueuse/core";
|
|
54
|
+
import { cloneDeep as mt, isPlainObject as ht } from "lodash-es";
|
|
55
|
+
import { defineStore as V } from "pinia";
|
|
56
|
+
import { createRouter as gt, createWebHistory as _t, useRoute as H, useRouter as U } from "vue-router";
|
|
57
|
+
import vt from "virtual:dlzn-ui/app-params";
|
|
58
|
+
import { createAlova as yt } from "alova";
|
|
59
|
+
import bt from "alova/fetch";
|
|
60
|
+
import xt from "alova/vue";
|
|
61
|
+
import St from "path-browserify";
|
|
62
62
|
//#region ../../node_modules/.pnpm/element-plus@2.14.5_vue@3.5.41/node_modules/element-plus/es/locale/lang/zh-cn.mjs
|
|
63
|
-
var
|
|
63
|
+
var Ct = {
|
|
64
64
|
name: "zh-cn",
|
|
65
65
|
el: {
|
|
66
66
|
breadcrumb: { label: "面包屑" },
|
|
@@ -241,15 +241,15 @@ var xt = {
|
|
|
241
241
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
},
|
|
244
|
+
}, wt = {
|
|
245
245
|
autoIcon: !0,
|
|
246
246
|
autoLoading: !0,
|
|
247
247
|
autoTheme: !0,
|
|
248
248
|
loading: void 0
|
|
249
|
-
},
|
|
249
|
+
}, Tt = {
|
|
250
250
|
autoLabelWidth: !0,
|
|
251
251
|
colon: !0,
|
|
252
|
-
data: () =>
|
|
252
|
+
data: () => Ae({}),
|
|
253
253
|
disabled: !1,
|
|
254
254
|
labelAlign: "top",
|
|
255
255
|
layout: "inline",
|
|
@@ -259,10 +259,84 @@ var xt = {
|
|
|
259
259
|
requiredMark: void 0,
|
|
260
260
|
resetType: "initial",
|
|
261
261
|
showErrorMessage: !0
|
|
262
|
+
}, Et = /* @__PURE__ */ function(e) {
|
|
263
|
+
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
264
|
+
}(Et || {}), Dt = /* @__PURE__ */ new Set();
|
|
265
|
+
function Ot(e, t, n) {
|
|
266
|
+
let i = b(() => typeof t.body == "function" ? t.body(O) : t.body), a = P(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: o, stop: s } = lt(a, {
|
|
267
|
+
controls: !0,
|
|
268
|
+
initialValue: !0
|
|
269
|
+
}), c = {
|
|
270
|
+
closeBtn: () => O($, {
|
|
271
|
+
icon: "mdi:close",
|
|
272
|
+
shape: "circle",
|
|
273
|
+
size: "small",
|
|
274
|
+
theme: "default",
|
|
275
|
+
variant: "base"
|
|
276
|
+
}),
|
|
277
|
+
closeOnEscKeydown: !1,
|
|
278
|
+
closeOnOverlayClick: !1,
|
|
279
|
+
closeWhenCloseAll: !0,
|
|
280
|
+
destroyOnClose: !0,
|
|
281
|
+
draggable: !0,
|
|
282
|
+
header: "提示",
|
|
283
|
+
mode: "modal",
|
|
284
|
+
placement: "center",
|
|
285
|
+
width: "fit-content",
|
|
286
|
+
...t ?? {},
|
|
287
|
+
body: () => O(In, {}, { default: () => i.value })
|
|
288
|
+
}, l, u = {
|
|
289
|
+
...c,
|
|
290
|
+
onClosed: () => {
|
|
291
|
+
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(), Dt.delete(l);
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
delete u.closeWhenCloseAll;
|
|
295
|
+
let d = r();
|
|
296
|
+
return l = e === void 0 ? We(u, n ?? d) : We[e](u, n ?? d), c.closeWhenCloseAll && Dt.add(l), l;
|
|
297
|
+
}
|
|
298
|
+
var kt = function(...e) {
|
|
299
|
+
return Ot(void 0, ...e);
|
|
300
|
+
};
|
|
301
|
+
Object.values(Et).forEach((e) => {
|
|
302
|
+
kt[e] = e === "closeAll" ? () => {
|
|
303
|
+
Dt.forEach((e) => {
|
|
304
|
+
e.hide();
|
|
305
|
+
});
|
|
306
|
+
} : (...t) => Ot(e, ...t);
|
|
307
|
+
});
|
|
308
|
+
//#endregion
|
|
309
|
+
//#region ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
310
|
+
var W = (e, t) => {
|
|
311
|
+
let n = { ...typeof e == "string" ? {} : e };
|
|
312
|
+
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
313
|
+
let a = kt(typeof e == "string" ? {
|
|
314
|
+
body: e,
|
|
315
|
+
onConfirm: () => {
|
|
316
|
+
a.hide(), r();
|
|
317
|
+
},
|
|
318
|
+
theme: "warning"
|
|
319
|
+
} : Ae({
|
|
320
|
+
...n,
|
|
321
|
+
onClose: (t) => {
|
|
322
|
+
let { trigger: n } = t;
|
|
323
|
+
n === "cancel" ? Promise.resolve(e.onCancelCallback?.()).then(() => {
|
|
324
|
+
a.hide(), e.useReject === !0 && i(/* @__PURE__ */ Error("confirm_cancel"));
|
|
325
|
+
}) : a.hide();
|
|
326
|
+
},
|
|
327
|
+
onConfirm: () => {
|
|
328
|
+
a.setConfirmLoading(!0), Promise.resolve(e.onConfirmCallback?.()).then(() => {
|
|
329
|
+
a.hide(), r();
|
|
330
|
+
}).finally(() => {
|
|
331
|
+
a.setConfirmLoading(!1);
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
}), t);
|
|
335
|
+
});
|
|
262
336
|
};
|
|
263
337
|
//#endregion
|
|
264
338
|
//#region ../../packages/dlzn-ui/store/modules/common.ts
|
|
265
|
-
function
|
|
339
|
+
function At() {
|
|
266
340
|
return VITE_APP_ID === "1" ? X.Get(`yq/oemConfig/getByDomain/${window.location.hostname}`, {
|
|
267
341
|
meta: { useToken: !1 },
|
|
268
342
|
transform(e) {
|
|
@@ -280,20 +354,20 @@ function wt() {
|
|
|
280
354
|
useToken: !1
|
|
281
355
|
} });
|
|
282
356
|
}
|
|
283
|
-
var G =
|
|
284
|
-
let e =
|
|
357
|
+
var G = V("common", () => {
|
|
358
|
+
let e = P(!0), t = P(250), n = P({
|
|
285
359
|
appName: "",
|
|
286
360
|
color: "",
|
|
287
361
|
logo: "",
|
|
288
362
|
version: ""
|
|
289
363
|
});
|
|
290
|
-
|
|
364
|
+
z(() => n.value.appName, (e) => {
|
|
291
365
|
e && (document.title = e);
|
|
292
|
-
}),
|
|
293
|
-
e && (
|
|
294
|
-
}),
|
|
366
|
+
}), z(() => n.value.color, (e) => {
|
|
367
|
+
e && (_().value = e);
|
|
368
|
+
}), ut(b(() => n.value.logo || "/favicon.ico"));
|
|
295
369
|
function r() {
|
|
296
|
-
|
|
370
|
+
At().then((e) => {
|
|
297
371
|
n.value = e;
|
|
298
372
|
}).catch((e) => {
|
|
299
373
|
n.value = {
|
|
@@ -304,7 +378,7 @@ var G = H("common", () => {
|
|
|
304
378
|
}, console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
|
|
305
379
|
});
|
|
306
380
|
}
|
|
307
|
-
let i =
|
|
381
|
+
let i = P(!0), a = null;
|
|
308
382
|
function o() {
|
|
309
383
|
a !== null && (clearTimeout(a), a = null), i.value = !1, a = setTimeout(() => {
|
|
310
384
|
i.value = !0;
|
|
@@ -318,13 +392,13 @@ var G = H("common", () => {
|
|
|
318
392
|
isRequestSleep: i,
|
|
319
393
|
requestActive: o
|
|
320
394
|
};
|
|
321
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), K =
|
|
322
|
-
let e =
|
|
395
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), K = V("recentRouters", () => {
|
|
396
|
+
let e = P([]), t = H(), n = U();
|
|
323
397
|
function r() {
|
|
324
398
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
325
399
|
}
|
|
326
400
|
function i(t, n) {
|
|
327
|
-
let r =
|
|
401
|
+
let r = mt(n), i = e.value.findIndex((e) => e.name === r.name || Y(e.name).meta.title === Y(r.name).meta.title);
|
|
328
402
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
329
403
|
let n = e.value.findIndex((e) => e.name === t);
|
|
330
404
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -355,16 +429,16 @@ var G = H("common", () => {
|
|
|
355
429
|
}, { persist: { pick: ["recentRouters"] } });
|
|
356
430
|
//#endregion
|
|
357
431
|
//#region ../../packages/dlzn-ui/store/modules/router.ts
|
|
358
|
-
function
|
|
432
|
+
function jt() {
|
|
359
433
|
return X.Get("getRouters", { meta: {
|
|
360
434
|
useFailMsg: "获取用户路由失败",
|
|
361
435
|
useLoading: "正在获取用户路由..."
|
|
362
436
|
} });
|
|
363
437
|
}
|
|
364
|
-
function
|
|
438
|
+
function Mt(e) {
|
|
365
439
|
return e.children !== void 0 || e.component !== void 0;
|
|
366
440
|
}
|
|
367
|
-
function
|
|
441
|
+
function Nt(e) {
|
|
368
442
|
let t = [];
|
|
369
443
|
return e.forEach((e) => {
|
|
370
444
|
e.path === "/" ? t.push({
|
|
@@ -373,7 +447,7 @@ function Dt(e) {
|
|
|
373
447
|
}) : t.push(e);
|
|
374
448
|
}), t;
|
|
375
449
|
}
|
|
376
|
-
function
|
|
450
|
+
function Pt(e) {
|
|
377
451
|
let t = (e, n) => {
|
|
378
452
|
let r = [];
|
|
379
453
|
return e.forEach((e) => {
|
|
@@ -397,12 +471,12 @@ function Ot(e) {
|
|
|
397
471
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
398
472
|
}
|
|
399
473
|
}
|
|
400
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
474
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = Rt(e)), Mt(i) && r.push(i);
|
|
401
475
|
}), r;
|
|
402
|
-
}, n =
|
|
476
|
+
}, n = on();
|
|
403
477
|
return n.children.push(...e), t([n], null);
|
|
404
478
|
}
|
|
405
|
-
function
|
|
479
|
+
function Ft(e) {
|
|
406
480
|
let t = (e) => {
|
|
407
481
|
let n = [...e], r = n.length;
|
|
408
482
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -415,30 +489,30 @@ function kt(e) {
|
|
|
415
489
|
};
|
|
416
490
|
return t(e);
|
|
417
491
|
}
|
|
418
|
-
var
|
|
419
|
-
function
|
|
492
|
+
var It = [];
|
|
493
|
+
function Lt(e) {
|
|
420
494
|
return `./${e.split("___")[0]}.vue`;
|
|
421
495
|
}
|
|
422
|
-
function
|
|
496
|
+
function Rt(e) {
|
|
423
497
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
424
|
-
let t = e.component, n = typeof t == "string" ?
|
|
498
|
+
let t = e.component, n = typeof t == "string" ? re[Lt(t)] : t;
|
|
425
499
|
if (n === void 0) {
|
|
426
|
-
let e = `路由组件${
|
|
427
|
-
return console.error(e),
|
|
500
|
+
let e = `路由组件${Lt(t)}不存在`;
|
|
501
|
+
return console.error(e), h["./NotFound.vue"];
|
|
428
502
|
}
|
|
429
|
-
return typeof t == "string" &&
|
|
503
|
+
return typeof t == "string" && It.push(Lt(t)), () => n().then((t) => ({
|
|
430
504
|
...t.default,
|
|
431
505
|
name: e.name
|
|
432
506
|
}));
|
|
433
507
|
}
|
|
434
508
|
return e.component;
|
|
435
509
|
}
|
|
436
|
-
var
|
|
437
|
-
let e =
|
|
510
|
+
var zt = V("router", () => {
|
|
511
|
+
let e = P([]), t = U(), n = Q();
|
|
438
512
|
async function r() {
|
|
439
|
-
let r = await
|
|
440
|
-
|
|
441
|
-
if (!
|
|
513
|
+
let r = await jt();
|
|
514
|
+
It.length = 0, e.value = Ee(Ft(Pt(Nt(r)))), n.isAdmin && Object.keys(re).forEach((e) => {
|
|
515
|
+
if (!It.includes(e)) {
|
|
442
516
|
let t = `${e} 页面对应的路由不存在`;
|
|
443
517
|
console.error(t);
|
|
444
518
|
}
|
|
@@ -456,11 +530,11 @@ var Nt = H("router", () => {
|
|
|
456
530
|
getRouters: r,
|
|
457
531
|
routersRaw: e
|
|
458
532
|
};
|
|
459
|
-
}),
|
|
533
|
+
}), Bt = { class: "ml-2! flex items-center" }, Vt = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
460
534
|
__name: "Aside",
|
|
461
535
|
setup(e) {
|
|
462
|
-
let t =
|
|
463
|
-
|
|
536
|
+
let t = H(), n = G(), r = b(() => n.appInfo.appName), i = zt(), a = P([]);
|
|
537
|
+
z(() => t.name, () => {
|
|
464
538
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
465
539
|
a.value.includes(e) || a.value.push(e);
|
|
466
540
|
});
|
|
@@ -468,34 +542,34 @@ var Nt = H("router", () => {
|
|
|
468
542
|
let o = b(() => {
|
|
469
543
|
let { hidden: e, parentName: n } = t.meta;
|
|
470
544
|
return n !== "" && e === !0 ? n : t.name;
|
|
471
|
-
}), s = b(() => n.appInfo.logo ||
|
|
472
|
-
return (e, t) => (
|
|
545
|
+
}), s = b(() => n.appInfo.logo || vt.asideTopLogoUrl);
|
|
546
|
+
return (e, t) => (N(), x(R(et), {
|
|
473
547
|
expanded: a.value,
|
|
474
548
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
475
549
|
class: "w-full!",
|
|
476
550
|
value: o.value
|
|
477
551
|
}, {
|
|
478
|
-
logo:
|
|
552
|
+
logo: B(() => [xe("div", Bt, [T(R(ne), {
|
|
479
553
|
class: "logo",
|
|
480
554
|
src: s.value,
|
|
481
555
|
style: {
|
|
482
556
|
width: "28px",
|
|
483
557
|
height: "28px"
|
|
484
558
|
}
|
|
485
|
-
}, null, 8, ["src"]), T(
|
|
559
|
+
}, null, 8, ["src"]), T(R(te), {
|
|
486
560
|
"animation-speed": 8,
|
|
487
561
|
"class-name": "ml-2 text-xl !font-bold",
|
|
488
562
|
"show-border": !1,
|
|
489
563
|
text: r.value
|
|
490
564
|
}, null, 8, ["text"])])]),
|
|
491
|
-
default:
|
|
565
|
+
default: B(() => [T(ie, { model: R(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
492
566
|
_: 1
|
|
493
567
|
}, 8, ["expanded", "value"]));
|
|
494
568
|
}
|
|
495
|
-
}), [["__scopeId", "data-v-36275803"]]),
|
|
569
|
+
}), [["__scopeId", "data-v-36275803"]]), Ht = /* @__PURE__ */ E({
|
|
496
570
|
__name: "Breadcrumb",
|
|
497
571
|
setup(e, { expose: t }) {
|
|
498
|
-
let n =
|
|
572
|
+
let n = H(), r = U(), i = K(), a = b(() => {
|
|
499
573
|
let e = n.matched.map((e) => ({
|
|
500
574
|
name: e.name,
|
|
501
575
|
title: e.meta.title
|
|
@@ -508,170 +582,96 @@ var Nt = H("router", () => {
|
|
|
508
582
|
function o(e) {
|
|
509
583
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
510
584
|
}
|
|
511
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (
|
|
585
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (N(), x(R(Re), {
|
|
512
586
|
key: 0,
|
|
513
587
|
class: "absolute top-px z-10 py-1!"
|
|
514
588
|
}, {
|
|
515
|
-
default:
|
|
589
|
+
default: B(() => [(N(!0), C(ye, null, F(a.value, (e) => (N(), x(R(ze), {
|
|
516
590
|
key: e.name,
|
|
517
591
|
disabled: e.disabled,
|
|
518
592
|
onClick: (t) => o(e.name)
|
|
519
593
|
}, {
|
|
520
|
-
default:
|
|
594
|
+
default: B(() => [w(L(e.title), 1)]),
|
|
521
595
|
_: 2
|
|
522
596
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
523
597
|
_: 1
|
|
524
598
|
})) : S("v-if", !0);
|
|
525
599
|
}
|
|
526
|
-
}),
|
|
527
|
-
|
|
528
|
-
}(Lt || {}), Rt = /* @__PURE__ */ new Set();
|
|
529
|
-
function zt(e, t, n) {
|
|
530
|
-
let i = b(() => typeof t.body == "function" ? t.body(k) : t.body), a = F(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: o, stop: s } = st(a, {
|
|
531
|
-
controls: !0,
|
|
532
|
-
initialValue: !0
|
|
533
|
-
}), c = {
|
|
534
|
-
closeBtn: () => k($, {
|
|
535
|
-
icon: "mdi:close",
|
|
536
|
-
shape: "circle",
|
|
537
|
-
size: "small",
|
|
538
|
-
theme: "default",
|
|
539
|
-
variant: "base"
|
|
540
|
-
}),
|
|
541
|
-
closeOnEscKeydown: !1,
|
|
542
|
-
closeOnOverlayClick: !1,
|
|
543
|
-
closeWhenCloseAll: !0,
|
|
544
|
-
destroyOnClose: !0,
|
|
545
|
-
draggable: !0,
|
|
546
|
-
header: "提示",
|
|
547
|
-
mode: "modal",
|
|
548
|
-
placement: "center",
|
|
549
|
-
width: "fit-content",
|
|
550
|
-
...t ?? {},
|
|
551
|
-
body: () => k(Fn, {}, { default: () => i.value })
|
|
552
|
-
}, l, u = {
|
|
553
|
-
...c,
|
|
554
|
-
onClosed: () => {
|
|
555
|
-
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(), Rt.delete(l);
|
|
556
|
-
}
|
|
557
|
-
};
|
|
558
|
-
delete u.closeWhenCloseAll;
|
|
559
|
-
let d = r();
|
|
560
|
-
return l = e === void 0 ? He(u, n ?? d) : He[e](u, n ?? d), c.closeWhenCloseAll && Rt.add(l), l;
|
|
561
|
-
}
|
|
562
|
-
var Bt = function(...e) {
|
|
563
|
-
return zt(void 0, ...e);
|
|
564
|
-
};
|
|
565
|
-
Object.values(Lt).forEach((e) => {
|
|
566
|
-
Bt[e] = e === "closeAll" ? () => {
|
|
567
|
-
Rt.forEach((e) => {
|
|
568
|
-
e.hide();
|
|
569
|
-
});
|
|
570
|
-
} : (...t) => zt(e, ...t);
|
|
571
|
-
});
|
|
572
|
-
//#endregion
|
|
573
|
-
//#region ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
574
|
-
var Vt = (e, t) => {
|
|
575
|
-
let n = { ...typeof e == "string" ? {} : e };
|
|
576
|
-
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
577
|
-
let a = Bt(typeof e == "string" ? {
|
|
578
|
-
body: e,
|
|
579
|
-
onConfirm: () => {
|
|
580
|
-
a.hide(), r();
|
|
581
|
-
},
|
|
582
|
-
theme: "warning"
|
|
583
|
-
} : Oe({
|
|
584
|
-
...n,
|
|
585
|
-
onClose: (t) => {
|
|
586
|
-
let { trigger: n } = t;
|
|
587
|
-
n === "cancel" ? Promise.resolve(e.onCancelCallback?.()).then(() => {
|
|
588
|
-
a.hide(), e.useReject === !0 && i(/* @__PURE__ */ Error("confirm_cancel"));
|
|
589
|
-
}) : a.hide();
|
|
590
|
-
},
|
|
591
|
-
onConfirm: () => {
|
|
592
|
-
a.setConfirmLoading(!0), Promise.resolve(e.onConfirmCallback?.()).then(() => {
|
|
593
|
-
a.hide(), r();
|
|
594
|
-
}).finally(() => {
|
|
595
|
-
a.setConfirmLoading(!1);
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
}), t);
|
|
599
|
-
});
|
|
600
|
-
}, Ht = /* @__PURE__ */ new Map();
|
|
601
|
-
function Ut(e) {
|
|
600
|
+
}), Ut = /* @__PURE__ */ new Map();
|
|
601
|
+
function Wt(e) {
|
|
602
602
|
let t = X.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
603
603
|
...e,
|
|
604
604
|
label: e.userName,
|
|
605
605
|
value: e.userId
|
|
606
606
|
})));
|
|
607
607
|
e.forEach((e) => {
|
|
608
|
-
|
|
608
|
+
Ut.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
|
-
var
|
|
612
|
-
function
|
|
613
|
-
return
|
|
611
|
+
var Gt = [];
|
|
612
|
+
function Kt(e) {
|
|
613
|
+
return Gt.includes(e) || Gt.push(e), new Promise((t) => {
|
|
614
614
|
setTimeout(() => {
|
|
615
|
-
let n =
|
|
616
|
-
n.length > 0 &&
|
|
615
|
+
let n = Gt.filter((e) => !Ut.has(e));
|
|
616
|
+
n.length > 0 && Wt(n), Gt.length = 0, Ut.get(e).then((e) => {
|
|
617
617
|
t(e);
|
|
618
618
|
});
|
|
619
619
|
});
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
622
|
var q = /* @__PURE__ */ new Map();
|
|
623
|
-
function
|
|
624
|
-
|
|
623
|
+
function qt() {
|
|
624
|
+
Gt.length = 0, Ut.clear(), q.clear();
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
|
|
626
|
+
function Jt(e) {
|
|
627
|
+
Ut.delete(e), q.has(e) && Kt(e).then((t) => {
|
|
628
628
|
q.get(e).value = t;
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Yt(e) {
|
|
632
632
|
let t;
|
|
633
|
-
return q.has(e) ? t = q.get(e) : (t =
|
|
633
|
+
return q.has(e) ? t = q.get(e) : (t = P(null), q.set(e, t), Kt(e).then((e) => {
|
|
634
634
|
t.value = e;
|
|
635
635
|
})), t;
|
|
636
636
|
}
|
|
637
637
|
//#endregion
|
|
638
638
|
//#region ../../packages/dlzn-ui/store/modules/login.ts
|
|
639
|
-
function
|
|
639
|
+
function Xt(e) {
|
|
640
640
|
return X.Post("login", e, { meta: {
|
|
641
641
|
useLoading: "登录中...",
|
|
642
642
|
useToken: !1
|
|
643
643
|
} });
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function Zt() {
|
|
646
646
|
return X.Post("logout", void 0, { meta: {
|
|
647
647
|
useLoading: "退出登录中...",
|
|
648
648
|
useSuccessMsg: !0
|
|
649
649
|
} });
|
|
650
650
|
}
|
|
651
|
-
var
|
|
652
|
-
let e =
|
|
651
|
+
var Qt = V("login", () => {
|
|
652
|
+
let e = P(""), t = H(), n = U();
|
|
653
653
|
async function r(t) {
|
|
654
|
-
let n = await
|
|
654
|
+
let n = await Xt(t);
|
|
655
655
|
e.value = n.token, await Q().getUserInfo();
|
|
656
656
|
}
|
|
657
657
|
function i() {
|
|
658
|
-
e.value = "",
|
|
658
|
+
e.value = "", v().clear(), zt().clear(), Q().clear(), hn(), qt(), se();
|
|
659
659
|
}
|
|
660
|
-
|
|
660
|
+
z(() => t.name, () => {
|
|
661
661
|
t.name === "Login" && i();
|
|
662
662
|
});
|
|
663
663
|
async function a() {
|
|
664
|
-
await
|
|
664
|
+
await Zt(), await n.push({ name: "Login" }), i();
|
|
665
665
|
}
|
|
666
666
|
return {
|
|
667
667
|
login: r,
|
|
668
668
|
logout: a,
|
|
669
669
|
token: e
|
|
670
670
|
};
|
|
671
|
-
}, { persist: { pick: ["token"] } }),
|
|
671
|
+
}, { persist: { pick: ["token"] } }), $t = { class: "flex items-center justify-between" }, en = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
672
672
|
__name: "Header",
|
|
673
673
|
setup(t) {
|
|
674
|
-
let n =
|
|
674
|
+
let n = H(), r = U(), i = Q(), a = G(), o = K();
|
|
675
675
|
function s(e) {
|
|
676
676
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
677
677
|
}
|
|
@@ -680,8 +680,8 @@ var Zt = H("login", () => {
|
|
|
680
680
|
}
|
|
681
681
|
let l = async (e) => {
|
|
682
682
|
let { value: t } = e;
|
|
683
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await
|
|
684
|
-
}, u =
|
|
683
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await W("确定要退出登录吗?"), Qt().logout());
|
|
684
|
+
}, u = g.isMd;
|
|
685
685
|
function d(e, t) {
|
|
686
686
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
687
687
|
o.recentRouters.length > 1 && i.push({
|
|
@@ -702,74 +702,82 @@ var Zt = H("login", () => {
|
|
|
702
702
|
onClick: () => {
|
|
703
703
|
l > s && r.push(u), o.recentRouters = o.recentRouters.slice(0, s + 1);
|
|
704
704
|
}
|
|
705
|
-
}),
|
|
705
|
+
}), ae(e, i);
|
|
706
706
|
}
|
|
707
|
-
return (t, r) => (
|
|
708
|
-
default:
|
|
707
|
+
return (t, r) => (N(), x(R(Ze), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
708
|
+
default: B(() => [T(R(Xe), {
|
|
709
709
|
"expand-type": "popup",
|
|
710
|
-
value:
|
|
710
|
+
value: R(n).name,
|
|
711
711
|
onChange: s
|
|
712
712
|
}, {
|
|
713
|
-
logo:
|
|
713
|
+
logo: B(() => [T(R($), {
|
|
714
714
|
class: "ml-0! shrink-0",
|
|
715
715
|
shape: "circle",
|
|
716
716
|
size: "large",
|
|
717
717
|
variant: "text",
|
|
718
|
-
onClick: r[0] ||= (e) =>
|
|
718
|
+
onClick: r[0] ||= (e) => R(a).drawerOpen = !R(a).drawerOpen
|
|
719
719
|
}, {
|
|
720
|
-
default:
|
|
720
|
+
default: B(() => [T(R(e), { icon: "lineicons:menu-hamburger-1" })]),
|
|
721
721
|
_: 1
|
|
722
722
|
})]),
|
|
723
|
-
operations:
|
|
723
|
+
operations: B(() => [T(R(qe), {
|
|
724
724
|
options: [{
|
|
725
725
|
content: "个人中心",
|
|
726
|
-
value: "profile"
|
|
726
|
+
value: "profile",
|
|
727
|
+
prefixIcon: () => O(R(e), {
|
|
728
|
+
icon: "material-symbols:account-circle",
|
|
729
|
+
size: "16"
|
|
730
|
+
})
|
|
727
731
|
}, {
|
|
728
732
|
content: "退出登录",
|
|
729
|
-
value: "logout"
|
|
733
|
+
value: "logout",
|
|
734
|
+
prefixIcon: () => O(R(e), {
|
|
735
|
+
icon: "material-symbols:logout",
|
|
736
|
+
size: "16"
|
|
737
|
+
})
|
|
730
738
|
}],
|
|
731
739
|
placement: "bottom",
|
|
732
740
|
trigger: "click",
|
|
733
741
|
onClick: l
|
|
734
742
|
}, {
|
|
735
|
-
default:
|
|
743
|
+
default: B(() => [R(u) ? (N(), x(R($), {
|
|
736
744
|
key: 0,
|
|
737
745
|
shape: "square",
|
|
738
746
|
variant: "text"
|
|
739
747
|
}, {
|
|
740
|
-
icon:
|
|
748
|
+
icon: B(() => [T(R(e), { icon: "material-symbols:account-circle" })]),
|
|
741
749
|
_: 1
|
|
742
|
-
})) : (
|
|
750
|
+
})) : (N(), x(R($), {
|
|
743
751
|
key: 1,
|
|
744
752
|
variant: "text"
|
|
745
753
|
}, {
|
|
746
|
-
icon:
|
|
754
|
+
icon: B(() => [T(R(e), {
|
|
747
755
|
class: "mr-2!",
|
|
748
756
|
icon: "material-symbols:account-circle"
|
|
749
757
|
})]),
|
|
750
|
-
suffix:
|
|
758
|
+
suffix: B(() => [T(R(e), {
|
|
751
759
|
icon: "icon-park-outline:down",
|
|
752
760
|
size: "18"
|
|
753
761
|
})]),
|
|
754
|
-
default:
|
|
762
|
+
default: B(() => [w(" " + L(R(i).userInfo.userName) + " ", 1)]),
|
|
755
763
|
_: 1
|
|
756
764
|
}))]),
|
|
757
765
|
_: 1
|
|
758
|
-
})]),
|
|
759
|
-
default:
|
|
766
|
+
}, 8, ["options"])]),
|
|
767
|
+
default: B(() => [(N(!0), C(ye, null, F(R(o).recentRouters, (t) => (N(), x(R(tt), {
|
|
760
768
|
key: t.name,
|
|
761
769
|
value: t.name,
|
|
762
770
|
onContextmenu: (e) => d(e, t.name)
|
|
763
771
|
}, {
|
|
764
|
-
default:
|
|
772
|
+
default: B(() => [xe("div", $t, [xe("span", null, L(R(Y)(t.name).meta.title), 1), R(o).recentRouters.length > 1 ? (N(), x(R($), {
|
|
765
773
|
key: 0,
|
|
766
774
|
class: "ml-1!",
|
|
767
775
|
shape: "square",
|
|
768
776
|
size: "small",
|
|
769
777
|
variant: "text",
|
|
770
|
-
onClick:
|
|
778
|
+
onClick: Le((e) => c(t.name), ["stop"])
|
|
771
779
|
}, {
|
|
772
|
-
icon:
|
|
780
|
+
icon: B(() => [T(R(e), {
|
|
773
781
|
icon: "material-symbols:close",
|
|
774
782
|
style: { "font-size": "12px !important" }
|
|
775
783
|
})]),
|
|
@@ -782,40 +790,40 @@ var Zt = H("login", () => {
|
|
|
782
790
|
_: 1
|
|
783
791
|
}));
|
|
784
792
|
}
|
|
785
|
-
}), [["__scopeId", "data-v-
|
|
793
|
+
}), [["__scopeId", "data-v-950ebb61"]]), tn = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
786
794
|
__name: "Entry",
|
|
787
795
|
setup(e) {
|
|
788
|
-
let t =
|
|
796
|
+
let t = H(), n = G(), r = K(), i = v(), a = b(() => r.recentRouters.filter((e) => Y(e.name).meta.noCache === !1).map((e) => e.name)), o = Ie("breadcrumb"), s = b(() => (o.value?.items.length ?? 0) > 0), c = b(() => g.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), l = g.isMd, u = Ie("contentRef"), { height: d } = ct(u);
|
|
789
797
|
function f({ size: e }) {
|
|
790
798
|
n.drawerSize = e;
|
|
791
799
|
}
|
|
792
800
|
let p = b(() => t.meta.fullScreen);
|
|
793
801
|
return (e, t) => {
|
|
794
|
-
let r =
|
|
795
|
-
return p.value ? (
|
|
796
|
-
default:
|
|
802
|
+
let r = Me("RouterView");
|
|
803
|
+
return p.value ? (N(), x(r, { key: 0 }, {
|
|
804
|
+
default: B(({ Component: e }) => [(N(), x(I(e)))]),
|
|
797
805
|
_: 1
|
|
798
|
-
})) : (
|
|
806
|
+
})) : (N(), x(R($e), {
|
|
799
807
|
key: 1,
|
|
800
808
|
class: "h-full"
|
|
801
809
|
}, {
|
|
802
|
-
default:
|
|
803
|
-
T(
|
|
804
|
-
T(
|
|
805
|
-
visible:
|
|
806
|
-
"onUpdate:visible": t[0] ||= (e) =>
|
|
810
|
+
default: B(() => [
|
|
811
|
+
T(en),
|
|
812
|
+
T(R(Ge), {
|
|
813
|
+
visible: R(n).drawerOpen,
|
|
814
|
+
"onUpdate:visible": t[0] ||= (e) => R(n).drawerOpen = e,
|
|
807
815
|
footer: !1,
|
|
808
|
-
mode:
|
|
816
|
+
mode: R(l) ? "overlay" : "push",
|
|
809
817
|
placement: "left",
|
|
810
|
-
"show-overlay":
|
|
811
|
-
size:
|
|
818
|
+
"show-overlay": R(l),
|
|
819
|
+
size: R(l) ? "200px" : `${R(n).drawerSize}px`,
|
|
812
820
|
"size-draggable": {
|
|
813
821
|
max: 450,
|
|
814
822
|
min: 180
|
|
815
823
|
},
|
|
816
824
|
onSizeDragEnd: f
|
|
817
825
|
}, {
|
|
818
|
-
default:
|
|
826
|
+
default: B(() => [T(Vt, { class: "no_drawer_body_padding" })]),
|
|
819
827
|
_: 1
|
|
820
828
|
}, 8, [
|
|
821
829
|
"visible",
|
|
@@ -823,27 +831,27 @@ var Zt = H("login", () => {
|
|
|
823
831
|
"show-overlay",
|
|
824
832
|
"size"
|
|
825
833
|
]),
|
|
826
|
-
T(
|
|
834
|
+
T(R(Ue), {
|
|
827
835
|
ref_key: "contentRef",
|
|
828
836
|
ref: u,
|
|
829
837
|
class: "overflow-hidden"
|
|
830
838
|
}, {
|
|
831
|
-
default:
|
|
839
|
+
default: B(() => [T(R(ee), {
|
|
832
840
|
always: "",
|
|
833
|
-
"view-class":
|
|
841
|
+
"view-class": De(["relative flex flex-col", {
|
|
834
842
|
...c.value,
|
|
835
843
|
"pt-8": s.value
|
|
836
844
|
}]),
|
|
837
845
|
"view-style": {
|
|
838
846
|
minWidth: "1200px",
|
|
839
|
-
minHeight: `${Math.max(
|
|
847
|
+
minHeight: `${Math.max(R(d), 438)}px`
|
|
840
848
|
}
|
|
841
849
|
}, {
|
|
842
|
-
default:
|
|
843
|
-
default:
|
|
844
|
-
exclude:
|
|
850
|
+
default: B(() => [T(Ht, { ref: "breadcrumb" }, null, 512), T(r, null, {
|
|
851
|
+
default: B(({ Component: e }) => [(N(), x(be, {
|
|
852
|
+
exclude: R(i).excludeKPname,
|
|
845
853
|
include: a.value
|
|
846
|
-
}, [(
|
|
854
|
+
}, [(N(), x(I(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
847
855
|
_: 1
|
|
848
856
|
})]),
|
|
849
857
|
_: 1
|
|
@@ -855,9 +863,9 @@ var Zt = H("login", () => {
|
|
|
855
863
|
}));
|
|
856
864
|
};
|
|
857
865
|
}
|
|
858
|
-
}), [["__scopeId", "data-v-de5cbc76"]]),
|
|
859
|
-
function
|
|
860
|
-
let n = b(() => typeof e.body == "function" ? e.body(
|
|
866
|
+
}), [["__scopeId", "data-v-de5cbc76"]]), nn = /* @__PURE__ */ new Set();
|
|
867
|
+
function rn(e, t) {
|
|
868
|
+
let n = b(() => typeof e.body == "function" ? e.body(O) : e.body), i = {
|
|
861
869
|
attach: "#app",
|
|
862
870
|
closeOnEscKeydown: !1,
|
|
863
871
|
closeOnOverlayClick: !1,
|
|
@@ -867,30 +875,30 @@ function nn(e, t) {
|
|
|
867
875
|
lazy: !0,
|
|
868
876
|
sizeDraggable: !0,
|
|
869
877
|
...e ?? {},
|
|
870
|
-
body: () =>
|
|
878
|
+
body: () => O(In, {}, { default: () => n.value })
|
|
871
879
|
}, a, o = {
|
|
872
880
|
...i,
|
|
873
881
|
onClose: (e) => {
|
|
874
|
-
i.onClose?.(e),
|
|
882
|
+
i.onClose?.(e), nn.delete(a);
|
|
875
883
|
}
|
|
876
884
|
};
|
|
877
|
-
return delete o.closeWhenCloseAll, a =
|
|
885
|
+
return delete o.closeWhenCloseAll, a = Ke(o, t ?? r()), i.closeWhenCloseAll && nn.add(a), a;
|
|
878
886
|
}
|
|
879
|
-
var
|
|
880
|
-
return
|
|
887
|
+
var an = function(...e) {
|
|
888
|
+
return rn(...e);
|
|
881
889
|
};
|
|
882
|
-
|
|
883
|
-
|
|
890
|
+
an.closeAll = () => {
|
|
891
|
+
nn.forEach((e) => {
|
|
884
892
|
e.hide?.();
|
|
885
893
|
});
|
|
886
894
|
};
|
|
887
895
|
//#endregion
|
|
888
896
|
//#region ../../packages/dlzn-ui/router/index.ts
|
|
889
|
-
function
|
|
897
|
+
function on() {
|
|
890
898
|
return {
|
|
891
899
|
children: [{
|
|
892
900
|
children: [{
|
|
893
|
-
component:
|
|
901
|
+
component: h["./profile/Index.vue"],
|
|
894
902
|
meta: {
|
|
895
903
|
fullScreen: !1,
|
|
896
904
|
hidden: !0,
|
|
@@ -902,7 +910,7 @@ function an() {
|
|
|
902
910
|
name: "Profile",
|
|
903
911
|
path: "profile"
|
|
904
912
|
}],
|
|
905
|
-
component:
|
|
913
|
+
component: h["./Home.vue"],
|
|
906
914
|
meta: {
|
|
907
915
|
fullScreen: !1,
|
|
908
916
|
hidden: !1,
|
|
@@ -914,17 +922,17 @@ function an() {
|
|
|
914
922
|
name: "Home",
|
|
915
923
|
path: "home"
|
|
916
924
|
}],
|
|
917
|
-
component:
|
|
925
|
+
component: tn,
|
|
918
926
|
name: "Index",
|
|
919
927
|
path: "/"
|
|
920
928
|
};
|
|
921
929
|
}
|
|
922
|
-
var J =
|
|
923
|
-
history:
|
|
930
|
+
var J = gt({
|
|
931
|
+
history: _t(VITE_BASE_URL),
|
|
924
932
|
routes: [
|
|
925
|
-
|
|
933
|
+
on(),
|
|
926
934
|
{
|
|
927
|
-
component:
|
|
935
|
+
component: h["./Login.vue"],
|
|
928
936
|
meta: {
|
|
929
937
|
fullScreen: !1,
|
|
930
938
|
hidden: !0,
|
|
@@ -936,8 +944,8 @@ var J = mt({
|
|
|
936
944
|
name: "Login",
|
|
937
945
|
path: "/login"
|
|
938
946
|
},
|
|
939
|
-
...
|
|
940
|
-
component:
|
|
947
|
+
...h["./Register.vue"] === void 0 ? [] : [{
|
|
948
|
+
component: h["./Register.vue"],
|
|
941
949
|
meta: {
|
|
942
950
|
fullScreen: !1,
|
|
943
951
|
hidden: !0,
|
|
@@ -950,7 +958,7 @@ var J = mt({
|
|
|
950
958
|
path: "/register"
|
|
951
959
|
}],
|
|
952
960
|
{
|
|
953
|
-
component:
|
|
961
|
+
component: h["./NotFound.vue"],
|
|
954
962
|
meta: {
|
|
955
963
|
fullScreen: !1,
|
|
956
964
|
hidden: !0,
|
|
@@ -967,12 +975,12 @@ var J = mt({
|
|
|
967
975
|
strict: !0
|
|
968
976
|
});
|
|
969
977
|
J.beforeEach(async (e) => {
|
|
970
|
-
if (e.query._fromLeftTree === "true" &&
|
|
978
|
+
if (e.query._fromLeftTree === "true" && v().add(e.name), !["Login", "Register"].includes(e.name)) return Qt().token === "" ? { name: "Login" } : zt().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), J.resolve({
|
|
971
979
|
path: e.path,
|
|
972
980
|
query: e.query
|
|
973
981
|
}));
|
|
974
982
|
}), J.afterEach((e, t, n) => {
|
|
975
|
-
|
|
983
|
+
kt.closeAll(), an.closeAll();
|
|
976
984
|
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: s } = r;
|
|
977
985
|
document.title = s || G().appInfo.appName;
|
|
978
986
|
let c = K();
|
|
@@ -987,29 +995,29 @@ J.beforeEach(async (e) => {
|
|
|
987
995
|
query: e.query
|
|
988
996
|
});
|
|
989
997
|
}
|
|
990
|
-
|
|
998
|
+
v().remove(i);
|
|
991
999
|
});
|
|
992
1000
|
function Y(e) {
|
|
993
1001
|
if (J.hasRoute(e)) return J.getRoutes().find((t) => t.name === e);
|
|
994
1002
|
}
|
|
995
1003
|
//#endregion
|
|
996
1004
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
997
|
-
var
|
|
998
|
-
function
|
|
1005
|
+
var sn = 15e3, cn = "网络错误,请稍后再试";
|
|
1006
|
+
function ln(e, t = !0) {
|
|
999
1007
|
let n = {};
|
|
1000
1008
|
return Object.keys(e).forEach((r) => {
|
|
1001
1009
|
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !c(e[r]))) && (n[r] = e[r]);
|
|
1002
1010
|
}), n;
|
|
1003
1011
|
}
|
|
1004
|
-
function
|
|
1005
|
-
return new URLSearchParams(
|
|
1012
|
+
function un(e, t = !0) {
|
|
1013
|
+
return new URLSearchParams(ln(e, t)).toString();
|
|
1006
1014
|
}
|
|
1007
|
-
var X =
|
|
1015
|
+
var X = yt({
|
|
1008
1016
|
baseURL: VITE_BASE_URL,
|
|
1009
1017
|
beforeRequest(e) {
|
|
1010
1018
|
e.config.credentials = e.config.credentials ?? "omit";
|
|
1011
1019
|
let [t, ...n] = VITE_API_PREFIX_ARRAY;
|
|
1012
|
-
!e.url.startsWith("http") && !n.some((t) =>
|
|
1020
|
+
!e.url.startsWith("http") && !n.some((t) => St.join("/", e.url).startsWith(St.join("/", t, "/"))) && (e.url = St.join(t, e.url)), e.meta = {
|
|
1013
1021
|
use600Alert: !0,
|
|
1014
1022
|
useDataResult: !0,
|
|
1015
1023
|
useDownload: !1,
|
|
@@ -1026,10 +1034,10 @@ var X = _t({
|
|
|
1026
1034
|
useToken: !0,
|
|
1027
1035
|
...e.meta ?? {}
|
|
1028
1036
|
};
|
|
1029
|
-
let r =
|
|
1037
|
+
let r = Qt(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: l, useLoading: u, useResponseBlob: d, useToken: f } = e.meta;
|
|
1030
1038
|
l || G().requestActive(), f && (r.token ? e.config.headers.Authorization = r.token : e.abort()), u !== !1 && i.show(u === !0 ? void 0 : u);
|
|
1031
1039
|
let p = e.config.params;
|
|
1032
|
-
if (typeof p != "string" && (e.config.params =
|
|
1040
|
+
if (typeof p != "string" && (e.config.params = un(p, o)), a && ht(e.data)) {
|
|
1033
1041
|
let t = {}, n = e.data;
|
|
1034
1042
|
Object.keys(n).forEach((e) => {
|
|
1035
1043
|
c(n[e]) || (t[e] = n[e]);
|
|
@@ -1041,10 +1049,10 @@ var X = _t({
|
|
|
1041
1049
|
t.append(n, e.data[n]);
|
|
1042
1050
|
}), e.data = t;
|
|
1043
1051
|
}
|
|
1044
|
-
e.config.timeout ===
|
|
1052
|
+
e.config.timeout === sn && (s || e.data instanceof FormData || d) && (e.config.timeout = 0);
|
|
1045
1053
|
},
|
|
1046
1054
|
cacheFor: null,
|
|
1047
|
-
requestAdapter:
|
|
1055
|
+
requestAdapter: bt(),
|
|
1048
1056
|
responded: {
|
|
1049
1057
|
onComplete: (e) => {
|
|
1050
1058
|
e.meta.useLoading !== !1 && i.hide();
|
|
@@ -1054,25 +1062,25 @@ var X = _t({
|
|
|
1054
1062
|
if (e instanceof Error) {
|
|
1055
1063
|
let { message: t } = e;
|
|
1056
1064
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1057
|
-
if (t.toLowerCase().includes("timeout")) return n &&
|
|
1065
|
+
if (t.toLowerCase().includes("timeout")) return n && m.error("请求超时"), Promise.reject(e);
|
|
1058
1066
|
}
|
|
1059
|
-
return n &&
|
|
1067
|
+
return n && m.error(cn), Promise.reject(e);
|
|
1060
1068
|
},
|
|
1061
1069
|
onSuccess: async (e, t) => {
|
|
1062
1070
|
if (typeof e == "string") return e;
|
|
1063
|
-
let { useDataResult: r, useDownload: i, useFailMsg: a, useResponseBlob: o, useResponseText: s, useSuccessMsg: c, useSysFailMsg: l, useToken: u } = t.meta, { headers:
|
|
1064
|
-
if (
|
|
1071
|
+
let { useDataResult: r, useDownload: i, useFailMsg: a, useResponseBlob: o, useResponseText: s, useSuccessMsg: c, useSysFailMsg: l, useToken: u } = t.meta, { headers: p, ok: h, status: ee } = e;
|
|
1072
|
+
if (h === !1) {
|
|
1065
1073
|
if (l) {
|
|
1066
1074
|
let e = {
|
|
1067
1075
|
403: "当前操作没有权限",
|
|
1068
1076
|
404: "访问资源不存在",
|
|
1069
1077
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1070
|
-
}[ee] ??
|
|
1071
|
-
|
|
1078
|
+
}[ee] ?? cn;
|
|
1079
|
+
m.error(e);
|
|
1072
1080
|
}
|
|
1073
1081
|
return Promise.reject(e);
|
|
1074
1082
|
}
|
|
1075
|
-
if (o && !
|
|
1083
|
+
if (o && !p.get("content-type")?.includes("application/json")) {
|
|
1076
1084
|
let t;
|
|
1077
1085
|
try {
|
|
1078
1086
|
t = await e.blob();
|
|
@@ -1080,54 +1088,59 @@ var X = _t({
|
|
|
1080
1088
|
return n.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1081
1089
|
}
|
|
1082
1090
|
if (i !== !1) {
|
|
1083
|
-
if (typeof i == "string")
|
|
1091
|
+
if (typeof i == "string") f(t, i);
|
|
1084
1092
|
else {
|
|
1085
1093
|
let r = new URLSearchParams((e.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename");
|
|
1086
|
-
r ?
|
|
1094
|
+
r ? f(t, r) : n.error("返回的 response header 没有文件名");
|
|
1087
1095
|
}
|
|
1088
1096
|
}
|
|
1089
1097
|
return t;
|
|
1090
1098
|
}
|
|
1091
|
-
if (s && !
|
|
1099
|
+
if (s && !p.get("content-type")?.includes("application/json")) {
|
|
1092
1100
|
let t;
|
|
1093
1101
|
try {
|
|
1094
1102
|
t = await e.text();
|
|
1095
1103
|
} catch (e) {
|
|
1096
|
-
return n.error("返回的 response text() 方法所解析"), Promise.reject(e);
|
|
1104
|
+
return n.error("返回的 response 不能被text() 方法所解析"), Promise.reject(e);
|
|
1097
1105
|
}
|
|
1098
1106
|
return t;
|
|
1099
1107
|
}
|
|
1100
|
-
let
|
|
1108
|
+
let g;
|
|
1101
1109
|
try {
|
|
1102
|
-
|
|
1110
|
+
g = await e.json();
|
|
1103
1111
|
} catch (e) {
|
|
1104
1112
|
return n.error("返回的 response 不能被json() 方法所解析"), Promise.reject(e);
|
|
1105
1113
|
}
|
|
1106
|
-
if (
|
|
1107
|
-
let { code: e, data: t, msg: n } =
|
|
1114
|
+
if (g?.code !== void 0) {
|
|
1115
|
+
let { code: e, data: t, msg: n } = g;
|
|
1108
1116
|
if (e >= 400) {
|
|
1109
1117
|
if (e === 600) {
|
|
1110
|
-
if (
|
|
1111
|
-
|
|
1112
|
-
|
|
1118
|
+
if (d(n).then((e) => {
|
|
1119
|
+
W({
|
|
1120
|
+
body: () => O("div", { innerHTML: e }),
|
|
1121
|
+
cancelBtn: null
|
|
1122
|
+
});
|
|
1123
|
+
}), !o) return g;
|
|
1124
|
+
} else e === 401 && u ? J.push({ name: "Login" }) : a !== !1 && m.error(a === !0 ? n : a);
|
|
1125
|
+
return Promise.reject(g);
|
|
1113
1126
|
}
|
|
1114
1127
|
{
|
|
1115
|
-
let i =
|
|
1128
|
+
let i = vt.alovaResCodeSuccessCb?.({
|
|
1116
1129
|
code: e,
|
|
1117
1130
|
data: t,
|
|
1118
1131
|
msg: n
|
|
1119
1132
|
});
|
|
1120
|
-
return i === void 0 ? (c &&
|
|
1133
|
+
return i === void 0 ? (c && m(n), r ? t === void 0 ? g : t : g) : i;
|
|
1121
1134
|
}
|
|
1122
1135
|
}
|
|
1123
|
-
return
|
|
1136
|
+
return g;
|
|
1124
1137
|
}
|
|
1125
1138
|
},
|
|
1126
1139
|
shareRequest: !1,
|
|
1127
|
-
statesHook:
|
|
1128
|
-
timeout:
|
|
1129
|
-
}),
|
|
1130
|
-
function
|
|
1140
|
+
statesHook: xt,
|
|
1141
|
+
timeout: sn
|
|
1142
|
+
}), dn = /* @__PURE__ */ new Map();
|
|
1143
|
+
function fn(e) {
|
|
1131
1144
|
let t = X.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
1132
1145
|
cssClass: e.cssClass,
|
|
1133
1146
|
dictType: e.dictType,
|
|
@@ -1136,42 +1149,42 @@ function dn(e) {
|
|
|
1136
1149
|
value: e.dictValue
|
|
1137
1150
|
})));
|
|
1138
1151
|
e.forEach((e) => {
|
|
1139
|
-
|
|
1152
|
+
dn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
1140
1153
|
});
|
|
1141
1154
|
}
|
|
1142
|
-
var
|
|
1143
|
-
function
|
|
1144
|
-
return
|
|
1155
|
+
var pn = [];
|
|
1156
|
+
function mn(e) {
|
|
1157
|
+
return pn.includes(e) || pn.push(e), new Promise((t) => {
|
|
1145
1158
|
setTimeout(() => {
|
|
1146
|
-
let n =
|
|
1147
|
-
n.length > 0 &&
|
|
1159
|
+
let n = pn.filter((e) => !dn.has(e));
|
|
1160
|
+
n.length > 0 && fn(n), pn.length = 0, dn.get(e).then((e) => {
|
|
1148
1161
|
t(e);
|
|
1149
1162
|
});
|
|
1150
1163
|
});
|
|
1151
1164
|
});
|
|
1152
1165
|
}
|
|
1153
1166
|
var Z = /* @__PURE__ */ new Map();
|
|
1154
|
-
function
|
|
1155
|
-
|
|
1156
|
-
}
|
|
1157
|
-
function hn(e, t) {
|
|
1158
|
-
let n = gn(e);
|
|
1159
|
-
return t === void 0 ? f(n) : f(n, t);
|
|
1167
|
+
function hn() {
|
|
1168
|
+
pn.length = 0, dn.clear(), Z.clear();
|
|
1160
1169
|
}
|
|
1161
1170
|
function gn(e, t) {
|
|
1171
|
+
let n = _n(e);
|
|
1172
|
+
return t === void 0 ? p(n) : p(n, t);
|
|
1173
|
+
}
|
|
1174
|
+
function _n(e, t) {
|
|
1162
1175
|
let n;
|
|
1163
|
-
return Z.has(e) ? n = Z.get(e) : (n =
|
|
1176
|
+
return Z.has(e) ? n = Z.get(e) : (n = P([]), Z.set(e, n), mn(e).then((e) => {
|
|
1164
1177
|
n.value = e;
|
|
1165
1178
|
})), b(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1166
1179
|
}
|
|
1167
|
-
function
|
|
1168
|
-
|
|
1180
|
+
function vn(e) {
|
|
1181
|
+
dn.delete(e), Z.has(e) && mn(e).then((t) => {
|
|
1169
1182
|
Z.get(e).value = t;
|
|
1170
1183
|
});
|
|
1171
1184
|
}
|
|
1172
1185
|
//#endregion
|
|
1173
1186
|
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
1174
|
-
var
|
|
1187
|
+
var yn = /* @__PURE__ */ E({
|
|
1175
1188
|
inheritAttrs: !1,
|
|
1176
1189
|
name: "TCheckboxGroup",
|
|
1177
1190
|
__name: "checkbox-group",
|
|
@@ -1204,7 +1217,7 @@ var vn = /* @__PURE__ */ E({
|
|
|
1204
1217
|
}
|
|
1205
1218
|
let s = b(() => {
|
|
1206
1219
|
let e;
|
|
1207
|
-
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e =
|
|
1220
|
+
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e = _n(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({
|
|
1208
1221
|
checkAll: !0,
|
|
1209
1222
|
label: "全选"
|
|
1210
1223
|
})), e;
|
|
@@ -1222,7 +1235,7 @@ var vn = /* @__PURE__ */ E({
|
|
|
1222
1235
|
e[t] === void 0 && delete e[t];
|
|
1223
1236
|
}), e;
|
|
1224
1237
|
});
|
|
1225
|
-
return (e, t) => (
|
|
1238
|
+
return (e, t) => (N(), x(I(O(R(Ve), A(e.$attrs, {
|
|
1226
1239
|
...d.value,
|
|
1227
1240
|
options: s.value,
|
|
1228
1241
|
modelValue: u.value,
|
|
@@ -1232,10 +1245,10 @@ var vn = /* @__PURE__ */ E({
|
|
|
1232
1245
|
ref: o
|
|
1233
1246
|
}), e.$slots))));
|
|
1234
1247
|
}
|
|
1235
|
-
}),
|
|
1248
|
+
}), bn = /* @__PURE__ */ E({
|
|
1236
1249
|
inheritAttrs: !1,
|
|
1237
1250
|
__name: "cron",
|
|
1238
|
-
props: /*@__PURE__*/
|
|
1251
|
+
props: /*@__PURE__*/ k({
|
|
1239
1252
|
modelValue: {},
|
|
1240
1253
|
adornment: {},
|
|
1241
1254
|
align: {},
|
|
@@ -1280,19 +1293,19 @@ var vn = /* @__PURE__ */ E({
|
|
|
1280
1293
|
onPaste: { type: Function },
|
|
1281
1294
|
onValidate: { type: Function },
|
|
1282
1295
|
onWheel: { type: Function }
|
|
1283
|
-
},
|
|
1296
|
+
}, le),
|
|
1284
1297
|
emits: ["update:modelValue"],
|
|
1285
1298
|
setup(e, { emit: t }) {
|
|
1286
|
-
let n = e, r = t, i =
|
|
1299
|
+
let n = e, r = t, i = Te("isFormDisabled", b(() => !1)), a = Te("isFormReadonly", b(() => !1)), o = b(() => {
|
|
1287
1300
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1288
1301
|
return {
|
|
1289
1302
|
...n,
|
|
1290
|
-
adornment: { append: () =>
|
|
1303
|
+
adornment: { append: () => O($, {
|
|
1291
1304
|
default: "cron",
|
|
1292
1305
|
onClick: () => {
|
|
1293
|
-
let i =
|
|
1294
|
-
|
|
1295
|
-
body: () =>
|
|
1306
|
+
let i = P(null);
|
|
1307
|
+
W({
|
|
1308
|
+
body: () => O(Ce(() => import("../components/cron/src/Picker.mjs")), {
|
|
1296
1309
|
disabled: e,
|
|
1297
1310
|
modelValue: n.modelValue,
|
|
1298
1311
|
onVnodeMounted: (e) => {
|
|
@@ -1314,20 +1327,20 @@ var vn = /* @__PURE__ */ E({
|
|
|
1314
1327
|
variant: "text"
|
|
1315
1328
|
}) }
|
|
1316
1329
|
};
|
|
1317
|
-
}), s =
|
|
1330
|
+
}), s = Pe(), c = D();
|
|
1318
1331
|
function l(e) {
|
|
1319
1332
|
c.exposed = e ?? {};
|
|
1320
1333
|
}
|
|
1321
|
-
let u = b(() =>
|
|
1334
|
+
let u = b(() => A(s, {
|
|
1322
1335
|
...o.value,
|
|
1323
1336
|
onChange: (...e) => {
|
|
1324
1337
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1325
1338
|
},
|
|
1326
1339
|
ref: l
|
|
1327
1340
|
}));
|
|
1328
|
-
return (e, t) => (
|
|
1341
|
+
return (e, t) => (N(), x(R(ue), M(we(u.value)), null, 16));
|
|
1329
1342
|
}
|
|
1330
|
-
}),
|
|
1343
|
+
}), xn = /* @__PURE__ */ E({
|
|
1331
1344
|
inheritAttrs: !1,
|
|
1332
1345
|
name: "TRadioGroup",
|
|
1333
1346
|
__name: "radio-group",
|
|
@@ -1361,7 +1374,7 @@ var vn = /* @__PURE__ */ E({
|
|
|
1361
1374
|
function o(e) {
|
|
1362
1375
|
a.exposed = e ?? {};
|
|
1363
1376
|
}
|
|
1364
|
-
let s = b(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"),
|
|
1377
|
+
let s = b(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"), _n(r.dicCode).value) : typeof r.options == "string" ? oe(r.options).value : r.options), d = b(() => {
|
|
1365
1378
|
let e = { ...r };
|
|
1366
1379
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1367
1380
|
e[t] === void 0 && delete e[t];
|
|
@@ -1374,18 +1387,18 @@ var vn = /* @__PURE__ */ E({
|
|
|
1374
1387
|
}
|
|
1375
1388
|
return r.modelValue;
|
|
1376
1389
|
});
|
|
1377
|
-
return (e, t) => (
|
|
1390
|
+
return (e, t) => (N(), x(I(O(R(nt), A(e.$attrs, {
|
|
1378
1391
|
...d.value,
|
|
1379
1392
|
options: s.value,
|
|
1380
1393
|
modelValue: f.value,
|
|
1381
1394
|
onChange: (...e) => {
|
|
1382
|
-
let [t, ...n] = e, a =
|
|
1395
|
+
let [t, ...n] = e, a = R(c)(t) ? "" : t;
|
|
1383
1396
|
i("update:modelValue", a), r.onChange?.(a, ...n);
|
|
1384
1397
|
},
|
|
1385
1398
|
ref: o
|
|
1386
1399
|
}), e.$slots))));
|
|
1387
1400
|
}
|
|
1388
|
-
}),
|
|
1401
|
+
}), Sn = {
|
|
1389
1402
|
clearable: !0,
|
|
1390
1403
|
disabled: void 0,
|
|
1391
1404
|
filterable: void 0,
|
|
@@ -1406,11 +1419,11 @@ var vn = /* @__PURE__ */ E({
|
|
|
1406
1419
|
}),
|
|
1407
1420
|
showArrow: !0,
|
|
1408
1421
|
showCheckAll: !1
|
|
1409
|
-
},
|
|
1422
|
+
}, Cn = /* @__PURE__ */ E({
|
|
1410
1423
|
inheritAttrs: !1,
|
|
1411
1424
|
name: "TSelect",
|
|
1412
1425
|
__name: "select",
|
|
1413
|
-
props: /*@__PURE__*/
|
|
1426
|
+
props: /*@__PURE__*/ k({
|
|
1414
1427
|
adornment: {},
|
|
1415
1428
|
dicCode: {},
|
|
1416
1429
|
modelValue: {},
|
|
@@ -1470,7 +1483,7 @@ var vn = /* @__PURE__ */ E({
|
|
|
1470
1483
|
onPopupVisibleChange: { type: Function },
|
|
1471
1484
|
onRemove: { type: Function },
|
|
1472
1485
|
onSearch: { type: Function }
|
|
1473
|
-
},
|
|
1486
|
+
}, Sn),
|
|
1474
1487
|
setup(e) {
|
|
1475
1488
|
let t = e, r = D();
|
|
1476
1489
|
function i(e) {
|
|
@@ -1478,7 +1491,7 @@ var vn = /* @__PURE__ */ E({
|
|
|
1478
1491
|
}
|
|
1479
1492
|
let a = b(() => {
|
|
1480
1493
|
let e;
|
|
1481
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ?
|
|
1494
|
+
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 = _n(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? n.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
1482
1495
|
checkAll: !0,
|
|
1483
1496
|
[t.keys?.label ?? "label"]: "全选"
|
|
1484
1497
|
}) : n.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
@@ -1502,9 +1515,9 @@ var vn = /* @__PURE__ */ E({
|
|
|
1502
1515
|
return delete e.dicCode, delete e.showCheckAll, delete e.adornment, Object.keys(e).forEach((t) => {
|
|
1503
1516
|
e[t] === void 0 && delete e[t];
|
|
1504
1517
|
}), e;
|
|
1505
|
-
}), d =
|
|
1506
|
-
|
|
1507
|
-
|
|
1518
|
+
}), d = P(0);
|
|
1519
|
+
Oe(() => {
|
|
1520
|
+
pt(r.exposed.$el, () => {
|
|
1508
1521
|
d.value = r.exposed.$el.offsetWidth;
|
|
1509
1522
|
}, { box: "border-box" });
|
|
1510
1523
|
});
|
|
@@ -1528,16 +1541,16 @@ var vn = /* @__PURE__ */ E({
|
|
|
1528
1541
|
})
|
|
1529
1542
|
},
|
|
1530
1543
|
ref: i
|
|
1531
|
-
})), m =
|
|
1532
|
-
return (t, n) => e.adornment ? (
|
|
1544
|
+
})), m = Qe;
|
|
1545
|
+
return (t, n) => e.adornment ? (N(), x(I(O(R(m), t.$attrs, {
|
|
1533
1546
|
...e.adornment,
|
|
1534
|
-
default: () =>
|
|
1535
|
-
})), { key: 0 })) : (
|
|
1547
|
+
default: () => O(R(rt), p.value, t.$slots)
|
|
1548
|
+
})), { key: 0 })) : (N(), x(I(O(R(rt), A(t.$attrs, p.value), t.$slots)), { key: 1 }));
|
|
1536
1549
|
}
|
|
1537
|
-
}),
|
|
1550
|
+
}), wn = /* @__PURE__ */ E({
|
|
1538
1551
|
inheritAttrs: !1,
|
|
1539
1552
|
__name: "select-sys-user",
|
|
1540
|
-
props: /*@__PURE__*/
|
|
1553
|
+
props: /*@__PURE__*/ k({
|
|
1541
1554
|
modelValue: {},
|
|
1542
1555
|
adornment: {},
|
|
1543
1556
|
autoWidth: { type: Boolean },
|
|
@@ -1576,19 +1589,19 @@ var vn = /* @__PURE__ */ E({
|
|
|
1576
1589
|
onMouseleave: { type: Function },
|
|
1577
1590
|
onPaste: { type: Function },
|
|
1578
1591
|
onRemove: { type: Function }
|
|
1579
|
-
},
|
|
1592
|
+
}, me),
|
|
1580
1593
|
emits: ["update:modelValue"],
|
|
1581
1594
|
setup(e, { emit: t }) {
|
|
1582
|
-
let n = e, r = t, i =
|
|
1595
|
+
let n = e, r = t, i = Te("isFormDisabled", b(() => !1)), a = Te("isFormReadonly", b(() => !1)), o = b(() => {
|
|
1583
1596
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1584
1597
|
return {
|
|
1585
1598
|
...n,
|
|
1586
|
-
adornment: e || t ? void 0 : { append: () =>
|
|
1599
|
+
adornment: e || t ? void 0 : { append: () => O($, {
|
|
1587
1600
|
default: "选择用户",
|
|
1588
1601
|
onClick: () => {
|
|
1589
|
-
let e =
|
|
1590
|
-
|
|
1591
|
-
body: () =>
|
|
1602
|
+
let e = P(null);
|
|
1603
|
+
W({
|
|
1604
|
+
body: () => O(Ce(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
1592
1605
|
max: n.max,
|
|
1593
1606
|
modelValue: n.modelValue,
|
|
1594
1607
|
onVnodeMounted: (t) => {
|
|
@@ -1609,11 +1622,11 @@ var vn = /* @__PURE__ */ E({
|
|
|
1609
1622
|
variant: "text"
|
|
1610
1623
|
}) }
|
|
1611
1624
|
};
|
|
1612
|
-
}), s =
|
|
1625
|
+
}), s = Pe(), c = D();
|
|
1613
1626
|
function l(e) {
|
|
1614
1627
|
c.exposed = e ?? {};
|
|
1615
1628
|
}
|
|
1616
|
-
let u = b(() =>
|
|
1629
|
+
let u = b(() => A(s, {
|
|
1617
1630
|
...o.value,
|
|
1618
1631
|
inputProps: {
|
|
1619
1632
|
readonly: !0,
|
|
@@ -1625,19 +1638,19 @@ var vn = /* @__PURE__ */ E({
|
|
|
1625
1638
|
placeholder: "请选择用户",
|
|
1626
1639
|
ref: l
|
|
1627
1640
|
}));
|
|
1628
|
-
return (e, t) => (
|
|
1629
|
-
tag:
|
|
1641
|
+
return (e, t) => (N(), x(R(he), M(we(u.value)), {
|
|
1642
|
+
tag: B(({ value: e }) => [w(L(R(Yt)(e).value?.userName), 1)]),
|
|
1630
1643
|
_: 1
|
|
1631
1644
|
}, 16));
|
|
1632
1645
|
}
|
|
1633
|
-
}),
|
|
1646
|
+
}), Tn = {
|
|
1634
1647
|
checkable: !1,
|
|
1635
1648
|
disabled: void 0,
|
|
1636
1649
|
expandOnClickNode: void 0,
|
|
1637
1650
|
hover: !0,
|
|
1638
1651
|
icon: () => (e, t) => {
|
|
1639
1652
|
let n = "";
|
|
1640
|
-
return t.getChildren && t.getChildren(!1) && (t.expanded ? (n = "cuida:caret-down-outline", t.loading && (n = "line-md:loading-twotone-loop")) : n = "cuida:caret-right-outline"), n === "" ? null :
|
|
1653
|
+
return t.getChildren && t.getChildren(!1) && (t.expanded ? (n = "cuida:caret-down-outline", t.loading && (n = "line-md:loading-twotone-loop")) : n = "cuida:caret-right-outline"), n === "" ? null : O($, {
|
|
1641
1654
|
icon: n,
|
|
1642
1655
|
shape: "circle",
|
|
1643
1656
|
size: "small",
|
|
@@ -1649,11 +1662,11 @@ var vn = /* @__PURE__ */ E({
|
|
|
1649
1662
|
line: !0,
|
|
1650
1663
|
transition: !0,
|
|
1651
1664
|
valueMode: "all"
|
|
1652
|
-
},
|
|
1665
|
+
}, En = /* @__PURE__ */ E({
|
|
1653
1666
|
inheritAttrs: !1,
|
|
1654
1667
|
name: "TTree",
|
|
1655
1668
|
__name: "tree",
|
|
1656
|
-
props: /*@__PURE__*/
|
|
1669
|
+
props: /*@__PURE__*/ k({
|
|
1657
1670
|
icon: { type: [Function, Boolean] },
|
|
1658
1671
|
"onUpdate:actived": { type: Function },
|
|
1659
1672
|
"onUpdate:expanded": { type: Function },
|
|
@@ -1706,9 +1719,9 @@ var vn = /* @__PURE__ */ E({
|
|
|
1706
1719
|
onLoad: { type: Function },
|
|
1707
1720
|
onScroll: { type: Function },
|
|
1708
1721
|
treeStore: {}
|
|
1709
|
-
},
|
|
1722
|
+
}, Tn),
|
|
1710
1723
|
setup(e, { expose: t }) {
|
|
1711
|
-
let n = e, r =
|
|
1724
|
+
let n = e, r = Fe(), i = b(() => {
|
|
1712
1725
|
let e = { ...n };
|
|
1713
1726
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1714
1727
|
e[t] === void 0 && delete e[t];
|
|
@@ -1717,12 +1730,12 @@ var vn = /* @__PURE__ */ E({
|
|
|
1717
1730
|
function o(e) {
|
|
1718
1731
|
a.exposed = e ?? {};
|
|
1719
1732
|
}
|
|
1720
|
-
return t({}), (e, t) => (
|
|
1733
|
+
return t({}), (e, t) => (N(), x(I(O(R(it), A(e.$attrs, {
|
|
1721
1734
|
...i.value,
|
|
1722
1735
|
ref: o
|
|
1723
1736
|
}), e.$slots))));
|
|
1724
1737
|
}
|
|
1725
|
-
}),
|
|
1738
|
+
}), Dn = /* @__PURE__ */ E({
|
|
1726
1739
|
inheritAttrs: !1,
|
|
1727
1740
|
name: "TTreeSelect",
|
|
1728
1741
|
__name: "tree-select",
|
|
@@ -1789,16 +1802,16 @@ var vn = /* @__PURE__ */ E({
|
|
|
1789
1802
|
onSearch: {}
|
|
1790
1803
|
},
|
|
1791
1804
|
setup(e) {
|
|
1792
|
-
let t = e, n = b(() => typeof t.data == "string" ?
|
|
1805
|
+
let t = e, n = b(() => typeof t.data == "string" ? oe(t.data).value : t.data), r = b(() => {
|
|
1793
1806
|
let e = { ...t };
|
|
1794
1807
|
return e.selectInputProps = {
|
|
1795
1808
|
minCollapsedNum: 2,
|
|
1796
1809
|
...e.selectInputProps ?? {}
|
|
1797
1810
|
}, e.treeProps = {
|
|
1798
|
-
...
|
|
1811
|
+
...Tn,
|
|
1799
1812
|
checkable: !!t.multiple,
|
|
1800
1813
|
expandOnClickNode: !!t.multiple,
|
|
1801
|
-
icon:
|
|
1814
|
+
icon: Tn.icon(),
|
|
1802
1815
|
...e.treeProps ?? {}
|
|
1803
1816
|
}, Object.keys(e).forEach((t) => {
|
|
1804
1817
|
e[t] === void 0 && delete e[t];
|
|
@@ -1807,12 +1820,12 @@ var vn = /* @__PURE__ */ E({
|
|
|
1807
1820
|
function a(e) {
|
|
1808
1821
|
i.exposed = e ?? {};
|
|
1809
1822
|
}
|
|
1810
|
-
let o =
|
|
1811
|
-
return
|
|
1812
|
-
|
|
1823
|
+
let o = P(0);
|
|
1824
|
+
return Oe(() => {
|
|
1825
|
+
pt(i.exposed.$el, () => {
|
|
1813
1826
|
o.value = i.exposed.$el.offsetWidth;
|
|
1814
1827
|
}, { box: "border-box" });
|
|
1815
|
-
}), (e, t) => (
|
|
1828
|
+
}), (e, t) => (N(), x(I(O(R(at), A(e.$attrs, {
|
|
1816
1829
|
...r.value,
|
|
1817
1830
|
data: n.value,
|
|
1818
1831
|
ref: a,
|
|
@@ -1826,10 +1839,10 @@ var vn = /* @__PURE__ */ E({
|
|
|
1826
1839
|
}
|
|
1827
1840
|
}), e.$slots))));
|
|
1828
1841
|
}
|
|
1829
|
-
}),
|
|
1842
|
+
}), On = ".xlsx,.xls", kn = { class: "flex items-center" }, An = {
|
|
1830
1843
|
key: 1,
|
|
1831
1844
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1832
|
-
},
|
|
1845
|
+
}, jn = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
1833
1846
|
inheritAttrs: !1,
|
|
1834
1847
|
name: "TUpload",
|
|
1835
1848
|
__name: "upload",
|
|
@@ -1838,7 +1851,7 @@ var vn = /* @__PURE__ */ E({
|
|
|
1838
1851
|
"onUpdate:modelValue": {},
|
|
1839
1852
|
requestMethod: {},
|
|
1840
1853
|
abridgeName: {},
|
|
1841
|
-
accept: { default:
|
|
1854
|
+
accept: { default: On },
|
|
1842
1855
|
allowUploadDuplicateFile: { type: Boolean },
|
|
1843
1856
|
autoUpload: { type: Boolean },
|
|
1844
1857
|
beforeAllFilesUpload: {},
|
|
@@ -1929,7 +1942,7 @@ var vn = /* @__PURE__ */ E({
|
|
|
1929
1942
|
});
|
|
1930
1943
|
});
|
|
1931
1944
|
function i() {
|
|
1932
|
-
typeof n.downloadTemplate == "string" ?
|
|
1945
|
+
typeof n.downloadTemplate == "string" ? f(n.downloadTemplate) : n.downloadTemplate.send();
|
|
1933
1946
|
}
|
|
1934
1947
|
let a = b(() => {
|
|
1935
1948
|
let e = { ...n };
|
|
@@ -1940,39 +1953,39 @@ var vn = /* @__PURE__ */ E({
|
|
|
1940
1953
|
function s(e) {
|
|
1941
1954
|
o.exposed = e ?? {};
|
|
1942
1955
|
}
|
|
1943
|
-
return t({}), (t, o) => (
|
|
1956
|
+
return t({}), (t, o) => (N(), x(I(O(R(ot), A(t.$attrs, {
|
|
1944
1957
|
...a.value,
|
|
1945
1958
|
requestMethod: r.value,
|
|
1946
1959
|
ref: s
|
|
1947
|
-
}, { class: a.value.theme }))), null,
|
|
1960
|
+
}, { class: a.value.theme }))), null, Se({ _: 2 }, [F(Object.keys(t.$slots), (e) => ({
|
|
1948
1961
|
name: e,
|
|
1949
|
-
fn:
|
|
1962
|
+
fn: B((n) => [je(t.$slots, e, M(we(n)), void 0, !0)])
|
|
1950
1963
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
1951
1964
|
name: "trigger",
|
|
1952
|
-
fn:
|
|
1953
|
-
T(
|
|
1954
|
-
default:
|
|
1965
|
+
fn: B(({ files: t }) => [xe("div", kn, [
|
|
1966
|
+
T(R($), { theme: "primary" }, {
|
|
1967
|
+
default: B(() => [w(L(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
1955
1968
|
_: 2
|
|
1956
1969
|
}, 1024),
|
|
1957
|
-
e.downloadTemplate ? (
|
|
1970
|
+
e.downloadTemplate ? (N(), x(R($), {
|
|
1958
1971
|
key: 0,
|
|
1959
1972
|
theme: "primary",
|
|
1960
1973
|
variant: "outline",
|
|
1961
|
-
onClick:
|
|
1974
|
+
onClick: Le(i, ["stop"])
|
|
1962
1975
|
}, {
|
|
1963
|
-
default:
|
|
1976
|
+
default: B(() => [...o[0] ||= [w("下载模板", -1)]]),
|
|
1964
1977
|
_: 1
|
|
1965
1978
|
})) : S("v-if", !0),
|
|
1966
|
-
n.tips ? (
|
|
1979
|
+
n.tips ? (N(), C("span", An, L(n.tips), 1)) : S("v-if", !0)
|
|
1967
1980
|
])]),
|
|
1968
1981
|
key: "0"
|
|
1969
1982
|
} : void 0]), 1024));
|
|
1970
1983
|
}
|
|
1971
|
-
}), [["__scopeId", "data-v-51889a3b"]]),
|
|
1984
|
+
}), [["__scopeId", "data-v-51889a3b"]]), Mn = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
1972
1985
|
inheritAttrs: !1,
|
|
1973
1986
|
name: "TForm",
|
|
1974
1987
|
__name: "form",
|
|
1975
|
-
props: /*@__PURE__*/
|
|
1988
|
+
props: /*@__PURE__*/ k({
|
|
1976
1989
|
autoLabelWidth: { type: Boolean },
|
|
1977
1990
|
data: {},
|
|
1978
1991
|
items: {},
|
|
@@ -1996,9 +2009,9 @@ var vn = /* @__PURE__ */ E({
|
|
|
1996
2009
|
onReset: { type: Function },
|
|
1997
2010
|
onSubmit: { type: Function },
|
|
1998
2011
|
onValidate: { type: Function }
|
|
1999
|
-
},
|
|
2012
|
+
}, Tt),
|
|
2000
2013
|
setup(e, { expose: t }) {
|
|
2001
|
-
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } =
|
|
2014
|
+
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = vt, s = D(), l = P(null), u = b(() => r.items.map((e) => {
|
|
2002
2015
|
if (typeof e.__others == "function") {
|
|
2003
2016
|
let t = {
|
|
2004
2017
|
...e,
|
|
@@ -2038,36 +2051,36 @@ var vn = /* @__PURE__ */ E({
|
|
|
2038
2051
|
}
|
|
2039
2052
|
});
|
|
2040
2053
|
}
|
|
2041
|
-
|
|
2054
|
+
z(u, d, {
|
|
2042
2055
|
deep: 2,
|
|
2043
2056
|
immediate: !0
|
|
2044
|
-
}),
|
|
2057
|
+
}), z(() => r.data, () => {
|
|
2045
2058
|
n.error("TForm: data is changed");
|
|
2046
2059
|
});
|
|
2047
|
-
let f = /* @__PURE__ */ new Map(),
|
|
2060
|
+
let f = /* @__PURE__ */ new Map(), p = {
|
|
2048
2061
|
TCheckbox: a,
|
|
2049
|
-
TCheckboxGroup:
|
|
2050
|
-
TColorPicker:
|
|
2051
|
-
TCron:
|
|
2052
|
-
TDatePicker:
|
|
2053
|
-
TInput:
|
|
2054
|
-
TInputNumber:
|
|
2055
|
-
TRadioGroup:
|
|
2056
|
-
TRangeInput:
|
|
2057
|
-
TSelect:
|
|
2058
|
-
TSelectSysUser:
|
|
2059
|
-
TSlider:
|
|
2060
|
-
TSwitch:
|
|
2061
|
-
TTagInput:
|
|
2062
|
-
TTextarea:
|
|
2063
|
-
TTree:
|
|
2064
|
-
TTreeSelect:
|
|
2065
|
-
TUpload:
|
|
2062
|
+
TCheckboxGroup: yn,
|
|
2063
|
+
TColorPicker: ce,
|
|
2064
|
+
TCron: bn,
|
|
2065
|
+
TDatePicker: de,
|
|
2066
|
+
TInput: ue,
|
|
2067
|
+
TInputNumber: fe,
|
|
2068
|
+
TRadioGroup: xn,
|
|
2069
|
+
TRangeInput: pe,
|
|
2070
|
+
TSelect: Cn,
|
|
2071
|
+
TSelectSysUser: wn,
|
|
2072
|
+
TSlider: ge,
|
|
2073
|
+
TSwitch: _e,
|
|
2074
|
+
TTagInput: he,
|
|
2075
|
+
TTextarea: ve,
|
|
2076
|
+
TTree: En,
|
|
2077
|
+
TTreeSelect: Dn,
|
|
2078
|
+
TUpload: jn
|
|
2066
2079
|
};
|
|
2067
|
-
function ee(e) {
|
|
2068
|
-
return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e, Se(o.get(e))), f.get(e)) : m[e] : le;
|
|
2069
|
-
}
|
|
2070
2080
|
function h(e) {
|
|
2081
|
+
return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e, Ce(o.get(e))), f.get(e)) : p[e] : ue;
|
|
2082
|
+
}
|
|
2083
|
+
function ee(e) {
|
|
2071
2084
|
let t = {};
|
|
2072
2085
|
for (let n in e) !n.startsWith("_") && ![
|
|
2073
2086
|
"component",
|
|
@@ -2113,22 +2126,22 @@ var vn = /* @__PURE__ */ E({
|
|
|
2113
2126
|
return delete e.items, delete e.msgErrorWhenValidate, delete e.autoLabelWidth, Object.keys(e).forEach((t) => {
|
|
2114
2127
|
e[t] === void 0 && delete e[t];
|
|
2115
2128
|
}), e;
|
|
2116
|
-
}),
|
|
2129
|
+
}), v = () => {
|
|
2117
2130
|
let e = { ...r.data };
|
|
2118
2131
|
return u.value.forEach((t) => {
|
|
2119
2132
|
t.show === !1 && delete e[t.model];
|
|
2120
2133
|
}), e;
|
|
2121
2134
|
};
|
|
2122
|
-
function
|
|
2135
|
+
function te(e) {
|
|
2123
2136
|
if (e !== null) {
|
|
2124
2137
|
let t = e;
|
|
2125
2138
|
if (!t.validate._alreadyReplace) {
|
|
2126
2139
|
let e = t.validate;
|
|
2127
2140
|
t.validate = (...t) => new Promise((n, i) => {
|
|
2128
2141
|
e(...t).then((e) => {
|
|
2129
|
-
e === !0 ? n(
|
|
2142
|
+
e === !0 ? n(v()) : (r.msgErrorWhenValidate && Object.keys(e).forEach((t) => {
|
|
2130
2143
|
e[t].forEach((e) => {
|
|
2131
|
-
e.result === !1 &&
|
|
2144
|
+
e.result === !1 && m.error(e.message);
|
|
2132
2145
|
});
|
|
2133
2146
|
}), i(e));
|
|
2134
2147
|
});
|
|
@@ -2138,18 +2151,18 @@ var vn = /* @__PURE__ */ E({
|
|
|
2138
2151
|
let e = t.validateOnly;
|
|
2139
2152
|
t.validateOnly = (...t) => new Promise((n, r) => {
|
|
2140
2153
|
e(...t).then((e) => {
|
|
2141
|
-
e === !0 ? n(
|
|
2154
|
+
e === !0 ? n(v()) : r(e);
|
|
2142
2155
|
});
|
|
2143
2156
|
}), t.validateOnly._alreadyReplace = !0;
|
|
2144
2157
|
}
|
|
2145
2158
|
if (!t.clearValidate._alreadyReplace) {
|
|
2146
2159
|
let e = t.clearValidate;
|
|
2147
2160
|
t.clearValidate = (...t) => {
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2161
|
+
j(() => {
|
|
2162
|
+
j(() => {
|
|
2163
|
+
j(() => {
|
|
2164
|
+
j(() => {
|
|
2165
|
+
j(() => {
|
|
2153
2166
|
e(...t);
|
|
2154
2167
|
});
|
|
2155
2168
|
});
|
|
@@ -2158,7 +2171,7 @@ var vn = /* @__PURE__ */ E({
|
|
|
2158
2171
|
});
|
|
2159
2172
|
}, t.clearValidate._alreadyReplace = !0;
|
|
2160
2173
|
}
|
|
2161
|
-
t.getFormData =
|
|
2174
|
+
t.getFormData = v, t.setFormData = (e, t) => {
|
|
2162
2175
|
let { ignoreKeys: n = [], isNotFalsy: i = !0, numberToStringKeys: a = [], override: o = {}, splitToArrKeys: s = [] } = t ?? {};
|
|
2163
2176
|
Object.keys(r.data).forEach((t) => {
|
|
2164
2177
|
n.includes(t) || (s.includes(t) ? r.data[t] = typeof e[t] == "string" ? e[t].split(",").filter(Boolean) : [] : i && c(e[t]) || (r.data[t] = e[t]), a.includes(t) && typeof r.data[t] == "number" && (r.data[t] = String(r.data[t])));
|
|
@@ -2168,16 +2181,16 @@ var vn = /* @__PURE__ */ E({
|
|
|
2168
2181
|
let t = e ?? {};
|
|
2169
2182
|
l.value = t, s.exposed = t;
|
|
2170
2183
|
}
|
|
2171
|
-
let y =
|
|
2172
|
-
|
|
2173
|
-
y.value = s.exposed.$el.getElementsByClassName("t-form__label"), ne(),
|
|
2184
|
+
let y = Ne();
|
|
2185
|
+
Oe(() => {
|
|
2186
|
+
y.value = s.exposed.$el.getElementsByClassName("t-form__label"), ne(), ft(s.exposed.$el, () => {
|
|
2174
2187
|
ne();
|
|
2175
2188
|
}, {
|
|
2176
2189
|
attributeFilter: ["class"],
|
|
2177
2190
|
characterData: !0,
|
|
2178
2191
|
childList: !0,
|
|
2179
2192
|
subtree: !0
|
|
2180
|
-
}),
|
|
2193
|
+
}), pt(s.exposed.$el, () => {
|
|
2181
2194
|
ne();
|
|
2182
2195
|
});
|
|
2183
2196
|
});
|
|
@@ -2193,29 +2206,29 @@ var vn = /* @__PURE__ */ E({
|
|
|
2193
2206
|
e.style.minWidth = `${t}px`;
|
|
2194
2207
|
});
|
|
2195
2208
|
}
|
|
2196
|
-
return
|
|
2209
|
+
return ke("formData", r.data), ke("formExposed", l), ke("isFormDisabled", b(() => r.disabled)), ke("isFormReadonly", b(() => r.readonly)), t({}), (t, n) => (N(), C(ye, null, [S(" eslint-disable vue/no-mutating-props "), (N(), x(I(R(Je)), A(A(t.$attrs, {
|
|
2197
2210
|
..._.value,
|
|
2198
|
-
ref:
|
|
2211
|
+
ref: te
|
|
2199
2212
|
}), { "label-width": "fit-content" }), {
|
|
2200
|
-
default:
|
|
2201
|
-
default:
|
|
2213
|
+
default: B(() => [(N(!0), C(ye, null, F(u.value.filter((e) => e.show !== !1), (n) => (N(), x(R(Ye), A({ key: n.model ?? n.slot }, { ref_for: !0 }, A({ ...g(n) }, { class: { no_label_item: R(c)(n._label) } }), { name: n.model }), {
|
|
2214
|
+
default: B(() => [n.slot ? je(t.$slots, n.slot, {}, void 0, !0, 0) : (N(), x(I(h(n.component)), A({
|
|
2202
2215
|
key: 1,
|
|
2203
2216
|
modelValue: e.data[n.model],
|
|
2204
2217
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
2205
|
-
}, { ref_for: !0 },
|
|
2218
|
+
}, { ref_for: !0 }, ee(n)), null, 16, ["modelValue", "onUpdate:modelValue"]))]),
|
|
2206
2219
|
_: 2
|
|
2207
2220
|
}, 1040, ["name"]))), 128))]),
|
|
2208
2221
|
_: 3
|
|
2209
2222
|
}, 16))], 2112));
|
|
2210
2223
|
}
|
|
2211
|
-
}), [["__scopeId", "data-v-d3f924b4"]]),
|
|
2224
|
+
}), [["__scopeId", "data-v-d3f924b4"]]), Nn = /* @__PURE__ */ E({
|
|
2212
2225
|
__name: "ResetPwd",
|
|
2213
2226
|
props: { showFooter: {
|
|
2214
2227
|
type: Boolean,
|
|
2215
2228
|
default: !0
|
|
2216
2229
|
} },
|
|
2217
2230
|
setup(e, { expose: t }) {
|
|
2218
|
-
let n =
|
|
2231
|
+
let n = H(), r = [
|
|
2219
2232
|
{
|
|
2220
2233
|
_label: "旧密码",
|
|
2221
2234
|
_required: !0,
|
|
@@ -2246,7 +2259,7 @@ var vn = /* @__PURE__ */ E({
|
|
|
2246
2259
|
type: "password"
|
|
2247
2260
|
},
|
|
2248
2261
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
2249
|
-
], i =
|
|
2262
|
+
], i = Ie("form");
|
|
2250
2263
|
function a() {
|
|
2251
2264
|
K().close(n.name);
|
|
2252
2265
|
}
|
|
@@ -2261,23 +2274,23 @@ var vn = /* @__PURE__ */ E({
|
|
|
2261
2274
|
newPassword: e.newPassword,
|
|
2262
2275
|
oldPassword: e.oldPassword
|
|
2263
2276
|
}
|
|
2264
|
-
}),
|
|
2277
|
+
}), Qt().logout();
|
|
2265
2278
|
}
|
|
2266
|
-
return t({ handleSubmit: c }), (e, t) => (
|
|
2279
|
+
return t({ handleSubmit: c }), (e, t) => (N(), x(R(Mn), {
|
|
2267
2280
|
ref: "form",
|
|
2268
2281
|
items: r,
|
|
2269
2282
|
"label-align": "right",
|
|
2270
2283
|
layout: "vertical"
|
|
2271
2284
|
}, {
|
|
2272
|
-
footer:
|
|
2273
|
-
default:
|
|
2285
|
+
footer: B(() => [T(R($), { onClick: c }, {
|
|
2286
|
+
default: B(() => [...t[0] ||= [w("保存", -1)]]),
|
|
2274
2287
|
_: 1
|
|
2275
|
-
}), T(
|
|
2288
|
+
}), T(R($), {
|
|
2276
2289
|
class: "ml-4!",
|
|
2277
2290
|
theme: "default",
|
|
2278
2291
|
onClick: a
|
|
2279
2292
|
}, {
|
|
2280
|
-
default:
|
|
2293
|
+
default: B(() => [...t[1] ||= [w("关闭", -1)]]),
|
|
2281
2294
|
_: 1
|
|
2282
2295
|
})]),
|
|
2283
2296
|
_: 1
|
|
@@ -2286,34 +2299,34 @@ var vn = /* @__PURE__ */ E({
|
|
|
2286
2299
|
});
|
|
2287
2300
|
//#endregion
|
|
2288
2301
|
//#region ../../packages/dlzn-ui/store/modules/user.ts
|
|
2289
|
-
function
|
|
2302
|
+
function Pn() {
|
|
2290
2303
|
return X.Get("getInfo", { meta: {
|
|
2291
2304
|
useFailMsg: "获取用户信息失败",
|
|
2292
2305
|
useLoading: "正在获取用户信息..."
|
|
2293
2306
|
} });
|
|
2294
2307
|
}
|
|
2295
|
-
var
|
|
2308
|
+
var Fn = {
|
|
2296
2309
|
admin: !1,
|
|
2297
2310
|
dept: { deptName: "" },
|
|
2298
2311
|
needChangePwd: 0,
|
|
2299
2312
|
nickName: "",
|
|
2300
2313
|
userId: "",
|
|
2301
2314
|
userName: ""
|
|
2302
|
-
}, Q =
|
|
2303
|
-
let e =
|
|
2315
|
+
}, Q = V("user", () => {
|
|
2316
|
+
let e = P(mt(Fn)), t = P([]), n = P([]);
|
|
2304
2317
|
function r() {
|
|
2305
|
-
e.value =
|
|
2318
|
+
e.value = mt(Fn), t.value = [], n.value = [];
|
|
2306
2319
|
}
|
|
2307
|
-
let i = b(() => e.value.admin), a =
|
|
2320
|
+
let i = b(() => e.value.admin), a = P("");
|
|
2308
2321
|
async function o(r = !0) {
|
|
2309
|
-
let i = await
|
|
2310
|
-
e.value = i.user, a.value !== e.value.userId && K().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await
|
|
2322
|
+
let i = await Pn();
|
|
2323
|
+
e.value = i.user, a.value !== e.value.userId && K().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await zt().getRouters();
|
|
2311
2324
|
}
|
|
2312
|
-
|
|
2313
|
-
e === 1 && VITE_FORCE_PWD_CHANGE &&
|
|
2314
|
-
let e =
|
|
2315
|
-
|
|
2316
|
-
body: () =>
|
|
2325
|
+
z(() => e.value.needChangePwd, (e) => {
|
|
2326
|
+
e === 1 && VITE_FORCE_PWD_CHANGE && j(() => {
|
|
2327
|
+
let e = P(null);
|
|
2328
|
+
W({
|
|
2329
|
+
body: () => O(Nn, {
|
|
2317
2330
|
labelAlign: "top",
|
|
2318
2331
|
ref: e,
|
|
2319
2332
|
showFooter: !1
|
|
@@ -2344,11 +2357,11 @@ var Pn = {
|
|
|
2344
2357
|
roles: n,
|
|
2345
2358
|
userInfo: e
|
|
2346
2359
|
};
|
|
2347
|
-
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/
|
|
2360
|
+
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
2348
2361
|
inheritAttrs: !1,
|
|
2349
2362
|
name: "TButton",
|
|
2350
2363
|
__name: "button",
|
|
2351
|
-
props: /*@__PURE__*/
|
|
2364
|
+
props: /*@__PURE__*/ k({
|
|
2352
2365
|
autoIcon: { type: Boolean },
|
|
2353
2366
|
autoLoading: { type: Boolean },
|
|
2354
2367
|
autoTheme: { type: Boolean },
|
|
@@ -2385,9 +2398,9 @@ var Pn = {
|
|
|
2385
2398
|
Object,
|
|
2386
2399
|
Array
|
|
2387
2400
|
] }
|
|
2388
|
-
},
|
|
2401
|
+
}, wt),
|
|
2389
2402
|
setup(n) {
|
|
2390
|
-
let r = n, a =
|
|
2403
|
+
let r = n, a = P("");
|
|
2391
2404
|
function o() {
|
|
2392
2405
|
if (!r.autoTheme || a.value.trim() === "") return {};
|
|
2393
2406
|
let e = /* @__PURE__ */ new Map([
|
|
@@ -2409,14 +2422,14 @@ var Pn = {
|
|
|
2409
2422
|
}
|
|
2410
2423
|
return t;
|
|
2411
2424
|
}
|
|
2412
|
-
let s =
|
|
2413
|
-
|
|
2425
|
+
let s = P(!1), c = i.isLoading, l = P(null), { focused: u } = dt(l), d, f;
|
|
2426
|
+
z(c, (e) => {
|
|
2414
2427
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2415
2428
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
2416
2429
|
}, 150)) : d === void 0 ? f = setTimeout(() => {
|
|
2417
2430
|
s.value = !1;
|
|
2418
2431
|
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
2419
|
-
}, { immediate: !0 }),
|
|
2432
|
+
}, { immediate: !0 }), z(u, (e) => {
|
|
2420
2433
|
e && c.value && (s.value = !0);
|
|
2421
2434
|
});
|
|
2422
2435
|
let p = b(() => r.loading === void 0 ? r.autoLoading ? s.value : !1 : r.loading), m = b(() => {
|
|
@@ -2428,10 +2441,10 @@ var Pn = {
|
|
|
2428
2441
|
return Object.keys(e).forEach((t) => {
|
|
2429
2442
|
e[t] === void 0 && delete e[t];
|
|
2430
2443
|
}), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
|
|
2431
|
-
}),
|
|
2432
|
-
function
|
|
2444
|
+
}), h = D();
|
|
2445
|
+
function ee(e) {
|
|
2433
2446
|
let t = e ?? {};
|
|
2434
|
-
|
|
2447
|
+
h.exposed = t, l.value = t.$el;
|
|
2435
2448
|
}
|
|
2436
2449
|
function g() {
|
|
2437
2450
|
a.value = l.value?.textContent ?? "";
|
|
@@ -2500,9 +2513,9 @@ var Pn = {
|
|
|
2500
2513
|
break;
|
|
2501
2514
|
}
|
|
2502
2515
|
if (t !== void 0) return t;
|
|
2503
|
-
}),
|
|
2516
|
+
}), v = Pe(), te = b(() => A(v, {
|
|
2504
2517
|
...m.value,
|
|
2505
|
-
ref:
|
|
2518
|
+
ref: ee
|
|
2506
2519
|
}, { class: "flex-shrink-0" })), y = b(() => {
|
|
2507
2520
|
if (r.popconfirm) return {
|
|
2508
2521
|
...r.popconfirm,
|
|
@@ -2511,33 +2524,33 @@ var Pn = {
|
|
|
2511
2524
|
}
|
|
2512
2525
|
};
|
|
2513
2526
|
});
|
|
2514
|
-
return (r, i) =>
|
|
2515
|
-
default:
|
|
2527
|
+
return (r, i) => R(Q)().checkPermissions(n.permission) ? (N(), C(ye, { key: 0 }, [y.value ? (N(), x(R(t), M(A({ key: 0 }, y.value)), {
|
|
2528
|
+
default: B(() => [(N(), x(I(O(R(Be), te.value)), {
|
|
2516
2529
|
onVnodeMounted: g,
|
|
2517
2530
|
onVnodeUpdated: g
|
|
2518
|
-
},
|
|
2531
|
+
}, Se({ _: 2 }, [n.icon || _.value ? {
|
|
2519
2532
|
name: "icon",
|
|
2520
|
-
fn:
|
|
2533
|
+
fn: B(() => [T(R(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
|
|
2521
2534
|
key: "0"
|
|
2522
|
-
} : void 0,
|
|
2535
|
+
} : void 0, F(Object.keys(r.$slots), (e) => ({
|
|
2523
2536
|
name: e,
|
|
2524
|
-
fn:
|
|
2537
|
+
fn: B((t) => [je(r.$slots, e, M(we(t)), void 0, !0)])
|
|
2525
2538
|
}))]), 1536))]),
|
|
2526
2539
|
_: 3
|
|
2527
|
-
}, 16)) : (
|
|
2540
|
+
}, 16)) : (N(), x(I(O(R(Be), te.value)), {
|
|
2528
2541
|
key: 1,
|
|
2529
2542
|
onVnodeMounted: g,
|
|
2530
2543
|
onVnodeUpdated: g
|
|
2531
|
-
},
|
|
2544
|
+
}, Se({ _: 2 }, [n.icon || _.value ? {
|
|
2532
2545
|
name: "icon",
|
|
2533
|
-
fn:
|
|
2546
|
+
fn: B(() => [T(R(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
|
|
2534
2547
|
key: "0"
|
|
2535
|
-
} : void 0,
|
|
2548
|
+
} : void 0, F(Object.keys(r.$slots), (e) => ({
|
|
2536
2549
|
name: e,
|
|
2537
|
-
fn:
|
|
2550
|
+
fn: B((t) => [je(r.$slots, e, M(we(t)), void 0, !0)])
|
|
2538
2551
|
}))]), 1536))], 64)) : S("v-if", !0);
|
|
2539
2552
|
}
|
|
2540
|
-
}), [["__scopeId", "data-v-891fff89"]]),
|
|
2553
|
+
}), [["__scopeId", "data-v-891fff89"]]), In = /* @__PURE__ */ E({
|
|
2541
2554
|
name: "TProvider",
|
|
2542
2555
|
__name: "Provider",
|
|
2543
2556
|
setup(e) {
|
|
@@ -2559,14 +2572,14 @@ var Pn = {
|
|
|
2559
2572
|
variant: "text"
|
|
2560
2573
|
})
|
|
2561
2574
|
} };
|
|
2562
|
-
return (e, n) => (
|
|
2575
|
+
return (e, n) => (N(), x(R(st), {
|
|
2563
2576
|
"empty-values": [""],
|
|
2564
|
-
locale:
|
|
2577
|
+
locale: R(Ct),
|
|
2565
2578
|
"value-on-clear": "",
|
|
2566
2579
|
"z-index": 5500
|
|
2567
2580
|
}, {
|
|
2568
|
-
default:
|
|
2569
|
-
default:
|
|
2581
|
+
default: B(() => [T(R(He), { "global-config": t }, {
|
|
2582
|
+
default: B(() => [je(e.$slots, "default")]),
|
|
2570
2583
|
_: 3
|
|
2571
2584
|
})]),
|
|
2572
2585
|
_: 3
|
|
@@ -2574,4 +2587,4 @@ var Pn = {
|
|
|
2574
2587
|
}
|
|
2575
2588
|
});
|
|
2576
2589
|
//#endregion
|
|
2577
|
-
export {
|
|
2590
|
+
export { en as A, G as B, ln as C, J as D, on as E, Ht as F, kt as H, Vt as I, jt as L, qt as M, Jt as N, an as O, Yt as P, zt as R, X as S, Y as T, Tt as U, W as V, wt as W, yn as _, Nn as a, _n as b, On as c, Tn as d, wn as f, bn as g, xn as h, Q as i, Qt as j, tn as k, Dn as l, Sn as m, $ as n, Mn as o, Cn as p, Pn as r, jn as s, In as t, En as u, hn as v, un as w, vn as x, gn as y, K as z };
|