@since2006/pages 2026.3.3 → 2026.4.0
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 +1 -1
- package/dist/es/src/app/module/ModuleAdd.vue2.js +75 -75
- package/dist/es/src/app/module/ModuleEdit.vue.js +2 -2
- package/dist/es/src/app/module/ModuleEdit.vue2.js +86 -86
- package/dist/es/src/app/system/StatusIndex.vue.js +2 -2
- package/dist/es/src/app/system/StatusIndex.vue2.js +238 -290
- package/dist/es/style.css +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/ModuleEdit.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleEdit.vue2.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 d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-83fb02af"]]);
|
|
5
5
|
export {
|
|
6
6
|
d as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
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 a, unref as q, createTextVNode as C } from "vue";
|
|
2
2
|
import K from "./icon/IconSelectorModal.vue.js";
|
|
3
3
|
import { message as Q } from "ant-design-vue";
|
|
4
4
|
import { SearchOutlined as W } from "@ant-design/icons-vue";
|
|
5
5
|
import { getModules as X, getDocs as Y, createModule as Z } from "./api.js";
|
|
6
6
|
import { PermPanel as ee } from "@since2006/components";
|
|
7
|
-
import
|
|
7
|
+
import ae from "./icon/AppIcon.vue.js";
|
|
8
8
|
const de = /* @__PURE__ */ j({
|
|
9
9
|
__name: "ModuleAdd",
|
|
10
10
|
props: {
|
|
@@ -19,7 +19,7 @@ const de = /* @__PURE__ */ j({
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["update:open", "success", "cancel"],
|
|
21
21
|
setup(_, { emit: N }) {
|
|
22
|
-
const
|
|
22
|
+
const c = _, b = d(), p = d([]), f = d(!1), g = d([]), I = d([]), i = d({
|
|
23
23
|
icon: !1
|
|
24
24
|
}), w = {
|
|
25
25
|
id: "",
|
|
@@ -34,38 +34,38 @@ const de = /* @__PURE__ */ j({
|
|
|
34
34
|
status: 0,
|
|
35
35
|
target: !1,
|
|
36
36
|
permissionSummary: ""
|
|
37
|
-
},
|
|
37
|
+
}, t = z({ ...w }), y = {
|
|
38
38
|
name: [{ required: !0, message: "请填写模块名称" }],
|
|
39
39
|
seqNo: [{ required: !0, type: "number", message: "请填写数字类型顺序号" }],
|
|
40
40
|
status: [{ required: !0, message: "请选择是否显示" }]
|
|
41
41
|
}, v = N;
|
|
42
42
|
G(
|
|
43
|
-
() =>
|
|
43
|
+
() => c.open,
|
|
44
44
|
(n) => {
|
|
45
45
|
n && (x(), D());
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
const x = () => {
|
|
49
|
-
Object.assign(
|
|
50
|
-
},
|
|
49
|
+
Object.assign(t, w), p.value = [];
|
|
50
|
+
}, h = (n, e) => e.label.toLowerCase().indexOf(n.toLowerCase()) >= 0, D = () => {
|
|
51
51
|
X().then((n) => {
|
|
52
52
|
const e = [];
|
|
53
|
-
k(e, n.data, []), g.value = e,
|
|
53
|
+
k(e, n.data, []), g.value = e, c.parentId && (t.parentId = c.parentId);
|
|
54
54
|
}), Y().then((n) => {
|
|
55
55
|
I.value = B(n.data);
|
|
56
56
|
});
|
|
57
57
|
}, L = () => {
|
|
58
58
|
i.value.icon = !0;
|
|
59
|
-
},
|
|
60
|
-
i.value.icon = !1,
|
|
61
|
-
},
|
|
59
|
+
}, V = (n) => {
|
|
60
|
+
i.value.icon = !1, t.icon = n;
|
|
61
|
+
}, O = () => {
|
|
62
62
|
b.value.validateFields().then(() => {
|
|
63
63
|
f.value = !0;
|
|
64
64
|
const n = {
|
|
65
|
-
...
|
|
66
|
-
openTarget:
|
|
65
|
+
...t,
|
|
66
|
+
openTarget: t.target ? 1 : 0,
|
|
67
67
|
permIds: p.value,
|
|
68
|
-
seqNo: parseInt(
|
|
68
|
+
seqNo: parseInt(t.seqNo)
|
|
69
69
|
};
|
|
70
70
|
Z(n).then((e) => {
|
|
71
71
|
Q.success("添加模块成功"), v("update:open", !1), v("success", e.data.parentId);
|
|
@@ -75,11 +75,11 @@ const de = /* @__PURE__ */ j({
|
|
|
75
75
|
});
|
|
76
76
|
}, A = () => {
|
|
77
77
|
v("update:open", !1);
|
|
78
|
-
}, k = (n, e,
|
|
78
|
+
}, k = (n, e, m) => {
|
|
79
79
|
e && e.forEach((r) => {
|
|
80
|
-
if (!
|
|
80
|
+
if (!m.includes(r.id)) {
|
|
81
81
|
const s = { value: r.id, title: r.name, children: [] };
|
|
82
|
-
k(s.children, r.children,
|
|
82
|
+
k(s.children, r.children, m), n.push(s);
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
}, B = (n) => n.map((e) => ({
|
|
@@ -87,7 +87,7 @@ const de = /* @__PURE__ */ j({
|
|
|
87
87
|
label: e.name
|
|
88
88
|
}));
|
|
89
89
|
return (n, e) => {
|
|
90
|
-
const
|
|
90
|
+
const m = 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
91
|
return H(), J($, {
|
|
92
92
|
title: "添加系统模块",
|
|
93
93
|
width: 800,
|
|
@@ -95,28 +95,28 @@ const de = /* @__PURE__ */ j({
|
|
|
95
95
|
"mask-closable": !1,
|
|
96
96
|
"confirm-loading": f.value,
|
|
97
97
|
"destroy-on-close": "",
|
|
98
|
-
onOk:
|
|
98
|
+
onOk: O,
|
|
99
99
|
onCancel: A
|
|
100
100
|
}, {
|
|
101
101
|
default: o(() => [
|
|
102
|
-
|
|
102
|
+
a(P, {
|
|
103
103
|
ref_key: "formRef",
|
|
104
104
|
ref: b,
|
|
105
|
-
model:
|
|
106
|
-
rules:
|
|
105
|
+
model: t,
|
|
106
|
+
rules: y,
|
|
107
107
|
"label-col": { span: 5 },
|
|
108
108
|
"wrapper-col": { span: 15 }
|
|
109
109
|
}, {
|
|
110
110
|
default: o(() => [
|
|
111
|
-
|
|
111
|
+
a(E, null, {
|
|
112
112
|
default: o(() => [
|
|
113
|
-
|
|
113
|
+
a(U, { span: 15 }, {
|
|
114
114
|
default: o(() => [
|
|
115
|
-
|
|
115
|
+
a(r, { label: "上级模块" }, {
|
|
116
116
|
default: o(() => [
|
|
117
|
-
|
|
118
|
-
value:
|
|
119
|
-
"onUpdate:value": e[0] || (e[0] = (l) =>
|
|
117
|
+
a(m, {
|
|
118
|
+
value: t.parentId,
|
|
119
|
+
"onUpdate:value": e[0] || (e[0] = (l) => t.parentId = l),
|
|
120
120
|
treeData: g.value,
|
|
121
121
|
treeDefaultExpandAll: "",
|
|
122
122
|
allowClear: ""
|
|
@@ -124,104 +124,104 @@ const de = /* @__PURE__ */ j({
|
|
|
124
124
|
]),
|
|
125
125
|
_: 1
|
|
126
126
|
}),
|
|
127
|
-
|
|
127
|
+
a(r, {
|
|
128
128
|
label: "模块名称",
|
|
129
129
|
name: "name"
|
|
130
130
|
}, {
|
|
131
131
|
default: o(() => [
|
|
132
|
-
|
|
133
|
-
value:
|
|
134
|
-
"onUpdate:value": e[1] || (e[1] = (l) =>
|
|
132
|
+
a(s, {
|
|
133
|
+
value: t.name,
|
|
134
|
+
"onUpdate:value": e[1] || (e[1] = (l) => t.name = l),
|
|
135
135
|
placeholder: "模块名称"
|
|
136
136
|
}, null, 8, ["value"])
|
|
137
137
|
]),
|
|
138
138
|
_: 1
|
|
139
139
|
}),
|
|
140
|
-
|
|
140
|
+
a(r, { label: "文档类别" }, {
|
|
141
141
|
default: o(() => [
|
|
142
|
-
|
|
143
|
-
value:
|
|
144
|
-
"onUpdate:value": e[2] || (e[2] = (l) =>
|
|
142
|
+
a(F, {
|
|
143
|
+
value: t.cateId,
|
|
144
|
+
"onUpdate:value": e[2] || (e[2] = (l) => t.cateId = l),
|
|
145
145
|
"show-search": "",
|
|
146
|
-
"option-filter-prop": "
|
|
147
|
-
"filter-option":
|
|
146
|
+
"option-filter-prop": "label",
|
|
147
|
+
"filter-option": h,
|
|
148
148
|
options: I.value,
|
|
149
149
|
allowClear: ""
|
|
150
150
|
}, null, 8, ["value", "options"])
|
|
151
151
|
]),
|
|
152
152
|
_: 1
|
|
153
153
|
}),
|
|
154
|
-
|
|
154
|
+
a(r, { label: "模块图标" }, {
|
|
155
155
|
default: o(() => [
|
|
156
|
-
|
|
157
|
-
value:
|
|
158
|
-
"onUpdate:value": e[3] || (e[3] = (l) =>
|
|
156
|
+
a(s, {
|
|
157
|
+
value: t.icon,
|
|
158
|
+
"onUpdate:value": e[3] || (e[3] = (l) => t.icon = l),
|
|
159
159
|
placeholder: "点击右侧按钮选择图标"
|
|
160
160
|
}, {
|
|
161
161
|
prefix: o(() => [
|
|
162
|
-
|
|
163
|
-
icon:
|
|
162
|
+
a(ae, {
|
|
163
|
+
icon: t.icon,
|
|
164
164
|
style: { color: "#108b16" }
|
|
165
165
|
}, null, 8, ["icon"])
|
|
166
166
|
]),
|
|
167
167
|
addonAfter: o(() => [
|
|
168
|
-
|
|
168
|
+
a(q(W), { onClick: L })
|
|
169
169
|
]),
|
|
170
170
|
_: 1
|
|
171
171
|
}, 8, ["value"])
|
|
172
172
|
]),
|
|
173
173
|
_: 1
|
|
174
174
|
}),
|
|
175
|
-
|
|
175
|
+
a(r, {
|
|
176
176
|
label: "顺序号",
|
|
177
177
|
name: "seqNo"
|
|
178
178
|
}, {
|
|
179
179
|
default: o(() => [
|
|
180
|
-
|
|
181
|
-
value:
|
|
182
|
-
"onUpdate:value": e[4] || (e[4] = (l) =>
|
|
180
|
+
a(M, {
|
|
181
|
+
value: t.seqNo,
|
|
182
|
+
"onUpdate:value": e[4] || (e[4] = (l) => t.seqNo = l),
|
|
183
183
|
placeholder: "顺序号"
|
|
184
184
|
}, null, 8, ["value"])
|
|
185
185
|
]),
|
|
186
186
|
_: 1
|
|
187
187
|
}),
|
|
188
|
-
|
|
188
|
+
a(r, { label: "访问路径" }, {
|
|
189
189
|
default: o(() => [
|
|
190
|
-
|
|
191
|
-
value:
|
|
192
|
-
"onUpdate:value": e[5] || (e[5] = (l) =>
|
|
190
|
+
a(s, {
|
|
191
|
+
value: t.path,
|
|
192
|
+
"onUpdate:value": e[5] || (e[5] = (l) => t.path = l),
|
|
193
193
|
placeholder: "访问路径"
|
|
194
194
|
}, null, 8, ["value"])
|
|
195
195
|
]),
|
|
196
196
|
_: 1
|
|
197
197
|
}),
|
|
198
|
-
|
|
198
|
+
a(r, { label: "模板文件" }, {
|
|
199
199
|
default: o(() => [
|
|
200
|
-
|
|
201
|
-
value:
|
|
202
|
-
"onUpdate:value": e[6] || (e[6] = (l) =>
|
|
200
|
+
a(s, {
|
|
201
|
+
value: t.component,
|
|
202
|
+
"onUpdate:value": e[6] || (e[6] = (l) => t.component = l),
|
|
203
203
|
placeholder: "@/epp/module/viewName"
|
|
204
204
|
}, null, 8, ["value"])
|
|
205
205
|
]),
|
|
206
206
|
_: 1
|
|
207
207
|
}),
|
|
208
|
-
|
|
208
|
+
a(r, {
|
|
209
209
|
label: "是否显示",
|
|
210
210
|
name: "status"
|
|
211
211
|
}, {
|
|
212
212
|
default: o(() => [
|
|
213
|
-
|
|
214
|
-
value:
|
|
215
|
-
"onUpdate:value": e[7] || (e[7] = (l) =>
|
|
213
|
+
a(R, {
|
|
214
|
+
value: t.status,
|
|
215
|
+
"onUpdate:value": e[7] || (e[7] = (l) => t.status = l)
|
|
216
216
|
}, {
|
|
217
217
|
default: o(() => [
|
|
218
|
-
|
|
218
|
+
a(S, { value: 1 }, {
|
|
219
219
|
default: o(() => [...e[12] || (e[12] = [
|
|
220
220
|
C("显示", -1)
|
|
221
221
|
])]),
|
|
222
222
|
_: 1
|
|
223
223
|
}),
|
|
224
|
-
|
|
224
|
+
a(S, { value: 0 }, {
|
|
225
225
|
default: o(() => [...e[13] || (e[13] = [
|
|
226
226
|
C("隐藏", -1)
|
|
227
227
|
])]),
|
|
@@ -233,22 +233,22 @@ const de = /* @__PURE__ */ j({
|
|
|
233
233
|
]),
|
|
234
234
|
_: 1
|
|
235
235
|
}),
|
|
236
|
-
|
|
236
|
+
a(r, { label: "打开方式" }, {
|
|
237
237
|
default: o(() => [
|
|
238
|
-
|
|
239
|
-
checked:
|
|
240
|
-
"onUpdate:checked": e[8] || (e[8] = (l) =>
|
|
238
|
+
a(T, {
|
|
239
|
+
checked: t.target,
|
|
240
|
+
"onUpdate:checked": e[8] || (e[8] = (l) => t.target = l),
|
|
241
241
|
"checked-children": "新开窗口",
|
|
242
242
|
"un-checked-children": "内部窗口"
|
|
243
243
|
}, null, 8, ["checked"])
|
|
244
244
|
]),
|
|
245
245
|
_: 1
|
|
246
246
|
}),
|
|
247
|
-
|
|
247
|
+
a(r, { label: "描述" }, {
|
|
248
248
|
default: o(() => [
|
|
249
|
-
|
|
250
|
-
value:
|
|
251
|
-
"onUpdate:value": e[9] || (e[9] = (l) =>
|
|
249
|
+
a(s, {
|
|
250
|
+
value: t.remark,
|
|
251
|
+
"onUpdate:value": e[9] || (e[9] = (l) => t.remark = l),
|
|
252
252
|
placeholder: "描述"
|
|
253
253
|
}, null, 8, ["value"])
|
|
254
254
|
]),
|
|
@@ -257,9 +257,9 @@ const de = /* @__PURE__ */ j({
|
|
|
257
257
|
]),
|
|
258
258
|
_: 1
|
|
259
259
|
}),
|
|
260
|
-
|
|
260
|
+
a(U, { span: 9 }, {
|
|
261
261
|
default: o(() => [
|
|
262
|
-
|
|
262
|
+
a(q(ee), {
|
|
263
263
|
modelValue: p.value,
|
|
264
264
|
"onUpdate:modelValue": e[10] || (e[10] = (l) => p.value = l)
|
|
265
265
|
}, null, 8, ["modelValue"])
|
|
@@ -272,9 +272,9 @@ const de = /* @__PURE__ */ j({
|
|
|
272
272
|
]),
|
|
273
273
|
_: 1
|
|
274
274
|
}, 8, ["model"]),
|
|
275
|
-
|
|
275
|
+
a(K, {
|
|
276
276
|
visible: i.value.icon,
|
|
277
|
-
onSuccess:
|
|
277
|
+
onSuccess: V,
|
|
278
278
|
onCancel: e[11] || (e[11] = (l) => i.value.icon = !1)
|
|
279
279
|
}, null, 8, ["visible"])
|
|
280
280
|
]),
|
|
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9f5945ff"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|