dlzn-ui 2.0.57 → 2.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{provider-DIrGVGOU.css → provider-B7Qp92IB.css} +1 -1
- package/chunks/{AssignUser-DtER_ejJ.mjs → AssignUser-oglCtKHG.mjs} +3 -3
- package/chunks/{BasicInfo-BUMKRgQJ.mjs → BasicInfo-BP7Cq7Nn.mjs} +1 -1
- package/chunks/{ColumnInfo-Db_V0RdZ.mjs → ColumnInfo-DU-3CPaF.mjs} +2 -2
- package/chunks/{Common-C50CJzOp.mjs → Common-xF3rgkl_.mjs} +1 -1
- package/chunks/{Day-Ca12so8o.mjs → Day-BJBhn5l0.mjs} +1 -1
- package/chunks/{DictTypeDetail-48OfCZLN.mjs → DictTypeDetail-ihwR7SU2.mjs} +2 -2
- package/chunks/{GenInfo-yGFmqWPU.mjs → GenInfo-Dl4cpgZY.mjs} +1 -1
- package/chunks/{Hour-DsNBBlc4.mjs → Hour-DpwS9a-q.mjs} +1 -1
- package/chunks/{Import-DuiyoZya.mjs → Import-BIXTovMr.mjs} +2 -2
- package/chunks/{Index-oBN7hDRt.mjs → Index--sidPxQN.mjs} +1 -1
- package/chunks/{Index-3OTZvoEG.mjs → Index-CAZBEZJ7.mjs} +1 -1
- package/chunks/{Index-Bwa9roLv.mjs → Index-DF_Aprat.mjs} +1 -1
- package/chunks/{Index-Z6v1V3J6.mjs → Index-L-E7LpNu.mjs} +1 -1
- package/chunks/{IndexItem-DNEqAAjM.mjs → IndexItem-CZYIE2fp.mjs} +1 -1
- package/chunks/{Log-CNy8LPBX.mjs → Log-BmaGIKEs.mjs} +2 -2
- package/chunks/{LoginBg-R2KrvisY.mjs → LoginBg-DsWLmvhl.mjs} +1 -1
- package/chunks/{Minute-DsOjDKJw.mjs → Minute-s_LSMXJf.mjs} +1 -1
- package/chunks/{Month-tFXTN8o3.mjs → Month-DysmTEdT.mjs} +1 -1
- package/chunks/{Preview-Bjjy5QvH.mjs → Preview-DMGlG72W.mjs} +1 -1
- package/chunks/{Second-BDd95Jav.mjs → Second-ByN9BJpo.mjs} +1 -1
- package/chunks/{SelectDept-BSOcrk6_.mjs → SelectDept-CakQvq5T.mjs} +1 -1
- package/chunks/{SelectMenu-G_Toehs6.mjs → SelectMenu-DlFwZ8W1.mjs} +1 -1
- package/chunks/{SelectUser-CIOnHIpt.mjs → SelectUser-BKrJzbyH.mjs} +2 -2
- package/chunks/{UserInfo-CLKPzdpf.mjs → UserInfo-sHWccJvI.mjs} +1 -1
- package/chunks/{app-C2GscqOQ.mjs → app-aRuMVKMG.mjs} +1 -1
- package/chunks/{custom-page-list-BEwJFbop.mjs → custom-page-list-Cot36K-w.mjs} +4 -4
- package/chunks/{custom-page-table-97Xi_m_P.mjs → custom-page-table-PhbvFX4q.mjs} +2 -2
- package/chunks/{overview-DXgHrRkH.mjs → overview-CBfHin5S.mjs} +1 -1
- package/chunks/{page-list-9ShvLAqK.mjs → page-list-UaWlQCGJ.mjs} +3 -3
- package/chunks/{page-query-Bo30X-Np.mjs → page-query-DXjfqqEc.mjs} +1 -1
- package/chunks/{page-table-HHguazH_.mjs → page-table-DWTtXk3Z.mjs} +3 -3
- package/chunks/{pagination-BJfw8dU3.mjs → pagination-DTDBl9h8.mjs} +1 -1
- package/chunks/{provider-CH9EHEA4.mjs → provider-CNLV7Wbf.mjs} +368 -358
- package/chunks/{table-8T5HDisC.mjs → table-DTPXpAAP.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +9 -9
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.d.ts +1 -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/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/upload.d.ts +1 -3
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useSysUser/index.mjs +1 -1
- package/index.html +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +1 -1
- package/layout/Home1.mjs +2 -2
- package/layout/Login.mjs +2 -2
- package/layout/NotFound.mjs +1 -1
- package/layout/modules/Aside.mjs +1 -1
- package/layout/modules/Breadcrumb.mjs +1 -1
- package/layout/modules/Header.mjs +1 -1
- package/layout/modules/LoginBg.mjs +1 -1
- package/layout/profile/Index.mjs +2 -2
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/main.mjs +2 -2
- package/package.json +1 -1
- package/plugins/autoImport/$alova/index.mjs +1 -1
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +1 -1
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +3 -3
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +1 -1
- package/views/monitor/cache/index.mjs +2 -2
- package/views/monitor/cacheList/index.mjs +2 -2
- package/views/monitor/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 +142 -116
- package/views/system/user/index.vue.d.ts +5 -1
- 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 +3 -3
- package/views/tool/job/modules/Log.mjs +1 -1
- package/README.md +0 -137
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../assets/css-Ctf0Amkf.css';import '../assets/provider-
|
|
1
|
+
import '../assets/css-Ctf0Amkf.css';import '../assets/provider-B7Qp92IB.css';/* empty css */
|
|
2
2
|
import { t as e } from "./icon-DcFIQ_yG.mjs";
|
|
3
3
|
import "../components/icon/index.mjs";
|
|
4
4
|
import { t } from "./popconfirm-Bc93K9mT.mjs";
|
|
@@ -15,45 +15,45 @@ import { sanitizeHtml as d, saveAs as f } from "../utils/tool.mjs";
|
|
|
15
15
|
import p from "../hooks/useLabel/index.mjs";
|
|
16
16
|
import m from "../plugins/autoImport/$msg/index.mjs";
|
|
17
17
|
import h from "../layout/index.mjs";
|
|
18
|
-
import { t as
|
|
18
|
+
import { t as g } from "./scrollbar-CoERe4kE.mjs";
|
|
19
19
|
import "../components/scrollbar/index.mjs";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
20
|
+
import _ from "../hooks/useMQ/index.mjs";
|
|
21
|
+
import v from "../hooks/usePrimaryColor/index.mjs";
|
|
22
|
+
import y from "../store/modules/excludeKPname.mjs";
|
|
23
|
+
import { t as ee } from "./gradient-text-BAIl_tKw.mjs";
|
|
24
|
+
import { t as b } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
25
25
|
import "../components/gradient-text/index.mjs";
|
|
26
|
-
import { t as
|
|
26
|
+
import { t as te } from "./image-cancjWRE.mjs";
|
|
27
27
|
import "../components/image/index.mjs";
|
|
28
|
-
import
|
|
29
|
-
import { t as
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import { t as
|
|
28
|
+
import ne from "../views/index.mjs";
|
|
29
|
+
import { t as re } from "./MenuNode-BVu_0JxZ.mjs";
|
|
30
|
+
import ie from "../hooks/useContextMenu/index.mjs";
|
|
31
|
+
import ae, { useClearList as oe } from "../hooks/useList/index.mjs";
|
|
32
|
+
import { t as se } from "./color-picker-BVropPi4.mjs";
|
|
33
33
|
import "../components/color-picker/index.mjs";
|
|
34
|
-
import { n as
|
|
34
|
+
import { n as ce, t as le } from "./input-UQjpNb61.mjs";
|
|
35
35
|
import "../components/input/index.mjs";
|
|
36
|
-
import { t as
|
|
36
|
+
import { t as ue } from "./date-picker-BaOpewZr.mjs";
|
|
37
37
|
import "../components/date-picker/index.mjs";
|
|
38
|
-
import { t as
|
|
38
|
+
import { t as de } from "./input-number-7Y1iWPPV.mjs";
|
|
39
39
|
import "../components/input-number/index.mjs";
|
|
40
|
-
import { t as
|
|
40
|
+
import { t as fe } from "./range-input-PIfE-AxB.mjs";
|
|
41
41
|
import "../components/range-input/index.mjs";
|
|
42
|
-
import { n as
|
|
42
|
+
import { n as pe, t as me } from "./tag-input-BuAFWI1F.mjs";
|
|
43
43
|
import "../components/tag-input/index.mjs";
|
|
44
|
-
import { t as
|
|
44
|
+
import { t as he } from "./slider-DSeKLd2m.mjs";
|
|
45
45
|
import "../components/slider/index.mjs";
|
|
46
|
-
import { t as
|
|
46
|
+
import { t as ge } from "./switch-DNPmkfa_.mjs";
|
|
47
47
|
import "../components/switch/index.mjs";
|
|
48
|
-
import { t as
|
|
48
|
+
import { t as _e } from "./textarea-CYirMH7f.mjs";
|
|
49
49
|
import "../components/textarea/index.mjs";
|
|
50
|
-
import { Fragment as
|
|
51
|
-
import { Breadcrumb as
|
|
52
|
-
import { ElConfigProvider as
|
|
53
|
-
import { useElementSize as
|
|
54
|
-
import { cloneDeep as
|
|
55
|
-
import { defineStore as
|
|
56
|
-
import { createRouter as
|
|
50
|
+
import { Fragment as ve, KeepAlive as ye, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as be, createSlots as xe, createTextVNode as T, createVNode as E, defineAsyncComponent as Se, defineComponent as D, getCurrentInstance as O, guardReactiveProps as Ce, h as k, inject as we, markRaw as Te, mergeDefaults as A, mergeProps as j, nextTick as M, normalizeClass as Ee, normalizeProps as N, onMounted as De, openBlock as P, provide as Oe, reactive as ke, ref as F, renderList as I, renderSlot as Ae, resolveComponent as je, resolveDynamicComponent as L, shallowRef as Me, toDisplayString as R, unref as z, useAttrs as Ne, useSlots as Pe, useTemplateRef as Fe, watch as B, withCtx as V, withModifiers as Ie } from "vue";
|
|
51
|
+
import { Breadcrumb as Le, BreadcrumbItem as Re, Button as ze, CheckboxGroup as Be, ConfigProvider as Ve, Content as He, DialogPlugin as Ue, Drawer as We, DrawerPlugin as Ge, Dropdown as Ke, Form as qe, FormItem as Je, HeadMenu as Ye, Header as Xe, InputAdornment as Ze, Layout as Qe, Menu as $e, MenuItem as et, RadioGroup as tt, Select as nt, Tree as rt, TreeSelect as it, Upload as at } from "tdesign-vue-next";
|
|
52
|
+
import { ElConfigProvider as ot } from "element-plus";
|
|
53
|
+
import { useElementSize as st, useElementVisibility as ct, useFavicon as lt, useFocus as ut, useMutationObserver as dt, useResizeObserver as ft } from "@vueuse/core";
|
|
54
|
+
import { cloneDeep as pt, isPlainObject as mt } from "lodash-es";
|
|
55
|
+
import { defineStore as H } from "pinia";
|
|
56
|
+
import { createRouter as ht, createWebHistory as gt, useRoute as U, useRouter as _t } from "vue-router";
|
|
57
57
|
import vt from "virtual:dlzn-ui/app-params";
|
|
58
58
|
import { createAlova as yt } from "alova";
|
|
59
59
|
import bt from "alova/fetch";
|
|
@@ -249,7 +249,7 @@ var Ct = {
|
|
|
249
249
|
}, Tt = {
|
|
250
250
|
autoLabelWidth: !0,
|
|
251
251
|
colon: !0,
|
|
252
|
-
data: () =>
|
|
252
|
+
data: () => ke({}),
|
|
253
253
|
disabled: !1,
|
|
254
254
|
labelAlign: "top",
|
|
255
255
|
layout: "inline",
|
|
@@ -263,11 +263,11 @@ var Ct = {
|
|
|
263
263
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
264
264
|
}(Et || {}), Dt = /* @__PURE__ */ new Set();
|
|
265
265
|
function Ot(e, t, n) {
|
|
266
|
-
let i =
|
|
266
|
+
let i = x(() => typeof t.body == "function" ? t.body(k) : t.body), a = F(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: o, stop: s } = ct(a, {
|
|
267
267
|
controls: !0,
|
|
268
268
|
initialValue: !0
|
|
269
269
|
}), c = {
|
|
270
|
-
closeBtn: () =>
|
|
270
|
+
closeBtn: () => k($, {
|
|
271
271
|
icon: "mdi:close",
|
|
272
272
|
shape: "circle",
|
|
273
273
|
size: "small",
|
|
@@ -284,7 +284,7 @@ function Ot(e, t, n) {
|
|
|
284
284
|
placement: "center",
|
|
285
285
|
width: "fit-content",
|
|
286
286
|
...t ?? {},
|
|
287
|
-
body: () =>
|
|
287
|
+
body: () => k(Ln, {}, { default: () => i.value })
|
|
288
288
|
}, l, u = {
|
|
289
289
|
...c,
|
|
290
290
|
onClosed: () => {
|
|
@@ -293,7 +293,7 @@ function Ot(e, t, n) {
|
|
|
293
293
|
};
|
|
294
294
|
delete u.closeWhenCloseAll;
|
|
295
295
|
let d = r();
|
|
296
|
-
return l = e === void 0 ?
|
|
296
|
+
return l = e === void 0 ? Ue(u, n ?? d) : Ue[e](u, n ?? d), c.closeWhenCloseAll && Dt.add(l), l;
|
|
297
297
|
}
|
|
298
298
|
var kt = function(...e) {
|
|
299
299
|
return Ot(void 0, ...e);
|
|
@@ -316,7 +316,7 @@ var W = (e, t) => {
|
|
|
316
316
|
a.hide(), r();
|
|
317
317
|
},
|
|
318
318
|
theme: "warning"
|
|
319
|
-
} :
|
|
319
|
+
} : ke({
|
|
320
320
|
...n,
|
|
321
321
|
onClose: (t) => {
|
|
322
322
|
let { trigger: n } = t;
|
|
@@ -354,18 +354,18 @@ function At() {
|
|
|
354
354
|
useToken: !1
|
|
355
355
|
} });
|
|
356
356
|
}
|
|
357
|
-
var G =
|
|
358
|
-
let e =
|
|
357
|
+
var G = H("common", () => {
|
|
358
|
+
let e = F(!0), t = F(250), n = F({
|
|
359
359
|
appName: "",
|
|
360
360
|
color: "",
|
|
361
361
|
logo: "",
|
|
362
362
|
version: ""
|
|
363
363
|
});
|
|
364
|
-
|
|
364
|
+
B(() => n.value.appName, (e) => {
|
|
365
365
|
e && (document.title = e);
|
|
366
|
-
}),
|
|
367
|
-
e && (
|
|
368
|
-
}),
|
|
366
|
+
}), B(() => n.value.color, (e) => {
|
|
367
|
+
e && (v().value = e);
|
|
368
|
+
}), lt(x(() => n.value.logo || "/favicon.ico"));
|
|
369
369
|
function r() {
|
|
370
370
|
At().then((e) => {
|
|
371
371
|
n.value = e;
|
|
@@ -378,7 +378,7 @@ var G = V("common", () => {
|
|
|
378
378
|
}, console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
let i =
|
|
381
|
+
let i = F(!0), a = null;
|
|
382
382
|
function o() {
|
|
383
383
|
a !== null && (clearTimeout(a), a = null), i.value = !1, a = setTimeout(() => {
|
|
384
384
|
i.value = !0;
|
|
@@ -392,13 +392,13 @@ var G = V("common", () => {
|
|
|
392
392
|
isRequestSleep: i,
|
|
393
393
|
requestActive: o
|
|
394
394
|
};
|
|
395
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), K =
|
|
396
|
-
let e =
|
|
395
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), K = H("recentRouters", () => {
|
|
396
|
+
let e = F([]), t = U(), n = _t();
|
|
397
397
|
function r() {
|
|
398
398
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
399
399
|
}
|
|
400
400
|
function i(t, n) {
|
|
401
|
-
let r =
|
|
401
|
+
let r = pt(n), i = e.value.findIndex((e) => e.name === r.name || Y(e.name).meta.title === Y(r.name).meta.title);
|
|
402
402
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
403
403
|
let n = e.value.findIndex((e) => e.name === t);
|
|
404
404
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -495,7 +495,7 @@ function Lt(e) {
|
|
|
495
495
|
}
|
|
496
496
|
function Rt(e) {
|
|
497
497
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
498
|
-
let t = e.component, n = typeof t == "string" ?
|
|
498
|
+
let t = e.component, n = typeof t == "string" ? ne[Lt(t)] : t;
|
|
499
499
|
if (n === void 0) {
|
|
500
500
|
let e = `路由组件${Lt(t)}不存在`;
|
|
501
501
|
return console.error(e), h["./NotFound.vue"];
|
|
@@ -507,11 +507,11 @@ function Rt(e) {
|
|
|
507
507
|
}
|
|
508
508
|
return e.component;
|
|
509
509
|
}
|
|
510
|
-
var zt =
|
|
511
|
-
let e =
|
|
510
|
+
var zt = H("router", () => {
|
|
511
|
+
let e = F([]), t = _t(), n = Q();
|
|
512
512
|
async function r() {
|
|
513
513
|
let r = await jt();
|
|
514
|
-
It.length = 0, e.value =
|
|
514
|
+
It.length = 0, e.value = Te(Ft(Pt(Nt(r)))), n.isAdmin && Object.keys(ne).forEach((e) => {
|
|
515
515
|
if (!It.includes(e)) {
|
|
516
516
|
let t = `${e} 页面对应的路由不存在`;
|
|
517
517
|
console.error(t);
|
|
@@ -530,46 +530,46 @@ var zt = V("router", () => {
|
|
|
530
530
|
getRouters: r,
|
|
531
531
|
routersRaw: e
|
|
532
532
|
};
|
|
533
|
-
}), Bt = { class: "ml-2! flex items-center" }, Vt = /*#__PURE__*/
|
|
533
|
+
}), Bt = { class: "ml-2! flex items-center" }, Vt = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
534
534
|
__name: "Aside",
|
|
535
535
|
setup(e) {
|
|
536
|
-
let t =
|
|
537
|
-
|
|
536
|
+
let t = U(), n = G(), r = x(() => n.appInfo.appName), i = zt(), a = F([]);
|
|
537
|
+
B(() => t.name, () => {
|
|
538
538
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
539
539
|
a.value.includes(e) || a.value.push(e);
|
|
540
540
|
});
|
|
541
541
|
}, { immediate: !0 });
|
|
542
|
-
let o =
|
|
542
|
+
let o = x(() => {
|
|
543
543
|
let { hidden: e, parentName: n } = t.meta;
|
|
544
544
|
return n !== "" && e === !0 ? n : t.name;
|
|
545
|
-
}), s =
|
|
546
|
-
return (e, t) => (
|
|
545
|
+
}), s = x(() => n.appInfo.logo || vt.asideTopLogoUrl);
|
|
546
|
+
return (e, t) => (P(), S(z($e), {
|
|
547
547
|
expanded: a.value,
|
|
548
548
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
549
549
|
class: "w-full!",
|
|
550
550
|
value: o.value
|
|
551
551
|
}, {
|
|
552
|
-
logo:
|
|
552
|
+
logo: V(() => [be("div", Bt, [E(z(te), {
|
|
553
553
|
class: "logo",
|
|
554
554
|
src: s.value,
|
|
555
555
|
style: {
|
|
556
556
|
width: "28px",
|
|
557
557
|
height: "28px"
|
|
558
558
|
}
|
|
559
|
-
}, null, 8, ["src"]),
|
|
559
|
+
}, null, 8, ["src"]), E(z(ee), {
|
|
560
560
|
"animation-speed": 8,
|
|
561
561
|
"class-name": "ml-2 text-xl !font-bold",
|
|
562
562
|
"show-border": !1,
|
|
563
563
|
text: r.value
|
|
564
564
|
}, null, 8, ["text"])])]),
|
|
565
|
-
default:
|
|
565
|
+
default: V(() => [E(re, { model: z(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
566
566
|
_: 1
|
|
567
567
|
}, 8, ["expanded", "value"]));
|
|
568
568
|
}
|
|
569
|
-
}), [["__scopeId", "data-v-36275803"]]), Ht = /* @__PURE__ */
|
|
569
|
+
}), [["__scopeId", "data-v-36275803"]]), Ht = /* @__PURE__ */ D({
|
|
570
570
|
__name: "Breadcrumb",
|
|
571
571
|
setup(e, { expose: t }) {
|
|
572
|
-
let n =
|
|
572
|
+
let n = U(), r = _t(), i = K(), a = x(() => {
|
|
573
573
|
let e = n.matched.map((e) => ({
|
|
574
574
|
name: e.name,
|
|
575
575
|
title: e.meta.title
|
|
@@ -582,20 +582,20 @@ var zt = V("router", () => {
|
|
|
582
582
|
function o(e) {
|
|
583
583
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
584
584
|
}
|
|
585
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (
|
|
585
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (P(), S(z(Le), {
|
|
586
586
|
key: 0,
|
|
587
587
|
class: "absolute top-px z-10 py-1!"
|
|
588
588
|
}, {
|
|
589
|
-
default:
|
|
589
|
+
default: V(() => [(P(!0), w(ve, null, I(a.value, (e) => (P(), S(z(Re), {
|
|
590
590
|
key: e.name,
|
|
591
591
|
disabled: e.disabled,
|
|
592
592
|
onClick: (t) => o(e.name)
|
|
593
593
|
}, {
|
|
594
|
-
default:
|
|
594
|
+
default: V(() => [T(R(e.title), 1)]),
|
|
595
595
|
_: 2
|
|
596
596
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
597
597
|
_: 1
|
|
598
|
-
})) :
|
|
598
|
+
})) : C("v-if", !0);
|
|
599
599
|
}
|
|
600
600
|
}), Ut = /* @__PURE__ */ new Map();
|
|
601
601
|
function Wt(e) {
|
|
@@ -630,7 +630,7 @@ function Jt(e) {
|
|
|
630
630
|
}
|
|
631
631
|
function Yt(e) {
|
|
632
632
|
let t;
|
|
633
|
-
return q.has(e) ? t = q.get(e) : (t =
|
|
633
|
+
return q.has(e) ? t = q.get(e) : (t = F(null), q.set(e, t), Kt(e).then((e) => {
|
|
634
634
|
t.value = e;
|
|
635
635
|
})), t;
|
|
636
636
|
}
|
|
@@ -648,16 +648,16 @@ function Zt() {
|
|
|
648
648
|
useSuccessMsg: !0
|
|
649
649
|
} });
|
|
650
650
|
}
|
|
651
|
-
var Qt =
|
|
652
|
-
let e =
|
|
651
|
+
var Qt = H("login", () => {
|
|
652
|
+
let e = F(""), t = U(), n = _t();
|
|
653
653
|
async function r(t) {
|
|
654
654
|
let n = await Xt(t);
|
|
655
655
|
e.value = n.token, await Q().getUserInfo();
|
|
656
656
|
}
|
|
657
657
|
function i() {
|
|
658
|
-
e.value = "",
|
|
658
|
+
e.value = "", y().clear(), zt().clear(), Q().clear(), gn(), qt(), oe();
|
|
659
659
|
}
|
|
660
|
-
|
|
660
|
+
B(() => t.name, () => {
|
|
661
661
|
t.name === "Login" && i();
|
|
662
662
|
});
|
|
663
663
|
async function a() {
|
|
@@ -668,10 +668,10 @@ var Qt = V("login", () => {
|
|
|
668
668
|
logout: a,
|
|
669
669
|
token: e
|
|
670
670
|
};
|
|
671
|
-
}, { persist: { pick: ["token"] } }), $t = { class: "flex items-center justify-between" }, en = /*#__PURE__*/
|
|
671
|
+
}, { persist: { pick: ["token"] } }), $t = { class: "flex items-center justify-between" }, en = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
672
672
|
__name: "Header",
|
|
673
673
|
setup(t) {
|
|
674
|
-
let n =
|
|
674
|
+
let n = U(), r = _t(), i = Q(), a = G(), o = K();
|
|
675
675
|
function s(e) {
|
|
676
676
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
677
677
|
}
|
|
@@ -681,7 +681,7 @@ var Qt = V("login", () => {
|
|
|
681
681
|
let l = async (e) => {
|
|
682
682
|
let { value: t } = e;
|
|
683
683
|
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await W("确定要退出登录吗?"), Qt().logout());
|
|
684
|
-
}, u =
|
|
684
|
+
}, u = _.isMd;
|
|
685
685
|
function d(e, t) {
|
|
686
686
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
687
687
|
o.recentRouters.length > 1 && i.push({
|
|
@@ -702,36 +702,36 @@ var Qt = V("login", () => {
|
|
|
702
702
|
onClick: () => {
|
|
703
703
|
l > s && r.push(u), o.recentRouters = o.recentRouters.slice(0, s + 1);
|
|
704
704
|
}
|
|
705
|
-
}),
|
|
705
|
+
}), ie(e, i);
|
|
706
706
|
}
|
|
707
|
-
return (t, r) => (
|
|
708
|
-
default:
|
|
707
|
+
return (t, r) => (P(), S(z(Xe), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
708
|
+
default: V(() => [E(z(Ye), {
|
|
709
709
|
"expand-type": "popup",
|
|
710
|
-
value:
|
|
710
|
+
value: z(n).name,
|
|
711
711
|
onChange: s
|
|
712
712
|
}, {
|
|
713
|
-
logo:
|
|
713
|
+
logo: V(() => [E(z($), {
|
|
714
714
|
class: "ml-0! shrink-0",
|
|
715
715
|
shape: "circle",
|
|
716
716
|
size: "large",
|
|
717
717
|
variant: "text",
|
|
718
|
-
onClick: r[0] ||= (e) =>
|
|
718
|
+
onClick: r[0] ||= (e) => z(a).drawerOpen = !z(a).drawerOpen
|
|
719
719
|
}, {
|
|
720
|
-
default:
|
|
720
|
+
default: V(() => [E(z(e), { icon: "lineicons:menu-hamburger-1" })]),
|
|
721
721
|
_: 1
|
|
722
722
|
})]),
|
|
723
|
-
operations:
|
|
723
|
+
operations: V(() => [E(z(Ke), {
|
|
724
724
|
options: [{
|
|
725
725
|
content: "个人中心",
|
|
726
726
|
value: "profile",
|
|
727
|
-
prefixIcon: () =>
|
|
727
|
+
prefixIcon: () => k(z(e), {
|
|
728
728
|
icon: "material-symbols:account-circle",
|
|
729
729
|
size: "16"
|
|
730
730
|
})
|
|
731
731
|
}, {
|
|
732
732
|
content: "退出登录",
|
|
733
733
|
value: "logout",
|
|
734
|
-
prefixIcon: () =>
|
|
734
|
+
prefixIcon: () => k(z(e), {
|
|
735
735
|
icon: "material-symbols:logout",
|
|
736
736
|
size: "16"
|
|
737
737
|
})
|
|
@@ -740,46 +740,46 @@ var Qt = V("login", () => {
|
|
|
740
740
|
trigger: "click",
|
|
741
741
|
onClick: l
|
|
742
742
|
}, {
|
|
743
|
-
default:
|
|
743
|
+
default: V(() => [z(u) ? (P(), S(z($), {
|
|
744
744
|
key: 0,
|
|
745
745
|
shape: "square",
|
|
746
746
|
variant: "text"
|
|
747
747
|
}, {
|
|
748
|
-
icon:
|
|
748
|
+
icon: V(() => [E(z(e), { icon: "material-symbols:account-circle" })]),
|
|
749
749
|
_: 1
|
|
750
|
-
})) : (
|
|
750
|
+
})) : (P(), S(z($), {
|
|
751
751
|
key: 1,
|
|
752
752
|
variant: "text"
|
|
753
753
|
}, {
|
|
754
|
-
icon:
|
|
755
|
-
suffix:
|
|
754
|
+
icon: V(() => [E(z(e), { icon: "material-symbols:account-circle" })]),
|
|
755
|
+
suffix: V(() => [E(z(e), {
|
|
756
756
|
icon: "icon-park-outline:down",
|
|
757
757
|
size: "18"
|
|
758
758
|
})]),
|
|
759
|
-
default:
|
|
759
|
+
default: V(() => [T(" " + R(z(i).userInfo.userName) + " ", 1)]),
|
|
760
760
|
_: 1
|
|
761
761
|
}))]),
|
|
762
762
|
_: 1
|
|
763
763
|
}, 8, ["options"])]),
|
|
764
|
-
default:
|
|
764
|
+
default: V(() => [(P(!0), w(ve, null, I(z(o).recentRouters, (t) => (P(), S(z(et), {
|
|
765
765
|
key: t.name,
|
|
766
766
|
value: t.name,
|
|
767
767
|
onContextmenu: (e) => d(e, t.name)
|
|
768
768
|
}, {
|
|
769
|
-
default:
|
|
769
|
+
default: V(() => [be("div", $t, [be("span", null, R(z(Y)(t.name).meta.title), 1), z(o).recentRouters.length > 1 ? (P(), S(z($), {
|
|
770
770
|
key: 0,
|
|
771
771
|
class: "ml-1!",
|
|
772
772
|
shape: "square",
|
|
773
773
|
size: "small",
|
|
774
774
|
variant: "text",
|
|
775
|
-
onClick:
|
|
775
|
+
onClick: Ie((e) => c(t.name), ["stop"])
|
|
776
776
|
}, {
|
|
777
|
-
icon:
|
|
777
|
+
icon: V(() => [E(z(e), {
|
|
778
778
|
icon: "material-symbols:close",
|
|
779
779
|
style: { "font-size": "12px !important" }
|
|
780
780
|
})]),
|
|
781
781
|
_: 1
|
|
782
|
-
}, 8, ["onClick"])) :
|
|
782
|
+
}, 8, ["onClick"])) : C("v-if", !0)])]),
|
|
783
783
|
_: 2
|
|
784
784
|
}, 1032, ["value", "onContextmenu"]))), 128))]),
|
|
785
785
|
_: 1
|
|
@@ -787,40 +787,40 @@ var Qt = V("login", () => {
|
|
|
787
787
|
_: 1
|
|
788
788
|
}));
|
|
789
789
|
}
|
|
790
|
-
}), [["__scopeId", "data-v-516f6ba1"]]), tn = /*#__PURE__*/
|
|
790
|
+
}), [["__scopeId", "data-v-516f6ba1"]]), tn = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
791
791
|
__name: "Entry",
|
|
792
792
|
setup(e) {
|
|
793
|
-
let t =
|
|
793
|
+
let t = U(), n = G(), r = K(), i = y(), a = x(() => r.recentRouters.filter((e) => Y(e.name).meta.noCache === !1).map((e) => e.name)), o = Fe("breadcrumb"), s = x(() => (o.value?.items.length ?? 0) > 0), c = x(() => _.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), l = _.isMd, u = Fe("contentRef"), { height: d } = st(u);
|
|
794
794
|
function f({ size: e }) {
|
|
795
795
|
n.drawerSize = e;
|
|
796
796
|
}
|
|
797
|
-
let p =
|
|
797
|
+
let p = x(() => t.meta.fullScreen);
|
|
798
798
|
return (e, t) => {
|
|
799
|
-
let r =
|
|
800
|
-
return p.value ? (
|
|
801
|
-
default:
|
|
799
|
+
let r = je("RouterView");
|
|
800
|
+
return p.value ? (P(), S(r, { key: 0 }, {
|
|
801
|
+
default: V(({ Component: e }) => [(P(), S(L(e)))]),
|
|
802
802
|
_: 1
|
|
803
|
-
})) : (
|
|
803
|
+
})) : (P(), S(z(Qe), {
|
|
804
804
|
key: 1,
|
|
805
805
|
class: "h-full"
|
|
806
806
|
}, {
|
|
807
|
-
default:
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
visible:
|
|
811
|
-
"onUpdate:visible": t[0] ||= (e) =>
|
|
807
|
+
default: V(() => [
|
|
808
|
+
E(en),
|
|
809
|
+
E(z(We), {
|
|
810
|
+
visible: z(n).drawerOpen,
|
|
811
|
+
"onUpdate:visible": t[0] ||= (e) => z(n).drawerOpen = e,
|
|
812
812
|
footer: !1,
|
|
813
|
-
mode:
|
|
813
|
+
mode: z(l) ? "overlay" : "push",
|
|
814
814
|
placement: "left",
|
|
815
|
-
"show-overlay":
|
|
816
|
-
size:
|
|
815
|
+
"show-overlay": z(l),
|
|
816
|
+
size: z(l) ? "200px" : `${z(n).drawerSize}px`,
|
|
817
817
|
"size-draggable": {
|
|
818
818
|
max: 450,
|
|
819
819
|
min: 180
|
|
820
820
|
},
|
|
821
821
|
onSizeDragEnd: f
|
|
822
822
|
}, {
|
|
823
|
-
default:
|
|
823
|
+
default: V(() => [E(Vt, { class: "no_drawer_body_padding" })]),
|
|
824
824
|
_: 1
|
|
825
825
|
}, 8, [
|
|
826
826
|
"visible",
|
|
@@ -828,27 +828,27 @@ var Qt = V("login", () => {
|
|
|
828
828
|
"show-overlay",
|
|
829
829
|
"size"
|
|
830
830
|
]),
|
|
831
|
-
|
|
831
|
+
E(z(He), {
|
|
832
832
|
ref_key: "contentRef",
|
|
833
833
|
ref: u,
|
|
834
834
|
class: "overflow-hidden"
|
|
835
835
|
}, {
|
|
836
|
-
default:
|
|
836
|
+
default: V(() => [E(z(g), {
|
|
837
837
|
always: "",
|
|
838
|
-
"view-class":
|
|
838
|
+
"view-class": Ee(["relative flex flex-col", {
|
|
839
839
|
...c.value,
|
|
840
840
|
"pt-8": s.value
|
|
841
841
|
}]),
|
|
842
842
|
"view-style": {
|
|
843
843
|
minWidth: "1200px",
|
|
844
|
-
minHeight: `${Math.max(
|
|
844
|
+
minHeight: `${Math.max(z(d), 438)}px`
|
|
845
845
|
}
|
|
846
846
|
}, {
|
|
847
|
-
default:
|
|
848
|
-
default:
|
|
849
|
-
exclude:
|
|
847
|
+
default: V(() => [E(Ht, { ref: "breadcrumb" }, null, 512), E(r, null, {
|
|
848
|
+
default: V(({ Component: e }) => [(P(), S(ye, {
|
|
849
|
+
exclude: z(i).excludeKPname,
|
|
850
850
|
include: a.value
|
|
851
|
-
}, [(
|
|
851
|
+
}, [(P(), S(L(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
852
852
|
_: 1
|
|
853
853
|
})]),
|
|
854
854
|
_: 1
|
|
@@ -862,7 +862,7 @@ var Qt = V("login", () => {
|
|
|
862
862
|
}
|
|
863
863
|
}), [["__scopeId", "data-v-de5cbc76"]]), nn = /* @__PURE__ */ new Set();
|
|
864
864
|
function rn(e, t) {
|
|
865
|
-
let n =
|
|
865
|
+
let n = x(() => typeof e.body == "function" ? e.body(k) : e.body), i = {
|
|
866
866
|
attach: "#app",
|
|
867
867
|
closeOnEscKeydown: !1,
|
|
868
868
|
closeOnOverlayClick: !1,
|
|
@@ -872,14 +872,14 @@ function rn(e, t) {
|
|
|
872
872
|
lazy: !0,
|
|
873
873
|
sizeDraggable: !0,
|
|
874
874
|
...e ?? {},
|
|
875
|
-
body: () =>
|
|
875
|
+
body: () => k(Ln, {}, { default: () => n.value })
|
|
876
876
|
}, a, o = {
|
|
877
877
|
...i,
|
|
878
878
|
onClose: (e) => {
|
|
879
879
|
i.onClose?.(e), nn.delete(a);
|
|
880
880
|
}
|
|
881
881
|
};
|
|
882
|
-
return delete o.closeWhenCloseAll, a =
|
|
882
|
+
return delete o.closeWhenCloseAll, a = Ge(o, t ?? r()), i.closeWhenCloseAll && nn.add(a), a;
|
|
883
883
|
}
|
|
884
884
|
var an = function(...e) {
|
|
885
885
|
return rn(...e);
|
|
@@ -924,8 +924,8 @@ function on() {
|
|
|
924
924
|
path: "/"
|
|
925
925
|
};
|
|
926
926
|
}
|
|
927
|
-
var J =
|
|
928
|
-
history:
|
|
927
|
+
var J = ht({
|
|
928
|
+
history: gt(VITE_BASE_URL),
|
|
929
929
|
routes: [
|
|
930
930
|
on(),
|
|
931
931
|
{
|
|
@@ -972,7 +972,7 @@ var J = gt({
|
|
|
972
972
|
strict: !0
|
|
973
973
|
});
|
|
974
974
|
J.beforeEach(async (e) => {
|
|
975
|
-
if (e.query._fromLeftTree === "true" &&
|
|
975
|
+
if (e.query._fromLeftTree === "true" && y().add(e.name), !["Login", "Register"].includes(e.name)) return Qt().token === "" ? { name: "Login" } : zt().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), J.resolve({
|
|
976
976
|
path: e.path,
|
|
977
977
|
query: e.query
|
|
978
978
|
}));
|
|
@@ -992,7 +992,7 @@ J.beforeEach(async (e) => {
|
|
|
992
992
|
query: e.query
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
|
-
|
|
995
|
+
y().remove(i);
|
|
996
996
|
});
|
|
997
997
|
function Y(e) {
|
|
998
998
|
if (J.hasRoute(e)) return J.getRoutes().find((t) => t.name === e);
|
|
@@ -1009,6 +1009,14 @@ function ln(e, t = !0) {
|
|
|
1009
1009
|
function un(e, t = !0) {
|
|
1010
1010
|
return new URLSearchParams(ln(e, t)).toString();
|
|
1011
1011
|
}
|
|
1012
|
+
function dn(e) {
|
|
1013
|
+
let { data: t, response: r, useDownload: i } = e;
|
|
1014
|
+
if (typeof i == "string") f(t, i);
|
|
1015
|
+
else {
|
|
1016
|
+
let e = new URLSearchParams((r.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename");
|
|
1017
|
+
e ? f(t, e) : n.error("返回的 response header 没有文件名");
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1012
1020
|
var X = yt({
|
|
1013
1021
|
baseURL: VITE_BASE_URL,
|
|
1014
1022
|
beforeRequest(e) {
|
|
@@ -1028,13 +1036,13 @@ var X = yt({
|
|
|
1028
1036
|
useResponseText: !1,
|
|
1029
1037
|
useSuccessMsg: !1,
|
|
1030
1038
|
useSysFailMsg: !0,
|
|
1031
|
-
useToken: !
|
|
1039
|
+
useToken: !e.url.startsWith("http"),
|
|
1032
1040
|
...e.meta ?? {}
|
|
1033
1041
|
};
|
|
1034
1042
|
let r = Qt(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: l, useLoading: u, useResponseBlob: d, useToken: f } = e.meta;
|
|
1035
1043
|
l || G().requestActive(), f && (r.token ? e.config.headers.Authorization = r.token : e.abort()), u !== !1 && i.show(u === !0 ? void 0 : u);
|
|
1036
1044
|
let p = e.config.params;
|
|
1037
|
-
if (typeof p != "string" && (e.config.params = un(p, o)), a &&
|
|
1045
|
+
if (typeof p != "string" && (e.config.params = un(p, o)), a && mt(e.data)) {
|
|
1038
1046
|
let t = {}, n = e.data;
|
|
1039
1047
|
Object.keys(n).forEach((e) => {
|
|
1040
1048
|
c(n[e]) || (t[e] = n[e]);
|
|
@@ -1065,35 +1073,32 @@ var X = yt({
|
|
|
1065
1073
|
},
|
|
1066
1074
|
onSuccess: async (e, t) => {
|
|
1067
1075
|
if (typeof e == "string") return e;
|
|
1068
|
-
let { useDataResult: r, useDownload: i, useFailMsg: a, useResponseBlob: o, useResponseText: s, useSuccessMsg: c, useSysFailMsg: l, useToken: u } = t.meta, { headers:
|
|
1069
|
-
if (
|
|
1076
|
+
let { useDataResult: r, useDownload: i, useFailMsg: a, useResponseBlob: o, useResponseText: s, useSuccessMsg: c, useSysFailMsg: l, useToken: u } = t.meta, { headers: f, ok: p, status: h } = e;
|
|
1077
|
+
if (p === !1) {
|
|
1070
1078
|
if (l) {
|
|
1071
1079
|
let e = {
|
|
1072
1080
|
403: "当前操作没有权限",
|
|
1073
1081
|
404: "访问资源不存在",
|
|
1074
1082
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1075
|
-
}[
|
|
1083
|
+
}[h] ?? cn;
|
|
1076
1084
|
m.error(e);
|
|
1077
1085
|
}
|
|
1078
1086
|
return Promise.reject(e);
|
|
1079
1087
|
}
|
|
1080
|
-
if (o && !
|
|
1088
|
+
if (o && !f.get("content-type")?.includes("application/json")) {
|
|
1081
1089
|
let t;
|
|
1082
1090
|
try {
|
|
1083
1091
|
t = await e.blob();
|
|
1084
1092
|
} catch (e) {
|
|
1085
1093
|
return n.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1086
1094
|
}
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
return t;
|
|
1095
|
+
return i !== !1 && dn({
|
|
1096
|
+
data: t,
|
|
1097
|
+
response: e,
|
|
1098
|
+
useDownload: i
|
|
1099
|
+
}), t;
|
|
1095
1100
|
}
|
|
1096
|
-
if (s && !
|
|
1101
|
+
if (s && !f.get("content-type")?.includes("application/json")) {
|
|
1097
1102
|
let t;
|
|
1098
1103
|
try {
|
|
1099
1104
|
t = await e.text();
|
|
@@ -1109,25 +1114,29 @@ var X = yt({
|
|
|
1109
1114
|
return n.error("返回的 response 不能被json() 方法所解析"), Promise.reject(e);
|
|
1110
1115
|
}
|
|
1111
1116
|
if (g?.code !== void 0) {
|
|
1112
|
-
let { code:
|
|
1113
|
-
if (
|
|
1114
|
-
if (
|
|
1115
|
-
if (d(
|
|
1117
|
+
let { code: t, data: s, msg: l } = g;
|
|
1118
|
+
if (t >= 400) {
|
|
1119
|
+
if (t === 600) {
|
|
1120
|
+
if (d(l).then((e) => {
|
|
1116
1121
|
W({
|
|
1117
|
-
body: () =>
|
|
1122
|
+
body: () => k("div", { innerHTML: e }),
|
|
1118
1123
|
cancelBtn: null
|
|
1119
1124
|
});
|
|
1120
1125
|
}), !o) return g;
|
|
1121
|
-
} else
|
|
1126
|
+
} else t === 401 && u ? J.push({ name: "Login" }) : a !== !1 && m.error(a === !0 ? l : a);
|
|
1122
1127
|
return Promise.reject(g);
|
|
1123
1128
|
}
|
|
1124
1129
|
{
|
|
1125
|
-
let
|
|
1126
|
-
code:
|
|
1127
|
-
data:
|
|
1128
|
-
msg:
|
|
1130
|
+
let a = vt.alovaResCodeSuccessCb?.({
|
|
1131
|
+
code: t,
|
|
1132
|
+
data: s,
|
|
1133
|
+
msg: l
|
|
1129
1134
|
});
|
|
1130
|
-
return
|
|
1135
|
+
return a === void 0 ? (i !== !1 && (typeof i == "string" ? dn({
|
|
1136
|
+
data: s,
|
|
1137
|
+
response: e,
|
|
1138
|
+
useDownload: i
|
|
1139
|
+
}) : n.error("下载失败,返回的不是一个有效的地址")), c && m(l), r ? s === void 0 ? g : s : g) : a;
|
|
1131
1140
|
}
|
|
1132
1141
|
}
|
|
1133
1142
|
return g;
|
|
@@ -1136,8 +1145,8 @@ var X = yt({
|
|
|
1136
1145
|
shareRequest: !1,
|
|
1137
1146
|
statesHook: xt,
|
|
1138
1147
|
timeout: sn
|
|
1139
|
-
}),
|
|
1140
|
-
function
|
|
1148
|
+
}), fn = /* @__PURE__ */ new Map();
|
|
1149
|
+
function pn(e) {
|
|
1141
1150
|
let t = X.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
1142
1151
|
cssClass: e.cssClass,
|
|
1143
1152
|
dictType: e.dictType,
|
|
@@ -1146,42 +1155,42 @@ function fn(e) {
|
|
|
1146
1155
|
value: e.dictValue
|
|
1147
1156
|
})));
|
|
1148
1157
|
e.forEach((e) => {
|
|
1149
|
-
|
|
1158
|
+
fn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
1150
1159
|
});
|
|
1151
1160
|
}
|
|
1152
|
-
var
|
|
1153
|
-
function
|
|
1154
|
-
return
|
|
1161
|
+
var mn = [];
|
|
1162
|
+
function hn(e) {
|
|
1163
|
+
return mn.includes(e) || mn.push(e), new Promise((t) => {
|
|
1155
1164
|
setTimeout(() => {
|
|
1156
|
-
let n =
|
|
1157
|
-
n.length > 0 &&
|
|
1165
|
+
let n = mn.filter((e) => !fn.has(e));
|
|
1166
|
+
n.length > 0 && pn(n), mn.length = 0, fn.get(e).then((e) => {
|
|
1158
1167
|
t(e);
|
|
1159
1168
|
});
|
|
1160
1169
|
});
|
|
1161
1170
|
});
|
|
1162
1171
|
}
|
|
1163
1172
|
var Z = /* @__PURE__ */ new Map();
|
|
1164
|
-
function
|
|
1165
|
-
|
|
1173
|
+
function gn() {
|
|
1174
|
+
mn.length = 0, fn.clear(), Z.clear();
|
|
1166
1175
|
}
|
|
1167
|
-
function
|
|
1168
|
-
let n =
|
|
1176
|
+
function _n(e, t) {
|
|
1177
|
+
let n = vn(e);
|
|
1169
1178
|
return t === void 0 ? p(n) : p(n, t);
|
|
1170
1179
|
}
|
|
1171
|
-
function
|
|
1180
|
+
function vn(e, t) {
|
|
1172
1181
|
let n;
|
|
1173
|
-
return Z.has(e) ? n = Z.get(e) : (n =
|
|
1182
|
+
return Z.has(e) ? n = Z.get(e) : (n = F([]), Z.set(e, n), hn(e).then((e) => {
|
|
1174
1183
|
n.value = e;
|
|
1175
|
-
})),
|
|
1184
|
+
})), x(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1176
1185
|
}
|
|
1177
|
-
function
|
|
1178
|
-
|
|
1186
|
+
function yn(e) {
|
|
1187
|
+
fn.delete(e), Z.has(e) && hn(e).then((t) => {
|
|
1179
1188
|
Z.get(e).value = t;
|
|
1180
1189
|
});
|
|
1181
1190
|
}
|
|
1182
1191
|
//#endregion
|
|
1183
1192
|
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
1184
|
-
var
|
|
1193
|
+
var bn = /* @__PURE__ */ D({
|
|
1185
1194
|
inheritAttrs: !1,
|
|
1186
1195
|
name: "TCheckboxGroup",
|
|
1187
1196
|
__name: "checkbox-group",
|
|
@@ -1208,17 +1217,17 @@ var yn = /* @__PURE__ */ E({
|
|
|
1208
1217
|
},
|
|
1209
1218
|
emits: ["update:modelValue"],
|
|
1210
1219
|
setup(e, { emit: t }) {
|
|
1211
|
-
let r = e, i = t, a =
|
|
1220
|
+
let r = e, i = t, a = O();
|
|
1212
1221
|
function o(e) {
|
|
1213
1222
|
a.exposed = e ?? {};
|
|
1214
1223
|
}
|
|
1215
|
-
let s =
|
|
1224
|
+
let s = x(() => {
|
|
1216
1225
|
let e;
|
|
1217
|
-
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e =
|
|
1226
|
+
return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e = vn(r.dicCode).value) : e = typeof r.options == "string" ? ae(r.options).value : r.options, r.showCheckAll && (e === void 0 ? n.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
1218
1227
|
checkAll: !0,
|
|
1219
1228
|
label: "全选"
|
|
1220
1229
|
})), e;
|
|
1221
|
-
}), u =
|
|
1230
|
+
}), u = x(() => {
|
|
1222
1231
|
if (!Array.isArray(r.modelValue)) n.error("TCheckboxGroup: modelValue must be an array");
|
|
1223
1232
|
else if (s.value !== void 0) {
|
|
1224
1233
|
let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
|
|
@@ -1226,13 +1235,13 @@ var yn = /* @__PURE__ */ E({
|
|
|
1226
1235
|
if (t) return r.modelValue.map((e) => l(e) ? Number(e) : e);
|
|
1227
1236
|
}
|
|
1228
1237
|
return r.modelValue;
|
|
1229
|
-
}), d =
|
|
1238
|
+
}), d = x(() => {
|
|
1230
1239
|
let e = { ...r };
|
|
1231
1240
|
return delete e.dicCode, delete e.showCheckAll, Object.keys(e).forEach((t) => {
|
|
1232
1241
|
e[t] === void 0 && delete e[t];
|
|
1233
1242
|
}), e;
|
|
1234
1243
|
});
|
|
1235
|
-
return (e, t) => (
|
|
1244
|
+
return (e, t) => (P(), S(L(k(z(Be), j(e.$attrs, {
|
|
1236
1245
|
...d.value,
|
|
1237
1246
|
options: s.value,
|
|
1238
1247
|
modelValue: u.value,
|
|
@@ -1242,10 +1251,10 @@ var yn = /* @__PURE__ */ E({
|
|
|
1242
1251
|
ref: o
|
|
1243
1252
|
}), e.$slots))));
|
|
1244
1253
|
}
|
|
1245
|
-
}),
|
|
1254
|
+
}), xn = /* @__PURE__ */ D({
|
|
1246
1255
|
inheritAttrs: !1,
|
|
1247
1256
|
__name: "cron",
|
|
1248
|
-
props: /*@__PURE__*/
|
|
1257
|
+
props: /*@__PURE__*/ A({
|
|
1249
1258
|
modelValue: {},
|
|
1250
1259
|
adornment: {},
|
|
1251
1260
|
align: {},
|
|
@@ -1290,19 +1299,19 @@ var yn = /* @__PURE__ */ E({
|
|
|
1290
1299
|
onPaste: { type: Function },
|
|
1291
1300
|
onValidate: { type: Function },
|
|
1292
1301
|
onWheel: { type: Function }
|
|
1293
|
-
},
|
|
1302
|
+
}, ce),
|
|
1294
1303
|
emits: ["update:modelValue"],
|
|
1295
1304
|
setup(e, { emit: t }) {
|
|
1296
|
-
let n = e, r = t, i =
|
|
1305
|
+
let n = e, r = t, i = we("isFormDisabled", x(() => !1)), a = we("isFormReadonly", x(() => !1)), o = x(() => {
|
|
1297
1306
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1298
1307
|
return {
|
|
1299
1308
|
...n,
|
|
1300
|
-
adornment: { append: () =>
|
|
1309
|
+
adornment: { append: () => k($, {
|
|
1301
1310
|
default: "cron",
|
|
1302
1311
|
onClick: () => {
|
|
1303
|
-
let i =
|
|
1312
|
+
let i = F(null);
|
|
1304
1313
|
W({
|
|
1305
|
-
body: () =>
|
|
1314
|
+
body: () => k(Se(() => import("../components/cron/src/Picker.mjs")), {
|
|
1306
1315
|
disabled: e,
|
|
1307
1316
|
modelValue: n.modelValue,
|
|
1308
1317
|
onVnodeMounted: (e) => {
|
|
@@ -1324,20 +1333,20 @@ var yn = /* @__PURE__ */ E({
|
|
|
1324
1333
|
variant: "text"
|
|
1325
1334
|
}) }
|
|
1326
1335
|
};
|
|
1327
|
-
}), s =
|
|
1336
|
+
}), s = Ne(), c = O();
|
|
1328
1337
|
function l(e) {
|
|
1329
1338
|
c.exposed = e ?? {};
|
|
1330
1339
|
}
|
|
1331
|
-
let u =
|
|
1340
|
+
let u = x(() => j(s, {
|
|
1332
1341
|
...o.value,
|
|
1333
1342
|
onChange: (...e) => {
|
|
1334
1343
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1335
1344
|
},
|
|
1336
1345
|
ref: l
|
|
1337
1346
|
}));
|
|
1338
|
-
return (e, t) => (
|
|
1347
|
+
return (e, t) => (P(), S(z(le), N(Ce(u.value)), null, 16));
|
|
1339
1348
|
}
|
|
1340
|
-
}),
|
|
1349
|
+
}), Sn = /* @__PURE__ */ D({
|
|
1341
1350
|
inheritAttrs: !1,
|
|
1342
1351
|
name: "TRadioGroup",
|
|
1343
1352
|
__name: "radio-group",
|
|
@@ -1367,16 +1376,16 @@ var yn = /* @__PURE__ */ E({
|
|
|
1367
1376
|
},
|
|
1368
1377
|
emits: ["update:modelValue"],
|
|
1369
1378
|
setup(e, { emit: t }) {
|
|
1370
|
-
let r = e, i = t, a =
|
|
1379
|
+
let r = e, i = t, a = O();
|
|
1371
1380
|
function o(e) {
|
|
1372
1381
|
a.exposed = e ?? {};
|
|
1373
1382
|
}
|
|
1374
|
-
let s =
|
|
1383
|
+
let s = x(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"), vn(r.dicCode).value) : typeof r.options == "string" ? ae(r.options).value : r.options), d = x(() => {
|
|
1375
1384
|
let e = { ...r };
|
|
1376
1385
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1377
1386
|
e[t] === void 0 && delete e[t];
|
|
1378
1387
|
}), e;
|
|
1379
|
-
}), f =
|
|
1388
|
+
}), f = x(() => {
|
|
1380
1389
|
if (s.value !== void 0 && !c(r.modelValue)) {
|
|
1381
1390
|
let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1382
1391
|
if (e) return u(r.modelValue);
|
|
@@ -1384,18 +1393,18 @@ var yn = /* @__PURE__ */ E({
|
|
|
1384
1393
|
}
|
|
1385
1394
|
return r.modelValue;
|
|
1386
1395
|
});
|
|
1387
|
-
return (e, t) => (
|
|
1396
|
+
return (e, t) => (P(), S(L(k(z(tt), j(e.$attrs, {
|
|
1388
1397
|
...d.value,
|
|
1389
1398
|
options: s.value,
|
|
1390
1399
|
modelValue: f.value,
|
|
1391
1400
|
onChange: (...e) => {
|
|
1392
|
-
let [t, ...n] = e, a =
|
|
1401
|
+
let [t, ...n] = e, a = z(c)(t) ? "" : t;
|
|
1393
1402
|
i("update:modelValue", a), r.onChange?.(a, ...n);
|
|
1394
1403
|
},
|
|
1395
1404
|
ref: o
|
|
1396
1405
|
}), e.$slots))));
|
|
1397
1406
|
}
|
|
1398
|
-
}),
|
|
1407
|
+
}), Cn = {
|
|
1399
1408
|
clearable: !0,
|
|
1400
1409
|
disabled: void 0,
|
|
1401
1410
|
filterable: void 0,
|
|
@@ -1416,11 +1425,11 @@ var yn = /* @__PURE__ */ E({
|
|
|
1416
1425
|
}),
|
|
1417
1426
|
showArrow: !0,
|
|
1418
1427
|
showCheckAll: !1
|
|
1419
|
-
},
|
|
1428
|
+
}, wn = /* @__PURE__ */ D({
|
|
1420
1429
|
inheritAttrs: !1,
|
|
1421
1430
|
name: "TSelect",
|
|
1422
1431
|
__name: "select",
|
|
1423
|
-
props: /*@__PURE__*/
|
|
1432
|
+
props: /*@__PURE__*/ A({
|
|
1424
1433
|
adornment: {},
|
|
1425
1434
|
dicCode: {},
|
|
1426
1435
|
modelValue: {},
|
|
@@ -1480,19 +1489,19 @@ var yn = /* @__PURE__ */ E({
|
|
|
1480
1489
|
onPopupVisibleChange: { type: Function },
|
|
1481
1490
|
onRemove: { type: Function },
|
|
1482
1491
|
onSearch: { type: Function }
|
|
1483
|
-
},
|
|
1492
|
+
}, Cn),
|
|
1484
1493
|
setup(e) {
|
|
1485
|
-
let t = e, r =
|
|
1494
|
+
let t = e, r = O();
|
|
1486
1495
|
function i(e) {
|
|
1487
1496
|
r.exposed = e ?? {};
|
|
1488
1497
|
}
|
|
1489
|
-
let a =
|
|
1498
|
+
let a = x(() => {
|
|
1490
1499
|
let e;
|
|
1491
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ?
|
|
1500
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? ae(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e = vn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? n.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
1492
1501
|
checkAll: !0,
|
|
1493
1502
|
[t.keys?.label ?? "label"]: "全选"
|
|
1494
1503
|
}) : n.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
1495
|
-
}), o =
|
|
1504
|
+
}), o = x(() => {
|
|
1496
1505
|
if (a.value !== void 0) {
|
|
1497
1506
|
let e = a.value.flatMap((e) => e.children ?? [e]), n = t.keys?.value ?? "value", r = e.every((e) => typeof e[n] == "string"), i = e.every((e) => typeof e[n] == "number");
|
|
1498
1507
|
if (t.multiple) {
|
|
@@ -1504,7 +1513,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
1504
1513
|
else if (i) return l(t.modelValue) ? Number(t.modelValue) : t.modelValue;
|
|
1505
1514
|
}
|
|
1506
1515
|
return t.modelValue;
|
|
1507
|
-
}), s =
|
|
1516
|
+
}), s = x(() => {
|
|
1508
1517
|
let e = {
|
|
1509
1518
|
...t,
|
|
1510
1519
|
filterable: t.filterable ?? a.value.length > 8
|
|
@@ -1512,15 +1521,15 @@ var yn = /* @__PURE__ */ E({
|
|
|
1512
1521
|
return delete e.dicCode, delete e.showCheckAll, delete e.adornment, Object.keys(e).forEach((t) => {
|
|
1513
1522
|
e[t] === void 0 && delete e[t];
|
|
1514
1523
|
}), e;
|
|
1515
|
-
}), d =
|
|
1516
|
-
|
|
1517
|
-
|
|
1524
|
+
}), d = F(0);
|
|
1525
|
+
De(() => {
|
|
1526
|
+
ft(r.exposed.$el, () => {
|
|
1518
1527
|
d.value = r.exposed.$el.offsetWidth;
|
|
1519
1528
|
}, { box: "border-box" });
|
|
1520
1529
|
});
|
|
1521
|
-
let f =
|
|
1530
|
+
let f = x(() => {
|
|
1522
1531
|
if (s.value.scroll?.type === "virtual" && a.value.length > (s.value.scroll?.threshold ?? 150)) return "300px";
|
|
1523
|
-
}), p =
|
|
1532
|
+
}), p = x(() => ({
|
|
1524
1533
|
...s.value,
|
|
1525
1534
|
modelValue: o.value,
|
|
1526
1535
|
onChange: (...e) => {
|
|
@@ -1538,16 +1547,16 @@ var yn = /* @__PURE__ */ E({
|
|
|
1538
1547
|
})
|
|
1539
1548
|
},
|
|
1540
1549
|
ref: i
|
|
1541
|
-
})), m =
|
|
1542
|
-
return (t, n) => e.adornment ? (
|
|
1550
|
+
})), m = Ze;
|
|
1551
|
+
return (t, n) => e.adornment ? (P(), S(L(k(z(m), t.$attrs, {
|
|
1543
1552
|
...e.adornment,
|
|
1544
|
-
default: () =>
|
|
1545
|
-
})), { key: 0 })) : (
|
|
1553
|
+
default: () => k(z(nt), p.value, t.$slots)
|
|
1554
|
+
})), { key: 0 })) : (P(), S(L(k(z(nt), j(t.$attrs, p.value), t.$slots)), { key: 1 }));
|
|
1546
1555
|
}
|
|
1547
|
-
}),
|
|
1556
|
+
}), Tn = /* @__PURE__ */ D({
|
|
1548
1557
|
inheritAttrs: !1,
|
|
1549
1558
|
__name: "select-sys-user",
|
|
1550
|
-
props: /*@__PURE__*/
|
|
1559
|
+
props: /*@__PURE__*/ A({
|
|
1551
1560
|
modelValue: {},
|
|
1552
1561
|
adornment: {},
|
|
1553
1562
|
autoWidth: { type: Boolean },
|
|
@@ -1586,19 +1595,19 @@ var yn = /* @__PURE__ */ E({
|
|
|
1586
1595
|
onMouseleave: { type: Function },
|
|
1587
1596
|
onPaste: { type: Function },
|
|
1588
1597
|
onRemove: { type: Function }
|
|
1589
|
-
},
|
|
1598
|
+
}, pe),
|
|
1590
1599
|
emits: ["update:modelValue"],
|
|
1591
1600
|
setup(e, { emit: t }) {
|
|
1592
|
-
let n = e, r = t, i =
|
|
1601
|
+
let n = e, r = t, i = we("isFormDisabled", x(() => !1)), a = we("isFormReadonly", x(() => !1)), o = x(() => {
|
|
1593
1602
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1594
1603
|
return {
|
|
1595
1604
|
...n,
|
|
1596
|
-
adornment: e || t ? void 0 : { append: () =>
|
|
1605
|
+
adornment: e || t ? void 0 : { append: () => k($, {
|
|
1597
1606
|
default: "选择用户",
|
|
1598
1607
|
onClick: () => {
|
|
1599
|
-
let e =
|
|
1608
|
+
let e = F(null);
|
|
1600
1609
|
W({
|
|
1601
|
-
body: () =>
|
|
1610
|
+
body: () => k(Se(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
1602
1611
|
max: n.max,
|
|
1603
1612
|
modelValue: n.modelValue,
|
|
1604
1613
|
onVnodeMounted: (t) => {
|
|
@@ -1619,11 +1628,11 @@ var yn = /* @__PURE__ */ E({
|
|
|
1619
1628
|
variant: "text"
|
|
1620
1629
|
}) }
|
|
1621
1630
|
};
|
|
1622
|
-
}), s =
|
|
1631
|
+
}), s = Ne(), c = O();
|
|
1623
1632
|
function l(e) {
|
|
1624
1633
|
c.exposed = e ?? {};
|
|
1625
1634
|
}
|
|
1626
|
-
let u =
|
|
1635
|
+
let u = x(() => j(s, {
|
|
1627
1636
|
...o.value,
|
|
1628
1637
|
inputProps: {
|
|
1629
1638
|
readonly: !0,
|
|
@@ -1635,19 +1644,19 @@ var yn = /* @__PURE__ */ E({
|
|
|
1635
1644
|
placeholder: "请选择用户",
|
|
1636
1645
|
ref: l
|
|
1637
1646
|
}));
|
|
1638
|
-
return (e, t) => (
|
|
1639
|
-
tag:
|
|
1647
|
+
return (e, t) => (P(), S(z(me), N(Ce(u.value)), {
|
|
1648
|
+
tag: V(({ value: e }) => [T(R(z(Yt)(e).value?.userName), 1)]),
|
|
1640
1649
|
_: 1
|
|
1641
1650
|
}, 16));
|
|
1642
1651
|
}
|
|
1643
|
-
}),
|
|
1652
|
+
}), En = {
|
|
1644
1653
|
checkable: !1,
|
|
1645
1654
|
disabled: void 0,
|
|
1646
1655
|
expandOnClickNode: void 0,
|
|
1647
1656
|
hover: !0,
|
|
1648
1657
|
icon: () => (e, t) => {
|
|
1649
1658
|
let n = "";
|
|
1650
|
-
return t.getChildren && t.getChildren(!1) && (t.expanded ? (n = "cuida:caret-down-outline", t.loading && (n = "line-md:loading-twotone-loop")) : n = "cuida:caret-right-outline"), n === "" ? null :
|
|
1659
|
+
return t.getChildren && t.getChildren(!1) && (t.expanded ? (n = "cuida:caret-down-outline", t.loading && (n = "line-md:loading-twotone-loop")) : n = "cuida:caret-right-outline"), n === "" ? null : k($, {
|
|
1651
1660
|
icon: n,
|
|
1652
1661
|
shape: "circle",
|
|
1653
1662
|
size: "small",
|
|
@@ -1659,11 +1668,11 @@ var yn = /* @__PURE__ */ E({
|
|
|
1659
1668
|
line: !0,
|
|
1660
1669
|
transition: !0,
|
|
1661
1670
|
valueMode: "all"
|
|
1662
|
-
},
|
|
1671
|
+
}, Dn = /* @__PURE__ */ D({
|
|
1663
1672
|
inheritAttrs: !1,
|
|
1664
1673
|
name: "TTree",
|
|
1665
1674
|
__name: "tree",
|
|
1666
|
-
props: /*@__PURE__*/
|
|
1675
|
+
props: /*@__PURE__*/ A({
|
|
1667
1676
|
icon: { type: [Function, Boolean] },
|
|
1668
1677
|
"onUpdate:actived": { type: Function },
|
|
1669
1678
|
"onUpdate:expanded": { type: Function },
|
|
@@ -1716,23 +1725,23 @@ var yn = /* @__PURE__ */ E({
|
|
|
1716
1725
|
onLoad: { type: Function },
|
|
1717
1726
|
onScroll: { type: Function },
|
|
1718
1727
|
treeStore: {}
|
|
1719
|
-
},
|
|
1728
|
+
}, En),
|
|
1720
1729
|
setup(e, { expose: t }) {
|
|
1721
|
-
let n = e, r =
|
|
1730
|
+
let n = e, r = Pe(), i = x(() => {
|
|
1722
1731
|
let e = { ...n };
|
|
1723
1732
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1724
1733
|
e[t] === void 0 && delete e[t];
|
|
1725
1734
|
}), e;
|
|
1726
|
-
}), a =
|
|
1735
|
+
}), a = O();
|
|
1727
1736
|
function o(e) {
|
|
1728
1737
|
a.exposed = e ?? {};
|
|
1729
1738
|
}
|
|
1730
|
-
return t({}), (e, t) => (
|
|
1739
|
+
return t({}), (e, t) => (P(), S(L(k(z(rt), j(e.$attrs, {
|
|
1731
1740
|
...i.value,
|
|
1732
1741
|
ref: o
|
|
1733
1742
|
}), e.$slots))));
|
|
1734
1743
|
}
|
|
1735
|
-
}),
|
|
1744
|
+
}), On = /* @__PURE__ */ D({
|
|
1736
1745
|
inheritAttrs: !1,
|
|
1737
1746
|
name: "TTreeSelect",
|
|
1738
1747
|
__name: "tree-select",
|
|
@@ -1799,30 +1808,30 @@ var yn = /* @__PURE__ */ E({
|
|
|
1799
1808
|
onSearch: {}
|
|
1800
1809
|
},
|
|
1801
1810
|
setup(e) {
|
|
1802
|
-
let t = e, n =
|
|
1811
|
+
let t = e, n = x(() => typeof t.data == "string" ? ae(t.data).value : t.data), r = x(() => {
|
|
1803
1812
|
let e = { ...t };
|
|
1804
1813
|
return e.selectInputProps = {
|
|
1805
1814
|
minCollapsedNum: 2,
|
|
1806
1815
|
...e.selectInputProps ?? {}
|
|
1807
1816
|
}, e.treeProps = {
|
|
1808
|
-
...
|
|
1817
|
+
...En,
|
|
1809
1818
|
checkable: !!t.multiple,
|
|
1810
1819
|
expandOnClickNode: !!t.multiple,
|
|
1811
|
-
icon:
|
|
1820
|
+
icon: En.icon(),
|
|
1812
1821
|
...e.treeProps ?? {}
|
|
1813
1822
|
}, Object.keys(e).forEach((t) => {
|
|
1814
1823
|
e[t] === void 0 && delete e[t];
|
|
1815
1824
|
}), e;
|
|
1816
|
-
}), i =
|
|
1825
|
+
}), i = O();
|
|
1817
1826
|
function a(e) {
|
|
1818
1827
|
i.exposed = e ?? {};
|
|
1819
1828
|
}
|
|
1820
|
-
let o =
|
|
1821
|
-
return
|
|
1822
|
-
|
|
1829
|
+
let o = F(0);
|
|
1830
|
+
return De(() => {
|
|
1831
|
+
ft(i.exposed.$el, () => {
|
|
1823
1832
|
o.value = i.exposed.$el.offsetWidth;
|
|
1824
1833
|
}, { box: "border-box" });
|
|
1825
|
-
}), (e, t) => (
|
|
1834
|
+
}), (e, t) => (P(), S(L(k(z(it), j(e.$attrs, {
|
|
1826
1835
|
...r.value,
|
|
1827
1836
|
data: n.value,
|
|
1828
1837
|
ref: a,
|
|
@@ -1836,10 +1845,10 @@ var yn = /* @__PURE__ */ E({
|
|
|
1836
1845
|
}
|
|
1837
1846
|
}), e.$slots))));
|
|
1838
1847
|
}
|
|
1839
|
-
}),
|
|
1848
|
+
}), kn = ".xlsx,.xls", An = { class: "flex items-center" }, jn = {
|
|
1840
1849
|
key: 1,
|
|
1841
1850
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1842
|
-
},
|
|
1851
|
+
}, Mn = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
1843
1852
|
inheritAttrs: !1,
|
|
1844
1853
|
name: "TUpload",
|
|
1845
1854
|
__name: "upload",
|
|
@@ -1848,7 +1857,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
1848
1857
|
"onUpdate:modelValue": {},
|
|
1849
1858
|
requestMethod: {},
|
|
1850
1859
|
abridgeName: {},
|
|
1851
|
-
accept: { default:
|
|
1860
|
+
accept: { default: kn },
|
|
1852
1861
|
allowUploadDuplicateFile: { type: Boolean },
|
|
1853
1862
|
autoUpload: { type: Boolean },
|
|
1854
1863
|
beforeAllFilesUpload: {},
|
|
@@ -1908,7 +1917,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
1908
1917
|
onWaitingUploadFilesChange: {}
|
|
1909
1918
|
},
|
|
1910
1919
|
setup(e, { expose: t }) {
|
|
1911
|
-
let n = e, r =
|
|
1920
|
+
let n = e, r = x(() => {
|
|
1912
1921
|
if (n.requestMethod !== void 0) return (e) => new Promise((t) => {
|
|
1913
1922
|
typeof n.requestMethod == "function" ? n.requestMethod(e).then((e) => {
|
|
1914
1923
|
t({
|
|
@@ -1941,48 +1950,48 @@ var yn = /* @__PURE__ */ E({
|
|
|
1941
1950
|
function i() {
|
|
1942
1951
|
typeof n.downloadTemplate == "string" ? f(n.downloadTemplate) : n.downloadTemplate.send();
|
|
1943
1952
|
}
|
|
1944
|
-
let a =
|
|
1953
|
+
let a = x(() => {
|
|
1945
1954
|
let e = { ...n };
|
|
1946
1955
|
return ["image", "image-flow"].includes(e.theme) && (e.accept = e.accept === ".xlsx,.xls" ? "image/*" : e.accept), Object.keys(e).forEach((t) => {
|
|
1947
1956
|
e[t] === void 0 && delete e[t];
|
|
1948
1957
|
}), delete e.downloadTemplate, e.theme === "file" && delete e.tips, e;
|
|
1949
|
-
}), o =
|
|
1958
|
+
}), o = O();
|
|
1950
1959
|
function s(e) {
|
|
1951
1960
|
o.exposed = e ?? {};
|
|
1952
1961
|
}
|
|
1953
|
-
return t({}), (t, o) => (
|
|
1962
|
+
return t({}), (t, o) => (P(), S(L(k(z(at), j(t.$attrs, {
|
|
1954
1963
|
...a.value,
|
|
1955
1964
|
requestMethod: r.value,
|
|
1956
1965
|
ref: s
|
|
1957
|
-
}, { class: a.value.theme }))), null,
|
|
1966
|
+
}, { class: a.value.theme }))), null, xe({ _: 2 }, [I(Object.keys(t.$slots), (e) => ({
|
|
1958
1967
|
name: e,
|
|
1959
|
-
fn:
|
|
1968
|
+
fn: V((n) => [Ae(t.$slots, e, N(Ce(n)), void 0, !0)])
|
|
1960
1969
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
1961
1970
|
name: "trigger",
|
|
1962
|
-
fn:
|
|
1963
|
-
|
|
1964
|
-
default:
|
|
1971
|
+
fn: V(({ files: t }) => [be("div", An, [
|
|
1972
|
+
E(z($), { theme: "primary" }, {
|
|
1973
|
+
default: V(() => [T(R(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
1965
1974
|
_: 2
|
|
1966
1975
|
}, 1024),
|
|
1967
|
-
e.downloadTemplate ? (
|
|
1976
|
+
e.downloadTemplate ? (P(), S(z($), {
|
|
1968
1977
|
key: 0,
|
|
1969
1978
|
theme: "primary",
|
|
1970
1979
|
variant: "outline",
|
|
1971
|
-
onClick:
|
|
1980
|
+
onClick: Ie(i, ["stop"])
|
|
1972
1981
|
}, {
|
|
1973
|
-
default:
|
|
1982
|
+
default: V(() => [...o[0] ||= [T("下载模板", -1)]]),
|
|
1974
1983
|
_: 1
|
|
1975
|
-
})) :
|
|
1976
|
-
n.tips ? (
|
|
1984
|
+
})) : C("v-if", !0),
|
|
1985
|
+
n.tips ? (P(), w("span", jn, R(n.tips), 1)) : C("v-if", !0)
|
|
1977
1986
|
])]),
|
|
1978
1987
|
key: "0"
|
|
1979
1988
|
} : void 0]), 1024));
|
|
1980
1989
|
}
|
|
1981
|
-
}), [["__scopeId", "data-v-51889a3b"]]),
|
|
1990
|
+
}), [["__scopeId", "data-v-51889a3b"]]), Nn = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
1982
1991
|
inheritAttrs: !1,
|
|
1983
1992
|
name: "TForm",
|
|
1984
1993
|
__name: "form",
|
|
1985
|
-
props: /*@__PURE__*/
|
|
1994
|
+
props: /*@__PURE__*/ A({
|
|
1986
1995
|
autoLabelWidth: { type: Boolean },
|
|
1987
1996
|
data: {},
|
|
1988
1997
|
items: {},
|
|
@@ -2008,7 +2017,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
2008
2017
|
onValidate: { type: Function }
|
|
2009
2018
|
}, Tt),
|
|
2010
2019
|
setup(e, { expose: t }) {
|
|
2011
|
-
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = vt, s =
|
|
2020
|
+
let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = vt, s = O(), l = F(null), u = x(() => r.items.map((e) => {
|
|
2012
2021
|
if (typeof e.__others == "function") {
|
|
2013
2022
|
let t = {
|
|
2014
2023
|
...e,
|
|
@@ -2048,36 +2057,36 @@ var yn = /* @__PURE__ */ E({
|
|
|
2048
2057
|
}
|
|
2049
2058
|
});
|
|
2050
2059
|
}
|
|
2051
|
-
|
|
2060
|
+
B(u, d, {
|
|
2052
2061
|
deep: 2,
|
|
2053
2062
|
immediate: !0
|
|
2054
|
-
}),
|
|
2063
|
+
}), B(() => r.data, () => {
|
|
2055
2064
|
n.error("TForm: data is changed");
|
|
2056
2065
|
});
|
|
2057
2066
|
let f = /* @__PURE__ */ new Map(), p = {
|
|
2058
2067
|
TCheckbox: a,
|
|
2059
|
-
TCheckboxGroup:
|
|
2060
|
-
TColorPicker:
|
|
2061
|
-
TCron:
|
|
2062
|
-
TDatePicker:
|
|
2063
|
-
TInput:
|
|
2064
|
-
TInputNumber:
|
|
2065
|
-
TRadioGroup:
|
|
2066
|
-
TRangeInput:
|
|
2067
|
-
TSelect:
|
|
2068
|
-
TSelectSysUser:
|
|
2069
|
-
TSlider:
|
|
2070
|
-
TSwitch:
|
|
2071
|
-
TTagInput:
|
|
2072
|
-
TTextarea:
|
|
2073
|
-
TTree:
|
|
2074
|
-
TTreeSelect:
|
|
2075
|
-
TUpload:
|
|
2068
|
+
TCheckboxGroup: bn,
|
|
2069
|
+
TColorPicker: se,
|
|
2070
|
+
TCron: xn,
|
|
2071
|
+
TDatePicker: ue,
|
|
2072
|
+
TInput: le,
|
|
2073
|
+
TInputNumber: de,
|
|
2074
|
+
TRadioGroup: Sn,
|
|
2075
|
+
TRangeInput: fe,
|
|
2076
|
+
TSelect: wn,
|
|
2077
|
+
TSelectSysUser: Tn,
|
|
2078
|
+
TSlider: he,
|
|
2079
|
+
TSwitch: ge,
|
|
2080
|
+
TTagInput: me,
|
|
2081
|
+
TTextarea: _e,
|
|
2082
|
+
TTree: Dn,
|
|
2083
|
+
TTreeSelect: On,
|
|
2084
|
+
TUpload: Mn
|
|
2076
2085
|
};
|
|
2077
2086
|
function h(e) {
|
|
2078
|
-
return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e,
|
|
2087
|
+
return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e, Se(o.get(e))), f.get(e)) : p[e] : le;
|
|
2079
2088
|
}
|
|
2080
|
-
function
|
|
2089
|
+
function g(e) {
|
|
2081
2090
|
let t = {};
|
|
2082
2091
|
for (let n in e) !n.startsWith("_") && ![
|
|
2083
2092
|
"component",
|
|
@@ -2086,7 +2095,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
2086
2095
|
].includes(n) && (t[n] = e[n]);
|
|
2087
2096
|
return t;
|
|
2088
2097
|
}
|
|
2089
|
-
function
|
|
2098
|
+
function _(e) {
|
|
2090
2099
|
let t = {};
|
|
2091
2100
|
for (let n in e) n.startsWith("_") && (t[n.slice(1)] = e[n]);
|
|
2092
2101
|
let n = [
|
|
@@ -2105,7 +2114,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
2105
2114
|
whitespace: !0
|
|
2106
2115
|
}), t;
|
|
2107
2116
|
}
|
|
2108
|
-
let
|
|
2117
|
+
let v = x(() => {
|
|
2109
2118
|
let e = { ...r };
|
|
2110
2119
|
if (e.rules !== void 0) {
|
|
2111
2120
|
let t = {};
|
|
@@ -2123,20 +2132,20 @@ var yn = /* @__PURE__ */ E({
|
|
|
2123
2132
|
return delete e.items, delete e.msgErrorWhenValidate, delete e.autoLabelWidth, Object.keys(e).forEach((t) => {
|
|
2124
2133
|
e[t] === void 0 && delete e[t];
|
|
2125
2134
|
}), e;
|
|
2126
|
-
}),
|
|
2135
|
+
}), y = () => {
|
|
2127
2136
|
let e = { ...r.data };
|
|
2128
2137
|
return u.value.forEach((t) => {
|
|
2129
2138
|
t.show === !1 && delete e[t.model];
|
|
2130
2139
|
}), e;
|
|
2131
2140
|
};
|
|
2132
|
-
function
|
|
2141
|
+
function ee(e) {
|
|
2133
2142
|
if (e !== null) {
|
|
2134
2143
|
let t = e;
|
|
2135
2144
|
if (!t.validate._alreadyReplace) {
|
|
2136
2145
|
let e = t.validate;
|
|
2137
2146
|
t.validate = (...t) => new Promise((n, i) => {
|
|
2138
2147
|
e(...t).then((e) => {
|
|
2139
|
-
e === !0 ? n(
|
|
2148
|
+
e === !0 ? n(y()) : (r.msgErrorWhenValidate && Object.keys(e).forEach((t) => {
|
|
2140
2149
|
e[t].forEach((e) => {
|
|
2141
2150
|
e.result === !1 && m.error(e.message);
|
|
2142
2151
|
});
|
|
@@ -2148,18 +2157,18 @@ var yn = /* @__PURE__ */ E({
|
|
|
2148
2157
|
let e = t.validateOnly;
|
|
2149
2158
|
t.validateOnly = (...t) => new Promise((n, r) => {
|
|
2150
2159
|
e(...t).then((e) => {
|
|
2151
|
-
e === !0 ? n(
|
|
2160
|
+
e === !0 ? n(y()) : r(e);
|
|
2152
2161
|
});
|
|
2153
2162
|
}), t.validateOnly._alreadyReplace = !0;
|
|
2154
2163
|
}
|
|
2155
2164
|
if (!t.clearValidate._alreadyReplace) {
|
|
2156
2165
|
let e = t.clearValidate;
|
|
2157
2166
|
t.clearValidate = (...t) => {
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2167
|
+
M(() => {
|
|
2168
|
+
M(() => {
|
|
2169
|
+
M(() => {
|
|
2170
|
+
M(() => {
|
|
2171
|
+
M(() => {
|
|
2163
2172
|
e(...t);
|
|
2164
2173
|
});
|
|
2165
2174
|
});
|
|
@@ -2168,7 +2177,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
2168
2177
|
});
|
|
2169
2178
|
}, t.clearValidate._alreadyReplace = !0;
|
|
2170
2179
|
}
|
|
2171
|
-
t.getFormData =
|
|
2180
|
+
t.getFormData = y, t.setFormData = (e, t) => {
|
|
2172
2181
|
let { ignoreKeys: n = [], isNotFalsy: i = !0, numberToStringKeys: a = [], override: o = {}, splitToArrKeys: s = [] } = t ?? {};
|
|
2173
2182
|
Object.keys(r.data).forEach((t) => {
|
|
2174
2183
|
n.includes(t) || (s.includes(t) ? r.data[t] = typeof e[t] == "string" ? e[t].split(",").filter(Boolean) : [] : i && c(e[t]) || (r.data[t] = e[t]), a.includes(t) && typeof r.data[t] == "number" && (r.data[t] = String(r.data[t])));
|
|
@@ -2178,21 +2187,21 @@ var yn = /* @__PURE__ */ E({
|
|
|
2178
2187
|
let t = e ?? {};
|
|
2179
2188
|
l.value = t, s.exposed = t;
|
|
2180
2189
|
}
|
|
2181
|
-
let
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2190
|
+
let b = Me();
|
|
2191
|
+
De(() => {
|
|
2192
|
+
b.value = s.exposed.$el.getElementsByClassName("t-form__label"), te(), dt(s.exposed.$el, () => {
|
|
2193
|
+
te();
|
|
2185
2194
|
}, {
|
|
2186
2195
|
attributeFilter: ["class"],
|
|
2187
2196
|
characterData: !0,
|
|
2188
2197
|
childList: !0,
|
|
2189
2198
|
subtree: !0
|
|
2190
|
-
}),
|
|
2191
|
-
|
|
2199
|
+
}), ft(s.exposed.$el, () => {
|
|
2200
|
+
te();
|
|
2192
2201
|
});
|
|
2193
2202
|
});
|
|
2194
|
-
function
|
|
2195
|
-
let e = [...
|
|
2203
|
+
function te() {
|
|
2204
|
+
let e = [...b.value];
|
|
2196
2205
|
if (e.forEach((e) => {
|
|
2197
2206
|
e.style.minWidth = "auto";
|
|
2198
2207
|
}), r.labelAlign === "top" || !r.autoLabelWidth) return;
|
|
@@ -2203,29 +2212,29 @@ var yn = /* @__PURE__ */ E({
|
|
|
2203
2212
|
e.style.minWidth = `${t}px`;
|
|
2204
2213
|
});
|
|
2205
2214
|
}
|
|
2206
|
-
return
|
|
2207
|
-
...
|
|
2208
|
-
ref:
|
|
2215
|
+
return Oe("formData", r.data), Oe("formExposed", l), Oe("isFormDisabled", x(() => r.disabled)), Oe("isFormReadonly", x(() => r.readonly)), t({}), (t, n) => (P(), w(ve, null, [C(" eslint-disable vue/no-mutating-props "), (P(), S(L(z(qe)), j(j(t.$attrs, {
|
|
2216
|
+
...v.value,
|
|
2217
|
+
ref: ee
|
|
2209
2218
|
}), { "label-width": "fit-content" }), {
|
|
2210
|
-
default:
|
|
2211
|
-
default:
|
|
2219
|
+
default: V(() => [(P(!0), w(ve, null, I(u.value.filter((e) => e.show !== !1), (n) => (P(), S(z(Je), j({ key: n.model ?? n.slot }, { ref_for: !0 }, j({ ..._(n) }, { class: { no_label_item: z(c)(n._label) } }), { name: n.model }), {
|
|
2220
|
+
default: V(() => [n.slot ? Ae(t.$slots, n.slot, {}, void 0, !0, 0) : (P(), S(L(h(n.component)), j({
|
|
2212
2221
|
key: 1,
|
|
2213
2222
|
modelValue: e.data[n.model],
|
|
2214
2223
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
2215
|
-
}, { ref_for: !0 },
|
|
2224
|
+
}, { ref_for: !0 }, g(n)), null, 16, ["modelValue", "onUpdate:modelValue"]))]),
|
|
2216
2225
|
_: 2
|
|
2217
2226
|
}, 1040, ["name"]))), 128))]),
|
|
2218
2227
|
_: 3
|
|
2219
2228
|
}, 16))], 2112));
|
|
2220
2229
|
}
|
|
2221
|
-
}), [["__scopeId", "data-v-d3f924b4"]]),
|
|
2230
|
+
}), [["__scopeId", "data-v-d3f924b4"]]), Pn = /* @__PURE__ */ D({
|
|
2222
2231
|
__name: "ResetPwd",
|
|
2223
2232
|
props: { showFooter: {
|
|
2224
2233
|
type: Boolean,
|
|
2225
2234
|
default: !0
|
|
2226
2235
|
} },
|
|
2227
2236
|
setup(e, { expose: t }) {
|
|
2228
|
-
let n =
|
|
2237
|
+
let n = U(), r = [
|
|
2229
2238
|
{
|
|
2230
2239
|
_label: "旧密码",
|
|
2231
2240
|
_required: !0,
|
|
@@ -2256,7 +2265,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
2256
2265
|
type: "password"
|
|
2257
2266
|
},
|
|
2258
2267
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
2259
|
-
], i =
|
|
2268
|
+
], i = Fe("form");
|
|
2260
2269
|
function a() {
|
|
2261
2270
|
K().close(n.name);
|
|
2262
2271
|
}
|
|
@@ -2273,21 +2282,21 @@ var yn = /* @__PURE__ */ E({
|
|
|
2273
2282
|
}
|
|
2274
2283
|
}), Qt().logout();
|
|
2275
2284
|
}
|
|
2276
|
-
return t({ handleSubmit: c }), (e, t) => (
|
|
2285
|
+
return t({ handleSubmit: c }), (e, t) => (P(), S(z(Nn), {
|
|
2277
2286
|
ref: "form",
|
|
2278
2287
|
items: r,
|
|
2279
2288
|
"label-align": "right",
|
|
2280
2289
|
layout: "vertical"
|
|
2281
2290
|
}, {
|
|
2282
|
-
footer:
|
|
2283
|
-
default:
|
|
2291
|
+
footer: V(() => [E(z($), { onClick: c }, {
|
|
2292
|
+
default: V(() => [...t[0] ||= [T("保存", -1)]]),
|
|
2284
2293
|
_: 1
|
|
2285
|
-
}),
|
|
2294
|
+
}), E(z($), {
|
|
2286
2295
|
class: "ml-4!",
|
|
2287
2296
|
theme: "default",
|
|
2288
2297
|
onClick: a
|
|
2289
2298
|
}, {
|
|
2290
|
-
default:
|
|
2299
|
+
default: V(() => [...t[1] ||= [T("关闭", -1)]]),
|
|
2291
2300
|
_: 1
|
|
2292
2301
|
})]),
|
|
2293
2302
|
_: 1
|
|
@@ -2296,34 +2305,34 @@ var yn = /* @__PURE__ */ E({
|
|
|
2296
2305
|
});
|
|
2297
2306
|
//#endregion
|
|
2298
2307
|
//#region ../../packages/dlzn-ui/store/modules/user.ts
|
|
2299
|
-
function
|
|
2308
|
+
function Fn() {
|
|
2300
2309
|
return X.Get("getInfo", { meta: {
|
|
2301
2310
|
useFailMsg: "获取用户信息失败",
|
|
2302
2311
|
useLoading: "正在获取用户信息..."
|
|
2303
2312
|
} });
|
|
2304
2313
|
}
|
|
2305
|
-
var
|
|
2314
|
+
var In = {
|
|
2306
2315
|
admin: !1,
|
|
2307
2316
|
dept: { deptName: "" },
|
|
2308
2317
|
needChangePwd: 0,
|
|
2309
2318
|
nickName: "",
|
|
2310
2319
|
userId: "",
|
|
2311
2320
|
userName: ""
|
|
2312
|
-
}, Q =
|
|
2313
|
-
let e =
|
|
2321
|
+
}, Q = H("user", () => {
|
|
2322
|
+
let e = F(pt(In)), t = F([]), n = F([]);
|
|
2314
2323
|
function r() {
|
|
2315
|
-
e.value =
|
|
2324
|
+
e.value = pt(In), t.value = [], n.value = [];
|
|
2316
2325
|
}
|
|
2317
|
-
let i =
|
|
2326
|
+
let i = x(() => e.value.admin), a = F("");
|
|
2318
2327
|
async function o(r = !0) {
|
|
2319
|
-
let i = await
|
|
2328
|
+
let i = await Fn();
|
|
2320
2329
|
e.value = i.user, a.value !== e.value.userId && K().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await zt().getRouters();
|
|
2321
2330
|
}
|
|
2322
|
-
|
|
2323
|
-
e === 1 && VITE_FORCE_PWD_CHANGE &&
|
|
2324
|
-
let e =
|
|
2331
|
+
B(() => e.value.needChangePwd, (e) => {
|
|
2332
|
+
e === 1 && VITE_FORCE_PWD_CHANGE && M(() => {
|
|
2333
|
+
let e = F(null);
|
|
2325
2334
|
W({
|
|
2326
|
-
body: () =>
|
|
2335
|
+
body: () => k(Pn, {
|
|
2327
2336
|
labelAlign: "top",
|
|
2328
2337
|
ref: e,
|
|
2329
2338
|
showFooter: !1
|
|
@@ -2354,11 +2363,11 @@ var Fn = {
|
|
|
2354
2363
|
roles: n,
|
|
2355
2364
|
userInfo: e
|
|
2356
2365
|
};
|
|
2357
|
-
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/
|
|
2366
|
+
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
2358
2367
|
inheritAttrs: !1,
|
|
2359
2368
|
name: "TButton",
|
|
2360
2369
|
__name: "button",
|
|
2361
|
-
props: /*@__PURE__*/
|
|
2370
|
+
props: /*@__PURE__*/ A({
|
|
2362
2371
|
autoIcon: { type: Boolean },
|
|
2363
2372
|
autoLoading: { type: Boolean },
|
|
2364
2373
|
autoTheme: { type: Boolean },
|
|
@@ -2397,7 +2406,7 @@ var Fn = {
|
|
|
2397
2406
|
] }
|
|
2398
2407
|
}, wt),
|
|
2399
2408
|
setup(n) {
|
|
2400
|
-
let r = n, a =
|
|
2409
|
+
let r = n, a = F("");
|
|
2401
2410
|
function o() {
|
|
2402
2411
|
if (!r.autoTheme || a.value.trim() === "") return {};
|
|
2403
2412
|
let e = /* @__PURE__ */ new Map([
|
|
@@ -2419,17 +2428,17 @@ var Fn = {
|
|
|
2419
2428
|
}
|
|
2420
2429
|
return t;
|
|
2421
2430
|
}
|
|
2422
|
-
let s =
|
|
2423
|
-
|
|
2431
|
+
let s = F(!1), c = i.isLoading, l = F(null), { focused: u } = ut(l), d, f;
|
|
2432
|
+
B(c, (e) => {
|
|
2424
2433
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2425
2434
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
2426
2435
|
}, 150)) : d === void 0 ? f = setTimeout(() => {
|
|
2427
2436
|
s.value = !1;
|
|
2428
2437
|
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
2429
|
-
}, { immediate: !0 }),
|
|
2438
|
+
}, { immediate: !0 }), B(u, (e) => {
|
|
2430
2439
|
e && c.value && (s.value = !0);
|
|
2431
2440
|
});
|
|
2432
|
-
let p =
|
|
2441
|
+
let p = x(() => r.loading === void 0 ? r.autoLoading ? s.value : !1 : r.loading), m = x(() => {
|
|
2433
2442
|
let e = {
|
|
2434
2443
|
...r,
|
|
2435
2444
|
...o(),
|
|
@@ -2438,15 +2447,15 @@ var Fn = {
|
|
|
2438
2447
|
return Object.keys(e).forEach((t) => {
|
|
2439
2448
|
e[t] === void 0 && delete e[t];
|
|
2440
2449
|
}), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
|
|
2441
|
-
}), h =
|
|
2442
|
-
function
|
|
2450
|
+
}), h = O();
|
|
2451
|
+
function g(e) {
|
|
2443
2452
|
let t = e ?? {};
|
|
2444
2453
|
h.exposed = t, l.value = t.$el;
|
|
2445
2454
|
}
|
|
2446
|
-
function
|
|
2455
|
+
function _() {
|
|
2447
2456
|
a.value = l.value?.textContent ?? "";
|
|
2448
2457
|
}
|
|
2449
|
-
let
|
|
2458
|
+
let v = x(() => {
|
|
2450
2459
|
if (!r.autoIcon || a.value.trim() === "") return;
|
|
2451
2460
|
let e = {
|
|
2452
2461
|
"mdi:plus": [
|
|
@@ -2503,17 +2512,18 @@ var Fn = {
|
|
|
2503
2512
|
"bi:journal-text": ["日志"],
|
|
2504
2513
|
"material-symbols:security": ["权限"],
|
|
2505
2514
|
"ri:wechat-channels-line": ["视频号"],
|
|
2506
|
-
"clarity:copy-line": ["复制"]
|
|
2515
|
+
"clarity:copy-line": ["复制"],
|
|
2516
|
+
"gravity-ui:handset-arrow-in": ["应答"]
|
|
2507
2517
|
}, t;
|
|
2508
2518
|
for (let [n, r] of Object.entries(e)) if (r.some((e) => a.value.includes(e))) {
|
|
2509
2519
|
t = n;
|
|
2510
2520
|
break;
|
|
2511
2521
|
}
|
|
2512
2522
|
if (t !== void 0) return t;
|
|
2513
|
-
}),
|
|
2523
|
+
}), y = Ne(), ee = x(() => j(y, {
|
|
2514
2524
|
...m.value,
|
|
2515
|
-
ref:
|
|
2516
|
-
}, { class: "flex-shrink-0" })),
|
|
2525
|
+
ref: g
|
|
2526
|
+
}, { class: "flex-shrink-0" })), b = x(() => {
|
|
2517
2527
|
if (r.popconfirm) return {
|
|
2518
2528
|
...r.popconfirm,
|
|
2519
2529
|
onVisibleChange: (...e) => {
|
|
@@ -2521,33 +2531,33 @@ var Fn = {
|
|
|
2521
2531
|
}
|
|
2522
2532
|
};
|
|
2523
2533
|
});
|
|
2524
|
-
return (r, i) =>
|
|
2525
|
-
default:
|
|
2526
|
-
onVnodeMounted:
|
|
2527
|
-
onVnodeUpdated:
|
|
2528
|
-
},
|
|
2534
|
+
return (r, i) => z(Q)().checkPermissions(n.permission) ? (P(), w(ve, { key: 0 }, [b.value ? (P(), S(z(t), N(j({ key: 0 }, b.value)), {
|
|
2535
|
+
default: V(() => [(P(), S(L(k(z(ze), ee.value)), {
|
|
2536
|
+
onVnodeMounted: _,
|
|
2537
|
+
onVnodeUpdated: _
|
|
2538
|
+
}, xe({ _: 2 }, [n.icon || v.value ? {
|
|
2529
2539
|
name: "icon",
|
|
2530
|
-
fn:
|
|
2540
|
+
fn: V(() => [E(z(e), { icon: n.icon || v.value }, null, 8, ["icon"])]),
|
|
2531
2541
|
key: "0"
|
|
2532
|
-
} : void 0,
|
|
2542
|
+
} : void 0, I(Object.keys(r.$slots), (e) => ({
|
|
2533
2543
|
name: e,
|
|
2534
|
-
fn:
|
|
2544
|
+
fn: V((t) => [Ae(r.$slots, e, N(Ce(t)), void 0, !0)])
|
|
2535
2545
|
}))]), 1536))]),
|
|
2536
2546
|
_: 3
|
|
2537
|
-
}, 16)) : (
|
|
2547
|
+
}, 16)) : (P(), S(L(k(z(ze), ee.value)), {
|
|
2538
2548
|
key: 1,
|
|
2539
|
-
onVnodeMounted:
|
|
2540
|
-
onVnodeUpdated:
|
|
2541
|
-
},
|
|
2549
|
+
onVnodeMounted: _,
|
|
2550
|
+
onVnodeUpdated: _
|
|
2551
|
+
}, xe({ _: 2 }, [n.icon || v.value ? {
|
|
2542
2552
|
name: "icon",
|
|
2543
|
-
fn:
|
|
2553
|
+
fn: V(() => [E(z(e), { icon: n.icon || v.value }, null, 8, ["icon"])]),
|
|
2544
2554
|
key: "0"
|
|
2545
|
-
} : void 0,
|
|
2555
|
+
} : void 0, I(Object.keys(r.$slots), (e) => ({
|
|
2546
2556
|
name: e,
|
|
2547
|
-
fn:
|
|
2548
|
-
}))]), 1536))], 64)) :
|
|
2557
|
+
fn: V((t) => [Ae(r.$slots, e, N(Ce(t)), void 0, !0)])
|
|
2558
|
+
}))]), 1536))], 64)) : C("v-if", !0);
|
|
2549
2559
|
}
|
|
2550
|
-
}), [["__scopeId", "data-v-
|
|
2560
|
+
}), [["__scopeId", "data-v-3e5dd427"]]), Ln = /* @__PURE__ */ D({
|
|
2551
2561
|
name: "TProvider",
|
|
2552
2562
|
__name: "Provider",
|
|
2553
2563
|
setup(e) {
|
|
@@ -2569,14 +2579,14 @@ var Fn = {
|
|
|
2569
2579
|
variant: "text"
|
|
2570
2580
|
})
|
|
2571
2581
|
} };
|
|
2572
|
-
return (e, n) => (
|
|
2582
|
+
return (e, n) => (P(), S(z(ot), {
|
|
2573
2583
|
"empty-values": [""],
|
|
2574
|
-
locale:
|
|
2584
|
+
locale: z(Ct),
|
|
2575
2585
|
"value-on-clear": "",
|
|
2576
2586
|
"z-index": 5500
|
|
2577
2587
|
}, {
|
|
2578
|
-
default:
|
|
2579
|
-
default:
|
|
2588
|
+
default: V(() => [E(z(Ve), { "global-config": t }, {
|
|
2589
|
+
default: V(() => [Ae(e.$slots, "default")]),
|
|
2580
2590
|
_: 3
|
|
2581
2591
|
})]),
|
|
2582
2592
|
_: 3
|
|
@@ -2584,4 +2594,4 @@ var Fn = {
|
|
|
2584
2594
|
}
|
|
2585
2595
|
});
|
|
2586
2596
|
//#endregion
|
|
2587
|
-
export { en as A, G as B, ln as C, J as D, on as E, Ht as F, kt as H, Vt as I, jt as L, qt as M, Jt as N, an as O, Yt as P, zt as R, X as S, Y as T, Tt as U, W as V, wt as W,
|
|
2597
|
+
export { en as A, G as B, ln as C, J as D, on as E, Ht as F, kt as H, Vt as I, jt as L, qt as M, Jt as N, an as O, Yt as P, zt as R, X as S, Y as T, Tt as U, W as V, wt as W, bn as _, Pn as a, vn as b, kn as c, En as d, Tn as f, xn as g, Sn as h, Q as i, Qt as j, tn as k, On as l, Cn as m, $ as n, Nn as o, wn as p, Fn as r, Mn as s, Ln as t, Dn as u, gn as v, un as w, yn as x, _n as y, K as z };
|