@since2006/pages 2026.1.0 → 2026.1.1
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/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/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,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModuleAdd.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f8a348f6"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { message as
|
|
4
|
-
import { SearchOutlined as
|
|
5
|
-
import { getModules as
|
|
6
|
-
import { PermPanel as
|
|
7
|
-
|
|
1
|
+
import { defineComponent as j, ref as d, reactive as z, watch as G, resolveComponent as u, openBlock as H, createBlock as J, withCtx as o, createVNode as t, unref as q, 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 { getModules as X, getDocs as Y, createModule as Z } from "./api.js";
|
|
6
|
+
import { PermPanel as ee } from "@since2006/components";
|
|
7
|
+
import te from "./icon/AppIcon.vue.js";
|
|
8
|
+
const de = /* @__PURE__ */ j({
|
|
8
9
|
__name: "ModuleAdd",
|
|
9
10
|
props: {
|
|
10
11
|
open: {
|
|
@@ -17,7 +18,7 @@ const se = /* @__PURE__ */ G({
|
|
|
17
18
|
}
|
|
18
19
|
},
|
|
19
20
|
emits: ["update:open", "success", "cancel"],
|
|
20
|
-
setup(_, { emit:
|
|
21
|
+
setup(_, { emit: N }) {
|
|
21
22
|
const m = _, b = d(), p = d([]), f = d(!1), g = d([]), I = d([]), i = d({
|
|
22
23
|
icon: !1
|
|
23
24
|
}), w = {
|
|
@@ -33,31 +34,31 @@ const se = /* @__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
|
() => m.open,
|
|
43
44
|
(n) => {
|
|
44
|
-
n && (
|
|
45
|
+
n && (x(), D());
|
|
45
46
|
}
|
|
46
47
|
);
|
|
47
|
-
const
|
|
48
|
+
const x = () => {
|
|
48
49
|
Object.assign(a, w), p.value = [];
|
|
49
|
-
},
|
|
50
|
-
|
|
50
|
+
}, y = (n, e) => e.componentOptions.children[0].text.toLowerCase().indexOf(n.toLowerCase()) >= 0, D = () => {
|
|
51
|
+
X().then((n) => {
|
|
51
52
|
const e = [];
|
|
52
53
|
k(e, n.data, []), g.value = e, m.parentId && (a.parentId = m.parentId);
|
|
53
|
-
}),
|
|
54
|
-
I.value =
|
|
54
|
+
}), Y().then((n) => {
|
|
55
|
+
I.value = B(n.data);
|
|
55
56
|
});
|
|
56
|
-
},
|
|
57
|
+
}, L = () => {
|
|
57
58
|
i.value.icon = !0;
|
|
58
|
-
},
|
|
59
|
+
}, O = (n) => {
|
|
59
60
|
i.value.icon = !1, a.icon = n;
|
|
60
|
-
},
|
|
61
|
+
}, V = () => {
|
|
61
62
|
b.value.validateFields().then(() => {
|
|
62
63
|
f.value = !0;
|
|
63
64
|
const n = {
|
|
@@ -66,13 +67,13 @@ const se = /* @__PURE__ */ G({
|
|
|
66
67
|
permIds: p.value,
|
|
67
68
|
seqNo: parseInt(a.seqNo)
|
|
68
69
|
};
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
Z(n).then((e) => {
|
|
71
|
+
Q.success("添加模块成功"), v("update:open", !1), v("success", e.data.parentId);
|
|
71
72
|
});
|
|
72
73
|
}).finally((n) => {
|
|
73
74
|
f.value = !1;
|
|
74
75
|
});
|
|
75
|
-
},
|
|
76
|
+
}, A = () => {
|
|
76
77
|
v("update:open", !1);
|
|
77
78
|
}, k = (n, e, c) => {
|
|
78
79
|
e && e.forEach((r) => {
|
|
@@ -81,35 +82,35 @@ const se = /* @__PURE__ */ G({
|
|
|
81
82
|
k(s.children, r.children, c), n.push(s);
|
|
82
83
|
}
|
|
83
84
|
});
|
|
84
|
-
},
|
|
85
|
+
}, B = (n) => n.map((e) => ({
|
|
85
86
|
value: e.id,
|
|
86
87
|
label: e.name
|
|
87
88
|
}));
|
|
88
89
|
return (n, e) => {
|
|
89
|
-
const c = u("a-tree-select"), r = u("a-form-item"), s = u("a-input"),
|
|
90
|
-
return
|
|
90
|
+
const c = u("a-tree-select"), r = u("a-form-item"), s = u("a-input"), F = u("a-select"), M = u("a-input-number"), S = u("a-radio"), R = u("a-radio-group"), T = u("a-switch"), U = u("a-col"), E = u("a-row"), P = u("a-form"), $ = u("a-modal");
|
|
91
|
+
return H(), J($, {
|
|
91
92
|
title: "添加系统模块",
|
|
92
93
|
width: 800,
|
|
93
94
|
visible: _.open,
|
|
94
95
|
"mask-closable": !1,
|
|
95
96
|
"confirm-loading": f.value,
|
|
96
97
|
"destroy-on-close": "",
|
|
97
|
-
onOk:
|
|
98
|
-
onCancel:
|
|
98
|
+
onOk: V,
|
|
99
|
+
onCancel: A
|
|
99
100
|
}, {
|
|
100
101
|
default: o(() => [
|
|
101
|
-
t(
|
|
102
|
+
t(P, {
|
|
102
103
|
ref_key: "formRef",
|
|
103
104
|
ref: b,
|
|
104
105
|
model: a,
|
|
105
|
-
rules:
|
|
106
|
+
rules: h,
|
|
106
107
|
"label-col": { span: 5 },
|
|
107
108
|
"wrapper-col": { span: 15 }
|
|
108
109
|
}, {
|
|
109
110
|
default: o(() => [
|
|
110
|
-
t(
|
|
111
|
+
t(E, null, {
|
|
111
112
|
default: o(() => [
|
|
112
|
-
t(
|
|
113
|
+
t(U, { span: 15 }, {
|
|
113
114
|
default: o(() => [
|
|
114
115
|
t(r, { label: "上级模块" }, {
|
|
115
116
|
default: o(() => [
|
|
@@ -138,12 +139,12 @@ const se = /* @__PURE__ */ G({
|
|
|
138
139
|
}),
|
|
139
140
|
t(r, { label: "文档类别" }, {
|
|
140
141
|
default: o(() => [
|
|
141
|
-
t(
|
|
142
|
+
t(F, {
|
|
142
143
|
value: a.cateId,
|
|
143
144
|
"onUpdate:value": e[2] || (e[2] = (l) => a.cateId = l),
|
|
144
145
|
"show-search": "",
|
|
145
146
|
"option-filter-prop": "children",
|
|
146
|
-
"filter-option":
|
|
147
|
+
"filter-option": y,
|
|
147
148
|
options: I.value,
|
|
148
149
|
allowClear: ""
|
|
149
150
|
}, null, 8, ["value", "options"])
|
|
@@ -158,10 +159,13 @@ const se = /* @__PURE__ */ G({
|
|
|
158
159
|
placeholder: "点击右侧按钮选择图标"
|
|
159
160
|
}, {
|
|
160
161
|
prefix: o(() => [
|
|
161
|
-
(
|
|
162
|
+
t(te, {
|
|
163
|
+
icon: a.icon,
|
|
164
|
+
style: { color: "#108b16" }
|
|
165
|
+
}, null, 8, ["icon"])
|
|
162
166
|
]),
|
|
163
167
|
addonAfter: o(() => [
|
|
164
|
-
t(
|
|
168
|
+
t(q(W), { onClick: L })
|
|
165
169
|
]),
|
|
166
170
|
_: 1
|
|
167
171
|
}, 8, ["value"])
|
|
@@ -173,7 +177,7 @@ const se = /* @__PURE__ */ G({
|
|
|
173
177
|
name: "seqNo"
|
|
174
178
|
}, {
|
|
175
179
|
default: o(() => [
|
|
176
|
-
t(
|
|
180
|
+
t(M, {
|
|
177
181
|
value: a.seqNo,
|
|
178
182
|
"onUpdate:value": e[4] || (e[4] = (l) => a.seqNo = l),
|
|
179
183
|
placeholder: "顺序号"
|
|
@@ -206,20 +210,20 @@ const se = /* @__PURE__ */ G({
|
|
|
206
210
|
name: "status"
|
|
207
211
|
}, {
|
|
208
212
|
default: o(() => [
|
|
209
|
-
t(
|
|
213
|
+
t(R, {
|
|
210
214
|
value: a.status,
|
|
211
215
|
"onUpdate:value": e[7] || (e[7] = (l) => a.status = l)
|
|
212
216
|
}, {
|
|
213
217
|
default: o(() => [
|
|
214
218
|
t(S, { value: 1 }, {
|
|
215
219
|
default: o(() => e[12] || (e[12] = [
|
|
216
|
-
|
|
220
|
+
C("显示")
|
|
217
221
|
])),
|
|
218
222
|
_: 1
|
|
219
223
|
}),
|
|
220
224
|
t(S, { value: 0 }, {
|
|
221
225
|
default: o(() => e[13] || (e[13] = [
|
|
222
|
-
|
|
226
|
+
C("隐藏")
|
|
223
227
|
])),
|
|
224
228
|
_: 1
|
|
225
229
|
})
|
|
@@ -231,7 +235,7 @@ const se = /* @__PURE__ */ G({
|
|
|
231
235
|
}),
|
|
232
236
|
t(r, { label: "打开方式" }, {
|
|
233
237
|
default: o(() => [
|
|
234
|
-
t(
|
|
238
|
+
t(T, {
|
|
235
239
|
checked: a.target,
|
|
236
240
|
"onUpdate:checked": e[8] || (e[8] = (l) => a.target = l),
|
|
237
241
|
"checked-children": "新开窗口",
|
|
@@ -253,9 +257,9 @@ const se = /* @__PURE__ */ G({
|
|
|
253
257
|
]),
|
|
254
258
|
_: 1
|
|
255
259
|
}),
|
|
256
|
-
t(
|
|
260
|
+
t(U, { span: 9 }, {
|
|
257
261
|
default: o(() => [
|
|
258
|
-
t(
|
|
262
|
+
t(q(ee), {
|
|
259
263
|
modelValue: p.value,
|
|
260
264
|
"onUpdate:modelValue": e[10] || (e[10] = (l) => p.value = l)
|
|
261
265
|
}, null, 8, ["modelValue"])
|
|
@@ -268,9 +272,9 @@ const se = /* @__PURE__ */ G({
|
|
|
268
272
|
]),
|
|
269
273
|
_: 1
|
|
270
274
|
}, 8, ["model"]),
|
|
271
|
-
t(
|
|
275
|
+
t(K, {
|
|
272
276
|
visible: i.value.icon,
|
|
273
|
-
onSuccess:
|
|
277
|
+
onSuccess: O,
|
|
274
278
|
onCancel: e[11] || (e[11] = (l) => i.value.icon = !1)
|
|
275
279
|
}, null, 8, ["visible"])
|
|
276
280
|
]),
|
|
@@ -280,5 +284,5 @@ const se = /* @__PURE__ */ G({
|
|
|
280
284
|
}
|
|
281
285
|
});
|
|
282
286
|
export {
|
|
283
|
-
|
|
287
|
+
de as default
|
|
284
288
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as c, resolveComponent as p, openBlock as r, createBlock as u, withCtx as e, createVNode as l, createTextVNode as a, toDisplayString as d, createElementVNode as g, createElementBlock as f, Fragment as _, createCommentVNode as y } from "vue";
|
|
2
|
+
import k from "./icon/AppIcon.vue.js";
|
|
3
|
+
const N = { style: { color: "#a6a6a6", "margin-left": "4px" } }, S = /* @__PURE__ */ c({
|
|
3
4
|
__name: "ModuleDetail",
|
|
4
5
|
props: {
|
|
5
6
|
module: {}
|
|
6
7
|
},
|
|
7
|
-
setup(
|
|
8
|
+
setup(C) {
|
|
8
9
|
return (o, n) => {
|
|
9
|
-
const t = p("a-descriptions-item"),
|
|
10
|
-
return
|
|
10
|
+
const t = p("a-descriptions-item"), s = p("a-typography-paragraph"), m = p("a-tag"), b = p("a-descriptions");
|
|
11
|
+
return r(), u(b, {
|
|
11
12
|
bordered: "",
|
|
12
13
|
column: 1,
|
|
13
14
|
labelStyle: { width: "140px", textAlign: "center" }
|
|
@@ -15,36 +16,36 @@ const C = { style: { color: "#a6a6a6", "margin-left": "4px" } }, B = /* @__PURE_
|
|
|
15
16
|
default: e(() => [
|
|
16
17
|
l(t, { label: "模块名称" }, {
|
|
17
18
|
default: e(() => [
|
|
18
|
-
a(
|
|
19
|
+
a(d(o.module.name), 1)
|
|
19
20
|
]),
|
|
20
21
|
_: 1
|
|
21
22
|
}),
|
|
22
23
|
l(t, { label: "文档类别" }, {
|
|
23
24
|
default: e(() => {
|
|
24
|
-
var
|
|
25
|
+
var i;
|
|
25
26
|
return [
|
|
26
|
-
a(
|
|
27
|
+
a(d((i = o.module.cate) == null ? void 0 : i.name), 1)
|
|
27
28
|
];
|
|
28
29
|
}),
|
|
29
30
|
_: 1
|
|
30
31
|
}),
|
|
31
32
|
l(t, { label: "模块图标" }, {
|
|
32
33
|
default: e(() => [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
34
|
+
l(k, {
|
|
35
|
+
icon: o.module.icon,
|
|
36
|
+
size: "16px"
|
|
37
|
+
}, null, 8, ["icon"]),
|
|
38
|
+
g("span", N, d(o.module.icon), 1)
|
|
38
39
|
]),
|
|
39
40
|
_: 1
|
|
40
41
|
}),
|
|
41
42
|
l(t, { label: "访问路径" }, {
|
|
42
43
|
default: e(() => [
|
|
43
|
-
l(
|
|
44
|
+
l(s, {
|
|
44
45
|
copyable: !!o.module.path
|
|
45
46
|
}, {
|
|
46
47
|
default: e(() => [
|
|
47
|
-
a(
|
|
48
|
+
a(d(o.module.path), 1)
|
|
48
49
|
]),
|
|
49
50
|
_: 1
|
|
50
51
|
}, 8, ["copyable"])
|
|
@@ -53,11 +54,11 @@ const C = { style: { color: "#a6a6a6", "margin-left": "4px" } }, B = /* @__PURE_
|
|
|
53
54
|
}),
|
|
54
55
|
l(t, { label: "模板文件" }, {
|
|
55
56
|
default: e(() => [
|
|
56
|
-
l(
|
|
57
|
+
l(s, {
|
|
57
58
|
copyable: !!o.module.component
|
|
58
59
|
}, {
|
|
59
60
|
default: e(() => [
|
|
60
|
-
a(
|
|
61
|
+
a(d(o.module.component), 1)
|
|
61
62
|
]),
|
|
62
63
|
_: 1
|
|
63
64
|
}, 8, ["copyable"])
|
|
@@ -66,8 +67,8 @@ const C = { style: { color: "#a6a6a6", "margin-left": "4px" } }, B = /* @__PURE_
|
|
|
66
67
|
}),
|
|
67
68
|
l(t, { label: "打开方式" }, {
|
|
68
69
|
default: e(() => [
|
|
69
|
-
o.module.openTarget != null ? (
|
|
70
|
-
o.module.openTarget === 1 ? (
|
|
70
|
+
o.module.openTarget != null ? (r(), f(_, { key: 0 }, [
|
|
71
|
+
o.module.openTarget === 1 ? (r(), u(m, {
|
|
71
72
|
key: 0,
|
|
72
73
|
color: "red"
|
|
73
74
|
}, {
|
|
@@ -75,26 +76,26 @@ const C = { style: { color: "#a6a6a6", "margin-left": "4px" } }, B = /* @__PURE_
|
|
|
75
76
|
a("新开窗口")
|
|
76
77
|
])),
|
|
77
78
|
_: 1
|
|
78
|
-
})) : (
|
|
79
|
+
})) : (r(), u(m, { key: 1 }, {
|
|
79
80
|
default: e(() => n[1] || (n[1] = [
|
|
80
81
|
a("默认")
|
|
81
82
|
])),
|
|
82
83
|
_: 1
|
|
83
84
|
}))
|
|
84
|
-
], 64)) :
|
|
85
|
+
], 64)) : y("", !0)
|
|
85
86
|
]),
|
|
86
87
|
_: 1
|
|
87
88
|
}),
|
|
88
89
|
l(t, { label: "排序" }, {
|
|
89
90
|
default: e(() => [
|
|
90
|
-
a(
|
|
91
|
+
a(d(o.module.seqNo), 1)
|
|
91
92
|
]),
|
|
92
93
|
_: 1
|
|
93
94
|
}),
|
|
94
95
|
l(t, { label: "是否显示" }, {
|
|
95
96
|
default: e(() => [
|
|
96
|
-
o.module.status != null ? (
|
|
97
|
-
o.module.status === 1 ? (
|
|
97
|
+
o.module.status != null ? (r(), f(_, { key: 0 }, [
|
|
98
|
+
o.module.status === 1 ? (r(), u(m, {
|
|
98
99
|
key: 0,
|
|
99
100
|
color: "green"
|
|
100
101
|
}, {
|
|
@@ -102,7 +103,7 @@ const C = { style: { color: "#a6a6a6", "margin-left": "4px" } }, B = /* @__PURE_
|
|
|
102
103
|
a("显示")
|
|
103
104
|
])),
|
|
104
105
|
_: 1
|
|
105
|
-
})) : (
|
|
106
|
+
})) : (r(), u(m, {
|
|
106
107
|
key: 1,
|
|
107
108
|
color: "red"
|
|
108
109
|
}, {
|
|
@@ -111,19 +112,19 @@ const C = { style: { color: "#a6a6a6", "margin-left": "4px" } }, B = /* @__PURE_
|
|
|
111
112
|
])),
|
|
112
113
|
_: 1
|
|
113
114
|
}))
|
|
114
|
-
], 64)) :
|
|
115
|
+
], 64)) : y("", !0)
|
|
115
116
|
]),
|
|
116
117
|
_: 1
|
|
117
118
|
}),
|
|
118
119
|
l(t, { label: "访问权限" }, {
|
|
119
120
|
default: e(() => [
|
|
120
|
-
a(
|
|
121
|
+
a(d(o.module.permsSummary), 1)
|
|
121
122
|
]),
|
|
122
123
|
_: 1
|
|
123
124
|
}),
|
|
124
125
|
l(t, { label: "描述" }, {
|
|
125
126
|
default: e(() => [
|
|
126
|
-
a(
|
|
127
|
+
a(d(o.module.remark), 1)
|
|
127
128
|
]),
|
|
128
129
|
_: 1
|
|
129
130
|
})
|
|
@@ -134,5 +135,5 @@ const C = { style: { color: "#a6a6a6", "margin-left": "4px" } }, B = /* @__PURE_
|
|
|
134
135
|
}
|
|
135
136
|
});
|
|
136
137
|
export {
|
|
137
|
-
|
|
138
|
+
S as default
|
|
138
139
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModuleEdit.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-50a6d9f1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -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
|
};
|