@since2006/pages 2026.1.0 → 2026.1.2
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/dist/es/src/app/attachment/AttachmentEdit.vue.js +65 -93
- package/dist/es/src/app/module/ModuleAdd.vue.js +2 -2
- package/dist/es/src/app/module/ModuleAdd.vue2.js +50 -46
- package/dist/es/src/app/module/ModuleDetail.vue.js +30 -29
- package/dist/es/src/app/module/ModuleEdit.vue.js +2 -2
- package/dist/es/src/app/module/ModuleEdit.vue2.js +49 -45
- package/dist/es/src/app/module/ModuleIndex.vue.js +2 -2
- package/dist/es/src/app/module/ModuleIndex.vue2.js +76 -73
- package/dist/es/src/app/module/icon/AppIcon.vue.js +35 -0
- package/dist/es/src/app/system/StatusIndex.vue.js +1 -1
- package/dist/es/src/app/system/StatusIndex.vue2.js +33 -33
- package/dist/es/style.css +1 -1
- package/dist/lib/src/app/attachment/AttachmentEdit.vue.js +1 -1
- package/dist/lib/src/app/attachment/AttachmentIndex.vue.js +1 -1
- package/dist/lib/src/app/dict/DictIndex.vue2.js +1 -1
- package/dist/lib/src/app/dict/DictPanel.vue2.js +1 -1
- package/dist/lib/src/app/log/components/AuditLogList.vue2.js +1 -1
- package/dist/lib/src/app/log/components/ErrorLogList.vue2.js +1 -1
- package/dist/lib/src/app/log/components/LoginLogDetail.vue2.js +1 -1
- package/dist/lib/src/app/log/components/LoginLogList.vue2.js +1 -1
- package/dist/lib/src/app/log/components/OperationLogList.vue2.js +1 -1
- package/dist/lib/src/app/module/ModuleAdd.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleAdd.vue2.js +1 -1
- package/dist/lib/src/app/module/ModuleDetail.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleEdit.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleEdit.vue2.js +1 -1
- package/dist/lib/src/app/module/ModuleIndex.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleIndex.vue2.js +1 -1
- package/dist/lib/src/app/module/icon/AppIcon.vue.js +1 -0
- package/dist/lib/src/app/schedule/ScheduleIndex.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleLogList.vue.js +1 -1
- package/dist/lib/src/app/system/StatusIndex.vue.js +1 -1
- package/dist/lib/src/app/system/StatusIndex.vue2.js +1 -1
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { message as
|
|
4
|
-
import { SearchOutlined as
|
|
5
|
-
import { getModule as
|
|
6
|
-
import { PermPanel as
|
|
7
|
-
|
|
1
|
+
import { defineComponent as $, ref as i, reactive as z, watch as G, resolveComponent as r, openBlock as H, createBlock as J, withCtx as n, createVNode as t, unref as U, createTextVNode as C } from "vue";
|
|
2
|
+
import K from "./icon/IconSelectorModal.vue.js";
|
|
3
|
+
import { message as Q } from "ant-design-vue";
|
|
4
|
+
import { SearchOutlined as W } from "@ant-design/icons-vue";
|
|
5
|
+
import { getModule as X, getModules as Y, getDocs as Z, updateModule as ee } from "./api.js";
|
|
6
|
+
import { PermPanel as te } from "@since2006/components";
|
|
7
|
+
import ae from "./icon/AppIcon.vue.js";
|
|
8
|
+
const ie = /* @__PURE__ */ $({
|
|
8
9
|
__name: "ModuleEdit",
|
|
9
10
|
props: {
|
|
10
11
|
open: {
|
|
@@ -17,7 +18,7 @@ const de = /* @__PURE__ */ G({
|
|
|
17
18
|
}
|
|
18
19
|
},
|
|
19
20
|
emits: ["update:open", "success", "cancel"],
|
|
20
|
-
setup(_, { emit:
|
|
21
|
+
setup(_, { emit: N }) {
|
|
21
22
|
const c = _, b = i(), f = i(!1), g = i([]), I = i([]), p = i([]), m = i({
|
|
22
23
|
icon: !1
|
|
23
24
|
}), w = {
|
|
@@ -33,34 +34,34 @@ const de = /* @__PURE__ */ G({
|
|
|
33
34
|
status: 0,
|
|
34
35
|
target: !1,
|
|
35
36
|
permissionSummary: ""
|
|
36
|
-
}, a =
|
|
37
|
+
}, a = z({ ...w }), h = {
|
|
37
38
|
name: [{ required: !0, message: "请填写模块名称" }],
|
|
38
39
|
seqNo: [{ required: !0, type: "number", message: "请填写数字类型顺序号" }],
|
|
39
40
|
status: [{ required: !0, message: "请选择是否显示" }]
|
|
40
|
-
}, v =
|
|
41
|
-
|
|
41
|
+
}, v = N;
|
|
42
|
+
G(
|
|
42
43
|
() => c.open,
|
|
43
44
|
(l) => {
|
|
44
|
-
l && (
|
|
45
|
+
l && (x(), O());
|
|
45
46
|
}
|
|
46
47
|
);
|
|
47
|
-
const
|
|
48
|
+
const x = () => {
|
|
48
49
|
Object.assign(a, w), p.value = [];
|
|
49
|
-
},
|
|
50
|
-
|
|
50
|
+
}, y = (l, e) => e.componentOptions.children[0].text.toLowerCase().indexOf(l.toLowerCase()) >= 0, O = () => {
|
|
51
|
+
X(c.moduleId).then((l) => {
|
|
51
52
|
const e = l.data;
|
|
52
53
|
e.target = e.openTarget === 1, Object.assign(a, l.data), p.value = [...l.data.permissions.map((d) => d.id)];
|
|
53
|
-
}),
|
|
54
|
+
}), Y().then((l) => {
|
|
54
55
|
const e = [];
|
|
55
56
|
k(e, l.data, [c.moduleId]), g.value = e;
|
|
56
|
-
}),
|
|
57
|
-
I.value =
|
|
57
|
+
}), Z().then((l) => {
|
|
58
|
+
I.value = M(l.data);
|
|
58
59
|
});
|
|
59
|
-
},
|
|
60
|
+
}, D = () => {
|
|
60
61
|
m.value.icon = !0;
|
|
61
|
-
},
|
|
62
|
+
}, L = (l) => {
|
|
62
63
|
m.value.icon = !1, a.icon = l;
|
|
63
|
-
},
|
|
64
|
+
}, V = () => {
|
|
64
65
|
b.value.validateFields().then(() => {
|
|
65
66
|
f.value = !0;
|
|
66
67
|
const l = {
|
|
@@ -69,15 +70,15 @@ const de = /* @__PURE__ */ G({
|
|
|
69
70
|
permIds: p.value,
|
|
70
71
|
seqNo: parseInt(a.seqNo)
|
|
71
72
|
};
|
|
72
|
-
|
|
73
|
-
e.code === 200 && (
|
|
73
|
+
ee(l).then((e) => {
|
|
74
|
+
e.code === 200 && (Q.success("编辑模块成功"), v("update:open", !1), v("success", e.data.id, e.data.parentId, e.data.srcParentId));
|
|
74
75
|
});
|
|
75
76
|
}).finally(() => {
|
|
76
77
|
f.value = !1;
|
|
77
78
|
});
|
|
78
|
-
},
|
|
79
|
+
}, E = () => {
|
|
79
80
|
v("update:open", !1);
|
|
80
|
-
},
|
|
81
|
+
}, M = (l) => l.map((e) => ({
|
|
81
82
|
value: e.id,
|
|
82
83
|
label: e.name
|
|
83
84
|
})), k = (l, e, d) => {
|
|
@@ -89,28 +90,28 @@ const de = /* @__PURE__ */ G({
|
|
|
89
90
|
});
|
|
90
91
|
};
|
|
91
92
|
return (l, e) => {
|
|
92
|
-
const d = r("a-tree-select"), u = r("a-form-item"), s = r("a-input"),
|
|
93
|
-
return
|
|
93
|
+
const d = r("a-tree-select"), u = r("a-form-item"), s = r("a-input"), T = r("a-select"), B = r("a-input-number"), S = r("a-radio"), F = r("a-radio-group"), P = r("a-switch"), q = r("a-col"), R = r("a-row"), j = r("a-form"), A = r("a-modal");
|
|
94
|
+
return H(), J(A, {
|
|
94
95
|
title: "编辑系统模块",
|
|
95
96
|
width: 800,
|
|
96
97
|
visible: _.open,
|
|
97
98
|
"mask-closable": !1,
|
|
98
99
|
"confirm-loading": f.value,
|
|
99
100
|
"destroy-on-close": "",
|
|
100
|
-
onOk:
|
|
101
|
-
onCancel:
|
|
101
|
+
onOk: V,
|
|
102
|
+
onCancel: E
|
|
102
103
|
}, {
|
|
103
104
|
default: n(() => [
|
|
104
|
-
t(
|
|
105
|
+
t(j, {
|
|
105
106
|
ref_key: "formRef",
|
|
106
107
|
ref: b,
|
|
107
108
|
model: a,
|
|
108
|
-
rules:
|
|
109
|
+
rules: h,
|
|
109
110
|
"label-col": { span: 5 },
|
|
110
111
|
"wrapper-col": { span: 15 }
|
|
111
112
|
}, {
|
|
112
113
|
default: n(() => [
|
|
113
|
-
t(
|
|
114
|
+
t(R, null, {
|
|
114
115
|
default: n(() => [
|
|
115
116
|
t(q, { span: 15 }, {
|
|
116
117
|
default: n(() => [
|
|
@@ -141,12 +142,12 @@ const de = /* @__PURE__ */ G({
|
|
|
141
142
|
}),
|
|
142
143
|
t(u, { label: "文档类别" }, {
|
|
143
144
|
default: n(() => [
|
|
144
|
-
t(
|
|
145
|
+
t(T, {
|
|
145
146
|
value: a.cateId,
|
|
146
147
|
"onUpdate:value": e[2] || (e[2] = (o) => a.cateId = o),
|
|
147
148
|
"show-search": "",
|
|
148
149
|
"option-filter-prop": "children",
|
|
149
|
-
"filter-option":
|
|
150
|
+
"filter-option": y,
|
|
150
151
|
options: I.value,
|
|
151
152
|
allowClear: ""
|
|
152
153
|
}, null, 8, ["value", "options"])
|
|
@@ -161,10 +162,13 @@ const de = /* @__PURE__ */ G({
|
|
|
161
162
|
placeholder: "点击右侧按钮选择图标"
|
|
162
163
|
}, {
|
|
163
164
|
prefix: n(() => [
|
|
164
|
-
(
|
|
165
|
+
t(ae, {
|
|
166
|
+
icon: a.icon,
|
|
167
|
+
style: { color: "#108b16" }
|
|
168
|
+
}, null, 8, ["icon"])
|
|
165
169
|
]),
|
|
166
170
|
addonAfter: n(() => [
|
|
167
|
-
t(
|
|
171
|
+
t(U(W), { onClick: D })
|
|
168
172
|
]),
|
|
169
173
|
_: 1
|
|
170
174
|
}, 8, ["value"])
|
|
@@ -176,7 +180,7 @@ const de = /* @__PURE__ */ G({
|
|
|
176
180
|
name: "seqNo"
|
|
177
181
|
}, {
|
|
178
182
|
default: n(() => [
|
|
179
|
-
t(
|
|
183
|
+
t(B, {
|
|
180
184
|
value: a.seqNo,
|
|
181
185
|
"onUpdate:value": e[4] || (e[4] = (o) => a.seqNo = o),
|
|
182
186
|
placeholder: "顺序号"
|
|
@@ -209,20 +213,20 @@ const de = /* @__PURE__ */ G({
|
|
|
209
213
|
name: "status"
|
|
210
214
|
}, {
|
|
211
215
|
default: n(() => [
|
|
212
|
-
t(
|
|
216
|
+
t(F, {
|
|
213
217
|
value: a.status,
|
|
214
218
|
"onUpdate:value": e[7] || (e[7] = (o) => a.status = o)
|
|
215
219
|
}, {
|
|
216
220
|
default: n(() => [
|
|
217
221
|
t(S, { value: 1 }, {
|
|
218
222
|
default: n(() => e[12] || (e[12] = [
|
|
219
|
-
|
|
223
|
+
C("显示")
|
|
220
224
|
])),
|
|
221
225
|
_: 1
|
|
222
226
|
}),
|
|
223
227
|
t(S, { value: 0 }, {
|
|
224
228
|
default: n(() => e[13] || (e[13] = [
|
|
225
|
-
|
|
229
|
+
C("隐藏")
|
|
226
230
|
])),
|
|
227
231
|
_: 1
|
|
228
232
|
})
|
|
@@ -234,7 +238,7 @@ const de = /* @__PURE__ */ G({
|
|
|
234
238
|
}),
|
|
235
239
|
t(u, { label: "打开方式" }, {
|
|
236
240
|
default: n(() => [
|
|
237
|
-
t(
|
|
241
|
+
t(P, {
|
|
238
242
|
checked: a.target,
|
|
239
243
|
"onUpdate:checked": e[8] || (e[8] = (o) => a.target = o),
|
|
240
244
|
"checked-children": "新开窗口",
|
|
@@ -258,7 +262,7 @@ const de = /* @__PURE__ */ G({
|
|
|
258
262
|
}),
|
|
259
263
|
t(q, { span: 9 }, {
|
|
260
264
|
default: n(() => [
|
|
261
|
-
t(
|
|
265
|
+
t(U(te), {
|
|
262
266
|
modelValue: p.value,
|
|
263
267
|
"onUpdate:modelValue": e[10] || (e[10] = (o) => p.value = o)
|
|
264
268
|
}, null, 8, ["modelValue"])
|
|
@@ -271,9 +275,9 @@ const de = /* @__PURE__ */ G({
|
|
|
271
275
|
]),
|
|
272
276
|
_: 1
|
|
273
277
|
}, 8, ["model"]),
|
|
274
|
-
t(
|
|
278
|
+
t(K, {
|
|
275
279
|
visible: m.value.icon,
|
|
276
|
-
onSuccess:
|
|
280
|
+
onSuccess: L,
|
|
277
281
|
onCancel: e[11] || (e[11] = (o) => m.value.icon = !1)
|
|
278
282
|
}, null, 8, ["visible"])
|
|
279
283
|
]),
|
|
@@ -283,5 +287,5 @@ const de = /* @__PURE__ */ G({
|
|
|
283
287
|
}
|
|
284
288
|
});
|
|
285
289
|
export {
|
|
286
|
-
|
|
290
|
+
ie as default
|
|
287
291
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModuleIndex.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4dc423f0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { message as
|
|
3
|
-
import { getModulesNoCache as
|
|
4
|
-
import { mapTreeData as
|
|
5
|
-
import { LayoutTwoTone as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
1
|
+
import { defineComponent as I, ref as f, reactive as w, resolveComponent as d, openBlock as J, createElementBlock as Q, createVNode as n, withCtx as l, createElementVNode as v, unref as y, createTextVNode as g, withDirectives as x, vShow as A } from "vue";
|
|
2
|
+
import { message as W } from "ant-design-vue";
|
|
3
|
+
import { getModulesNoCache as T, getModule as X, deleteModule as Y } from "./api.js";
|
|
4
|
+
import { mapTreeData as h } from "./utils.js";
|
|
5
|
+
import { LayoutTwoTone as Z, PlusOutlined as R, EditOutlined as ee, DeleteOutlined as oe } from "@ant-design/icons-vue";
|
|
6
|
+
import te from "./ModuleDetail.vue.js";
|
|
7
|
+
import ne from "./ModuleAdd.vue.js";
|
|
8
|
+
import ae from "./ModuleEdit.vue.js";
|
|
9
|
+
import le from "./icon/AppIcon.vue.js";
|
|
10
|
+
const de = { class: "ant-pro-table-list-toolbar" }, se = { class: "ant-pro-table-list-toolbar-container" }, ue = { class: "ant-pro-table-list-toolbar-left" }, ie = { class: "ant-pro-table-list-toolbar-title" }, re = { class: "ant-pro-table-list-toolbar-right" }, be = /* @__PURE__ */ I({
|
|
10
11
|
__name: "ModuleIndex",
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
12
|
+
setup(ce) {
|
|
13
|
+
const K = f(), s = f([]), k = f([]), i = f([]), u = w({
|
|
13
14
|
id: "",
|
|
14
15
|
cateId: "",
|
|
15
16
|
parentId: "",
|
|
@@ -19,22 +20,22 @@ const se = { class: "ant-pro-table-list-toolbar" }, ue = { class: "ant-pro-table
|
|
|
19
20
|
seqNo: "",
|
|
20
21
|
remark: "",
|
|
21
22
|
permsSummary: ""
|
|
22
|
-
}), b = f(!0),
|
|
23
|
+
}), b = f(!0), r = w({
|
|
23
24
|
openAdd: !1,
|
|
24
25
|
openEdit: !1
|
|
25
|
-
}), E = f(!1),
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
}), E = f(!1), L = () => {
|
|
27
|
+
T().then((o) => {
|
|
28
|
+
i.value = h(o.data), M(i.value[0].key);
|
|
28
29
|
});
|
|
29
|
-
},
|
|
30
|
+
}, O = (o) => {
|
|
30
31
|
s.value = o;
|
|
31
|
-
},
|
|
32
|
+
}, N = (o) => new Promise((e) => {
|
|
32
33
|
if (o.dataRef.children) {
|
|
33
34
|
e("当前节点没有子模块");
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
-
o.dataRef.children =
|
|
37
|
+
T(o.dataRef.key).then((t) => {
|
|
38
|
+
o.dataRef.children = h(t.data), i.value = [...i.value], e("获取模块数据成功");
|
|
38
39
|
});
|
|
39
40
|
}), V = (o, e) => {
|
|
40
41
|
const t = e.node.dataRef, a = s.value.includes(t.key);
|
|
@@ -43,85 +44,85 @@ const se = { class: "ant-pro-table-list-toolbar" }, ue = { class: "ant-pro-table
|
|
|
43
44
|
const p = o[0];
|
|
44
45
|
M(p);
|
|
45
46
|
}, M = (o) => {
|
|
46
|
-
b.value = !0,
|
|
47
|
+
b.value = !0, X(o).then((e) => {
|
|
47
48
|
Object.assign(u, e.data), b.value = !1;
|
|
48
49
|
}).catch((e) => {
|
|
49
50
|
console.log(e);
|
|
50
51
|
});
|
|
52
|
+
}, B = () => {
|
|
53
|
+
E.value = !0, r.openAdd = !0;
|
|
51
54
|
}, U = () => {
|
|
52
|
-
E.value = !
|
|
53
|
-
},
|
|
54
|
-
E.value = !1, i.openAdd = !0;
|
|
55
|
-
}, q = (o) => {
|
|
55
|
+
E.value = !1, r.openAdd = !0;
|
|
56
|
+
}, $ = (o) => {
|
|
56
57
|
m(o);
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
},
|
|
58
|
+
}, j = () => {
|
|
59
|
+
r.openEdit = !0;
|
|
60
|
+
}, q = (o, e, t) => {
|
|
60
61
|
M(o), e === t || m(t), m(e);
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
}, P = () => {
|
|
63
|
+
Y(u.id).then((o) => {
|
|
64
|
+
W.success("删除成功"), m(o.data.parentId);
|
|
64
65
|
});
|
|
65
66
|
}, m = (o) => {
|
|
66
|
-
|
|
67
|
-
o ?
|
|
67
|
+
T(o).then((e) => {
|
|
68
|
+
o ? C(i.value, o, h(e.data)) : i.value = h(e.data);
|
|
68
69
|
});
|
|
69
|
-
},
|
|
70
|
+
}, C = (o, e, t) => {
|
|
70
71
|
o.forEach((a) => {
|
|
71
72
|
if (a.key === e) {
|
|
72
73
|
a.isLeaf = t.length === 0;
|
|
73
|
-
const p =
|
|
74
|
-
|
|
74
|
+
const p = D([a], 0);
|
|
75
|
+
k.value = k.value.filter((c) => !p.includes(c)), s.value = s.value.filter((c) => !p.includes(c)), a.children = t;
|
|
75
76
|
} else
|
|
76
|
-
a.children &&
|
|
77
|
+
a.children && C(a.children, e, t);
|
|
77
78
|
});
|
|
78
|
-
},
|
|
79
|
+
}, D = (o, e) => {
|
|
79
80
|
let t = [];
|
|
80
81
|
return o.forEach((a) => {
|
|
81
|
-
e > 0 && t.push(a.key), a.children && (t = t.concat(
|
|
82
|
+
e > 0 && t.push(a.key), a.children && (t = t.concat(D(a.children, ++e)));
|
|
82
83
|
}), t;
|
|
83
84
|
};
|
|
84
|
-
return
|
|
85
|
-
const t = d("a-button"), a = d("a-popconfirm"), p = d("a-button-group"), c = d("a-space"),
|
|
86
|
-
return
|
|
87
|
-
n(
|
|
85
|
+
return L(), (o, e) => {
|
|
86
|
+
const t = d("a-button"), a = d("a-popconfirm"), p = d("a-button-group"), c = d("a-space"), z = d("a-tree"), S = d("a-col"), F = d("a-skeleton"), G = d("a-row"), H = d("a-card");
|
|
87
|
+
return J(), Q("div", null, [
|
|
88
|
+
n(H, {
|
|
88
89
|
"body-style": { padding: "0 20px 20px 10px" },
|
|
89
90
|
ref_key: "fusRef",
|
|
90
|
-
ref:
|
|
91
|
+
ref: K
|
|
91
92
|
}, {
|
|
92
93
|
default: l(() => [
|
|
93
|
-
v("div",
|
|
94
|
-
v("div",
|
|
95
|
-
v("div",
|
|
94
|
+
v("div", de, [
|
|
95
|
+
v("div", se, [
|
|
96
|
+
v("div", ue, [
|
|
96
97
|
v("div", ie, [
|
|
97
|
-
n(y(
|
|
98
|
+
n(y(Z)),
|
|
98
99
|
e[2] || (e[2] = g(" 模块配置 "))
|
|
99
100
|
])
|
|
100
101
|
]),
|
|
101
|
-
v("div",
|
|
102
|
+
v("div", re, [
|
|
102
103
|
n(c, { align: "center" }, {
|
|
103
104
|
default: l(() => [
|
|
104
105
|
n(p, null, {
|
|
105
106
|
default: l(() => [
|
|
106
|
-
n(t, { onClick:
|
|
107
|
+
n(t, { onClick: B }, {
|
|
107
108
|
default: l(() => [
|
|
108
|
-
n(y(
|
|
109
|
+
n(y(R)),
|
|
109
110
|
e[3] || (e[3] = g(" 添加根模块 "))
|
|
110
111
|
]),
|
|
111
112
|
_: 1
|
|
112
113
|
}),
|
|
113
|
-
x(n(t, { onClick:
|
|
114
|
+
x(n(t, { onClick: U }, {
|
|
114
115
|
default: l(() => [
|
|
115
|
-
n(y(
|
|
116
|
+
n(y(R)),
|
|
116
117
|
e[4] || (e[4] = g(" 添加子模块 "))
|
|
117
118
|
]),
|
|
118
119
|
_: 1
|
|
119
120
|
}, 512), [
|
|
120
121
|
[A, u.id]
|
|
121
122
|
]),
|
|
122
|
-
x(n(t, { onClick:
|
|
123
|
+
x(n(t, { onClick: j }, {
|
|
123
124
|
default: l(() => [
|
|
124
|
-
n(y(
|
|
125
|
+
n(y(ee)),
|
|
125
126
|
e[5] || (e[5] = g(" 修改模块 "))
|
|
126
127
|
]),
|
|
127
128
|
_: 1
|
|
@@ -130,12 +131,12 @@ const se = { class: "ant-pro-table-list-toolbar" }, ue = { class: "ant-pro-table
|
|
|
130
131
|
]),
|
|
131
132
|
n(a, {
|
|
132
133
|
title: "是否确认删除模块?",
|
|
133
|
-
onConfirm:
|
|
134
|
+
onConfirm: P
|
|
134
135
|
}, {
|
|
135
136
|
default: l(() => [
|
|
136
137
|
x(n(t, { danger: "" }, {
|
|
137
138
|
default: l(() => [
|
|
138
|
-
n(y(
|
|
139
|
+
n(y(oe)),
|
|
139
140
|
e[6] || (e[6] = g(" 删除模块 "))
|
|
140
141
|
]),
|
|
141
142
|
_: 1
|
|
@@ -154,24 +155,26 @@ const se = { class: "ant-pro-table-list-toolbar" }, ue = { class: "ant-pro-table
|
|
|
154
155
|
])
|
|
155
156
|
])
|
|
156
157
|
]),
|
|
157
|
-
n(
|
|
158
|
+
n(G, null, {
|
|
158
159
|
default: l(() => [
|
|
159
160
|
n(S, {
|
|
160
161
|
sm: 5,
|
|
161
162
|
md: 4
|
|
162
163
|
}, {
|
|
163
164
|
default: l(() => [
|
|
164
|
-
n(
|
|
165
|
+
n(z, {
|
|
165
166
|
showIcon: !0,
|
|
166
167
|
expandedKeys: s.value,
|
|
167
|
-
loadedKeys:
|
|
168
|
-
treeData:
|
|
169
|
-
onExpand:
|
|
170
|
-
loadData:
|
|
168
|
+
loadedKeys: k.value,
|
|
169
|
+
treeData: i.value,
|
|
170
|
+
onExpand: O,
|
|
171
|
+
loadData: N,
|
|
171
172
|
onSelect: V
|
|
172
173
|
}, {
|
|
173
174
|
icon: l((_) => [
|
|
174
|
-
(
|
|
175
|
+
n(le, {
|
|
176
|
+
icon: _.iconName
|
|
177
|
+
}, null, 8, ["icon"])
|
|
175
178
|
]),
|
|
176
179
|
_: 1
|
|
177
180
|
}, 8, ["expandedKeys", "loadedKeys", "treeData"])
|
|
@@ -183,9 +186,9 @@ const se = { class: "ant-pro-table-list-toolbar" }, ue = { class: "ant-pro-table
|
|
|
183
186
|
md: 20
|
|
184
187
|
}, {
|
|
185
188
|
default: l(() => [
|
|
186
|
-
n(
|
|
189
|
+
n(F, { loading: b.value }, {
|
|
187
190
|
default: l(() => [
|
|
188
|
-
n(
|
|
191
|
+
n(te, { module: u }, null, 8, ["module"])
|
|
189
192
|
]),
|
|
190
193
|
_: 1
|
|
191
194
|
}, 8, ["loading"])
|
|
@@ -198,19 +201,19 @@ const se = { class: "ant-pro-table-list-toolbar" }, ue = { class: "ant-pro-table
|
|
|
198
201
|
]),
|
|
199
202
|
_: 1
|
|
200
203
|
}, 512),
|
|
201
|
-
n(
|
|
204
|
+
n(ne, {
|
|
202
205
|
ref: "moduleAdd",
|
|
203
|
-
open:
|
|
204
|
-
"onUpdate:open": e[0] || (e[0] = (_) =>
|
|
206
|
+
open: r.openAdd,
|
|
207
|
+
"onUpdate:open": e[0] || (e[0] = (_) => r.openAdd = _),
|
|
205
208
|
"parent-id": E.value ? null : u.id,
|
|
206
|
-
onSuccess:
|
|
209
|
+
onSuccess: $
|
|
207
210
|
}, null, 8, ["open", "parent-id"]),
|
|
208
|
-
n(
|
|
211
|
+
n(ae, {
|
|
209
212
|
ref: "moduleEdit",
|
|
210
|
-
open:
|
|
211
|
-
"onUpdate:open": e[1] || (e[1] = (_) =>
|
|
213
|
+
open: r.openEdit,
|
|
214
|
+
"onUpdate:open": e[1] || (e[1] = (_) => r.openEdit = _),
|
|
212
215
|
"module-id": u.id,
|
|
213
|
-
onSuccess:
|
|
216
|
+
onSuccess: q
|
|
214
217
|
}, null, 8, ["open", "module-id"])
|
|
215
218
|
]);
|
|
216
219
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { computed as r, isVNode as c, openBlock as l, createBlock as i, resolveDynamicComponent as u, normalizeStyle as s, createCommentVNode as f } from "vue";
|
|
2
|
+
import * as a from "@ant-design/icons-vue";
|
|
3
|
+
const y = {
|
|
4
|
+
__name: "AppIcon",
|
|
5
|
+
props: {
|
|
6
|
+
icon: {
|
|
7
|
+
type: [String, Object, Function],
|
|
8
|
+
default: null
|
|
9
|
+
},
|
|
10
|
+
size: {
|
|
11
|
+
type: [Number, String],
|
|
12
|
+
default: 16
|
|
13
|
+
},
|
|
14
|
+
color: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(t) {
|
|
20
|
+
const o = t, n = r(() => {
|
|
21
|
+
const e = o.icon;
|
|
22
|
+
return c(e) ? () => e : typeof e == "function" || typeof e == "object" ? e : typeof e == "string" && a[e] || null;
|
|
23
|
+
});
|
|
24
|
+
return (e, m) => n.value ? (l(), i(u(n.value), {
|
|
25
|
+
key: 0,
|
|
26
|
+
style: s({
|
|
27
|
+
fontSize: typeof t.size == "number" ? t.size + "px" : t.size,
|
|
28
|
+
color: t.color
|
|
29
|
+
})
|
|
30
|
+
}, null, 8, ["style"])) : f("", !0);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
y as default
|
|
35
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./StatusIndex.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-74bb63d3"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|