@since2006/pages 2026.3.3 → 2026.4.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 +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 +1 -1
- package/dist/es/src/app/system/StatusIndex.vue2.js +247 -292
- 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,10 +1,10 @@
|
|
|
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
|
|
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 a, unref as U, 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 { getModule as X, getModules as Y, getDocs as Z, updateModule as ee } from "./api.js";
|
|
6
|
-
import { PermPanel as
|
|
7
|
-
import
|
|
6
|
+
import { PermPanel as ae } from "@since2006/components";
|
|
7
|
+
import te from "./icon/AppIcon.vue.js";
|
|
8
8
|
const ie = /* @__PURE__ */ $({
|
|
9
9
|
__name: "ModuleEdit",
|
|
10
10
|
props: {
|
|
@@ -34,43 +34,43 @@ const ie = /* @__PURE__ */ $({
|
|
|
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
|
-
(
|
|
45
|
-
|
|
44
|
+
(o) => {
|
|
45
|
+
o && (h(), D());
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
|
-
const
|
|
49
|
-
Object.assign(
|
|
50
|
-
},
|
|
51
|
-
X(c.moduleId).then((
|
|
52
|
-
const e =
|
|
53
|
-
e.target = e.openTarget === 1, Object.assign(
|
|
54
|
-
}), Y().then((
|
|
48
|
+
const h = () => {
|
|
49
|
+
Object.assign(t, w), p.value = [];
|
|
50
|
+
}, x = (o, e) => e.label.toLowerCase().indexOf(o.toLowerCase()) >= 0, D = () => {
|
|
51
|
+
X(c.moduleId).then((o) => {
|
|
52
|
+
const e = o.data;
|
|
53
|
+
e.target = e.openTarget === 1, Object.assign(t, o.data), p.value = [...o.data.permissions.map((d) => d.id)];
|
|
54
|
+
}), Y().then((o) => {
|
|
55
55
|
const e = [];
|
|
56
|
-
k(e,
|
|
57
|
-
}), Z().then((
|
|
58
|
-
I.value = M(
|
|
56
|
+
k(e, o.data, [c.moduleId]), g.value = e;
|
|
57
|
+
}), Z().then((o) => {
|
|
58
|
+
I.value = M(o.data);
|
|
59
59
|
});
|
|
60
|
-
},
|
|
60
|
+
}, L = () => {
|
|
61
61
|
m.value.icon = !0;
|
|
62
|
-
},
|
|
63
|
-
m.value.icon = !1,
|
|
62
|
+
}, O = (o) => {
|
|
63
|
+
m.value.icon = !1, t.icon = o;
|
|
64
64
|
}, V = () => {
|
|
65
65
|
b.value.validateFields().then(() => {
|
|
66
66
|
f.value = !0;
|
|
67
|
-
const
|
|
68
|
-
...
|
|
69
|
-
openTarget:
|
|
67
|
+
const o = {
|
|
68
|
+
...t,
|
|
69
|
+
openTarget: t.target ? 1 : 0,
|
|
70
70
|
permIds: p.value,
|
|
71
|
-
seqNo: parseInt(
|
|
71
|
+
seqNo: parseInt(t.seqNo)
|
|
72
72
|
};
|
|
73
|
-
ee(
|
|
73
|
+
ee(o).then((e) => {
|
|
74
74
|
e.code === 200 && (Q.success("编辑模块成功"), v("update:open", !1), v("success", e.data.id, e.data.parentId, e.data.srcParentId));
|
|
75
75
|
});
|
|
76
76
|
}).finally(() => {
|
|
@@ -78,18 +78,18 @@ const ie = /* @__PURE__ */ $({
|
|
|
78
78
|
});
|
|
79
79
|
}, E = () => {
|
|
80
80
|
v("update:open", !1);
|
|
81
|
-
}, M = (
|
|
81
|
+
}, M = (o) => o.map((e) => ({
|
|
82
82
|
value: e.id,
|
|
83
83
|
label: e.name
|
|
84
|
-
})), k = (
|
|
84
|
+
})), k = (o, e, d) => {
|
|
85
85
|
e && e.forEach((u) => {
|
|
86
86
|
if (!d.includes(u.id)) {
|
|
87
87
|
const s = { value: u.id, title: u.name, children: [] };
|
|
88
|
-
k(s.children, u.children, d),
|
|
88
|
+
k(s.children, u.children, d), o.push(s);
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
|
-
return (
|
|
92
|
+
return (o, e) => {
|
|
93
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
94
|
return H(), J(A, {
|
|
95
95
|
title: "编辑系统模块",
|
|
@@ -102,24 +102,24 @@ const ie = /* @__PURE__ */ $({
|
|
|
102
102
|
onCancel: E
|
|
103
103
|
}, {
|
|
104
104
|
default: n(() => [
|
|
105
|
-
|
|
105
|
+
a(j, {
|
|
106
106
|
ref_key: "formRef",
|
|
107
107
|
ref: b,
|
|
108
|
-
model:
|
|
109
|
-
rules:
|
|
108
|
+
model: t,
|
|
109
|
+
rules: y,
|
|
110
110
|
"label-col": { span: 5 },
|
|
111
111
|
"wrapper-col": { span: 15 }
|
|
112
112
|
}, {
|
|
113
113
|
default: n(() => [
|
|
114
|
-
|
|
114
|
+
a(R, null, {
|
|
115
115
|
default: n(() => [
|
|
116
|
-
|
|
116
|
+
a(q, { span: 15 }, {
|
|
117
117
|
default: n(() => [
|
|
118
|
-
|
|
118
|
+
a(u, { label: "上级模块" }, {
|
|
119
119
|
default: n(() => [
|
|
120
|
-
|
|
121
|
-
value:
|
|
122
|
-
"onUpdate:value": e[0] || (e[0] = (
|
|
120
|
+
a(d, {
|
|
121
|
+
value: t.parentId,
|
|
122
|
+
"onUpdate:value": e[0] || (e[0] = (l) => t.parentId = l),
|
|
123
123
|
treeData: g.value,
|
|
124
124
|
treeDefaultExpandAll: "",
|
|
125
125
|
allowClear: ""
|
|
@@ -127,104 +127,104 @@ const ie = /* @__PURE__ */ $({
|
|
|
127
127
|
]),
|
|
128
128
|
_: 1
|
|
129
129
|
}),
|
|
130
|
-
|
|
130
|
+
a(u, {
|
|
131
131
|
label: "模块名称",
|
|
132
132
|
name: "name"
|
|
133
133
|
}, {
|
|
134
134
|
default: n(() => [
|
|
135
|
-
|
|
136
|
-
value:
|
|
137
|
-
"onUpdate:value": e[1] || (e[1] = (
|
|
135
|
+
a(s, {
|
|
136
|
+
value: t.name,
|
|
137
|
+
"onUpdate:value": e[1] || (e[1] = (l) => t.name = l),
|
|
138
138
|
placeholder: "模块名称"
|
|
139
139
|
}, null, 8, ["value"])
|
|
140
140
|
]),
|
|
141
141
|
_: 1
|
|
142
142
|
}),
|
|
143
|
-
|
|
143
|
+
a(u, { label: "文档类别" }, {
|
|
144
144
|
default: n(() => [
|
|
145
|
-
|
|
146
|
-
value:
|
|
147
|
-
"onUpdate:value": e[2] || (e[2] = (
|
|
145
|
+
a(T, {
|
|
146
|
+
value: t.cateId,
|
|
147
|
+
"onUpdate:value": e[2] || (e[2] = (l) => t.cateId = l),
|
|
148
148
|
"show-search": "",
|
|
149
|
-
"option-filter-prop": "
|
|
150
|
-
"filter-option":
|
|
149
|
+
"option-filter-prop": "label",
|
|
150
|
+
"filter-option": x,
|
|
151
151
|
options: I.value,
|
|
152
152
|
allowClear: ""
|
|
153
153
|
}, null, 8, ["value", "options"])
|
|
154
154
|
]),
|
|
155
155
|
_: 1
|
|
156
156
|
}),
|
|
157
|
-
|
|
157
|
+
a(u, { label: "模块图标" }, {
|
|
158
158
|
default: n(() => [
|
|
159
|
-
|
|
160
|
-
value:
|
|
161
|
-
"onUpdate:value": e[3] || (e[3] = (
|
|
159
|
+
a(s, {
|
|
160
|
+
value: t.icon,
|
|
161
|
+
"onUpdate:value": e[3] || (e[3] = (l) => t.icon = l),
|
|
162
162
|
placeholder: "点击右侧按钮选择图标"
|
|
163
163
|
}, {
|
|
164
164
|
prefix: n(() => [
|
|
165
|
-
|
|
166
|
-
icon:
|
|
165
|
+
a(te, {
|
|
166
|
+
icon: t.icon,
|
|
167
167
|
style: { color: "#108b16" }
|
|
168
168
|
}, null, 8, ["icon"])
|
|
169
169
|
]),
|
|
170
170
|
addonAfter: n(() => [
|
|
171
|
-
|
|
171
|
+
a(U(W), { onClick: L })
|
|
172
172
|
]),
|
|
173
173
|
_: 1
|
|
174
174
|
}, 8, ["value"])
|
|
175
175
|
]),
|
|
176
176
|
_: 1
|
|
177
177
|
}),
|
|
178
|
-
|
|
178
|
+
a(u, {
|
|
179
179
|
label: "顺序号",
|
|
180
180
|
name: "seqNo"
|
|
181
181
|
}, {
|
|
182
182
|
default: n(() => [
|
|
183
|
-
|
|
184
|
-
value:
|
|
185
|
-
"onUpdate:value": e[4] || (e[4] = (
|
|
183
|
+
a(B, {
|
|
184
|
+
value: t.seqNo,
|
|
185
|
+
"onUpdate:value": e[4] || (e[4] = (l) => t.seqNo = l),
|
|
186
186
|
placeholder: "顺序号"
|
|
187
187
|
}, null, 8, ["value"])
|
|
188
188
|
]),
|
|
189
189
|
_: 1
|
|
190
190
|
}),
|
|
191
|
-
|
|
191
|
+
a(u, { label: "访问路径" }, {
|
|
192
192
|
default: n(() => [
|
|
193
|
-
|
|
194
|
-
value:
|
|
195
|
-
"onUpdate:value": e[5] || (e[5] = (
|
|
193
|
+
a(s, {
|
|
194
|
+
value: t.path,
|
|
195
|
+
"onUpdate:value": e[5] || (e[5] = (l) => t.path = l),
|
|
196
196
|
placeholder: "访问路径"
|
|
197
197
|
}, null, 8, ["value"])
|
|
198
198
|
]),
|
|
199
199
|
_: 1
|
|
200
200
|
}),
|
|
201
|
-
|
|
201
|
+
a(u, { label: "模板文件" }, {
|
|
202
202
|
default: n(() => [
|
|
203
|
-
|
|
204
|
-
value:
|
|
205
|
-
"onUpdate:value": e[6] || (e[6] = (
|
|
203
|
+
a(s, {
|
|
204
|
+
value: t.component,
|
|
205
|
+
"onUpdate:value": e[6] || (e[6] = (l) => t.component = l),
|
|
206
206
|
placeholder: "@/epp/module/viewName"
|
|
207
207
|
}, null, 8, ["value"])
|
|
208
208
|
]),
|
|
209
209
|
_: 1
|
|
210
210
|
}),
|
|
211
|
-
|
|
211
|
+
a(u, {
|
|
212
212
|
label: "是否显示",
|
|
213
213
|
name: "status"
|
|
214
214
|
}, {
|
|
215
215
|
default: n(() => [
|
|
216
|
-
|
|
217
|
-
value:
|
|
218
|
-
"onUpdate:value": e[7] || (e[7] = (
|
|
216
|
+
a(F, {
|
|
217
|
+
value: t.status,
|
|
218
|
+
"onUpdate:value": e[7] || (e[7] = (l) => t.status = l)
|
|
219
219
|
}, {
|
|
220
220
|
default: n(() => [
|
|
221
|
-
|
|
221
|
+
a(S, { value: 1 }, {
|
|
222
222
|
default: n(() => [...e[12] || (e[12] = [
|
|
223
223
|
C("显示", -1)
|
|
224
224
|
])]),
|
|
225
225
|
_: 1
|
|
226
226
|
}),
|
|
227
|
-
|
|
227
|
+
a(S, { value: 0 }, {
|
|
228
228
|
default: n(() => [...e[13] || (e[13] = [
|
|
229
229
|
C("隐藏", -1)
|
|
230
230
|
])]),
|
|
@@ -236,22 +236,22 @@ const ie = /* @__PURE__ */ $({
|
|
|
236
236
|
]),
|
|
237
237
|
_: 1
|
|
238
238
|
}),
|
|
239
|
-
|
|
239
|
+
a(u, { label: "打开方式" }, {
|
|
240
240
|
default: n(() => [
|
|
241
|
-
|
|
242
|
-
checked:
|
|
243
|
-
"onUpdate:checked": e[8] || (e[8] = (
|
|
241
|
+
a(P, {
|
|
242
|
+
checked: t.target,
|
|
243
|
+
"onUpdate:checked": e[8] || (e[8] = (l) => t.target = l),
|
|
244
244
|
"checked-children": "新开窗口",
|
|
245
245
|
"un-checked-children": "内部窗口"
|
|
246
246
|
}, null, 8, ["checked"])
|
|
247
247
|
]),
|
|
248
248
|
_: 1
|
|
249
249
|
}),
|
|
250
|
-
|
|
250
|
+
a(u, { label: "描述" }, {
|
|
251
251
|
default: n(() => [
|
|
252
|
-
|
|
253
|
-
value:
|
|
254
|
-
"onUpdate:value": e[9] || (e[9] = (
|
|
252
|
+
a(s, {
|
|
253
|
+
value: t.remark,
|
|
254
|
+
"onUpdate:value": e[9] || (e[9] = (l) => t.remark = l),
|
|
255
255
|
placeholder: "描述"
|
|
256
256
|
}, null, 8, ["value"])
|
|
257
257
|
]),
|
|
@@ -260,11 +260,11 @@ const ie = /* @__PURE__ */ $({
|
|
|
260
260
|
]),
|
|
261
261
|
_: 1
|
|
262
262
|
}),
|
|
263
|
-
|
|
263
|
+
a(q, { span: 9 }, {
|
|
264
264
|
default: n(() => [
|
|
265
|
-
|
|
265
|
+
a(U(ae), {
|
|
266
266
|
modelValue: p.value,
|
|
267
|
-
"onUpdate:modelValue": e[10] || (e[10] = (
|
|
267
|
+
"onUpdate:modelValue": e[10] || (e[10] = (l) => p.value = l)
|
|
268
268
|
}, null, 8, ["modelValue"])
|
|
269
269
|
]),
|
|
270
270
|
_: 1
|
|
@@ -275,10 +275,10 @@ const ie = /* @__PURE__ */ $({
|
|
|
275
275
|
]),
|
|
276
276
|
_: 1
|
|
277
277
|
}, 8, ["model"]),
|
|
278
|
-
|
|
278
|
+
a(K, {
|
|
279
279
|
visible: m.value.icon,
|
|
280
|
-
onSuccess:
|
|
281
|
-
onCancel: e[11] || (e[11] = (
|
|
280
|
+
onSuccess: O,
|
|
281
|
+
onCancel: e[11] || (e[11] = (l) => m.value.icon = !1)
|
|
282
282
|
}, null, 8, ["visible"])
|
|
283
283
|
]),
|
|
284
284
|
_: 1
|
|
@@ -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-6da7c3e0"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|