dlzn-ui 2.0.5 → 2.0.7
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/IndexItem-CfYDJ95Q.css +1 -0
- package/assets/LoginBg-XqWOv7dJ.css +1 -0
- package/assets/main-CxSb5Gqw.css +2 -0
- package/assets/{button-Be7wyDo4.css → provider-1BcdscQq.css} +1 -1
- package/chunks/AssignUser-BPrzGjCg.mjs +124 -0
- package/chunks/{Common-B5NscAh_.mjs → Common-Ds4A0g73.mjs} +7 -7
- package/chunks/{Day-Ci8nR_Ll.mjs → Day-CWWVjsXu.mjs} +13 -13
- package/chunks/{DictTypeDetail-B_aSmp0m.mjs → DictTypeDetail-ijxK2MDm.mjs} +7 -7
- package/chunks/{Hour-C1yYXl7B.mjs → Hour-D-2s4xgR.mjs} +1 -1
- package/chunks/{Index-BxpYRhO7.mjs → Index-7ubKF9v4.mjs} +1 -1
- package/chunks/{Index-DU8S7od8.mjs → Index-CZnP6jHo.mjs} +1 -1
- package/chunks/{Index-UHMQ6ORy.mjs → Index-D0dEcWw2.mjs} +1 -1
- package/chunks/{Index-CHfwy4gI.mjs → Index-DhkEiAro.mjs} +5 -5
- package/chunks/{Index-Bb9OwRGB.mjs → Index-DoPLbOv7.mjs} +1 -1
- package/chunks/{Index-Z81MxcDh.mjs → Index-az-w01U3.mjs} +1 -1
- package/chunks/{IndexItem-BWoJrz24.mjs → IndexItem-KlRJte7i.mjs} +8 -8
- package/chunks/Log-LYCmf0zI.mjs +213 -0
- package/chunks/{LoginBg-B1auGWuJ.mjs → LoginBg-BtuSDFUq.mjs} +11 -19
- package/chunks/{MenuNode-Dp1kCBvH.mjs → MenuNode-6Nca-v9i.mjs} +2 -2
- package/chunks/{Minute-CA5DlXsq.mjs → Minute-8BpPY8V6.mjs} +1 -1
- package/chunks/{Month-D-4ld14M.mjs → Month-C5iIZpY7.mjs} +1 -1
- package/chunks/{Second-RPGoCkey.mjs → Second-BKF09AKl.mjs} +1 -1
- package/chunks/SelectDept-C78pnJtp.mjs +68 -0
- package/chunks/SelectMenu-B2-QkHU2.mjs +68 -0
- package/chunks/SelectUser-BuE4Lgm0.mjs +57 -0
- package/chunks/{UserInfo-CrBlooGu.mjs → UserInfo-uDVj4WPH.mjs} +11 -11
- package/chunks/{Wrapper-LEchQmDn.mjs → Wrapper-C6BtJDSa.mjs} +5 -5
- package/chunks/{app-DiNoDaOD.mjs → app-BXskd1Ae.mjs} +4 -4
- package/chunks/{custom-page-list-DF3Qw4y7.mjs → custom-page-list-r5EUcg98.mjs} +4 -4
- package/chunks/{custom-page-table-CH09hGDM.mjs → custom-page-table-D1FmkEop.mjs} +2 -2
- package/chunks/{overview-BQQnpz4N.mjs → overview-BCXuALeB.mjs} +1 -1
- package/chunks/{page-list-BjjvOqb5.mjs → page-list-Zp_EiMZd.mjs} +36 -36
- package/chunks/{page-query-BCNFOYTD.mjs → page-query-CxZBtQht.mjs} +5 -5
- package/chunks/{page-table-VeEt8uuI.mjs → page-table-BpyyKTMq.mjs} +9 -9
- package/chunks/{pagination-BuhM6NW1.mjs → pagination-y5tkmGDM.mjs} +1 -1
- package/chunks/{button-BcpR95gj.mjs → provider-C6TTHGoz.mjs} +429 -433
- package/chunks/{table-B3z8z5O8.mjs → table-2Eqd8Kcx.mjs} +10 -10
- 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/date-picker/index.mjs +1 -1
- package/components/date-picker/src/date-picker.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
- package/components/index.mjs +11 -11
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.d.ts +3 -3
- 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/page-table/src/page-table.vue.d.ts +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 +2 -2
- 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/table/src/table.vue.d.ts +1 -1
- package/components/tree/index.mjs +2 -2
- 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 +2 -2
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +2 -2
- package/hooks/useSysUser/index.mjs +2 -2
- package/index.d.ts +3 -0
- package/layout/Entry.mjs +2 -0
- package/layout/Login.mjs +5 -5
- package/layout/NotFound.mjs +1 -1
- package/layout/{index2.mjs → 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/modules/MenuNode.mjs +1 -1
- package/layout/profile/Index.mjs +4 -4
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/main.d.ts +2 -0
- package/main.mjs +14 -0
- package/package.json +13 -1
- package/plugins/autoImport/$alova/index.mjs +2 -2
- 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 +12 -12
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/Wrapper.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/ImageViewer/Index.vue.d.ts +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 +6 -6
- package/plugins/tableRenders/title/index.mjs +1 -1
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +2 -2
- package/views/index.mjs +9 -1
- package/views/system/dept/index.mjs +256 -0
- package/views/system/dept/index.vue.d.ts +3 -0
- package/views/system/dept/utils.d.ts +2 -0
- package/views/system/dept/utils.mjs +15 -0
- package/views/system/dict/index.mjs +18 -18
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +407 -0
- package/views/system/menu/index.vue.d.ts +3 -0
- package/views/system/post/index.mjs +182 -0
- package/views/system/post/index.vue.d.ts +3 -0
- package/views/system/role/index.mjs +319 -0
- package/views/system/role/index.vue.d.ts +3 -0
- package/views/system/role/modules/AssignUser.mjs +2 -0
- package/views/system/role/modules/AssignUser.vue.d.ts +6 -0
- package/views/system/role/modules/SelectDept.mjs +2 -0
- package/views/system/role/modules/SelectDept.vue.d.ts +6 -0
- package/views/system/role/modules/SelectMenu.mjs +2 -0
- package/views/system/role/modules/SelectMenu.vue.d.ts +6 -0
- package/views/system/role/modules/SelectUser.mjs +2 -0
- package/views/system/role/modules/SelectUser.vue.d.ts +11 -0
- package/views/system/user/index.mjs +451 -0
- package/views/system/user/index.vue.d.ts +9 -0
- package/views/tool/job/index.mjs +297 -0
- package/views/tool/job/index.vue.d.ts +3 -0
- package/views/tool/job/modules/Log.mjs +2 -0
- package/views/tool/job/modules/Log.vue.d.ts +6 -0
- package/assets/IndexItem-5VrD3wb-.css +0 -1
- package/assets/LoginBg-9HH4oQBJ.css +0 -1
- package/layout/Index.mjs +0 -2
- package/chunks/{date-picker-DtbDIFUH.mjs → date-picker-D15OhWnK.mjs} +1 -1
- /package/layout/{Index.vue.d.ts → Entry.vue.d.ts} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '../assets/css-BPkXehJY.css';import '../assets/provider-1BcdscQq.css';/* empty css */
|
|
1
2
|
import { t as e } from "./icon-COjp1yrx.mjs";
|
|
2
3
|
import "../components/icon/index.mjs";
|
|
3
4
|
import { t } from "./popconfirm-DxWa7vWm.mjs";
|
|
@@ -7,8 +8,7 @@ import i from "../plugins/autoImport/$loading/index.mjs";
|
|
|
7
8
|
import { t as a } from "./checkbox-CLlUEbkk.mjs";
|
|
8
9
|
import "../components/checkbox/index.mjs";
|
|
9
10
|
import o from "../plugins/autoImport/$msg/index.mjs";
|
|
10
|
-
import s from "../layout/
|
|
11
|
-
import '../assets/css-BPkXehJY.css';import '../assets/button-Be7wyDo4.css';/* empty css */
|
|
11
|
+
import s from "../layout/index.mjs";
|
|
12
12
|
import { t as c } from "./scrollbar-CI1mysNQ.mjs";
|
|
13
13
|
import "../components/scrollbar/index.mjs";
|
|
14
14
|
import l from "../hooks/useMQ/index.mjs";
|
|
@@ -19,7 +19,7 @@ import "../components/gradient-text/index.mjs";
|
|
|
19
19
|
import { t as p } from "./image-BEsiUWeF.mjs";
|
|
20
20
|
import "../components/image/index.mjs";
|
|
21
21
|
import m from "../views/index.mjs";
|
|
22
|
-
import { t as h } from "./MenuNode-
|
|
22
|
+
import { t as h } from "./MenuNode-6Nca-v9i.mjs";
|
|
23
23
|
import ee from "../hooks/useContextMenu/index.mjs";
|
|
24
24
|
import { passwordReg as te, passwordRegMessage as g } from "../constants/others.mjs";
|
|
25
25
|
import { isFalsy as _, isValidNumberString as v } from "../utils/boolean.mjs";
|
|
@@ -29,7 +29,7 @@ import "../utils/index.mjs";
|
|
|
29
29
|
import x, { useClearList as ne } from "../hooks/useList/index.mjs";
|
|
30
30
|
import { n as re, t as ie } from "./input-B8jjJrK5.mjs";
|
|
31
31
|
import "../components/input/index.mjs";
|
|
32
|
-
import { t as ae } from "./date-picker-
|
|
32
|
+
import { t as ae } from "./date-picker-D15OhWnK.mjs";
|
|
33
33
|
import "../components/date-picker/index.mjs";
|
|
34
34
|
import { t as oe } from "./input-number-B4oTaRne.mjs";
|
|
35
35
|
import "../components/input-number/index.mjs";
|
|
@@ -44,24 +44,205 @@ import "../components/switch/index.mjs";
|
|
|
44
44
|
import { t as fe } from "./textarea-xkwOhNut.mjs";
|
|
45
45
|
import "../components/textarea/index.mjs";
|
|
46
46
|
import { Fragment as pe, KeepAlive as me, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as he, createSlots as ge, createTextVNode as E, createVNode as D, defineAsyncComponent as _e, defineComponent as O, getCurrentInstance as k, guardReactiveProps as ve, h as A, inject as ye, markRaw as be, mergeDefaults as j, mergeProps as M, nextTick as N, normalizeClass as xe, normalizeProps as P, onMounted as Se, openBlock as F, provide as Ce, reactive as we, ref as I, renderList as L, renderSlot as Te, resolveComponent as Ee, resolveDynamicComponent as R, shallowRef as De, toDisplayString as z, unref as B, useAttrs as Oe, useSlots as ke, useTemplateRef as Ae, watch as V, withCtx as H, withModifiers as je } from "vue";
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import ft from "
|
|
53
|
-
import
|
|
54
|
-
import mt from "alova
|
|
55
|
-
import ht from "alova/
|
|
56
|
-
import gt from "
|
|
57
|
-
import
|
|
58
|
-
//#region ../../
|
|
47
|
+
import { Breadcrumb as Me, BreadcrumbItem as Ne, Button as Pe, CheckboxGroup as Fe, ConfigProvider as Ie, Content as Le, DialogPlugin as Re, Drawer as ze, DrawerPlugin as Be, Dropdown as Ve, Form as He, FormItem as Ue, HeadMenu as We, Header as Ge, InputAdornment as Ke, Layout as qe, Menu as Je, MenuItem as Ye, RadioGroup as Xe, Select as Ze, Tree as Qe, TreeSelect as $e, Upload as et } from "tdesign-vue-next";
|
|
48
|
+
import { ElConfigProvider as tt } from "element-plus";
|
|
49
|
+
import { useElementSize as nt, useElementVisibility as rt, useFocus as it, useMutationObserver as at, useResizeObserver as ot } from "@vueuse/core";
|
|
50
|
+
import { cloneDeep as st, isPlainObject as ct } from "lodash-es";
|
|
51
|
+
import { defineStore as lt } from "pinia";
|
|
52
|
+
import { createRouter as ut, createWebHistory as dt, useRoute as U, useRouter as ft } from "vue-router";
|
|
53
|
+
import pt from "virtual:dlzn-ui/app-params";
|
|
54
|
+
import { createAlova as mt } from "alova";
|
|
55
|
+
import ht from "alova/fetch";
|
|
56
|
+
import gt from "alova/vue";
|
|
57
|
+
import _t from "path-browserify";
|
|
58
|
+
//#region ../../node_modules/.pnpm/element-plus@2.14.5_vue@3.5.41/node_modules/element-plus/es/locale/lang/zh-cn.mjs
|
|
59
59
|
var vt = {
|
|
60
|
+
name: "zh-cn",
|
|
61
|
+
el: {
|
|
62
|
+
breadcrumb: { label: "面包屑" },
|
|
63
|
+
colorpicker: {
|
|
64
|
+
confirm: "确定",
|
|
65
|
+
clear: "清空",
|
|
66
|
+
defaultLabel: "颜色选择器",
|
|
67
|
+
description: "当前颜色 {color},按 Enter 键选择新颜色",
|
|
68
|
+
alphaLabel: "选择透明度的值",
|
|
69
|
+
alphaDescription: "透明度 {alpha}, 当前颜色 {color}",
|
|
70
|
+
hueLabel: "选择色相值",
|
|
71
|
+
hueDescription: "色相 {hue}, 当前颜色 {color}",
|
|
72
|
+
svLabel: "选择饱和度与明度的值",
|
|
73
|
+
svDescription: "饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",
|
|
74
|
+
predefineDescription: "选择 {value} 作为颜色"
|
|
75
|
+
},
|
|
76
|
+
datepicker: {
|
|
77
|
+
now: "此刻",
|
|
78
|
+
today: "今天",
|
|
79
|
+
cancel: "取消",
|
|
80
|
+
clear: "清空",
|
|
81
|
+
confirm: "确定",
|
|
82
|
+
dateTablePrompt: "使用方向键与 Enter 键可选择日期",
|
|
83
|
+
monthTablePrompt: "使用方向键与 Enter 键可选择月份",
|
|
84
|
+
quarterTablePrompt: "使用方向键与 Enter 键可选择季度",
|
|
85
|
+
yearTablePrompt: "使用方向键与 Enter 键可选择年份",
|
|
86
|
+
selectedDate: "已选日期",
|
|
87
|
+
selectDate: "选择日期",
|
|
88
|
+
selectTime: "选择时间",
|
|
89
|
+
startDate: "开始日期",
|
|
90
|
+
startTime: "开始时间",
|
|
91
|
+
endDate: "结束日期",
|
|
92
|
+
endTime: "结束时间",
|
|
93
|
+
prevYear: "前一年",
|
|
94
|
+
nextYear: "后一年",
|
|
95
|
+
prevMonth: "上个月",
|
|
96
|
+
nextMonth: "下个月",
|
|
97
|
+
year: "年",
|
|
98
|
+
month1: "1 月",
|
|
99
|
+
month2: "2 月",
|
|
100
|
+
month3: "3 月",
|
|
101
|
+
month4: "4 月",
|
|
102
|
+
month5: "5 月",
|
|
103
|
+
month6: "6 月",
|
|
104
|
+
month7: "7 月",
|
|
105
|
+
month8: "8 月",
|
|
106
|
+
month9: "9 月",
|
|
107
|
+
month10: "10 月",
|
|
108
|
+
month11: "11 月",
|
|
109
|
+
month12: "12 月",
|
|
110
|
+
weeks: {
|
|
111
|
+
sun: "日",
|
|
112
|
+
mon: "一",
|
|
113
|
+
tue: "二",
|
|
114
|
+
wed: "三",
|
|
115
|
+
thu: "四",
|
|
116
|
+
fri: "五",
|
|
117
|
+
sat: "六"
|
|
118
|
+
},
|
|
119
|
+
weeksFull: {
|
|
120
|
+
sun: "星期日",
|
|
121
|
+
mon: "星期一",
|
|
122
|
+
tue: "星期二",
|
|
123
|
+
wed: "星期三",
|
|
124
|
+
thu: "星期四",
|
|
125
|
+
fri: "星期五",
|
|
126
|
+
sat: "星期六"
|
|
127
|
+
},
|
|
128
|
+
months: {
|
|
129
|
+
jan: "一月",
|
|
130
|
+
feb: "二月",
|
|
131
|
+
mar: "三月",
|
|
132
|
+
apr: "四月",
|
|
133
|
+
may: "五月",
|
|
134
|
+
jun: "六月",
|
|
135
|
+
jul: "七月",
|
|
136
|
+
aug: "八月",
|
|
137
|
+
sep: "九月",
|
|
138
|
+
oct: "十月",
|
|
139
|
+
nov: "十一月",
|
|
140
|
+
dec: "十二月"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
input: { characters: "{count} / {max} 个字符" },
|
|
144
|
+
inputNumber: {
|
|
145
|
+
decrease: "减少数值",
|
|
146
|
+
increase: "增加数值"
|
|
147
|
+
},
|
|
148
|
+
select: {
|
|
149
|
+
loading: "加载中",
|
|
150
|
+
noMatch: "无匹配数据",
|
|
151
|
+
noData: "无数据",
|
|
152
|
+
placeholder: "请选择"
|
|
153
|
+
},
|
|
154
|
+
mention: { loading: "加载中" },
|
|
155
|
+
dropdown: { toggleDropdown: "切换下拉选项" },
|
|
156
|
+
cascader: {
|
|
157
|
+
noMatch: "无匹配数据",
|
|
158
|
+
loading: "加载中",
|
|
159
|
+
placeholder: "请选择",
|
|
160
|
+
noData: "暂无数据"
|
|
161
|
+
},
|
|
162
|
+
pagination: {
|
|
163
|
+
goto: "前往",
|
|
164
|
+
pagesize: "条/页",
|
|
165
|
+
total: "共 {total} 条",
|
|
166
|
+
pageClassifier: "页",
|
|
167
|
+
page: "页",
|
|
168
|
+
prev: "上一页",
|
|
169
|
+
next: "下一页",
|
|
170
|
+
currentPage: "第 {pager} 页",
|
|
171
|
+
prevPages: "向前 {pager} 页",
|
|
172
|
+
nextPages: "向后 {pager} 页",
|
|
173
|
+
deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
|
|
174
|
+
},
|
|
175
|
+
dialog: { close: "关闭此对话框" },
|
|
176
|
+
drawer: { close: "关闭此对话框" },
|
|
177
|
+
messagebox: {
|
|
178
|
+
title: "提示",
|
|
179
|
+
confirm: "确定",
|
|
180
|
+
cancel: "取消",
|
|
181
|
+
error: "输入的数据不合法!",
|
|
182
|
+
close: "关闭此对话框"
|
|
183
|
+
},
|
|
184
|
+
upload: {
|
|
185
|
+
deleteTip: "按 Delete 键可删除",
|
|
186
|
+
delete: "删除",
|
|
187
|
+
preview: "查看图片",
|
|
188
|
+
continue: "继续上传"
|
|
189
|
+
},
|
|
190
|
+
slider: {
|
|
191
|
+
defaultLabel: "滑块介于 {min} 至 {max}",
|
|
192
|
+
defaultRangeStartLabel: "选择起始值",
|
|
193
|
+
defaultRangeEndLabel: "选择结束值"
|
|
194
|
+
},
|
|
195
|
+
table: {
|
|
196
|
+
emptyText: "暂无数据",
|
|
197
|
+
confirmFilter: "筛选",
|
|
198
|
+
resetFilter: "重置",
|
|
199
|
+
clearFilter: "全部",
|
|
200
|
+
sumText: "合计",
|
|
201
|
+
selectAllLabel: "选择所有行",
|
|
202
|
+
selectRowLabel: "选择当前行",
|
|
203
|
+
expandRowLabel: "展开当前行",
|
|
204
|
+
collapseRowLabel: "收起当前行",
|
|
205
|
+
sortLabel: "按 {column} 排序",
|
|
206
|
+
filterLabel: "按 {column} 过滤"
|
|
207
|
+
},
|
|
208
|
+
tag: { close: "关闭此标签" },
|
|
209
|
+
tour: {
|
|
210
|
+
next: "下一步",
|
|
211
|
+
previous: "上一步",
|
|
212
|
+
finish: "结束导览",
|
|
213
|
+
close: "关闭此对话框"
|
|
214
|
+
},
|
|
215
|
+
tree: { emptyText: "暂无数据" },
|
|
216
|
+
transfer: {
|
|
217
|
+
noMatch: "无匹配数据",
|
|
218
|
+
noData: "无数据",
|
|
219
|
+
titles: ["列表 1", "列表 2"],
|
|
220
|
+
filterPlaceholder: "请输入搜索内容",
|
|
221
|
+
noCheckedFormat: "共 {total} 项",
|
|
222
|
+
hasCheckedFormat: "已选 {checked}/{total} 项"
|
|
223
|
+
},
|
|
224
|
+
image: { error: "加载失败" },
|
|
225
|
+
pageHeader: { title: "返回" },
|
|
226
|
+
popconfirm: {
|
|
227
|
+
confirmButtonText: "确定",
|
|
228
|
+
cancelButtonText: "取消"
|
|
229
|
+
},
|
|
230
|
+
carousel: {
|
|
231
|
+
leftArrow: "上一张幻灯片",
|
|
232
|
+
rightArrow: "下一张幻灯片",
|
|
233
|
+
indicator: "幻灯片切换至索引 {index}"
|
|
234
|
+
},
|
|
235
|
+
inputOTP: {
|
|
236
|
+
groupLabel: "一次性密码输入框",
|
|
237
|
+
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}, yt = {
|
|
60
241
|
autoIcon: !0,
|
|
61
242
|
autoLoading: !0,
|
|
62
243
|
autoTheme: !0,
|
|
63
244
|
loading: void 0
|
|
64
|
-
},
|
|
245
|
+
}, bt = {
|
|
65
246
|
autoLabelWidth: !0,
|
|
66
247
|
colon: !0,
|
|
67
248
|
data: () => we({}),
|
|
@@ -77,7 +258,7 @@ var vt = {
|
|
|
77
258
|
};
|
|
78
259
|
//#endregion
|
|
79
260
|
//#region ../../packages/dlzn-ui/store/modules/common.ts
|
|
80
|
-
function
|
|
261
|
+
function xt() {
|
|
81
262
|
return Y.Get("common/appInfo", { meta: {
|
|
82
263
|
useFailMsg: !1,
|
|
83
264
|
useLoading: !1,
|
|
@@ -85,7 +266,7 @@ function bt() {
|
|
|
85
266
|
useToken: !1
|
|
86
267
|
} });
|
|
87
268
|
}
|
|
88
|
-
var W =
|
|
269
|
+
var W = lt("common", () => {
|
|
89
270
|
let e = I(!0), t = I(250), n = I({
|
|
90
271
|
appName: VITE_APP_NAME,
|
|
91
272
|
version: ""
|
|
@@ -94,7 +275,7 @@ var W = ct("common", () => {
|
|
|
94
275
|
e && (document.title = e);
|
|
95
276
|
});
|
|
96
277
|
function r() {
|
|
97
|
-
|
|
278
|
+
xt().then((e) => {
|
|
98
279
|
n.value = e;
|
|
99
280
|
}).catch((e) => {
|
|
100
281
|
console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
|
|
@@ -114,13 +295,13 @@ var W = ct("common", () => {
|
|
|
114
295
|
isRequestSleep: i,
|
|
115
296
|
requestActive: o
|
|
116
297
|
};
|
|
117
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), G =
|
|
118
|
-
let e = I([]), t = U(), n =
|
|
298
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), G = lt("recentRouters", () => {
|
|
299
|
+
let e = I([]), t = U(), n = ft();
|
|
119
300
|
function r() {
|
|
120
301
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
121
302
|
}
|
|
122
303
|
function i(t, n) {
|
|
123
|
-
let r =
|
|
304
|
+
let r = st(n), i = e.value.findIndex((e) => e.name === r.name || J(e.name).meta.title === J(r.name).meta.title);
|
|
124
305
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
125
306
|
let n = e.value.findIndex((e) => e.name === t);
|
|
126
307
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -151,16 +332,16 @@ var W = ct("common", () => {
|
|
|
151
332
|
}, { persist: { pick: ["recentRouters"] } });
|
|
152
333
|
//#endregion
|
|
153
334
|
//#region ../../packages/dlzn-ui/store/modules/router.ts
|
|
154
|
-
function
|
|
335
|
+
function St() {
|
|
155
336
|
return Y.Get("getRouters", { meta: {
|
|
156
337
|
useFailMsg: "获取用户路由失败",
|
|
157
338
|
useLoading: "正在获取用户路由..."
|
|
158
339
|
} });
|
|
159
340
|
}
|
|
160
|
-
function
|
|
341
|
+
function Ct(e) {
|
|
161
342
|
return e.children !== void 0 || e.component !== void 0;
|
|
162
343
|
}
|
|
163
|
-
function
|
|
344
|
+
function wt(e) {
|
|
164
345
|
let t = [];
|
|
165
346
|
return e.forEach((e) => {
|
|
166
347
|
e.path === "/" ? t.push({
|
|
@@ -169,7 +350,7 @@ function Ct(e) {
|
|
|
169
350
|
}) : t.push(e);
|
|
170
351
|
}), t;
|
|
171
352
|
}
|
|
172
|
-
function
|
|
353
|
+
function Tt(e) {
|
|
173
354
|
let t = (e, n) => {
|
|
174
355
|
let r = [];
|
|
175
356
|
return e.forEach((e) => {
|
|
@@ -193,12 +374,12 @@ function wt(e) {
|
|
|
193
374
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
194
375
|
}
|
|
195
376
|
}
|
|
196
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
377
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = kt(e)), Ct(i) && r.push(i);
|
|
197
378
|
}), r;
|
|
198
|
-
}, n =
|
|
379
|
+
}, n = tn();
|
|
199
380
|
return n.children.push(...e), t([n], null);
|
|
200
381
|
}
|
|
201
|
-
function
|
|
382
|
+
function Et(e) {
|
|
202
383
|
let t = (e) => {
|
|
203
384
|
let n = [...e], r = n.length;
|
|
204
385
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -211,30 +392,30 @@ function Tt(e) {
|
|
|
211
392
|
};
|
|
212
393
|
return t(e);
|
|
213
394
|
}
|
|
214
|
-
var
|
|
215
|
-
function
|
|
395
|
+
var Dt = [];
|
|
396
|
+
function Ot(e) {
|
|
216
397
|
return `./${e.split("___")[0]}.vue`;
|
|
217
398
|
}
|
|
218
|
-
function
|
|
399
|
+
function kt(e) {
|
|
219
400
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
220
|
-
let t = e.component, n = typeof t == "string" ? m[
|
|
401
|
+
let t = e.component, n = typeof t == "string" ? m[Ot(t)] : t;
|
|
221
402
|
if (n === void 0) {
|
|
222
|
-
let e = `路由组件${
|
|
403
|
+
let e = `路由组件${Ot(t)}不存在`;
|
|
223
404
|
return console.error(e), s["./NotFound.vue"];
|
|
224
405
|
}
|
|
225
|
-
return typeof t == "string" &&
|
|
406
|
+
return typeof t == "string" && Dt.push(Ot(t)), () => n().then((t) => ({
|
|
226
407
|
...t.default,
|
|
227
408
|
name: e.name
|
|
228
409
|
}));
|
|
229
410
|
}
|
|
230
411
|
return e.component;
|
|
231
412
|
}
|
|
232
|
-
var
|
|
233
|
-
let e = I([]), t =
|
|
413
|
+
var At = lt("router", () => {
|
|
414
|
+
let e = I([]), t = ft(), n = Q();
|
|
234
415
|
async function r() {
|
|
235
|
-
let r = await
|
|
236
|
-
|
|
237
|
-
if (!
|
|
416
|
+
let r = await St();
|
|
417
|
+
Dt.length = 0, e.value = be(Et(Tt(wt(r)))), n.isAdmin && Object.keys(m).forEach((e) => {
|
|
418
|
+
if (!Dt.includes(e)) {
|
|
238
419
|
let t = `${e} 页面对应的路由不存在`;
|
|
239
420
|
console.error(t);
|
|
240
421
|
}
|
|
@@ -252,32 +433,28 @@ var kt = ct("router", () => {
|
|
|
252
433
|
getRouters: r,
|
|
253
434
|
routersRaw: e
|
|
254
435
|
};
|
|
255
|
-
}),
|
|
436
|
+
}), jt = { class: "ml-2! flex items-center" }, Mt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
256
437
|
__name: "Aside",
|
|
257
438
|
setup(e) {
|
|
258
|
-
let t = U(), n = W(), r = S(() => n.appInfo.appName), i =
|
|
259
|
-
eager: !0,
|
|
260
|
-
import: "default",
|
|
261
|
-
query: "?url"
|
|
262
|
-
}))[0], a = kt(), o = I([]);
|
|
439
|
+
let t = U(), n = W(), r = S(() => n.appInfo.appName), i = At(), a = I([]);
|
|
263
440
|
V(() => t.name, () => {
|
|
264
441
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
265
|
-
|
|
442
|
+
a.value.includes(e) || a.value.push(e);
|
|
266
443
|
});
|
|
267
444
|
}, { immediate: !0 });
|
|
268
|
-
let
|
|
445
|
+
let o = S(() => {
|
|
269
446
|
let { hidden: e, parentName: n } = t.meta;
|
|
270
447
|
return n !== "" && e === !0 ? n : t.name;
|
|
271
448
|
});
|
|
272
|
-
return (e, t) => (F(), C(B(
|
|
273
|
-
expanded:
|
|
274
|
-
"onUpdate:expanded": t[0] ||= (e) =>
|
|
449
|
+
return (e, t) => (F(), C(B(Je), {
|
|
450
|
+
expanded: a.value,
|
|
451
|
+
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
275
452
|
class: "w-full!",
|
|
276
|
-
value:
|
|
453
|
+
value: o.value
|
|
277
454
|
}, {
|
|
278
|
-
logo: H(() => [he("div",
|
|
455
|
+
logo: H(() => [he("div", jt, [D(B(p), {
|
|
279
456
|
class: "logo",
|
|
280
|
-
src: B(
|
|
457
|
+
src: B(pt).asideTopLogoUrl,
|
|
281
458
|
style: {
|
|
282
459
|
width: "28px",
|
|
283
460
|
height: "28px"
|
|
@@ -288,14 +465,14 @@ var kt = ct("router", () => {
|
|
|
288
465
|
"show-border": !1,
|
|
289
466
|
text: r.value
|
|
290
467
|
}, null, 8, ["text"])])]),
|
|
291
|
-
default: H(() => [D(h, { model: B(
|
|
468
|
+
default: H(() => [D(h, { model: B(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
292
469
|
_: 1
|
|
293
470
|
}, 8, ["expanded", "value"]));
|
|
294
471
|
}
|
|
295
|
-
}), [["__scopeId", "data-v-
|
|
472
|
+
}), [["__scopeId", "data-v-b32f75fd"]]), Nt = /* @__PURE__ */ O({
|
|
296
473
|
__name: "Breadcrumb",
|
|
297
474
|
setup(e, { expose: t }) {
|
|
298
|
-
let n = U(), r =
|
|
475
|
+
let n = U(), r = ft(), i = G(), a = S(() => {
|
|
299
476
|
let e = n.matched.map((e) => ({
|
|
300
477
|
name: e.name,
|
|
301
478
|
title: e.meta.title
|
|
@@ -308,11 +485,11 @@ var kt = ct("router", () => {
|
|
|
308
485
|
function o(e) {
|
|
309
486
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
310
487
|
}
|
|
311
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (F(), C(B(
|
|
488
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (F(), C(B(Me), {
|
|
312
489
|
key: 0,
|
|
313
490
|
class: "absolute top-px z-10 py-1!"
|
|
314
491
|
}, {
|
|
315
|
-
default: H(() => [(F(!0), T(pe, null, L(a.value, (e) => (F(), C(B(
|
|
492
|
+
default: H(() => [(F(!0), T(pe, null, L(a.value, (e) => (F(), C(B(Ne), {
|
|
316
493
|
key: e.name,
|
|
317
494
|
disabled: e.disabled,
|
|
318
495
|
onClick: (t) => o(e.name)
|
|
@@ -323,224 +500,11 @@ var kt = ct("router", () => {
|
|
|
323
500
|
_: 1
|
|
324
501
|
})) : w("v-if", !0);
|
|
325
502
|
}
|
|
326
|
-
}),
|
|
327
|
-
name: "zh-cn",
|
|
328
|
-
el: {
|
|
329
|
-
breadcrumb: { label: "面包屑" },
|
|
330
|
-
colorpicker: {
|
|
331
|
-
confirm: "确定",
|
|
332
|
-
clear: "清空",
|
|
333
|
-
defaultLabel: "颜色选择器",
|
|
334
|
-
description: "当前颜色 {color},按 Enter 键选择新颜色",
|
|
335
|
-
alphaLabel: "选择透明度的值",
|
|
336
|
-
alphaDescription: "透明度 {alpha}, 当前颜色 {color}",
|
|
337
|
-
hueLabel: "选择色相值",
|
|
338
|
-
hueDescription: "色相 {hue}, 当前颜色 {color}",
|
|
339
|
-
svLabel: "选择饱和度与明度的值",
|
|
340
|
-
svDescription: "饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",
|
|
341
|
-
predefineDescription: "选择 {value} 作为颜色"
|
|
342
|
-
},
|
|
343
|
-
datepicker: {
|
|
344
|
-
now: "此刻",
|
|
345
|
-
today: "今天",
|
|
346
|
-
cancel: "取消",
|
|
347
|
-
clear: "清空",
|
|
348
|
-
confirm: "确定",
|
|
349
|
-
dateTablePrompt: "使用方向键与 Enter 键可选择日期",
|
|
350
|
-
monthTablePrompt: "使用方向键与 Enter 键可选择月份",
|
|
351
|
-
quarterTablePrompt: "使用方向键与 Enter 键可选择季度",
|
|
352
|
-
yearTablePrompt: "使用方向键与 Enter 键可选择年份",
|
|
353
|
-
selectedDate: "已选日期",
|
|
354
|
-
selectDate: "选择日期",
|
|
355
|
-
selectTime: "选择时间",
|
|
356
|
-
startDate: "开始日期",
|
|
357
|
-
startTime: "开始时间",
|
|
358
|
-
endDate: "结束日期",
|
|
359
|
-
endTime: "结束时间",
|
|
360
|
-
prevYear: "前一年",
|
|
361
|
-
nextYear: "后一年",
|
|
362
|
-
prevMonth: "上个月",
|
|
363
|
-
nextMonth: "下个月",
|
|
364
|
-
year: "年",
|
|
365
|
-
month1: "1 月",
|
|
366
|
-
month2: "2 月",
|
|
367
|
-
month3: "3 月",
|
|
368
|
-
month4: "4 月",
|
|
369
|
-
month5: "5 月",
|
|
370
|
-
month6: "6 月",
|
|
371
|
-
month7: "7 月",
|
|
372
|
-
month8: "8 月",
|
|
373
|
-
month9: "9 月",
|
|
374
|
-
month10: "10 月",
|
|
375
|
-
month11: "11 月",
|
|
376
|
-
month12: "12 月",
|
|
377
|
-
weeks: {
|
|
378
|
-
sun: "日",
|
|
379
|
-
mon: "一",
|
|
380
|
-
tue: "二",
|
|
381
|
-
wed: "三",
|
|
382
|
-
thu: "四",
|
|
383
|
-
fri: "五",
|
|
384
|
-
sat: "六"
|
|
385
|
-
},
|
|
386
|
-
weeksFull: {
|
|
387
|
-
sun: "星期日",
|
|
388
|
-
mon: "星期一",
|
|
389
|
-
tue: "星期二",
|
|
390
|
-
wed: "星期三",
|
|
391
|
-
thu: "星期四",
|
|
392
|
-
fri: "星期五",
|
|
393
|
-
sat: "星期六"
|
|
394
|
-
},
|
|
395
|
-
months: {
|
|
396
|
-
jan: "一月",
|
|
397
|
-
feb: "二月",
|
|
398
|
-
mar: "三月",
|
|
399
|
-
apr: "四月",
|
|
400
|
-
may: "五月",
|
|
401
|
-
jun: "六月",
|
|
402
|
-
jul: "七月",
|
|
403
|
-
aug: "八月",
|
|
404
|
-
sep: "九月",
|
|
405
|
-
oct: "十月",
|
|
406
|
-
nov: "十一月",
|
|
407
|
-
dec: "十二月"
|
|
408
|
-
}
|
|
409
|
-
},
|
|
410
|
-
input: { characters: "{count} / {max} 个字符" },
|
|
411
|
-
inputNumber: {
|
|
412
|
-
decrease: "减少数值",
|
|
413
|
-
increase: "增加数值"
|
|
414
|
-
},
|
|
415
|
-
select: {
|
|
416
|
-
loading: "加载中",
|
|
417
|
-
noMatch: "无匹配数据",
|
|
418
|
-
noData: "无数据",
|
|
419
|
-
placeholder: "请选择"
|
|
420
|
-
},
|
|
421
|
-
mention: { loading: "加载中" },
|
|
422
|
-
dropdown: { toggleDropdown: "切换下拉选项" },
|
|
423
|
-
cascader: {
|
|
424
|
-
noMatch: "无匹配数据",
|
|
425
|
-
loading: "加载中",
|
|
426
|
-
placeholder: "请选择",
|
|
427
|
-
noData: "暂无数据"
|
|
428
|
-
},
|
|
429
|
-
pagination: {
|
|
430
|
-
goto: "前往",
|
|
431
|
-
pagesize: "条/页",
|
|
432
|
-
total: "共 {total} 条",
|
|
433
|
-
pageClassifier: "页",
|
|
434
|
-
page: "页",
|
|
435
|
-
prev: "上一页",
|
|
436
|
-
next: "下一页",
|
|
437
|
-
currentPage: "第 {pager} 页",
|
|
438
|
-
prevPages: "向前 {pager} 页",
|
|
439
|
-
nextPages: "向后 {pager} 页",
|
|
440
|
-
deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
|
|
441
|
-
},
|
|
442
|
-
dialog: { close: "关闭此对话框" },
|
|
443
|
-
drawer: { close: "关闭此对话框" },
|
|
444
|
-
messagebox: {
|
|
445
|
-
title: "提示",
|
|
446
|
-
confirm: "确定",
|
|
447
|
-
cancel: "取消",
|
|
448
|
-
error: "输入的数据不合法!",
|
|
449
|
-
close: "关闭此对话框"
|
|
450
|
-
},
|
|
451
|
-
upload: {
|
|
452
|
-
deleteTip: "按 Delete 键可删除",
|
|
453
|
-
delete: "删除",
|
|
454
|
-
preview: "查看图片",
|
|
455
|
-
continue: "继续上传"
|
|
456
|
-
},
|
|
457
|
-
slider: {
|
|
458
|
-
defaultLabel: "滑块介于 {min} 至 {max}",
|
|
459
|
-
defaultRangeStartLabel: "选择起始值",
|
|
460
|
-
defaultRangeEndLabel: "选择结束值"
|
|
461
|
-
},
|
|
462
|
-
table: {
|
|
463
|
-
emptyText: "暂无数据",
|
|
464
|
-
confirmFilter: "筛选",
|
|
465
|
-
resetFilter: "重置",
|
|
466
|
-
clearFilter: "全部",
|
|
467
|
-
sumText: "合计",
|
|
468
|
-
selectAllLabel: "选择所有行",
|
|
469
|
-
selectRowLabel: "选择当前行",
|
|
470
|
-
expandRowLabel: "展开当前行",
|
|
471
|
-
collapseRowLabel: "收起当前行",
|
|
472
|
-
sortLabel: "按 {column} 排序",
|
|
473
|
-
filterLabel: "按 {column} 过滤"
|
|
474
|
-
},
|
|
475
|
-
tag: { close: "关闭此标签" },
|
|
476
|
-
tour: {
|
|
477
|
-
next: "下一步",
|
|
478
|
-
previous: "上一步",
|
|
479
|
-
finish: "结束导览",
|
|
480
|
-
close: "关闭此对话框"
|
|
481
|
-
},
|
|
482
|
-
tree: { emptyText: "暂无数据" },
|
|
483
|
-
transfer: {
|
|
484
|
-
noMatch: "无匹配数据",
|
|
485
|
-
noData: "无数据",
|
|
486
|
-
titles: ["列表 1", "列表 2"],
|
|
487
|
-
filterPlaceholder: "请输入搜索内容",
|
|
488
|
-
noCheckedFormat: "共 {total} 项",
|
|
489
|
-
hasCheckedFormat: "已选 {checked}/{total} 项"
|
|
490
|
-
},
|
|
491
|
-
image: { error: "加载失败" },
|
|
492
|
-
pageHeader: { title: "返回" },
|
|
493
|
-
popconfirm: {
|
|
494
|
-
confirmButtonText: "确定",
|
|
495
|
-
cancelButtonText: "取消"
|
|
496
|
-
},
|
|
497
|
-
carousel: {
|
|
498
|
-
leftArrow: "上一张幻灯片",
|
|
499
|
-
rightArrow: "下一张幻灯片",
|
|
500
|
-
indicator: "幻灯片切换至索引 {index}"
|
|
501
|
-
},
|
|
502
|
-
inputOTP: {
|
|
503
|
-
groupLabel: "一次性密码输入框",
|
|
504
|
-
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
}, Pt = /* @__PURE__ */ O({
|
|
508
|
-
name: "TProvider",
|
|
509
|
-
__name: "Provider",
|
|
510
|
-
setup(t) {
|
|
511
|
-
let n = { table: {
|
|
512
|
-
expandIcon: (t) => t($, {
|
|
513
|
-
shape: "circle",
|
|
514
|
-
variant: "text"
|
|
515
|
-
}, { icon: () => t(e, { icon: "ph:caret-right-bold" }) }),
|
|
516
|
-
sortIcon: (t) => t($, {
|
|
517
|
-
shape: "circle",
|
|
518
|
-
size: "small",
|
|
519
|
-
variant: "text"
|
|
520
|
-
}, { icon: () => t(e, { icon: "heroicons-solid:sort-descending" }) }),
|
|
521
|
-
treeExpandAndFoldIcon: (t, { type: n }) => t($, {
|
|
522
|
-
shape: "circle",
|
|
523
|
-
variant: "text"
|
|
524
|
-
}, { icon: () => t(e, { icon: `ph:caret-${n === "expand" ? "right" : "down"}-bold` }) })
|
|
525
|
-
} };
|
|
526
|
-
return (e, t) => (F(), C(B(_t), {
|
|
527
|
-
"empty-values": [""],
|
|
528
|
-
locale: B(Nt),
|
|
529
|
-
"value-on-clear": "",
|
|
530
|
-
"z-index": 5500
|
|
531
|
-
}, {
|
|
532
|
-
default: H(() => [D(B(Ve), { "global-config": n }, {
|
|
533
|
-
default: H(() => [Te(e.$slots, "default")]),
|
|
534
|
-
_: 3
|
|
535
|
-
})]),
|
|
536
|
-
_: 3
|
|
537
|
-
}, 8, ["locale"]));
|
|
538
|
-
}
|
|
539
|
-
}), Ft = /* @__PURE__ */ function(e) {
|
|
503
|
+
}), Pt = /* @__PURE__ */ function(e) {
|
|
540
504
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
541
|
-
}(
|
|
542
|
-
function
|
|
543
|
-
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 } =
|
|
505
|
+
}(Pt || {}), Ft = /* @__PURE__ */ new Set();
|
|
506
|
+
function It(e, t, n) {
|
|
507
|
+
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 } = rt(a, {
|
|
544
508
|
controls: !0,
|
|
545
509
|
initialValue: !0
|
|
546
510
|
}), c = {
|
|
@@ -561,33 +525,33 @@ function Lt(e, t, n) {
|
|
|
561
525
|
placement: "center",
|
|
562
526
|
width: "fit-content",
|
|
563
527
|
...t ?? {},
|
|
564
|
-
body: () => A(
|
|
528
|
+
body: () => A(jn, {}, { default: () => i.value })
|
|
565
529
|
}, l, u = {
|
|
566
530
|
...c,
|
|
567
531
|
onClosed: () => {
|
|
568
|
-
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(),
|
|
532
|
+
a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(), Ft.delete(l);
|
|
569
533
|
}
|
|
570
534
|
};
|
|
571
535
|
delete u.closeWhenCloseAll;
|
|
572
536
|
let d = r();
|
|
573
|
-
return l = e === void 0 ?
|
|
537
|
+
return l = e === void 0 ? Re(u, n ?? d) : Re[e](u, n ?? d), c.closeWhenCloseAll && Ft.add(l), l;
|
|
574
538
|
}
|
|
575
|
-
var
|
|
576
|
-
return
|
|
539
|
+
var Lt = function(...e) {
|
|
540
|
+
return It(void 0, ...e);
|
|
577
541
|
};
|
|
578
|
-
Object.values(
|
|
579
|
-
|
|
580
|
-
|
|
542
|
+
Object.values(Pt).forEach((e) => {
|
|
543
|
+
Lt[e] = e === "closeAll" ? () => {
|
|
544
|
+
Ft.forEach((e) => {
|
|
581
545
|
e.hide();
|
|
582
546
|
});
|
|
583
|
-
} : (...t) =>
|
|
547
|
+
} : (...t) => It(e, ...t);
|
|
584
548
|
});
|
|
585
549
|
//#endregion
|
|
586
550
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
587
|
-
var
|
|
551
|
+
var Rt = (e, t) => {
|
|
588
552
|
let n = { ...typeof e == "string" ? {} : e };
|
|
589
553
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
590
|
-
let a =
|
|
554
|
+
let a = Lt(typeof e == "string" ? {
|
|
591
555
|
body: e,
|
|
592
556
|
onConfirm: () => {
|
|
593
557
|
a.hide(), r();
|
|
@@ -610,81 +574,81 @@ var zt = (e, t) => {
|
|
|
610
574
|
}
|
|
611
575
|
}), t);
|
|
612
576
|
});
|
|
613
|
-
},
|
|
614
|
-
function
|
|
577
|
+
}, zt = /* @__PURE__ */ new Map();
|
|
578
|
+
function Bt(e) {
|
|
615
579
|
let t = Y.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
616
580
|
...e,
|
|
617
581
|
label: e.userName,
|
|
618
582
|
value: e.userId
|
|
619
583
|
})));
|
|
620
584
|
e.forEach((e) => {
|
|
621
|
-
|
|
585
|
+
zt.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
622
586
|
});
|
|
623
587
|
}
|
|
624
|
-
var
|
|
625
|
-
function
|
|
626
|
-
return
|
|
588
|
+
var Vt = [];
|
|
589
|
+
function Ht(e) {
|
|
590
|
+
return Vt.includes(e) || Vt.push(e), new Promise((t) => {
|
|
627
591
|
setTimeout(() => {
|
|
628
|
-
let n =
|
|
629
|
-
n.length > 0 &&
|
|
592
|
+
let n = Vt.filter((e) => !zt.has(e));
|
|
593
|
+
n.length > 0 && Bt(n), Vt.length = 0, zt.get(e).then((e) => {
|
|
630
594
|
t(e);
|
|
631
595
|
});
|
|
632
596
|
});
|
|
633
597
|
});
|
|
634
598
|
}
|
|
635
599
|
var K = /* @__PURE__ */ new Map();
|
|
636
|
-
function
|
|
637
|
-
|
|
600
|
+
function Ut() {
|
|
601
|
+
Vt.length = 0, zt.clear(), K.clear();
|
|
638
602
|
}
|
|
639
|
-
function
|
|
640
|
-
|
|
603
|
+
function Wt(e) {
|
|
604
|
+
zt.delete(e), K.has(e) && Ht(e).then((t) => {
|
|
641
605
|
K.get(e).value = t;
|
|
642
606
|
});
|
|
643
607
|
}
|
|
644
|
-
function
|
|
608
|
+
function Gt(e) {
|
|
645
609
|
let t;
|
|
646
|
-
return K.has(e) ? t = K.get(e) : (t = I(null), K.set(e, t),
|
|
610
|
+
return K.has(e) ? t = K.get(e) : (t = I(null), K.set(e, t), Ht(e).then((e) => {
|
|
647
611
|
t.value = e;
|
|
648
612
|
})), t;
|
|
649
613
|
}
|
|
650
614
|
//#endregion
|
|
651
615
|
//#region ../../packages/dlzn-ui/store/modules/login.ts
|
|
652
|
-
function
|
|
616
|
+
function Kt(e) {
|
|
653
617
|
return Y.Post("login", e, { meta: {
|
|
654
618
|
useLoading: "登录中...",
|
|
655
619
|
useToken: !1
|
|
656
620
|
} });
|
|
657
621
|
}
|
|
658
|
-
function
|
|
622
|
+
function qt() {
|
|
659
623
|
return Y.Post("logout", void 0, { meta: {
|
|
660
624
|
useLoading: "退出登录中...",
|
|
661
625
|
useSuccessMsg: !0
|
|
662
626
|
} });
|
|
663
627
|
}
|
|
664
|
-
var
|
|
665
|
-
let e = I(""), t = U(), n =
|
|
628
|
+
var Jt = lt("login", () => {
|
|
629
|
+
let e = I(""), t = U(), n = ft();
|
|
666
630
|
async function r(t) {
|
|
667
|
-
let n = await
|
|
631
|
+
let n = await Kt(t);
|
|
668
632
|
e.value = n.token, await Q().getUserInfo();
|
|
669
633
|
}
|
|
670
634
|
function i() {
|
|
671
|
-
e.value = "", u().clear(),
|
|
635
|
+
e.value = "", u().clear(), At().clear(), Q().clear(), dn(), Ut(), ne();
|
|
672
636
|
}
|
|
673
637
|
V(() => t.name, () => {
|
|
674
638
|
t.name === "Login" && i();
|
|
675
639
|
});
|
|
676
640
|
async function a() {
|
|
677
|
-
await
|
|
641
|
+
await qt(), await n.push({ name: "Login" }), i();
|
|
678
642
|
}
|
|
679
643
|
return {
|
|
680
644
|
login: r,
|
|
681
645
|
logout: a,
|
|
682
646
|
token: e
|
|
683
647
|
};
|
|
684
|
-
}, { persist: { pick: ["token"] } }),
|
|
648
|
+
}, { persist: { pick: ["token"] } }), Yt = { class: "flex items-center justify-between" }, Xt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
685
649
|
__name: "Header",
|
|
686
650
|
setup(t) {
|
|
687
|
-
let n = U(), r =
|
|
651
|
+
let n = U(), r = ft(), i = Q(), a = W(), o = G();
|
|
688
652
|
function s(e) {
|
|
689
653
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
690
654
|
}
|
|
@@ -693,7 +657,7 @@ var Yt = ct("login", () => {
|
|
|
693
657
|
}
|
|
694
658
|
let u = async (e) => {
|
|
695
659
|
let { value: t } = e;
|
|
696
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await
|
|
660
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await Rt("确定要退出登录吗?"), Jt().logout());
|
|
697
661
|
}, d = l.isMd;
|
|
698
662
|
function f(e, t) {
|
|
699
663
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
@@ -717,8 +681,8 @@ var Yt = ct("login", () => {
|
|
|
717
681
|
}
|
|
718
682
|
}), ee(e, i);
|
|
719
683
|
}
|
|
720
|
-
return (t, r) => (F(), C(B(
|
|
721
|
-
default: H(() => [D(B(
|
|
684
|
+
return (t, r) => (F(), C(B(Ge), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
685
|
+
default: H(() => [D(B(We), {
|
|
722
686
|
"expand-type": "popup",
|
|
723
687
|
value: B(n).name,
|
|
724
688
|
onChange: s
|
|
@@ -733,7 +697,7 @@ var Yt = ct("login", () => {
|
|
|
733
697
|
default: H(() => [D(B(e), { icon: "lineicons:menu-hamburger-1" })]),
|
|
734
698
|
_: 1
|
|
735
699
|
})]),
|
|
736
|
-
operations: H(() => [D(B(
|
|
700
|
+
operations: H(() => [D(B(Ve), {
|
|
737
701
|
options: [{
|
|
738
702
|
content: "个人中心",
|
|
739
703
|
value: "profile"
|
|
@@ -769,12 +733,12 @@ var Yt = ct("login", () => {
|
|
|
769
733
|
}))]),
|
|
770
734
|
_: 1
|
|
771
735
|
})]),
|
|
772
|
-
default: H(() => [(F(!0), T(pe, null, L(B(o).recentRouters, (t) => (F(), C(B(
|
|
736
|
+
default: H(() => [(F(!0), T(pe, null, L(B(o).recentRouters, (t) => (F(), C(B(Ye), {
|
|
773
737
|
key: t.name,
|
|
774
738
|
value: t.name,
|
|
775
739
|
onContextmenu: (e) => f(e, t.name)
|
|
776
740
|
}, {
|
|
777
|
-
default: H(() => [he("div",
|
|
741
|
+
default: H(() => [he("div", Yt, [he("span", null, z(B(J)(t.name).meta.title), 1), B(o).recentRouters.length > 1 ? (F(), C(B($), {
|
|
778
742
|
key: 0,
|
|
779
743
|
class: "ml-1!",
|
|
780
744
|
shape: "square",
|
|
@@ -795,10 +759,10 @@ var Yt = ct("login", () => {
|
|
|
795
759
|
_: 1
|
|
796
760
|
}));
|
|
797
761
|
}
|
|
798
|
-
}), [["__scopeId", "data-v-cdf58b1a"]]),
|
|
799
|
-
__name: "
|
|
762
|
+
}), [["__scopeId", "data-v-cdf58b1a"]]), Zt = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
763
|
+
__name: "Entry",
|
|
800
764
|
setup(e) {
|
|
801
|
-
let t = U(), n = W(), r = G(), i = u(), a = S(() => r.recentRouters.filter((e) => J(e.name).meta.noCache === !1).map((e) => e.name)), o = Ae("breadcrumb"), s = S(() => (o.value?.items.length ?? 0) > 0), d = S(() => l.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), f = l.isMd, p = Ae("contentRef"), { height: m } =
|
|
765
|
+
let t = U(), n = W(), r = G(), i = u(), a = S(() => r.recentRouters.filter((e) => J(e.name).meta.noCache === !1).map((e) => e.name)), o = Ae("breadcrumb"), s = S(() => (o.value?.items.length ?? 0) > 0), d = S(() => l.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), f = l.isMd, p = Ae("contentRef"), { height: m } = nt(p);
|
|
802
766
|
function h({ size: e }) {
|
|
803
767
|
n.drawerSize = e;
|
|
804
768
|
}
|
|
@@ -808,13 +772,13 @@ var Yt = ct("login", () => {
|
|
|
808
772
|
return ee.value ? (F(), C(r, { key: 0 }, {
|
|
809
773
|
default: H(({ Component: e }) => [(F(), C(R(e)))]),
|
|
810
774
|
_: 1
|
|
811
|
-
})) : (F(), C(B(
|
|
775
|
+
})) : (F(), C(B(qe), {
|
|
812
776
|
key: 1,
|
|
813
777
|
class: "h-full"
|
|
814
778
|
}, {
|
|
815
779
|
default: H(() => [
|
|
816
|
-
D(
|
|
817
|
-
D(B(
|
|
780
|
+
D(Xt),
|
|
781
|
+
D(B(ze), {
|
|
818
782
|
visible: B(n).drawerOpen,
|
|
819
783
|
"onUpdate:visible": t[0] ||= (e) => B(n).drawerOpen = e,
|
|
820
784
|
footer: !1,
|
|
@@ -828,7 +792,7 @@ var Yt = ct("login", () => {
|
|
|
828
792
|
},
|
|
829
793
|
onSizeDragEnd: h
|
|
830
794
|
}, {
|
|
831
|
-
default: H(() => [D(
|
|
795
|
+
default: H(() => [D(Mt, { class: "no_drawer_body_padding" })]),
|
|
832
796
|
_: 1
|
|
833
797
|
}, 8, [
|
|
834
798
|
"visible",
|
|
@@ -836,7 +800,7 @@ var Yt = ct("login", () => {
|
|
|
836
800
|
"show-overlay",
|
|
837
801
|
"size"
|
|
838
802
|
]),
|
|
839
|
-
D(B(
|
|
803
|
+
D(B(Le), {
|
|
840
804
|
ref_key: "contentRef",
|
|
841
805
|
ref: p,
|
|
842
806
|
class: "overflow-hidden"
|
|
@@ -852,7 +816,7 @@ var Yt = ct("login", () => {
|
|
|
852
816
|
minHeight: `${Math.max(B(m), 438)}px`
|
|
853
817
|
}
|
|
854
818
|
}, {
|
|
855
|
-
default: H(() => [D(
|
|
819
|
+
default: H(() => [D(Nt, { ref: "breadcrumb" }, null, 512), D(r, null, {
|
|
856
820
|
default: H(({ Component: e }) => [(F(), C(me, {
|
|
857
821
|
exclude: B(i).excludeKPname,
|
|
858
822
|
include: a.value
|
|
@@ -868,8 +832,8 @@ var Yt = ct("login", () => {
|
|
|
868
832
|
}));
|
|
869
833
|
};
|
|
870
834
|
}
|
|
871
|
-
}), [["__scopeId", "data-v-
|
|
872
|
-
function
|
|
835
|
+
}), [["__scopeId", "data-v-de5cbc76"]]), Qt = /* @__PURE__ */ new Set();
|
|
836
|
+
function $t(e, t) {
|
|
873
837
|
let n = S(() => typeof e.body == "function" ? e.body(A) : e.body), i = {
|
|
874
838
|
attach: "#app",
|
|
875
839
|
closeOnEscKeydown: !1,
|
|
@@ -880,26 +844,26 @@ function en(e, t) {
|
|
|
880
844
|
lazy: !0,
|
|
881
845
|
sizeDraggable: !0,
|
|
882
846
|
...e ?? {},
|
|
883
|
-
body: () => A(
|
|
847
|
+
body: () => A(jn, {}, { default: () => n.value })
|
|
884
848
|
}, a, o = {
|
|
885
849
|
...i,
|
|
886
850
|
onClose: (e) => {
|
|
887
|
-
i.onClose?.(e),
|
|
851
|
+
i.onClose?.(e), Qt.delete(a);
|
|
888
852
|
}
|
|
889
853
|
};
|
|
890
|
-
return delete o.closeWhenCloseAll, a =
|
|
854
|
+
return delete o.closeWhenCloseAll, a = Be(o, t ?? r()), i.closeWhenCloseAll && Qt.add(a), a;
|
|
891
855
|
}
|
|
892
|
-
var
|
|
893
|
-
return
|
|
856
|
+
var en = function(...e) {
|
|
857
|
+
return $t(...e);
|
|
894
858
|
};
|
|
895
|
-
|
|
896
|
-
|
|
859
|
+
en.closeAll = () => {
|
|
860
|
+
Qt.forEach((e) => {
|
|
897
861
|
e.hide?.();
|
|
898
862
|
});
|
|
899
863
|
};
|
|
900
864
|
//#endregion
|
|
901
865
|
//#region ../../packages/dlzn-ui/router/index.ts
|
|
902
|
-
function
|
|
866
|
+
function tn() {
|
|
903
867
|
return {
|
|
904
868
|
children: [{
|
|
905
869
|
children: [{
|
|
@@ -927,15 +891,15 @@ function nn() {
|
|
|
927
891
|
name: "Home",
|
|
928
892
|
path: "home"
|
|
929
893
|
}],
|
|
930
|
-
component:
|
|
894
|
+
component: Zt,
|
|
931
895
|
name: "Index",
|
|
932
896
|
path: "/"
|
|
933
897
|
};
|
|
934
898
|
}
|
|
935
|
-
var q =
|
|
936
|
-
history:
|
|
899
|
+
var q = ut({
|
|
900
|
+
history: dt(VITE_BASE_URL),
|
|
937
901
|
routes: [
|
|
938
|
-
|
|
902
|
+
tn(),
|
|
939
903
|
{
|
|
940
904
|
component: s["./Login.vue"],
|
|
941
905
|
meta: {
|
|
@@ -967,12 +931,12 @@ var q = lt({
|
|
|
967
931
|
strict: !0
|
|
968
932
|
});
|
|
969
933
|
q.beforeEach(async (e) => {
|
|
970
|
-
if (e.query._fromLeftTree === "true" && u().add(e.name), e.name !== "Login") return
|
|
934
|
+
if (e.query._fromLeftTree === "true" && u().add(e.name), e.name !== "Login") return Jt().token === "" ? { name: "Login" } : At().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), q.resolve({
|
|
971
935
|
path: e.path,
|
|
972
936
|
query: e.query
|
|
973
937
|
}));
|
|
974
938
|
}), q.afterEach((e, t, n) => {
|
|
975
|
-
|
|
939
|
+
Lt.closeAll(), en.closeAll();
|
|
976
940
|
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: s } = r;
|
|
977
941
|
document.title = s || W().appInfo.appName;
|
|
978
942
|
let c = G();
|
|
@@ -990,22 +954,22 @@ function J(e) {
|
|
|
990
954
|
}
|
|
991
955
|
//#endregion
|
|
992
956
|
//#region ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
993
|
-
var
|
|
994
|
-
function
|
|
957
|
+
var nn = 15e3, rn = "网络错误,请稍后再试";
|
|
958
|
+
function an(e, t = !0) {
|
|
995
959
|
let n = {};
|
|
996
960
|
return Object.keys(e).forEach((r) => {
|
|
997
961
|
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !_(e[r]))) && (n[r] = e[r]);
|
|
998
962
|
}), n;
|
|
999
963
|
}
|
|
1000
|
-
function
|
|
1001
|
-
return new URLSearchParams(
|
|
964
|
+
function on(e, t = !0) {
|
|
965
|
+
return new URLSearchParams(an(e, t)).toString();
|
|
1002
966
|
}
|
|
1003
|
-
var Y =
|
|
967
|
+
var Y = mt({
|
|
1004
968
|
baseURL: VITE_BASE_URL,
|
|
1005
969
|
beforeRequest(e) {
|
|
1006
970
|
e.config.credentials = e.config.credentials ?? "omit";
|
|
1007
971
|
let [t, ...n] = VITE_API_PREFIX_ARRAY;
|
|
1008
|
-
!e.url.startsWith("http") && !n.some((t) =>
|
|
972
|
+
!e.url.startsWith("http") && !n.some((t) => _t.join("/", e.url).startsWith(_t.join("/", t, "/"))) && (e.url = _t.join(t, e.url)), e.meta = {
|
|
1009
973
|
use600Alert: !0,
|
|
1010
974
|
useDataResult: !0,
|
|
1011
975
|
useDownload: !1,
|
|
@@ -1022,10 +986,10 @@ var Y = pt({
|
|
|
1022
986
|
useToken: !0,
|
|
1023
987
|
...e.meta ?? {}
|
|
1024
988
|
};
|
|
1025
|
-
let r =
|
|
989
|
+
let r = Jt(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: c, useLoading: l, useResponseBlob: u, useToken: d } = e.meta;
|
|
1026
990
|
c || W().requestActive(), d && (r.token ? e.config.headers.Authorization = r.token : e.abort()), l !== !1 && i.show(l === !0 ? void 0 : l);
|
|
1027
991
|
let f = e.config.params;
|
|
1028
|
-
if (typeof f != "string" && (e.config.params =
|
|
992
|
+
if (typeof f != "string" && (e.config.params = on(f, o)), a && ct(e.data)) {
|
|
1029
993
|
let t = {}, n = e.data;
|
|
1030
994
|
Object.keys(n).forEach((e) => {
|
|
1031
995
|
_(n[e]) || (t[e] = n[e]);
|
|
@@ -1037,10 +1001,10 @@ var Y = pt({
|
|
|
1037
1001
|
t.append(n, e.data[n]);
|
|
1038
1002
|
}), e.data = t;
|
|
1039
1003
|
}
|
|
1040
|
-
e.config.timeout ===
|
|
1004
|
+
e.config.timeout === nn && (s || e.data instanceof FormData || u) && (e.config.timeout = 0);
|
|
1041
1005
|
},
|
|
1042
1006
|
cacheFor: null,
|
|
1043
|
-
requestAdapter:
|
|
1007
|
+
requestAdapter: ht(),
|
|
1044
1008
|
responded: {
|
|
1045
1009
|
onComplete: (e) => {
|
|
1046
1010
|
e.meta.useLoading !== !1 && i.hide();
|
|
@@ -1052,7 +1016,7 @@ var Y = pt({
|
|
|
1052
1016
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1053
1017
|
if (t.toLowerCase().includes("timeout")) return n && o.error("请求超时"), Promise.reject(e);
|
|
1054
1018
|
}
|
|
1055
|
-
return n && o.error(
|
|
1019
|
+
return n && o.error(rn), Promise.reject(e);
|
|
1056
1020
|
},
|
|
1057
1021
|
onSuccess: async (e, t) => {
|
|
1058
1022
|
if (typeof e == "string") return e;
|
|
@@ -1063,7 +1027,7 @@ var Y = pt({
|
|
|
1063
1027
|
403: "当前操作没有权限",
|
|
1064
1028
|
404: "访问资源不存在",
|
|
1065
1029
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1066
|
-
}[m] ??
|
|
1030
|
+
}[m] ?? rn;
|
|
1067
1031
|
o.error(e);
|
|
1068
1032
|
}
|
|
1069
1033
|
return Promise.reject(e);
|
|
@@ -1108,7 +1072,7 @@ var Y = pt({
|
|
|
1108
1072
|
return Promise.reject(h);
|
|
1109
1073
|
}
|
|
1110
1074
|
{
|
|
1111
|
-
let i =
|
|
1075
|
+
let i = pt.alovaResCodeSuccessCb?.({
|
|
1112
1076
|
code: e,
|
|
1113
1077
|
data: t,
|
|
1114
1078
|
msg: n
|
|
@@ -1120,10 +1084,10 @@ var Y = pt({
|
|
|
1120
1084
|
}
|
|
1121
1085
|
},
|
|
1122
1086
|
shareRequest: !1,
|
|
1123
|
-
statesHook:
|
|
1124
|
-
timeout:
|
|
1125
|
-
}),
|
|
1126
|
-
function
|
|
1087
|
+
statesHook: gt,
|
|
1088
|
+
timeout: nn
|
|
1089
|
+
}), sn = /* @__PURE__ */ new Map();
|
|
1090
|
+
function cn(e) {
|
|
1127
1091
|
let t = Y.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
1128
1092
|
cssClass: e.cssClass,
|
|
1129
1093
|
dictType: e.dictType,
|
|
@@ -1132,25 +1096,25 @@ function ln(e) {
|
|
|
1132
1096
|
value: e.dictValue
|
|
1133
1097
|
})));
|
|
1134
1098
|
e.forEach((e) => {
|
|
1135
|
-
|
|
1099
|
+
sn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
1136
1100
|
});
|
|
1137
1101
|
}
|
|
1138
|
-
var
|
|
1139
|
-
function
|
|
1140
|
-
return
|
|
1102
|
+
var ln = [];
|
|
1103
|
+
function un(e) {
|
|
1104
|
+
return ln.includes(e) || ln.push(e), new Promise((t) => {
|
|
1141
1105
|
setTimeout(() => {
|
|
1142
|
-
let n =
|
|
1143
|
-
n.length > 0 &&
|
|
1106
|
+
let n = ln.filter((e) => !sn.has(e));
|
|
1107
|
+
n.length > 0 && cn(n), ln.length = 0, sn.get(e).then((e) => {
|
|
1144
1108
|
t(e);
|
|
1145
1109
|
});
|
|
1146
1110
|
});
|
|
1147
1111
|
});
|
|
1148
1112
|
}
|
|
1149
1113
|
var X = /* @__PURE__ */ new Map();
|
|
1150
|
-
function
|
|
1151
|
-
|
|
1114
|
+
function dn() {
|
|
1115
|
+
ln.length = 0, sn.clear(), X.clear();
|
|
1152
1116
|
}
|
|
1153
|
-
function
|
|
1117
|
+
function fn(e, t) {
|
|
1154
1118
|
let n = Z(e);
|
|
1155
1119
|
return S(() => {
|
|
1156
1120
|
if (t === void 0) return n.value.map((e) => e.label);
|
|
@@ -1165,18 +1129,18 @@ function pn(e, t) {
|
|
|
1165
1129
|
}
|
|
1166
1130
|
function Z(e, t) {
|
|
1167
1131
|
let n;
|
|
1168
|
-
return X.has(e) ? n = X.get(e) : (n = I([]), X.set(e, n),
|
|
1132
|
+
return X.has(e) ? n = X.get(e) : (n = I([]), X.set(e, n), un(e).then((e) => {
|
|
1169
1133
|
n.value = e;
|
|
1170
1134
|
})), S(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1171
1135
|
}
|
|
1172
|
-
function
|
|
1173
|
-
|
|
1136
|
+
function pn(e) {
|
|
1137
|
+
sn.delete(e), X.has(e) && un(e).then((t) => {
|
|
1174
1138
|
X.get(e).value = t;
|
|
1175
1139
|
});
|
|
1176
1140
|
}
|
|
1177
1141
|
//#endregion
|
|
1178
1142
|
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
1179
|
-
var
|
|
1143
|
+
var mn = /* @__PURE__ */ O({
|
|
1180
1144
|
inheritAttrs: !1,
|
|
1181
1145
|
name: "TCheckboxGroup",
|
|
1182
1146
|
__name: "checkbox-group",
|
|
@@ -1203,7 +1167,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1203
1167
|
},
|
|
1204
1168
|
emits: ["update:modelValue"],
|
|
1205
1169
|
setup(e, { emit: t }) {
|
|
1206
|
-
let r = e, i = t, a =
|
|
1170
|
+
let r = e, i = t, a = Fe, o = k();
|
|
1207
1171
|
function s(e) {
|
|
1208
1172
|
o.exposed = e ?? {};
|
|
1209
1173
|
}
|
|
@@ -1237,7 +1201,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1237
1201
|
ref: s
|
|
1238
1202
|
}), e.$slots))));
|
|
1239
1203
|
}
|
|
1240
|
-
}),
|
|
1204
|
+
}), hn = /* @__PURE__ */ O({
|
|
1241
1205
|
inheritAttrs: !1,
|
|
1242
1206
|
__name: "cron",
|
|
1243
1207
|
props: /*@__PURE__*/ j({
|
|
@@ -1296,7 +1260,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1296
1260
|
default: "cron",
|
|
1297
1261
|
onClick: () => {
|
|
1298
1262
|
let i = I(null);
|
|
1299
|
-
|
|
1263
|
+
Rt({
|
|
1300
1264
|
body: () => A(_e(() => import("../components/cron/src/Picker.mjs")), {
|
|
1301
1265
|
disabled: e,
|
|
1302
1266
|
modelValue: n.modelValue,
|
|
@@ -1332,7 +1296,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1332
1296
|
}));
|
|
1333
1297
|
return (e, t) => (F(), C(B(ie), P(ve(u.value)), null, 16));
|
|
1334
1298
|
}
|
|
1335
|
-
}),
|
|
1299
|
+
}), gn = /* @__PURE__ */ O({
|
|
1336
1300
|
inheritAttrs: !1,
|
|
1337
1301
|
name: "TRadioGroup",
|
|
1338
1302
|
__name: "radio-group",
|
|
@@ -1362,7 +1326,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1362
1326
|
},
|
|
1363
1327
|
emits: ["update:modelValue"],
|
|
1364
1328
|
setup(e, { emit: t }) {
|
|
1365
|
-
let r = e, i = t, a =
|
|
1329
|
+
let r = e, i = t, a = Xe, o = k();
|
|
1366
1330
|
function s(e) {
|
|
1367
1331
|
o.exposed = e ?? {};
|
|
1368
1332
|
}
|
|
@@ -1390,7 +1354,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1390
1354
|
ref: s
|
|
1391
1355
|
}), e.$slots))));
|
|
1392
1356
|
}
|
|
1393
|
-
}),
|
|
1357
|
+
}), _n = {
|
|
1394
1358
|
clearable: !0,
|
|
1395
1359
|
disabled: void 0,
|
|
1396
1360
|
filterable: void 0,
|
|
@@ -1411,7 +1375,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1411
1375
|
}),
|
|
1412
1376
|
showArrow: !0,
|
|
1413
1377
|
showCheckAll: !1
|
|
1414
|
-
},
|
|
1378
|
+
}, vn = /* @__PURE__ */ O({
|
|
1415
1379
|
inheritAttrs: !1,
|
|
1416
1380
|
name: "TSelect",
|
|
1417
1381
|
__name: "select",
|
|
@@ -1475,9 +1439,9 @@ var hn = /* @__PURE__ */ O({
|
|
|
1475
1439
|
onPopupVisibleChange: { type: Function },
|
|
1476
1440
|
onRemove: { type: Function },
|
|
1477
1441
|
onSearch: { type: Function }
|
|
1478
|
-
},
|
|
1442
|
+
}, _n),
|
|
1479
1443
|
setup(e) {
|
|
1480
|
-
let t = e, r =
|
|
1444
|
+
let t = e, r = Ze, i = k();
|
|
1481
1445
|
function a(e) {
|
|
1482
1446
|
i.exposed = e ?? {};
|
|
1483
1447
|
}
|
|
@@ -1509,7 +1473,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1509
1473
|
}), e;
|
|
1510
1474
|
}), l = I(0);
|
|
1511
1475
|
Se(() => {
|
|
1512
|
-
|
|
1476
|
+
ot(i.exposed.$el, () => {
|
|
1513
1477
|
l.value = i.exposed.$el.offsetWidth;
|
|
1514
1478
|
}, { box: "border-box" });
|
|
1515
1479
|
});
|
|
@@ -1533,13 +1497,13 @@ var hn = /* @__PURE__ */ O({
|
|
|
1533
1497
|
})
|
|
1534
1498
|
},
|
|
1535
1499
|
ref: a
|
|
1536
|
-
})), f =
|
|
1500
|
+
})), f = Ke;
|
|
1537
1501
|
return (t, n) => e.adornment ? (F(), C(R(A(B(f), t.$attrs, {
|
|
1538
1502
|
...e.adornment,
|
|
1539
1503
|
default: () => A(B(r), d.value, t.$slots)
|
|
1540
1504
|
})), { key: 0 })) : (F(), C(R(A(B(r), M(t.$attrs, d.value), t.$slots)), { key: 1 }));
|
|
1541
1505
|
}
|
|
1542
|
-
}),
|
|
1506
|
+
}), yn = /* @__PURE__ */ O({
|
|
1543
1507
|
inheritAttrs: !1,
|
|
1544
1508
|
__name: "select-sys-user",
|
|
1545
1509
|
props: /*@__PURE__*/ j({
|
|
@@ -1592,7 +1556,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1592
1556
|
default: "选择用户",
|
|
1593
1557
|
onClick: () => {
|
|
1594
1558
|
let e = I(null);
|
|
1595
|
-
|
|
1559
|
+
Rt({
|
|
1596
1560
|
body: () => A(_e(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
1597
1561
|
max: n.max,
|
|
1598
1562
|
modelValue: n.modelValue,
|
|
@@ -1631,11 +1595,11 @@ var hn = /* @__PURE__ */ O({
|
|
|
1631
1595
|
ref: l
|
|
1632
1596
|
}));
|
|
1633
1597
|
return (e, t) => (F(), C(B(le), P(ve(u.value)), {
|
|
1634
|
-
tag: H(({ value: e }) => [E(z(B(
|
|
1598
|
+
tag: H(({ value: e }) => [E(z(B(Gt)(e).value?.userName), 1)]),
|
|
1635
1599
|
_: 1
|
|
1636
1600
|
}, 16));
|
|
1637
1601
|
}
|
|
1638
|
-
}),
|
|
1602
|
+
}), bn = {
|
|
1639
1603
|
checkable: !1,
|
|
1640
1604
|
disabled: void 0,
|
|
1641
1605
|
expandOnClickNode: void 0,
|
|
@@ -1653,7 +1617,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1653
1617
|
line: !0,
|
|
1654
1618
|
transition: !0,
|
|
1655
1619
|
valueMode: "all"
|
|
1656
|
-
},
|
|
1620
|
+
}, xn = /* @__PURE__ */ O({
|
|
1657
1621
|
inheritAttrs: !1,
|
|
1658
1622
|
name: "TTree",
|
|
1659
1623
|
__name: "tree",
|
|
@@ -1710,14 +1674,14 @@ var hn = /* @__PURE__ */ O({
|
|
|
1710
1674
|
onLoad: { type: Function },
|
|
1711
1675
|
onScroll: { type: Function },
|
|
1712
1676
|
treeStore: {}
|
|
1713
|
-
},
|
|
1677
|
+
}, bn),
|
|
1714
1678
|
setup(e, { expose: t }) {
|
|
1715
1679
|
let n = e, r = ke(), i = S(() => {
|
|
1716
1680
|
let e = { ...n };
|
|
1717
1681
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1718
1682
|
e[t] === void 0 && delete e[t];
|
|
1719
1683
|
}), e;
|
|
1720
|
-
}), a =
|
|
1684
|
+
}), a = Qe, o = k();
|
|
1721
1685
|
function s(e) {
|
|
1722
1686
|
o.exposed = e ?? {};
|
|
1723
1687
|
}
|
|
@@ -1726,7 +1690,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1726
1690
|
ref: s
|
|
1727
1691
|
}), e.$slots))));
|
|
1728
1692
|
}
|
|
1729
|
-
}),
|
|
1693
|
+
}), Sn = /* @__PURE__ */ O({
|
|
1730
1694
|
inheritAttrs: !1,
|
|
1731
1695
|
name: "TTreeSelect",
|
|
1732
1696
|
__name: "tree-select",
|
|
@@ -1799,21 +1763,21 @@ var hn = /* @__PURE__ */ O({
|
|
|
1799
1763
|
minCollapsedNum: 2,
|
|
1800
1764
|
...e.selectInputProps ?? {}
|
|
1801
1765
|
}, e.treeProps = {
|
|
1802
|
-
...
|
|
1766
|
+
...bn,
|
|
1803
1767
|
checkable: !!t.multiple,
|
|
1804
1768
|
expandOnClickNode: !!t.multiple,
|
|
1805
|
-
icon:
|
|
1769
|
+
icon: bn.icon(),
|
|
1806
1770
|
...e.treeProps ?? {}
|
|
1807
1771
|
}, Object.keys(e).forEach((t) => {
|
|
1808
1772
|
e[t] === void 0 && delete e[t];
|
|
1809
1773
|
}), e;
|
|
1810
|
-
}), i =
|
|
1774
|
+
}), i = $e, a = k();
|
|
1811
1775
|
function o(e) {
|
|
1812
1776
|
a.exposed = e ?? {};
|
|
1813
1777
|
}
|
|
1814
1778
|
let s = I(0);
|
|
1815
1779
|
return Se(() => {
|
|
1816
|
-
|
|
1780
|
+
ot(a.exposed.$el, () => {
|
|
1817
1781
|
s.value = a.exposed.$el.offsetWidth;
|
|
1818
1782
|
}, { box: "border-box" });
|
|
1819
1783
|
}), (e, t) => (F(), C(R(A(B(i), M(e.$attrs, {
|
|
@@ -1830,10 +1794,10 @@ var hn = /* @__PURE__ */ O({
|
|
|
1830
1794
|
}
|
|
1831
1795
|
}), e.$slots))));
|
|
1832
1796
|
}
|
|
1833
|
-
}),
|
|
1797
|
+
}), Cn = ".xlsx,.xls", wn = { class: "flex items-center" }, Tn = {
|
|
1834
1798
|
key: 1,
|
|
1835
1799
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1836
|
-
},
|
|
1800
|
+
}, En = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
1837
1801
|
inheritAttrs: !1,
|
|
1838
1802
|
name: "TUpload",
|
|
1839
1803
|
__name: "upload",
|
|
@@ -1842,7 +1806,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1842
1806
|
"onUpdate:modelValue": {},
|
|
1843
1807
|
requestMethod: {},
|
|
1844
1808
|
abridgeName: {},
|
|
1845
|
-
accept: { default:
|
|
1809
|
+
accept: { default: Cn },
|
|
1846
1810
|
allowUploadDuplicateFile: { type: Boolean },
|
|
1847
1811
|
autoUpload: { type: Boolean },
|
|
1848
1812
|
beforeAllFilesUpload: {},
|
|
@@ -1940,7 +1904,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1940
1904
|
return ["image", "image-flow"].includes(e.theme) && (e.accept = e.accept === ".xlsx,.xls" ? "image/*" : e.accept), Object.keys(e).forEach((t) => {
|
|
1941
1905
|
e[t] === void 0 && delete e[t];
|
|
1942
1906
|
}), delete e.downloadTemplate, e.theme === "file" && delete e.tips, e;
|
|
1943
|
-
}), o =
|
|
1907
|
+
}), o = et, s = k();
|
|
1944
1908
|
function c(e) {
|
|
1945
1909
|
s.exposed = e ?? {};
|
|
1946
1910
|
}
|
|
@@ -1953,7 +1917,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
1953
1917
|
fn: H((n) => [Te(t.$slots, e, P(ve(n)), void 0, !0)])
|
|
1954
1918
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
1955
1919
|
name: "trigger",
|
|
1956
|
-
fn: H(({ files: t }) => [he("div",
|
|
1920
|
+
fn: H(({ files: t }) => [he("div", wn, [
|
|
1957
1921
|
D(B($), { theme: "primary" }, {
|
|
1958
1922
|
default: H(() => [E(z(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
1959
1923
|
_: 2
|
|
@@ -1967,12 +1931,12 @@ var hn = /* @__PURE__ */ O({
|
|
|
1967
1931
|
default: H(() => [...s[0] ||= [E("下载模板", -1)]]),
|
|
1968
1932
|
_: 1
|
|
1969
1933
|
})) : w("v-if", !0),
|
|
1970
|
-
n.tips ? (F(), T("span",
|
|
1934
|
+
n.tips ? (F(), T("span", Tn, z(n.tips), 1)) : w("v-if", !0)
|
|
1971
1935
|
])]),
|
|
1972
1936
|
key: "0"
|
|
1973
1937
|
} : void 0]), 1024));
|
|
1974
1938
|
}
|
|
1975
|
-
}), [["__scopeId", "data-v-730cff70"]]),
|
|
1939
|
+
}), [["__scopeId", "data-v-730cff70"]]), Dn = /*#__PURE__*/ f(/* @__PURE__ */ O({
|
|
1976
1940
|
inheritAttrs: !1,
|
|
1977
1941
|
name: "TForm",
|
|
1978
1942
|
__name: "form",
|
|
@@ -2000,9 +1964,9 @@ var hn = /* @__PURE__ */ O({
|
|
|
2000
1964
|
onReset: { type: Function },
|
|
2001
1965
|
onSubmit: { type: Function },
|
|
2002
1966
|
onValidate: { type: Function }
|
|
2003
|
-
},
|
|
1967
|
+
}, bt),
|
|
2004
1968
|
setup(e, { expose: t }) {
|
|
2005
|
-
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: s = /* @__PURE__ */ new Map() } =
|
|
1969
|
+
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: s = /* @__PURE__ */ new Map() } = pt, c = k(), l = I(null), u = S(() => r.items.map((e) => {
|
|
2006
1970
|
if (typeof e.__others == "function") {
|
|
2007
1971
|
let t = {
|
|
2008
1972
|
...e,
|
|
@@ -2050,22 +2014,22 @@ var hn = /* @__PURE__ */ O({
|
|
|
2050
2014
|
});
|
|
2051
2015
|
let f = /* @__PURE__ */ new Map(), p = {
|
|
2052
2016
|
TCheckbox: a,
|
|
2053
|
-
TCheckboxGroup:
|
|
2054
|
-
TCron:
|
|
2017
|
+
TCheckboxGroup: mn,
|
|
2018
|
+
TCron: hn,
|
|
2055
2019
|
TDatePicker: ae,
|
|
2056
2020
|
TInput: ie,
|
|
2057
2021
|
TInputNumber: oe,
|
|
2058
|
-
TRadioGroup:
|
|
2022
|
+
TRadioGroup: gn,
|
|
2059
2023
|
TRangeInput: se,
|
|
2060
|
-
TSelect:
|
|
2061
|
-
TSelectSysUser:
|
|
2024
|
+
TSelect: vn,
|
|
2025
|
+
TSelectSysUser: yn,
|
|
2062
2026
|
TSlider: ue,
|
|
2063
2027
|
TSwitch: de,
|
|
2064
2028
|
TTagInput: le,
|
|
2065
2029
|
TTextarea: fe,
|
|
2066
|
-
TTree:
|
|
2067
|
-
TTreeSelect:
|
|
2068
|
-
TUpload:
|
|
2030
|
+
TTree: xn,
|
|
2031
|
+
TTreeSelect: Sn,
|
|
2032
|
+
TUpload: En
|
|
2069
2033
|
};
|
|
2070
2034
|
function m(e) {
|
|
2071
2035
|
return typeof e == "string" ? s.has(e) ? (f.has(e) || f.set(e, _e(s.get(e))), f.get(e)) : p[e] : ie;
|
|
@@ -2116,7 +2080,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
2116
2080
|
return delete e.items, delete e.msgErrorWhenValidate, delete e.autoLabelWidth, Object.keys(e).forEach((t) => {
|
|
2117
2081
|
e[t] === void 0 && delete e[t];
|
|
2118
2082
|
}), e;
|
|
2119
|
-
}), g =
|
|
2083
|
+
}), g = He, v = () => {
|
|
2120
2084
|
let e = { ...r.data };
|
|
2121
2085
|
return u.value.forEach((t) => {
|
|
2122
2086
|
t.show === !1 && delete e[t.model];
|
|
@@ -2173,14 +2137,14 @@ var hn = /* @__PURE__ */ O({
|
|
|
2173
2137
|
}
|
|
2174
2138
|
let b = De();
|
|
2175
2139
|
Se(() => {
|
|
2176
|
-
b.value = c.exposed.$el.getElementsByClassName("t-form__label"), x(),
|
|
2140
|
+
b.value = c.exposed.$el.getElementsByClassName("t-form__label"), x(), at(c.exposed.$el, () => {
|
|
2177
2141
|
x();
|
|
2178
2142
|
}, {
|
|
2179
2143
|
attributeFilter: ["class"],
|
|
2180
2144
|
characterData: !0,
|
|
2181
2145
|
childList: !0,
|
|
2182
2146
|
subtree: !0
|
|
2183
|
-
}),
|
|
2147
|
+
}), ot(c.exposed.$el, () => {
|
|
2184
2148
|
x();
|
|
2185
2149
|
});
|
|
2186
2150
|
});
|
|
@@ -2200,7 +2164,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
2200
2164
|
...te.value,
|
|
2201
2165
|
ref: y
|
|
2202
2166
|
}), { "label-width": "fit-content" }), {
|
|
2203
|
-
default: H(() => [(F(!0), T(pe, null, L(u.value.filter((e) => e.show !== !1), (n) => (F(), C(B(
|
|
2167
|
+
default: H(() => [(F(!0), T(pe, null, L(u.value.filter((e) => e.show !== !1), (n) => (F(), C(B(Ue), M({ key: n.model ?? n.slot }, { ref_for: !0 }, M({ ...ee(n) }, { class: { no_label_item: B(_)(n._label) } }), { name: n.model }), {
|
|
2204
2168
|
default: H(() => [n.slot ? Te(t.$slots, n.slot, {}, void 0, !0, 0) : (F(), C(R(m(n.component)), M({
|
|
2205
2169
|
key: 1,
|
|
2206
2170
|
modelValue: e.data[n.model],
|
|
@@ -2211,7 +2175,7 @@ var hn = /* @__PURE__ */ O({
|
|
|
2211
2175
|
_: 3
|
|
2212
2176
|
}, 16))], 2112));
|
|
2213
2177
|
}
|
|
2214
|
-
}), [["__scopeId", "data-v-b3c2c148"]]),
|
|
2178
|
+
}), [["__scopeId", "data-v-b3c2c148"]]), On = /* @__PURE__ */ O({
|
|
2215
2179
|
__name: "ResetPwd",
|
|
2216
2180
|
props: { showFooter: {
|
|
2217
2181
|
type: Boolean,
|
|
@@ -2264,9 +2228,9 @@ var hn = /* @__PURE__ */ O({
|
|
|
2264
2228
|
newPassword: e.newPassword,
|
|
2265
2229
|
oldPassword: e.oldPassword
|
|
2266
2230
|
}
|
|
2267
|
-
}),
|
|
2231
|
+
}), Jt().logout();
|
|
2268
2232
|
}
|
|
2269
|
-
return t({ handleSubmit: o }), (e, t) => (F(), C(B(
|
|
2233
|
+
return t({ handleSubmit: o }), (e, t) => (F(), C(B(Dn), {
|
|
2270
2234
|
ref: "form",
|
|
2271
2235
|
items: r,
|
|
2272
2236
|
"label-align": "right",
|
|
@@ -2289,34 +2253,34 @@ var hn = /* @__PURE__ */ O({
|
|
|
2289
2253
|
});
|
|
2290
2254
|
//#endregion
|
|
2291
2255
|
//#region ../../packages/dlzn-ui/store/modules/user.ts
|
|
2292
|
-
function
|
|
2256
|
+
function kn() {
|
|
2293
2257
|
return Y.Get("getInfo", { meta: {
|
|
2294
2258
|
useFailMsg: "获取用户信息失败",
|
|
2295
2259
|
useLoading: "正在获取用户信息..."
|
|
2296
2260
|
} });
|
|
2297
2261
|
}
|
|
2298
|
-
var
|
|
2262
|
+
var An = {
|
|
2299
2263
|
admin: !1,
|
|
2300
2264
|
dept: { deptName: "" },
|
|
2301
2265
|
needChangePwd: 0,
|
|
2302
2266
|
nickName: "",
|
|
2303
2267
|
userId: "",
|
|
2304
2268
|
userName: ""
|
|
2305
|
-
}, Q =
|
|
2306
|
-
let e = I(
|
|
2269
|
+
}, Q = lt("user", () => {
|
|
2270
|
+
let e = I(st(An)), t = I([]), n = I([]);
|
|
2307
2271
|
function r() {
|
|
2308
|
-
e.value =
|
|
2272
|
+
e.value = st(An), t.value = [], n.value = [];
|
|
2309
2273
|
}
|
|
2310
2274
|
let i = S(() => e.value.admin), a = I("");
|
|
2311
2275
|
async function o(r = !0) {
|
|
2312
|
-
let i = await
|
|
2313
|
-
e.value = i.user, a.value !== e.value.userId && G().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await
|
|
2276
|
+
let i = await kn();
|
|
2277
|
+
e.value = i.user, a.value !== e.value.userId && G().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await At().getRouters();
|
|
2314
2278
|
}
|
|
2315
2279
|
V(() => e.value.needChangePwd, (e) => {
|
|
2316
2280
|
e === 1 && VITE_FORCE_PWD_CHANGE && N(() => {
|
|
2317
2281
|
let e = I(null);
|
|
2318
|
-
|
|
2319
|
-
body: () => A(
|
|
2282
|
+
Rt({
|
|
2283
|
+
body: () => A(On, {
|
|
2320
2284
|
labelAlign: "top",
|
|
2321
2285
|
ref: e,
|
|
2322
2286
|
showFooter: !1
|
|
@@ -2388,7 +2352,7 @@ var jn = {
|
|
|
2388
2352
|
Object,
|
|
2389
2353
|
Array
|
|
2390
2354
|
] }
|
|
2391
|
-
},
|
|
2355
|
+
}, yt),
|
|
2392
2356
|
setup(n) {
|
|
2393
2357
|
let r = n, a = I("");
|
|
2394
2358
|
function o() {
|
|
@@ -2412,7 +2376,7 @@ var jn = {
|
|
|
2412
2376
|
}
|
|
2413
2377
|
return t;
|
|
2414
2378
|
}
|
|
2415
|
-
let s = I(!1), c = i.isLoading, l = I(null), { focused: u } =
|
|
2379
|
+
let s = I(!1), c = i.isLoading, l = I(null), { focused: u } = it(l), d, f;
|
|
2416
2380
|
V(c, (e) => {
|
|
2417
2381
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2418
2382
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
@@ -2431,7 +2395,7 @@ var jn = {
|
|
|
2431
2395
|
return Object.keys(e).forEach((t) => {
|
|
2432
2396
|
e[t] === void 0 && delete e[t];
|
|
2433
2397
|
}), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
|
|
2434
|
-
}), h =
|
|
2398
|
+
}), h = Pe, ee = k();
|
|
2435
2399
|
function te(e) {
|
|
2436
2400
|
let t = e ?? {};
|
|
2437
2401
|
ee.exposed = t, l.value = t.$el;
|
|
@@ -2532,6 +2496,38 @@ var jn = {
|
|
|
2532
2496
|
fn: H((t) => [Te(r.$slots, e, P(ve(t)), void 0, !0)])
|
|
2533
2497
|
}))]), 1536))], 64)) : w("v-if", !0);
|
|
2534
2498
|
}
|
|
2535
|
-
}), [["__scopeId", "data-v-41e01020"]])
|
|
2499
|
+
}), [["__scopeId", "data-v-41e01020"]]), jn = /* @__PURE__ */ O({
|
|
2500
|
+
name: "TProvider",
|
|
2501
|
+
__name: "Provider",
|
|
2502
|
+
setup(t) {
|
|
2503
|
+
let n = { table: {
|
|
2504
|
+
expandIcon: (t) => t($, {
|
|
2505
|
+
shape: "circle",
|
|
2506
|
+
variant: "text"
|
|
2507
|
+
}, { icon: () => t(e, { icon: "ph:caret-right-bold" }) }),
|
|
2508
|
+
sortIcon: (t) => t($, {
|
|
2509
|
+
shape: "circle",
|
|
2510
|
+
size: "small",
|
|
2511
|
+
variant: "text"
|
|
2512
|
+
}, { icon: () => t(e, { icon: "heroicons-solid:sort-descending" }) }),
|
|
2513
|
+
treeExpandAndFoldIcon: (t, { type: n }) => t($, {
|
|
2514
|
+
shape: "circle",
|
|
2515
|
+
variant: "text"
|
|
2516
|
+
}, { icon: () => t(e, { icon: `ph:caret-${n === "expand" ? "right" : "down"}-bold` }) })
|
|
2517
|
+
} };
|
|
2518
|
+
return (e, t) => (F(), C(B(tt), {
|
|
2519
|
+
"empty-values": [""],
|
|
2520
|
+
locale: B(vt),
|
|
2521
|
+
"value-on-clear": "",
|
|
2522
|
+
"z-index": 5500
|
|
2523
|
+
}, {
|
|
2524
|
+
default: H(() => [D(B(Ie), { "global-config": n }, {
|
|
2525
|
+
default: H(() => [Te(e.$slots, "default")]),
|
|
2526
|
+
_: 3
|
|
2527
|
+
})]),
|
|
2528
|
+
_: 3
|
|
2529
|
+
}, 8, ["locale"]));
|
|
2530
|
+
}
|
|
2531
|
+
});
|
|
2536
2532
|
//#endregion
|
|
2537
|
-
export {
|
|
2533
|
+
export { Xt as A, At as B, an as C, q as D, tn as E, Rt as F, W as H, Lt as I, Nt as L, Ut as M, Wt as N, en as O, Gt as P, Mt as R, Y as S, J as T, bt as U, G as V, yt as W, mn as _, On as a, Z as b, Cn as c, bn as d, yn as f, hn as g, gn as h, Q as i, Jt as j, Zt as k, Sn as l, _n as m, $ as n, Dn as o, vn as p, kn as r, En as s, jn as t, xn as u, dn as v, on as w, pn as x, fn as y, St as z };
|