dlzn-ui 2.0.69 → 2.0.71
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-D8N1F6Bv.css → provider-ZjwvcnkO.css} +1 -1
- package/chunks/{AssignUser-DIKWycym.mjs → AssignUser-CW4ULrl-.mjs} +3 -3
- package/chunks/{BasicInfo-D_Cszkyf.mjs → BasicInfo-CNhP2USU.mjs} +1 -1
- package/chunks/{ColumnInfo-DLIICrdq.mjs → ColumnInfo-KmZzeuMq.mjs} +2 -2
- package/chunks/{Common-B_3zuNDh.mjs → Common-B8p8gcCU.mjs} +1 -1
- package/chunks/{Day-DYFETnl3.mjs → Day-Cqa6OkRF.mjs} +1 -1
- package/chunks/{DictTypeDetail-_0mlnKDW.mjs → DictTypeDetail-JQHiiTMP.mjs} +2 -2
- package/chunks/{GenInfo-wlVNUzW1.mjs → GenInfo-COMykZnt.mjs} +1 -1
- package/chunks/{Hour-Dzyrt4ut.mjs → Hour-7mzDJP72.mjs} +1 -1
- package/chunks/{Import-B0GxHauO.mjs → Import-CfajRzVo.mjs} +2 -2
- package/chunks/{Index-onAzvCIZ.mjs → Index-BivHw-Hr.mjs} +1 -1
- package/chunks/{Index-BkbFAQhc.mjs → Index-CXv3o5Bz.mjs} +1 -1
- package/chunks/{Index-DQf0enm-.mjs → Index-D3gRKL3e.mjs} +1 -1
- package/chunks/{Index-B6_BCndz.mjs → Index-ILRusaHR.mjs} +1 -1
- package/chunks/{IndexItem-DDkMBDJ6.mjs → IndexItem-CneV3vzz.mjs} +1 -1
- package/chunks/{Log-S1TMkv7M.mjs → Log-CJ7bEKUs.mjs} +2 -2
- package/chunks/{LoginBg-B6XmgZK9.mjs → LoginBg-Cw0UbxPO.mjs} +1 -1
- package/chunks/{Minute-sYCXdsby.mjs → Minute-DM5ktcol.mjs} +1 -1
- package/chunks/{Month-CmkW0PAZ.mjs → Month-Cukr-HqT.mjs} +1 -1
- package/chunks/{Preview-mjCs2FeL.mjs → Preview-DBmYShko.mjs} +1 -1
- package/chunks/{Second-Cr3a3Pnx.mjs → Second-BUdHQX1o.mjs} +1 -1
- package/chunks/{SelectDept-tdZhmbnV.mjs → SelectDept-BuE-qe0W.mjs} +1 -1
- package/chunks/{SelectMenu-DiVhGngU.mjs → SelectMenu-Q8GtDiOu.mjs} +1 -1
- package/chunks/{SelectUser-CqDl7PKS.mjs → SelectUser-BqvEqo-l.mjs} +2 -2
- package/chunks/{UserInfo-BMhYY9sg.mjs → UserInfo-CQHI6wvw.mjs} +1 -1
- package/chunks/{app-BpeFncVQ.mjs → app-CJo9qtLZ.mjs} +1 -1
- package/chunks/{custom-page-list-oaalsTzc.mjs → custom-page-list-DnPQ63_e.mjs} +4 -4
- package/chunks/{custom-page-table-B0rrzqSh.mjs → custom-page-table-BwdWHC6w.mjs} +2 -2
- package/chunks/dropdown-BeLIkMyl.mjs +56 -0
- package/chunks/{job-CugU1doE.mjs → job-t-2BppfP.mjs} +3 -3
- package/chunks/{overview-TLMq-Vrg.mjs → overview-CsU_QFn9.mjs} +1 -1
- package/chunks/{page-list-C4nzNn2j.mjs → page-list-Bdy1Cmuf.mjs} +3 -3
- package/chunks/{page-query-B5Oy7a9f.mjs → page-query-Bu1LFDxF.mjs} +1 -1
- package/chunks/{page-table-BVNtLL1C.mjs → page-table--3QQfjqP.mjs} +3 -3
- package/chunks/{pagination-4rPfkUoD.mjs → pagination-BO-qCW39.mjs} +1 -1
- package/chunks/{provider-wXggSN7U.mjs → provider-iO4v3bSs.mjs} +347 -349
- package/chunks/{table-DYyL5X6W.mjs → table-xTiCIDe0.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/dropdown/index.d.ts +2 -0
- package/components/dropdown/index.mjs +2 -0
- package/components/dropdown/src/dropdown.d.ts +7 -0
- package/components/dropdown/src/dropdown.mjs +2 -0
- package/components/dropdown/src/dropdown.vue.d.ts +7 -0
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +9 -9
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +1 -1
- package/layout/Home1.mjs +2 -2
- package/layout/Login.mjs +2 -2
- package/layout/NotFound.mjs +1 -1
- package/layout/modules/Aside.mjs +1 -1
- package/layout/modules/Breadcrumb.mjs +1 -1
- package/layout/modules/Header.mjs +1 -1
- package/layout/modules/LoginBg.mjs +1 -1
- package/layout/profile/Index.mjs +2 -2
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/main.mjs +2 -2
- package/package.json +1 -1
- package/plugins/autoImport/$alova/index.mjs +1 -1
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +1 -1
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +3 -3
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +1 -1
- package/views/monitor/cache/index.mjs +2 -2
- package/views/monitor/cacheList/index.mjs +2 -2
- package/views/monitor/job/index.mjs +1 -1
- package/views/monitor/logininfor/index.mjs +2 -2
- package/views/monitor/online/index.mjs +2 -2
- package/views/monitor/operlog/index.mjs +2 -2
- package/views/monitor/server/index.mjs +2 -2
- package/views/system/config/index.mjs +2 -2
- package/views/system/dept/index.mjs +2 -2
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +3 -3
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +2 -2
- package/views/system/menu/utils.mjs +1 -1
- package/views/system/notice/index.mjs +2 -2
- package/views/system/post/index.mjs +2 -2
- package/views/system/role/index.mjs +5 -5
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +3 -3
- package/views/tool/gen/editTable/index.mjs +4 -4
- package/views/tool/gen/editTable/modules/BasicInfo.mjs +1 -1
- package/views/tool/gen/editTable/modules/ColumnInfo.mjs +1 -1
- package/views/tool/gen/editTable/modules/GenInfo.mjs +1 -1
- package/views/tool/gen/index.mjs +4 -4
- package/views/tool/gen/modules/Import.mjs +1 -1
- package/views/tool/gen/modules/Preview.mjs +1 -1
- package/views/tool/job/index.mjs +1 -1
- package/views/tool/job/modules/Log.mjs +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../assets/css-Ctf0Amkf.css';import '../assets/provider-
|
|
1
|
+
import '../assets/css-Ctf0Amkf.css';import '../assets/provider-ZjwvcnkO.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";
|
|
@@ -27,40 +27,42 @@ import { t as te } from "./image-cancjWRE.mjs";
|
|
|
27
27
|
import "../components/image/index.mjs";
|
|
28
28
|
import ne from "../views/index.mjs";
|
|
29
29
|
import { t as re } from "./MenuNode-BVu_0JxZ.mjs";
|
|
30
|
-
import ie from "
|
|
31
|
-
import
|
|
32
|
-
import
|
|
30
|
+
import { t as ie } from "./dropdown-BeLIkMyl.mjs";
|
|
31
|
+
import "../components/dropdown/index.mjs";
|
|
32
|
+
import ae from "../hooks/useContextMenu/index.mjs";
|
|
33
|
+
import oe, { useClearList as se } from "../hooks/useList/index.mjs";
|
|
34
|
+
import { t as ce } from "./color-picker-BVropPi4.mjs";
|
|
33
35
|
import "../components/color-picker/index.mjs";
|
|
34
|
-
import { n as
|
|
36
|
+
import { n as le, t as ue } from "./input-UQjpNb61.mjs";
|
|
35
37
|
import "../components/input/index.mjs";
|
|
36
|
-
import { t as
|
|
38
|
+
import { t as de } from "./date-picker-BaOpewZr.mjs";
|
|
37
39
|
import "../components/date-picker/index.mjs";
|
|
38
|
-
import { t as
|
|
40
|
+
import { t as fe } from "./input-number-7Y1iWPPV.mjs";
|
|
39
41
|
import "../components/input-number/index.mjs";
|
|
40
|
-
import { t as
|
|
42
|
+
import { t as pe } from "./range-input-PIfE-AxB.mjs";
|
|
41
43
|
import "../components/range-input/index.mjs";
|
|
42
|
-
import { n as
|
|
44
|
+
import { n as me, t as he } from "./tag-input-BuAFWI1F.mjs";
|
|
43
45
|
import "../components/tag-input/index.mjs";
|
|
44
|
-
import { t as
|
|
46
|
+
import { t as ge } from "./slider-DSeKLd2m.mjs";
|
|
45
47
|
import "../components/slider/index.mjs";
|
|
46
|
-
import { t as
|
|
48
|
+
import { t as _e } from "./switch-DNPmkfa_.mjs";
|
|
47
49
|
import "../components/switch/index.mjs";
|
|
48
|
-
import { t as
|
|
50
|
+
import { t as ve } from "./textarea-CYirMH7f.mjs";
|
|
49
51
|
import "../components/textarea/index.mjs";
|
|
50
|
-
import { Fragment as x, KeepAlive as
|
|
51
|
-
import { Breadcrumb as
|
|
52
|
-
import { ElConfigProvider as
|
|
53
|
-
import { useElementSize as
|
|
54
|
-
import { cloneDeep as
|
|
55
|
-
import { defineStore as
|
|
56
|
-
import { NavigationFailureType as
|
|
57
|
-
import
|
|
58
|
-
import { createAlova as
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
52
|
+
import { Fragment as x, KeepAlive as ye, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as be, createSlots as xe, createTextVNode as E, createVNode as D, defineAsyncComponent as Se, defineComponent as O, getCurrentInstance as k, guardReactiveProps as Ce, h as A, inject as we, markRaw as Te, mergeDefaults as j, mergeProps as M, nextTick as N, normalizeClass as Ee, normalizeProps as P, onMounted as De, openBlock as F, provide as Oe, reactive as ke, ref as I, renderList as L, renderSlot as Ae, resolveComponent as je, resolveDynamicComponent as R, shallowRef as Me, toDisplayString as z, unref as B, useAttrs as Ne, useSlots as Pe, useTemplateRef as Fe, watch as V, withCtx as H, withModifiers as Ie } from "vue";
|
|
53
|
+
import { Breadcrumb as Le, BreadcrumbItem as Re, Button as ze, CheckboxGroup as Be, ConfigProvider as Ve, Content as He, DialogPlugin as Ue, Drawer as We, DrawerPlugin as Ge, Form as Ke, FormItem as qe, HeadMenu as Je, Header as Ye, InputAdornment as Xe, Layout as Ze, Menu as Qe, MenuItem as $e, RadioGroup as et, Select as tt, Tree as nt, TreeSelect as rt, Upload as it } from "tdesign-vue-next";
|
|
54
|
+
import { ElConfigProvider as at } from "element-plus";
|
|
55
|
+
import { useElementSize as ot, useElementVisibility as st, useFavicon as ct, useFocus as lt, useMutationObserver as ut, useResizeObserver as dt } from "@vueuse/core";
|
|
56
|
+
import { cloneDeep as ft, isPlainObject as pt } from "lodash-es";
|
|
57
|
+
import { defineStore as mt } from "pinia";
|
|
58
|
+
import { NavigationFailureType as ht, createRouter as gt, createWebHistory as _t, isNavigationFailure as vt, useRoute as U, useRouter as yt } from "vue-router";
|
|
59
|
+
import bt from "virtual:dlzn-ui/app-params";
|
|
60
|
+
import { createAlova as xt } from "alova";
|
|
61
|
+
import St from "alova/fetch";
|
|
62
|
+
import Ct from "alova/vue";
|
|
63
|
+
import wt from "path-browserify";
|
|
62
64
|
//#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
|
|
65
|
+
var Tt = {
|
|
64
66
|
name: "zh-cn",
|
|
65
67
|
el: {
|
|
66
68
|
breadcrumb: { label: "面包屑" },
|
|
@@ -241,15 +243,15 @@ var wt = {
|
|
|
241
243
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
242
244
|
}
|
|
243
245
|
}
|
|
244
|
-
},
|
|
246
|
+
}, Et = {
|
|
245
247
|
autoIcon: !0,
|
|
246
248
|
autoLoading: !0,
|
|
247
249
|
autoTheme: !0,
|
|
248
250
|
loading: void 0
|
|
249
|
-
},
|
|
251
|
+
}, Dt = {
|
|
250
252
|
autoLabelWidth: !0,
|
|
251
253
|
colon: !0,
|
|
252
|
-
data: () =>
|
|
254
|
+
data: () => ke({}),
|
|
253
255
|
disabled: !1,
|
|
254
256
|
labelAlign: "top",
|
|
255
257
|
layout: "inline",
|
|
@@ -259,15 +261,15 @@ var wt = {
|
|
|
259
261
|
requiredMark: void 0,
|
|
260
262
|
resetType: "initial",
|
|
261
263
|
showErrorMessage: !0
|
|
262
|
-
},
|
|
264
|
+
}, Ot = /* @__PURE__ */ function(e) {
|
|
263
265
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
264
|
-
}(
|
|
265
|
-
function
|
|
266
|
-
let i = S(() => typeof t.body == "function" ? t.body(
|
|
266
|
+
}(Ot || {}), kt = /* @__PURE__ */ new Set();
|
|
267
|
+
function At(e, t, n) {
|
|
268
|
+
let i = S(() => typeof t.body == "function" ? t.body(A) : t.body), a = I(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: o, stop: s } = st(a, {
|
|
267
269
|
controls: !0,
|
|
268
270
|
initialValue: !0
|
|
269
271
|
}), c = {
|
|
270
|
-
closeBtn: () =>
|
|
272
|
+
closeBtn: () => A($, {
|
|
271
273
|
icon: "mdi:close",
|
|
272
274
|
shape: "circle",
|
|
273
275
|
size: "small",
|
|
@@ -284,39 +286,39 @@ function kt(e, t, n) {
|
|
|
284
286
|
placement: "center",
|
|
285
287
|
width: "fit-content",
|
|
286
288
|
...t ?? {},
|
|
287
|
-
body: () =>
|
|
289
|
+
body: () => A(zn, {}, { default: () => i.value })
|
|
288
290
|
}, l, u = {
|
|
289
291
|
...c,
|
|
290
292
|
onClosed: () => {
|
|
291
|
-
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(),
|
|
293
|
+
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(), kt.delete(l);
|
|
292
294
|
}
|
|
293
295
|
};
|
|
294
296
|
delete u.closeWhenCloseAll;
|
|
295
297
|
let d = r();
|
|
296
|
-
return l = e === void 0 ?
|
|
298
|
+
return l = e === void 0 ? Ue(u, n ?? d) : Ue[e](u, n ?? d), c.closeWhenCloseAll && kt.add(l), l;
|
|
297
299
|
}
|
|
298
|
-
var
|
|
299
|
-
return
|
|
300
|
+
var jt = function(...e) {
|
|
301
|
+
return At(void 0, ...e);
|
|
300
302
|
};
|
|
301
|
-
Object.values(
|
|
302
|
-
|
|
303
|
-
|
|
303
|
+
Object.values(Ot).forEach((e) => {
|
|
304
|
+
jt[e] = e === "closeAll" ? () => {
|
|
305
|
+
kt.forEach((e) => {
|
|
304
306
|
e.hide();
|
|
305
307
|
});
|
|
306
|
-
} : (...t) =>
|
|
308
|
+
} : (...t) => At(e, ...t);
|
|
307
309
|
});
|
|
308
310
|
//#endregion
|
|
309
311
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
310
|
-
var
|
|
312
|
+
var W = (e, t) => {
|
|
311
313
|
let n = { ...typeof e == "string" ? {} : e };
|
|
312
314
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
313
|
-
let a =
|
|
315
|
+
let a = jt(typeof e == "string" ? {
|
|
314
316
|
body: e,
|
|
315
317
|
onConfirm: () => {
|
|
316
318
|
a.hide(), r();
|
|
317
319
|
},
|
|
318
320
|
theme: "warning"
|
|
319
|
-
} :
|
|
321
|
+
} : ke({
|
|
320
322
|
...n,
|
|
321
323
|
onClose: (t) => {
|
|
322
324
|
let { trigger: n } = t;
|
|
@@ -336,8 +338,8 @@ var G = (e, t) => {
|
|
|
336
338
|
};
|
|
337
339
|
//#endregion
|
|
338
340
|
//#region ../../packages/dlzn-ui/store/modules/common.ts
|
|
339
|
-
function
|
|
340
|
-
return VITE_APP_ID === "1" ?
|
|
341
|
+
function Mt() {
|
|
342
|
+
return VITE_APP_ID === "1" ? Y.Get(`yq/oemConfig/getByDomain/${window.location.hostname}`, {
|
|
341
343
|
meta: { useToken: !1 },
|
|
342
344
|
transform(e) {
|
|
343
345
|
if (e === null) throw Error("oemConfig getByDomain return null");
|
|
@@ -348,26 +350,26 @@ function jt() {
|
|
|
348
350
|
version: ""
|
|
349
351
|
};
|
|
350
352
|
}
|
|
351
|
-
}) :
|
|
353
|
+
}) : Y.Get("common/appInfo", { meta: {
|
|
352
354
|
useFailMsg: !1,
|
|
353
355
|
useSysFailMsg: !1,
|
|
354
356
|
useToken: !1
|
|
355
357
|
} });
|
|
356
358
|
}
|
|
357
|
-
var
|
|
358
|
-
let e =
|
|
359
|
+
var G = mt("common", () => {
|
|
360
|
+
let e = I(!0), t = I(250), n = I({
|
|
359
361
|
appName: "",
|
|
360
362
|
color: "",
|
|
361
363
|
logo: "",
|
|
362
364
|
version: ""
|
|
363
365
|
});
|
|
364
|
-
|
|
366
|
+
V(() => n.value.appName, (e) => {
|
|
365
367
|
e && (document.title = e);
|
|
366
|
-
}),
|
|
368
|
+
}), V(() => n.value.color, (e) => {
|
|
367
369
|
e && (v().value = e);
|
|
368
|
-
}),
|
|
370
|
+
}), ct(S(() => n.value.logo || "/favicon.ico"));
|
|
369
371
|
function r() {
|
|
370
|
-
|
|
372
|
+
Mt().then((e) => {
|
|
371
373
|
n.value = e;
|
|
372
374
|
}).catch((e) => {
|
|
373
375
|
n.value = {
|
|
@@ -378,7 +380,7 @@ var K = pt("common", () => {
|
|
|
378
380
|
}, console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
|
|
379
381
|
});
|
|
380
382
|
}
|
|
381
|
-
let i =
|
|
383
|
+
let i = I(!0), a = null;
|
|
382
384
|
function o() {
|
|
383
385
|
a !== null && (clearTimeout(a), a = null), i.value = !1, a = setTimeout(() => {
|
|
384
386
|
i.value = !0;
|
|
@@ -392,13 +394,13 @@ var K = pt("common", () => {
|
|
|
392
394
|
isRequestSleep: i,
|
|
393
395
|
requestActive: o
|
|
394
396
|
};
|
|
395
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }),
|
|
396
|
-
let e =
|
|
397
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), K = mt("recentRouters", () => {
|
|
398
|
+
let e = I([]), t = U(), n = yt();
|
|
397
399
|
function r() {
|
|
398
400
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
399
401
|
}
|
|
400
402
|
function i(t, n) {
|
|
401
|
-
let r =
|
|
403
|
+
let r = ft(n), i = e.value.findIndex((e) => e.name === r.name || ln(e.name).meta.title === ln(r.name).meta.title);
|
|
402
404
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
403
405
|
let n = e.value.findIndex((e) => e.name === t);
|
|
404
406
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -429,16 +431,16 @@ var K = pt("common", () => {
|
|
|
429
431
|
}, { persist: { pick: ["recentRouters"] } });
|
|
430
432
|
//#endregion
|
|
431
433
|
//#region ../../packages/dlzn-ui/store/modules/router.ts
|
|
432
|
-
function
|
|
433
|
-
return
|
|
434
|
+
function Nt() {
|
|
435
|
+
return Y.Get("getRouters", { meta: {
|
|
434
436
|
useFailMsg: "获取用户路由失败",
|
|
435
437
|
useLoading: "正在获取用户路由..."
|
|
436
438
|
} });
|
|
437
439
|
}
|
|
438
|
-
function
|
|
440
|
+
function Pt(e) {
|
|
439
441
|
return e.children !== void 0 || e.component !== void 0;
|
|
440
442
|
}
|
|
441
|
-
function
|
|
443
|
+
function Ft(e) {
|
|
442
444
|
let t = [];
|
|
443
445
|
return e.forEach((e) => {
|
|
444
446
|
e.path === "/" ? t.push({
|
|
@@ -447,7 +449,7 @@ function Pt(e) {
|
|
|
447
449
|
}) : t.push(e);
|
|
448
450
|
}), t;
|
|
449
451
|
}
|
|
450
|
-
function
|
|
452
|
+
function It(e) {
|
|
451
453
|
let t = (e, n) => {
|
|
452
454
|
let r = [];
|
|
453
455
|
return e.forEach((e) => {
|
|
@@ -471,12 +473,12 @@ function Ft(e) {
|
|
|
471
473
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
472
474
|
}
|
|
473
475
|
}
|
|
474
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
476
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = Bt(e)), Pt(i) && r.push(i);
|
|
475
477
|
}), r;
|
|
476
|
-
}, n =
|
|
478
|
+
}, n = cn();
|
|
477
479
|
return n.children.push(...e), t([n], null);
|
|
478
480
|
}
|
|
479
|
-
function
|
|
481
|
+
function Lt(e) {
|
|
480
482
|
let t = (e) => {
|
|
481
483
|
let n = [...e], r = n.length;
|
|
482
484
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -489,36 +491,36 @@ function It(e) {
|
|
|
489
491
|
};
|
|
490
492
|
return t(e);
|
|
491
493
|
}
|
|
492
|
-
var
|
|
493
|
-
function
|
|
494
|
+
var Rt = [];
|
|
495
|
+
function zt(e) {
|
|
494
496
|
return `./${e.split("___")[0]}.vue`;
|
|
495
497
|
}
|
|
496
|
-
function
|
|
498
|
+
function Bt(e) {
|
|
497
499
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
498
|
-
let t = e.component, n = typeof t == "string" ? ne[
|
|
500
|
+
let t = e.component, n = typeof t == "string" ? ne[zt(t)] : t;
|
|
499
501
|
if (n === void 0) {
|
|
500
|
-
let e = `路由组件${
|
|
502
|
+
let e = `路由组件${zt(t)}不存在`;
|
|
501
503
|
return console.error(e), h["./NotFound.vue"];
|
|
502
504
|
}
|
|
503
|
-
return typeof t == "string" &&
|
|
505
|
+
return typeof t == "string" && Rt.push(zt(t)), () => n().then((t) => ({
|
|
504
506
|
...t.default,
|
|
505
507
|
name: e.name
|
|
506
508
|
}));
|
|
507
509
|
}
|
|
508
510
|
return e.component;
|
|
509
511
|
}
|
|
510
|
-
var
|
|
511
|
-
let e =
|
|
512
|
+
var Vt = mt("router", () => {
|
|
513
|
+
let e = I([]), t = yt(), r = Q();
|
|
512
514
|
async function i() {
|
|
513
|
-
let i = await
|
|
515
|
+
let i = await Nt();
|
|
514
516
|
VITE_MODE === "development" && r.isAdmin && fetch("/__dev__/save-folder-alias", {
|
|
515
517
|
body: JSON.stringify(i),
|
|
516
518
|
headers: { "Content-Type": "application/json" },
|
|
517
519
|
method: "POST"
|
|
518
520
|
}).catch((e) => {
|
|
519
521
|
console.warn("[dev-save-folder-alias] 写入本地 json 失败", e);
|
|
520
|
-
}),
|
|
521
|
-
if (!
|
|
522
|
+
}), Rt.length = 0, e.value = Te(Lt(It(Ft(i)))), r.isAdmin && Object.keys(ne).forEach((e) => {
|
|
523
|
+
if (!Rt.includes(e) && ![
|
|
522
524
|
"./tool",
|
|
523
525
|
"./system",
|
|
524
526
|
"./monitor"
|
|
@@ -528,7 +530,7 @@ var Bt = pt("router", () => {
|
|
|
528
530
|
}
|
|
529
531
|
}), t.hasRoute("Index") && t.removeRoute("Index"), e.value.forEach((e) => {
|
|
530
532
|
t.addRoute(e);
|
|
531
|
-
}),
|
|
533
|
+
}), K().init();
|
|
532
534
|
}
|
|
533
535
|
function a() {
|
|
534
536
|
e.value.forEach((e) => {
|
|
@@ -540,11 +542,11 @@ var Bt = pt("router", () => {
|
|
|
540
542
|
getRouters: i,
|
|
541
543
|
routersRaw: e
|
|
542
544
|
};
|
|
543
|
-
}),
|
|
545
|
+
}), Ht = { class: "ml-2! flex items-center" }, Ut = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
544
546
|
__name: "Aside",
|
|
545
547
|
setup(e) {
|
|
546
|
-
let t =
|
|
547
|
-
|
|
548
|
+
let t = U(), n = G(), r = S(() => n.appInfo.appName), i = Vt(), a = I([]);
|
|
549
|
+
V(() => t.name, () => {
|
|
548
550
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
549
551
|
a.value.includes(e) || a.value.push(e);
|
|
550
552
|
});
|
|
@@ -552,34 +554,34 @@ var Bt = pt("router", () => {
|
|
|
552
554
|
let o = S(() => {
|
|
553
555
|
let { hidden: e, parentName: n } = t.meta;
|
|
554
556
|
return n !== "" && e === !0 ? n : t.name;
|
|
555
|
-
}), s = S(() => n.appInfo.logo ||
|
|
556
|
-
return (e, t) => (
|
|
557
|
+
}), s = S(() => n.appInfo.logo || bt.asideTopLogoUrl);
|
|
558
|
+
return (e, t) => (F(), C(B(Qe), {
|
|
557
559
|
expanded: a.value,
|
|
558
560
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
559
561
|
class: "w-full!",
|
|
560
562
|
value: o.value
|
|
561
563
|
}, {
|
|
562
|
-
logo:
|
|
564
|
+
logo: H(() => [be("div", Ht, [D(B(te), {
|
|
563
565
|
class: "logo",
|
|
564
566
|
src: s.value,
|
|
565
567
|
style: {
|
|
566
568
|
width: "28px",
|
|
567
569
|
height: "28px"
|
|
568
570
|
}
|
|
569
|
-
}, null, 8, ["src"]), D(
|
|
571
|
+
}, null, 8, ["src"]), D(B(ee), {
|
|
570
572
|
"animation-speed": 8,
|
|
571
573
|
"class-name": "ml-2 text-xl !font-bold",
|
|
572
574
|
"show-border": !1,
|
|
573
575
|
text: r.value
|
|
574
576
|
}, null, 8, ["text"])])]),
|
|
575
|
-
default:
|
|
577
|
+
default: H(() => [D(re, { model: B(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
576
578
|
_: 1
|
|
577
579
|
}, 8, ["expanded", "value"]));
|
|
578
580
|
}
|
|
579
|
-
}), [["__scopeId", "data-v-36275803"]]),
|
|
581
|
+
}), [["__scopeId", "data-v-36275803"]]), Wt = /* @__PURE__ */ O({
|
|
580
582
|
__name: "Breadcrumb",
|
|
581
583
|
setup(e, { expose: t }) {
|
|
582
|
-
let n =
|
|
584
|
+
let n = U(), r = yt(), i = K(), a = S(() => {
|
|
583
585
|
let e = n.matched.map((e) => ({
|
|
584
586
|
name: e.name,
|
|
585
587
|
title: e.meta.title
|
|
@@ -592,96 +594,96 @@ var Bt = pt("router", () => {
|
|
|
592
594
|
function o(e) {
|
|
593
595
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
594
596
|
}
|
|
595
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (
|
|
597
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (F(), C(B(Le), {
|
|
596
598
|
key: 0,
|
|
597
599
|
class: "absolute top-px z-10 py-1!"
|
|
598
600
|
}, {
|
|
599
|
-
default:
|
|
601
|
+
default: H(() => [(F(!0), T(x, null, L(a.value, (e) => (F(), C(B(Re), {
|
|
600
602
|
key: e.name,
|
|
601
603
|
disabled: e.disabled,
|
|
602
604
|
onClick: (t) => o(e.name)
|
|
603
605
|
}, {
|
|
604
|
-
default:
|
|
606
|
+
default: H(() => [E(z(e.title), 1)]),
|
|
605
607
|
_: 2
|
|
606
608
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
607
609
|
_: 1
|
|
608
610
|
})) : w("v-if", !0);
|
|
609
611
|
}
|
|
610
|
-
}),
|
|
611
|
-
function
|
|
612
|
-
let t =
|
|
612
|
+
}), Gt = /* @__PURE__ */ new Map();
|
|
613
|
+
function Kt(e) {
|
|
614
|
+
let t = Y.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
613
615
|
...e,
|
|
614
616
|
label: e.userName,
|
|
615
617
|
value: e.userId
|
|
616
618
|
})));
|
|
617
619
|
e.forEach((e) => {
|
|
618
|
-
|
|
620
|
+
Gt.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
619
621
|
});
|
|
620
622
|
}
|
|
621
|
-
var
|
|
622
|
-
function
|
|
623
|
-
return
|
|
623
|
+
var qt = [];
|
|
624
|
+
function Jt(e) {
|
|
625
|
+
return qt.includes(e) || qt.push(e), new Promise((t) => {
|
|
624
626
|
setTimeout(() => {
|
|
625
|
-
let n =
|
|
626
|
-
n.length > 0 &&
|
|
627
|
+
let n = qt.filter((e) => !Gt.has(e));
|
|
628
|
+
n.length > 0 && Kt(n), qt.length = 0, Gt.get(e).then((e) => {
|
|
627
629
|
t(e);
|
|
628
630
|
});
|
|
629
631
|
});
|
|
630
632
|
});
|
|
631
633
|
}
|
|
632
|
-
var
|
|
633
|
-
function
|
|
634
|
-
|
|
634
|
+
var q = /* @__PURE__ */ new Map();
|
|
635
|
+
function Yt() {
|
|
636
|
+
qt.length = 0, Gt.clear(), q.clear();
|
|
635
637
|
}
|
|
636
|
-
function
|
|
637
|
-
|
|
638
|
-
|
|
638
|
+
function Xt(e) {
|
|
639
|
+
Gt.delete(e), q.has(e) && Jt(e).then((t) => {
|
|
640
|
+
q.get(e).value = t;
|
|
639
641
|
});
|
|
640
642
|
}
|
|
641
|
-
function
|
|
643
|
+
function Zt(e) {
|
|
642
644
|
let t;
|
|
643
|
-
return
|
|
645
|
+
return q.has(e) ? t = q.get(e) : (t = I(null), q.set(e, t), Jt(e).then((e) => {
|
|
644
646
|
t.value = e;
|
|
645
647
|
})), t;
|
|
646
648
|
}
|
|
647
649
|
//#endregion
|
|
648
650
|
//#region ../../packages/dlzn-ui/store/modules/login.ts
|
|
649
|
-
function
|
|
650
|
-
return
|
|
651
|
+
function Qt(e) {
|
|
652
|
+
return Y.Post("login", e, { meta: {
|
|
651
653
|
useLoading: "登录中...",
|
|
652
654
|
useToken: !1
|
|
653
655
|
} });
|
|
654
656
|
}
|
|
655
|
-
function
|
|
656
|
-
return
|
|
657
|
+
function $t() {
|
|
658
|
+
return Y.Post("logout", void 0, { meta: {
|
|
657
659
|
useLoading: "退出登录中...",
|
|
658
660
|
useSuccessMsg: !0
|
|
659
661
|
} });
|
|
660
662
|
}
|
|
661
|
-
var
|
|
662
|
-
let e =
|
|
663
|
+
var en = mt("login", () => {
|
|
664
|
+
let e = I(""), t = U(), n = yt();
|
|
663
665
|
async function r(t) {
|
|
664
|
-
let n = await
|
|
666
|
+
let n = await Qt(t);
|
|
665
667
|
e.value = n.token, await Q().getUserInfo();
|
|
666
668
|
}
|
|
667
669
|
function i() {
|
|
668
|
-
e.value = "", y().clear(),
|
|
670
|
+
e.value = "", y().clear(), Vt().clear(), Q().clear(), vn(), Yt(), se();
|
|
669
671
|
}
|
|
670
|
-
|
|
672
|
+
V(() => t.name, () => {
|
|
671
673
|
t.name === "Login" && i();
|
|
672
674
|
});
|
|
673
675
|
async function a() {
|
|
674
|
-
await
|
|
676
|
+
await $t(), await n.push({ name: "Login" }), i();
|
|
675
677
|
}
|
|
676
678
|
return {
|
|
677
679
|
login: r,
|
|
678
680
|
logout: a,
|
|
679
681
|
token: e
|
|
680
682
|
};
|
|
681
|
-
}, { persist: { pick: ["token"] } }),
|
|
683
|
+
}, { persist: { pick: ["token"] } }), tn = { class: "flex items-center justify-between" }, nn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
682
684
|
__name: "Header",
|
|
683
685
|
setup(t) {
|
|
684
|
-
let n =
|
|
686
|
+
let n = U(), r = yt(), i = Q(), a = G(), o = K();
|
|
685
687
|
function s(e) {
|
|
686
688
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
687
689
|
}
|
|
@@ -690,7 +692,7 @@ var $t = pt("login", () => {
|
|
|
690
692
|
}
|
|
691
693
|
let l = async (e) => {
|
|
692
694
|
let { value: t } = e;
|
|
693
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await
|
|
695
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await W("确定要退出登录吗?"), en().logout());
|
|
694
696
|
}, u = _.isMd;
|
|
695
697
|
function d(e, t) {
|
|
696
698
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
@@ -712,79 +714,75 @@ var $t = pt("login", () => {
|
|
|
712
714
|
onClick: () => {
|
|
713
715
|
l > s && r.push(u), o.recentRouters = o.recentRouters.slice(0, s + 1);
|
|
714
716
|
}
|
|
715
|
-
}),
|
|
717
|
+
}), ae(e, i);
|
|
716
718
|
}
|
|
717
|
-
return (t, r) => (
|
|
718
|
-
default:
|
|
719
|
+
return (t, r) => (F(), C(B(Ye), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
720
|
+
default: H(() => [D(B(Je), {
|
|
719
721
|
"expand-type": "popup",
|
|
720
|
-
value:
|
|
722
|
+
value: B(n).name,
|
|
721
723
|
onChange: s
|
|
722
724
|
}, {
|
|
723
|
-
logo:
|
|
725
|
+
logo: H(() => [D(B($), {
|
|
724
726
|
class: "ml-0! shrink-0",
|
|
725
727
|
shape: "circle",
|
|
726
728
|
size: "large",
|
|
727
729
|
variant: "text",
|
|
728
|
-
onClick: r[0] ||= (e) =>
|
|
730
|
+
onClick: r[0] ||= (e) => B(a).drawerOpen = !B(a).drawerOpen
|
|
729
731
|
}, {
|
|
730
|
-
default:
|
|
732
|
+
default: H(() => [D(B(e), { icon: "lineicons:menu-hamburger-1" })]),
|
|
731
733
|
_: 1
|
|
732
734
|
})]),
|
|
733
|
-
operations:
|
|
735
|
+
operations: H(() => [B(h)["./modules/HeaderOperations.vue"] === void 0 ? w("v-if", !0) : (F(), C(R(Se(B(h)["./modules/HeaderOperations.vue"])), { key: 0 })), D(B(ie), {
|
|
734
736
|
options: [{
|
|
735
737
|
content: "个人中心",
|
|
736
738
|
value: "profile",
|
|
737
|
-
prefixIcon: () =>
|
|
739
|
+
prefixIcon: () => A(B(e), {
|
|
738
740
|
icon: "material-symbols:account-circle",
|
|
739
741
|
size: "16"
|
|
740
742
|
})
|
|
741
743
|
}, {
|
|
742
744
|
content: "退出登录",
|
|
743
745
|
value: "logout",
|
|
744
|
-
prefixIcon: () =>
|
|
746
|
+
prefixIcon: () => A(B(e), {
|
|
745
747
|
icon: "material-symbols:logout",
|
|
746
748
|
size: "16"
|
|
747
749
|
})
|
|
748
750
|
}],
|
|
749
|
-
placement: "bottom",
|
|
750
|
-
trigger: "click",
|
|
751
751
|
onClick: l
|
|
752
752
|
}, {
|
|
753
|
-
default:
|
|
753
|
+
default: H(() => [B(u) ? (F(), C(B($), {
|
|
754
754
|
key: 0,
|
|
755
|
+
icon: "material-symbols:account-circle",
|
|
755
756
|
shape: "square",
|
|
756
757
|
variant: "text"
|
|
757
|
-
}, {
|
|
758
|
-
icon: U(() => [D(V(e), { icon: "material-symbols:account-circle" })]),
|
|
759
|
-
_: 1
|
|
760
|
-
})) : (I(), C(V($), {
|
|
758
|
+
})) : (F(), C(B($), {
|
|
761
759
|
key: 1,
|
|
760
|
+
icon: "material-symbols:account-circle",
|
|
762
761
|
variant: "text"
|
|
763
762
|
}, {
|
|
764
|
-
|
|
765
|
-
suffix: U(() => [D(V(e), {
|
|
763
|
+
suffix: H(() => [D(B(e), {
|
|
766
764
|
icon: "icon-park-outline:down",
|
|
767
765
|
size: "18"
|
|
768
766
|
})]),
|
|
769
|
-
default:
|
|
767
|
+
default: H(() => [E(z(B(i).userInfo.userName) + " ", 1)]),
|
|
770
768
|
_: 1
|
|
771
769
|
}))]),
|
|
772
770
|
_: 1
|
|
773
771
|
}, 8, ["options"])]),
|
|
774
|
-
default:
|
|
772
|
+
default: H(() => [(F(!0), T(x, null, L(B(o).recentRouters, (t) => (F(), C(B($e), {
|
|
775
773
|
key: t.name,
|
|
776
774
|
value: t.name,
|
|
777
775
|
onContextmenu: (e) => d(e, t.name)
|
|
778
776
|
}, {
|
|
779
|
-
default:
|
|
777
|
+
default: H(() => [be("div", tn, [be("span", null, z(B(ln)(t.name).meta.title), 1), B(o).recentRouters.length > 1 ? (F(), C(B($), {
|
|
780
778
|
key: 0,
|
|
781
779
|
class: "ml-1!",
|
|
782
780
|
shape: "square",
|
|
783
781
|
size: "small",
|
|
784
782
|
variant: "text",
|
|
785
|
-
onClick:
|
|
783
|
+
onClick: Ie((e) => c(t.name), ["stop"])
|
|
786
784
|
}, {
|
|
787
|
-
icon:
|
|
785
|
+
icon: H(() => [D(B(e), {
|
|
788
786
|
icon: "material-symbols:close",
|
|
789
787
|
style: { "font-size": "12px !important" }
|
|
790
788
|
})]),
|
|
@@ -797,40 +795,40 @@ var $t = pt("login", () => {
|
|
|
797
795
|
_: 1
|
|
798
796
|
}));
|
|
799
797
|
}
|
|
800
|
-
}), [["__scopeId", "data-v-
|
|
798
|
+
}), [["__scopeId", "data-v-d0eace7a"]]), rn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
801
799
|
__name: "Entry",
|
|
802
800
|
setup(e) {
|
|
803
|
-
let t =
|
|
801
|
+
let t = U(), n = G(), r = K(), i = y(), a = S(() => r.recentRouters.filter((e) => ln(e.name).meta.noCache === !1).map((e) => e.name)), o = Fe("breadcrumb"), s = S(() => (o.value?.items.length ?? 0) > 0), c = S(() => _.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), l = _.isMd, u = Fe("contentRef"), { height: d } = ot(u);
|
|
804
802
|
function f({ size: e }) {
|
|
805
803
|
n.drawerSize = e;
|
|
806
804
|
}
|
|
807
805
|
let p = S(() => t.meta.fullScreen);
|
|
808
806
|
return (e, t) => {
|
|
809
|
-
let r =
|
|
810
|
-
return p.value ? (
|
|
811
|
-
default:
|
|
807
|
+
let r = je("RouterView");
|
|
808
|
+
return p.value ? (F(), C(r, { key: 0 }, {
|
|
809
|
+
default: H(({ Component: e }) => [(F(), C(R(e)))]),
|
|
812
810
|
_: 1
|
|
813
|
-
})) : (
|
|
811
|
+
})) : (F(), C(B(Ze), {
|
|
814
812
|
key: 1,
|
|
815
813
|
class: "h-full"
|
|
816
814
|
}, {
|
|
817
|
-
default:
|
|
818
|
-
D(
|
|
819
|
-
D(
|
|
820
|
-
visible:
|
|
821
|
-
"onUpdate:visible": t[0] ||= (e) =>
|
|
815
|
+
default: H(() => [
|
|
816
|
+
D(nn),
|
|
817
|
+
D(B(We), {
|
|
818
|
+
visible: B(n).drawerOpen,
|
|
819
|
+
"onUpdate:visible": t[0] ||= (e) => B(n).drawerOpen = e,
|
|
822
820
|
footer: !1,
|
|
823
|
-
mode:
|
|
821
|
+
mode: B(l) ? "overlay" : "push",
|
|
824
822
|
placement: "left",
|
|
825
|
-
"show-overlay":
|
|
826
|
-
size:
|
|
823
|
+
"show-overlay": B(l),
|
|
824
|
+
size: B(l) ? "200px" : `${B(n).drawerSize}px`,
|
|
827
825
|
"size-draggable": {
|
|
828
826
|
max: 450,
|
|
829
827
|
min: 180
|
|
830
828
|
},
|
|
831
829
|
onSizeDragEnd: f
|
|
832
830
|
}, {
|
|
833
|
-
default:
|
|
831
|
+
default: H(() => [D(Ut, { class: "no_drawer_body_padding" })]),
|
|
834
832
|
_: 1
|
|
835
833
|
}, 8, [
|
|
836
834
|
"visible",
|
|
@@ -838,27 +836,27 @@ var $t = pt("login", () => {
|
|
|
838
836
|
"show-overlay",
|
|
839
837
|
"size"
|
|
840
838
|
]),
|
|
841
|
-
D(
|
|
839
|
+
D(B(He), {
|
|
842
840
|
ref_key: "contentRef",
|
|
843
841
|
ref: u,
|
|
844
842
|
class: "overflow-hidden"
|
|
845
843
|
}, {
|
|
846
|
-
default:
|
|
844
|
+
default: H(() => [D(B(g), {
|
|
847
845
|
always: "",
|
|
848
|
-
"view-class":
|
|
846
|
+
"view-class": Ee(["relative flex flex-col", {
|
|
849
847
|
...c.value,
|
|
850
848
|
"pt-8": s.value
|
|
851
849
|
}]),
|
|
852
850
|
"view-style": {
|
|
853
851
|
minWidth: "1200px",
|
|
854
|
-
minHeight: `${Math.max(
|
|
852
|
+
minHeight: `${Math.max(B(d), 438)}px`
|
|
855
853
|
}
|
|
856
854
|
}, {
|
|
857
|
-
default:
|
|
858
|
-
default:
|
|
859
|
-
exclude:
|
|
855
|
+
default: H(() => [D(Wt, { ref: "breadcrumb" }, null, 512), D(r, null, {
|
|
856
|
+
default: H(({ Component: e }) => [(F(), C(ye, {
|
|
857
|
+
exclude: B(i).excludeKPname,
|
|
860
858
|
include: a.value
|
|
861
|
-
}, [(
|
|
859
|
+
}, [(F(), C(R(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
862
860
|
_: 1
|
|
863
861
|
})]),
|
|
864
862
|
_: 1
|
|
@@ -870,9 +868,9 @@ var $t = pt("login", () => {
|
|
|
870
868
|
}));
|
|
871
869
|
};
|
|
872
870
|
}
|
|
873
|
-
}), [["__scopeId", "data-v-de5cbc76"]]),
|
|
874
|
-
function
|
|
875
|
-
let n = S(() => typeof e.body == "function" ? e.body(
|
|
871
|
+
}), [["__scopeId", "data-v-de5cbc76"]]), an = /* @__PURE__ */ new Set();
|
|
872
|
+
function on(e, t) {
|
|
873
|
+
let n = S(() => typeof e.body == "function" ? e.body(A) : e.body), i = {
|
|
876
874
|
attach: "#app",
|
|
877
875
|
closeOnEscKeydown: !1,
|
|
878
876
|
closeOnOverlayClick: !1,
|
|
@@ -882,26 +880,26 @@ function an(e, t) {
|
|
|
882
880
|
lazy: !0,
|
|
883
881
|
sizeDraggable: !0,
|
|
884
882
|
...e ?? {},
|
|
885
|
-
body: () =>
|
|
883
|
+
body: () => A(zn, {}, { default: () => n.value })
|
|
886
884
|
}, a, o = {
|
|
887
885
|
...i,
|
|
888
886
|
onClose: (e) => {
|
|
889
|
-
i.onClose?.(e),
|
|
887
|
+
i.onClose?.(e), an.delete(a);
|
|
890
888
|
}
|
|
891
889
|
};
|
|
892
|
-
return delete o.closeWhenCloseAll, a =
|
|
890
|
+
return delete o.closeWhenCloseAll, a = Ge(o, t ?? r()), i.closeWhenCloseAll && an.add(a), a;
|
|
893
891
|
}
|
|
894
|
-
var
|
|
895
|
-
return
|
|
892
|
+
var sn = function(...e) {
|
|
893
|
+
return on(...e);
|
|
896
894
|
};
|
|
897
|
-
|
|
898
|
-
|
|
895
|
+
sn.closeAll = () => {
|
|
896
|
+
an.forEach((e) => {
|
|
899
897
|
e.hide?.();
|
|
900
898
|
});
|
|
901
899
|
};
|
|
902
900
|
//#endregion
|
|
903
901
|
//#region ../../packages/dlzn-ui/router/index.ts
|
|
904
|
-
function
|
|
902
|
+
function cn() {
|
|
905
903
|
return {
|
|
906
904
|
children: [{
|
|
907
905
|
children: [{
|
|
@@ -929,15 +927,15 @@ function sn() {
|
|
|
929
927
|
name: "Home",
|
|
930
928
|
path: "home"
|
|
931
929
|
}],
|
|
932
|
-
component:
|
|
930
|
+
component: rn,
|
|
933
931
|
name: "Index",
|
|
934
932
|
path: "/"
|
|
935
933
|
};
|
|
936
934
|
}
|
|
937
|
-
var
|
|
938
|
-
history:
|
|
935
|
+
var J = gt({
|
|
936
|
+
history: _t(VITE_BASE_URL),
|
|
939
937
|
routes: [
|
|
940
|
-
|
|
938
|
+
cn(),
|
|
941
939
|
{
|
|
942
940
|
component: h["./Login.vue"],
|
|
943
941
|
meta: {
|
|
@@ -981,16 +979,16 @@ var Y = ht({
|
|
|
981
979
|
sensitive: !0,
|
|
982
980
|
strict: !0
|
|
983
981
|
});
|
|
984
|
-
|
|
985
|
-
if (e.query._fromLeftTree === "true" && y().add(e.name), !["Login", "Register"].includes(e.name)) return
|
|
982
|
+
J.beforeEach(async (e) => {
|
|
983
|
+
if (e.query._fromLeftTree === "true" && y().add(e.name), !["Login", "Register"].includes(e.name)) return en().token === "" ? { name: "Login" } : Vt().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), J.resolve({
|
|
986
984
|
path: e.path,
|
|
987
985
|
query: e.query
|
|
988
986
|
}));
|
|
989
|
-
}),
|
|
990
|
-
|
|
987
|
+
}), J.afterEach((e, t, n) => {
|
|
988
|
+
jt.closeAll(), sn.closeAll();
|
|
991
989
|
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: s } = r;
|
|
992
|
-
document.title = s ||
|
|
993
|
-
let c =
|
|
990
|
+
document.title = s || G().appInfo.appName;
|
|
991
|
+
let c = K();
|
|
994
992
|
if (![
|
|
995
993
|
"Login",
|
|
996
994
|
"NotFound",
|
|
@@ -1002,24 +1000,24 @@ Y.beforeEach(async (e) => {
|
|
|
1002
1000
|
query: e.query
|
|
1003
1001
|
});
|
|
1004
1002
|
}
|
|
1005
|
-
y().remove(i), VITE_MODE === "development" && (
|
|
1003
|
+
y().remove(i), VITE_MODE === "development" && (vt(n, ht.aborted) ? m.info("导航被中断") : vt(n, ht.cancelled) ? m.info("导航被取消,因为有一个新的导航") : vt(n, ht.duplicated) && m.info("导航被阻止,因为我们已经在目标位置了"));
|
|
1006
1004
|
});
|
|
1007
|
-
function
|
|
1008
|
-
if (
|
|
1005
|
+
function ln(e) {
|
|
1006
|
+
if (J.hasRoute(e)) return J.getRoutes().find((t) => t.name === e);
|
|
1009
1007
|
}
|
|
1010
1008
|
//#endregion
|
|
1011
1009
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
1012
|
-
var
|
|
1013
|
-
function
|
|
1010
|
+
var un = 15e3, dn = "网络错误,请稍后再试";
|
|
1011
|
+
function fn(e, t = !0) {
|
|
1014
1012
|
let n = {};
|
|
1015
1013
|
return Object.keys(e).forEach((r) => {
|
|
1016
1014
|
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !c(e[r]))) && (n[r] = e[r]);
|
|
1017
1015
|
}), n;
|
|
1018
1016
|
}
|
|
1019
|
-
function
|
|
1020
|
-
return new URLSearchParams(
|
|
1017
|
+
function pn(e, t = !0) {
|
|
1018
|
+
return new URLSearchParams(fn(e, t)).toString();
|
|
1021
1019
|
}
|
|
1022
|
-
function
|
|
1020
|
+
function mn(e) {
|
|
1023
1021
|
let { data: t, response: r, useDownload: i } = e;
|
|
1024
1022
|
if (typeof i == "string") f(t, i);
|
|
1025
1023
|
else {
|
|
@@ -1027,12 +1025,12 @@ function pn(e) {
|
|
|
1027
1025
|
e ? f(t, e) : n.error("返回的 response header 没有文件名");
|
|
1028
1026
|
}
|
|
1029
1027
|
}
|
|
1030
|
-
var
|
|
1028
|
+
var Y = xt({
|
|
1031
1029
|
baseURL: VITE_BASE_URL,
|
|
1032
1030
|
beforeRequest(e) {
|
|
1033
1031
|
e.config.credentials = e.config.credentials ?? "omit";
|
|
1034
1032
|
let [t, ...n] = VITE_API_PROXY_PREFIX_ARRAY;
|
|
1035
|
-
!e.url.startsWith("http") && !n.some((t) =>
|
|
1033
|
+
!e.url.startsWith("http") && !n.some((t) => wt.join("/", e.url).startsWith(wt.join("/", t, "/"))) && (e.url = wt.join(t, e.url)), e.meta = {
|
|
1036
1034
|
use600Alert: !0,
|
|
1037
1035
|
useDataResult: !0,
|
|
1038
1036
|
useDownload: !1,
|
|
@@ -1049,10 +1047,10 @@ var X = bt({
|
|
|
1049
1047
|
useToken: !e.url.startsWith("http"),
|
|
1050
1048
|
...e.meta ?? {}
|
|
1051
1049
|
};
|
|
1052
|
-
let r =
|
|
1053
|
-
l ||
|
|
1050
|
+
let r = en(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: l, useLoading: u, useResponseBlob: d, useToken: f } = e.meta;
|
|
1051
|
+
l || G().requestActive(), f && (r.token ? e.config.headers.Authorization = r.token : e.abort()), u !== !1 && i.show(u === !0 ? void 0 : u);
|
|
1054
1052
|
let p = e.config.params;
|
|
1055
|
-
if (typeof p != "string" && (e.config.params =
|
|
1053
|
+
if (typeof p != "string" && (e.config.params = pn(p, o)), a && pt(e.data)) {
|
|
1056
1054
|
let t = {}, n = e.data;
|
|
1057
1055
|
Object.keys(n).forEach((e) => {
|
|
1058
1056
|
c(n[e]) || (t[e] = n[e]);
|
|
@@ -1064,10 +1062,10 @@ var X = bt({
|
|
|
1064
1062
|
t.append(n, e.data[n]);
|
|
1065
1063
|
}), e.data = t;
|
|
1066
1064
|
}
|
|
1067
|
-
e.config.timeout ===
|
|
1065
|
+
e.config.timeout === un && (s || e.data instanceof FormData || d) && (e.config.timeout = 0);
|
|
1068
1066
|
},
|
|
1069
1067
|
cacheFor: null,
|
|
1070
|
-
requestAdapter:
|
|
1068
|
+
requestAdapter: St(),
|
|
1071
1069
|
responded: {
|
|
1072
1070
|
onComplete: (e) => {
|
|
1073
1071
|
e.meta.useLoading !== !1 && i.hide();
|
|
@@ -1079,7 +1077,7 @@ var X = bt({
|
|
|
1079
1077
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1080
1078
|
if (t.toLowerCase().includes("timeout")) return n && m.error("请求超时"), Promise.reject(e);
|
|
1081
1079
|
}
|
|
1082
|
-
return n && m.error(
|
|
1080
|
+
return n && m.error(dn), Promise.reject(e);
|
|
1083
1081
|
},
|
|
1084
1082
|
onSuccess: async (e, t) => {
|
|
1085
1083
|
if (typeof e == "string") return e;
|
|
@@ -1090,7 +1088,7 @@ var X = bt({
|
|
|
1090
1088
|
403: "当前操作没有权限",
|
|
1091
1089
|
404: "访问资源不存在",
|
|
1092
1090
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1093
|
-
}[h] ??
|
|
1091
|
+
}[h] ?? dn;
|
|
1094
1092
|
m.error(e);
|
|
1095
1093
|
}
|
|
1096
1094
|
return Promise.reject(e);
|
|
@@ -1102,7 +1100,7 @@ var X = bt({
|
|
|
1102
1100
|
} catch (e) {
|
|
1103
1101
|
return n.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1104
1102
|
}
|
|
1105
|
-
return i !== !1 &&
|
|
1103
|
+
return i !== !1 && mn({
|
|
1106
1104
|
data: t,
|
|
1107
1105
|
response: e,
|
|
1108
1106
|
useDownload: i
|
|
@@ -1128,21 +1126,21 @@ var X = bt({
|
|
|
1128
1126
|
if (t >= 400) {
|
|
1129
1127
|
if (t === 600) {
|
|
1130
1128
|
if (d(l).then((e) => {
|
|
1131
|
-
|
|
1132
|
-
body: () =>
|
|
1129
|
+
W({
|
|
1130
|
+
body: () => A("div", { innerHTML: e }),
|
|
1133
1131
|
cancelBtn: null
|
|
1134
1132
|
});
|
|
1135
1133
|
}), !o) return g;
|
|
1136
|
-
} else t === 401 && u ?
|
|
1134
|
+
} else t === 401 && u ? J.push({ name: "Login" }) : a !== !1 && m.error(a === !0 ? l : a);
|
|
1137
1135
|
return Promise.reject(g);
|
|
1138
1136
|
}
|
|
1139
1137
|
{
|
|
1140
|
-
let a =
|
|
1138
|
+
let a = bt.alovaResCodeSuccessCb?.({
|
|
1141
1139
|
code: t,
|
|
1142
1140
|
data: s,
|
|
1143
1141
|
msg: l
|
|
1144
1142
|
});
|
|
1145
|
-
return a === void 0 ? (i !== !1 && (typeof i == "string" ?
|
|
1143
|
+
return a === void 0 ? (i !== !1 && (typeof i == "string" ? mn({
|
|
1146
1144
|
data: s,
|
|
1147
1145
|
response: e,
|
|
1148
1146
|
useDownload: i
|
|
@@ -1153,11 +1151,11 @@ var X = bt({
|
|
|
1153
1151
|
}
|
|
1154
1152
|
},
|
|
1155
1153
|
shareRequest: !1,
|
|
1156
|
-
statesHook:
|
|
1157
|
-
timeout:
|
|
1158
|
-
}),
|
|
1154
|
+
statesHook: Ct,
|
|
1155
|
+
timeout: un
|
|
1156
|
+
}), X = /* @__PURE__ */ new Map();
|
|
1159
1157
|
function hn(e) {
|
|
1160
|
-
let t =
|
|
1158
|
+
let t = Y.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
1161
1159
|
cssClass: e.cssClass,
|
|
1162
1160
|
dictType: e.dictType,
|
|
1163
1161
|
label: e.dictLabel,
|
|
@@ -1165,15 +1163,15 @@ function hn(e) {
|
|
|
1165
1163
|
value: e.dictValue
|
|
1166
1164
|
})));
|
|
1167
1165
|
e.forEach((e) => {
|
|
1168
|
-
|
|
1166
|
+
X.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
1169
1167
|
});
|
|
1170
1168
|
}
|
|
1171
1169
|
var gn = [];
|
|
1172
1170
|
function _n(e) {
|
|
1173
1171
|
return gn.includes(e) || gn.push(e), new Promise((t) => {
|
|
1174
1172
|
setTimeout(() => {
|
|
1175
|
-
let n = gn.filter((e) => !
|
|
1176
|
-
n.length > 0 && hn(n), gn.length = 0,
|
|
1173
|
+
let n = gn.filter((e) => !X.has(e));
|
|
1174
|
+
n.length > 0 && hn(n), gn.length = 0, X.get(e).then((e) => {
|
|
1177
1175
|
t(e);
|
|
1178
1176
|
});
|
|
1179
1177
|
});
|
|
@@ -1181,7 +1179,7 @@ function _n(e) {
|
|
|
1181
1179
|
}
|
|
1182
1180
|
var Z = /* @__PURE__ */ new Map();
|
|
1183
1181
|
function vn() {
|
|
1184
|
-
gn.length = 0,
|
|
1182
|
+
gn.length = 0, X.clear(), Z.clear();
|
|
1185
1183
|
}
|
|
1186
1184
|
function yn(e, t) {
|
|
1187
1185
|
let n = bn(e);
|
|
@@ -1189,12 +1187,12 @@ function yn(e, t) {
|
|
|
1189
1187
|
}
|
|
1190
1188
|
function bn(e, t) {
|
|
1191
1189
|
let n;
|
|
1192
|
-
return Z.has(e) ? n = Z.get(e) : (n =
|
|
1190
|
+
return Z.has(e) ? n = Z.get(e) : (n = I([]), Z.set(e, n), _n(e).then((e) => {
|
|
1193
1191
|
n.value = e;
|
|
1194
1192
|
})), S(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1195
1193
|
}
|
|
1196
1194
|
function xn(e) {
|
|
1197
|
-
|
|
1195
|
+
X.delete(e), Z.has(e) && _n(e).then((t) => {
|
|
1198
1196
|
Z.get(e).value = t;
|
|
1199
1197
|
});
|
|
1200
1198
|
}
|
|
@@ -1233,7 +1231,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1233
1231
|
}
|
|
1234
1232
|
let s = S(() => {
|
|
1235
1233
|
let e;
|
|
1236
|
-
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e = bn(r.dicCode).value) : e = typeof r.options == "string" ?
|
|
1234
|
+
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e = bn(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({
|
|
1237
1235
|
checkAll: !0,
|
|
1238
1236
|
label: "全选"
|
|
1239
1237
|
})), e;
|
|
@@ -1251,7 +1249,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1251
1249
|
e[t] === void 0 && delete e[t];
|
|
1252
1250
|
}), e;
|
|
1253
1251
|
});
|
|
1254
|
-
return (e, t) => (
|
|
1252
|
+
return (e, t) => (F(), C(R(A(B(Be), M(e.$attrs, {
|
|
1255
1253
|
...d.value,
|
|
1256
1254
|
options: s.value,
|
|
1257
1255
|
modelValue: u.value,
|
|
@@ -1264,7 +1262,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1264
1262
|
}), Cn = /* @__PURE__ */ O({
|
|
1265
1263
|
inheritAttrs: !1,
|
|
1266
1264
|
__name: "cron",
|
|
1267
|
-
props: /*@__PURE__*/
|
|
1265
|
+
props: /*@__PURE__*/ j({
|
|
1268
1266
|
modelValue: {},
|
|
1269
1267
|
adornment: {},
|
|
1270
1268
|
align: {},
|
|
@@ -1309,19 +1307,19 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1309
1307
|
onPaste: { type: Function },
|
|
1310
1308
|
onValidate: { type: Function },
|
|
1311
1309
|
onWheel: { type: Function }
|
|
1312
|
-
},
|
|
1310
|
+
}, le),
|
|
1313
1311
|
emits: ["update:modelValue"],
|
|
1314
1312
|
setup(e, { emit: t }) {
|
|
1315
|
-
let n = e, r = t, i =
|
|
1313
|
+
let n = e, r = t, i = we("isFormDisabled", S(() => !1)), a = we("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1316
1314
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1317
1315
|
return {
|
|
1318
1316
|
...n,
|
|
1319
|
-
adornment: { append: () =>
|
|
1317
|
+
adornment: { append: () => A($, {
|
|
1320
1318
|
default: "cron",
|
|
1321
1319
|
onClick: () => {
|
|
1322
|
-
let i =
|
|
1323
|
-
|
|
1324
|
-
body: () =>
|
|
1320
|
+
let i = I(null);
|
|
1321
|
+
W({
|
|
1322
|
+
body: () => A(Se(() => import("../components/cron/src/Picker.mjs")), {
|
|
1325
1323
|
disabled: e,
|
|
1326
1324
|
modelValue: n.modelValue,
|
|
1327
1325
|
onVnodeMounted: (e) => {
|
|
@@ -1343,18 +1341,18 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1343
1341
|
variant: "text"
|
|
1344
1342
|
}) }
|
|
1345
1343
|
};
|
|
1346
|
-
}), s =
|
|
1344
|
+
}), s = Ne(), c = k();
|
|
1347
1345
|
function l(e) {
|
|
1348
1346
|
c.exposed = e ?? {};
|
|
1349
1347
|
}
|
|
1350
|
-
let u = S(() =>
|
|
1348
|
+
let u = S(() => M(s, {
|
|
1351
1349
|
...o.value,
|
|
1352
1350
|
onChange: (...e) => {
|
|
1353
1351
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1354
1352
|
},
|
|
1355
1353
|
ref: l
|
|
1356
1354
|
}));
|
|
1357
|
-
return (e, t) => (
|
|
1355
|
+
return (e, t) => (F(), C(B(ue), P(Ce(u.value)), null, 16));
|
|
1358
1356
|
}
|
|
1359
1357
|
}), wn = /* @__PURE__ */ O({
|
|
1360
1358
|
inheritAttrs: !1,
|
|
@@ -1390,7 +1388,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1390
1388
|
function o(e) {
|
|
1391
1389
|
a.exposed = e ?? {};
|
|
1392
1390
|
}
|
|
1393
|
-
let s = S(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"), bn(r.dicCode).value) : typeof r.options == "string" ?
|
|
1391
|
+
let s = S(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"), bn(r.dicCode).value) : typeof r.options == "string" ? oe(r.options).value : r.options), d = S(() => {
|
|
1394
1392
|
let e = { ...r };
|
|
1395
1393
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1396
1394
|
e[t] === void 0 && delete e[t];
|
|
@@ -1403,12 +1401,12 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1403
1401
|
}
|
|
1404
1402
|
return r.modelValue;
|
|
1405
1403
|
});
|
|
1406
|
-
return (e, t) => (
|
|
1404
|
+
return (e, t) => (F(), C(R(A(B(et), M(e.$attrs, {
|
|
1407
1405
|
...d.value,
|
|
1408
1406
|
options: s.value,
|
|
1409
1407
|
modelValue: f.value,
|
|
1410
1408
|
onChange: (...e) => {
|
|
1411
|
-
let [t, ...n] = e, a =
|
|
1409
|
+
let [t, ...n] = e, a = B(c)(t) ? "" : t;
|
|
1412
1410
|
i("update:modelValue", a), r.onChange?.(a, ...n);
|
|
1413
1411
|
},
|
|
1414
1412
|
ref: o
|
|
@@ -1439,7 +1437,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1439
1437
|
inheritAttrs: !1,
|
|
1440
1438
|
name: "TSelect",
|
|
1441
1439
|
__name: "select",
|
|
1442
|
-
props: /*@__PURE__*/
|
|
1440
|
+
props: /*@__PURE__*/ j({
|
|
1443
1441
|
adornment: {},
|
|
1444
1442
|
dicCode: {},
|
|
1445
1443
|
modelValue: {},
|
|
@@ -1507,7 +1505,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1507
1505
|
}
|
|
1508
1506
|
let a = S(() => {
|
|
1509
1507
|
let e;
|
|
1510
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ?
|
|
1508
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? oe(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e = bn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? n.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
1511
1509
|
checkAll: !0,
|
|
1512
1510
|
[t.keys?.label ?? "label"]: "全选"
|
|
1513
1511
|
}) : n.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
@@ -1531,9 +1529,9 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1531
1529
|
return delete e.dicCode, delete e.showCheckAll, delete e.adornment, Object.keys(e).forEach((t) => {
|
|
1532
1530
|
e[t] === void 0 && delete e[t];
|
|
1533
1531
|
}), e;
|
|
1534
|
-
}), d =
|
|
1535
|
-
|
|
1536
|
-
|
|
1532
|
+
}), d = I(0);
|
|
1533
|
+
De(() => {
|
|
1534
|
+
dt(r.exposed.$el, () => {
|
|
1537
1535
|
d.value = r.exposed.$el.offsetWidth;
|
|
1538
1536
|
}, { box: "border-box" });
|
|
1539
1537
|
});
|
|
@@ -1557,16 +1555,16 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1557
1555
|
})
|
|
1558
1556
|
},
|
|
1559
1557
|
ref: i
|
|
1560
|
-
})), m =
|
|
1561
|
-
return (t, n) => e.adornment ? (
|
|
1558
|
+
})), m = Xe;
|
|
1559
|
+
return (t, n) => e.adornment ? (F(), C(R(A(B(m), t.$attrs, {
|
|
1562
1560
|
...e.adornment,
|
|
1563
|
-
default: () =>
|
|
1564
|
-
})), { key: 0 })) : (
|
|
1561
|
+
default: () => A(B(tt), p.value, t.$slots)
|
|
1562
|
+
})), { key: 0 })) : (F(), C(R(A(B(tt), M(t.$attrs, p.value), t.$slots)), { key: 1 }));
|
|
1565
1563
|
}
|
|
1566
1564
|
}), Dn = /* @__PURE__ */ O({
|
|
1567
1565
|
inheritAttrs: !1,
|
|
1568
1566
|
__name: "select-sys-user",
|
|
1569
|
-
props: /*@__PURE__*/
|
|
1567
|
+
props: /*@__PURE__*/ j({
|
|
1570
1568
|
modelValue: {},
|
|
1571
1569
|
adornment: {},
|
|
1572
1570
|
autoWidth: { type: Boolean },
|
|
@@ -1605,19 +1603,19 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1605
1603
|
onMouseleave: { type: Function },
|
|
1606
1604
|
onPaste: { type: Function },
|
|
1607
1605
|
onRemove: { type: Function }
|
|
1608
|
-
},
|
|
1606
|
+
}, me),
|
|
1609
1607
|
emits: ["update:modelValue"],
|
|
1610
1608
|
setup(e, { emit: t }) {
|
|
1611
|
-
let n = e, r = t, i =
|
|
1609
|
+
let n = e, r = t, i = we("isFormDisabled", S(() => !1)), a = we("isFormReadonly", S(() => !1)), o = S(() => {
|
|
1612
1610
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1613
1611
|
return {
|
|
1614
1612
|
...n,
|
|
1615
|
-
adornment: e || t ? void 0 : { append: () =>
|
|
1613
|
+
adornment: e || t ? void 0 : { append: () => A($, {
|
|
1616
1614
|
default: "选择用户",
|
|
1617
1615
|
onClick: () => {
|
|
1618
|
-
let e =
|
|
1619
|
-
|
|
1620
|
-
body: () =>
|
|
1616
|
+
let e = I(null);
|
|
1617
|
+
W({
|
|
1618
|
+
body: () => A(Se(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
1621
1619
|
max: n.max,
|
|
1622
1620
|
modelValue: n.modelValue,
|
|
1623
1621
|
onVnodeMounted: (t) => {
|
|
@@ -1638,11 +1636,11 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1638
1636
|
variant: "text"
|
|
1639
1637
|
}) }
|
|
1640
1638
|
};
|
|
1641
|
-
}), s =
|
|
1639
|
+
}), s = Ne(), c = k();
|
|
1642
1640
|
function l(e) {
|
|
1643
1641
|
c.exposed = e ?? {};
|
|
1644
1642
|
}
|
|
1645
|
-
let u = S(() =>
|
|
1643
|
+
let u = S(() => M(s, {
|
|
1646
1644
|
...o.value,
|
|
1647
1645
|
inputProps: {
|
|
1648
1646
|
readonly: !0,
|
|
@@ -1654,8 +1652,8 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1654
1652
|
placeholder: "请选择用户",
|
|
1655
1653
|
ref: l
|
|
1656
1654
|
}));
|
|
1657
|
-
return (e, t) => (
|
|
1658
|
-
tag:
|
|
1655
|
+
return (e, t) => (F(), C(B(he), P(Ce(u.value)), {
|
|
1656
|
+
tag: H(({ value: e }) => [E(z(B(Zt)(e).value?.userName), 1)]),
|
|
1659
1657
|
_: 1
|
|
1660
1658
|
}, 16));
|
|
1661
1659
|
}
|
|
@@ -1666,7 +1664,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1666
1664
|
hover: !0,
|
|
1667
1665
|
icon: () => (e, t) => {
|
|
1668
1666
|
let n = "";
|
|
1669
|
-
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 :
|
|
1667
|
+
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 : A($, {
|
|
1670
1668
|
icon: n,
|
|
1671
1669
|
shape: "circle",
|
|
1672
1670
|
size: "small",
|
|
@@ -1682,7 +1680,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1682
1680
|
inheritAttrs: !1,
|
|
1683
1681
|
name: "TTree",
|
|
1684
1682
|
__name: "tree",
|
|
1685
|
-
props: /*@__PURE__*/
|
|
1683
|
+
props: /*@__PURE__*/ j({
|
|
1686
1684
|
icon: { type: [Function, Boolean] },
|
|
1687
1685
|
"onUpdate:actived": { type: Function },
|
|
1688
1686
|
"onUpdate:expanded": { type: Function },
|
|
@@ -1737,7 +1735,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1737
1735
|
treeStore: {}
|
|
1738
1736
|
}, On),
|
|
1739
1737
|
setup(e, { expose: t }) {
|
|
1740
|
-
let n = e, r =
|
|
1738
|
+
let n = e, r = Pe(), i = S(() => {
|
|
1741
1739
|
let e = { ...n };
|
|
1742
1740
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1743
1741
|
e[t] === void 0 && delete e[t];
|
|
@@ -1746,7 +1744,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1746
1744
|
function o(e) {
|
|
1747
1745
|
a.exposed = e ?? {};
|
|
1748
1746
|
}
|
|
1749
|
-
return t({}), (e, t) => (
|
|
1747
|
+
return t({}), (e, t) => (F(), C(R(A(B(nt), M(e.$attrs, {
|
|
1750
1748
|
...i.value,
|
|
1751
1749
|
ref: o
|
|
1752
1750
|
}), e.$slots))));
|
|
@@ -1818,7 +1816,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1818
1816
|
onSearch: {}
|
|
1819
1817
|
},
|
|
1820
1818
|
setup(e) {
|
|
1821
|
-
let t = e, n = S(() => typeof t.data == "string" ?
|
|
1819
|
+
let t = e, n = S(() => typeof t.data == "string" ? oe(t.data).value : t.data), r = S(() => {
|
|
1822
1820
|
let e = { ...t };
|
|
1823
1821
|
return e.selectInputProps = {
|
|
1824
1822
|
minCollapsedNum: 2,
|
|
@@ -1836,12 +1834,12 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1836
1834
|
function a(e) {
|
|
1837
1835
|
i.exposed = e ?? {};
|
|
1838
1836
|
}
|
|
1839
|
-
let o =
|
|
1840
|
-
return
|
|
1841
|
-
|
|
1837
|
+
let o = I(0);
|
|
1838
|
+
return De(() => {
|
|
1839
|
+
dt(i.exposed.$el, () => {
|
|
1842
1840
|
o.value = i.exposed.$el.offsetWidth;
|
|
1843
1841
|
}, { box: "border-box" });
|
|
1844
|
-
}), (e, t) => (
|
|
1842
|
+
}), (e, t) => (F(), C(R(A(B(rt), M(e.$attrs, {
|
|
1845
1843
|
...r.value,
|
|
1846
1844
|
data: n.value,
|
|
1847
1845
|
ref: a,
|
|
@@ -1940,7 +1938,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1940
1938
|
response: {},
|
|
1941
1939
|
status: "fail"
|
|
1942
1940
|
});
|
|
1943
|
-
}) :
|
|
1941
|
+
}) : Y.Post(n.requestMethod.ossUrl ?? "common/uploadOss", {
|
|
1944
1942
|
biz: n.requestMethod.biz,
|
|
1945
1943
|
file: e.raw
|
|
1946
1944
|
}, { meta: { useFormData: !0 } }).then((e) => {
|
|
@@ -1969,30 +1967,30 @@ var Sn = /* @__PURE__ */ O({
|
|
|
1969
1967
|
function s(e) {
|
|
1970
1968
|
o.exposed = e ?? {};
|
|
1971
1969
|
}
|
|
1972
|
-
return t({}), (t, o) => (
|
|
1970
|
+
return t({}), (t, o) => (F(), C(R(A(B(it), M(t.$attrs, {
|
|
1973
1971
|
...a.value,
|
|
1974
1972
|
requestMethod: r.value,
|
|
1975
1973
|
ref: s
|
|
1976
|
-
}, { class: a.value.theme }))), null,
|
|
1974
|
+
}, { class: a.value.theme }))), null, xe({ _: 2 }, [L(Object.keys(t.$slots), (e) => ({
|
|
1977
1975
|
name: e,
|
|
1978
|
-
fn:
|
|
1976
|
+
fn: H((n) => [Ae(t.$slots, e, P(Ce(n)), void 0, !0)])
|
|
1979
1977
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
1980
1978
|
name: "trigger",
|
|
1981
|
-
fn:
|
|
1982
|
-
D(
|
|
1983
|
-
default:
|
|
1979
|
+
fn: H(({ files: t }) => [be("div", Mn, [
|
|
1980
|
+
D(B($), { theme: "primary" }, {
|
|
1981
|
+
default: H(() => [E(z(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
1984
1982
|
_: 2
|
|
1985
1983
|
}, 1024),
|
|
1986
|
-
e.downloadTemplate ? (
|
|
1984
|
+
e.downloadTemplate ? (F(), C(B($), {
|
|
1987
1985
|
key: 0,
|
|
1988
1986
|
theme: "primary",
|
|
1989
1987
|
variant: "outline",
|
|
1990
|
-
onClick:
|
|
1988
|
+
onClick: Ie(i, ["stop"])
|
|
1991
1989
|
}, {
|
|
1992
|
-
default:
|
|
1990
|
+
default: H(() => [...o[0] ||= [E("下载模板", -1)]]),
|
|
1993
1991
|
_: 1
|
|
1994
1992
|
})) : w("v-if", !0),
|
|
1995
|
-
n.tips ? (
|
|
1993
|
+
n.tips ? (F(), T("span", Nn, z(n.tips), 1)) : w("v-if", !0)
|
|
1996
1994
|
])]),
|
|
1997
1995
|
key: "0"
|
|
1998
1996
|
} : void 0]), 1024));
|
|
@@ -2001,7 +1999,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2001
1999
|
inheritAttrs: !1,
|
|
2002
2000
|
name: "TForm",
|
|
2003
2001
|
__name: "form",
|
|
2004
|
-
props: /*@__PURE__*/
|
|
2002
|
+
props: /*@__PURE__*/ j({
|
|
2005
2003
|
autoLabelWidth: { type: Boolean },
|
|
2006
2004
|
data: {},
|
|
2007
2005
|
items: {},
|
|
@@ -2025,9 +2023,9 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2025
2023
|
onReset: { type: Function },
|
|
2026
2024
|
onSubmit: { type: Function },
|
|
2027
2025
|
onValidate: { type: Function }
|
|
2028
|
-
},
|
|
2026
|
+
}, Dt),
|
|
2029
2027
|
setup(e, { expose: t }) {
|
|
2030
|
-
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } =
|
|
2028
|
+
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = bt, s = k(), l = I(null), u = S(() => r.items.map((e) => {
|
|
2031
2029
|
if (typeof e.__others == "function") {
|
|
2032
2030
|
let t = {
|
|
2033
2031
|
...e,
|
|
@@ -2067,34 +2065,34 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2067
2065
|
}
|
|
2068
2066
|
});
|
|
2069
2067
|
}
|
|
2070
|
-
|
|
2068
|
+
V(u, d, {
|
|
2071
2069
|
deep: 2,
|
|
2072
2070
|
immediate: !0
|
|
2073
|
-
}),
|
|
2071
|
+
}), V(() => r.data, () => {
|
|
2074
2072
|
n.error("TForm: data is changed");
|
|
2075
2073
|
});
|
|
2076
2074
|
let f = /* @__PURE__ */ new Map(), p = {
|
|
2077
2075
|
TCheckbox: a,
|
|
2078
2076
|
TCheckboxGroup: Sn,
|
|
2079
|
-
TColorPicker:
|
|
2077
|
+
TColorPicker: ce,
|
|
2080
2078
|
TCron: Cn,
|
|
2081
|
-
TDatePicker:
|
|
2082
|
-
TInput:
|
|
2083
|
-
TInputNumber:
|
|
2079
|
+
TDatePicker: de,
|
|
2080
|
+
TInput: ue,
|
|
2081
|
+
TInputNumber: fe,
|
|
2084
2082
|
TRadioGroup: wn,
|
|
2085
|
-
TRangeInput:
|
|
2083
|
+
TRangeInput: pe,
|
|
2086
2084
|
TSelect: En,
|
|
2087
2085
|
TSelectSysUser: Dn,
|
|
2088
|
-
TSlider:
|
|
2089
|
-
TSwitch:
|
|
2090
|
-
TTagInput:
|
|
2091
|
-
TTextarea:
|
|
2086
|
+
TSlider: ge,
|
|
2087
|
+
TSwitch: _e,
|
|
2088
|
+
TTagInput: he,
|
|
2089
|
+
TTextarea: ve,
|
|
2092
2090
|
TTree: kn,
|
|
2093
2091
|
TTreeSelect: An,
|
|
2094
2092
|
TUpload: Pn
|
|
2095
2093
|
};
|
|
2096
2094
|
function h(e) {
|
|
2097
|
-
return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e,
|
|
2095
|
+
return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e, Se(o.get(e))), f.get(e)) : p[e] : ue;
|
|
2098
2096
|
}
|
|
2099
2097
|
function g(e) {
|
|
2100
2098
|
let t = {};
|
|
@@ -2174,11 +2172,11 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2174
2172
|
if (!t.clearValidate._alreadyReplace) {
|
|
2175
2173
|
let e = t.clearValidate;
|
|
2176
2174
|
t.clearValidate = (...t) => {
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2175
|
+
N(() => {
|
|
2176
|
+
N(() => {
|
|
2177
|
+
N(() => {
|
|
2178
|
+
N(() => {
|
|
2179
|
+
N(() => {
|
|
2182
2180
|
e(...t);
|
|
2183
2181
|
});
|
|
2184
2182
|
});
|
|
@@ -2197,16 +2195,16 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2197
2195
|
let t = e ?? {};
|
|
2198
2196
|
l.value = t, s.exposed = t;
|
|
2199
2197
|
}
|
|
2200
|
-
let b =
|
|
2201
|
-
|
|
2202
|
-
b.value = s.exposed.$el.getElementsByClassName("t-form__label"), te(),
|
|
2198
|
+
let b = Me();
|
|
2199
|
+
De(() => {
|
|
2200
|
+
b.value = s.exposed.$el.getElementsByClassName("t-form__label"), te(), ut(s.exposed.$el, () => {
|
|
2203
2201
|
te();
|
|
2204
2202
|
}, {
|
|
2205
2203
|
attributeFilter: ["class"],
|
|
2206
2204
|
characterData: !0,
|
|
2207
2205
|
childList: !0,
|
|
2208
2206
|
subtree: !0
|
|
2209
|
-
}),
|
|
2207
|
+
}), dt(s.exposed.$el, () => {
|
|
2210
2208
|
te();
|
|
2211
2209
|
});
|
|
2212
2210
|
});
|
|
@@ -2222,12 +2220,12 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2222
2220
|
e.style.minWidth = `${t}px`;
|
|
2223
2221
|
});
|
|
2224
2222
|
}
|
|
2225
|
-
return
|
|
2223
|
+
return Oe("formData", r.data), Oe("formExposed", l), Oe("isFormDisabled", S(() => r.disabled)), Oe("isFormReadonly", S(() => r.readonly)), t({}), (t, n) => (F(), T(x, null, [w(" eslint-disable vue/no-mutating-props "), (F(), C(R(B(Ke)), M(M(t.$attrs, {
|
|
2226
2224
|
...v.value,
|
|
2227
2225
|
ref: ee
|
|
2228
2226
|
}), { "label-width": "fit-content" }), {
|
|
2229
|
-
default:
|
|
2230
|
-
default:
|
|
2227
|
+
default: H(() => [(F(!0), T(x, null, L(u.value.filter((e) => e.show !== !1), (n) => (F(), C(B(qe), M({ key: n.model ?? n.slot }, { ref_for: !0 }, M({ ..._(n) }, { class: { no_label_item: B(c)(n._label) } }), { name: n.model }), {
|
|
2228
|
+
default: H(() => [n.slot ? Ae(t.$slots, n.slot, {}, void 0, !0, 0) : (F(), C(R(h(n.component)), M({
|
|
2231
2229
|
key: 1,
|
|
2232
2230
|
modelValue: e.data[n.model],
|
|
2233
2231
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
@@ -2244,7 +2242,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2244
2242
|
default: !0
|
|
2245
2243
|
} },
|
|
2246
2244
|
setup(e, { expose: t }) {
|
|
2247
|
-
let n =
|
|
2245
|
+
let n = U(), r = [
|
|
2248
2246
|
{
|
|
2249
2247
|
_label: "旧密码",
|
|
2250
2248
|
_required: !0,
|
|
@@ -2275,13 +2273,13 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2275
2273
|
type: "password"
|
|
2276
2274
|
},
|
|
2277
2275
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
2278
|
-
], i =
|
|
2276
|
+
], i = Fe("form");
|
|
2279
2277
|
function a() {
|
|
2280
|
-
|
|
2278
|
+
K().close(n.name);
|
|
2281
2279
|
}
|
|
2282
2280
|
async function c() {
|
|
2283
2281
|
let e = await i.value.validate();
|
|
2284
|
-
await
|
|
2282
|
+
await Y.Put("system/user/profile/updatePwd", void 0, {
|
|
2285
2283
|
meta: {
|
|
2286
2284
|
useLoading: "保存中...",
|
|
2287
2285
|
useSuccessMsg: !0
|
|
@@ -2290,23 +2288,23 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2290
2288
|
newPassword: e.newPassword,
|
|
2291
2289
|
oldPassword: e.oldPassword
|
|
2292
2290
|
}
|
|
2293
|
-
}),
|
|
2291
|
+
}), en().logout();
|
|
2294
2292
|
}
|
|
2295
|
-
return t({ handleSubmit: c }), (e, t) => (
|
|
2293
|
+
return t({ handleSubmit: c }), (e, t) => (F(), C(B(Fn), {
|
|
2296
2294
|
ref: "form",
|
|
2297
2295
|
items: r,
|
|
2298
2296
|
"label-align": "right",
|
|
2299
2297
|
layout: "vertical"
|
|
2300
2298
|
}, {
|
|
2301
|
-
footer:
|
|
2302
|
-
default:
|
|
2299
|
+
footer: H(() => [D(B($), { onClick: c }, {
|
|
2300
|
+
default: H(() => [...t[0] ||= [E("保存", -1)]]),
|
|
2303
2301
|
_: 1
|
|
2304
|
-
}), D(
|
|
2302
|
+
}), D(B($), {
|
|
2305
2303
|
class: "ml-4!",
|
|
2306
2304
|
theme: "default",
|
|
2307
2305
|
onClick: a
|
|
2308
2306
|
}, {
|
|
2309
|
-
default:
|
|
2307
|
+
default: H(() => [...t[1] ||= [E("关闭", -1)]]),
|
|
2310
2308
|
_: 1
|
|
2311
2309
|
})]),
|
|
2312
2310
|
_: 1
|
|
@@ -2316,7 +2314,7 @@ var Sn = /* @__PURE__ */ O({
|
|
|
2316
2314
|
//#endregion
|
|
2317
2315
|
//#region ../../packages/dlzn-ui/store/modules/user.ts
|
|
2318
2316
|
function Ln() {
|
|
2319
|
-
return
|
|
2317
|
+
return Y.Get("getInfo", { meta: {
|
|
2320
2318
|
useFailMsg: "获取用户信息失败",
|
|
2321
2319
|
useLoading: "正在获取用户信息..."
|
|
2322
2320
|
} });
|
|
@@ -2328,21 +2326,21 @@ var Rn = {
|
|
|
2328
2326
|
nickName: "",
|
|
2329
2327
|
userId: "",
|
|
2330
2328
|
userName: ""
|
|
2331
|
-
}, Q =
|
|
2332
|
-
let e =
|
|
2329
|
+
}, Q = mt("user", () => {
|
|
2330
|
+
let e = I(ft(Rn)), t = I([]), n = I([]);
|
|
2333
2331
|
function r() {
|
|
2334
|
-
e.value =
|
|
2332
|
+
e.value = ft(Rn), t.value = [], n.value = [];
|
|
2335
2333
|
}
|
|
2336
|
-
let i = S(() => e.value.admin), a =
|
|
2334
|
+
let i = S(() => e.value.admin), a = I("");
|
|
2337
2335
|
async function o(r = !0) {
|
|
2338
2336
|
let i = await Ln();
|
|
2339
|
-
e.value = i.user, a.value !== e.value.userId &&
|
|
2337
|
+
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 Vt().getRouters();
|
|
2340
2338
|
}
|
|
2341
|
-
|
|
2342
|
-
e === 1 && VITE_FORCE_PWD_CHANGE &&
|
|
2343
|
-
let e =
|
|
2344
|
-
|
|
2345
|
-
body: () =>
|
|
2339
|
+
V(() => e.value.needChangePwd, (e) => {
|
|
2340
|
+
e === 1 && VITE_FORCE_PWD_CHANGE && N(() => {
|
|
2341
|
+
let e = I(null);
|
|
2342
|
+
W({
|
|
2343
|
+
body: () => A(In, {
|
|
2346
2344
|
labelAlign: "top",
|
|
2347
2345
|
ref: e,
|
|
2348
2346
|
showFooter: !1
|
|
@@ -2377,7 +2375,7 @@ var Rn = {
|
|
|
2377
2375
|
inheritAttrs: !1,
|
|
2378
2376
|
name: "TButton",
|
|
2379
2377
|
__name: "button",
|
|
2380
|
-
props: /*@__PURE__*/
|
|
2378
|
+
props: /*@__PURE__*/ j({
|
|
2381
2379
|
autoIcon: { type: Boolean },
|
|
2382
2380
|
autoLoading: { type: Boolean },
|
|
2383
2381
|
autoTheme: { type: Boolean },
|
|
@@ -2414,9 +2412,9 @@ var Rn = {
|
|
|
2414
2412
|
Object,
|
|
2415
2413
|
Array
|
|
2416
2414
|
] }
|
|
2417
|
-
},
|
|
2415
|
+
}, Et),
|
|
2418
2416
|
setup(n) {
|
|
2419
|
-
let r = n, a =
|
|
2417
|
+
let r = n, a = I("");
|
|
2420
2418
|
function o() {
|
|
2421
2419
|
if (!r.autoTheme || a.value.trim() === "") return {};
|
|
2422
2420
|
let e = /* @__PURE__ */ new Map([
|
|
@@ -2438,14 +2436,14 @@ var Rn = {
|
|
|
2438
2436
|
}
|
|
2439
2437
|
return t;
|
|
2440
2438
|
}
|
|
2441
|
-
let s =
|
|
2442
|
-
|
|
2439
|
+
let s = I(!1), c = i.isLoading, l = I(null), { focused: u } = lt(l), d, f;
|
|
2440
|
+
V(c, (e) => {
|
|
2443
2441
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2444
2442
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
2445
2443
|
}, 150)) : d === void 0 ? f = setTimeout(() => {
|
|
2446
2444
|
s.value = !1;
|
|
2447
2445
|
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
2448
|
-
}, { immediate: !0 }),
|
|
2446
|
+
}, { immediate: !0 }), V(u, (e) => {
|
|
2449
2447
|
e && c.value && (s.value = !0);
|
|
2450
2448
|
});
|
|
2451
2449
|
let p = S(() => r.loading === void 0 ? r.autoLoading ? s.value : !1 : r.loading), m = S(() => {
|
|
@@ -2530,7 +2528,7 @@ var Rn = {
|
|
|
2530
2528
|
break;
|
|
2531
2529
|
}
|
|
2532
2530
|
if (t !== void 0) return t;
|
|
2533
|
-
}), y =
|
|
2531
|
+
}), y = Ne(), ee = S(() => M(y, {
|
|
2534
2532
|
...m.value,
|
|
2535
2533
|
ref: g
|
|
2536
2534
|
}, { class: "flex-shrink-0" })), b = S(() => {
|
|
@@ -2541,33 +2539,33 @@ var Rn = {
|
|
|
2541
2539
|
}
|
|
2542
2540
|
};
|
|
2543
2541
|
});
|
|
2544
|
-
return (r, i) =>
|
|
2545
|
-
default:
|
|
2542
|
+
return (r, i) => B(Q)().checkPermissions(n.permission) ? (F(), T(x, { key: 0 }, [b.value ? (F(), C(B(t), P(M({ key: 0 }, b.value)), {
|
|
2543
|
+
default: H(() => [(F(), C(R(A(B(ze), ee.value)), {
|
|
2546
2544
|
onVnodeMounted: _,
|
|
2547
2545
|
onVnodeUpdated: _
|
|
2548
|
-
},
|
|
2546
|
+
}, xe({ _: 2 }, [n.icon || v.value ? {
|
|
2549
2547
|
name: "icon",
|
|
2550
|
-
fn:
|
|
2548
|
+
fn: H(() => [D(B(e), { icon: n.icon || v.value }, null, 8, ["icon"])]),
|
|
2551
2549
|
key: "0"
|
|
2552
|
-
} : void 0,
|
|
2550
|
+
} : void 0, L(Object.keys(r.$slots), (e) => ({
|
|
2553
2551
|
name: e,
|
|
2554
|
-
fn:
|
|
2552
|
+
fn: H((t) => [Ae(r.$slots, e, P(Ce(t)), void 0, !0)])
|
|
2555
2553
|
}))]), 1536))]),
|
|
2556
2554
|
_: 3
|
|
2557
|
-
}, 16)) : (
|
|
2555
|
+
}, 16)) : (F(), C(R(A(B(ze), ee.value)), {
|
|
2558
2556
|
key: 1,
|
|
2559
2557
|
onVnodeMounted: _,
|
|
2560
2558
|
onVnodeUpdated: _
|
|
2561
|
-
},
|
|
2559
|
+
}, xe({ _: 2 }, [n.icon || v.value ? {
|
|
2562
2560
|
name: "icon",
|
|
2563
|
-
fn:
|
|
2561
|
+
fn: H(() => [D(B(e), { icon: n.icon || v.value }, null, 8, ["icon"])]),
|
|
2564
2562
|
key: "0"
|
|
2565
|
-
} : void 0,
|
|
2563
|
+
} : void 0, L(Object.keys(r.$slots), (e) => ({
|
|
2566
2564
|
name: e,
|
|
2567
|
-
fn:
|
|
2565
|
+
fn: H((t) => [Ae(r.$slots, e, P(Ce(t)), void 0, !0)])
|
|
2568
2566
|
}))]), 1536))], 64)) : w("v-if", !0);
|
|
2569
2567
|
}
|
|
2570
|
-
}), [["__scopeId", "data-v-
|
|
2568
|
+
}), [["__scopeId", "data-v-af27d302"]]), zn = /* @__PURE__ */ O({
|
|
2571
2569
|
name: "TProvider",
|
|
2572
2570
|
__name: "Provider",
|
|
2573
2571
|
setup(e) {
|
|
@@ -2589,14 +2587,14 @@ var Rn = {
|
|
|
2589
2587
|
variant: "text"
|
|
2590
2588
|
})
|
|
2591
2589
|
} };
|
|
2592
|
-
return (e, n) => (
|
|
2590
|
+
return (e, n) => (F(), C(B(at), {
|
|
2593
2591
|
"empty-values": [""],
|
|
2594
|
-
locale:
|
|
2592
|
+
locale: B(Tt),
|
|
2595
2593
|
"value-on-clear": "",
|
|
2596
2594
|
"z-index": 5500
|
|
2597
2595
|
}, {
|
|
2598
|
-
default:
|
|
2599
|
-
default:
|
|
2596
|
+
default: H(() => [D(B(Ve), { "global-config": t }, {
|
|
2597
|
+
default: H(() => [Ae(e.$slots, "default")]),
|
|
2600
2598
|
_: 3
|
|
2601
2599
|
})]),
|
|
2602
2600
|
_: 3
|
|
@@ -2604,4 +2602,4 @@ var Rn = {
|
|
|
2604
2602
|
}
|
|
2605
2603
|
});
|
|
2606
2604
|
//#endregion
|
|
2607
|
-
export {
|
|
2605
|
+
export { nn as A, G as B, fn as C, J as D, cn as E, Wt as F, jt as H, Ut as I, Nt as L, Yt as M, Xt as N, sn as O, Zt as P, Vt as R, Y as S, ln as T, Dt as U, W as V, Et as W, Sn as _, In as a, bn as b, jn as c, On as d, Dn as f, Cn as g, wn as h, Q as i, en as j, rn as k, An as l, Tn as m, $ as n, Fn as o, En as p, Ln as r, Pn as s, zn as t, kn as u, vn as v, pn as w, xn as x, yn as y, K as z };
|