dlzn-ui 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/LoginBg-XqWOv7dJ.css +1 -0
- package/assets/main-CxSb5Gqw.css +2 -0
- package/assets/{button-Bwn73ZEc.css → provider-1BcdscQq.css} +1 -1
- package/chunks/{AssignUser-DCju22tm.mjs → AssignUser-BPrzGjCg.mjs} +3 -3
- package/chunks/{Common-DQbblaTl.mjs → Common-Ds4A0g73.mjs} +7 -7
- package/chunks/{Day-9BKmHuZl.mjs → Day-CWWVjsXu.mjs} +13 -13
- package/chunks/{DictTypeDetail-e14bGyiZ.mjs → DictTypeDetail-ijxK2MDm.mjs} +7 -7
- package/chunks/{Hour-CrFFADzT.mjs → Hour-D-2s4xgR.mjs} +1 -1
- package/chunks/{Index-ChH8kYUs.mjs → Index-D0dEcWw2.mjs} +1 -1
- package/chunks/{Index-DloA1g7z.mjs → Index-DhkEiAro.mjs} +5 -5
- package/chunks/{Index-QUCWrT4d.mjs → Index-DoPLbOv7.mjs} +1 -1
- package/chunks/{Index-CZ0ICyCx.mjs → Index-az-w01U3.mjs} +1 -1
- package/chunks/{IndexItem-OIGXdAkP.mjs → IndexItem-KlRJte7i.mjs} +6 -6
- package/chunks/{Log-DdemNjDW.mjs → Log-LYCmf0zI.mjs} +8 -8
- package/chunks/{LoginBg-BD6ChYvu.mjs → LoginBg-BtuSDFUq.mjs} +10 -18
- package/chunks/{MenuNode-DXgE629W.mjs → MenuNode-6Nca-v9i.mjs} +2 -2
- package/chunks/{Minute-xZNOCy8Q.mjs → Minute-8BpPY8V6.mjs} +1 -1
- package/chunks/{Month-CvWOcD_9.mjs → Month-C5iIZpY7.mjs} +1 -1
- package/chunks/{Second-BvMnEOms.mjs → Second-BKF09AKl.mjs} +1 -1
- package/chunks/{SelectDept-DmtKBaW0.mjs → SelectDept-C78pnJtp.mjs} +1 -1
- package/chunks/{SelectMenu-tEpLm6Ij.mjs → SelectMenu-B2-QkHU2.mjs} +1 -1
- package/chunks/{SelectUser-CTvBarod.mjs → SelectUser-BuE4Lgm0.mjs} +2 -2
- package/chunks/{UserInfo-qrNR9tve.mjs → UserInfo-uDVj4WPH.mjs} +11 -11
- package/chunks/{Wrapper-LEchQmDn.mjs → Wrapper-C6BtJDSa.mjs} +5 -5
- package/chunks/{app-CggLqjRQ.mjs → app-BXskd1Ae.mjs} +4 -4
- package/chunks/{custom-page-list-CJWB72dw.mjs → custom-page-list-r5EUcg98.mjs} +4 -4
- package/chunks/{custom-page-table-5f8lI6CQ.mjs → custom-page-table-D1FmkEop.mjs} +2 -2
- package/chunks/{overview-BEtKbidZ.mjs → overview-BCXuALeB.mjs} +1 -1
- package/chunks/{page-list-C3nqGnnX.mjs → page-list-Zp_EiMZd.mjs} +36 -36
- package/chunks/{page-query-C6oSW1je.mjs → page-query-CxZBtQht.mjs} +5 -5
- package/chunks/{page-table-3DTiPP9H.mjs → page-table-BpyyKTMq.mjs} +9 -9
- package/chunks/{pagination-C6-VAj4W.mjs → pagination-y5tkmGDM.mjs} +1 -1
- package/chunks/{button-Dk3CiB69.mjs → provider-C6TTHGoz.mjs} +427 -431
- package/chunks/{table-Cp9NQHjQ.mjs → table-2Eqd8Kcx.mjs} +10 -10
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/date-picker/index.mjs +1 -1
- package/components/date-picker/src/date-picker.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
- package/components/index.mjs +11 -11
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.d.ts +3 -3
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/page-table/src/page-table.vue.d.ts +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/select/index.mjs +2 -2
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/table/src/table.vue.d.ts +1 -1
- package/components/tree/index.mjs +2 -2
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +2 -2
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +2 -2
- package/hooks/useSysUser/index.mjs +2 -2
- package/index.d.ts +3 -0
- package/layout/Entry.mjs +1 -1
- package/layout/Login.mjs +5 -5
- 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/modules/MenuNode.mjs +1 -1
- package/layout/profile/Index.mjs +4 -4
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/main.d.ts +2 -0
- package/main.mjs +14 -0
- package/package.json +7 -3
- package/plugins/autoImport/$alova/index.mjs +2 -2
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +12 -12
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/Wrapper.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ImageViewer/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +4 -4
- package/plugins/tableRenders/title/index.mjs +1 -1
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +2 -2
- package/views/system/dept/index.mjs +10 -10
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +18 -18
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +10 -10
- package/views/system/post/index.mjs +6 -6
- package/views/system/role/index.mjs +42 -42
- 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 +49 -49
- package/views/tool/job/index.mjs +31 -31
- package/views/tool/job/modules/Log.mjs +1 -1
- package/assets/LoginBg-BTrRjkK7.css +0 -1
- package/chunks/{date-picker-DtbDIFUH.mjs → date-picker-D15OhWnK.mjs} +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as e, V as t, b as n, i as r, n as i, o as a } from "./provider-C6TTHGoz.mjs";
|
|
2
2
|
import { createBlock as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, openBlock as d, reactive as f, unref as p, useTemplateRef as m, watchEffect as h, withCtx as g } from "vue";
|
|
3
3
|
import { useRoute as _ } from "vue-router";
|
|
4
4
|
//#endregion
|
|
@@ -41,35 +41,35 @@ var v = /* @__PURE__ */ l({
|
|
|
41
41
|
_required: !0,
|
|
42
42
|
component: "TRadioGroup",
|
|
43
43
|
model: "sex",
|
|
44
|
-
options:
|
|
44
|
+
options: n("sys_user_sex", ["0", "1"])
|
|
45
45
|
},
|
|
46
46
|
{ slot: "footer" }
|
|
47
47
|
]);
|
|
48
48
|
function w() {
|
|
49
|
-
|
|
49
|
+
t().close(b.name);
|
|
50
50
|
}
|
|
51
51
|
async function T() {
|
|
52
|
-
let
|
|
53
|
-
await
|
|
52
|
+
let t = await S.value.validate();
|
|
53
|
+
await e.Put("system/user/profile", t, { meta: {
|
|
54
54
|
useLoading: "保存中...",
|
|
55
55
|
useSuccessMsg: !0
|
|
56
|
-
} }),
|
|
56
|
+
} }), r().getUserInfo(!1), y("update");
|
|
57
57
|
}
|
|
58
|
-
return (e,
|
|
58
|
+
return (e, t) => (d(), o(p(a), {
|
|
59
59
|
ref: "form",
|
|
60
60
|
items: C,
|
|
61
61
|
"label-align": "right",
|
|
62
62
|
layout: "vertical"
|
|
63
63
|
}, {
|
|
64
|
-
footer: g(() => [c(p(
|
|
65
|
-
default: g(() => [...
|
|
64
|
+
footer: g(() => [c(p(i), { onClick: T }, {
|
|
65
|
+
default: g(() => [...t[0] ||= [s("保存", -1)]]),
|
|
66
66
|
_: 1
|
|
67
|
-
}), c(p(
|
|
67
|
+
}), c(p(i), {
|
|
68
68
|
class: "ml-4!",
|
|
69
69
|
theme: "default",
|
|
70
70
|
onClick: w
|
|
71
71
|
}, {
|
|
72
|
-
default: g(() => [...
|
|
72
|
+
default: g(() => [...t[1] ||= [s("关闭", -1)]]),
|
|
73
73
|
_: 1
|
|
74
74
|
})]),
|
|
75
75
|
_: 1
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createBlock as e, createElementBlock as t, createElementVNode as n, defineComponent as r, inject as i, onMounted as a, onUpdated as o, openBlock as s, ref as c, renderSlot as l, unref as u, useAttrs as d, useTemplateRef as f, withCtx as p } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Tooltip as m } from "tdesign-vue-next";
|
|
3
|
+
import { useMutationObserver as h, useThrottleFn as g } from "@vueuse/core";
|
|
4
4
|
//#region ../../packages/dlzn-ui/plugins/tableRenders/Wrapper.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _ = { class: "inline-flex max-w-full align-middle" }, v = 25, y = /* @__PURE__ */ r({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "Wrapper",
|
|
8
8
|
setup(r) {
|
|
9
|
-
let y = i("_columnWidths"), b = i("columnMinWidths"), x = i("columnMaxWidths"), S = d(), C = f("wrapperRef"), w = c(!1), T = c(""), E =
|
|
9
|
+
let y = i("_columnWidths"), b = i("columnMinWidths"), x = i("columnMaxWidths"), S = d(), C = f("wrapperRef"), w = c(!1), T = c(""), E = g(() => {
|
|
10
10
|
if (C.value === null) return;
|
|
11
11
|
let e = C.value.closest("td, th"), t = C.value.getBoundingClientRect().width, n = C.value.scrollWidth, r = e.getBoundingClientRect().width, i = S.col.colKey, a = x[i], o = 0, s = e.querySelector(".t-table__tree-op-icon");
|
|
12
12
|
s && (o = s.getBoundingClientRect().width + Number.parseFloat(getComputedStyle(s).marginRight));
|
|
@@ -17,7 +17,7 @@ var _ = { class: "inline-flex max-w-full align-middle" }, v = 25, y = /* @__PURE
|
|
|
17
17
|
let f = Math.ceil(Math.max(t, n) + v + o + c + u), p = Math.max(Math.min(f, a), b[i]);
|
|
18
18
|
p > y.value[i] && (p <= r ? b[i] = p : y.value[i] = p + 2);
|
|
19
19
|
}, 500, !0);
|
|
20
|
-
return a(E), o(E),
|
|
20
|
+
return a(E), o(E), h(C, (e) => {
|
|
21
21
|
e.forEach(() => {
|
|
22
22
|
E();
|
|
23
23
|
});
|
|
@@ -25,7 +25,7 @@ var _ = { class: "inline-flex max-w-full align-middle" }, v = 25, y = /* @__PURE
|
|
|
25
25
|
characterData: !0,
|
|
26
26
|
childList: !0,
|
|
27
27
|
subtree: !0
|
|
28
|
-
}), (r, i) => (s(), t("div", _, [w.value ? (s(), e(u(
|
|
28
|
+
}), (r, i) => (s(), t("div", _, [w.value ? (s(), e(u(m), {
|
|
29
29
|
key: 0,
|
|
30
30
|
content: T.value
|
|
31
31
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as e, t } from "./provider-C6TTHGoz.mjs";
|
|
2
2
|
import { t as n } from "./useAppContext-D47amIp5.mjs";
|
|
3
3
|
import { t as r } from "./menu-CjNx3wKR.mjs";
|
|
4
4
|
import "../hooks/useContextMenu/menu/index.mjs";
|
|
@@ -10,10 +10,10 @@ var f = /* @__PURE__ */ o({
|
|
|
10
10
|
__name: "app",
|
|
11
11
|
setup(o) {
|
|
12
12
|
n();
|
|
13
|
-
let f =
|
|
14
|
-
return (
|
|
13
|
+
let f = e();
|
|
14
|
+
return (e, n) => {
|
|
15
15
|
let o = c("RouterView");
|
|
16
|
-
return s(), i(l(
|
|
16
|
+
return s(), i(l(t), null, {
|
|
17
17
|
default: u(() => [
|
|
18
18
|
a(o, { class: "isolate" }),
|
|
19
19
|
a(l(r)),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as e } from "./provider-C6TTHGoz.mjs";
|
|
2
2
|
import { t } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
3
3
|
import { t as n } from "./card-BfHb58zl.mjs";
|
|
4
4
|
import "../components/card/index.mjs";
|
|
5
|
-
import { t as r } from "./custom-page-table-
|
|
5
|
+
import { t as r } from "./custom-page-table-D1FmkEop.mjs";
|
|
6
6
|
import "../components/custom-page-table/index.mjs";
|
|
7
|
-
import { n as i, r as a } from "./page-list-
|
|
8
|
-
import { t as o } from "./page-query-
|
|
7
|
+
import { n as i, r as a } from "./page-list-Zp_EiMZd.mjs";
|
|
8
|
+
import { t as o } from "./page-query-CxZBtQht.mjs";
|
|
9
9
|
import "../components/page-query/index.mjs";
|
|
10
10
|
import "../components/page-list/index.mjs";
|
|
11
11
|
import { Fragment as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as f, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeDefaults as g, mergeProps as _, normalizeProps as v, openBlock as y, renderList as b, renderSlot as x, unref as S, useTemplateRef as C, withCtx as w } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, r as t } from "./page-table-
|
|
2
|
-
import { t as n } from "./pagination-
|
|
1
|
+
import { n as e, r as t } from "./page-table-BpyyKTMq.mjs";
|
|
2
|
+
import { t as n } from "./pagination-y5tkmGDM.mjs";
|
|
3
3
|
import "../components/pagination/index.mjs";
|
|
4
4
|
import "../components/page-table/index.mjs";
|
|
5
5
|
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, defineComponent as s, guardReactiveProps as c, isRef as l, mergeDefaults as u, normalizeProps as d, openBlock as f, renderSlot as p, unref as m } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./IndexItem-
|
|
1
|
+
import { t as e } from "./IndexItem-KlRJte7i.mjs";
|
|
2
2
|
import { Fragment as t, createBlock as n, createElementBlock as r, defineComponent as i, normalizeStyle as a, openBlock as o, renderList as s } from "vue";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region ../../packages/dlzn-ui/components/overview/src/overview.vue
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as e, n as t } from "./provider-C6TTHGoz.mjs";
|
|
2
2
|
import { n } from "./useAppContext-D47amIp5.mjs";
|
|
3
3
|
import r from "../plugins/autoImport/$msg/index.mjs";
|
|
4
4
|
import i from "../plugins/autoImport/dayjs/index.mjs";
|
|
5
5
|
import { t as a } from "./card-BfHb58zl.mjs";
|
|
6
6
|
import "../components/card/index.mjs";
|
|
7
|
-
import { t as o } from "./page-table-
|
|
7
|
+
import { t as o } from "./page-table-BpyyKTMq.mjs";
|
|
8
8
|
import "../components/page-table/index.mjs";
|
|
9
|
-
import { t as s } from "./page-query-
|
|
9
|
+
import { t as s } from "./page-query-CxZBtQht.mjs";
|
|
10
10
|
import "../components/page-query/index.mjs";
|
|
11
11
|
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createSlots as p, createVNode as m, defineComponent as h, guardReactiveProps as g, mergeDefaults as _, mergeProps as v, nextTick as y, normalizeProps as b, openBlock as x, ref as S, renderList as C, renderSlot as w, unref as T, useTemplateRef as E, withCtx as D } from "vue";
|
|
12
12
|
import { cloneDeep as O } from "lodash-es";
|
|
13
13
|
import { useRoute as k } from "vue-router";
|
|
14
14
|
//#region ../../packages/dlzn-ui/components/page-list/src/page-list.ts
|
|
15
15
|
var A = { isFirstQueryByParent: !1 };
|
|
16
|
-
function j({ pageQueryRef:
|
|
16
|
+
function j({ pageQueryRef: t, pageTableRef: n, props: r, route: a }) {
|
|
17
17
|
let o = S({});
|
|
18
18
|
function s() {
|
|
19
|
-
|
|
19
|
+
t.value === null ? (o.value = {}, n.value.query(!0)) : t.value.query();
|
|
20
20
|
}
|
|
21
21
|
function c() {
|
|
22
|
-
|
|
22
|
+
t.value === null ? (o.value = {}, n.value.reset()) : t.value.reset();
|
|
23
23
|
}
|
|
24
24
|
function u(e) {
|
|
25
25
|
o.value = O(e), n.value.query(!0);
|
|
@@ -30,30 +30,30 @@ function j({ pageQueryRef: e, pageTableRef: n, props: r, route: a }) {
|
|
|
30
30
|
r.isFirstQueryByParent || y(() => {
|
|
31
31
|
s();
|
|
32
32
|
});
|
|
33
|
-
let f = l(() => n.value?.finallyQueryParams), p = l(() =>
|
|
33
|
+
let f = l(() => n.value?.finallyQueryParams), p = l(() => t.value?.formData);
|
|
34
34
|
function m() {
|
|
35
|
-
|
|
35
|
+
t.value.resetFormData();
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
38
|
currentQueryParams: p,
|
|
39
39
|
doQuery: s,
|
|
40
40
|
doReset: c,
|
|
41
41
|
exportProps: l(() => {
|
|
42
|
-
let
|
|
43
|
-
if (
|
|
42
|
+
let t = r.apis.export;
|
|
43
|
+
if (t === void 0) return {};
|
|
44
44
|
let n = { meta: {
|
|
45
|
-
useDownload: `${
|
|
45
|
+
useDownload: `${t.exportFileName ?? a.meta.title}_${i().format("YYYY-MM-DD_HH:mm:ss")}.xlsx`,
|
|
46
46
|
useFormData: !0,
|
|
47
47
|
useResponseBlob: !0
|
|
48
48
|
} };
|
|
49
49
|
return {
|
|
50
50
|
default: "导出",
|
|
51
51
|
disabled: f.value === void 0,
|
|
52
|
-
permission:
|
|
52
|
+
permission: t.permission,
|
|
53
53
|
popconfirm: {
|
|
54
54
|
content: "确定导出吗?",
|
|
55
55
|
onConfirm: async () => {
|
|
56
|
-
await (typeof
|
|
56
|
+
await (typeof t.method == "string" ? e.Post(t.method, f.value, n) : t.method(f.value));
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
};
|
|
@@ -92,28 +92,28 @@ var M = /* @__PURE__ */ h({
|
|
|
92
92
|
props: _,
|
|
93
93
|
route: y
|
|
94
94
|
}), V = l(() => O.value?.selectedRows ?? []), H = l(() => O.value?.selectedRowKeys ?? []), U = l(() => {
|
|
95
|
-
let
|
|
96
|
-
return
|
|
95
|
+
let t = _.apis.delete;
|
|
96
|
+
return t ? {
|
|
97
97
|
default: "批量删除",
|
|
98
98
|
disabled: H.value.length === 0,
|
|
99
|
-
permission:
|
|
99
|
+
permission: t.permission,
|
|
100
100
|
popconfirm: {
|
|
101
101
|
content: "确认删除所选项吗?",
|
|
102
102
|
onConfirm: async () => {
|
|
103
|
-
await (typeof
|
|
103
|
+
await (typeof t.method == "string" ? e.Delete(`${t.method}/${H.value.join(",")}`) : t.method(V.value)), t.callback?.(), r.success("删除成功"), M();
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
} : {};
|
|
107
107
|
}), W = l(() => {
|
|
108
|
-
let
|
|
109
|
-
if (
|
|
108
|
+
let t = _.apis.delete;
|
|
109
|
+
if (t !== void 0) {
|
|
110
110
|
let i = _.columns.findIndex((e) => e.colKey === "_operation"), a = [..._.columns], o = ({ row: n }) => ({
|
|
111
111
|
default: "删除",
|
|
112
|
-
permission:
|
|
112
|
+
permission: t.permission,
|
|
113
113
|
popconfirm: {
|
|
114
114
|
content: "确认删除吗",
|
|
115
115
|
onConfirm: async () => {
|
|
116
|
-
await (typeof
|
|
116
|
+
await (typeof t.method == "string" ? e.Delete(`${t.method}/${n[O.value.rowKey]}`) : t.method([n])), t.callback?.(), r.success("删除成功"), M();
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
});
|
|
@@ -145,7 +145,7 @@ var M = /* @__PURE__ */ h({
|
|
|
145
145
|
resetCurrentQueryParams: B,
|
|
146
146
|
selectedRowKeys: H,
|
|
147
147
|
selectedRows: V
|
|
148
|
-
}), (
|
|
148
|
+
}), (e, n) => (x(), u(T(a), b(g(v(e.$attrs, {
|
|
149
149
|
...i.cardProps ?? {},
|
|
150
150
|
bodyFullHeight: !0,
|
|
151
151
|
bodyClassName: ["!flex flex-col overflow-y-auto", i.cardProps?.bodyClassName].filter(Boolean).join(" ")
|
|
@@ -159,9 +159,9 @@ var M = /* @__PURE__ */ h({
|
|
|
159
159
|
}, i.formOtherProps, {
|
|
160
160
|
onQuery: T(L),
|
|
161
161
|
onReset: T(R)
|
|
162
|
-
}), p({ _: 2 }, [C(Object.keys(
|
|
163
|
-
name:
|
|
164
|
-
fn: D((n) => [w(
|
|
162
|
+
}), p({ _: 2 }, [C(Object.keys(e.$slots).filter((e) => !e.startsWith("table-")), (t) => ({
|
|
163
|
+
name: t,
|
|
164
|
+
fn: D((n) => [w(e.$slots, t, b(g(n)))])
|
|
165
165
|
}))]), 1040, [
|
|
166
166
|
"data",
|
|
167
167
|
"items",
|
|
@@ -181,25 +181,25 @@ var M = /* @__PURE__ */ h({
|
|
|
181
181
|
"watch-query-params": !1
|
|
182
182
|
}, i.tableOtherProps), p({
|
|
183
183
|
"table-operations": D(() => [
|
|
184
|
-
(x(!0), f(c, null, C(i.operations?.filter((e) => e.show !== !1), (
|
|
185
|
-
i.apis.delete?.showBatch ? (x(), u(T(
|
|
186
|
-
i.apis.export ? (x(), u(T(
|
|
184
|
+
(x(!0), f(c, null, C(i.operations?.filter((e) => e.show !== !1), (e, n) => (x(), u(T(t), v({ key: n }, { ref_for: !0 }, e), null, 16))), 128)),
|
|
185
|
+
i.apis.delete?.showBatch ? (x(), u(T(t), b(v({ key: 0 }, U.value)), null, 16)) : d("v-if", !0),
|
|
186
|
+
i.apis.export ? (x(), u(T(t), b(v({ key: 1 }, T(P))), null, 16)) : d("v-if", !0)
|
|
187
187
|
]),
|
|
188
188
|
_: 2
|
|
189
|
-
}, [C(Object.keys(
|
|
189
|
+
}, [C(Object.keys(e.$slots).filter((e) => [
|
|
190
190
|
"table-operations",
|
|
191
191
|
"table-top",
|
|
192
192
|
"table-bottom"
|
|
193
|
-
].includes(e)), (
|
|
194
|
-
name:
|
|
195
|
-
fn: D((n) => [w(
|
|
196
|
-
})), C(Object.keys(
|
|
193
|
+
].includes(e)), (t) => ({
|
|
194
|
+
name: t,
|
|
195
|
+
fn: D((n) => [w(e.$slots, t, b(g(n)))])
|
|
196
|
+
})), C(Object.keys(e.$slots).filter((e) => e.startsWith("table-") && ![
|
|
197
197
|
"table-operations",
|
|
198
198
|
"table-top",
|
|
199
199
|
"table-bottom"
|
|
200
|
-
].includes(e)), (
|
|
201
|
-
name:
|
|
202
|
-
fn: D((n) => [w(
|
|
200
|
+
].includes(e)), (t) => ({
|
|
201
|
+
name: t.slice(6),
|
|
202
|
+
fn: D((n) => [w(e.$slots, t, b(g(n)))])
|
|
203
203
|
}))]), 1040, [
|
|
204
204
|
"columns",
|
|
205
205
|
"method",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as e,
|
|
1
|
+
import { U as e, n as t, o as n } from "./provider-C6TTHGoz.mjs";
|
|
2
2
|
import { computed as r, createBlock as i, createCommentVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeDefaults as d, mergeProps as f, nextTick as p, normalizeProps as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useTemplateRef as x, watch as S, withCtx as C } from "vue";
|
|
3
3
|
import { useResizeObserver as w } from "@vueuse/core";
|
|
4
4
|
import { cloneDeep as T, groupBy as E } from "lodash-es";
|
|
@@ -81,21 +81,21 @@ var D = /* @__PURE__ */ l({
|
|
|
81
81
|
query: L,
|
|
82
82
|
reset: R,
|
|
83
83
|
resetFormData: z
|
|
84
|
-
}), (e, r) => (h(), i(b(
|
|
84
|
+
}), (e, r) => (h(), i(b(n), f({
|
|
85
85
|
ref_key: "formRef",
|
|
86
86
|
ref: M,
|
|
87
87
|
data: k.value,
|
|
88
88
|
items: A.value
|
|
89
89
|
}, f(e.$attrs, j.value, { class: "relative" })), o({
|
|
90
90
|
_btn: C(() => [
|
|
91
|
-
c(b(
|
|
91
|
+
c(b(t), {
|
|
92
92
|
class: "shrink",
|
|
93
93
|
onClick: L
|
|
94
94
|
}, {
|
|
95
95
|
default: C(() => [...r[1] ||= [s("查询", -1)]]),
|
|
96
96
|
_: 1
|
|
97
97
|
}),
|
|
98
|
-
c(b(
|
|
98
|
+
c(b(t), {
|
|
99
99
|
class: "shrink",
|
|
100
100
|
theme: "default",
|
|
101
101
|
onClick: R
|
|
@@ -103,7 +103,7 @@ var D = /* @__PURE__ */ l({
|
|
|
103
103
|
default: C(() => [...r[2] ||= [s("重置", -1)]]),
|
|
104
104
|
_: 1
|
|
105
105
|
}),
|
|
106
|
-
P.value ? (h(), i(b(
|
|
106
|
+
P.value ? (h(), i(b(t), {
|
|
107
107
|
key: 0,
|
|
108
108
|
class: "shrink",
|
|
109
109
|
variant: "outline",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as e, S as t,
|
|
1
|
+
import { C as e, S as t, w as n } from "./provider-C6TTHGoz.mjs";
|
|
2
2
|
import { queryStringToObject as r } from "../utils/string.mjs";
|
|
3
3
|
import "../utils/index.mjs";
|
|
4
|
-
import { t as i } from "./pagination-
|
|
4
|
+
import { t as i } from "./pagination-y5tkmGDM.mjs";
|
|
5
5
|
import "../components/pagination/index.mjs";
|
|
6
|
-
import { n as a, t as o } from "./table-
|
|
6
|
+
import { n as a, t as o } from "./table-2Eqd8Kcx.mjs";
|
|
7
7
|
import "../components/table/index.mjs";
|
|
8
8
|
import { computed as s, createBlock as c, createCommentVNode as l, createSlots as u, defineComponent as d, guardReactiveProps as f, isRef as p, mergeDefaults as m, mergeProps as h, normalizeProps as g, openBlock as _, ref as v, renderList as y, renderSlot as b, unref as x, useTemplateRef as S, watch as C, withCtx as w } from "vue";
|
|
9
9
|
import { useWatcher as T } from "alova/client";
|
|
@@ -14,7 +14,7 @@ var E = {
|
|
|
14
14
|
watchQueryParams: !0
|
|
15
15
|
};
|
|
16
16
|
function D(i) {
|
|
17
|
-
let a = s(() => typeof i.method == "string" ? (e) =>
|
|
17
|
+
let a = s(() => typeof i.method == "string" ? (e) => t.Get(i.method, { params: e }) : i.method), o = v(1), c = v(10), l = v(0), { data: u, loading: d, onSuccess: f } = T(() => a.value({
|
|
18
18
|
pageNum: o.value,
|
|
19
19
|
pageSize: c.value,
|
|
20
20
|
...i.queryParams
|
|
@@ -29,11 +29,11 @@ function D(i) {
|
|
|
29
29
|
total: 0
|
|
30
30
|
}
|
|
31
31
|
}), p = v(void 0), m = v(!0);
|
|
32
|
-
f(({ method:
|
|
33
|
-
let { meta: n, params: i } =
|
|
34
|
-
m.value = n?.useEmptyParams ?? !0, p.value = typeof i == "string" ? r(i) :
|
|
35
|
-
}), i.initialQuery && l.value++, C(() => i.queryParams, (
|
|
36
|
-
i.watchQueryParams && e
|
|
32
|
+
f(({ method: t }) => {
|
|
33
|
+
let { meta: n, params: i } = t.config;
|
|
34
|
+
m.value = n?.useEmptyParams ?? !0, p.value = typeof i == "string" ? r(i) : e(i, m.value);
|
|
35
|
+
}), i.initialQuery && l.value++, C(() => i.queryParams, (e, t) => {
|
|
36
|
+
i.watchQueryParams && n(e ?? {}, m.value) !== n(t ?? {}, m.value) && l.value++;
|
|
37
37
|
}, { deep: !0 });
|
|
38
38
|
function h(e = !1) {
|
|
39
39
|
e && (o.value = 1), l.value++;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as e } from "./provider-C6TTHGoz.mjs";
|
|
2
2
|
import { t } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
3
3
|
import { computed as n, createBlock as r, defineComponent as i, getCurrentInstance as a, h as o, mergeProps as s, openBlock as c, resolveDynamicComponent as l, unref as u } from "vue";
|
|
4
4
|
import { Pagination as d } from "tdesign-vue-next";
|