@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.
@@ -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 t, unref as U, createTextVNode as C } from "vue";
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 te } from "@since2006/components";
7
- import ae from "./icon/AppIcon.vue.js";
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
- }, a = z({ ...w }), h = {
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
- (l) => {
45
- l && (x(), O());
44
+ (o) => {
45
+ o && (h(), D());
46
46
  }
47
47
  );
48
- const x = () => {
49
- Object.assign(a, w), p.value = [];
50
- }, y = (l, e) => e.componentOptions.children[0].text.toLowerCase().indexOf(l.toLowerCase()) >= 0, O = () => {
51
- X(c.moduleId).then((l) => {
52
- const e = l.data;
53
- e.target = e.openTarget === 1, Object.assign(a, l.data), p.value = [...l.data.permissions.map((d) => d.id)];
54
- }), Y().then((l) => {
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, l.data, [c.moduleId]), g.value = e;
57
- }), Z().then((l) => {
58
- I.value = M(l.data);
56
+ k(e, o.data, [c.moduleId]), g.value = e;
57
+ }), Z().then((o) => {
58
+ I.value = M(o.data);
59
59
  });
60
- }, D = () => {
60
+ }, L = () => {
61
61
  m.value.icon = !0;
62
- }, L = (l) => {
63
- m.value.icon = !1, a.icon = l;
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 l = {
68
- ...a,
69
- openTarget: a.target ? 1 : 0,
67
+ const o = {
68
+ ...t,
69
+ openTarget: t.target ? 1 : 0,
70
70
  permIds: p.value,
71
- seqNo: parseInt(a.seqNo)
71
+ seqNo: parseInt(t.seqNo)
72
72
  };
73
- ee(l).then((e) => {
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 = (l) => l.map((e) => ({
81
+ }, M = (o) => o.map((e) => ({
82
82
  value: e.id,
83
83
  label: e.name
84
- })), k = (l, e, d) => {
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), l.push(s);
88
+ k(s.children, u.children, d), o.push(s);
89
89
  }
90
90
  });
91
91
  };
92
- return (l, e) => {
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
- t(j, {
105
+ a(j, {
106
106
  ref_key: "formRef",
107
107
  ref: b,
108
- model: a,
109
- rules: h,
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
- t(R, null, {
114
+ a(R, null, {
115
115
  default: n(() => [
116
- t(q, { span: 15 }, {
116
+ a(q, { span: 15 }, {
117
117
  default: n(() => [
118
- t(u, { label: "上级模块" }, {
118
+ a(u, { label: "上级模块" }, {
119
119
  default: n(() => [
120
- t(d, {
121
- value: a.parentId,
122
- "onUpdate:value": e[0] || (e[0] = (o) => a.parentId = o),
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
- t(u, {
130
+ a(u, {
131
131
  label: "模块名称",
132
132
  name: "name"
133
133
  }, {
134
134
  default: n(() => [
135
- t(s, {
136
- value: a.name,
137
- "onUpdate:value": e[1] || (e[1] = (o) => a.name = o),
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
- t(u, { label: "文档类别" }, {
143
+ a(u, { label: "文档类别" }, {
144
144
  default: n(() => [
145
- t(T, {
146
- value: a.cateId,
147
- "onUpdate:value": e[2] || (e[2] = (o) => a.cateId = o),
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": "children",
150
- "filter-option": y,
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
- t(u, { label: "模块图标" }, {
157
+ a(u, { label: "模块图标" }, {
158
158
  default: n(() => [
159
- t(s, {
160
- value: a.icon,
161
- "onUpdate:value": e[3] || (e[3] = (o) => a.icon = o),
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
- t(ae, {
166
- icon: a.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
- t(U(W), { onClick: D })
171
+ a(U(W), { onClick: L })
172
172
  ]),
173
173
  _: 1
174
174
  }, 8, ["value"])
175
175
  ]),
176
176
  _: 1
177
177
  }),
178
- t(u, {
178
+ a(u, {
179
179
  label: "顺序号",
180
180
  name: "seqNo"
181
181
  }, {
182
182
  default: n(() => [
183
- t(B, {
184
- value: a.seqNo,
185
- "onUpdate:value": e[4] || (e[4] = (o) => a.seqNo = o),
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
- t(u, { label: "访问路径" }, {
191
+ a(u, { label: "访问路径" }, {
192
192
  default: n(() => [
193
- t(s, {
194
- value: a.path,
195
- "onUpdate:value": e[5] || (e[5] = (o) => a.path = o),
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
- t(u, { label: "模板文件" }, {
201
+ a(u, { label: "模板文件" }, {
202
202
  default: n(() => [
203
- t(s, {
204
- value: a.component,
205
- "onUpdate:value": e[6] || (e[6] = (o) => a.component = o),
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
- t(u, {
211
+ a(u, {
212
212
  label: "是否显示",
213
213
  name: "status"
214
214
  }, {
215
215
  default: n(() => [
216
- t(F, {
217
- value: a.status,
218
- "onUpdate:value": e[7] || (e[7] = (o) => a.status = o)
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
- t(S, { value: 1 }, {
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
- t(S, { value: 0 }, {
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
- t(u, { label: "打开方式" }, {
239
+ a(u, { label: "打开方式" }, {
240
240
  default: n(() => [
241
- t(P, {
242
- checked: a.target,
243
- "onUpdate:checked": e[8] || (e[8] = (o) => a.target = o),
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
- t(u, { label: "描述" }, {
250
+ a(u, { label: "描述" }, {
251
251
  default: n(() => [
252
- t(s, {
253
- value: a.remark,
254
- "onUpdate:value": e[9] || (e[9] = (o) => a.remark = o),
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
- t(q, { span: 9 }, {
263
+ a(q, { span: 9 }, {
264
264
  default: n(() => [
265
- t(U(te), {
265
+ a(U(ae), {
266
266
  modelValue: p.value,
267
- "onUpdate:modelValue": e[10] || (e[10] = (o) => p.value = o)
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
- t(K, {
278
+ a(K, {
279
279
  visible: m.value.icon,
280
- onSuccess: L,
281
- onCancel: e[11] || (e[11] = (o) => m.value.icon = !1)
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-74bb63d3"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-6da7c3e0"]]);
5
5
  export {
6
6
  m as default
7
7
  };