@since2006/pages 2025.8.2 → 2025.8.4

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.
Files changed (111) hide show
  1. package/dist/es/index.js +18 -8
  2. package/dist/es/src/app/attachment/AttachmentEdit.vue.js +181 -0
  3. package/dist/es/src/app/attachment/AttachmentEdit.vue2.js +4 -0
  4. package/dist/es/src/app/attachment/AttachmentList.vue.js +178 -0
  5. package/dist/es/src/app/attachment/AttachmentList.vue2.js +4 -0
  6. package/dist/es/src/app/attachment/api.js +28 -0
  7. package/dist/es/src/app/attachment/index.js +7 -0
  8. package/dist/es/src/app/dict/DictEdit.vue.js +159 -0
  9. package/dist/es/src/app/dict/DictEdit.vue2.js +4 -0
  10. package/dist/es/src/app/dict/DictIndex.vue.js +7 -0
  11. package/dist/es/src/app/dict/DictIndex.vue2.js +202 -0
  12. package/dist/es/src/app/dict/DictIndex.vue3.js +1 -0
  13. package/dist/es/src/app/dict/DictItemEdit.vue.js +7 -0
  14. package/dist/es/src/app/dict/DictItemEdit.vue2.js +180 -0
  15. package/dist/es/src/app/dict/DictPanel.vue.js +7 -0
  16. package/dist/es/src/app/dict/DictPanel.vue2.js +261 -0
  17. package/dist/es/src/app/dict/api.js +47 -0
  18. package/dist/es/src/app/dict/index.js +9 -0
  19. package/dist/es/src/app/log/LogIndex.vue.js +238 -0
  20. package/dist/es/src/app/log/LogIndex.vue2.js +4 -0
  21. package/dist/es/src/app/log/LogView.vue.js +7 -0
  22. package/dist/es/src/app/log/LogView.vue2.js +164 -0
  23. package/dist/es/src/app/log/api.js +11 -0
  24. package/dist/es/src/app/log/index.js +7 -0
  25. package/dist/es/src/app/log/ua-icons.vue.js +7 -0
  26. package/dist/es/src/app/log/ua-icons.vue2.js +61 -0
  27. package/dist/es/src/app/metadata/MetadataCreate.vue.js +115 -0
  28. package/dist/es/src/app/metadata/MetadataCreate.vue2.js +4 -0
  29. package/dist/es/src/app/metadata/MetadataIndex.vue.js +179 -0
  30. package/dist/es/src/app/metadata/MetadataIndex.vue2.js +4 -0
  31. package/dist/es/src/app/metadata/MetadataUpdate.vue.js +128 -0
  32. package/dist/es/src/app/metadata/MetadataUpdate.vue2.js +4 -0
  33. package/dist/es/src/app/metadata/api.js +23 -0
  34. package/dist/es/src/app/metadata/index.js +7 -0
  35. package/dist/es/src/app/module/ModuleIndex.vue.js +5 -216
  36. package/dist/es/src/app/module/ModuleIndex.vue2.js +219 -2
  37. package/dist/es/src/app/module/index.js +5 -7
  38. package/dist/es/src/app/schedule/CronTypeSelect.vue.js +513 -0
  39. package/dist/es/src/app/schedule/CronTypeSelect.vue2.js +4 -0
  40. package/dist/es/src/app/schedule/ScheduleAdd.vue.js +7 -0
  41. package/dist/es/src/app/schedule/ScheduleAdd.vue2.js +191 -0
  42. package/dist/es/src/app/schedule/ScheduleEdit.vue.js +7 -0
  43. package/dist/es/src/app/schedule/ScheduleEdit.vue2.js +203 -0
  44. package/dist/es/src/app/schedule/ScheduleIndex.vue.js +279 -0
  45. package/dist/es/src/app/schedule/ScheduleIndex.vue2.js +4 -0
  46. package/dist/es/src/app/schedule/ScheduleLogList.vue.js +153 -0
  47. package/dist/es/src/app/schedule/ScheduleLogList.vue2.js +4 -0
  48. package/dist/es/src/app/schedule/ScheduleLogView.vue.js +7 -0
  49. package/dist/es/src/app/schedule/ScheduleLogView.vue2.js +116 -0
  50. package/dist/es/src/app/schedule/api.js +38 -0
  51. package/dist/es/src/app/schedule/index.js +7 -0
  52. package/dist/es/src/app/schedule/schedule.js +58 -0
  53. package/dist/es/src/app/system/index.js +3 -5
  54. package/dist/es/src/index.js +13 -2
  55. package/dist/es/style.css +1 -1
  56. package/dist/lib/index.js +1 -1
  57. package/dist/lib/src/app/attachment/AttachmentEdit.vue.js +1 -0
  58. package/dist/lib/src/app/attachment/AttachmentEdit.vue2.js +1 -0
  59. package/dist/lib/src/app/attachment/AttachmentList.vue.js +1 -0
  60. package/dist/lib/src/app/attachment/AttachmentList.vue2.js +1 -0
  61. package/dist/lib/src/app/attachment/api.js +1 -0
  62. package/dist/lib/src/app/attachment/index.js +1 -0
  63. package/dist/lib/src/app/dict/DictEdit.vue.js +1 -0
  64. package/dist/lib/src/app/dict/DictEdit.vue2.js +1 -0
  65. package/dist/lib/src/app/dict/DictIndex.vue.js +1 -0
  66. package/dist/lib/src/app/dict/DictIndex.vue2.js +1 -0
  67. package/dist/lib/src/app/dict/DictIndex.vue3.js +1 -0
  68. package/dist/lib/src/app/dict/DictItemEdit.vue.js +1 -0
  69. package/dist/lib/src/app/dict/DictItemEdit.vue2.js +1 -0
  70. package/dist/lib/src/app/dict/DictPanel.vue.js +1 -0
  71. package/dist/lib/src/app/dict/DictPanel.vue2.js +1 -0
  72. package/dist/lib/src/app/dict/api.js +1 -0
  73. package/dist/lib/src/app/dict/index.js +1 -0
  74. package/dist/lib/src/app/log/LogIndex.vue.js +1 -0
  75. package/dist/lib/src/app/log/LogIndex.vue2.js +1 -0
  76. package/dist/lib/src/app/log/LogView.vue.js +1 -0
  77. package/dist/lib/src/app/log/LogView.vue2.js +1 -0
  78. package/dist/lib/src/app/log/api.js +1 -0
  79. package/dist/lib/src/app/log/index.js +1 -0
  80. package/dist/lib/src/app/log/ua-icons.vue.js +1 -0
  81. package/dist/lib/src/app/log/ua-icons.vue2.js +1 -0
  82. package/dist/lib/src/app/metadata/MetadataCreate.vue.js +1 -0
  83. package/dist/lib/src/app/metadata/MetadataCreate.vue2.js +1 -0
  84. package/dist/lib/src/app/metadata/MetadataIndex.vue.js +1 -0
  85. package/dist/lib/src/app/metadata/MetadataIndex.vue2.js +1 -0
  86. package/dist/lib/src/app/metadata/MetadataUpdate.vue.js +1 -0
  87. package/dist/lib/src/app/metadata/MetadataUpdate.vue2.js +1 -0
  88. package/dist/lib/src/app/metadata/api.js +1 -0
  89. package/dist/lib/src/app/metadata/index.js +1 -0
  90. package/dist/lib/src/app/module/ModuleIndex.vue.js +1 -1
  91. package/dist/lib/src/app/module/ModuleIndex.vue2.js +1 -1
  92. package/dist/lib/src/app/module/index.js +1 -1
  93. package/dist/lib/src/app/schedule/CronTypeSelect.vue.js +1 -0
  94. package/dist/lib/src/app/schedule/CronTypeSelect.vue2.js +1 -0
  95. package/dist/lib/src/app/schedule/ScheduleAdd.vue.js +1 -0
  96. package/dist/lib/src/app/schedule/ScheduleAdd.vue2.js +1 -0
  97. package/dist/lib/src/app/schedule/ScheduleEdit.vue.js +1 -0
  98. package/dist/lib/src/app/schedule/ScheduleEdit.vue2.js +1 -0
  99. package/dist/lib/src/app/schedule/ScheduleIndex.vue.js +1 -0
  100. package/dist/lib/src/app/schedule/ScheduleIndex.vue2.js +1 -0
  101. package/dist/lib/src/app/schedule/ScheduleLogList.vue.js +1 -0
  102. package/dist/lib/src/app/schedule/ScheduleLogList.vue2.js +1 -0
  103. package/dist/lib/src/app/schedule/ScheduleLogView.vue.js +1 -0
  104. package/dist/lib/src/app/schedule/ScheduleLogView.vue2.js +1 -0
  105. package/dist/lib/src/app/schedule/api.js +1 -0
  106. package/dist/lib/src/app/schedule/index.js +1 -0
  107. package/dist/lib/src/app/schedule/schedule.js +1 -0
  108. package/dist/lib/src/app/system/index.js +1 -1
  109. package/dist/lib/src/index.js +1 -1
  110. package/dist/lib/style.css +1 -1
  111. package/package.json +1 -1
@@ -0,0 +1,179 @@
1
+ import { defineComponent as M, ref as f, reactive as j, resolveComponent as o, openBlock as p, createElementBlock as _, createElementVNode as m, createVNode as e, withCtx as a, createTextVNode as l, unref as s, Fragment as b, toDisplayString as B, createCommentVNode as R } from "vue";
2
+ import { ProfileTwoTone as F, PlusOutlined as Y } from "@ant-design/icons-vue";
3
+ import { queryMetadatas as z, deleteMetadata as O } from "./api.js";
4
+ import { message as y } from "ant-design-vue";
5
+ import { FxCardTable as A, ClickCopy as G } from "@since2006/components";
6
+ import H from "./MetadataCreate.vue.js";
7
+ import J from "./MetadataUpdate.vue.js";
8
+ const L = { class: "ant-pro-table" }, Q = { class: "ant-pro-table-search" }, W = ["onClick"], le = /* @__PURE__ */ M({
9
+ __name: "MetadataIndex",
10
+ setup(X) {
11
+ const n = f(), g = [
12
+ {
13
+ title: "对象ID",
14
+ dataIndex: "objectId"
15
+ },
16
+ {
17
+ title: "对象KEY",
18
+ dataIndex: "metaKey"
19
+ },
20
+ {
21
+ title: "对象值",
22
+ dataIndex: "metaValue"
23
+ },
24
+ {
25
+ title: "描述",
26
+ dataIndex: "remark"
27
+ },
28
+ {
29
+ title: "操作",
30
+ dataIndex: "action",
31
+ width: 150
32
+ }
33
+ ], d = j({
34
+ query: void 0
35
+ }), u = () => {
36
+ n.value.refresh();
37
+ }, q = () => {
38
+ d.query = void 0, u();
39
+ }, S = (i) => {
40
+ O(i.id).then(() => {
41
+ y.success("删除元数据成功"), n.value.refresh();
42
+ });
43
+ }, v = f(), C = f(), U = () => {
44
+ v.value.preCreate();
45
+ }, V = (i) => {
46
+ C.value.preUpdate(i.id);
47
+ }, h = () => {
48
+ y.success("添加元数据成功"), n.value.refresh();
49
+ }, w = () => {
50
+ y.success("编辑元数据成功"), n.value.refresh();
51
+ };
52
+ return (i, t) => {
53
+ const E = o("a-input"), D = o("a-form-item"), x = o("a-col"), c = o("a-button"), K = o("a-row"), N = o("a-form"), P = o("a-divider"), T = o("a-popconfirm");
54
+ return p(), _("div", null, [
55
+ m("div", L, [
56
+ m("div", Q, [
57
+ e(N, { layout: "horizontal" }, {
58
+ default: a(() => [
59
+ e(K, {
60
+ gutter: 16,
61
+ type: "flex",
62
+ justify: "start"
63
+ }, {
64
+ default: a(() => [
65
+ e(x, {
66
+ xs: 24,
67
+ sm: 24,
68
+ md: 12,
69
+ lg: 7
70
+ }, {
71
+ default: a(() => [
72
+ e(D, { label: "搜索" }, {
73
+ default: a(() => [
74
+ e(E, {
75
+ value: d.query,
76
+ "onUpdate:value": t[0] || (t[0] = (r) => d.query = r),
77
+ placeholder: "对象ID、对象KEY、备注",
78
+ onPressEnter: u
79
+ }, null, 8, ["value"])
80
+ ]),
81
+ _: 1
82
+ })
83
+ ]),
84
+ _: 1
85
+ }),
86
+ e(x, null, {
87
+ default: a(() => [
88
+ e(c, {
89
+ onClick: u,
90
+ type: "primary"
91
+ }, {
92
+ default: a(() => t[1] || (t[1] = [
93
+ l("搜索")
94
+ ])),
95
+ _: 1
96
+ }),
97
+ e(c, {
98
+ onClick: q,
99
+ style: { "margin-left": "16px" }
100
+ }, {
101
+ default: a(() => t[2] || (t[2] = [
102
+ l("重置")
103
+ ])),
104
+ _: 1
105
+ })
106
+ ]),
107
+ _: 1
108
+ })
109
+ ]),
110
+ _: 1
111
+ })
112
+ ]),
113
+ _: 1
114
+ })
115
+ ]),
116
+ e(s(A), {
117
+ columns: g,
118
+ "load-data": s(z),
119
+ params: d,
120
+ ref_key: "tableRef",
121
+ ref: n
122
+ }, {
123
+ title: a(() => [
124
+ e(s(F)),
125
+ t[3] || (t[3] = l(" 元数据配置"))
126
+ ]),
127
+ toolbar: a(() => [
128
+ e(c, {
129
+ type: "primary",
130
+ onClick: U
131
+ }, {
132
+ default: a(() => [
133
+ e(s(Y)),
134
+ t[4] || (t[4] = l(" 新建 "))
135
+ ]),
136
+ _: 1
137
+ })
138
+ ]),
139
+ bodyCell: a(({ column: r, record: k, text: I }) => [
140
+ r.dataIndex === "metaKey" || r.dataIndex === "metaValue" ? (p(), _(b, { key: 0 }, [
141
+ l(B(I) + " ", 1),
142
+ e(s(G), { value: I }, null, 8, ["value"])
143
+ ], 64)) : R("", !0),
144
+ r.dataIndex === "action" ? (p(), _(b, { key: 1 }, [
145
+ m("a", {
146
+ onClick: ($) => V(k)
147
+ }, "编辑", 8, W),
148
+ e(P, { type: "vertical" }),
149
+ e(T, {
150
+ title: "确定要删除吗?",
151
+ onConfirm: ($) => S(k)
152
+ }, {
153
+ default: a(() => t[5] || (t[5] = [
154
+ m("a", null, "删除", -1)
155
+ ])),
156
+ _: 2
157
+ }, 1032, ["onConfirm"])
158
+ ], 64)) : R("", !0)
159
+ ]),
160
+ _: 1
161
+ }, 8, ["load-data", "params"])
162
+ ]),
163
+ e(H, {
164
+ ref_key: "modalCreateRef",
165
+ ref: v,
166
+ onSuccess: h
167
+ }, null, 512),
168
+ e(J, {
169
+ ref_key: "modalUpdateRef",
170
+ ref: C,
171
+ onSuccess: w
172
+ }, null, 512)
173
+ ]);
174
+ };
175
+ }
176
+ });
177
+ export {
178
+ le as default
179
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./MetadataIndex.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,128 @@
1
+ import { defineComponent as x, ref as p, reactive as w, resolveComponent as n, openBlock as C, createBlock as D, withCtx as o, createVNode as t, toRaw as E } from "vue";
2
+ import { getMetadata as R, updateMetadata as V } from "./api.js";
3
+ const q = /* @__PURE__ */ x({
4
+ __name: "MetadataUpdate",
5
+ emits: ["success", "cancel"],
6
+ setup(Y, { expose: v, emit: b }) {
7
+ const s = p(!1);
8
+ v({ preUpdate: (u) => {
9
+ s.value = !0, k(), R(u).then((a) => {
10
+ const c = a.result;
11
+ Object.assign(e, c);
12
+ });
13
+ } });
14
+ const f = b, i = p(), _ = {
15
+ id: null,
16
+ objectId: null,
17
+ metaKey: null,
18
+ metaValue: null,
19
+ remark: null
20
+ }, e = w({ ..._ }), g = {
21
+ objectId: [{ required: !0, message: "请填写对象ID" }],
22
+ metaKey: [{ required: !0, message: "请填写对象KEY" }]
23
+ }, k = () => {
24
+ Object.assign(e, _);
25
+ }, m = p(!1), I = () => {
26
+ i.value.validateFields().then(() => {
27
+ m.value = !0;
28
+ const u = { ...E(e) };
29
+ V(u).then((a) => {
30
+ a.code === 200 && (s.value = !1, f("success"));
31
+ });
32
+ }).finally(() => {
33
+ m.value = !1;
34
+ });
35
+ }, K = () => {
36
+ s.value = !1, f("cancel");
37
+ };
38
+ return (u, a) => {
39
+ const c = n("a-alert"), r = n("a-form-item"), d = n("a-input"), y = n("a-textarea"), j = n("a-form"), U = n("a-modal");
40
+ return C(), D(U, {
41
+ title: "编辑元数据",
42
+ width: 800,
43
+ open: s.value,
44
+ "mask-closable": !1,
45
+ "destroy-on-close": "",
46
+ "confirm-loading": m.value,
47
+ onOk: I,
48
+ onCancel: K
49
+ }, {
50
+ default: o(() => [
51
+ t(j, {
52
+ ref_key: "formRef",
53
+ ref: i,
54
+ model: e,
55
+ rules: g,
56
+ "label-col": { span: 5 },
57
+ "wrapper-col": { span: 12 }
58
+ }, {
59
+ default: o(() => [
60
+ t(r, { "wrapper-col": { span: 24 } }, {
61
+ default: o(() => [
62
+ t(c, {
63
+ message: "请谨慎修改“对象ID”和“对象KEY”的内容,实际使用中一般硬编码在代码中。",
64
+ banner: ""
65
+ })
66
+ ]),
67
+ _: 1
68
+ }),
69
+ t(r, {
70
+ label: "对象ID",
71
+ name: "objectId"
72
+ }, {
73
+ default: o(() => [
74
+ t(d, {
75
+ value: e.objectId,
76
+ "onUpdate:value": a[0] || (a[0] = (l) => e.objectId = l),
77
+ placeholder: "对象ID"
78
+ }, null, 8, ["value"])
79
+ ]),
80
+ _: 1
81
+ }),
82
+ t(r, {
83
+ label: "对象KEY",
84
+ name: "metaKey"
85
+ }, {
86
+ default: o(() => [
87
+ t(d, {
88
+ value: e.metaKey,
89
+ "onUpdate:value": a[1] || (a[1] = (l) => e.metaKey = l),
90
+ placeholder: "对象KEY"
91
+ }, null, 8, ["value"])
92
+ ]),
93
+ _: 1
94
+ }),
95
+ t(r, { label: "对象值" }, {
96
+ default: o(() => [
97
+ t(d, {
98
+ value: e.metaValue,
99
+ "onUpdate:value": a[2] || (a[2] = (l) => e.metaValue = l),
100
+ placeholder: "对象值"
101
+ }, null, 8, ["value"])
102
+ ]),
103
+ _: 1
104
+ }),
105
+ t(r, {
106
+ label: "描述",
107
+ name: "remark"
108
+ }, {
109
+ default: o(() => [
110
+ t(y, {
111
+ value: e.remark,
112
+ "onUpdate:value": a[3] || (a[3] = (l) => e.remark = l)
113
+ }, null, 8, ["value"])
114
+ ]),
115
+ _: 1
116
+ })
117
+ ]),
118
+ _: 1
119
+ }, 8, ["model"])
120
+ ]),
121
+ _: 1
122
+ }, 8, ["open", "confirm-loading"]);
123
+ };
124
+ }
125
+ });
126
+ export {
127
+ q as default
128
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./MetadataUpdate.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,23 @@
1
+ import { http as a } from "@since2006/utils";
2
+ function d(t) {
3
+ return a.get("/api/v2/metadata/config/query_metadatas", { params: t });
4
+ }
5
+ function n(t) {
6
+ return a.post("/api/v2/metadata/config/delete_metadata", { id: t });
7
+ }
8
+ function i(t) {
9
+ return a.post("/api/v2/metadata/config/create_metadata", t);
10
+ }
11
+ function r(t) {
12
+ return a.get("/api/v2/metadata/config/get_metadata?id=" + t);
13
+ }
14
+ function o(t) {
15
+ return a.post("/api/v2/metadata/config/update_metadata", t);
16
+ }
17
+ export {
18
+ i as createMetadata,
19
+ n as deleteMetadata,
20
+ r as getMetadata,
21
+ d as queryMetadatas,
22
+ o as updateMetadata
23
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./MetadataIndex.vue.js";
2
+ import { withInstall as a } from "@since2006/utils";
3
+ const r = a(t);
4
+ export {
5
+ r as MetadataIndex,
6
+ r as default
7
+ };
@@ -1,218 +1,7 @@
1
- import { defineComponent as J, ref as f, reactive as T, resolveComponent as d, openBlock as w, createElementBlock as Q, createVNode as n, withCtx as a, createElementVNode as v, unref as y, createTextVNode as g, withDirectives as x, vShow as A, createBlock as W, resolveDynamicComponent as X } from "vue";
2
- import { message as Y } from "ant-design-vue";
3
- import { getModulesNoCache as C, getModule as Z, deleteModule as ee } from "./api.js";
4
- import { mapTreeData as k } from "./utils.js";
5
- import { PlusOutlined as K, EditOutlined as oe, DeleteOutlined as te } from "@ant-design/icons-vue";
6
- import ne from "./ModuleDetail.vue.js";
7
- import le from "./ModuleAdd.vue.js";
8
- import ae from "./ModuleEdit.vue.js";
9
- const de = { class: "ant-pro-table-list-toolbar" }, se = { class: "ant-pro-table-list-toolbar-container" }, ue = { class: "ant-pro-table-list-toolbar-right" }, ge = /* @__PURE__ */ J({
10
- __name: "ModuleIndex",
11
- setup(re) {
12
- const L = f(), s = f([]), b = f([]), r = f([]), u = T({
13
- id: "",
14
- cateId: "",
15
- parentId: "",
16
- icon: "",
17
- component: "",
18
- path: "",
19
- seqNo: "",
20
- remark: "",
21
- permsSummary: ""
22
- }), E = f(!0), i = T({
23
- openAdd: !1,
24
- openEdit: !1
25
- }), M = f(!1), O = () => {
26
- C().then((o) => {
27
- r.value = k(o.result), h(r.value[0].key);
28
- });
29
- }, N = (o) => {
30
- s.value = o;
31
- }, B = (o) => new Promise((e) => {
32
- if (o.dataRef.children) {
33
- e("当前节点没有子模块");
34
- return;
35
- }
36
- C(o.dataRef.key).then((t) => {
37
- o.dataRef.children = k(t.result), r.value = [...r.value], e("获取模块数据成功");
38
- });
39
- }), V = (o, e) => {
40
- const t = e.node.dataRef, l = s.value.includes(t.key);
41
- if (t.isLeaf || (e.selected ? l || s.value.push(t.key) : l && (s.value = s.value.filter((c) => c !== t.key))), o.length === 0)
42
- return;
43
- const p = o[0];
44
- h(p);
45
- }, h = (o) => {
46
- E.value = !0, Z(o).then((e) => {
47
- Object.assign(u, e.result), E.value = !1;
48
- }).catch((e) => {
49
- console.log(e);
50
- });
51
- }, U = () => {
52
- M.value = !0, i.openAdd = !0;
53
- }, j = () => {
54
- M.value = !1, i.openAdd = !0;
55
- }, q = (o) => {
56
- m(o);
57
- }, P = () => {
58
- i.openEdit = !0;
59
- }, $ = (o, e, t) => {
60
- h(o), e === t || m(t), m(e);
61
- }, z = () => {
62
- ee(u.id).then((o) => {
63
- Y.success("删除成功"), m(o.result.parentId);
64
- });
65
- }, m = (o) => {
66
- C(o).then((e) => {
67
- o ? D(r.value, o, k(e.result)) : r.value = k(e.result);
68
- });
69
- }, D = (o, e, t) => {
70
- o.forEach((l) => {
71
- if (l.key === e) {
72
- l.isLeaf = t.length === 0;
73
- const p = S([l], 0);
74
- b.value = b.value.filter((c) => !p.includes(c)), s.value = s.value.filter((c) => !p.includes(c)), l.children = t;
75
- } else
76
- l.children && D(l.children, e, t);
77
- });
78
- }, S = (o, e) => {
79
- let t = [];
80
- return o.forEach((l) => {
81
- e > 0 && t.push(l.key), l.children && (t = t.concat(S(l.children, ++e)));
82
- }), t;
83
- };
84
- return O(), (o, e) => {
85
- const t = d("a-button"), l = d("a-popconfirm"), p = d("a-button-group"), c = d("a-space"), F = d("a-tree"), R = d("a-col"), G = d("a-skeleton"), H = d("a-row"), I = d("a-card");
86
- return w(), Q("div", null, [
87
- n(I, {
88
- "body-style": { padding: "0 20px 20px 10px" },
89
- ref_key: "fusRef",
90
- ref: L
91
- }, {
92
- default: a(() => [
93
- v("div", de, [
94
- v("div", se, [
95
- e[6] || (e[6] = v("div", { class: "ant-pro-table-list-toolbar-left" }, [
96
- v("div", { class: "ant-pro-table-list-toolbar-title" }, "模块配置")
97
- ], -1)),
98
- v("div", ue, [
99
- n(c, { align: "center" }, {
100
- default: a(() => [
101
- n(p, null, {
102
- default: a(() => [
103
- n(t, { onClick: U }, {
104
- default: a(() => [
105
- n(y(K)),
106
- e[2] || (e[2] = g(" 添加根模块 "))
107
- ]),
108
- _: 1
109
- }),
110
- x(n(t, { onClick: j }, {
111
- default: a(() => [
112
- n(y(K)),
113
- e[3] || (e[3] = g(" 添加子模块 "))
114
- ]),
115
- _: 1
116
- }, 512), [
117
- [A, u.id]
118
- ]),
119
- x(n(t, { onClick: P }, {
120
- default: a(() => [
121
- n(y(oe)),
122
- e[4] || (e[4] = g(" 修改模块 "))
123
- ]),
124
- _: 1
125
- }, 512), [
126
- [A, u.id]
127
- ]),
128
- n(l, {
129
- title: "是否确认删除模块?",
130
- onConfirm: z
131
- }, {
132
- default: a(() => [
133
- x(n(t, { danger: "" }, {
134
- default: a(() => [
135
- n(y(te)),
136
- e[5] || (e[5] = g(" 删除模块 "))
137
- ]),
138
- _: 1
139
- }, 512), [
140
- [A, u.id]
141
- ])
142
- ]),
143
- _: 1
144
- })
145
- ]),
146
- _: 1
147
- })
148
- ]),
149
- _: 1
150
- })
151
- ])
152
- ])
153
- ]),
154
- n(H, null, {
155
- default: a(() => [
156
- n(R, {
157
- sm: 5,
158
- md: 4
159
- }, {
160
- default: a(() => [
161
- n(F, {
162
- showIcon: !0,
163
- expandedKeys: s.value,
164
- loadedKeys: b.value,
165
- treeData: r.value,
166
- onExpand: N,
167
- loadData: B,
168
- onSelect: V
169
- }, {
170
- icon: a((_) => [
171
- (w(), W(X(_.iconName)))
172
- ]),
173
- _: 1
174
- }, 8, ["expandedKeys", "loadedKeys", "treeData"])
175
- ]),
176
- _: 1
177
- }),
178
- n(R, {
179
- sm: 19,
180
- md: 20
181
- }, {
182
- default: a(() => [
183
- n(G, { loading: E.value }, {
184
- default: a(() => [
185
- n(ne, { module: u }, null, 8, ["module"])
186
- ]),
187
- _: 1
188
- }, 8, ["loading"])
189
- ]),
190
- _: 1
191
- })
192
- ]),
193
- _: 1
194
- })
195
- ]),
196
- _: 1
197
- }, 512),
198
- n(le, {
199
- ref: "moduleAdd",
200
- open: i.openAdd,
201
- "onUpdate:open": e[0] || (e[0] = (_) => i.openAdd = _),
202
- "parent-id": M.value ? null : u.id,
203
- onSuccess: q
204
- }, null, 8, ["open", "parent-id"]),
205
- n(ae, {
206
- ref: "moduleEdit",
207
- open: i.openEdit,
208
- "onUpdate:open": e[1] || (e[1] = (_) => i.openEdit = _),
209
- "module-id": u.id,
210
- onSuccess: $
211
- }, null, 8, ["open", "module-id"])
212
- ]);
213
- };
214
- }
215
- });
1
+ import o from "./ModuleIndex.vue2.js";
2
+ /* empty css */
3
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ae963ea6"]]);
216
5
  export {
217
- ge as default
6
+ m as default
218
7
  };