@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.
@@ -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-f8a348f6"]]);
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 t, unref as q, createTextVNode as C } from "vue";
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 te from "./icon/AppIcon.vue.js";
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 m = _, b = d(), p = d([]), f = d(!1), g = d([]), I = d([]), i = d({
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
- }, 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
- () => m.open,
43
+ () => c.open,
44
44
  (n) => {
45
45
  n && (x(), D());
46
46
  }
47
47
  );
48
48
  const x = () => {
49
- Object.assign(a, w), p.value = [];
50
- }, y = (n, e) => e.componentOptions.children[0].text.toLowerCase().indexOf(n.toLowerCase()) >= 0, D = () => {
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, m.parentId && (a.parentId = m.parentId);
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
- }, O = (n) => {
60
- i.value.icon = !1, a.icon = n;
61
- }, V = () => {
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
- ...a,
66
- openTarget: a.target ? 1 : 0,
65
+ ...t,
66
+ openTarget: t.target ? 1 : 0,
67
67
  permIds: p.value,
68
- seqNo: parseInt(a.seqNo)
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, c) => {
78
+ }, k = (n, e, m) => {
79
79
  e && e.forEach((r) => {
80
- if (!c.includes(r.id)) {
80
+ if (!m.includes(r.id)) {
81
81
  const s = { value: r.id, title: r.name, children: [] };
82
- k(s.children, r.children, c), n.push(s);
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 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");
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: V,
98
+ onOk: O,
99
99
  onCancel: A
100
100
  }, {
101
101
  default: o(() => [
102
- t(P, {
102
+ a(P, {
103
103
  ref_key: "formRef",
104
104
  ref: b,
105
- model: a,
106
- rules: h,
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
- t(E, null, {
111
+ a(E, null, {
112
112
  default: o(() => [
113
- t(U, { span: 15 }, {
113
+ a(U, { span: 15 }, {
114
114
  default: o(() => [
115
- t(r, { label: "上级模块" }, {
115
+ a(r, { label: "上级模块" }, {
116
116
  default: o(() => [
117
- t(c, {
118
- value: a.parentId,
119
- "onUpdate:value": e[0] || (e[0] = (l) => a.parentId = 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
- t(r, {
127
+ a(r, {
128
128
  label: "模块名称",
129
129
  name: "name"
130
130
  }, {
131
131
  default: o(() => [
132
- t(s, {
133
- value: a.name,
134
- "onUpdate:value": e[1] || (e[1] = (l) => a.name = 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
- t(r, { label: "文档类别" }, {
140
+ a(r, { label: "文档类别" }, {
141
141
  default: o(() => [
142
- t(F, {
143
- value: a.cateId,
144
- "onUpdate:value": e[2] || (e[2] = (l) => a.cateId = 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": "children",
147
- "filter-option": y,
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
- t(r, { label: "模块图标" }, {
154
+ a(r, { label: "模块图标" }, {
155
155
  default: o(() => [
156
- t(s, {
157
- value: a.icon,
158
- "onUpdate:value": e[3] || (e[3] = (l) => a.icon = 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
- t(te, {
163
- icon: a.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
- t(q(W), { onClick: L })
168
+ a(q(W), { onClick: L })
169
169
  ]),
170
170
  _: 1
171
171
  }, 8, ["value"])
172
172
  ]),
173
173
  _: 1
174
174
  }),
175
- t(r, {
175
+ a(r, {
176
176
  label: "顺序号",
177
177
  name: "seqNo"
178
178
  }, {
179
179
  default: o(() => [
180
- t(M, {
181
- value: a.seqNo,
182
- "onUpdate:value": e[4] || (e[4] = (l) => a.seqNo = 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
- t(r, { label: "访问路径" }, {
188
+ a(r, { label: "访问路径" }, {
189
189
  default: o(() => [
190
- t(s, {
191
- value: a.path,
192
- "onUpdate:value": e[5] || (e[5] = (l) => a.path = 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
- t(r, { label: "模板文件" }, {
198
+ a(r, { label: "模板文件" }, {
199
199
  default: o(() => [
200
- t(s, {
201
- value: a.component,
202
- "onUpdate:value": e[6] || (e[6] = (l) => a.component = 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
- t(r, {
208
+ a(r, {
209
209
  label: "是否显示",
210
210
  name: "status"
211
211
  }, {
212
212
  default: o(() => [
213
- t(R, {
214
- value: a.status,
215
- "onUpdate:value": e[7] || (e[7] = (l) => a.status = 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
- t(S, { value: 1 }, {
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
- t(S, { value: 0 }, {
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
- t(r, { label: "打开方式" }, {
236
+ a(r, { label: "打开方式" }, {
237
237
  default: o(() => [
238
- t(T, {
239
- checked: a.target,
240
- "onUpdate:checked": e[8] || (e[8] = (l) => a.target = 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
- t(r, { label: "描述" }, {
247
+ a(r, { label: "描述" }, {
248
248
  default: o(() => [
249
- t(s, {
250
- value: a.remark,
251
- "onUpdate:value": e[9] || (e[9] = (l) => a.remark = 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
- t(U, { span: 9 }, {
260
+ a(U, { span: 9 }, {
261
261
  default: o(() => [
262
- t(q(ee), {
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
- t(K, {
275
+ a(K, {
276
276
  visible: i.value.icon,
277
- onSuccess: O,
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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-50a6d9f1"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9f5945ff"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };