dlzn-ui 2.0.113 → 2.0.115
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/Error-xMIRkHfW.css +1 -0
- package/assets/Index-CGH6q9f2.css +1 -0
- package/assets/Index-DEhdS9RX.css +1 -0
- package/assets/css/other.css +6 -0
- package/assets/css/tdesign-reset.css +1 -1
- package/assets/index-DLpIFnd2.css +1 -0
- package/assets/{provider-D_qs42UA.css → provider-BLlX3k0I.css} +1 -1
- package/chunks/{AssignUser-BHO8g_0q.mjs → AssignUser-3GG-MbbA.mjs} +3 -3
- package/chunks/{BasicInfo-7Ly3RRWN.mjs → BasicInfo-C3BNUyUi.mjs} +1 -1
- package/chunks/{ColumnInfo-Bi3nJ7xF.mjs → ColumnInfo-CZ3KYhrk.mjs} +2 -2
- package/chunks/{Common-CN7InZnH.mjs → Common-CDYQ6xSo.mjs} +1 -1
- package/chunks/{Day-Brqckhl-.mjs → Day-4IAlW8Q5.mjs} +1 -1
- package/chunks/{DictTypeDetail-qp8MauoO.mjs → DictTypeDetail-CttRFOwY.mjs} +2 -2
- package/chunks/Error-BcqmeYDn.mjs +32 -0
- package/chunks/{GenInfo-DIFzMtdf.mjs → GenInfo-DSpc-CEW.mjs} +1 -1
- package/chunks/{Hour-3nRVF7QE.mjs → Hour-CAEjaFrQ.mjs} +1 -1
- package/chunks/{Import-Bjnq3sJm.mjs → Import-Cb_YoGef.mjs} +2 -2
- package/chunks/{Index-Jz6ZP1_r.mjs → Index-5z3rHOeO.mjs} +1 -1
- package/chunks/{Index-Cly4thtF.mjs → Index-BF_EP32p.mjs} +1 -1
- package/chunks/{Index-YgFKfGeF.mjs → Index-BgR8aek2.mjs} +1 -1
- package/chunks/{Index-DK_3CVF8.mjs → Index-BjiK8-ra.mjs} +1 -1
- package/chunks/{Index-Doxlecv8.mjs → Index-BuHKr6wa.mjs} +1 -1
- package/chunks/{Index-CpJskbiU.mjs → Index-Ctnhjvtv.mjs} +1 -1
- package/chunks/{Index-Cj28BYQh.mjs → Index-DFBqU20m.mjs} +1 -1
- package/chunks/{Index-oFCKTTCI.mjs → Index-DG8iEO7I.mjs} +1 -1
- package/chunks/{Index-X_lgaYbj.mjs → Index-DOENwQQD.mjs} +1 -1
- package/chunks/Index-DPhe1pYC.mjs +4 -0
- package/chunks/{Index-CWK6SeJO.mjs → Index-DxS7Q5F6.mjs} +1 -1
- package/chunks/{Index-CMetXHc7.mjs → Index-GinLjVo2.mjs} +1 -1
- package/chunks/{Index-B4M2Ac08.mjs → Index-S1vg63Ao.mjs} +1 -1
- package/chunks/{Index-S771amVp.mjs → Index-SS7WT7os.mjs} +1 -1
- package/chunks/{Index-B_0bjaXy.mjs → Index-VLZVtx6t.mjs} +1 -1
- package/chunks/{Index-7igJvIN7.mjs → Index-ufUSRSV3.mjs} +1 -1
- package/chunks/{Index-CuDYxrkx.mjs → Index-xyP_2SWI.mjs} +1 -1
- package/chunks/{Index-B-tJ29ym.mjs → Index-y6AZshww.mjs} +1 -1
- package/chunks/{IndexItem-BY15bESs.mjs → IndexItem-C8-z2ZGy.mjs} +3 -3
- package/chunks/{Log-B0qBhyvg.mjs → Log-CvSqm5hi.mjs} +2 -2
- package/chunks/{LoginBg--qk7UQWN.mjs → LoginBg-CJlpYJ7v.mjs} +1 -1
- package/chunks/{Minute-CSeiVAJH.mjs → Minute-CFCOrO1y.mjs} +1 -1
- package/chunks/{Month-CYvN7Fem.mjs → Month-DjGoXNob.mjs} +1 -1
- package/chunks/{Preview-B_rggi_K.mjs → Preview-Bwtmtfb8.mjs} +1 -1
- package/chunks/{Second-DDYeTlsZ.mjs → Second-C0LxCbg1.mjs} +1 -1
- package/chunks/{SelectDept-CWlQcFwU.mjs → SelectDept-BkHNe72k.mjs} +1 -1
- package/chunks/{SelectMenu-o3K6gP_L.mjs → SelectMenu-Cu5adX56.mjs} +1 -1
- package/chunks/{SelectUser-B7xE5Oh7.mjs → SelectUser-OKAanMrL.mjs} +2 -2
- package/chunks/{UserInfo-B6c117CC.mjs → UserInfo-M1VnTJCZ.mjs} +1 -1
- package/chunks/{Wrapper-DtvWn-pC.mjs → Wrapper-BMPkbCR3.mjs} +1 -1
- package/chunks/{app-DINbMvMl.mjs → app-B4o73ToQ.mjs} +1 -1
- package/chunks/{custom-page-list-CaAY9S2h.mjs → custom-page-list-AxdHlTfT.mjs} +4 -4
- package/chunks/{custom-page-table-CT2Vo6EI.mjs → custom-page-table-Drf31hjx.mjs} +2 -2
- package/chunks/{job-CqSdWYBk.mjs → job-D-t78dVK.mjs} +3 -3
- package/chunks/{overview-DTBppWa9.mjs → overview-Bw_XKixC.mjs} +1 -1
- package/chunks/{page-list-DKyH7HZI.mjs → page-list-RPWfZAf-.mjs} +3 -3
- package/chunks/{page-query-CCCTLUAG.mjs → page-query-Dbw-eE_o.mjs} +1 -1
- package/chunks/{page-table-DLmtokXr.mjs → page-table-DFh-PWfm.mjs} +3 -3
- package/chunks/{pagination-BsawNa0L.mjs → pagination-nGDAQAjQ.mjs} +1 -1
- package/chunks/{provider-CWqIJHLL.mjs → provider-E-KkUJb4.mjs} +401 -403
- package/chunks/{table-DebBbKWn.mjs → table-BgqfFkRQ.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/cascader/index.mjs +1 -1
- package/components/cascader/src/cascader.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/date-picker/index.mjs +1 -1
- package/components/date-picker/src/date-picker.mjs +1 -1
- package/components/dialog/index.mjs +1 -1
- package/components/dialog/src/dialog.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +9 -9
- package/components/input-number/index.mjs +1 -1
- package/components/input-number/src/input-number.mjs +1 -1
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/OptionLabel/Index.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/range-input/index.mjs +1 -1
- package/components/range-input/src/range-input.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useLabel/index.mjs +1 -1
- package/hooks/useList/index.mjs +1 -1
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +37 -33
- package/layout/Login.mjs +2 -2
- package/layout/NotFound.mjs +1 -1
- package/layout/{Home1.mjs → Test.mjs} +44 -36
- package/layout/index.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/layout/vueBits/Grainient.vue.d.ts +1 -1
- package/main.mjs +2 -2
- package/package.json +5 -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/autoImport/$fileViewer/Error.mjs +1 -0
- package/plugins/autoImport/$fileViewer/Error.vue.d.ts +9 -0
- package/plugins/autoImport/$fileViewer/Index.mjs +188 -0
- package/plugins/autoImport/$fileViewer/Index.vue.d.ts +13 -0
- package/plugins/autoImport/$fileViewer/index.d.ts +2 -0
- package/plugins/autoImport/$fileViewer/index2.mjs +25 -0
- package/plugins/autoImport/$fileViewer/pdf/Index.mjs +1 -0
- package/plugins/autoImport/$fileViewer/pdf/Index.vue.d.ts +12 -0
- package/plugins/autoImport/$fileViewer/pdf/plugin.d.ts +3 -0
- package/plugins/autoImport/$fileViewer/pdf/plugin.mjs +48 -0
- package/plugins/captcha/captcha.mjs +1 -1
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/directive/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/Wrapper.mjs +1 -1
- package/plugins/tableRenders/cell/AudioPlay/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Avatar/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/FormatDate/Index.mjs +1 -1
- package/plugins/tableRenders/cell/FormatNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Icon/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Image/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ImageViewer/Index.mjs +1 -1
- package/plugins/tableRenders/cell/InputNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/OptionLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyText/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +15 -15
- package/plugins/tableRenders/title/TypographyText/Index.mjs +1 -1
- package/plugins/tableRenders/title/index.mjs +2 -2
- package/proj-template/.vscode/settings.json +1 -0
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +1 -1
- package/utils/gather.mjs +1 -1
- package/utils/index.mjs +1 -1
- package/utils/tool.mjs +1 -1
- package/views/monitor/cache/index.mjs +2 -2
- package/views/monitor/cacheList/index.mjs +2 -2
- package/views/monitor/job/index.mjs +1 -1
- package/views/monitor/logininfor/index.mjs +2 -2
- package/views/monitor/online/index.mjs +2 -2
- package/views/monitor/operlog/index.mjs +2 -2
- package/views/monitor/server/index.mjs +2 -2
- package/views/system/config/index.mjs +2 -2
- package/views/system/dept/index.mjs +2 -2
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +3 -3
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +2 -2
- package/views/system/menu/utils.mjs +1 -1
- package/views/system/notice/index.mjs +2 -2
- package/views/system/post/index.mjs +2 -2
- package/views/system/role/index.mjs +5 -5
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +3 -3
- package/views/tool/gen/editTable/index.mjs +4 -4
- package/views/tool/gen/editTable/modules/BasicInfo.mjs +1 -1
- package/views/tool/gen/editTable/modules/ColumnInfo.mjs +1 -1
- package/views/tool/gen/editTable/modules/GenInfo.mjs +1 -1
- package/views/tool/gen/index.mjs +4 -4
- package/views/tool/gen/modules/Import.mjs +1 -1
- package/views/tool/gen/modules/Preview.mjs +1 -1
- package/views/tool/job/index.mjs +1 -1
- package/views/tool/job/modules/Log.mjs +1 -1
- /package/layout/{Home1.vue.d.ts → Test.vue.d.ts} +0 -0
|
@@ -42,20 +42,20 @@ import { t as me } from "./switch-BByqwNgy.mjs";
|
|
|
42
42
|
import "../components/textarea/index.mjs";
|
|
43
43
|
import { t as he } from "./textarea-C9VbFXpr.mjs";
|
|
44
44
|
import { passwordReg as ge, passwordRegMessage as _e } from "../constants/regs.mjs";
|
|
45
|
-
import { Fragment as ve, 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 j, markRaw as we, mergeDefaults as M, mergeModels as Te, mergeProps as N, nextTick as Ee, normalizeClass as De, normalizeProps as Oe, onMounted as ke, openBlock as P, provide as Ae, reactive as je, ref as F, renderList as
|
|
46
|
-
import { Breadcrumb as
|
|
47
|
-
import { ElConfigProvider as
|
|
48
|
-
import { useElementSize as
|
|
49
|
-
import { cloneDeep as
|
|
50
|
-
import { defineStore as
|
|
51
|
-
import
|
|
52
|
-
import { NavigationFailureType as
|
|
53
|
-
import { createAlova as
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import '../assets/provider-
|
|
58
|
-
var
|
|
45
|
+
import { Fragment as ve, 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 j, markRaw as we, mergeDefaults as M, mergeModels as Te, mergeProps as N, nextTick as Ee, normalizeClass as De, normalizeProps as Oe, onMounted as ke, openBlock as P, provide as Ae, reactive as je, ref as F, renderList as Me, renderSlot as Ne, resolveComponent as Pe, resolveDynamicComponent as I, shallowRef as Fe, toDisplayString as L, unref as R, useAttrs as Ie, useModel as Le, useSlots as Re, useTemplateRef as ze, watch as z, withCtx as B, withModifiers as Be } from "vue";
|
|
46
|
+
import { Breadcrumb as Ve, BreadcrumbItem as He, Button as Ue, Cascader as We, CheckboxGroup as Ge, ConfigProvider as Ke, Content as qe, Dialog as Je, DialogPlugin as Ye, Drawer as Xe, DrawerPlugin as Ze, Form as Qe, FormItem as $e, HeadMenu as et, Header as tt, InputAdornment as nt, InputNumber as rt, Layout as it, Menu as at, MenuItem as ot, RadioGroup as st, RangeInput as ct, Select as lt, Tree as ut, TreeSelect as dt, Upload as ft } from "tdesign-vue-next";
|
|
47
|
+
import { ElConfigProvider as pt, ElDatePicker as mt } from "element-plus";
|
|
48
|
+
import { useElementSize as ht, useElementVisibility as gt, useFavicon as _t, useFocus as vt, useMutationObserver as yt, useResizeObserver as bt } from "@vueuse/core";
|
|
49
|
+
import { cloneDeep as xt, isPlainObject as St } from "lodash-es";
|
|
50
|
+
import { defineStore as Ct } from "pinia";
|
|
51
|
+
import wt from "virtual:dlzn-ui/enhance";
|
|
52
|
+
import { NavigationFailureType as Tt, createRouter as Et, createWebHistory as Dt, isNavigationFailure as Ot, useRoute as V, useRouter as kt } from "vue-router";
|
|
53
|
+
import { createAlova as At } from "alova";
|
|
54
|
+
import jt from "alova/fetch";
|
|
55
|
+
import Mt from "alova/vue";
|
|
56
|
+
import Nt from "path-browserify";
|
|
57
|
+
import '../assets/provider-BLlX3k0I.css';// ../../node_modules/.pnpm/element-plus@2.14.8_vue@3.5.45/node_modules/element-plus/es/locale/lang/zh-cn.mjs
|
|
58
|
+
var Pt = {
|
|
59
59
|
name: "zh-cn",
|
|
60
60
|
el: {
|
|
61
61
|
breadcrumb: { label: "面包屑" },
|
|
@@ -236,12 +236,12 @@ var Nt = {
|
|
|
236
236
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
},
|
|
239
|
+
}, Ft = {
|
|
240
240
|
autoIcon: !0,
|
|
241
241
|
autoLoading: !0,
|
|
242
242
|
autoTheme: !0,
|
|
243
243
|
loading: void 0
|
|
244
|
-
},
|
|
244
|
+
}, It = {
|
|
245
245
|
autoLabelWidth: !0,
|
|
246
246
|
colon: !0,
|
|
247
247
|
data: () => je({}),
|
|
@@ -254,7 +254,7 @@ var Nt = {
|
|
|
254
254
|
requiredMark: void 0,
|
|
255
255
|
resetType: "initial",
|
|
256
256
|
showErrorMessage: !0
|
|
257
|
-
},
|
|
257
|
+
}, Lt = {
|
|
258
258
|
clearable: !0,
|
|
259
259
|
disabled: void 0,
|
|
260
260
|
filterable: !0,
|
|
@@ -265,7 +265,7 @@ var Nt = {
|
|
|
265
265
|
showAllLevels: !0,
|
|
266
266
|
valueMode: "onlyLeaf",
|
|
267
267
|
valueType: "single"
|
|
268
|
-
},
|
|
268
|
+
}, Rt = class {
|
|
269
269
|
stream;
|
|
270
270
|
onDisposed;
|
|
271
271
|
audioElement;
|
|
@@ -294,7 +294,7 @@ var Nt = {
|
|
|
294
294
|
onTrackEnded = () => {
|
|
295
295
|
this.dispose();
|
|
296
296
|
};
|
|
297
|
-
},
|
|
297
|
+
}, zt = new class {
|
|
298
298
|
players = /* @__PURE__ */ new Map();
|
|
299
299
|
play(e, t) {
|
|
300
300
|
if (this.players.has(e)) {
|
|
@@ -306,7 +306,7 @@ var Nt = {
|
|
|
306
306
|
}
|
|
307
307
|
let { disposeOthers: n = !0, setAudioElement: r } = t ?? {};
|
|
308
308
|
n && this.release();
|
|
309
|
-
let i = new
|
|
309
|
+
let i = new Rt(e, (e) => {
|
|
310
310
|
this.players.delete(e);
|
|
311
311
|
}, r);
|
|
312
312
|
return this.players.set(e, i), {
|
|
@@ -319,14 +319,14 @@ var Nt = {
|
|
|
319
319
|
else for (let e of [...this.players.values()]) e.dispose();
|
|
320
320
|
}
|
|
321
321
|
}();
|
|
322
|
-
function
|
|
323
|
-
return
|
|
322
|
+
function Bt(e, t) {
|
|
323
|
+
return zt.play(e, t);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
|
|
325
|
+
function Vt(e) {
|
|
326
|
+
zt.release(e);
|
|
327
327
|
}
|
|
328
328
|
// ../../packages/dlzn-ui/utils/audio/playUrl.ts
|
|
329
|
-
var
|
|
329
|
+
var Ht = class {
|
|
330
330
|
url;
|
|
331
331
|
onDisposed;
|
|
332
332
|
audioElement;
|
|
@@ -348,7 +348,7 @@ var Vt = class {
|
|
|
348
348
|
onEnded = () => {
|
|
349
349
|
this.dispose();
|
|
350
350
|
};
|
|
351
|
-
},
|
|
351
|
+
}, Ut = new class {
|
|
352
352
|
players = /* @__PURE__ */ new Map();
|
|
353
353
|
play(e, t) {
|
|
354
354
|
if (this.players.has(e)) {
|
|
@@ -360,7 +360,7 @@ var Vt = class {
|
|
|
360
360
|
}
|
|
361
361
|
let { disposeOthers: n = !0, setAudioElement: r } = t ?? {};
|
|
362
362
|
n && this.release();
|
|
363
|
-
let i = new
|
|
363
|
+
let i = new Ht(e, (e) => {
|
|
364
364
|
this.players.delete(e);
|
|
365
365
|
}, r);
|
|
366
366
|
return this.players.set(e, i), {
|
|
@@ -373,19 +373,19 @@ var Vt = class {
|
|
|
373
373
|
else for (let e of [...this.players.values()]) e.dispose();
|
|
374
374
|
}
|
|
375
375
|
}();
|
|
376
|
-
function
|
|
377
|
-
return
|
|
376
|
+
function Wt(e, t) {
|
|
377
|
+
return Ut.play(e, t);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
|
|
379
|
+
function Gt(e) {
|
|
380
|
+
Ut.release(e);
|
|
381
381
|
}
|
|
382
382
|
// ../../packages/dlzn-ui/utils/gather.ts
|
|
383
|
-
function
|
|
383
|
+
function Kt(e, t) {
|
|
384
384
|
let n = Array.isArray(t), r = (n ? t : [t]).map((t) => e.find((e) => String(e.value) === String(t))?.label ?? f(t));
|
|
385
385
|
return n ? r : r[0];
|
|
386
386
|
}
|
|
387
387
|
// ../../packages/dlzn-ui/components/dialog/src/dialog.ts
|
|
388
|
-
var
|
|
388
|
+
var qt = {
|
|
389
389
|
closeBtn: () => A($, {
|
|
390
390
|
icon: "mdi:close",
|
|
391
391
|
shape: "circle",
|
|
@@ -406,7 +406,7 @@ var Kt = {
|
|
|
406
406
|
preventScrollThrough: !0,
|
|
407
407
|
showOverlay: !0,
|
|
408
408
|
width: "fit-content"
|
|
409
|
-
},
|
|
409
|
+
}, Jt = /* @__PURE__ */ O({
|
|
410
410
|
inheritAttrs: !1,
|
|
411
411
|
name: "TDialog",
|
|
412
412
|
__name: "dialog",
|
|
@@ -453,9 +453,9 @@ var Kt = {
|
|
|
453
453
|
"onUpdate:visible": { type: Function },
|
|
454
454
|
visible: { type: Boolean }
|
|
455
455
|
}, {
|
|
456
|
-
...
|
|
456
|
+
...qt,
|
|
457
457
|
attach: "body",
|
|
458
|
-
closeBtn: () =>
|
|
458
|
+
closeBtn: () => qt.closeBtn,
|
|
459
459
|
showInAttachedElement: !1
|
|
460
460
|
}),
|
|
461
461
|
setup(e) {
|
|
@@ -468,48 +468,48 @@ var Kt = {
|
|
|
468
468
|
function i(e) {
|
|
469
469
|
r.exposed = e ?? {};
|
|
470
470
|
}
|
|
471
|
-
return (e, t) => (P(), C(
|
|
471
|
+
return (e, t) => (P(), C(I(A(R(Je), N(e.$attrs, {
|
|
472
472
|
...n.value,
|
|
473
473
|
ref: i
|
|
474
474
|
}), e.$slots))));
|
|
475
475
|
}
|
|
476
|
-
}),
|
|
476
|
+
}), Yt = /* @__PURE__ */ function(e) {
|
|
477
477
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
478
|
-
}(
|
|
479
|
-
function
|
|
480
|
-
let r = S(() => typeof t.body == "function" ? t.body(A) : t.body), i = F(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: a, stop: o } =
|
|
478
|
+
}(Yt || {}), Xt = /* @__PURE__ */ new Set();
|
|
479
|
+
function Zt(e, t, n) {
|
|
480
|
+
let r = S(() => typeof t.body == "function" ? t.body(A) : t.body), i = F(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: a, stop: o } = gt(i, {
|
|
481
481
|
controls: !0,
|
|
482
482
|
initialValue: !0
|
|
483
483
|
}), s = {
|
|
484
|
-
...
|
|
484
|
+
...qt,
|
|
485
485
|
closeWhenCloseAll: !0,
|
|
486
486
|
...t ?? {},
|
|
487
|
-
body: () => A(
|
|
487
|
+
body: () => A(wr, {}, { default: () => r.value })
|
|
488
488
|
}, c, l = {
|
|
489
489
|
...s,
|
|
490
490
|
onClosed: () => {
|
|
491
|
-
i.value !== null && a.value && i.value.focus(), o(), s.onClosed?.(),
|
|
491
|
+
i.value !== null && a.value && i.value.focus(), o(), s.onClosed?.(), Xt.delete(c);
|
|
492
492
|
}
|
|
493
493
|
};
|
|
494
494
|
delete l.closeWhenCloseAll;
|
|
495
495
|
let u = m();
|
|
496
|
-
return c = e === void 0 ?
|
|
496
|
+
return c = e === void 0 ? Ye(l, n ?? u) : Ye[e](l, n ?? u), s.closeWhenCloseAll && Xt.add(c), c;
|
|
497
497
|
}
|
|
498
|
-
var
|
|
499
|
-
return
|
|
498
|
+
var Qt = function(...e) {
|
|
499
|
+
return Zt(void 0, ...e);
|
|
500
500
|
};
|
|
501
|
-
Object.values(
|
|
502
|
-
|
|
503
|
-
|
|
501
|
+
Object.values(Yt).forEach((e) => {
|
|
502
|
+
Qt[e] = e === "closeAll" ? () => {
|
|
503
|
+
Xt.forEach((e) => {
|
|
504
504
|
e.hide();
|
|
505
505
|
});
|
|
506
|
-
} : (...t) =>
|
|
506
|
+
} : (...t) => Zt(e, ...t);
|
|
507
507
|
});
|
|
508
508
|
// ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
509
|
-
var
|
|
509
|
+
var H = (e, t) => {
|
|
510
510
|
let n = { ...typeof e == "string" ? {} : e };
|
|
511
511
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
512
|
-
let a =
|
|
512
|
+
let a = Qt(typeof e == "string" ? {
|
|
513
513
|
body: e,
|
|
514
514
|
onConfirm: () => {
|
|
515
515
|
a.hide(), r();
|
|
@@ -534,8 +534,8 @@ var U = (e, t) => {
|
|
|
534
534
|
});
|
|
535
535
|
};
|
|
536
536
|
// ../../packages/dlzn-ui/store/modules/common.ts
|
|
537
|
-
function
|
|
538
|
-
return VITE_APP_ID === "1" ?
|
|
537
|
+
function $t() {
|
|
538
|
+
return VITE_APP_ID === "1" ? q.Get(`yq/oemConfig/getByDomain/${window.location.hostname}`, {
|
|
539
539
|
meta: { useToken: !1 },
|
|
540
540
|
transform(e) {
|
|
541
541
|
if (e === null) throw Error("oemConfig getByDomain return null");
|
|
@@ -546,26 +546,26 @@ function Qt() {
|
|
|
546
546
|
version: ""
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
|
-
}) :
|
|
549
|
+
}) : q.Get("common/appInfo", { meta: {
|
|
550
550
|
useFailMsg: !1,
|
|
551
551
|
useSysFailMsg: !1,
|
|
552
552
|
useToken: !1
|
|
553
553
|
} });
|
|
554
554
|
}
|
|
555
|
-
var
|
|
555
|
+
var U = Ct("common", () => {
|
|
556
556
|
let e = F(!0), t = F(250), n = F({
|
|
557
557
|
appName: "",
|
|
558
558
|
color: "",
|
|
559
559
|
logo: "",
|
|
560
560
|
version: ""
|
|
561
561
|
});
|
|
562
|
-
|
|
562
|
+
z(() => n.value.appName, (e) => {
|
|
563
563
|
e && (document.title = e);
|
|
564
|
-
}),
|
|
564
|
+
}), z(() => n.value.color, (e) => {
|
|
565
565
|
e && (_().value = e);
|
|
566
|
-
}),
|
|
566
|
+
}), _t(S(() => n.value.logo || "/favicon.ico"));
|
|
567
567
|
function r() {
|
|
568
|
-
|
|
568
|
+
$t().then((e) => {
|
|
569
569
|
n.value = e;
|
|
570
570
|
}).catch((e) => {
|
|
571
571
|
n.value = {
|
|
@@ -590,13 +590,13 @@ var W = St("common", () => {
|
|
|
590
590
|
isRequestSleep: i,
|
|
591
591
|
requestActive: o
|
|
592
592
|
};
|
|
593
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }),
|
|
594
|
-
let e = F([]), t =
|
|
593
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), W = Ct("recentRouters", () => {
|
|
594
|
+
let e = F([]), t = V(), n = kt();
|
|
595
595
|
function r() {
|
|
596
596
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
597
597
|
}
|
|
598
598
|
function i(t, n) {
|
|
599
|
-
let r =
|
|
599
|
+
let r = xt(n), i = e.value.findIndex((e) => e.name === r.name || zn(e.name).meta.title === zn(r.name).meta.title);
|
|
600
600
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
601
601
|
let n = e.value.findIndex((e) => e.name === t);
|
|
602
602
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -626,16 +626,16 @@ var W = St("common", () => {
|
|
|
626
626
|
};
|
|
627
627
|
}, { persist: { pick: ["recentRouters"] } });
|
|
628
628
|
// ../../packages/dlzn-ui/store/modules/router.ts
|
|
629
|
-
function
|
|
630
|
-
return
|
|
629
|
+
function en() {
|
|
630
|
+
return q.Get("getRouters", { meta: {
|
|
631
631
|
useFailMsg: "获取用户路由失败",
|
|
632
632
|
useLoading: "正在获取用户路由..."
|
|
633
633
|
} });
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function tn(e) {
|
|
636
636
|
return e.children !== void 0 || e.component !== void 0;
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function nn(e) {
|
|
639
639
|
let t = [];
|
|
640
640
|
return e.forEach((e) => {
|
|
641
641
|
e.path === "/" ? t.push({
|
|
@@ -644,7 +644,7 @@ function tn(e) {
|
|
|
644
644
|
}) : t.push(e);
|
|
645
645
|
}), t;
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function rn(e) {
|
|
648
648
|
let t = (e, n) => {
|
|
649
649
|
let r = [];
|
|
650
650
|
return e.forEach((e) => {
|
|
@@ -668,12 +668,12 @@ function nn(e) {
|
|
|
668
668
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
671
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = cn(e)), tn(i) && r.push(i);
|
|
672
672
|
}), r;
|
|
673
|
-
}, n =
|
|
673
|
+
}, n = Rn();
|
|
674
674
|
return n.children.push(...e), t([n], null);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function an(e) {
|
|
677
677
|
let t = (e) => {
|
|
678
678
|
let n = [...e], r = n.length;
|
|
679
679
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -686,36 +686,36 @@ function rn(e) {
|
|
|
686
686
|
};
|
|
687
687
|
return t(e);
|
|
688
688
|
}
|
|
689
|
-
var
|
|
690
|
-
function
|
|
689
|
+
var on = [];
|
|
690
|
+
function sn(e) {
|
|
691
691
|
return `./${e.split("___")[0]}.vue`;
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function cn(e) {
|
|
694
694
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
695
|
-
let t = e.component, n = typeof t == "string" ? te[
|
|
695
|
+
let t = e.component, n = typeof t == "string" ? te[sn(t)] : t;
|
|
696
696
|
if (n === void 0) {
|
|
697
|
-
let e = `路由组件${
|
|
697
|
+
let e = `路由组件${sn(t)}不存在`;
|
|
698
698
|
return console.error(e), h["./NotFound.vue"];
|
|
699
699
|
}
|
|
700
|
-
return typeof t == "string" &&
|
|
700
|
+
return typeof t == "string" && on.push(sn(t)), () => n().then((t) => ({
|
|
701
701
|
...t.default,
|
|
702
702
|
name: e.name
|
|
703
703
|
}));
|
|
704
704
|
}
|
|
705
705
|
return e.component;
|
|
706
706
|
}
|
|
707
|
-
var
|
|
708
|
-
let e = F([]), t =
|
|
707
|
+
var ln = Ct("router", () => {
|
|
708
|
+
let e = F([]), t = kt(), n = Q();
|
|
709
709
|
async function r() {
|
|
710
|
-
let r = await
|
|
710
|
+
let r = await en();
|
|
711
711
|
VITE_MODE === "development" && n.isAdmin && fetch("/__dev__/save-folder-alias", {
|
|
712
712
|
body: JSON.stringify(r),
|
|
713
713
|
headers: { "Content-Type": "application/json" },
|
|
714
714
|
method: "POST"
|
|
715
715
|
}).catch((e) => {
|
|
716
716
|
console.warn("[dev-save-folder-alias] 写入本地 json 失败", e);
|
|
717
|
-
}),
|
|
718
|
-
if (!
|
|
717
|
+
}), on.length = 0, e.value = we(an(rn(nn(r)))), n.isAdmin && Object.keys(te).forEach((e) => {
|
|
718
|
+
if (!on.includes(e) && ![
|
|
719
719
|
"./tool",
|
|
720
720
|
"./system",
|
|
721
721
|
"./monitor"
|
|
@@ -725,7 +725,7 @@ var cn = St("router", () => {
|
|
|
725
725
|
}
|
|
726
726
|
}), t.hasRoute("Index") && t.removeRoute("Index"), e.value.forEach((e) => {
|
|
727
727
|
t.addRoute(e);
|
|
728
|
-
}),
|
|
728
|
+
}), W().init();
|
|
729
729
|
}
|
|
730
730
|
function i() {
|
|
731
731
|
e.value.forEach((e) => {
|
|
@@ -737,11 +737,11 @@ var cn = St("router", () => {
|
|
|
737
737
|
getRouters: r,
|
|
738
738
|
routersRaw: e
|
|
739
739
|
};
|
|
740
|
-
}),
|
|
740
|
+
}), un = { class: "ml-2! flex items-center" }, dn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
741
741
|
__name: "Aside",
|
|
742
742
|
setup(e) {
|
|
743
|
-
let t =
|
|
744
|
-
|
|
743
|
+
let t = V(), n = U(), r = S(() => n.appInfo.appName), i = ln(), a = F([]);
|
|
744
|
+
z(() => t.name, () => {
|
|
745
745
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
746
746
|
a.value.includes(e) || a.value.push(e);
|
|
747
747
|
});
|
|
@@ -749,34 +749,34 @@ var cn = St("router", () => {
|
|
|
749
749
|
let o = S(() => {
|
|
750
750
|
let { hidden: e, parentName: n } = t.meta;
|
|
751
751
|
return n !== "" && e === !0 ? n : t.name;
|
|
752
|
-
}), s = S(() => n.appInfo.logo ||
|
|
753
|
-
return (e, t) => (P(), C(
|
|
752
|
+
}), s = S(() => n.appInfo.logo || wt.asideTopLogoUrl);
|
|
753
|
+
return (e, t) => (P(), C(R(at), {
|
|
754
754
|
expanded: a.value,
|
|
755
755
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
756
756
|
class: "w-full!",
|
|
757
757
|
value: o.value
|
|
758
758
|
}, {
|
|
759
|
-
logo:
|
|
759
|
+
logo: B(() => [be("div", un, [D(R(y), {
|
|
760
760
|
class: "logo",
|
|
761
761
|
src: s.value,
|
|
762
762
|
style: {
|
|
763
763
|
width: "28px",
|
|
764
764
|
height: "28px"
|
|
765
765
|
}
|
|
766
|
-
}, null, 8, ["src"]), D(
|
|
766
|
+
}, null, 8, ["src"]), D(R(ee), {
|
|
767
767
|
"animation-speed": 8,
|
|
768
768
|
"class-name": "ml-2 text-xl !font-bold",
|
|
769
769
|
"show-border": !1,
|
|
770
770
|
text: r.value
|
|
771
771
|
}, null, 8, ["text"])])]),
|
|
772
|
-
default:
|
|
772
|
+
default: B(() => [D(ne, { model: R(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
773
773
|
_: 1
|
|
774
774
|
}, 8, ["expanded", "value"]));
|
|
775
775
|
}
|
|
776
|
-
}), [["__scopeId", "data-v-637195ec"]]),
|
|
776
|
+
}), [["__scopeId", "data-v-637195ec"]]), fn = /* @__PURE__ */ O({
|
|
777
777
|
__name: "Breadcrumb",
|
|
778
778
|
setup(e, { expose: t }) {
|
|
779
|
-
let n =
|
|
779
|
+
let n = V(), r = kt(), i = W(), a = S(() => {
|
|
780
780
|
let e = n.matched.map((e) => ({
|
|
781
781
|
name: e.name,
|
|
782
782
|
title: e.meta.title
|
|
@@ -789,24 +789,24 @@ var cn = St("router", () => {
|
|
|
789
789
|
function o(e) {
|
|
790
790
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
791
791
|
}
|
|
792
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (P(), C(
|
|
792
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (P(), C(R(Ve), {
|
|
793
793
|
key: 0,
|
|
794
794
|
class: "absolute top-px z-10 py-1!"
|
|
795
795
|
}, {
|
|
796
|
-
default:
|
|
796
|
+
default: B(() => [(P(!0), T(ve, null, Me(a.value, (e) => (P(), C(R(He), {
|
|
797
797
|
key: e.name,
|
|
798
798
|
disabled: e.disabled,
|
|
799
799
|
onClick: (t) => o(e.name)
|
|
800
800
|
}, {
|
|
801
|
-
default:
|
|
801
|
+
default: B(() => [E(L(e.title), 1)]),
|
|
802
802
|
_: 2
|
|
803
803
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
804
804
|
_: 1
|
|
805
805
|
})) : w("v-if", !0);
|
|
806
806
|
}
|
|
807
|
-
}),
|
|
808
|
-
function
|
|
809
|
-
let t =
|
|
807
|
+
}), pn = /* @__PURE__ */ new Map();
|
|
808
|
+
function mn(e) {
|
|
809
|
+
let t = q.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
810
810
|
cssClass: e.cssClass,
|
|
811
811
|
dictType: e.dictType,
|
|
812
812
|
label: e.dictLabel,
|
|
@@ -814,114 +814,114 @@ function pn(e) {
|
|
|
814
814
|
value: e.dictValue
|
|
815
815
|
})));
|
|
816
816
|
e.forEach((e) => {
|
|
817
|
-
|
|
817
|
+
pn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
|
-
var
|
|
821
|
-
function
|
|
822
|
-
return
|
|
820
|
+
var hn = [];
|
|
821
|
+
function gn(e) {
|
|
822
|
+
return hn.includes(e) || hn.push(e), new Promise((t) => {
|
|
823
823
|
setTimeout(() => {
|
|
824
|
-
let n =
|
|
825
|
-
n.length > 0 &&
|
|
824
|
+
let n = hn.filter((e) => !pn.has(e));
|
|
825
|
+
n.length > 0 && mn(n), hn.length = 0, pn.get(e).then((e) => {
|
|
826
826
|
t(e);
|
|
827
827
|
});
|
|
828
828
|
});
|
|
829
829
|
});
|
|
830
830
|
}
|
|
831
|
-
var
|
|
832
|
-
function
|
|
833
|
-
|
|
834
|
-
}
|
|
835
|
-
function _n(e, t) {
|
|
836
|
-
let n = vn(e);
|
|
837
|
-
return t === void 0 ? Xn(n) : Xn(n, t);
|
|
831
|
+
var G = /* @__PURE__ */ new Map();
|
|
832
|
+
function _n() {
|
|
833
|
+
hn.length = 0, pn.clear(), G.clear();
|
|
838
834
|
}
|
|
839
835
|
function vn(e, t) {
|
|
836
|
+
let n = yn(e);
|
|
837
|
+
return t === void 0 ? Zn(n) : Zn(n, t);
|
|
838
|
+
}
|
|
839
|
+
function yn(e, t) {
|
|
840
840
|
let n;
|
|
841
|
-
return
|
|
841
|
+
return G.has(e) ? n = G.get(e) : (n = F([]), G.set(e, n), gn(e).then((e) => {
|
|
842
842
|
n.value = e;
|
|
843
843
|
})), S(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
|
|
847
|
-
|
|
845
|
+
function bn(e) {
|
|
846
|
+
pn.delete(e), G.has(e) && gn(e).then((t) => {
|
|
847
|
+
G.get(e).value = t;
|
|
848
848
|
});
|
|
849
849
|
}
|
|
850
850
|
// ../../packages/dlzn-ui/hooks/useSysUser/index.ts
|
|
851
|
-
var
|
|
852
|
-
function
|
|
853
|
-
let t =
|
|
851
|
+
var xn = /* @__PURE__ */ new Map();
|
|
852
|
+
function Sn(e) {
|
|
853
|
+
let t = q.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
854
854
|
...e,
|
|
855
855
|
label: e.userName,
|
|
856
856
|
value: e.userId
|
|
857
857
|
})));
|
|
858
858
|
e.forEach((e) => {
|
|
859
|
-
|
|
859
|
+
xn.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
860
860
|
});
|
|
861
861
|
}
|
|
862
|
-
var
|
|
863
|
-
function
|
|
864
|
-
return
|
|
862
|
+
var Cn = [];
|
|
863
|
+
function wn(e) {
|
|
864
|
+
return Cn.includes(e) || Cn.push(e), new Promise((t) => {
|
|
865
865
|
setTimeout(() => {
|
|
866
|
-
let n =
|
|
867
|
-
n.length > 0 &&
|
|
866
|
+
let n = Cn.filter((e) => !xn.has(e));
|
|
867
|
+
n.length > 0 && Sn(n), Cn.length = 0, xn.get(e).then((e) => {
|
|
868
868
|
t(e);
|
|
869
869
|
});
|
|
870
870
|
});
|
|
871
871
|
});
|
|
872
872
|
}
|
|
873
|
-
var
|
|
874
|
-
function
|
|
875
|
-
|
|
873
|
+
var Tn = /* @__PURE__ */ new Map();
|
|
874
|
+
function En() {
|
|
875
|
+
Cn.length = 0, xn.clear(), Tn.clear();
|
|
876
876
|
}
|
|
877
|
-
function
|
|
878
|
-
|
|
879
|
-
|
|
877
|
+
function Dn(e) {
|
|
878
|
+
xn.delete(e), Tn.has(e) && wn(e).then((t) => {
|
|
879
|
+
Tn.get(e).value = t;
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function On(e) {
|
|
883
883
|
let t;
|
|
884
|
-
return
|
|
884
|
+
return Tn.has(e) ? t = Tn.get(e) : (t = F(null), Tn.set(e, t), wn(e).then((e) => {
|
|
885
885
|
t.value = e;
|
|
886
886
|
})), t;
|
|
887
887
|
}
|
|
888
888
|
// ../../packages/dlzn-ui/store/modules/login.ts
|
|
889
|
-
function
|
|
890
|
-
return
|
|
889
|
+
function kn(e) {
|
|
890
|
+
return q.Post("login", e, { meta: {
|
|
891
891
|
useLoading: "登录中...",
|
|
892
892
|
useToken: !1
|
|
893
893
|
} });
|
|
894
894
|
}
|
|
895
|
-
function
|
|
896
|
-
return
|
|
895
|
+
function An() {
|
|
896
|
+
return q.Post("logout", void 0, { meta: {
|
|
897
897
|
useLoading: "退出登录中...",
|
|
898
898
|
useSuccessMsg: !0
|
|
899
899
|
} });
|
|
900
900
|
}
|
|
901
|
-
var
|
|
902
|
-
let e = F(""), t =
|
|
901
|
+
var jn = Ct("login", () => {
|
|
902
|
+
let e = F(""), t = V(), n = kt();
|
|
903
903
|
async function r(t) {
|
|
904
|
-
let n = await
|
|
904
|
+
let n = await kn(t);
|
|
905
905
|
e.value = n.token, await Q().getUserInfo();
|
|
906
906
|
}
|
|
907
907
|
function i() {
|
|
908
|
-
e.value = "", v().clear(),
|
|
908
|
+
e.value = "", v().clear(), ln().clear(), Q().clear(), _n(), En(), $n();
|
|
909
909
|
}
|
|
910
|
-
|
|
910
|
+
z(() => t.name, () => {
|
|
911
911
|
t.name === "Login" && i();
|
|
912
912
|
});
|
|
913
913
|
async function a() {
|
|
914
|
-
await
|
|
914
|
+
await An(), await n.push({ name: "Login" }), i();
|
|
915
915
|
}
|
|
916
916
|
return {
|
|
917
917
|
login: r,
|
|
918
918
|
logout: a,
|
|
919
919
|
token: e
|
|
920
920
|
};
|
|
921
|
-
}, { persist: { pick: ["token"] } }),
|
|
921
|
+
}, { persist: { pick: ["token"] } }), Mn = { class: "flex items-center justify-between" }, Nn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
922
922
|
__name: "Header",
|
|
923
923
|
setup(e) {
|
|
924
|
-
let n =
|
|
924
|
+
let n = V(), r = kt(), i = Q(), a = U(), o = W();
|
|
925
925
|
function s(e) {
|
|
926
926
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
927
927
|
}
|
|
@@ -930,7 +930,7 @@ var An = St("login", () => {
|
|
|
930
930
|
}
|
|
931
931
|
let l = async (e) => {
|
|
932
932
|
let { value: t } = e;
|
|
933
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await
|
|
933
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await H("确定要退出登录吗?"), jn().logout());
|
|
934
934
|
}, u = g.isMd;
|
|
935
935
|
function d(e, t) {
|
|
936
936
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
@@ -955,73 +955,73 @@ var An = St("login", () => {
|
|
|
955
955
|
}), ie(e, i);
|
|
956
956
|
}
|
|
957
957
|
let f = h["./modules/HeaderOperations.vue"] ? Se(h["./modules/HeaderOperations.vue"]) : void 0;
|
|
958
|
-
return (e, r) => (P(), C(
|
|
959
|
-
default:
|
|
958
|
+
return (e, r) => (P(), C(R(tt), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
959
|
+
default: B(() => [D(R(et), {
|
|
960
960
|
"expand-type": "popup",
|
|
961
|
-
value:
|
|
961
|
+
value: R(n).name,
|
|
962
962
|
onChange: s
|
|
963
963
|
}, {
|
|
964
|
-
logo:
|
|
964
|
+
logo: B(() => [D(R($), {
|
|
965
965
|
class: "ml-0! shrink-0",
|
|
966
966
|
shape: "circle",
|
|
967
967
|
size: "large",
|
|
968
968
|
variant: "text",
|
|
969
|
-
onClick: r[0] ||= (e) =>
|
|
969
|
+
onClick: r[0] ||= (e) => R(a).drawerOpen = !R(a).drawerOpen
|
|
970
970
|
}, {
|
|
971
|
-
default:
|
|
971
|
+
default: B(() => [D(R(t), { icon: "lineicons:menu-hamburger-1" })]),
|
|
972
972
|
_: 1
|
|
973
973
|
})]),
|
|
974
|
-
operations:
|
|
974
|
+
operations: B(() => [R(f) ? (P(), C(R(f), { key: 0 })) : w("v-if", !0), D(R(re), {
|
|
975
975
|
options: [{
|
|
976
976
|
content: "个人中心",
|
|
977
977
|
value: "profile",
|
|
978
|
-
prefixIcon: () => A(
|
|
978
|
+
prefixIcon: () => A(R(t), {
|
|
979
979
|
icon: "material-symbols:account-circle",
|
|
980
980
|
size: "16"
|
|
981
981
|
})
|
|
982
982
|
}, {
|
|
983
983
|
content: "退出登录",
|
|
984
984
|
value: "logout",
|
|
985
|
-
prefixIcon: () => A(
|
|
985
|
+
prefixIcon: () => A(R(t), {
|
|
986
986
|
icon: "material-symbols:logout",
|
|
987
987
|
size: "16"
|
|
988
988
|
})
|
|
989
989
|
}],
|
|
990
990
|
onClick: l
|
|
991
991
|
}, {
|
|
992
|
-
default:
|
|
992
|
+
default: B(() => [R(u) ? (P(), C(R($), {
|
|
993
993
|
key: 0,
|
|
994
994
|
icon: "material-symbols:account-circle",
|
|
995
995
|
shape: "square",
|
|
996
996
|
variant: "text"
|
|
997
|
-
})) : (P(), C(
|
|
997
|
+
})) : (P(), C(R($), {
|
|
998
998
|
key: 1,
|
|
999
999
|
icon: "material-symbols:account-circle",
|
|
1000
1000
|
variant: "text"
|
|
1001
1001
|
}, {
|
|
1002
|
-
suffix:
|
|
1002
|
+
suffix: B(() => [D(R(t), {
|
|
1003
1003
|
icon: "icon-park-outline:down",
|
|
1004
1004
|
size: "18"
|
|
1005
1005
|
})]),
|
|
1006
|
-
default:
|
|
1006
|
+
default: B(() => [E(L(R(i).userInfo.userName) + " ", 1)]),
|
|
1007
1007
|
_: 1
|
|
1008
1008
|
}))]),
|
|
1009
1009
|
_: 1
|
|
1010
1010
|
}, 8, ["options"])]),
|
|
1011
|
-
default:
|
|
1011
|
+
default: B(() => [(P(!0), T(ve, null, Me(R(o).recentRouters, (e) => (P(), C(R(ot), {
|
|
1012
1012
|
key: e.name,
|
|
1013
1013
|
value: e.name,
|
|
1014
1014
|
onContextmenu: (t) => d(t, e.name)
|
|
1015
1015
|
}, {
|
|
1016
|
-
default:
|
|
1016
|
+
default: B(() => [be("div", Mn, [be("span", null, L(R(zn)(e.name).meta.title), 1), R(o).recentRouters.length > 1 ? (P(), C(R($), {
|
|
1017
1017
|
key: 0,
|
|
1018
1018
|
class: "ml-1!",
|
|
1019
1019
|
shape: "square",
|
|
1020
1020
|
size: "small",
|
|
1021
1021
|
variant: "text",
|
|
1022
|
-
onClick:
|
|
1022
|
+
onClick: Be((t) => c(e.name), ["stop"])
|
|
1023
1023
|
}, {
|
|
1024
|
-
icon:
|
|
1024
|
+
icon: B(() => [D(R(t), {
|
|
1025
1025
|
icon: "material-symbols:close",
|
|
1026
1026
|
style: { "font-size": "12px !important" }
|
|
1027
1027
|
})]),
|
|
@@ -1034,40 +1034,40 @@ var An = St("login", () => {
|
|
|
1034
1034
|
_: 1
|
|
1035
1035
|
}));
|
|
1036
1036
|
}
|
|
1037
|
-
}), [["__scopeId", "data-v-6c2c986c"]]),
|
|
1037
|
+
}), [["__scopeId", "data-v-6c2c986c"]]), Pn = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
1038
1038
|
__name: "Entry",
|
|
1039
1039
|
setup(t) {
|
|
1040
|
-
let n =
|
|
1040
|
+
let n = V(), r = U(), i = W(), a = v(), o = S(() => i.recentRouters.filter((e) => zn(e.name).meta.noCache === !1).map((e) => e.name)), s = ze("breadcrumb"), c = S(() => (s.value?.items.length ?? 0) > 0), l = S(() => g.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), u = g.isMd, d = ze("contentRef"), { height: f } = ht(d);
|
|
1041
1041
|
function p({ size: e }) {
|
|
1042
1042
|
r.drawerSize = e;
|
|
1043
1043
|
}
|
|
1044
1044
|
let m = S(() => n.meta.fullScreen);
|
|
1045
1045
|
return (t, n) => {
|
|
1046
|
-
let i =
|
|
1046
|
+
let i = Pe("RouterView");
|
|
1047
1047
|
return m.value ? (P(), C(i, { key: 0 }, {
|
|
1048
|
-
default:
|
|
1048
|
+
default: B(({ Component: e }) => [(P(), C(I(e)))]),
|
|
1049
1049
|
_: 1
|
|
1050
|
-
})) : (P(), C(
|
|
1050
|
+
})) : (P(), C(R(it), {
|
|
1051
1051
|
key: 1,
|
|
1052
1052
|
class: "h-full"
|
|
1053
1053
|
}, {
|
|
1054
|
-
default:
|
|
1055
|
-
D(
|
|
1056
|
-
D(
|
|
1057
|
-
visible:
|
|
1058
|
-
"onUpdate:visible": n[0] ||= (e) =>
|
|
1054
|
+
default: B(() => [
|
|
1055
|
+
D(Nn),
|
|
1056
|
+
D(R(Xe), {
|
|
1057
|
+
visible: R(r).drawerOpen,
|
|
1058
|
+
"onUpdate:visible": n[0] ||= (e) => R(r).drawerOpen = e,
|
|
1059
1059
|
footer: !1,
|
|
1060
|
-
mode:
|
|
1060
|
+
mode: R(u) ? "overlay" : "push",
|
|
1061
1061
|
placement: "left",
|
|
1062
|
-
"show-overlay":
|
|
1063
|
-
size:
|
|
1062
|
+
"show-overlay": R(u),
|
|
1063
|
+
size: R(u) ? "200px" : `${R(r).drawerSize}px`,
|
|
1064
1064
|
"size-draggable": {
|
|
1065
1065
|
max: 450,
|
|
1066
1066
|
min: 180
|
|
1067
1067
|
},
|
|
1068
1068
|
onSizeDragEnd: p
|
|
1069
1069
|
}, {
|
|
1070
|
-
default:
|
|
1070
|
+
default: B(() => [D(dn, { class: "no_drawer_body_padding" })]),
|
|
1071
1071
|
_: 1
|
|
1072
1072
|
}, 8, [
|
|
1073
1073
|
"visible",
|
|
@@ -1075,12 +1075,12 @@ var An = St("login", () => {
|
|
|
1075
1075
|
"show-overlay",
|
|
1076
1076
|
"size"
|
|
1077
1077
|
]),
|
|
1078
|
-
D(
|
|
1078
|
+
D(R(qe), {
|
|
1079
1079
|
ref_key: "contentRef",
|
|
1080
1080
|
ref: d,
|
|
1081
1081
|
class: "overflow-hidden"
|
|
1082
1082
|
}, {
|
|
1083
|
-
default:
|
|
1083
|
+
default: B(() => [D(R(e), {
|
|
1084
1084
|
always: "",
|
|
1085
1085
|
"view-class": De(["relative flex flex-col", {
|
|
1086
1086
|
...l.value,
|
|
@@ -1088,14 +1088,14 @@ var An = St("login", () => {
|
|
|
1088
1088
|
}]),
|
|
1089
1089
|
"view-style": {
|
|
1090
1090
|
minWidth: "1200px",
|
|
1091
|
-
minHeight: `${Math.max(
|
|
1091
|
+
minHeight: `${Math.max(R(f), 438)}px`
|
|
1092
1092
|
}
|
|
1093
1093
|
}, {
|
|
1094
|
-
default:
|
|
1095
|
-
default:
|
|
1096
|
-
exclude:
|
|
1094
|
+
default: B(() => [D(fn, { ref: "breadcrumb" }, null, 512), D(i, null, {
|
|
1095
|
+
default: B(({ Component: e }) => [(P(), C(ye, {
|
|
1096
|
+
exclude: R(a).excludeKPname,
|
|
1097
1097
|
include: o.value
|
|
1098
|
-
}, [(P(), C(
|
|
1098
|
+
}, [(P(), C(I(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
1099
1099
|
_: 1
|
|
1100
1100
|
})]),
|
|
1101
1101
|
_: 1
|
|
@@ -1107,8 +1107,8 @@ var An = St("login", () => {
|
|
|
1107
1107
|
}));
|
|
1108
1108
|
};
|
|
1109
1109
|
}
|
|
1110
|
-
}), [["__scopeId", "data-v-de5cbc76"]]),
|
|
1111
|
-
function
|
|
1110
|
+
}), [["__scopeId", "data-v-de5cbc76"]]), Fn = /* @__PURE__ */ new Set();
|
|
1111
|
+
function In(e, t) {
|
|
1112
1112
|
let n = S(() => typeof e.body == "function" ? e.body(A) : e.body), r = {
|
|
1113
1113
|
attach: "#app",
|
|
1114
1114
|
closeOnEscKeydown: !1,
|
|
@@ -1119,25 +1119,25 @@ function Fn(e, t) {
|
|
|
1119
1119
|
lazy: !0,
|
|
1120
1120
|
sizeDraggable: !0,
|
|
1121
1121
|
...e ?? {},
|
|
1122
|
-
body: () => A(
|
|
1122
|
+
body: () => A(wr, {}, { default: () => n.value })
|
|
1123
1123
|
}, i, a = {
|
|
1124
1124
|
...r,
|
|
1125
1125
|
onClose: (e) => {
|
|
1126
|
-
r.onClose?.(e),
|
|
1126
|
+
r.onClose?.(e), Fn.delete(i);
|
|
1127
1127
|
}
|
|
1128
1128
|
};
|
|
1129
|
-
return delete a.closeWhenCloseAll, i =
|
|
1129
|
+
return delete a.closeWhenCloseAll, i = Ze(a, t ?? m()), r.closeWhenCloseAll && Fn.add(i), i;
|
|
1130
1130
|
}
|
|
1131
|
-
var
|
|
1132
|
-
return
|
|
1131
|
+
var Ln = function(...e) {
|
|
1132
|
+
return In(...e);
|
|
1133
1133
|
};
|
|
1134
|
-
|
|
1135
|
-
|
|
1134
|
+
Ln.closeAll = () => {
|
|
1135
|
+
Fn.forEach((e) => {
|
|
1136
1136
|
e.hide?.();
|
|
1137
1137
|
});
|
|
1138
1138
|
};
|
|
1139
1139
|
// ../../packages/dlzn-ui/router/index.ts
|
|
1140
|
-
function
|
|
1140
|
+
function Rn() {
|
|
1141
1141
|
return {
|
|
1142
1142
|
children: [{
|
|
1143
1143
|
children: [{
|
|
@@ -1165,15 +1165,15 @@ function Ln() {
|
|
|
1165
1165
|
name: "Home",
|
|
1166
1166
|
path: "home"
|
|
1167
1167
|
}],
|
|
1168
|
-
component:
|
|
1168
|
+
component: Pn,
|
|
1169
1169
|
name: "Index",
|
|
1170
1170
|
path: "/"
|
|
1171
1171
|
};
|
|
1172
1172
|
}
|
|
1173
|
-
var
|
|
1174
|
-
history:
|
|
1173
|
+
var K = Et({
|
|
1174
|
+
history: Dt(VITE_BASE_URL),
|
|
1175
1175
|
routes: [
|
|
1176
|
-
|
|
1176
|
+
Rn(),
|
|
1177
1177
|
{
|
|
1178
1178
|
component: h["./Login.vue"],
|
|
1179
1179
|
meta: {
|
|
@@ -1217,16 +1217,16 @@ var q = Tt({
|
|
|
1217
1217
|
sensitive: !0,
|
|
1218
1218
|
strict: !0
|
|
1219
1219
|
});
|
|
1220
|
-
|
|
1221
|
-
if (e.query._fromLeftTree === "true" && v().add(e.name), !["Login", "Register"].includes(e.name)) return
|
|
1220
|
+
K.beforeEach(async (e) => {
|
|
1221
|
+
if (e.query._fromLeftTree === "true" && v().add(e.name), !["Login", "Register"].includes(e.name)) return jn().token === "" ? { name: "Login" } : ln().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), K.resolve({
|
|
1222
1222
|
path: e.path,
|
|
1223
1223
|
query: e.query
|
|
1224
1224
|
}));
|
|
1225
|
-
}),
|
|
1226
|
-
|
|
1225
|
+
}), K.afterEach((e, t, n) => {
|
|
1226
|
+
Qt.closeAll(), Ln.closeAll();
|
|
1227
1227
|
let { meta: r, name: a } = e, { fullScreen: o, parentName: s, title: c } = r;
|
|
1228
|
-
document.title = c ||
|
|
1229
|
-
let l =
|
|
1228
|
+
document.title = c || U().appInfo.appName;
|
|
1229
|
+
let l = W();
|
|
1230
1230
|
if (![
|
|
1231
1231
|
"Login",
|
|
1232
1232
|
"NotFound",
|
|
@@ -1238,37 +1238,37 @@ q.beforeEach(async (e) => {
|
|
|
1238
1238
|
query: e.query
|
|
1239
1239
|
});
|
|
1240
1240
|
}
|
|
1241
|
-
v().remove(a), VITE_MODE === "development" && (
|
|
1241
|
+
v().remove(a), VITE_MODE === "development" && (Ot(n, Tt.aborted) ? i.info("导航被中断") : Ot(n, Tt.cancelled) ? i.info("导航被取消,因为有一个新的导航") : Ot(n, Tt.duplicated) && i.info("导航被阻止,因为我们已经在目标位置了"));
|
|
1242
1242
|
});
|
|
1243
|
-
function
|
|
1244
|
-
if (
|
|
1243
|
+
function zn(e) {
|
|
1244
|
+
if (K.hasRoute(e)) return K.getRoutes().find((t) => t.name === e);
|
|
1245
1245
|
}
|
|
1246
1246
|
// ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
1247
|
-
var
|
|
1248
|
-
function
|
|
1247
|
+
var Bn = 15e3, Vn = "网络错误,请稍后再试";
|
|
1248
|
+
function Hn(e, t = !1) {
|
|
1249
1249
|
let n = {};
|
|
1250
1250
|
return Object.keys(e).forEach((r) => {
|
|
1251
1251
|
(!t || l(e[r])) && (n[r] = e[r]);
|
|
1252
1252
|
}), n;
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function Un(e, t = !0) {
|
|
1255
1255
|
let n = {};
|
|
1256
1256
|
return Object.keys(e).forEach((r) => {
|
|
1257
1257
|
(!t || l(e[r])) && (n[r] = e[r]);
|
|
1258
1258
|
}), n;
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return new URLSearchParams(
|
|
1260
|
+
function Wn(e, t = !0) {
|
|
1261
|
+
return new URLSearchParams(Un(e, t)).toString();
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function Gn(e) {
|
|
1264
1264
|
let { data: t, response: n, useDownload: r } = e;
|
|
1265
|
-
if (typeof r == "string")
|
|
1265
|
+
if (typeof r == "string") J(t, r);
|
|
1266
1266
|
else {
|
|
1267
1267
|
let e = new URLSearchParams((n.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename");
|
|
1268
|
-
e ?
|
|
1268
|
+
e ? J(t, e) : p.error("返回的 response header 没有文件名");
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
|
-
var
|
|
1271
|
+
var q = At({
|
|
1272
1272
|
baseURL: VITE_BASE_URL,
|
|
1273
1273
|
beforeRequest: async (e) => {
|
|
1274
1274
|
e.meta = {
|
|
@@ -1291,22 +1291,22 @@ var J = kt({
|
|
|
1291
1291
|
let { useBeforeRequestIntercept: t, useEmptyData: n, useEmptyParams: i, useFormData: a, useInPolling: o, useLoading: s, useResponseBlob: c, useToken: l } = e.meta;
|
|
1292
1292
|
t !== void 0 && await t(e), e.config.credentials = e.config.credentials ?? "omit";
|
|
1293
1293
|
let [u, ...d] = VITE_API_PROXY_PREFIX_ARRAY;
|
|
1294
|
-
if (!e.url.startsWith("http") && !d.some((t) =>
|
|
1295
|
-
let t =
|
|
1294
|
+
if (!e.url.startsWith("http") && !d.some((t) => Nt.join("/", e.url).startsWith(Nt.join("/", t, "/"))) && (e.url = Nt.join(u, e.url)), o || U().requestActive(), l) {
|
|
1295
|
+
let t = jn();
|
|
1296
1296
|
t.token ? e.config.headers.Authorization = t.token : e.abort();
|
|
1297
1297
|
}
|
|
1298
1298
|
s !== !1 && r.show(s === !0 ? void 0 : s);
|
|
1299
1299
|
let f = e.config.params;
|
|
1300
|
-
if (typeof f != "string" && (e.config.params =
|
|
1300
|
+
if (typeof f != "string" && (e.config.params = Wn(f, i)), St(e.data) && (e.data = Hn(e.data, n)), a) {
|
|
1301
1301
|
let t = new FormData();
|
|
1302
1302
|
Object.keys(e.data).forEach((n) => {
|
|
1303
1303
|
t.append(n, e.data[n]);
|
|
1304
1304
|
}), e.data = t;
|
|
1305
1305
|
}
|
|
1306
|
-
e.config.timeout ===
|
|
1306
|
+
e.config.timeout === Bn && (a || e.data instanceof FormData || c) && (e.config.timeout = 0);
|
|
1307
1307
|
},
|
|
1308
1308
|
cacheFor: null,
|
|
1309
|
-
requestAdapter:
|
|
1309
|
+
requestAdapter: jt(),
|
|
1310
1310
|
responded: {
|
|
1311
1311
|
onComplete: (e) => {
|
|
1312
1312
|
e.meta.useLoading !== !1 && r.hide();
|
|
@@ -1318,7 +1318,7 @@ var J = kt({
|
|
|
1318
1318
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1319
1319
|
if (t.toLowerCase().includes("timeout")) return n && i.error("请求超时"), Promise.reject(e);
|
|
1320
1320
|
}
|
|
1321
|
-
return n && i.error(
|
|
1321
|
+
return n && i.error(Vn), Promise.reject(e);
|
|
1322
1322
|
},
|
|
1323
1323
|
onSuccess: async (e, t) => {
|
|
1324
1324
|
if (typeof e == "string") return e;
|
|
@@ -1329,7 +1329,7 @@ var J = kt({
|
|
|
1329
1329
|
403: "当前操作没有权限",
|
|
1330
1330
|
404: "访问资源不存在",
|
|
1331
1331
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1332
|
-
}[m] ??
|
|
1332
|
+
}[m] ?? Vn;
|
|
1333
1333
|
i.error(e);
|
|
1334
1334
|
}
|
|
1335
1335
|
return Promise.reject(e);
|
|
@@ -1341,7 +1341,7 @@ var J = kt({
|
|
|
1341
1341
|
} catch (e) {
|
|
1342
1342
|
return p.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1343
1343
|
}
|
|
1344
|
-
return r !== !1 &&
|
|
1344
|
+
return r !== !1 && Gn({
|
|
1345
1345
|
data: t,
|
|
1346
1346
|
response: e,
|
|
1347
1347
|
useDownload: r
|
|
@@ -1366,22 +1366,22 @@ var J = kt({
|
|
|
1366
1366
|
let { code: t, data: s, msg: l } = h;
|
|
1367
1367
|
if (t >= 400) {
|
|
1368
1368
|
if (t === 600) {
|
|
1369
|
-
if (
|
|
1370
|
-
|
|
1369
|
+
if (Xn(l).then((e) => {
|
|
1370
|
+
H({
|
|
1371
1371
|
body: () => A("div", { innerHTML: e }),
|
|
1372
1372
|
cancelBtn: null
|
|
1373
1373
|
});
|
|
1374
1374
|
}), !o) return h;
|
|
1375
|
-
} else t === 401 && u ?
|
|
1375
|
+
} else t === 401 && u ? K.push({ name: "Login" }) : a !== !1 && i.error(a === !0 ? l : a);
|
|
1376
1376
|
return Promise.reject(h);
|
|
1377
1377
|
}
|
|
1378
1378
|
{
|
|
1379
|
-
let a =
|
|
1379
|
+
let a = wt.alovaResCodeSuccessCb?.({
|
|
1380
1380
|
code: t,
|
|
1381
1381
|
data: s,
|
|
1382
1382
|
msg: l
|
|
1383
1383
|
});
|
|
1384
|
-
return a === void 0 ? (r !== !1 && (typeof r == "string" ?
|
|
1384
|
+
return a === void 0 ? (r !== !1 && (typeof r == "string" ? Gn({
|
|
1385
1385
|
data: s,
|
|
1386
1386
|
response: e,
|
|
1387
1387
|
useDownload: r
|
|
@@ -1392,30 +1392,30 @@ var J = kt({
|
|
|
1392
1392
|
}
|
|
1393
1393
|
},
|
|
1394
1394
|
shareRequest: !1,
|
|
1395
|
-
statesHook:
|
|
1396
|
-
timeout:
|
|
1395
|
+
statesHook: Mt,
|
|
1396
|
+
timeout: Bn
|
|
1397
1397
|
});
|
|
1398
1398
|
// ../../packages/dlzn-ui/utils/tool.ts
|
|
1399
|
-
async function
|
|
1399
|
+
async function Kn(e, t) {
|
|
1400
1400
|
let { default: n } = await import("crypto-js"), r = n.enc.Utf8.parse(t);
|
|
1401
1401
|
return n.AES.decrypt(e, r, {
|
|
1402
1402
|
mode: n.mode.ECB,
|
|
1403
1403
|
padding: n.pad.Pkcs7
|
|
1404
1404
|
}).toString(n.enc.Utf8);
|
|
1405
1405
|
}
|
|
1406
|
-
async function
|
|
1406
|
+
async function qn(e, t) {
|
|
1407
1407
|
let { default: n } = await import("crypto-js"), r = n.enc.Utf8.parse(t), i = n.enc.Utf8.parse(e);
|
|
1408
1408
|
return n.AES.encrypt(i, r, {
|
|
1409
1409
|
mode: n.mode.ECB,
|
|
1410
1410
|
padding: n.pad.Pkcs7
|
|
1411
1411
|
}).toString();
|
|
1412
1412
|
}
|
|
1413
|
-
async function
|
|
1413
|
+
async function Jn(e, t) {
|
|
1414
1414
|
let n = e.map((e) => new Promise((t) => {
|
|
1415
1415
|
e.source instanceof Blob ? t({
|
|
1416
1416
|
blob: e.source,
|
|
1417
1417
|
name: e.name
|
|
1418
|
-
}) :
|
|
1418
|
+
}) : q.Get(e.source, { meta: {
|
|
1419
1419
|
useLoading: "下载中...",
|
|
1420
1420
|
useResponseBlob: !0
|
|
1421
1421
|
} }).then((n) => {
|
|
@@ -1425,74 +1425,72 @@ async function qn(e, t) {
|
|
|
1425
1425
|
});
|
|
1426
1426
|
});
|
|
1427
1427
|
}));
|
|
1428
|
-
return Promise.all(n).then((e) => e.length === 1 ?
|
|
1428
|
+
return Promise.all(n).then((e) => e.length === 1 ? J(e[0].blob, e[0].name) : import("jszip").then(({ default: n }) => {
|
|
1429
1429
|
let r = new n(), i = r.folder(t);
|
|
1430
1430
|
return i === null ? Promise.reject("zip文件夹创建失败,请检查zipName是否合法") : (e.forEach((e) => {
|
|
1431
1431
|
i.file(e.name, e.blob);
|
|
1432
|
-
}), r.generateAsync({ type: "blob" }).then((e) =>
|
|
1432
|
+
}), r.generateAsync({ type: "blob" }).then((e) => J(e, t)));
|
|
1433
1433
|
}));
|
|
1434
1434
|
}
|
|
1435
|
-
async function
|
|
1435
|
+
async function Yn() {
|
|
1436
1436
|
let { default: e } = await import("@fingerprintjs/fingerprintjs");
|
|
1437
1437
|
return (await (await e.load()).get()).visitorId;
|
|
1438
1438
|
}
|
|
1439
|
-
async function
|
|
1439
|
+
async function Xn(e, t) {
|
|
1440
1440
|
let { default: n } = await import("dompurify");
|
|
1441
1441
|
return n.sanitize(e, t);
|
|
1442
1442
|
}
|
|
1443
|
-
async function
|
|
1443
|
+
async function J(e, t, n) {
|
|
1444
1444
|
let { default: r } = await import("file-saver");
|
|
1445
1445
|
r(e, t, n);
|
|
1446
1446
|
}
|
|
1447
1447
|
// ../../packages/dlzn-ui/hooks/useLabel/index.ts
|
|
1448
|
-
function
|
|
1448
|
+
function Zn(e, t) {
|
|
1449
1449
|
return S(() => {
|
|
1450
1450
|
if (t === void 0) return e.value.map((e) => e.label);
|
|
1451
|
-
if (Array.isArray(t)) return e.value.length === 0 ? [] :
|
|
1451
|
+
if (Array.isArray(t)) return e.value.length === 0 ? [] : Kt(e.value, t);
|
|
1452
1452
|
if (e.value.length === 0) return "";
|
|
1453
1453
|
if (typeof t == "string") {
|
|
1454
1454
|
let n = t.split(",").filter(Boolean);
|
|
1455
|
-
if (n.length > 0) return
|
|
1455
|
+
if (n.length > 0) return Kt(e.value, n).join(",");
|
|
1456
1456
|
}
|
|
1457
|
-
return
|
|
1457
|
+
return Kt(e.value, t);
|
|
1458
1458
|
});
|
|
1459
1459
|
}
|
|
1460
1460
|
// ../../packages/dlzn-ui/hooks/useList/index.ts
|
|
1461
|
-
var
|
|
1462
|
-
systemDeptTree: () =>
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
})), { idKey: "value" })
|
|
1473
|
-
}),
|
|
1474
|
-
...Ct.useListPromiseMap ?? {}
|
|
1475
|
-
}, X = /* @__PURE__ */ new Map();
|
|
1476
|
-
function Qn() {
|
|
1477
|
-
X.clear();
|
|
1461
|
+
var Qn = {
|
|
1462
|
+
systemDeptTree: () => q.Get("system/user/deptTree", { transform: (e) => oe(e, { fieldNamesMapping: { value: "id" } }) }),
|
|
1463
|
+
systemMenuTree: () => q.Get("system/menu/list", { transform: (e) => ae(e.map((e) => ({
|
|
1464
|
+
...e,
|
|
1465
|
+
label: e.menuName,
|
|
1466
|
+
value: e.menuId
|
|
1467
|
+
})), { idKey: "value" }) }),
|
|
1468
|
+
...wt.useListPromiseMap ?? {}
|
|
1469
|
+
}, Y = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map();
|
|
1470
|
+
function $n() {
|
|
1471
|
+
Y.clear(), X.clear();
|
|
1478
1472
|
}
|
|
1479
1473
|
function Z(e) {
|
|
1480
|
-
let t =
|
|
1481
|
-
return
|
|
1474
|
+
let t = Y.has(e) ? Y.get(e) : F([]);
|
|
1475
|
+
return Y.has(e) || Y.set(e, t), t.value.length === 0 && (X.has(e) && X.get(e) !== !1 || (X.set(e, !0), Qn[e]().then((e) => {
|
|
1482
1476
|
t.value = e;
|
|
1483
|
-
})
|
|
1477
|
+
}).finally(() => {
|
|
1478
|
+
X.set(e, !1);
|
|
1479
|
+
}))), t;
|
|
1484
1480
|
}
|
|
1485
|
-
function
|
|
1481
|
+
function er(e, t) {
|
|
1486
1482
|
let n = Z(e);
|
|
1487
|
-
return t === void 0 ?
|
|
1483
|
+
return t === void 0 ? Zn(n) : Zn(n, t);
|
|
1488
1484
|
}
|
|
1489
|
-
function
|
|
1490
|
-
X.has(e) &&
|
|
1491
|
-
|
|
1492
|
-
})
|
|
1485
|
+
function tr(e) {
|
|
1486
|
+
Y.has(e) && (X.has(e) && X.get(e) !== !1 || (X.set(e, !0), Qn[e]().then((t) => {
|
|
1487
|
+
Y.get(e).value = t;
|
|
1488
|
+
}).finally(() => {
|
|
1489
|
+
X.set(e, !1);
|
|
1490
|
+
})));
|
|
1493
1491
|
}
|
|
1494
1492
|
// ../../packages/dlzn-ui/components/cascader/src/cascader.vue
|
|
1495
|
-
var
|
|
1493
|
+
var nr = /* @__PURE__ */ O({
|
|
1496
1494
|
inheritAttrs: !1,
|
|
1497
1495
|
name: "TCascader",
|
|
1498
1496
|
__name: "cascader",
|
|
@@ -1549,7 +1547,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
1549
1547
|
onFocus: { type: Function },
|
|
1550
1548
|
onPopupVisibleChange: { type: Function },
|
|
1551
1549
|
onRemove: { type: Function }
|
|
1552
|
-
},
|
|
1550
|
+
}, Lt),
|
|
1553
1551
|
setup(e) {
|
|
1554
1552
|
let t = e, n = j("isFormDisabled", S(() => !1)), r = j("isFormReadonly", S(() => !1)), i = S(() => typeof t.options == "string" ? Z(t.options).value : t.options), a = S(() => {
|
|
1555
1553
|
let e = t.disabled ?? n.value, i = t.readonly ?? r.value, a = {
|
|
@@ -1563,13 +1561,13 @@ var tr = /* @__PURE__ */ O({
|
|
|
1563
1561
|
function s(e) {
|
|
1564
1562
|
o.exposed = e ?? {};
|
|
1565
1563
|
}
|
|
1566
|
-
return (e, t) => (P(), C(
|
|
1564
|
+
return (e, t) => (P(), C(I(A(R(We), N(e.$attrs, {
|
|
1567
1565
|
...a.value,
|
|
1568
1566
|
options: i.value,
|
|
1569
1567
|
ref: s
|
|
1570
1568
|
}), e.$slots))));
|
|
1571
1569
|
}
|
|
1572
|
-
}),
|
|
1570
|
+
}), rr = /* @__PURE__ */ O({
|
|
1573
1571
|
inheritAttrs: !1,
|
|
1574
1572
|
name: "TCheckboxGroup",
|
|
1575
1573
|
__name: "checkbox-group",
|
|
@@ -1602,7 +1600,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
1602
1600
|
}
|
|
1603
1601
|
let o = S(() => {
|
|
1604
1602
|
let e;
|
|
1605
|
-
return n.dicCode ? (n.options && p.error("TCheckboxGroup: dicCode and options cannot be used together"), e =
|
|
1603
|
+
return n.dicCode ? (n.options && p.error("TCheckboxGroup: dicCode and options cannot be used together"), e = yn(n.dicCode).value) : e = typeof n.options == "string" ? Z(n.options).value : n.options, n.showCheckAll && (e === void 0 ? p.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
1606
1604
|
checkAll: !0,
|
|
1607
1605
|
label: "全选"
|
|
1608
1606
|
})), e;
|
|
@@ -1620,7 +1618,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
1620
1618
|
e[t] === void 0 && delete e[t];
|
|
1621
1619
|
}), e;
|
|
1622
1620
|
});
|
|
1623
|
-
return (e, t) => (P(), C(
|
|
1621
|
+
return (e, t) => (P(), C(I(A(R(Ge), N(e.$attrs, {
|
|
1624
1622
|
...l.value,
|
|
1625
1623
|
options: o.value,
|
|
1626
1624
|
modelValue: s.value,
|
|
@@ -1630,7 +1628,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
1630
1628
|
ref: a
|
|
1631
1629
|
}), e.$slots))));
|
|
1632
1630
|
}
|
|
1633
|
-
}),
|
|
1631
|
+
}), ir = /* @__PURE__ */ O({
|
|
1634
1632
|
inheritAttrs: !1,
|
|
1635
1633
|
__name: "cron",
|
|
1636
1634
|
props: /*@__PURE__*/ M({
|
|
@@ -1689,7 +1687,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
1689
1687
|
default: "cron",
|
|
1690
1688
|
onClick: () => {
|
|
1691
1689
|
let i = F(null);
|
|
1692
|
-
|
|
1690
|
+
H({
|
|
1693
1691
|
body: () => A(Se(() => import("../components/cron/src/Picker.mjs")), {
|
|
1694
1692
|
disabled: e,
|
|
1695
1693
|
modelValue: n.modelValue,
|
|
@@ -1712,7 +1710,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
1712
1710
|
variant: "text"
|
|
1713
1711
|
}) }
|
|
1714
1712
|
};
|
|
1715
|
-
}), s =
|
|
1713
|
+
}), s = Ie(), c = k();
|
|
1716
1714
|
function l(e) {
|
|
1717
1715
|
c.exposed = e ?? {};
|
|
1718
1716
|
}
|
|
@@ -1723,9 +1721,9 @@ var tr = /* @__PURE__ */ O({
|
|
|
1723
1721
|
},
|
|
1724
1722
|
ref: l
|
|
1725
1723
|
}));
|
|
1726
|
-
return (e, t) => (P(), C(
|
|
1724
|
+
return (e, t) => (P(), C(R(ue), Oe(Ce(u.value)), null, 16));
|
|
1727
1725
|
}
|
|
1728
|
-
}),
|
|
1726
|
+
}), ar = /* @__PURE__ */ O({
|
|
1729
1727
|
inheritAttrs: !1,
|
|
1730
1728
|
__name: "date-picker",
|
|
1731
1729
|
props: {
|
|
@@ -1817,7 +1815,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
1817
1815
|
emits: ["update:modelValue"],
|
|
1818
1816
|
setup(e, { emit: t }) {
|
|
1819
1817
|
let n = e, r = t, i = j("isFormDisabled", S(() => !1)), a = j("isFormReadonly", S(() => !1)), o = F(n.modelValue);
|
|
1820
|
-
|
|
1818
|
+
z(() => n.modelValue, (e) => {
|
|
1821
1819
|
o.value = e;
|
|
1822
1820
|
}, { deep: !0 });
|
|
1823
1821
|
function s() {
|
|
@@ -2069,7 +2067,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2069
2067
|
function _(e) {
|
|
2070
2068
|
g.exposed = e ?? {};
|
|
2071
2069
|
}
|
|
2072
|
-
return (t, i) => (P(), C(
|
|
2070
|
+
return (t, i) => (P(), C(I(A(R(mt), N(t.$attrs, {
|
|
2073
2071
|
...h.value,
|
|
2074
2072
|
modelValue: o.value,
|
|
2075
2073
|
"onUpdate:modelValue": (e) => {
|
|
@@ -2077,7 +2075,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2077
2075
|
},
|
|
2078
2076
|
onChange: (t) => {
|
|
2079
2077
|
let i = t;
|
|
2080
|
-
|
|
2078
|
+
R(c)(t) && (i = [
|
|
2081
2079
|
"daterange",
|
|
2082
2080
|
"dates",
|
|
2083
2081
|
"datetimerange",
|
|
@@ -2090,7 +2088,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2090
2088
|
ref: _
|
|
2091
2089
|
}, { class: `t-is-${e.status}` }), t.$slots))));
|
|
2092
2090
|
}
|
|
2093
|
-
}),
|
|
2091
|
+
}), or = {
|
|
2094
2092
|
autoWidth: void 0,
|
|
2095
2093
|
decimalPlaces: 2,
|
|
2096
2094
|
disabled: void 0,
|
|
@@ -2098,7 +2096,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2098
2096
|
readonly: void 0,
|
|
2099
2097
|
theme: "normal",
|
|
2100
2098
|
useGrouping: !0
|
|
2101
|
-
},
|
|
2099
|
+
}, sr = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
2102
2100
|
inheritAttrs: !1,
|
|
2103
2101
|
name: "TInputNumber",
|
|
2104
2102
|
__name: "input-number",
|
|
@@ -2133,7 +2131,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2133
2131
|
onKeypress: { type: Function },
|
|
2134
2132
|
onKeyup: { type: Function },
|
|
2135
2133
|
onValidate: { type: Function }
|
|
2136
|
-
},
|
|
2134
|
+
}, or),
|
|
2137
2135
|
emits: ["update:modelValue"],
|
|
2138
2136
|
setup(e, { emit: t }) {
|
|
2139
2137
|
let n = e, r = t, i = S(() => {
|
|
@@ -2145,16 +2143,16 @@ var tr = /* @__PURE__ */ O({
|
|
|
2145
2143
|
function o(e) {
|
|
2146
2144
|
a.exposed = e ?? {};
|
|
2147
2145
|
}
|
|
2148
|
-
return (e, t) => (P(), C(
|
|
2146
|
+
return (e, t) => (P(), C(I(A(R(rt), N(e.$attrs, {
|
|
2149
2147
|
...i.value,
|
|
2150
2148
|
onChange: (...e) => {
|
|
2151
|
-
let [t, ...i] = e, a =
|
|
2149
|
+
let [t, ...i] = e, a = R(c)(t) ? "" : t;
|
|
2152
2150
|
r("update:modelValue", a), n.onChange?.(a, ...i);
|
|
2153
2151
|
},
|
|
2154
2152
|
ref: o
|
|
2155
2153
|
}), e.$slots))));
|
|
2156
2154
|
}
|
|
2157
|
-
}), [["__scopeId", "data-v-73c206ea"]]),
|
|
2155
|
+
}), [["__scopeId", "data-v-73c206ea"]]), cr = /* @__PURE__ */ O({
|
|
2158
2156
|
inheritAttrs: !1,
|
|
2159
2157
|
name: "TRadioGroup",
|
|
2160
2158
|
__name: "radio-group",
|
|
@@ -2188,7 +2186,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2188
2186
|
function a(e) {
|
|
2189
2187
|
i.exposed = e ?? {};
|
|
2190
2188
|
}
|
|
2191
|
-
let o = S(() => n.dicCode ? (n.options && p.error("TRadioGroup: dicCode and options cannot be used together"),
|
|
2189
|
+
let o = S(() => n.dicCode ? (n.options && p.error("TRadioGroup: dicCode and options cannot be used together"), yn(n.dicCode).value) : typeof n.options == "string" ? Z(n.options).value : n.options), s = S(() => {
|
|
2192
2190
|
let e = { ...n };
|
|
2193
2191
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
2194
2192
|
e[t] === void 0 && delete e[t];
|
|
@@ -2201,18 +2199,18 @@ var tr = /* @__PURE__ */ O({
|
|
|
2201
2199
|
}
|
|
2202
2200
|
return n.modelValue;
|
|
2203
2201
|
});
|
|
2204
|
-
return (e, t) => (P(), C(
|
|
2202
|
+
return (e, t) => (P(), C(I(A(R(st), N(e.$attrs, {
|
|
2205
2203
|
...s.value,
|
|
2206
2204
|
options: o.value,
|
|
2207
2205
|
modelValue: l.value,
|
|
2208
2206
|
onChange: (...e) => {
|
|
2209
|
-
let [t, ...i] = e, a =
|
|
2207
|
+
let [t, ...i] = e, a = R(c)(t) ? "" : t;
|
|
2210
2208
|
r("update:modelValue", a), n.onChange?.(a, ...i);
|
|
2211
2209
|
},
|
|
2212
2210
|
ref: a
|
|
2213
2211
|
}), e.$slots))));
|
|
2214
2212
|
}
|
|
2215
|
-
}),
|
|
2213
|
+
}), lr = /* @__PURE__ */ O({
|
|
2216
2214
|
inheritAttrs: !1,
|
|
2217
2215
|
name: "TRangeInput",
|
|
2218
2216
|
__name: "range-input",
|
|
@@ -2275,7 +2273,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2275
2273
|
return n ? Math.min(Math.max(i, t.min), t.max) : i;
|
|
2276
2274
|
});
|
|
2277
2275
|
}
|
|
2278
|
-
let r =
|
|
2276
|
+
let r = Le(e, "modelValue", {
|
|
2279
2277
|
get: (e) => t.isNumberRange ? n(e, !1) : e,
|
|
2280
2278
|
set: (e) => {
|
|
2281
2279
|
if (t.isNumberRange) {
|
|
@@ -2293,7 +2291,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2293
2291
|
function o(e) {
|
|
2294
2292
|
a.exposed = e ?? {};
|
|
2295
2293
|
}
|
|
2296
|
-
return (t, a) => (P(), C(
|
|
2294
|
+
return (t, a) => (P(), C(I(A(R(ct), N(t.$attrs, {
|
|
2297
2295
|
...i.value,
|
|
2298
2296
|
ref: o,
|
|
2299
2297
|
modelValue: r.value,
|
|
@@ -2303,7 +2301,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2303
2301
|
onBlur: (...t) => {
|
|
2304
2302
|
if (e.isNumberRange) {
|
|
2305
2303
|
let i = t[0];
|
|
2306
|
-
if (i.every((e) => !
|
|
2304
|
+
if (i.every((e) => !R(c)(e)) && Number(i[0]) > Number(i[1])) {
|
|
2307
2305
|
r.value = n([i[0], i[0]]), e.onBlur?.(...t);
|
|
2308
2306
|
return;
|
|
2309
2307
|
}
|
|
@@ -2313,7 +2311,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2313
2311
|
}
|
|
2314
2312
|
}), t.$slots))));
|
|
2315
2313
|
}
|
|
2316
|
-
}),
|
|
2314
|
+
}), ur = {
|
|
2317
2315
|
clearable: !0,
|
|
2318
2316
|
disabled: void 0,
|
|
2319
2317
|
filterable: void 0,
|
|
@@ -2333,7 +2331,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2333
2331
|
}),
|
|
2334
2332
|
showArrow: !0,
|
|
2335
2333
|
showCheckAll: !1
|
|
2336
|
-
},
|
|
2334
|
+
}, dr = /* @__PURE__ */ O({
|
|
2337
2335
|
inheritAttrs: !1,
|
|
2338
2336
|
name: "TSelect",
|
|
2339
2337
|
__name: "select",
|
|
@@ -2397,7 +2395,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2397
2395
|
onPopupVisibleChange: { type: Function },
|
|
2398
2396
|
onRemove: { type: Function },
|
|
2399
2397
|
onSearch: { type: Function }
|
|
2400
|
-
},
|
|
2398
|
+
}, ur),
|
|
2401
2399
|
setup(e) {
|
|
2402
2400
|
let t = e, n = j("isFormDisabled", S(() => !1)), r = j("isFormReadonly", S(() => !1)), i = k();
|
|
2403
2401
|
function a(e) {
|
|
@@ -2405,7 +2403,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2405
2403
|
}
|
|
2406
2404
|
let o = S(() => {
|
|
2407
2405
|
let e;
|
|
2408
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ? Z(t.options).value : t.options : (t.options && p.error("TSelect: dicCode and options cannot be used together"), e =
|
|
2406
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? Z(t.options).value : t.options : (t.options && p.error("TSelect: dicCode and options cannot be used together"), e = yn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? p.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
2409
2407
|
checkAll: !0,
|
|
2410
2408
|
[t.keys?.label ?? "label"]: "全选"
|
|
2411
2409
|
}) : p.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
@@ -2432,7 +2430,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2432
2430
|
}), a;
|
|
2433
2431
|
}), d = F(0);
|
|
2434
2432
|
ke(() => {
|
|
2435
|
-
|
|
2433
|
+
bt(i.exposed.$el, () => {
|
|
2436
2434
|
d.value = i.exposed.$el.offsetWidth;
|
|
2437
2435
|
}, { box: "border-box" });
|
|
2438
2436
|
});
|
|
@@ -2456,13 +2454,13 @@ var tr = /* @__PURE__ */ O({
|
|
|
2456
2454
|
})
|
|
2457
2455
|
},
|
|
2458
2456
|
ref: a
|
|
2459
|
-
})), g =
|
|
2460
|
-
return (t, n) => e.adornment ? (P(), C(
|
|
2457
|
+
})), g = nt;
|
|
2458
|
+
return (t, n) => e.adornment ? (P(), C(I(A(R(g), t.$attrs, {
|
|
2461
2459
|
...e.adornment,
|
|
2462
|
-
default: () => A(
|
|
2463
|
-
})), { key: 0 })) : (P(), C(
|
|
2460
|
+
default: () => A(R(lt), h.value, t.$slots)
|
|
2461
|
+
})), { key: 0 })) : (P(), C(I(A(R(lt), N(t.$attrs, h.value), t.$slots)), { key: 1 }));
|
|
2464
2462
|
}
|
|
2465
|
-
}),
|
|
2463
|
+
}), fr = /* @__PURE__ */ O({
|
|
2466
2464
|
inheritAttrs: !1,
|
|
2467
2465
|
__name: "select-sys-user",
|
|
2468
2466
|
props: /*@__PURE__*/ M({
|
|
@@ -2515,7 +2513,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2515
2513
|
default: "选择用户",
|
|
2516
2514
|
onClick: () => {
|
|
2517
2515
|
let e = F(null);
|
|
2518
|
-
|
|
2516
|
+
H({
|
|
2519
2517
|
body: () => A(Se(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
2520
2518
|
max: n.max,
|
|
2521
2519
|
modelValue: n.modelValue,
|
|
@@ -2537,7 +2535,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2537
2535
|
variant: "text"
|
|
2538
2536
|
}) }
|
|
2539
2537
|
};
|
|
2540
|
-
}), s =
|
|
2538
|
+
}), s = Ie(), c = k();
|
|
2541
2539
|
function l(e) {
|
|
2542
2540
|
c.exposed = e ?? {};
|
|
2543
2541
|
}
|
|
@@ -2553,12 +2551,12 @@ var tr = /* @__PURE__ */ O({
|
|
|
2553
2551
|
placeholder: "请选择用户",
|
|
2554
2552
|
ref: l
|
|
2555
2553
|
}));
|
|
2556
|
-
return (e, t) => (P(), C(
|
|
2557
|
-
tag:
|
|
2554
|
+
return (e, t) => (P(), C(R(fe), Oe(Ce(u.value)), {
|
|
2555
|
+
tag: B(({ value: e }) => [E(L(R(On)(e).value?.userName), 1)]),
|
|
2558
2556
|
_: 1
|
|
2559
2557
|
}, 16));
|
|
2560
2558
|
}
|
|
2561
|
-
}),
|
|
2559
|
+
}), pr = {
|
|
2562
2560
|
checkable: !1,
|
|
2563
2561
|
disabled: void 0,
|
|
2564
2562
|
expandOnClickNode: void 0,
|
|
@@ -2577,7 +2575,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2577
2575
|
line: !0,
|
|
2578
2576
|
transition: !0,
|
|
2579
2577
|
valueMode: "all"
|
|
2580
|
-
},
|
|
2578
|
+
}, mr = /* @__PURE__ */ O({
|
|
2581
2579
|
inheritAttrs: !1,
|
|
2582
2580
|
name: "TTree",
|
|
2583
2581
|
__name: "tree",
|
|
@@ -2635,9 +2633,9 @@ var tr = /* @__PURE__ */ O({
|
|
|
2635
2633
|
onLoad: { type: Function },
|
|
2636
2634
|
onScroll: { type: Function },
|
|
2637
2635
|
treeStore: {}
|
|
2638
|
-
},
|
|
2636
|
+
}, pr),
|
|
2639
2637
|
setup(e, { expose: t }) {
|
|
2640
|
-
let n = e, r =
|
|
2638
|
+
let n = e, r = Re(), i = S(() => {
|
|
2641
2639
|
let e = { ...n };
|
|
2642
2640
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
2643
2641
|
e[t] === void 0 && delete e[t];
|
|
@@ -2646,12 +2644,12 @@ var tr = /* @__PURE__ */ O({
|
|
|
2646
2644
|
function o(e) {
|
|
2647
2645
|
a.exposed = e ?? {};
|
|
2648
2646
|
}
|
|
2649
|
-
return t({}), (e, t) => (P(), C(
|
|
2647
|
+
return t({}), (e, t) => (P(), C(I(A(R(ut), N(e.$attrs, {
|
|
2650
2648
|
...i.value,
|
|
2651
2649
|
ref: o
|
|
2652
2650
|
}), e.$slots))));
|
|
2653
2651
|
}
|
|
2654
|
-
}),
|
|
2652
|
+
}), hr = /* @__PURE__ */ O({
|
|
2655
2653
|
inheritAttrs: !1,
|
|
2656
2654
|
name: "TTreeSelect",
|
|
2657
2655
|
__name: "tree-select",
|
|
@@ -2724,10 +2722,10 @@ var tr = /* @__PURE__ */ O({
|
|
|
2724
2722
|
minCollapsedNum: e || i ? 0 : t.minCollapsedNum
|
|
2725
2723
|
};
|
|
2726
2724
|
return a.treeProps = {
|
|
2727
|
-
...
|
|
2725
|
+
...pr,
|
|
2728
2726
|
checkable: !!t.multiple,
|
|
2729
2727
|
expandOnClickNode: !!t.multiple,
|
|
2730
|
-
icon:
|
|
2728
|
+
icon: pr.icon(),
|
|
2731
2729
|
...a.treeProps ?? {}
|
|
2732
2730
|
}, Object.keys(a).forEach((e) => {
|
|
2733
2731
|
a[e] === void 0 && delete a[e];
|
|
@@ -2738,10 +2736,10 @@ var tr = /* @__PURE__ */ O({
|
|
|
2738
2736
|
}
|
|
2739
2737
|
let c = F(0);
|
|
2740
2738
|
return ke(() => {
|
|
2741
|
-
|
|
2739
|
+
bt(o.exposed.$el, () => {
|
|
2742
2740
|
c.value = o.exposed.$el.offsetWidth;
|
|
2743
2741
|
}, { box: "border-box" });
|
|
2744
|
-
}), (e, t) => (P(), C(
|
|
2742
|
+
}), (e, t) => (P(), C(I(A(R(dt), N(e.$attrs, {
|
|
2745
2743
|
...a.value,
|
|
2746
2744
|
data: i.value,
|
|
2747
2745
|
ref: s,
|
|
@@ -2755,10 +2753,10 @@ var tr = /* @__PURE__ */ O({
|
|
|
2755
2753
|
}
|
|
2756
2754
|
}), e.$slots))));
|
|
2757
2755
|
}
|
|
2758
|
-
}),
|
|
2756
|
+
}), gr = ".xlsx,.xls", _r = { class: "flex items-center" }, vr = {
|
|
2759
2757
|
key: 1,
|
|
2760
2758
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
2761
|
-
},
|
|
2759
|
+
}, yr = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
2762
2760
|
inheritAttrs: !1,
|
|
2763
2761
|
name: "TUpload",
|
|
2764
2762
|
__name: "upload",
|
|
@@ -2767,7 +2765,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2767
2765
|
"onUpdate:modelValue": {},
|
|
2768
2766
|
requestMethod: {},
|
|
2769
2767
|
abridgeName: {},
|
|
2770
|
-
accept: { default:
|
|
2768
|
+
accept: { default: gr },
|
|
2771
2769
|
allowUploadDuplicateFile: { type: Boolean },
|
|
2772
2770
|
autoUpload: { type: Boolean },
|
|
2773
2771
|
beforeAllFilesUpload: {},
|
|
@@ -2840,7 +2838,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2840
2838
|
response: {},
|
|
2841
2839
|
status: "fail"
|
|
2842
2840
|
});
|
|
2843
|
-
}) :
|
|
2841
|
+
}) : q.Post(n.requestMethod.ossUrl ?? "common/uploadOss", {
|
|
2844
2842
|
biz: n.requestMethod.biz,
|
|
2845
2843
|
file: e.raw
|
|
2846
2844
|
}, { meta: { useFormData: !0 } }).then((e) => {
|
|
@@ -2858,7 +2856,7 @@ var tr = /* @__PURE__ */ O({
|
|
|
2858
2856
|
});
|
|
2859
2857
|
});
|
|
2860
2858
|
function i() {
|
|
2861
|
-
typeof n.downloadTemplate == "string" ?
|
|
2859
|
+
typeof n.downloadTemplate == "string" ? J(n.downloadTemplate) : n.downloadTemplate.send();
|
|
2862
2860
|
}
|
|
2863
2861
|
let a = S(() => {
|
|
2864
2862
|
let e = { ...n };
|
|
@@ -2869,35 +2867,35 @@ var tr = /* @__PURE__ */ O({
|
|
|
2869
2867
|
function s(e) {
|
|
2870
2868
|
o.exposed = e ?? {};
|
|
2871
2869
|
}
|
|
2872
|
-
return t({}), (t, o) => (P(), C(
|
|
2870
|
+
return t({}), (t, o) => (P(), C(I(A(R(ft), N(t.$attrs, {
|
|
2873
2871
|
...a.value,
|
|
2874
2872
|
requestMethod: r.value,
|
|
2875
2873
|
ref: s
|
|
2876
|
-
}, { class: a.value.theme }))), null, xe({ _: 2 }, [
|
|
2874
|
+
}, { class: a.value.theme }))), null, xe({ _: 2 }, [Me(Object.keys(t.$slots), (e) => ({
|
|
2877
2875
|
name: e,
|
|
2878
|
-
fn:
|
|
2876
|
+
fn: B((n) => [Ne(t.$slots, e, Oe(Ce(n)), void 0, !0)])
|
|
2879
2877
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
2880
2878
|
name: "trigger",
|
|
2881
|
-
fn:
|
|
2882
|
-
D(
|
|
2883
|
-
default:
|
|
2879
|
+
fn: B(({ files: t }) => [be("div", _r, [
|
|
2880
|
+
D(R($), { theme: "primary" }, {
|
|
2881
|
+
default: B(() => [E(L(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
2884
2882
|
_: 2
|
|
2885
2883
|
}, 1024),
|
|
2886
|
-
e.downloadTemplate ? (P(), C(
|
|
2884
|
+
e.downloadTemplate ? (P(), C(R($), {
|
|
2887
2885
|
key: 0,
|
|
2888
2886
|
theme: "primary",
|
|
2889
2887
|
variant: "outline",
|
|
2890
|
-
onClick:
|
|
2888
|
+
onClick: Be(i, ["stop"])
|
|
2891
2889
|
}, {
|
|
2892
|
-
default:
|
|
2890
|
+
default: B(() => [...o[0] ||= [E("下载模板", -1)]]),
|
|
2893
2891
|
_: 1
|
|
2894
2892
|
})) : w("v-if", !0),
|
|
2895
|
-
n.tips ? (P(), T("span",
|
|
2893
|
+
n.tips ? (P(), T("span", vr, L(n.tips), 1)) : w("v-if", !0)
|
|
2896
2894
|
])]),
|
|
2897
2895
|
key: "0"
|
|
2898
2896
|
} : void 0]), 1024));
|
|
2899
2897
|
}
|
|
2900
|
-
}), [["__scopeId", "data-v-51889a3b"]]),
|
|
2898
|
+
}), [["__scopeId", "data-v-51889a3b"]]), br = /*#__PURE__*/ b(/* @__PURE__ */ O({
|
|
2901
2899
|
inheritAttrs: !1,
|
|
2902
2900
|
name: "TForm",
|
|
2903
2901
|
__name: "form",
|
|
@@ -2925,9 +2923,9 @@ var tr = /* @__PURE__ */ O({
|
|
|
2925
2923
|
onReset: { type: Function },
|
|
2926
2924
|
onSubmit: { type: Function },
|
|
2927
2925
|
onValidate: { type: Function }
|
|
2928
|
-
},
|
|
2926
|
+
}, It),
|
|
2929
2927
|
setup(e, { expose: t }) {
|
|
2930
|
-
let n = e, { customerFormItemComponentInitialValueMap: r = /* @__PURE__ */ new Map(), customerFormItemComponentMap: a = /* @__PURE__ */ new Map() } =
|
|
2928
|
+
let n = e, { customerFormItemComponentInitialValueMap: r = /* @__PURE__ */ new Map(), customerFormItemComponentMap: a = /* @__PURE__ */ new Map() } = wt, o = k(), s = F(null), l = S(() => n.items.map((e) => {
|
|
2931
2929
|
if (typeof e.__others == "function") {
|
|
2932
2930
|
let t = {
|
|
2933
2931
|
...e,
|
|
@@ -2968,32 +2966,32 @@ var tr = /* @__PURE__ */ O({
|
|
|
2968
2966
|
}
|
|
2969
2967
|
});
|
|
2970
2968
|
}
|
|
2971
|
-
|
|
2969
|
+
z(l, u, {
|
|
2972
2970
|
deep: 2,
|
|
2973
2971
|
immediate: !0
|
|
2974
|
-
}),
|
|
2972
|
+
}), z(() => n.data, () => {
|
|
2975
2973
|
p.error("TForm: data is changed");
|
|
2976
2974
|
});
|
|
2977
2975
|
let d = /* @__PURE__ */ new Map(), f = {
|
|
2978
|
-
TCascader:
|
|
2976
|
+
TCascader: nr,
|
|
2979
2977
|
TCheckbox: se,
|
|
2980
|
-
TCheckboxGroup:
|
|
2978
|
+
TCheckboxGroup: rr,
|
|
2981
2979
|
TColorPicker: ce,
|
|
2982
|
-
TCron:
|
|
2983
|
-
TDatePicker:
|
|
2980
|
+
TCron: ir,
|
|
2981
|
+
TDatePicker: ar,
|
|
2984
2982
|
TInput: ue,
|
|
2985
|
-
TInputNumber:
|
|
2986
|
-
TRadioGroup:
|
|
2987
|
-
TRangeInput:
|
|
2988
|
-
TSelect:
|
|
2989
|
-
TSelectSysUser:
|
|
2983
|
+
TInputNumber: sr,
|
|
2984
|
+
TRadioGroup: cr,
|
|
2985
|
+
TRangeInput: lr,
|
|
2986
|
+
TSelect: dr,
|
|
2987
|
+
TSelectSysUser: fr,
|
|
2990
2988
|
TSlider: pe,
|
|
2991
2989
|
TSwitch: me,
|
|
2992
2990
|
TTagInput: fe,
|
|
2993
2991
|
TTextarea: he,
|
|
2994
|
-
TTree:
|
|
2995
|
-
TTreeSelect:
|
|
2996
|
-
TUpload:
|
|
2992
|
+
TTree: mr,
|
|
2993
|
+
TTreeSelect: hr,
|
|
2994
|
+
TUpload: yr
|
|
2997
2995
|
};
|
|
2998
2996
|
function m(e) {
|
|
2999
2997
|
return typeof e == "string" ? a.has(e) ? (d.has(e) || d.set(e, Se(a.get(e))), d.get(e)) : f[e] : ue;
|
|
@@ -3089,16 +3087,16 @@ var tr = /* @__PURE__ */ O({
|
|
|
3089
3087
|
let t = e ?? {};
|
|
3090
3088
|
s.value = t, o.exposed = t;
|
|
3091
3089
|
}
|
|
3092
|
-
let te =
|
|
3090
|
+
let te = Fe();
|
|
3093
3091
|
ke(() => {
|
|
3094
|
-
te.value = o.exposed.$el.getElementsByClassName("t-form__label"), y(),
|
|
3092
|
+
te.value = o.exposed.$el.getElementsByClassName("t-form__label"), y(), yt(o.exposed.$el, () => {
|
|
3095
3093
|
y();
|
|
3096
3094
|
}, {
|
|
3097
3095
|
attributeFilter: ["class"],
|
|
3098
3096
|
characterData: !0,
|
|
3099
3097
|
childList: !0,
|
|
3100
3098
|
subtree: !0
|
|
3101
|
-
}),
|
|
3099
|
+
}), bt(o.exposed.$el, () => {
|
|
3102
3100
|
y();
|
|
3103
3101
|
});
|
|
3104
3102
|
});
|
|
@@ -3114,12 +3112,12 @@ var tr = /* @__PURE__ */ O({
|
|
|
3114
3112
|
e.style.minWidth = `${t}px`;
|
|
3115
3113
|
});
|
|
3116
3114
|
}
|
|
3117
|
-
return Ae("formData", n.data), Ae("formExposed", s), Ae("isFormDisabled", S(() => n.disabled)), Ae("isFormReadonly", S(() => n.readonly)), t({}), (t, n) => (P(), T(ve, null, [w(" eslint-disable vue/no-mutating-props "), (P(), C(
|
|
3115
|
+
return Ae("formData", n.data), Ae("formExposed", s), Ae("isFormDisabled", S(() => n.disabled)), Ae("isFormReadonly", S(() => n.readonly)), t({}), (t, n) => (P(), T(ve, null, [w(" eslint-disable vue/no-mutating-props "), (P(), C(I(R(Qe)), N(N(t.$attrs, {
|
|
3118
3116
|
..._.value,
|
|
3119
3117
|
ref: ee
|
|
3120
3118
|
}), { "label-width": "fit-content" }), {
|
|
3121
|
-
default:
|
|
3122
|
-
default:
|
|
3119
|
+
default: B(() => [(P(!0), T(ve, null, Me(l.value.filter((e) => e.show !== !1), (n) => (P(), C(R($e), N({ key: n.model ?? n.slot }, { ref_for: !0 }, N({ ...g(n) }, { class: { no_label_item: R(c)(n._label) } }), { name: n.model }), {
|
|
3120
|
+
default: B(() => [n.slot ? Ne(t.$slots, n.slot, {}, void 0, !0, 0) : (P(), C(I(m(n.component)), N({
|
|
3123
3121
|
key: 1,
|
|
3124
3122
|
modelValue: e.data[n.model],
|
|
3125
3123
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
@@ -3129,14 +3127,14 @@ var tr = /* @__PURE__ */ O({
|
|
|
3129
3127
|
_: 3
|
|
3130
3128
|
}, 16))], 2112));
|
|
3131
3129
|
}
|
|
3132
|
-
}), [["__scopeId", "data-v-73a5d59c"]]),
|
|
3130
|
+
}), [["__scopeId", "data-v-73a5d59c"]]), xr = /* @__PURE__ */ O({
|
|
3133
3131
|
__name: "ResetPwd",
|
|
3134
3132
|
props: { showFooter: {
|
|
3135
3133
|
type: Boolean,
|
|
3136
3134
|
default: !0
|
|
3137
3135
|
} },
|
|
3138
3136
|
setup(e, { expose: t }) {
|
|
3139
|
-
let n =
|
|
3137
|
+
let n = V(), r = [
|
|
3140
3138
|
{
|
|
3141
3139
|
_label: "旧密码",
|
|
3142
3140
|
_required: !0,
|
|
@@ -3167,13 +3165,13 @@ var tr = /* @__PURE__ */ O({
|
|
|
3167
3165
|
type: "password"
|
|
3168
3166
|
},
|
|
3169
3167
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
3170
|
-
], i =
|
|
3168
|
+
], i = ze("form");
|
|
3171
3169
|
function a() {
|
|
3172
|
-
|
|
3170
|
+
W().close(n.name);
|
|
3173
3171
|
}
|
|
3174
3172
|
async function o() {
|
|
3175
3173
|
let e = await i.value.validate();
|
|
3176
|
-
await
|
|
3174
|
+
await q.Put("system/user/profile/updatePwd", void 0, {
|
|
3177
3175
|
meta: {
|
|
3178
3176
|
useLoading: "保存中...",
|
|
3179
3177
|
useSuccessMsg: !0
|
|
@@ -3182,23 +3180,23 @@ var tr = /* @__PURE__ */ O({
|
|
|
3182
3180
|
newPassword: e.newPassword,
|
|
3183
3181
|
oldPassword: e.oldPassword
|
|
3184
3182
|
}
|
|
3185
|
-
}),
|
|
3183
|
+
}), jn().logout();
|
|
3186
3184
|
}
|
|
3187
|
-
return t({ handleSubmit: o }), (e, t) => (P(), C(
|
|
3185
|
+
return t({ handleSubmit: o }), (e, t) => (P(), C(R(br), {
|
|
3188
3186
|
ref: "form",
|
|
3189
3187
|
items: r,
|
|
3190
3188
|
"label-align": "right",
|
|
3191
3189
|
layout: "vertical"
|
|
3192
3190
|
}, {
|
|
3193
|
-
footer:
|
|
3194
|
-
default:
|
|
3191
|
+
footer: B(() => [D(R($), { onClick: o }, {
|
|
3192
|
+
default: B(() => [...t[0] ||= [E("保存", -1)]]),
|
|
3195
3193
|
_: 1
|
|
3196
|
-
}), D(
|
|
3194
|
+
}), D(R($), {
|
|
3197
3195
|
class: "ml-4!",
|
|
3198
3196
|
theme: "default",
|
|
3199
3197
|
onClick: a
|
|
3200
3198
|
}, {
|
|
3201
|
-
default:
|
|
3199
|
+
default: B(() => [...t[1] ||= [E("关闭", -1)]]),
|
|
3202
3200
|
_: 1
|
|
3203
3201
|
})]),
|
|
3204
3202
|
_: 1
|
|
@@ -3206,35 +3204,35 @@ var tr = /* @__PURE__ */ O({
|
|
|
3206
3204
|
}
|
|
3207
3205
|
});
|
|
3208
3206
|
// ../../packages/dlzn-ui/store/modules/user.ts
|
|
3209
|
-
function
|
|
3210
|
-
return
|
|
3207
|
+
function Sr() {
|
|
3208
|
+
return q.Get("getInfo", { meta: {
|
|
3211
3209
|
useFailMsg: "获取用户信息失败",
|
|
3212
3210
|
useLoading: "正在获取用户信息..."
|
|
3213
3211
|
} });
|
|
3214
3212
|
}
|
|
3215
|
-
var
|
|
3213
|
+
var Cr = {
|
|
3216
3214
|
admin: !1,
|
|
3217
3215
|
dept: { deptName: "" },
|
|
3218
3216
|
needChangePwd: 0,
|
|
3219
3217
|
nickName: "",
|
|
3220
3218
|
userId: "",
|
|
3221
3219
|
userName: "",
|
|
3222
|
-
...
|
|
3223
|
-
}, Q =
|
|
3224
|
-
let e = F(
|
|
3220
|
+
...wt.defaultUserInfo ?? {}
|
|
3221
|
+
}, Q = Ct("user", () => {
|
|
3222
|
+
let e = F(xt(Cr)), t = F([]), n = F([]);
|
|
3225
3223
|
function r() {
|
|
3226
|
-
e.value =
|
|
3224
|
+
e.value = xt(Cr), t.value = [], n.value = [];
|
|
3227
3225
|
}
|
|
3228
3226
|
let i = S(() => e.value.admin), a = F("");
|
|
3229
3227
|
async function o(r = !0) {
|
|
3230
|
-
let i = await
|
|
3231
|
-
e.value = i.user, a.value !== e.value.userId &&
|
|
3228
|
+
let i = await Sr();
|
|
3229
|
+
e.value = i.user, a.value !== e.value.userId && W().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await ln().getRouters();
|
|
3232
3230
|
}
|
|
3233
|
-
|
|
3231
|
+
z(() => e.value.needChangePwd, (e) => {
|
|
3234
3232
|
e === 1 && VITE_FORCE_PWD_CHANGE && Ee(() => {
|
|
3235
3233
|
let e = F(null);
|
|
3236
|
-
|
|
3237
|
-
body: () => A(
|
|
3234
|
+
H({
|
|
3235
|
+
body: () => A(xr, {
|
|
3238
3236
|
labelAlign: "top",
|
|
3239
3237
|
ref: e,
|
|
3240
3238
|
showFooter: !1
|
|
@@ -3306,7 +3304,7 @@ var Sr = {
|
|
|
3306
3304
|
Object,
|
|
3307
3305
|
Array
|
|
3308
3306
|
] }
|
|
3309
|
-
},
|
|
3307
|
+
}, Ft),
|
|
3310
3308
|
setup(e) {
|
|
3311
3309
|
let i = e, a = F("");
|
|
3312
3310
|
function o() {
|
|
@@ -3330,14 +3328,14 @@ var Sr = {
|
|
|
3330
3328
|
}
|
|
3331
3329
|
return t;
|
|
3332
3330
|
}
|
|
3333
|
-
let s = F(!1), c = r.isLoading, l = F(null), { focused: u } =
|
|
3334
|
-
|
|
3331
|
+
let s = F(!1), c = r.isLoading, l = F(null), { focused: u } = vt(l), d, f;
|
|
3332
|
+
z(c, (e) => {
|
|
3335
3333
|
e ? (clearTimeout(f), f = void 0, d = window.setTimeout(() => {
|
|
3336
3334
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
3337
3335
|
}, 150)) : d === void 0 ? f = window.setTimeout(() => {
|
|
3338
3336
|
s.value = !1;
|
|
3339
3337
|
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
3340
|
-
}, { immediate: !0 }),
|
|
3338
|
+
}, { immediate: !0 }), z(u, (e) => {
|
|
3341
3339
|
e && c.value && (s.value = !0);
|
|
3342
3340
|
});
|
|
3343
3341
|
let p = S(() => i.loading === void 0 ? i.autoLoading ? s.value : !1 : i.loading), m = S(() => {
|
|
@@ -3430,7 +3428,7 @@ var Sr = {
|
|
|
3430
3428
|
break;
|
|
3431
3429
|
}
|
|
3432
3430
|
return t;
|
|
3433
|
-
}), ee =
|
|
3431
|
+
}), ee = Ie(), te = S(() => N(ee, {
|
|
3434
3432
|
...m.value,
|
|
3435
3433
|
ref: g
|
|
3436
3434
|
}, { class: "flex-shrink-0" })), y = S(() => {
|
|
@@ -3441,33 +3439,33 @@ var Sr = {
|
|
|
3441
3439
|
}
|
|
3442
3440
|
};
|
|
3443
3441
|
});
|
|
3444
|
-
return (r, i) =>
|
|
3445
|
-
default:
|
|
3442
|
+
return (r, i) => R(Q)().checkPermissions(e.permission) ? (P(), T(ve, { key: 0 }, [y.value ? (P(), C(R(n), Oe(N({ key: 0 }, y.value)), {
|
|
3443
|
+
default: B(() => [(P(), C(I(A(R(Ue), te.value)), {
|
|
3446
3444
|
onVnodeMounted: _,
|
|
3447
3445
|
onVnodeUpdated: _
|
|
3448
3446
|
}, xe({ _: 2 }, [e.icon || v.value ? {
|
|
3449
3447
|
name: "icon",
|
|
3450
|
-
fn:
|
|
3448
|
+
fn: B(() => [D(R(t), { icon: e.icon || v.value }, null, 8, ["icon"])]),
|
|
3451
3449
|
key: "0"
|
|
3452
|
-
} : void 0,
|
|
3450
|
+
} : void 0, Me(Object.keys(r.$slots), (e) => ({
|
|
3453
3451
|
name: e,
|
|
3454
|
-
fn:
|
|
3452
|
+
fn: B((t) => [Ne(r.$slots, e, Oe(Ce(t)), void 0, !0)])
|
|
3455
3453
|
}))]), 1536))]),
|
|
3456
3454
|
_: 3
|
|
3457
|
-
}, 16)) : (P(), C(
|
|
3455
|
+
}, 16)) : (P(), C(I(A(R(Ue), te.value)), {
|
|
3458
3456
|
key: 1,
|
|
3459
3457
|
onVnodeMounted: _,
|
|
3460
3458
|
onVnodeUpdated: _
|
|
3461
3459
|
}, xe({ _: 2 }, [e.icon || v.value ? {
|
|
3462
3460
|
name: "icon",
|
|
3463
|
-
fn:
|
|
3461
|
+
fn: B(() => [D(R(t), { icon: e.icon || v.value }, null, 8, ["icon"])]),
|
|
3464
3462
|
key: "0"
|
|
3465
|
-
} : void 0,
|
|
3463
|
+
} : void 0, Me(Object.keys(r.$slots), (e) => ({
|
|
3466
3464
|
name: e,
|
|
3467
|
-
fn:
|
|
3465
|
+
fn: B((t) => [Ne(r.$slots, e, Oe(Ce(t)), void 0, !0)])
|
|
3468
3466
|
}))]), 1536))], 64)) : w("v-if", !0);
|
|
3469
3467
|
}
|
|
3470
|
-
}), [["__scopeId", "data-v-
|
|
3468
|
+
}), [["__scopeId", "data-v-0c79588a"]]), wr = /* @__PURE__ */ O({
|
|
3471
3469
|
name: "TProvider",
|
|
3472
3470
|
__name: "Provider",
|
|
3473
3471
|
setup(e) {
|
|
@@ -3489,18 +3487,18 @@ var Sr = {
|
|
|
3489
3487
|
variant: "text"
|
|
3490
3488
|
})
|
|
3491
3489
|
} };
|
|
3492
|
-
return (e, n) => (P(), C(
|
|
3490
|
+
return (e, n) => (P(), C(R(pt), {
|
|
3493
3491
|
"empty-values": [""],
|
|
3494
|
-
locale:
|
|
3492
|
+
locale: R(Pt),
|
|
3495
3493
|
"value-on-clear": "",
|
|
3496
3494
|
"z-index": 5500
|
|
3497
3495
|
}, {
|
|
3498
|
-
default:
|
|
3499
|
-
default:
|
|
3496
|
+
default: B(() => [D(R(Ke), { "global-config": t }, {
|
|
3497
|
+
default: B(() => [Ne(e.$slots, "default")]),
|
|
3500
3498
|
_: 3
|
|
3501
3499
|
})]),
|
|
3502
3500
|
_: 3
|
|
3503
3501
|
}, 8, ["locale"]));
|
|
3504
3502
|
}
|
|
3505
3503
|
});
|
|
3506
|
-
export {
|
|
3504
|
+
export { dn as $, Jn as A, K as B, $n as C, Zn as D, tr as E, Hn as F, En as G, Pn as H, Un as I, _n as J, Dn as K, Wn as L, Xn as M, J as N, Kn as O, q as P, fn as Q, zn as R, nr as S, er as T, Nn as U, Ln as V, jn as W, yn as X, vn as Y, bn as Z, sr as _, xr as a, Qt as at, ir as b, gr as c, Kt as ct, pr as d, Bt as dt, en as et, fr as f, Vt as ft, cr as g, lr as h, Ft as ht, Q as i, H as it, Yn as j, qn as k, hr as l, Wt as lt, ur as m, It as mt, $ as n, W as nt, br as o, Jt as ot, dr as p, Lt as pt, On as q, Sr as r, U as rt, yr as s, qt as st, wr as t, ln as tt, mr as u, Gt as ut, or as v, Z as w, rr as x, ar as y, Rn as z };
|