dlzn-ui 2.0.56 → 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-BBCGISR5.css → provider-B7Qp92IB.css} +1 -1
- package/chunks/{AssignUser-DFGKVyHA.mjs → AssignUser-oglCtKHG.mjs} +3 -3
- package/chunks/{BasicInfo-oYAekSwI.mjs → BasicInfo-BP7Cq7Nn.mjs} +1 -1
- package/chunks/{ColumnInfo-CVSldNXs.mjs → ColumnInfo-DU-3CPaF.mjs} +2 -2
- package/chunks/{Common-DDWrIunx.mjs → Common-xF3rgkl_.mjs} +1 -1
- package/chunks/{Day-Che8kW_B.mjs → Day-BJBhn5l0.mjs} +1 -1
- package/chunks/{DictTypeDetail-vPGWHXOl.mjs → DictTypeDetail-ihwR7SU2.mjs} +2 -2
- package/chunks/{GenInfo-BcwpyZSj.mjs → GenInfo-Dl4cpgZY.mjs} +1 -1
- package/chunks/{Hour-BoXdhMMY.mjs → Hour-DpwS9a-q.mjs} +1 -1
- package/chunks/{Import-BVbnDZt3.mjs → Import-BIXTovMr.mjs} +2 -2
- package/chunks/{Index-CnjpeIQL.mjs → Index--sidPxQN.mjs} +1 -1
- package/chunks/{Index-CxEYiUa-.mjs → Index-CAZBEZJ7.mjs} +1 -1
- package/chunks/{Index-C1v5EsZk.mjs → Index-DF_Aprat.mjs} +1 -1
- package/chunks/{Index-xoyD_qOp.mjs → Index-L-E7LpNu.mjs} +1 -1
- package/chunks/{IndexItem-BT-IQMY5.mjs → IndexItem-CZYIE2fp.mjs} +1 -1
- package/chunks/{Log-DOEaFtk1.mjs → Log-BmaGIKEs.mjs} +2 -2
- package/chunks/{LoginBg-YM4US_NO.mjs → LoginBg-DsWLmvhl.mjs} +1 -1
- package/chunks/{Minute-BJpoCyM8.mjs → Minute-s_LSMXJf.mjs} +1 -1
- package/chunks/{Month-UU1z-xQV.mjs → Month-DysmTEdT.mjs} +1 -1
- package/chunks/{Preview-SqQ2UnMr.mjs → Preview-DMGlG72W.mjs} +1 -1
- package/chunks/{Second-BOsQlzmK.mjs → Second-ByN9BJpo.mjs} +1 -1
- package/chunks/{SelectDept-DJciskzT.mjs → SelectDept-CakQvq5T.mjs} +1 -1
- package/chunks/{SelectMenu-7XAtNOza.mjs → SelectMenu-DlFwZ8W1.mjs} +1 -1
- package/chunks/{SelectUser-ChPXL5SD.mjs → SelectUser-BKrJzbyH.mjs} +2 -2
- package/chunks/{UserInfo-Bzdeuht7.mjs → UserInfo-sHWccJvI.mjs} +2 -3
- package/chunks/{app-CouSbYl9.mjs → app-aRuMVKMG.mjs} +1 -1
- package/chunks/{custom-page-list-ijqPjUG8.mjs → custom-page-list-Cot36K-w.mjs} +4 -4
- package/chunks/{custom-page-table-CUlGWxoP.mjs → custom-page-table-PhbvFX4q.mjs} +2 -2
- package/chunks/{overview-ZgCAiVFV.mjs → overview-CBfHin5S.mjs} +1 -1
- package/chunks/{page-list-DsgM0XRF.mjs → page-list-UaWlQCGJ.mjs} +3 -3
- package/chunks/{page-query-D-9Bfc2i.mjs → page-query-DXjfqqEc.mjs} +1 -1
- package/chunks/{page-table-BNO8b2RS.mjs → page-table-DWTtXk3Z.mjs} +3 -3
- package/chunks/{pagination-CQP7D64K.mjs → pagination-DTDBl9h8.mjs} +1 -1
- package/chunks/{provider-Bb25LOJZ.mjs → provider-CNLV7Wbf.mjs} +368 -361
- package/chunks/{table-v44larO2.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/proj-template/package.json +0 -5
- 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/types/env.d.ts +1 -0
- 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 -22
|
@@ -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,49 +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
|
-
|
|
756
|
-
icon: "material-symbols:account-circle"
|
|
757
|
-
})]),
|
|
758
|
-
suffix: B(() => [T(R(e), {
|
|
754
|
+
icon: V(() => [E(z(e), { icon: "material-symbols:account-circle" })]),
|
|
755
|
+
suffix: V(() => [E(z(e), {
|
|
759
756
|
icon: "icon-park-outline:down",
|
|
760
757
|
size: "18"
|
|
761
758
|
})]),
|
|
762
|
-
default:
|
|
759
|
+
default: V(() => [T(" " + R(z(i).userInfo.userName) + " ", 1)]),
|
|
763
760
|
_: 1
|
|
764
761
|
}))]),
|
|
765
762
|
_: 1
|
|
766
763
|
}, 8, ["options"])]),
|
|
767
|
-
default:
|
|
764
|
+
default: V(() => [(P(!0), w(ve, null, I(z(o).recentRouters, (t) => (P(), S(z(et), {
|
|
768
765
|
key: t.name,
|
|
769
766
|
value: t.name,
|
|
770
767
|
onContextmenu: (e) => d(e, t.name)
|
|
771
768
|
}, {
|
|
772
|
-
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($), {
|
|
773
770
|
key: 0,
|
|
774
771
|
class: "ml-1!",
|
|
775
772
|
shape: "square",
|
|
776
773
|
size: "small",
|
|
777
774
|
variant: "text",
|
|
778
|
-
onClick:
|
|
775
|
+
onClick: Ie((e) => c(t.name), ["stop"])
|
|
779
776
|
}, {
|
|
780
|
-
icon:
|
|
777
|
+
icon: V(() => [E(z(e), {
|
|
781
778
|
icon: "material-symbols:close",
|
|
782
779
|
style: { "font-size": "12px !important" }
|
|
783
780
|
})]),
|
|
784
781
|
_: 1
|
|
785
|
-
}, 8, ["onClick"])) :
|
|
782
|
+
}, 8, ["onClick"])) : C("v-if", !0)])]),
|
|
786
783
|
_: 2
|
|
787
784
|
}, 1032, ["value", "onContextmenu"]))), 128))]),
|
|
788
785
|
_: 1
|
|
@@ -790,40 +787,40 @@ var Qt = V("login", () => {
|
|
|
790
787
|
_: 1
|
|
791
788
|
}));
|
|
792
789
|
}
|
|
793
|
-
}), [["__scopeId", "data-v-
|
|
790
|
+
}), [["__scopeId", "data-v-516f6ba1"]]), tn = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
794
791
|
__name: "Entry",
|
|
795
792
|
setup(e) {
|
|
796
|
-
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);
|
|
797
794
|
function f({ size: e }) {
|
|
798
795
|
n.drawerSize = e;
|
|
799
796
|
}
|
|
800
|
-
let p =
|
|
797
|
+
let p = x(() => t.meta.fullScreen);
|
|
801
798
|
return (e, t) => {
|
|
802
|
-
let r =
|
|
803
|
-
return p.value ? (
|
|
804
|
-
default:
|
|
799
|
+
let r = je("RouterView");
|
|
800
|
+
return p.value ? (P(), S(r, { key: 0 }, {
|
|
801
|
+
default: V(({ Component: e }) => [(P(), S(L(e)))]),
|
|
805
802
|
_: 1
|
|
806
|
-
})) : (
|
|
803
|
+
})) : (P(), S(z(Qe), {
|
|
807
804
|
key: 1,
|
|
808
805
|
class: "h-full"
|
|
809
806
|
}, {
|
|
810
|
-
default:
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
visible:
|
|
814
|
-
"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,
|
|
815
812
|
footer: !1,
|
|
816
|
-
mode:
|
|
813
|
+
mode: z(l) ? "overlay" : "push",
|
|
817
814
|
placement: "left",
|
|
818
|
-
"show-overlay":
|
|
819
|
-
size:
|
|
815
|
+
"show-overlay": z(l),
|
|
816
|
+
size: z(l) ? "200px" : `${z(n).drawerSize}px`,
|
|
820
817
|
"size-draggable": {
|
|
821
818
|
max: 450,
|
|
822
819
|
min: 180
|
|
823
820
|
},
|
|
824
821
|
onSizeDragEnd: f
|
|
825
822
|
}, {
|
|
826
|
-
default:
|
|
823
|
+
default: V(() => [E(Vt, { class: "no_drawer_body_padding" })]),
|
|
827
824
|
_: 1
|
|
828
825
|
}, 8, [
|
|
829
826
|
"visible",
|
|
@@ -831,27 +828,27 @@ var Qt = V("login", () => {
|
|
|
831
828
|
"show-overlay",
|
|
832
829
|
"size"
|
|
833
830
|
]),
|
|
834
|
-
|
|
831
|
+
E(z(He), {
|
|
835
832
|
ref_key: "contentRef",
|
|
836
833
|
ref: u,
|
|
837
834
|
class: "overflow-hidden"
|
|
838
835
|
}, {
|
|
839
|
-
default:
|
|
836
|
+
default: V(() => [E(z(g), {
|
|
840
837
|
always: "",
|
|
841
|
-
"view-class":
|
|
838
|
+
"view-class": Ee(["relative flex flex-col", {
|
|
842
839
|
...c.value,
|
|
843
840
|
"pt-8": s.value
|
|
844
841
|
}]),
|
|
845
842
|
"view-style": {
|
|
846
843
|
minWidth: "1200px",
|
|
847
|
-
minHeight: `${Math.max(
|
|
844
|
+
minHeight: `${Math.max(z(d), 438)}px`
|
|
848
845
|
}
|
|
849
846
|
}, {
|
|
850
|
-
default:
|
|
851
|
-
default:
|
|
852
|
-
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,
|
|
853
850
|
include: a.value
|
|
854
|
-
}, [(
|
|
851
|
+
}, [(P(), S(L(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
|
|
855
852
|
_: 1
|
|
856
853
|
})]),
|
|
857
854
|
_: 1
|
|
@@ -865,7 +862,7 @@ var Qt = V("login", () => {
|
|
|
865
862
|
}
|
|
866
863
|
}), [["__scopeId", "data-v-de5cbc76"]]), nn = /* @__PURE__ */ new Set();
|
|
867
864
|
function rn(e, t) {
|
|
868
|
-
let n =
|
|
865
|
+
let n = x(() => typeof e.body == "function" ? e.body(k) : e.body), i = {
|
|
869
866
|
attach: "#app",
|
|
870
867
|
closeOnEscKeydown: !1,
|
|
871
868
|
closeOnOverlayClick: !1,
|
|
@@ -875,14 +872,14 @@ function rn(e, t) {
|
|
|
875
872
|
lazy: !0,
|
|
876
873
|
sizeDraggable: !0,
|
|
877
874
|
...e ?? {},
|
|
878
|
-
body: () =>
|
|
875
|
+
body: () => k(Ln, {}, { default: () => n.value })
|
|
879
876
|
}, a, o = {
|
|
880
877
|
...i,
|
|
881
878
|
onClose: (e) => {
|
|
882
879
|
i.onClose?.(e), nn.delete(a);
|
|
883
880
|
}
|
|
884
881
|
};
|
|
885
|
-
return delete o.closeWhenCloseAll, a =
|
|
882
|
+
return delete o.closeWhenCloseAll, a = Ge(o, t ?? r()), i.closeWhenCloseAll && nn.add(a), a;
|
|
886
883
|
}
|
|
887
884
|
var an = function(...e) {
|
|
888
885
|
return rn(...e);
|
|
@@ -927,8 +924,8 @@ function on() {
|
|
|
927
924
|
path: "/"
|
|
928
925
|
};
|
|
929
926
|
}
|
|
930
|
-
var J =
|
|
931
|
-
history:
|
|
927
|
+
var J = ht({
|
|
928
|
+
history: gt(VITE_BASE_URL),
|
|
932
929
|
routes: [
|
|
933
930
|
on(),
|
|
934
931
|
{
|
|
@@ -975,7 +972,7 @@ var J = gt({
|
|
|
975
972
|
strict: !0
|
|
976
973
|
});
|
|
977
974
|
J.beforeEach(async (e) => {
|
|
978
|
-
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({
|
|
979
976
|
path: e.path,
|
|
980
977
|
query: e.query
|
|
981
978
|
}));
|
|
@@ -995,7 +992,7 @@ J.beforeEach(async (e) => {
|
|
|
995
992
|
query: e.query
|
|
996
993
|
});
|
|
997
994
|
}
|
|
998
|
-
|
|
995
|
+
y().remove(i);
|
|
999
996
|
});
|
|
1000
997
|
function Y(e) {
|
|
1001
998
|
if (J.hasRoute(e)) return J.getRoutes().find((t) => t.name === e);
|
|
@@ -1012,6 +1009,14 @@ function ln(e, t = !0) {
|
|
|
1012
1009
|
function un(e, t = !0) {
|
|
1013
1010
|
return new URLSearchParams(ln(e, t)).toString();
|
|
1014
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
|
+
}
|
|
1015
1020
|
var X = yt({
|
|
1016
1021
|
baseURL: VITE_BASE_URL,
|
|
1017
1022
|
beforeRequest(e) {
|
|
@@ -1031,13 +1036,13 @@ var X = yt({
|
|
|
1031
1036
|
useResponseText: !1,
|
|
1032
1037
|
useSuccessMsg: !1,
|
|
1033
1038
|
useSysFailMsg: !0,
|
|
1034
|
-
useToken: !
|
|
1039
|
+
useToken: !e.url.startsWith("http"),
|
|
1035
1040
|
...e.meta ?? {}
|
|
1036
1041
|
};
|
|
1037
1042
|
let r = Qt(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: l, useLoading: u, useResponseBlob: d, useToken: f } = e.meta;
|
|
1038
1043
|
l || G().requestActive(), f && (r.token ? e.config.headers.Authorization = r.token : e.abort()), u !== !1 && i.show(u === !0 ? void 0 : u);
|
|
1039
1044
|
let p = e.config.params;
|
|
1040
|
-
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)) {
|
|
1041
1046
|
let t = {}, n = e.data;
|
|
1042
1047
|
Object.keys(n).forEach((e) => {
|
|
1043
1048
|
c(n[e]) || (t[e] = n[e]);
|
|
@@ -1068,35 +1073,32 @@ var X = yt({
|
|
|
1068
1073
|
},
|
|
1069
1074
|
onSuccess: async (e, t) => {
|
|
1070
1075
|
if (typeof e == "string") return e;
|
|
1071
|
-
let { useDataResult: r, useDownload: i, useFailMsg: a, useResponseBlob: o, useResponseText: s, useSuccessMsg: c, useSysFailMsg: l, useToken: u } = t.meta, { headers:
|
|
1072
|
-
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) {
|
|
1073
1078
|
if (l) {
|
|
1074
1079
|
let e = {
|
|
1075
1080
|
403: "当前操作没有权限",
|
|
1076
1081
|
404: "访问资源不存在",
|
|
1077
1082
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1078
|
-
}[
|
|
1083
|
+
}[h] ?? cn;
|
|
1079
1084
|
m.error(e);
|
|
1080
1085
|
}
|
|
1081
1086
|
return Promise.reject(e);
|
|
1082
1087
|
}
|
|
1083
|
-
if (o && !
|
|
1088
|
+
if (o && !f.get("content-type")?.includes("application/json")) {
|
|
1084
1089
|
let t;
|
|
1085
1090
|
try {
|
|
1086
1091
|
t = await e.blob();
|
|
1087
1092
|
} catch (e) {
|
|
1088
1093
|
return n.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1089
1094
|
}
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
return t;
|
|
1095
|
+
return i !== !1 && dn({
|
|
1096
|
+
data: t,
|
|
1097
|
+
response: e,
|
|
1098
|
+
useDownload: i
|
|
1099
|
+
}), t;
|
|
1098
1100
|
}
|
|
1099
|
-
if (s && !
|
|
1101
|
+
if (s && !f.get("content-type")?.includes("application/json")) {
|
|
1100
1102
|
let t;
|
|
1101
1103
|
try {
|
|
1102
1104
|
t = await e.text();
|
|
@@ -1112,25 +1114,29 @@ var X = yt({
|
|
|
1112
1114
|
return n.error("返回的 response 不能被json() 方法所解析"), Promise.reject(e);
|
|
1113
1115
|
}
|
|
1114
1116
|
if (g?.code !== void 0) {
|
|
1115
|
-
let { code:
|
|
1116
|
-
if (
|
|
1117
|
-
if (
|
|
1118
|
-
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) => {
|
|
1119
1121
|
W({
|
|
1120
|
-
body: () =>
|
|
1122
|
+
body: () => k("div", { innerHTML: e }),
|
|
1121
1123
|
cancelBtn: null
|
|
1122
1124
|
});
|
|
1123
1125
|
}), !o) return g;
|
|
1124
|
-
} else
|
|
1126
|
+
} else t === 401 && u ? J.push({ name: "Login" }) : a !== !1 && m.error(a === !0 ? l : a);
|
|
1125
1127
|
return Promise.reject(g);
|
|
1126
1128
|
}
|
|
1127
1129
|
{
|
|
1128
|
-
let
|
|
1129
|
-
code:
|
|
1130
|
-
data:
|
|
1131
|
-
msg:
|
|
1130
|
+
let a = vt.alovaResCodeSuccessCb?.({
|
|
1131
|
+
code: t,
|
|
1132
|
+
data: s,
|
|
1133
|
+
msg: l
|
|
1132
1134
|
});
|
|
1133
|
-
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;
|
|
1134
1140
|
}
|
|
1135
1141
|
}
|
|
1136
1142
|
return g;
|
|
@@ -1139,8 +1145,8 @@ var X = yt({
|
|
|
1139
1145
|
shareRequest: !1,
|
|
1140
1146
|
statesHook: xt,
|
|
1141
1147
|
timeout: sn
|
|
1142
|
-
}),
|
|
1143
|
-
function
|
|
1148
|
+
}), fn = /* @__PURE__ */ new Map();
|
|
1149
|
+
function pn(e) {
|
|
1144
1150
|
let t = X.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
1145
1151
|
cssClass: e.cssClass,
|
|
1146
1152
|
dictType: e.dictType,
|
|
@@ -1149,42 +1155,42 @@ function fn(e) {
|
|
|
1149
1155
|
value: e.dictValue
|
|
1150
1156
|
})));
|
|
1151
1157
|
e.forEach((e) => {
|
|
1152
|
-
|
|
1158
|
+
fn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
|
|
1153
1159
|
});
|
|
1154
1160
|
}
|
|
1155
|
-
var
|
|
1156
|
-
function
|
|
1157
|
-
return
|
|
1161
|
+
var mn = [];
|
|
1162
|
+
function hn(e) {
|
|
1163
|
+
return mn.includes(e) || mn.push(e), new Promise((t) => {
|
|
1158
1164
|
setTimeout(() => {
|
|
1159
|
-
let n =
|
|
1160
|
-
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) => {
|
|
1161
1167
|
t(e);
|
|
1162
1168
|
});
|
|
1163
1169
|
});
|
|
1164
1170
|
});
|
|
1165
1171
|
}
|
|
1166
1172
|
var Z = /* @__PURE__ */ new Map();
|
|
1167
|
-
function
|
|
1168
|
-
|
|
1173
|
+
function gn() {
|
|
1174
|
+
mn.length = 0, fn.clear(), Z.clear();
|
|
1169
1175
|
}
|
|
1170
|
-
function
|
|
1171
|
-
let n =
|
|
1176
|
+
function _n(e, t) {
|
|
1177
|
+
let n = vn(e);
|
|
1172
1178
|
return t === void 0 ? p(n) : p(n, t);
|
|
1173
1179
|
}
|
|
1174
|
-
function
|
|
1180
|
+
function vn(e, t) {
|
|
1175
1181
|
let n;
|
|
1176
|
-
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) => {
|
|
1177
1183
|
n.value = e;
|
|
1178
|
-
})),
|
|
1184
|
+
})), x(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1179
1185
|
}
|
|
1180
|
-
function
|
|
1181
|
-
|
|
1186
|
+
function yn(e) {
|
|
1187
|
+
fn.delete(e), Z.has(e) && hn(e).then((t) => {
|
|
1182
1188
|
Z.get(e).value = t;
|
|
1183
1189
|
});
|
|
1184
1190
|
}
|
|
1185
1191
|
//#endregion
|
|
1186
1192
|
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
1187
|
-
var
|
|
1193
|
+
var bn = /* @__PURE__ */ D({
|
|
1188
1194
|
inheritAttrs: !1,
|
|
1189
1195
|
name: "TCheckboxGroup",
|
|
1190
1196
|
__name: "checkbox-group",
|
|
@@ -1211,17 +1217,17 @@ var yn = /* @__PURE__ */ E({
|
|
|
1211
1217
|
},
|
|
1212
1218
|
emits: ["update:modelValue"],
|
|
1213
1219
|
setup(e, { emit: t }) {
|
|
1214
|
-
let r = e, i = t, a =
|
|
1220
|
+
let r = e, i = t, a = O();
|
|
1215
1221
|
function o(e) {
|
|
1216
1222
|
a.exposed = e ?? {};
|
|
1217
1223
|
}
|
|
1218
|
-
let s =
|
|
1224
|
+
let s = x(() => {
|
|
1219
1225
|
let e;
|
|
1220
|
-
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({
|
|
1221
1227
|
checkAll: !0,
|
|
1222
1228
|
label: "全选"
|
|
1223
1229
|
})), e;
|
|
1224
|
-
}), u =
|
|
1230
|
+
}), u = x(() => {
|
|
1225
1231
|
if (!Array.isArray(r.modelValue)) n.error("TCheckboxGroup: modelValue must be an array");
|
|
1226
1232
|
else if (s.value !== void 0) {
|
|
1227
1233
|
let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
|
|
@@ -1229,13 +1235,13 @@ var yn = /* @__PURE__ */ E({
|
|
|
1229
1235
|
if (t) return r.modelValue.map((e) => l(e) ? Number(e) : e);
|
|
1230
1236
|
}
|
|
1231
1237
|
return r.modelValue;
|
|
1232
|
-
}), d =
|
|
1238
|
+
}), d = x(() => {
|
|
1233
1239
|
let e = { ...r };
|
|
1234
1240
|
return delete e.dicCode, delete e.showCheckAll, Object.keys(e).forEach((t) => {
|
|
1235
1241
|
e[t] === void 0 && delete e[t];
|
|
1236
1242
|
}), e;
|
|
1237
1243
|
});
|
|
1238
|
-
return (e, t) => (
|
|
1244
|
+
return (e, t) => (P(), S(L(k(z(Be), j(e.$attrs, {
|
|
1239
1245
|
...d.value,
|
|
1240
1246
|
options: s.value,
|
|
1241
1247
|
modelValue: u.value,
|
|
@@ -1245,10 +1251,10 @@ var yn = /* @__PURE__ */ E({
|
|
|
1245
1251
|
ref: o
|
|
1246
1252
|
}), e.$slots))));
|
|
1247
1253
|
}
|
|
1248
|
-
}),
|
|
1254
|
+
}), xn = /* @__PURE__ */ D({
|
|
1249
1255
|
inheritAttrs: !1,
|
|
1250
1256
|
__name: "cron",
|
|
1251
|
-
props: /*@__PURE__*/
|
|
1257
|
+
props: /*@__PURE__*/ A({
|
|
1252
1258
|
modelValue: {},
|
|
1253
1259
|
adornment: {},
|
|
1254
1260
|
align: {},
|
|
@@ -1293,19 +1299,19 @@ var yn = /* @__PURE__ */ E({
|
|
|
1293
1299
|
onPaste: { type: Function },
|
|
1294
1300
|
onValidate: { type: Function },
|
|
1295
1301
|
onWheel: { type: Function }
|
|
1296
|
-
},
|
|
1302
|
+
}, ce),
|
|
1297
1303
|
emits: ["update:modelValue"],
|
|
1298
1304
|
setup(e, { emit: t }) {
|
|
1299
|
-
let n = e, r = t, i =
|
|
1305
|
+
let n = e, r = t, i = we("isFormDisabled", x(() => !1)), a = we("isFormReadonly", x(() => !1)), o = x(() => {
|
|
1300
1306
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1301
1307
|
return {
|
|
1302
1308
|
...n,
|
|
1303
|
-
adornment: { append: () =>
|
|
1309
|
+
adornment: { append: () => k($, {
|
|
1304
1310
|
default: "cron",
|
|
1305
1311
|
onClick: () => {
|
|
1306
|
-
let i =
|
|
1312
|
+
let i = F(null);
|
|
1307
1313
|
W({
|
|
1308
|
-
body: () =>
|
|
1314
|
+
body: () => k(Se(() => import("../components/cron/src/Picker.mjs")), {
|
|
1309
1315
|
disabled: e,
|
|
1310
1316
|
modelValue: n.modelValue,
|
|
1311
1317
|
onVnodeMounted: (e) => {
|
|
@@ -1327,20 +1333,20 @@ var yn = /* @__PURE__ */ E({
|
|
|
1327
1333
|
variant: "text"
|
|
1328
1334
|
}) }
|
|
1329
1335
|
};
|
|
1330
|
-
}), s =
|
|
1336
|
+
}), s = Ne(), c = O();
|
|
1331
1337
|
function l(e) {
|
|
1332
1338
|
c.exposed = e ?? {};
|
|
1333
1339
|
}
|
|
1334
|
-
let u =
|
|
1340
|
+
let u = x(() => j(s, {
|
|
1335
1341
|
...o.value,
|
|
1336
1342
|
onChange: (...e) => {
|
|
1337
1343
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1338
1344
|
},
|
|
1339
1345
|
ref: l
|
|
1340
1346
|
}));
|
|
1341
|
-
return (e, t) => (
|
|
1347
|
+
return (e, t) => (P(), S(z(le), N(Ce(u.value)), null, 16));
|
|
1342
1348
|
}
|
|
1343
|
-
}),
|
|
1349
|
+
}), Sn = /* @__PURE__ */ D({
|
|
1344
1350
|
inheritAttrs: !1,
|
|
1345
1351
|
name: "TRadioGroup",
|
|
1346
1352
|
__name: "radio-group",
|
|
@@ -1370,16 +1376,16 @@ var yn = /* @__PURE__ */ E({
|
|
|
1370
1376
|
},
|
|
1371
1377
|
emits: ["update:modelValue"],
|
|
1372
1378
|
setup(e, { emit: t }) {
|
|
1373
|
-
let r = e, i = t, a =
|
|
1379
|
+
let r = e, i = t, a = O();
|
|
1374
1380
|
function o(e) {
|
|
1375
1381
|
a.exposed = e ?? {};
|
|
1376
1382
|
}
|
|
1377
|
-
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(() => {
|
|
1378
1384
|
let e = { ...r };
|
|
1379
1385
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1380
1386
|
e[t] === void 0 && delete e[t];
|
|
1381
1387
|
}), e;
|
|
1382
|
-
}), f =
|
|
1388
|
+
}), f = x(() => {
|
|
1383
1389
|
if (s.value !== void 0 && !c(r.modelValue)) {
|
|
1384
1390
|
let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1385
1391
|
if (e) return u(r.modelValue);
|
|
@@ -1387,18 +1393,18 @@ var yn = /* @__PURE__ */ E({
|
|
|
1387
1393
|
}
|
|
1388
1394
|
return r.modelValue;
|
|
1389
1395
|
});
|
|
1390
|
-
return (e, t) => (
|
|
1396
|
+
return (e, t) => (P(), S(L(k(z(tt), j(e.$attrs, {
|
|
1391
1397
|
...d.value,
|
|
1392
1398
|
options: s.value,
|
|
1393
1399
|
modelValue: f.value,
|
|
1394
1400
|
onChange: (...e) => {
|
|
1395
|
-
let [t, ...n] = e, a =
|
|
1401
|
+
let [t, ...n] = e, a = z(c)(t) ? "" : t;
|
|
1396
1402
|
i("update:modelValue", a), r.onChange?.(a, ...n);
|
|
1397
1403
|
},
|
|
1398
1404
|
ref: o
|
|
1399
1405
|
}), e.$slots))));
|
|
1400
1406
|
}
|
|
1401
|
-
}),
|
|
1407
|
+
}), Cn = {
|
|
1402
1408
|
clearable: !0,
|
|
1403
1409
|
disabled: void 0,
|
|
1404
1410
|
filterable: void 0,
|
|
@@ -1419,11 +1425,11 @@ var yn = /* @__PURE__ */ E({
|
|
|
1419
1425
|
}),
|
|
1420
1426
|
showArrow: !0,
|
|
1421
1427
|
showCheckAll: !1
|
|
1422
|
-
},
|
|
1428
|
+
}, wn = /* @__PURE__ */ D({
|
|
1423
1429
|
inheritAttrs: !1,
|
|
1424
1430
|
name: "TSelect",
|
|
1425
1431
|
__name: "select",
|
|
1426
|
-
props: /*@__PURE__*/
|
|
1432
|
+
props: /*@__PURE__*/ A({
|
|
1427
1433
|
adornment: {},
|
|
1428
1434
|
dicCode: {},
|
|
1429
1435
|
modelValue: {},
|
|
@@ -1483,19 +1489,19 @@ var yn = /* @__PURE__ */ E({
|
|
|
1483
1489
|
onPopupVisibleChange: { type: Function },
|
|
1484
1490
|
onRemove: { type: Function },
|
|
1485
1491
|
onSearch: { type: Function }
|
|
1486
|
-
},
|
|
1492
|
+
}, Cn),
|
|
1487
1493
|
setup(e) {
|
|
1488
|
-
let t = e, r =
|
|
1494
|
+
let t = e, r = O();
|
|
1489
1495
|
function i(e) {
|
|
1490
1496
|
r.exposed = e ?? {};
|
|
1491
1497
|
}
|
|
1492
|
-
let a =
|
|
1498
|
+
let a = x(() => {
|
|
1493
1499
|
let e;
|
|
1494
|
-
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({
|
|
1495
1501
|
checkAll: !0,
|
|
1496
1502
|
[t.keys?.label ?? "label"]: "全选"
|
|
1497
1503
|
}) : n.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
1498
|
-
}), o =
|
|
1504
|
+
}), o = x(() => {
|
|
1499
1505
|
if (a.value !== void 0) {
|
|
1500
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");
|
|
1501
1507
|
if (t.multiple) {
|
|
@@ -1507,7 +1513,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
1507
1513
|
else if (i) return l(t.modelValue) ? Number(t.modelValue) : t.modelValue;
|
|
1508
1514
|
}
|
|
1509
1515
|
return t.modelValue;
|
|
1510
|
-
}), s =
|
|
1516
|
+
}), s = x(() => {
|
|
1511
1517
|
let e = {
|
|
1512
1518
|
...t,
|
|
1513
1519
|
filterable: t.filterable ?? a.value.length > 8
|
|
@@ -1515,15 +1521,15 @@ var yn = /* @__PURE__ */ E({
|
|
|
1515
1521
|
return delete e.dicCode, delete e.showCheckAll, delete e.adornment, Object.keys(e).forEach((t) => {
|
|
1516
1522
|
e[t] === void 0 && delete e[t];
|
|
1517
1523
|
}), e;
|
|
1518
|
-
}), d =
|
|
1519
|
-
|
|
1520
|
-
|
|
1524
|
+
}), d = F(0);
|
|
1525
|
+
De(() => {
|
|
1526
|
+
ft(r.exposed.$el, () => {
|
|
1521
1527
|
d.value = r.exposed.$el.offsetWidth;
|
|
1522
1528
|
}, { box: "border-box" });
|
|
1523
1529
|
});
|
|
1524
|
-
let f =
|
|
1530
|
+
let f = x(() => {
|
|
1525
1531
|
if (s.value.scroll?.type === "virtual" && a.value.length > (s.value.scroll?.threshold ?? 150)) return "300px";
|
|
1526
|
-
}), p =
|
|
1532
|
+
}), p = x(() => ({
|
|
1527
1533
|
...s.value,
|
|
1528
1534
|
modelValue: o.value,
|
|
1529
1535
|
onChange: (...e) => {
|
|
@@ -1541,16 +1547,16 @@ var yn = /* @__PURE__ */ E({
|
|
|
1541
1547
|
})
|
|
1542
1548
|
},
|
|
1543
1549
|
ref: i
|
|
1544
|
-
})), m =
|
|
1545
|
-
return (t, n) => e.adornment ? (
|
|
1550
|
+
})), m = Ze;
|
|
1551
|
+
return (t, n) => e.adornment ? (P(), S(L(k(z(m), t.$attrs, {
|
|
1546
1552
|
...e.adornment,
|
|
1547
|
-
default: () =>
|
|
1548
|
-
})), { 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 }));
|
|
1549
1555
|
}
|
|
1550
|
-
}),
|
|
1556
|
+
}), Tn = /* @__PURE__ */ D({
|
|
1551
1557
|
inheritAttrs: !1,
|
|
1552
1558
|
__name: "select-sys-user",
|
|
1553
|
-
props: /*@__PURE__*/
|
|
1559
|
+
props: /*@__PURE__*/ A({
|
|
1554
1560
|
modelValue: {},
|
|
1555
1561
|
adornment: {},
|
|
1556
1562
|
autoWidth: { type: Boolean },
|
|
@@ -1589,19 +1595,19 @@ var yn = /* @__PURE__ */ E({
|
|
|
1589
1595
|
onMouseleave: { type: Function },
|
|
1590
1596
|
onPaste: { type: Function },
|
|
1591
1597
|
onRemove: { type: Function }
|
|
1592
|
-
},
|
|
1598
|
+
}, pe),
|
|
1593
1599
|
emits: ["update:modelValue"],
|
|
1594
1600
|
setup(e, { emit: t }) {
|
|
1595
|
-
let n = e, r = t, i =
|
|
1601
|
+
let n = e, r = t, i = we("isFormDisabled", x(() => !1)), a = we("isFormReadonly", x(() => !1)), o = x(() => {
|
|
1596
1602
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1597
1603
|
return {
|
|
1598
1604
|
...n,
|
|
1599
|
-
adornment: e || t ? void 0 : { append: () =>
|
|
1605
|
+
adornment: e || t ? void 0 : { append: () => k($, {
|
|
1600
1606
|
default: "选择用户",
|
|
1601
1607
|
onClick: () => {
|
|
1602
|
-
let e =
|
|
1608
|
+
let e = F(null);
|
|
1603
1609
|
W({
|
|
1604
|
-
body: () =>
|
|
1610
|
+
body: () => k(Se(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
1605
1611
|
max: n.max,
|
|
1606
1612
|
modelValue: n.modelValue,
|
|
1607
1613
|
onVnodeMounted: (t) => {
|
|
@@ -1622,11 +1628,11 @@ var yn = /* @__PURE__ */ E({
|
|
|
1622
1628
|
variant: "text"
|
|
1623
1629
|
}) }
|
|
1624
1630
|
};
|
|
1625
|
-
}), s =
|
|
1631
|
+
}), s = Ne(), c = O();
|
|
1626
1632
|
function l(e) {
|
|
1627
1633
|
c.exposed = e ?? {};
|
|
1628
1634
|
}
|
|
1629
|
-
let u =
|
|
1635
|
+
let u = x(() => j(s, {
|
|
1630
1636
|
...o.value,
|
|
1631
1637
|
inputProps: {
|
|
1632
1638
|
readonly: !0,
|
|
@@ -1638,19 +1644,19 @@ var yn = /* @__PURE__ */ E({
|
|
|
1638
1644
|
placeholder: "请选择用户",
|
|
1639
1645
|
ref: l
|
|
1640
1646
|
}));
|
|
1641
|
-
return (e, t) => (
|
|
1642
|
-
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)]),
|
|
1643
1649
|
_: 1
|
|
1644
1650
|
}, 16));
|
|
1645
1651
|
}
|
|
1646
|
-
}),
|
|
1652
|
+
}), En = {
|
|
1647
1653
|
checkable: !1,
|
|
1648
1654
|
disabled: void 0,
|
|
1649
1655
|
expandOnClickNode: void 0,
|
|
1650
1656
|
hover: !0,
|
|
1651
1657
|
icon: () => (e, t) => {
|
|
1652
1658
|
let n = "";
|
|
1653
|
-
return t.getChildren && t.getChildren(!1) && (t.expanded ? (n = "cuida:caret-down-outline", t.loading && (n = "line-md:loading-twotone-loop")) : n = "cuida:caret-right-outline"), n === "" ? null :
|
|
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($, {
|
|
1654
1660
|
icon: n,
|
|
1655
1661
|
shape: "circle",
|
|
1656
1662
|
size: "small",
|
|
@@ -1662,11 +1668,11 @@ var yn = /* @__PURE__ */ E({
|
|
|
1662
1668
|
line: !0,
|
|
1663
1669
|
transition: !0,
|
|
1664
1670
|
valueMode: "all"
|
|
1665
|
-
},
|
|
1671
|
+
}, Dn = /* @__PURE__ */ D({
|
|
1666
1672
|
inheritAttrs: !1,
|
|
1667
1673
|
name: "TTree",
|
|
1668
1674
|
__name: "tree",
|
|
1669
|
-
props: /*@__PURE__*/
|
|
1675
|
+
props: /*@__PURE__*/ A({
|
|
1670
1676
|
icon: { type: [Function, Boolean] },
|
|
1671
1677
|
"onUpdate:actived": { type: Function },
|
|
1672
1678
|
"onUpdate:expanded": { type: Function },
|
|
@@ -1719,23 +1725,23 @@ var yn = /* @__PURE__ */ E({
|
|
|
1719
1725
|
onLoad: { type: Function },
|
|
1720
1726
|
onScroll: { type: Function },
|
|
1721
1727
|
treeStore: {}
|
|
1722
|
-
},
|
|
1728
|
+
}, En),
|
|
1723
1729
|
setup(e, { expose: t }) {
|
|
1724
|
-
let n = e, r =
|
|
1730
|
+
let n = e, r = Pe(), i = x(() => {
|
|
1725
1731
|
let e = { ...n };
|
|
1726
1732
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1727
1733
|
e[t] === void 0 && delete e[t];
|
|
1728
1734
|
}), e;
|
|
1729
|
-
}), a =
|
|
1735
|
+
}), a = O();
|
|
1730
1736
|
function o(e) {
|
|
1731
1737
|
a.exposed = e ?? {};
|
|
1732
1738
|
}
|
|
1733
|
-
return t({}), (e, t) => (
|
|
1739
|
+
return t({}), (e, t) => (P(), S(L(k(z(rt), j(e.$attrs, {
|
|
1734
1740
|
...i.value,
|
|
1735
1741
|
ref: o
|
|
1736
1742
|
}), e.$slots))));
|
|
1737
1743
|
}
|
|
1738
|
-
}),
|
|
1744
|
+
}), On = /* @__PURE__ */ D({
|
|
1739
1745
|
inheritAttrs: !1,
|
|
1740
1746
|
name: "TTreeSelect",
|
|
1741
1747
|
__name: "tree-select",
|
|
@@ -1802,30 +1808,30 @@ var yn = /* @__PURE__ */ E({
|
|
|
1802
1808
|
onSearch: {}
|
|
1803
1809
|
},
|
|
1804
1810
|
setup(e) {
|
|
1805
|
-
let t = e, n =
|
|
1811
|
+
let t = e, n = x(() => typeof t.data == "string" ? ae(t.data).value : t.data), r = x(() => {
|
|
1806
1812
|
let e = { ...t };
|
|
1807
1813
|
return e.selectInputProps = {
|
|
1808
1814
|
minCollapsedNum: 2,
|
|
1809
1815
|
...e.selectInputProps ?? {}
|
|
1810
1816
|
}, e.treeProps = {
|
|
1811
|
-
...
|
|
1817
|
+
...En,
|
|
1812
1818
|
checkable: !!t.multiple,
|
|
1813
1819
|
expandOnClickNode: !!t.multiple,
|
|
1814
|
-
icon:
|
|
1820
|
+
icon: En.icon(),
|
|
1815
1821
|
...e.treeProps ?? {}
|
|
1816
1822
|
}, Object.keys(e).forEach((t) => {
|
|
1817
1823
|
e[t] === void 0 && delete e[t];
|
|
1818
1824
|
}), e;
|
|
1819
|
-
}), i =
|
|
1825
|
+
}), i = O();
|
|
1820
1826
|
function a(e) {
|
|
1821
1827
|
i.exposed = e ?? {};
|
|
1822
1828
|
}
|
|
1823
|
-
let o =
|
|
1824
|
-
return
|
|
1825
|
-
|
|
1829
|
+
let o = F(0);
|
|
1830
|
+
return De(() => {
|
|
1831
|
+
ft(i.exposed.$el, () => {
|
|
1826
1832
|
o.value = i.exposed.$el.offsetWidth;
|
|
1827
1833
|
}, { box: "border-box" });
|
|
1828
|
-
}), (e, t) => (
|
|
1834
|
+
}), (e, t) => (P(), S(L(k(z(it), j(e.$attrs, {
|
|
1829
1835
|
...r.value,
|
|
1830
1836
|
data: n.value,
|
|
1831
1837
|
ref: a,
|
|
@@ -1839,10 +1845,10 @@ var yn = /* @__PURE__ */ E({
|
|
|
1839
1845
|
}
|
|
1840
1846
|
}), e.$slots))));
|
|
1841
1847
|
}
|
|
1842
|
-
}),
|
|
1848
|
+
}), kn = ".xlsx,.xls", An = { class: "flex items-center" }, jn = {
|
|
1843
1849
|
key: 1,
|
|
1844
1850
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1845
|
-
},
|
|
1851
|
+
}, Mn = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
1846
1852
|
inheritAttrs: !1,
|
|
1847
1853
|
name: "TUpload",
|
|
1848
1854
|
__name: "upload",
|
|
@@ -1851,7 +1857,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
1851
1857
|
"onUpdate:modelValue": {},
|
|
1852
1858
|
requestMethod: {},
|
|
1853
1859
|
abridgeName: {},
|
|
1854
|
-
accept: { default:
|
|
1860
|
+
accept: { default: kn },
|
|
1855
1861
|
allowUploadDuplicateFile: { type: Boolean },
|
|
1856
1862
|
autoUpload: { type: Boolean },
|
|
1857
1863
|
beforeAllFilesUpload: {},
|
|
@@ -1911,7 +1917,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
1911
1917
|
onWaitingUploadFilesChange: {}
|
|
1912
1918
|
},
|
|
1913
1919
|
setup(e, { expose: t }) {
|
|
1914
|
-
let n = e, r =
|
|
1920
|
+
let n = e, r = x(() => {
|
|
1915
1921
|
if (n.requestMethod !== void 0) return (e) => new Promise((t) => {
|
|
1916
1922
|
typeof n.requestMethod == "function" ? n.requestMethod(e).then((e) => {
|
|
1917
1923
|
t({
|
|
@@ -1944,48 +1950,48 @@ var yn = /* @__PURE__ */ E({
|
|
|
1944
1950
|
function i() {
|
|
1945
1951
|
typeof n.downloadTemplate == "string" ? f(n.downloadTemplate) : n.downloadTemplate.send();
|
|
1946
1952
|
}
|
|
1947
|
-
let a =
|
|
1953
|
+
let a = x(() => {
|
|
1948
1954
|
let e = { ...n };
|
|
1949
1955
|
return ["image", "image-flow"].includes(e.theme) && (e.accept = e.accept === ".xlsx,.xls" ? "image/*" : e.accept), Object.keys(e).forEach((t) => {
|
|
1950
1956
|
e[t] === void 0 && delete e[t];
|
|
1951
1957
|
}), delete e.downloadTemplate, e.theme === "file" && delete e.tips, e;
|
|
1952
|
-
}), o =
|
|
1958
|
+
}), o = O();
|
|
1953
1959
|
function s(e) {
|
|
1954
1960
|
o.exposed = e ?? {};
|
|
1955
1961
|
}
|
|
1956
|
-
return t({}), (t, o) => (
|
|
1962
|
+
return t({}), (t, o) => (P(), S(L(k(z(at), j(t.$attrs, {
|
|
1957
1963
|
...a.value,
|
|
1958
1964
|
requestMethod: r.value,
|
|
1959
1965
|
ref: s
|
|
1960
|
-
}, { class: a.value.theme }))), null,
|
|
1966
|
+
}, { class: a.value.theme }))), null, xe({ _: 2 }, [I(Object.keys(t.$slots), (e) => ({
|
|
1961
1967
|
name: e,
|
|
1962
|
-
fn:
|
|
1968
|
+
fn: V((n) => [Ae(t.$slots, e, N(Ce(n)), void 0, !0)])
|
|
1963
1969
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
1964
1970
|
name: "trigger",
|
|
1965
|
-
fn:
|
|
1966
|
-
|
|
1967
|
-
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)]),
|
|
1968
1974
|
_: 2
|
|
1969
1975
|
}, 1024),
|
|
1970
|
-
e.downloadTemplate ? (
|
|
1976
|
+
e.downloadTemplate ? (P(), S(z($), {
|
|
1971
1977
|
key: 0,
|
|
1972
1978
|
theme: "primary",
|
|
1973
1979
|
variant: "outline",
|
|
1974
|
-
onClick:
|
|
1980
|
+
onClick: Ie(i, ["stop"])
|
|
1975
1981
|
}, {
|
|
1976
|
-
default:
|
|
1982
|
+
default: V(() => [...o[0] ||= [T("下载模板", -1)]]),
|
|
1977
1983
|
_: 1
|
|
1978
|
-
})) :
|
|
1979
|
-
n.tips ? (
|
|
1984
|
+
})) : C("v-if", !0),
|
|
1985
|
+
n.tips ? (P(), w("span", jn, R(n.tips), 1)) : C("v-if", !0)
|
|
1980
1986
|
])]),
|
|
1981
1987
|
key: "0"
|
|
1982
1988
|
} : void 0]), 1024));
|
|
1983
1989
|
}
|
|
1984
|
-
}), [["__scopeId", "data-v-51889a3b"]]),
|
|
1990
|
+
}), [["__scopeId", "data-v-51889a3b"]]), Nn = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
1985
1991
|
inheritAttrs: !1,
|
|
1986
1992
|
name: "TForm",
|
|
1987
1993
|
__name: "form",
|
|
1988
|
-
props: /*@__PURE__*/
|
|
1994
|
+
props: /*@__PURE__*/ A({
|
|
1989
1995
|
autoLabelWidth: { type: Boolean },
|
|
1990
1996
|
data: {},
|
|
1991
1997
|
items: {},
|
|
@@ -2011,7 +2017,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
2011
2017
|
onValidate: { type: Function }
|
|
2012
2018
|
}, Tt),
|
|
2013
2019
|
setup(e, { expose: t }) {
|
|
2014
|
-
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) => {
|
|
2015
2021
|
if (typeof e.__others == "function") {
|
|
2016
2022
|
let t = {
|
|
2017
2023
|
...e,
|
|
@@ -2051,36 +2057,36 @@ var yn = /* @__PURE__ */ E({
|
|
|
2051
2057
|
}
|
|
2052
2058
|
});
|
|
2053
2059
|
}
|
|
2054
|
-
|
|
2060
|
+
B(u, d, {
|
|
2055
2061
|
deep: 2,
|
|
2056
2062
|
immediate: !0
|
|
2057
|
-
}),
|
|
2063
|
+
}), B(() => r.data, () => {
|
|
2058
2064
|
n.error("TForm: data is changed");
|
|
2059
2065
|
});
|
|
2060
2066
|
let f = /* @__PURE__ */ new Map(), p = {
|
|
2061
2067
|
TCheckbox: a,
|
|
2062
|
-
TCheckboxGroup:
|
|
2063
|
-
TColorPicker:
|
|
2064
|
-
TCron:
|
|
2065
|
-
TDatePicker:
|
|
2066
|
-
TInput:
|
|
2067
|
-
TInputNumber:
|
|
2068
|
-
TRadioGroup:
|
|
2069
|
-
TRangeInput:
|
|
2070
|
-
TSelect:
|
|
2071
|
-
TSelectSysUser:
|
|
2072
|
-
TSlider:
|
|
2073
|
-
TSwitch:
|
|
2074
|
-
TTagInput:
|
|
2075
|
-
TTextarea:
|
|
2076
|
-
TTree:
|
|
2077
|
-
TTreeSelect:
|
|
2078
|
-
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
|
|
2079
2085
|
};
|
|
2080
2086
|
function h(e) {
|
|
2081
|
-
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;
|
|
2082
2088
|
}
|
|
2083
|
-
function
|
|
2089
|
+
function g(e) {
|
|
2084
2090
|
let t = {};
|
|
2085
2091
|
for (let n in e) !n.startsWith("_") && ![
|
|
2086
2092
|
"component",
|
|
@@ -2089,7 +2095,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
2089
2095
|
].includes(n) && (t[n] = e[n]);
|
|
2090
2096
|
return t;
|
|
2091
2097
|
}
|
|
2092
|
-
function
|
|
2098
|
+
function _(e) {
|
|
2093
2099
|
let t = {};
|
|
2094
2100
|
for (let n in e) n.startsWith("_") && (t[n.slice(1)] = e[n]);
|
|
2095
2101
|
let n = [
|
|
@@ -2108,7 +2114,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
2108
2114
|
whitespace: !0
|
|
2109
2115
|
}), t;
|
|
2110
2116
|
}
|
|
2111
|
-
let
|
|
2117
|
+
let v = x(() => {
|
|
2112
2118
|
let e = { ...r };
|
|
2113
2119
|
if (e.rules !== void 0) {
|
|
2114
2120
|
let t = {};
|
|
@@ -2126,20 +2132,20 @@ var yn = /* @__PURE__ */ E({
|
|
|
2126
2132
|
return delete e.items, delete e.msgErrorWhenValidate, delete e.autoLabelWidth, Object.keys(e).forEach((t) => {
|
|
2127
2133
|
e[t] === void 0 && delete e[t];
|
|
2128
2134
|
}), e;
|
|
2129
|
-
}),
|
|
2135
|
+
}), y = () => {
|
|
2130
2136
|
let e = { ...r.data };
|
|
2131
2137
|
return u.value.forEach((t) => {
|
|
2132
2138
|
t.show === !1 && delete e[t.model];
|
|
2133
2139
|
}), e;
|
|
2134
2140
|
};
|
|
2135
|
-
function
|
|
2141
|
+
function ee(e) {
|
|
2136
2142
|
if (e !== null) {
|
|
2137
2143
|
let t = e;
|
|
2138
2144
|
if (!t.validate._alreadyReplace) {
|
|
2139
2145
|
let e = t.validate;
|
|
2140
2146
|
t.validate = (...t) => new Promise((n, i) => {
|
|
2141
2147
|
e(...t).then((e) => {
|
|
2142
|
-
e === !0 ? n(
|
|
2148
|
+
e === !0 ? n(y()) : (r.msgErrorWhenValidate && Object.keys(e).forEach((t) => {
|
|
2143
2149
|
e[t].forEach((e) => {
|
|
2144
2150
|
e.result === !1 && m.error(e.message);
|
|
2145
2151
|
});
|
|
@@ -2151,18 +2157,18 @@ var yn = /* @__PURE__ */ E({
|
|
|
2151
2157
|
let e = t.validateOnly;
|
|
2152
2158
|
t.validateOnly = (...t) => new Promise((n, r) => {
|
|
2153
2159
|
e(...t).then((e) => {
|
|
2154
|
-
e === !0 ? n(
|
|
2160
|
+
e === !0 ? n(y()) : r(e);
|
|
2155
2161
|
});
|
|
2156
2162
|
}), t.validateOnly._alreadyReplace = !0;
|
|
2157
2163
|
}
|
|
2158
2164
|
if (!t.clearValidate._alreadyReplace) {
|
|
2159
2165
|
let e = t.clearValidate;
|
|
2160
2166
|
t.clearValidate = (...t) => {
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2167
|
+
M(() => {
|
|
2168
|
+
M(() => {
|
|
2169
|
+
M(() => {
|
|
2170
|
+
M(() => {
|
|
2171
|
+
M(() => {
|
|
2166
2172
|
e(...t);
|
|
2167
2173
|
});
|
|
2168
2174
|
});
|
|
@@ -2171,7 +2177,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
2171
2177
|
});
|
|
2172
2178
|
}, t.clearValidate._alreadyReplace = !0;
|
|
2173
2179
|
}
|
|
2174
|
-
t.getFormData =
|
|
2180
|
+
t.getFormData = y, t.setFormData = (e, t) => {
|
|
2175
2181
|
let { ignoreKeys: n = [], isNotFalsy: i = !0, numberToStringKeys: a = [], override: o = {}, splitToArrKeys: s = [] } = t ?? {};
|
|
2176
2182
|
Object.keys(r.data).forEach((t) => {
|
|
2177
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])));
|
|
@@ -2181,21 +2187,21 @@ var yn = /* @__PURE__ */ E({
|
|
|
2181
2187
|
let t = e ?? {};
|
|
2182
2188
|
l.value = t, s.exposed = t;
|
|
2183
2189
|
}
|
|
2184
|
-
let
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2190
|
+
let b = Me();
|
|
2191
|
+
De(() => {
|
|
2192
|
+
b.value = s.exposed.$el.getElementsByClassName("t-form__label"), te(), dt(s.exposed.$el, () => {
|
|
2193
|
+
te();
|
|
2188
2194
|
}, {
|
|
2189
2195
|
attributeFilter: ["class"],
|
|
2190
2196
|
characterData: !0,
|
|
2191
2197
|
childList: !0,
|
|
2192
2198
|
subtree: !0
|
|
2193
|
-
}),
|
|
2194
|
-
|
|
2199
|
+
}), ft(s.exposed.$el, () => {
|
|
2200
|
+
te();
|
|
2195
2201
|
});
|
|
2196
2202
|
});
|
|
2197
|
-
function
|
|
2198
|
-
let e = [...
|
|
2203
|
+
function te() {
|
|
2204
|
+
let e = [...b.value];
|
|
2199
2205
|
if (e.forEach((e) => {
|
|
2200
2206
|
e.style.minWidth = "auto";
|
|
2201
2207
|
}), r.labelAlign === "top" || !r.autoLabelWidth) return;
|
|
@@ -2206,29 +2212,29 @@ var yn = /* @__PURE__ */ E({
|
|
|
2206
2212
|
e.style.minWidth = `${t}px`;
|
|
2207
2213
|
});
|
|
2208
2214
|
}
|
|
2209
|
-
return
|
|
2210
|
-
...
|
|
2211
|
-
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
|
|
2212
2218
|
}), { "label-width": "fit-content" }), {
|
|
2213
|
-
default:
|
|
2214
|
-
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({
|
|
2215
2221
|
key: 1,
|
|
2216
2222
|
modelValue: e.data[n.model],
|
|
2217
2223
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
2218
|
-
}, { ref_for: !0 },
|
|
2224
|
+
}, { ref_for: !0 }, g(n)), null, 16, ["modelValue", "onUpdate:modelValue"]))]),
|
|
2219
2225
|
_: 2
|
|
2220
2226
|
}, 1040, ["name"]))), 128))]),
|
|
2221
2227
|
_: 3
|
|
2222
2228
|
}, 16))], 2112));
|
|
2223
2229
|
}
|
|
2224
|
-
}), [["__scopeId", "data-v-d3f924b4"]]),
|
|
2230
|
+
}), [["__scopeId", "data-v-d3f924b4"]]), Pn = /* @__PURE__ */ D({
|
|
2225
2231
|
__name: "ResetPwd",
|
|
2226
2232
|
props: { showFooter: {
|
|
2227
2233
|
type: Boolean,
|
|
2228
2234
|
default: !0
|
|
2229
2235
|
} },
|
|
2230
2236
|
setup(e, { expose: t }) {
|
|
2231
|
-
let n =
|
|
2237
|
+
let n = U(), r = [
|
|
2232
2238
|
{
|
|
2233
2239
|
_label: "旧密码",
|
|
2234
2240
|
_required: !0,
|
|
@@ -2259,7 +2265,7 @@ var yn = /* @__PURE__ */ E({
|
|
|
2259
2265
|
type: "password"
|
|
2260
2266
|
},
|
|
2261
2267
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
2262
|
-
], i =
|
|
2268
|
+
], i = Fe("form");
|
|
2263
2269
|
function a() {
|
|
2264
2270
|
K().close(n.name);
|
|
2265
2271
|
}
|
|
@@ -2276,21 +2282,21 @@ var yn = /* @__PURE__ */ E({
|
|
|
2276
2282
|
}
|
|
2277
2283
|
}), Qt().logout();
|
|
2278
2284
|
}
|
|
2279
|
-
return t({ handleSubmit: c }), (e, t) => (
|
|
2285
|
+
return t({ handleSubmit: c }), (e, t) => (P(), S(z(Nn), {
|
|
2280
2286
|
ref: "form",
|
|
2281
2287
|
items: r,
|
|
2282
2288
|
"label-align": "right",
|
|
2283
2289
|
layout: "vertical"
|
|
2284
2290
|
}, {
|
|
2285
|
-
footer:
|
|
2286
|
-
default:
|
|
2291
|
+
footer: V(() => [E(z($), { onClick: c }, {
|
|
2292
|
+
default: V(() => [...t[0] ||= [T("保存", -1)]]),
|
|
2287
2293
|
_: 1
|
|
2288
|
-
}),
|
|
2294
|
+
}), E(z($), {
|
|
2289
2295
|
class: "ml-4!",
|
|
2290
2296
|
theme: "default",
|
|
2291
2297
|
onClick: a
|
|
2292
2298
|
}, {
|
|
2293
|
-
default:
|
|
2299
|
+
default: V(() => [...t[1] ||= [T("关闭", -1)]]),
|
|
2294
2300
|
_: 1
|
|
2295
2301
|
})]),
|
|
2296
2302
|
_: 1
|
|
@@ -2299,34 +2305,34 @@ var yn = /* @__PURE__ */ E({
|
|
|
2299
2305
|
});
|
|
2300
2306
|
//#endregion
|
|
2301
2307
|
//#region ../../packages/dlzn-ui/store/modules/user.ts
|
|
2302
|
-
function
|
|
2308
|
+
function Fn() {
|
|
2303
2309
|
return X.Get("getInfo", { meta: {
|
|
2304
2310
|
useFailMsg: "获取用户信息失败",
|
|
2305
2311
|
useLoading: "正在获取用户信息..."
|
|
2306
2312
|
} });
|
|
2307
2313
|
}
|
|
2308
|
-
var
|
|
2314
|
+
var In = {
|
|
2309
2315
|
admin: !1,
|
|
2310
2316
|
dept: { deptName: "" },
|
|
2311
2317
|
needChangePwd: 0,
|
|
2312
2318
|
nickName: "",
|
|
2313
2319
|
userId: "",
|
|
2314
2320
|
userName: ""
|
|
2315
|
-
}, Q =
|
|
2316
|
-
let e =
|
|
2321
|
+
}, Q = H("user", () => {
|
|
2322
|
+
let e = F(pt(In)), t = F([]), n = F([]);
|
|
2317
2323
|
function r() {
|
|
2318
|
-
e.value =
|
|
2324
|
+
e.value = pt(In), t.value = [], n.value = [];
|
|
2319
2325
|
}
|
|
2320
|
-
let i =
|
|
2326
|
+
let i = x(() => e.value.admin), a = F("");
|
|
2321
2327
|
async function o(r = !0) {
|
|
2322
|
-
let i = await
|
|
2328
|
+
let i = await Fn();
|
|
2323
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();
|
|
2324
2330
|
}
|
|
2325
|
-
|
|
2326
|
-
e === 1 && VITE_FORCE_PWD_CHANGE &&
|
|
2327
|
-
let e =
|
|
2331
|
+
B(() => e.value.needChangePwd, (e) => {
|
|
2332
|
+
e === 1 && VITE_FORCE_PWD_CHANGE && M(() => {
|
|
2333
|
+
let e = F(null);
|
|
2328
2334
|
W({
|
|
2329
|
-
body: () =>
|
|
2335
|
+
body: () => k(Pn, {
|
|
2330
2336
|
labelAlign: "top",
|
|
2331
2337
|
ref: e,
|
|
2332
2338
|
showFooter: !1
|
|
@@ -2357,11 +2363,11 @@ var Fn = {
|
|
|
2357
2363
|
roles: n,
|
|
2358
2364
|
userInfo: e
|
|
2359
2365
|
};
|
|
2360
|
-
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/
|
|
2366
|
+
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ b(/* @__PURE__ */ D({
|
|
2361
2367
|
inheritAttrs: !1,
|
|
2362
2368
|
name: "TButton",
|
|
2363
2369
|
__name: "button",
|
|
2364
|
-
props: /*@__PURE__*/
|
|
2370
|
+
props: /*@__PURE__*/ A({
|
|
2365
2371
|
autoIcon: { type: Boolean },
|
|
2366
2372
|
autoLoading: { type: Boolean },
|
|
2367
2373
|
autoTheme: { type: Boolean },
|
|
@@ -2400,7 +2406,7 @@ var Fn = {
|
|
|
2400
2406
|
] }
|
|
2401
2407
|
}, wt),
|
|
2402
2408
|
setup(n) {
|
|
2403
|
-
let r = n, a =
|
|
2409
|
+
let r = n, a = F("");
|
|
2404
2410
|
function o() {
|
|
2405
2411
|
if (!r.autoTheme || a.value.trim() === "") return {};
|
|
2406
2412
|
let e = /* @__PURE__ */ new Map([
|
|
@@ -2422,17 +2428,17 @@ var Fn = {
|
|
|
2422
2428
|
}
|
|
2423
2429
|
return t;
|
|
2424
2430
|
}
|
|
2425
|
-
let s =
|
|
2426
|
-
|
|
2431
|
+
let s = F(!1), c = i.isLoading, l = F(null), { focused: u } = ut(l), d, f;
|
|
2432
|
+
B(c, (e) => {
|
|
2427
2433
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2428
2434
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
2429
2435
|
}, 150)) : d === void 0 ? f = setTimeout(() => {
|
|
2430
2436
|
s.value = !1;
|
|
2431
2437
|
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
2432
|
-
}, { immediate: !0 }),
|
|
2438
|
+
}, { immediate: !0 }), B(u, (e) => {
|
|
2433
2439
|
e && c.value && (s.value = !0);
|
|
2434
2440
|
});
|
|
2435
|
-
let p =
|
|
2441
|
+
let p = x(() => r.loading === void 0 ? r.autoLoading ? s.value : !1 : r.loading), m = x(() => {
|
|
2436
2442
|
let e = {
|
|
2437
2443
|
...r,
|
|
2438
2444
|
...o(),
|
|
@@ -2441,15 +2447,15 @@ var Fn = {
|
|
|
2441
2447
|
return Object.keys(e).forEach((t) => {
|
|
2442
2448
|
e[t] === void 0 && delete e[t];
|
|
2443
2449
|
}), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
|
|
2444
|
-
}), h =
|
|
2445
|
-
function
|
|
2450
|
+
}), h = O();
|
|
2451
|
+
function g(e) {
|
|
2446
2452
|
let t = e ?? {};
|
|
2447
2453
|
h.exposed = t, l.value = t.$el;
|
|
2448
2454
|
}
|
|
2449
|
-
function
|
|
2455
|
+
function _() {
|
|
2450
2456
|
a.value = l.value?.textContent ?? "";
|
|
2451
2457
|
}
|
|
2452
|
-
let
|
|
2458
|
+
let v = x(() => {
|
|
2453
2459
|
if (!r.autoIcon || a.value.trim() === "") return;
|
|
2454
2460
|
let e = {
|
|
2455
2461
|
"mdi:plus": [
|
|
@@ -2506,17 +2512,18 @@ var Fn = {
|
|
|
2506
2512
|
"bi:journal-text": ["日志"],
|
|
2507
2513
|
"material-symbols:security": ["权限"],
|
|
2508
2514
|
"ri:wechat-channels-line": ["视频号"],
|
|
2509
|
-
"clarity:copy-line": ["复制"]
|
|
2515
|
+
"clarity:copy-line": ["复制"],
|
|
2516
|
+
"gravity-ui:handset-arrow-in": ["应答"]
|
|
2510
2517
|
}, t;
|
|
2511
2518
|
for (let [n, r] of Object.entries(e)) if (r.some((e) => a.value.includes(e))) {
|
|
2512
2519
|
t = n;
|
|
2513
2520
|
break;
|
|
2514
2521
|
}
|
|
2515
2522
|
if (t !== void 0) return t;
|
|
2516
|
-
}),
|
|
2523
|
+
}), y = Ne(), ee = x(() => j(y, {
|
|
2517
2524
|
...m.value,
|
|
2518
|
-
ref:
|
|
2519
|
-
}, { class: "flex-shrink-0" })),
|
|
2525
|
+
ref: g
|
|
2526
|
+
}, { class: "flex-shrink-0" })), b = x(() => {
|
|
2520
2527
|
if (r.popconfirm) return {
|
|
2521
2528
|
...r.popconfirm,
|
|
2522
2529
|
onVisibleChange: (...e) => {
|
|
@@ -2524,33 +2531,33 @@ var Fn = {
|
|
|
2524
2531
|
}
|
|
2525
2532
|
};
|
|
2526
2533
|
});
|
|
2527
|
-
return (r, i) =>
|
|
2528
|
-
default:
|
|
2529
|
-
onVnodeMounted:
|
|
2530
|
-
onVnodeUpdated:
|
|
2531
|
-
},
|
|
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 ? {
|
|
2532
2539
|
name: "icon",
|
|
2533
|
-
fn:
|
|
2540
|
+
fn: V(() => [E(z(e), { icon: n.icon || v.value }, null, 8, ["icon"])]),
|
|
2534
2541
|
key: "0"
|
|
2535
|
-
} : void 0,
|
|
2542
|
+
} : void 0, I(Object.keys(r.$slots), (e) => ({
|
|
2536
2543
|
name: e,
|
|
2537
|
-
fn:
|
|
2544
|
+
fn: V((t) => [Ae(r.$slots, e, N(Ce(t)), void 0, !0)])
|
|
2538
2545
|
}))]), 1536))]),
|
|
2539
2546
|
_: 3
|
|
2540
|
-
}, 16)) : (
|
|
2547
|
+
}, 16)) : (P(), S(L(k(z(ze), ee.value)), {
|
|
2541
2548
|
key: 1,
|
|
2542
|
-
onVnodeMounted:
|
|
2543
|
-
onVnodeUpdated:
|
|
2544
|
-
},
|
|
2549
|
+
onVnodeMounted: _,
|
|
2550
|
+
onVnodeUpdated: _
|
|
2551
|
+
}, xe({ _: 2 }, [n.icon || v.value ? {
|
|
2545
2552
|
name: "icon",
|
|
2546
|
-
fn:
|
|
2553
|
+
fn: V(() => [E(z(e), { icon: n.icon || v.value }, null, 8, ["icon"])]),
|
|
2547
2554
|
key: "0"
|
|
2548
|
-
} : void 0,
|
|
2555
|
+
} : void 0, I(Object.keys(r.$slots), (e) => ({
|
|
2549
2556
|
name: e,
|
|
2550
|
-
fn:
|
|
2551
|
-
}))]), 1536))], 64)) :
|
|
2557
|
+
fn: V((t) => [Ae(r.$slots, e, N(Ce(t)), void 0, !0)])
|
|
2558
|
+
}))]), 1536))], 64)) : C("v-if", !0);
|
|
2552
2559
|
}
|
|
2553
|
-
}), [["__scopeId", "data-v-
|
|
2560
|
+
}), [["__scopeId", "data-v-3e5dd427"]]), Ln = /* @__PURE__ */ D({
|
|
2554
2561
|
name: "TProvider",
|
|
2555
2562
|
__name: "Provider",
|
|
2556
2563
|
setup(e) {
|
|
@@ -2572,14 +2579,14 @@ var Fn = {
|
|
|
2572
2579
|
variant: "text"
|
|
2573
2580
|
})
|
|
2574
2581
|
} };
|
|
2575
|
-
return (e, n) => (
|
|
2582
|
+
return (e, n) => (P(), S(z(ot), {
|
|
2576
2583
|
"empty-values": [""],
|
|
2577
|
-
locale:
|
|
2584
|
+
locale: z(Ct),
|
|
2578
2585
|
"value-on-clear": "",
|
|
2579
2586
|
"z-index": 5500
|
|
2580
2587
|
}, {
|
|
2581
|
-
default:
|
|
2582
|
-
default:
|
|
2588
|
+
default: V(() => [E(z(Ve), { "global-config": t }, {
|
|
2589
|
+
default: V(() => [Ae(e.$slots, "default")]),
|
|
2583
2590
|
_: 3
|
|
2584
2591
|
})]),
|
|
2585
2592
|
_: 3
|
|
@@ -2587,4 +2594,4 @@ var Fn = {
|
|
|
2587
2594
|
}
|
|
2588
2595
|
});
|
|
2589
2596
|
//#endregion
|
|
2590
|
-
export { en as A, G as B, ln as C, J as D, on as E, Ht as F, kt as H, Vt as I, jt as L, qt as M, Jt as N, an as O, Yt as P, zt as R, X as S, Y as T, Tt as U, W as V, wt as W,
|
|
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 };
|