auto-vue-basic 0.0.35 → 0.0.37
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/auto-vue-basic.es.js +806 -796
- package/dist/auto-vue-basic.umd.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { createAutoApi as
|
3
|
-
const
|
1
|
+
import { defineComponent as D, ref as Q, resolveComponent as d, createBlock as T, openBlock as M, unref as e, isRef as z, withCtx as t, createVNode as l, createTextVNode as N, createElementBlock as I, Fragment as B, renderList as j, toDisplayString as ne, withKeys as X, createElementVNode as G, toRef as ue, normalizeClass as be, isVNode as fe, reactive as _e, onMounted as ge, watch as he, nextTick as Ve, createCommentVNode as ye } from "vue";
|
2
|
+
import { createAutoApi as Z, useForm as P, Translate as a, RulesUtils as ke, FormDialog as Y, ModifyButton as ee, useTablePage as F, useLoading as K, ProTable as le, DEFAULT_PAGE_KEY as ae, SearchButton as oe, RefreshButton as W, OpenButton as te, DEFAULT_STATUS_KEY as ie, AutoApiUtils as ve, useSelect as de, InlineRefreshButton as me, DEFAULT_REMOVE_KEY as we } from "auto-vue-manual";
|
3
|
+
const re = Z("admin", {}, "key"), J = Z("role", {}, "key"), xe = /* @__PURE__ */ D({
|
4
4
|
__name: "info",
|
5
5
|
emits: ["refresh"],
|
6
|
-
setup(
|
7
|
-
const
|
6
|
+
setup(U, { expose: C, emit: v }) {
|
7
|
+
const R = v, w = {
|
8
8
|
key: "",
|
9
9
|
username: "",
|
10
10
|
password: "",
|
@@ -13,15 +13,19 @@ const se = le("admin", {}, "key"), X = le("role", {}, "key"), Re = /* @__PURE__
|
|
13
13
|
language: "zh-CN",
|
14
14
|
remark: "",
|
15
15
|
roles: []
|
16
|
-
}
|
16
|
+
}, { modal: k, title: b, form: s, formData: i, requesting: n, executing: f, open: g, modify: h, submit: V, closed: q } = P(
|
17
|
+
R,
|
18
|
+
w,
|
19
|
+
re
|
20
|
+
), S = {
|
17
21
|
username: [
|
18
22
|
{ required: !0, message: a("base.placeholder.input base.username"), trigger: "blur" }
|
19
23
|
],
|
20
24
|
phone: [
|
21
|
-
{ required: !0, validator:
|
25
|
+
{ required: !0, validator: ke.phoneRule, message: a("base.placeholder.input base.phone"), trigger: "blur" }
|
22
26
|
],
|
23
27
|
password: [
|
24
|
-
{ required:
|
28
|
+
{ required: !1, message: a("base.placeholder.input base.password"), trigger: "blur" }
|
25
29
|
],
|
26
30
|
email: [
|
27
31
|
{ required: !0, message: a("base.placeholder.input base.email"), trigger: "blur" }
|
@@ -30,121 +34,114 @@ const se = le("admin", {}, "key"), X = le("role", {}, "key"), Re = /* @__PURE__
|
|
30
34
|
{ required: !0, message: a("base.placeholder.select base.language"), trigger: "change" }
|
31
35
|
],
|
32
36
|
roles: [
|
33
|
-
{ required: !0, type: "
|
37
|
+
{ required: !0, type: "Array", message: a("base.placeholder.select base.roles"), trigger: "change" }
|
34
38
|
]
|
35
|
-
},
|
36
|
-
const u = await
|
37
|
-
|
38
|
-
}
|
39
|
-
M,
|
40
|
-
t,
|
41
|
-
se
|
42
|
-
);
|
39
|
+
}, c = Q([]), p = async () => {
|
40
|
+
const u = await J.list();
|
41
|
+
c.value = Array.isArray(u == null ? void 0 : u.data) ? u.data : [];
|
42
|
+
};
|
43
43
|
return C({
|
44
44
|
openOrModify: async (u) => {
|
45
|
-
|
45
|
+
c.value.length || await p(), u ? h({ key: u }) : g();
|
46
46
|
}
|
47
|
-
}), (u,
|
48
|
-
const
|
49
|
-
return
|
50
|
-
modelValue: e(
|
51
|
-
"onUpdate:modelValue":
|
52
|
-
title: e(
|
47
|
+
}), (u, r) => {
|
48
|
+
const x = d("el-input"), A = d("el-form-item"), _ = d("el-radio-button"), y = d("el-radio-group"), O = d("el-checkbox"), m = d("el-checkbox-group"), L = d("el-form");
|
49
|
+
return M(), T(e(Y), {
|
50
|
+
modelValue: e(k),
|
51
|
+
"onUpdate:modelValue": r[7] || (r[7] = (E) => z(k) ? k.value = E : null),
|
52
|
+
title: e(b)(),
|
53
53
|
width: "600px",
|
54
|
-
executing: e(
|
55
|
-
onClosed: e(
|
56
|
-
onSubmit: e(
|
54
|
+
executing: e(f),
|
55
|
+
onClosed: e(q),
|
56
|
+
onSubmit: e(V)
|
57
57
|
}, {
|
58
|
-
default:
|
59
|
-
l(
|
58
|
+
default: t(() => [
|
59
|
+
l(L, {
|
60
60
|
ref_key: "form",
|
61
|
-
ref:
|
62
|
-
model:
|
61
|
+
ref: s,
|
62
|
+
model: e(i),
|
63
63
|
"label-width": "auto",
|
64
|
-
rules:
|
65
|
-
disabled: e(
|
64
|
+
rules: S,
|
65
|
+
disabled: e(n) || e(f)
|
66
66
|
}, {
|
67
|
-
default:
|
68
|
-
|
69
|
-
[B, !1]
|
70
|
-
]),
|
71
|
-
l(k, {
|
67
|
+
default: t(() => [
|
68
|
+
l(A, {
|
72
69
|
label: e(a)("base.username"),
|
73
70
|
prop: "username"
|
74
71
|
}, {
|
75
|
-
default:
|
76
|
-
l(
|
77
|
-
modelValue:
|
78
|
-
"onUpdate:modelValue":
|
72
|
+
default: t(() => [
|
73
|
+
l(x, {
|
74
|
+
modelValue: e(i).username,
|
75
|
+
"onUpdate:modelValue": r[0] || (r[0] = (E) => e(i).username = E),
|
79
76
|
placeholder: e(a)("base.placeholder.input"),
|
80
77
|
autocomplete: "off"
|
81
78
|
}, null, 8, ["modelValue", "placeholder"])
|
82
79
|
]),
|
83
80
|
_: 1
|
84
81
|
}, 8, ["label"]),
|
85
|
-
l(
|
82
|
+
l(A, {
|
86
83
|
label: e(a)("base.phone"),
|
87
84
|
prop: "phone"
|
88
85
|
}, {
|
89
|
-
default:
|
90
|
-
l(
|
91
|
-
modelValue:
|
92
|
-
"onUpdate:modelValue":
|
86
|
+
default: t(() => [
|
87
|
+
l(x, {
|
88
|
+
modelValue: e(i).phone,
|
89
|
+
"onUpdate:modelValue": r[1] || (r[1] = (E) => e(i).phone = E),
|
93
90
|
placeholder: e(a)("base.placeholder.input"),
|
94
91
|
autocomplete: "off"
|
95
92
|
}, null, 8, ["modelValue", "placeholder"])
|
96
93
|
]),
|
97
94
|
_: 1
|
98
95
|
}, 8, ["label"]),
|
99
|
-
l(
|
96
|
+
l(A, {
|
100
97
|
label: e(a)("base.password"),
|
101
98
|
prop: "password",
|
102
|
-
required:
|
99
|
+
required: !e(i).key
|
103
100
|
}, {
|
104
|
-
default:
|
105
|
-
l(
|
106
|
-
modelValue:
|
107
|
-
"onUpdate:modelValue":
|
101
|
+
default: t(() => [
|
102
|
+
l(x, {
|
103
|
+
modelValue: e(i).password,
|
104
|
+
"onUpdate:modelValue": r[2] || (r[2] = (E) => e(i).password = E),
|
108
105
|
placeholder: e(a)("base.placeholder.input"),
|
109
106
|
autocomplete: "off"
|
110
107
|
}, null, 8, ["modelValue", "placeholder"])
|
111
108
|
]),
|
112
109
|
_: 1
|
113
110
|
}, 8, ["label", "required"]),
|
114
|
-
l(
|
111
|
+
l(A, {
|
115
112
|
label: e(a)("base.email"),
|
116
113
|
prop: "email"
|
117
114
|
}, {
|
118
|
-
default:
|
119
|
-
l(
|
120
|
-
modelValue:
|
121
|
-
"onUpdate:modelValue":
|
115
|
+
default: t(() => [
|
116
|
+
l(x, {
|
117
|
+
modelValue: e(i).email,
|
118
|
+
"onUpdate:modelValue": r[3] || (r[3] = (E) => e(i).email = E),
|
122
119
|
placeholder: e(a)("base.placeholder.input"),
|
123
120
|
autocomplete: "off"
|
124
121
|
}, null, 8, ["modelValue", "placeholder"])
|
125
122
|
]),
|
126
123
|
_: 1
|
127
124
|
}, 8, ["label"]),
|
128
|
-
l(
|
125
|
+
l(A, {
|
129
126
|
label: e(a)("base.language"),
|
130
127
|
prop: "language"
|
131
128
|
}, {
|
132
|
-
default:
|
133
|
-
l(
|
134
|
-
modelValue:
|
135
|
-
"onUpdate:modelValue":
|
129
|
+
default: t(() => [
|
130
|
+
l(y, {
|
131
|
+
modelValue: e(i).language,
|
132
|
+
"onUpdate:modelValue": r[4] || (r[4] = (E) => e(i).language = E)
|
136
133
|
}, {
|
137
|
-
default:
|
138
|
-
l(
|
139
|
-
default:
|
140
|
-
|
134
|
+
default: t(() => [
|
135
|
+
l(_, { value: "zh-CN" }, {
|
136
|
+
default: t(() => r[8] || (r[8] = [
|
137
|
+
N("zh-CN")
|
141
138
|
])),
|
142
139
|
_: 1,
|
143
140
|
__: [8]
|
144
141
|
}),
|
145
|
-
l(
|
146
|
-
default:
|
147
|
-
|
142
|
+
l(_, { value: "en-US" }, {
|
143
|
+
default: t(() => r[9] || (r[9] = [
|
144
|
+
N("en-US")
|
148
145
|
])),
|
149
146
|
_: 1,
|
150
147
|
__: [9]
|
@@ -155,39 +152,39 @@ const se = le("admin", {}, "key"), X = le("role", {}, "key"), Re = /* @__PURE__
|
|
155
152
|
]),
|
156
153
|
_: 1
|
157
154
|
}, 8, ["label"]),
|
158
|
-
l(
|
155
|
+
l(A, {
|
159
156
|
label: e(a)("base.roles"),
|
160
157
|
prop: "roles"
|
161
158
|
}, {
|
162
|
-
default:
|
163
|
-
l(
|
164
|
-
modelValue:
|
165
|
-
"onUpdate:modelValue":
|
159
|
+
default: t(() => [
|
160
|
+
l(m, {
|
161
|
+
modelValue: e(i).roles,
|
162
|
+
"onUpdate:modelValue": r[5] || (r[5] = (E) => e(i).roles = E)
|
166
163
|
}, {
|
167
|
-
default:
|
168
|
-
(
|
169
|
-
key:
|
170
|
-
|
164
|
+
default: t(() => [
|
165
|
+
(M(!0), I(B, null, j(c.value, (E) => (M(), T(O, {
|
166
|
+
key: E.key,
|
167
|
+
value: E.key
|
171
168
|
}, {
|
172
|
-
default:
|
173
|
-
|
169
|
+
default: t(() => [
|
170
|
+
N(ne(E.translate), 1)
|
174
171
|
]),
|
175
172
|
_: 2
|
176
|
-
}, 1032, ["
|
173
|
+
}, 1032, ["value"]))), 128))
|
177
174
|
]),
|
178
175
|
_: 1
|
179
176
|
}, 8, ["modelValue"])
|
180
177
|
]),
|
181
178
|
_: 1
|
182
179
|
}, 8, ["label"]),
|
183
|
-
l(
|
180
|
+
l(A, {
|
184
181
|
label: e(a)("base.remark"),
|
185
182
|
prop: "remark"
|
186
183
|
}, {
|
187
|
-
default:
|
188
|
-
l(
|
189
|
-
modelValue:
|
190
|
-
"onUpdate:modelValue":
|
184
|
+
default: t(() => [
|
185
|
+
l(x, {
|
186
|
+
modelValue: e(i).remark,
|
187
|
+
"onUpdate:modelValue": r[6] || (r[6] = (E) => e(i).remark = E),
|
191
188
|
placeholder: e(a)("base.placeholder.input")
|
192
189
|
}, null, 8, ["modelValue", "placeholder"])
|
193
190
|
]),
|
@@ -201,32 +198,32 @@ const se = le("admin", {}, "key"), X = le("role", {}, "key"), Re = /* @__PURE__
|
|
201
198
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
202
199
|
};
|
203
200
|
}
|
204
|
-
}),
|
201
|
+
}), Ue = /* @__PURE__ */ D({
|
205
202
|
__name: "index",
|
206
|
-
setup(
|
203
|
+
setup(U) {
|
207
204
|
const C = {
|
208
205
|
keyword: ""
|
209
|
-
},
|
206
|
+
}, v = [{
|
210
207
|
label: a("base.avatar"),
|
211
208
|
prop: "avatar",
|
212
209
|
width: 60,
|
213
210
|
render: ({
|
214
|
-
row:
|
211
|
+
row: h
|
215
212
|
}) => l(d("el-avatar"), {
|
216
213
|
size: "default",
|
217
|
-
src:
|
214
|
+
src: h.avatar
|
218
215
|
}, null)
|
219
216
|
}, {
|
220
217
|
label: a("base.user"),
|
221
218
|
width: 200,
|
222
219
|
align: "left",
|
223
220
|
render: ({
|
224
|
-
row:
|
221
|
+
row: h
|
225
222
|
}) => l(d("el-space"), {
|
226
223
|
direction: "vertical",
|
227
224
|
alignment: "start"
|
228
225
|
}, {
|
229
|
-
default: () => [l("div", null, [
|
226
|
+
default: () => [l("div", null, [h.username]), l("div", null, [h.email])]
|
230
227
|
})
|
231
228
|
}, {
|
232
229
|
label: a("base.phone"),
|
@@ -254,81 +251,88 @@ const se = le("admin", {}, "key"), X = le("role", {}, "key"), Re = /* @__PURE__
|
|
254
251
|
width: 80,
|
255
252
|
align: "center",
|
256
253
|
render: ({
|
257
|
-
row:
|
258
|
-
}) => l(
|
259
|
-
onModify: () => h
|
254
|
+
row: h
|
255
|
+
}) => l(ee, {
|
256
|
+
onModify: () => g(h.key)
|
260
257
|
}, null)
|
261
258
|
}], {
|
262
|
-
requesting:
|
263
|
-
} =
|
264
|
-
tableRef:
|
265
|
-
infoRef:
|
266
|
-
keyword:
|
259
|
+
requesting: R
|
260
|
+
} = K(re), {
|
261
|
+
tableRef: w,
|
262
|
+
infoRef: k,
|
263
|
+
keyword: b,
|
267
264
|
search: s,
|
268
|
-
refresh:
|
269
|
-
reset:
|
270
|
-
openInfo:
|
271
|
-
modifyInfo:
|
272
|
-
} =
|
273
|
-
return (
|
274
|
-
const
|
275
|
-
return
|
265
|
+
refresh: i,
|
266
|
+
reset: n,
|
267
|
+
openInfo: f,
|
268
|
+
modifyInfo: g
|
269
|
+
} = F(C);
|
270
|
+
return (h, V) => {
|
271
|
+
const q = d("el-input"), S = d("el-space"), c = d("el-page-header"), p = d("el-card");
|
272
|
+
return M(), T(p, {
|
276
273
|
class: "basic-card flex-full",
|
277
274
|
"body-class": "flex-1"
|
278
275
|
}, {
|
279
|
-
header:
|
280
|
-
class: "
|
276
|
+
header: t(() => [l(c, {
|
277
|
+
class: "basic-header"
|
281
278
|
}, {
|
282
|
-
|
283
|
-
loading: e(
|
284
|
-
onRefresh: e(
|
285
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
286
|
-
onOpen: e(
|
287
|
-
}, null, 8, ["onOpen"]),
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
279
|
+
title: t(() => [l(e(W), {
|
280
|
+
loading: e(R),
|
281
|
+
onRefresh: e(i)
|
282
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(te), {
|
283
|
+
onOpen: e(f)
|
284
|
+
}, null, 8, ["onOpen"])]),
|
285
|
+
content: t(() => [l(S, {
|
286
|
+
class: "search-bar"
|
287
|
+
}, {
|
288
|
+
default: t(() => [l(q, {
|
289
|
+
class: "basic-search-input",
|
290
|
+
modelValue: e(b).keyword,
|
291
|
+
"onUpdate:modelValue": V[0] || (V[0] = (o) => e(b).keyword = o),
|
292
|
+
placeholder: e(a)("base.placeholder.keyword"),
|
293
|
+
clearable: "",
|
294
|
+
onKeyup: X(e(s), ["enter"]),
|
295
|
+
onClear: e(s)
|
296
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(e(oe), {
|
297
|
+
disabled: e(R),
|
298
|
+
onSearch: e(s)
|
299
|
+
}, null, 8, ["disabled", "onSearch"])]),
|
300
|
+
_: 1
|
301
|
+
})]),
|
298
302
|
_: 1
|
299
303
|
})]),
|
300
|
-
default:
|
304
|
+
default: t(() => [l(e(le), {
|
301
305
|
ref_key: "tableRef",
|
302
|
-
ref:
|
306
|
+
ref: w,
|
303
307
|
size: "small",
|
304
|
-
columns:
|
305
|
-
url: e(
|
306
|
-
"search-param": e(
|
308
|
+
columns: v,
|
309
|
+
url: e(re).urls[e(ae)],
|
310
|
+
"search-param": e(b),
|
307
311
|
autoSearch: ""
|
308
|
-
}, null, 8, ["url", "search-param"]), l(
|
312
|
+
}, null, 8, ["url", "search-param"]), l(xe, {
|
309
313
|
ref_key: "infoRef",
|
310
|
-
ref:
|
311
|
-
onRefresh: e(
|
314
|
+
ref: k,
|
315
|
+
onRefresh: e(n)
|
312
316
|
}, null, 8, ["onRefresh"])]),
|
313
317
|
_: 1
|
314
318
|
});
|
315
319
|
};
|
316
320
|
}
|
317
|
-
}),
|
321
|
+
}), Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
318
322
|
__proto__: null,
|
319
|
-
default:
|
320
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
323
|
+
default: Ue
|
324
|
+
}, Symbol.toStringTag, { value: "Module" })), H = Z("translate", {}, "key"), Re = /* @__PURE__ */ D({
|
321
325
|
__name: "info",
|
322
326
|
emits: ["refresh"],
|
323
|
-
setup(
|
324
|
-
const
|
327
|
+
setup(U, { expose: C, emit: v }) {
|
328
|
+
const R = v, w = {
|
325
329
|
id: 0,
|
326
330
|
key: "",
|
327
331
|
module: "",
|
328
332
|
language: "",
|
329
333
|
result: "",
|
330
334
|
remark: ""
|
331
|
-
}
|
335
|
+
}, k = {
|
332
336
|
module: [
|
333
337
|
{ required: !0, message: a("language.placeholder.module"), trigger: "blur" }
|
334
338
|
],
|
@@ -341,48 +345,45 @@ const se = le("admin", {}, "key"), X = le("role", {}, "key"), Re = /* @__PURE__
|
|
341
345
|
result: [
|
342
346
|
{ required: !0, message: a("language.placeholder.result"), trigger: "blur" }
|
343
347
|
]
|
344
|
-
}, { modal:
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
+
}, { modal: b, title: s, form: i, formData: n, requesting: f, executing: g, open: h, modify: V, submit: q, closed: S } = P(
|
349
|
+
R,
|
350
|
+
w,
|
351
|
+
H
|
348
352
|
);
|
349
353
|
return C({
|
350
|
-
openOrModify: (
|
351
|
-
|
354
|
+
openOrModify: (p) => {
|
355
|
+
p ? V({ id: p }) : h();
|
352
356
|
}
|
353
|
-
}), (
|
354
|
-
const
|
355
|
-
return
|
356
|
-
modelValue: e(
|
357
|
-
"onUpdate:modelValue": o[5] || (o[5] = (
|
357
|
+
}), (p, o) => {
|
358
|
+
const u = d("el-input"), r = d("el-form-item"), x = d("el-radio-button"), A = d("el-radio-group"), _ = d("el-form");
|
359
|
+
return M(), T(e(Y), {
|
360
|
+
modelValue: e(b),
|
361
|
+
"onUpdate:modelValue": o[5] || (o[5] = (y) => z(b) ? b.value = y : null),
|
358
362
|
title: e(s)(),
|
359
363
|
width: "600px",
|
360
|
-
executing: e(
|
361
|
-
onClosed: e(
|
362
|
-
onSubmit: e(
|
364
|
+
executing: e(g),
|
365
|
+
onClosed: e(S),
|
366
|
+
onSubmit: e(q)
|
363
367
|
}, {
|
364
|
-
default:
|
365
|
-
l(
|
368
|
+
default: t(() => [
|
369
|
+
l(_, {
|
366
370
|
ref_key: "form",
|
367
|
-
ref:
|
368
|
-
model:
|
371
|
+
ref: i,
|
372
|
+
model: e(n),
|
369
373
|
"label-width": "auto",
|
370
|
-
rules:
|
371
|
-
disabled: e(
|
374
|
+
rules: k,
|
375
|
+
disabled: e(f) || e(g)
|
372
376
|
}, {
|
373
|
-
default:
|
374
|
-
N(l(r, { prop: "id" }, null, 512), [
|
375
|
-
[B, !1]
|
376
|
-
]),
|
377
|
+
default: t(() => [
|
377
378
|
l(r, {
|
378
379
|
label: e(a)("language.module"),
|
379
380
|
prop: "module",
|
380
381
|
required: ""
|
381
382
|
}, {
|
382
|
-
default:
|
383
|
+
default: t(() => [
|
383
384
|
l(u, {
|
384
|
-
modelValue:
|
385
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
385
|
+
modelValue: e(n).module,
|
386
|
+
"onUpdate:modelValue": o[0] || (o[0] = (y) => e(n).module = y),
|
386
387
|
placeholder: e(a)("language.placeholder.module")
|
387
388
|
}, null, 8, ["modelValue", "placeholder"])
|
388
389
|
]),
|
@@ -393,10 +394,10 @@ const se = le("admin", {}, "key"), X = le("role", {}, "key"), Re = /* @__PURE__
|
|
393
394
|
prop: "key",
|
394
395
|
required: ""
|
395
396
|
}, {
|
396
|
-
default:
|
397
|
+
default: t(() => [
|
397
398
|
l(u, {
|
398
|
-
modelValue:
|
399
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
399
|
+
modelValue: e(n).key,
|
400
|
+
"onUpdate:modelValue": o[1] || (o[1] = (y) => e(n).key = y),
|
400
401
|
placeholder: e(a)("language.placeholder.key")
|
401
402
|
}, null, 8, ["modelValue", "placeholder"])
|
402
403
|
]),
|
@@ -407,22 +408,22 @@ const se = le("admin", {}, "key"), X = le("role", {}, "key"), Re = /* @__PURE__
|
|
407
408
|
prop: "language",
|
408
409
|
required: ""
|
409
410
|
}, {
|
410
|
-
default:
|
411
|
-
l(
|
412
|
-
modelValue:
|
413
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
411
|
+
default: t(() => [
|
412
|
+
l(A, {
|
413
|
+
modelValue: e(n).language,
|
414
|
+
"onUpdate:modelValue": o[2] || (o[2] = (y) => e(n).language = y)
|
414
415
|
}, {
|
415
|
-
default:
|
416
|
-
l(
|
417
|
-
default:
|
418
|
-
|
416
|
+
default: t(() => [
|
417
|
+
l(x, { label: "zh-CN" }, {
|
418
|
+
default: t(() => o[6] || (o[6] = [
|
419
|
+
N("zh-CN")
|
419
420
|
])),
|
420
421
|
_: 1,
|
421
422
|
__: [6]
|
422
423
|
}),
|
423
|
-
l(
|
424
|
-
default:
|
425
|
-
|
424
|
+
l(x, { label: "en-US" }, {
|
425
|
+
default: t(() => o[7] || (o[7] = [
|
426
|
+
N("en-US")
|
426
427
|
])),
|
427
428
|
_: 1,
|
428
429
|
__: [7]
|
@@ -438,10 +439,10 @@ const se = le("admin", {}, "key"), X = le("role", {}, "key"), Re = /* @__PURE__
|
|
438
439
|
prop: "result",
|
439
440
|
required: ""
|
440
441
|
}, {
|
441
|
-
default:
|
442
|
+
default: t(() => [
|
442
443
|
l(u, {
|
443
|
-
modelValue:
|
444
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
444
|
+
modelValue: e(n).result,
|
445
|
+
"onUpdate:modelValue": o[3] || (o[3] = (y) => e(n).result = y),
|
445
446
|
placeholder: e(a)("language.placeholder.result")
|
446
447
|
}, null, 8, ["modelValue", "placeholder"])
|
447
448
|
]),
|
@@ -451,10 +452,10 @@ const se = le("admin", {}, "key"), X = le("role", {}, "key"), Re = /* @__PURE__
|
|
451
452
|
label: e(a)("base.remark"),
|
452
453
|
prop: "remark"
|
453
454
|
}, {
|
454
|
-
default:
|
455
|
+
default: t(() => [
|
455
456
|
l(u, {
|
456
|
-
modelValue:
|
457
|
-
"onUpdate:modelValue": o[4] || (o[4] = (
|
457
|
+
modelValue: e(n).remark,
|
458
|
+
"onUpdate:modelValue": o[4] || (o[4] = (y) => e(n).remark = y),
|
458
459
|
placeholder: e(a)("base.placeholder.input")
|
459
460
|
}, null, 8, ["modelValue", "placeholder"])
|
460
461
|
]),
|
@@ -468,13 +469,13 @@ const se = le("admin", {}, "key"), X = le("role", {}, "key"), Re = /* @__PURE__
|
|
468
469
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
469
470
|
};
|
470
471
|
}
|
471
|
-
}),
|
472
|
+
}), Ce = /* @__PURE__ */ D({
|
472
473
|
__name: "index",
|
473
|
-
setup(
|
474
|
+
setup(U) {
|
474
475
|
const C = {
|
475
476
|
keyword: "",
|
476
477
|
status: 0
|
477
|
-
},
|
478
|
+
}, v = [{
|
478
479
|
label: a("base.module"),
|
479
480
|
prop: "module",
|
480
481
|
width: 120
|
@@ -498,7 +499,7 @@ const se = le("admin", {}, "key"), X = le("role", {}, "key"), Re = /* @__PURE__
|
|
498
499
|
props: {
|
499
500
|
activeValue: 1,
|
500
501
|
inactiveValue: 2,
|
501
|
-
api:
|
502
|
+
api: H.urls[ie],
|
502
503
|
refresh: !0
|
503
504
|
}
|
504
505
|
}, {
|
@@ -519,101 +520,108 @@ const se = le("admin", {}, "key"), X = le("role", {}, "key"), Re = /* @__PURE__
|
|
519
520
|
width: 80,
|
520
521
|
align: "center",
|
521
522
|
render: ({
|
522
|
-
row:
|
523
|
-
}) => l(
|
524
|
-
onModify: () => h
|
523
|
+
row: h
|
524
|
+
}) => l(ee, {
|
525
|
+
onModify: () => g(h.id)
|
525
526
|
}, null)
|
526
527
|
}], {
|
527
|
-
requesting:
|
528
|
-
} =
|
529
|
-
tableRef:
|
530
|
-
infoRef:
|
531
|
-
keyword:
|
528
|
+
requesting: R
|
529
|
+
} = K(H), {
|
530
|
+
tableRef: w,
|
531
|
+
infoRef: k,
|
532
|
+
keyword: b,
|
532
533
|
search: s,
|
533
|
-
refresh:
|
534
|
-
reset:
|
535
|
-
openInfo:
|
536
|
-
modifyInfo:
|
537
|
-
} =
|
538
|
-
return (
|
539
|
-
const
|
540
|
-
return
|
534
|
+
refresh: i,
|
535
|
+
reset: n,
|
536
|
+
openInfo: f,
|
537
|
+
modifyInfo: g
|
538
|
+
} = F(C);
|
539
|
+
return (h, V) => {
|
540
|
+
const q = d("el-input"), S = d("el-radio-button"), c = d("el-radio-group"), p = d("el-space"), o = d("el-page-header"), u = d("el-card");
|
541
|
+
return M(), T(u, {
|
541
542
|
class: "basic-card flex-full",
|
542
543
|
"body-class": "flex-1"
|
543
544
|
}, {
|
544
|
-
header:
|
545
|
-
class: "
|
545
|
+
header: t(() => [l(o, {
|
546
|
+
class: "basic-header"
|
546
547
|
}, {
|
547
|
-
|
548
|
-
loading: e(
|
549
|
-
onRefresh: e(
|
550
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
551
|
-
onOpen: e(
|
552
|
-
}, null, 8, ["onOpen"]),
|
553
|
-
|
554
|
-
|
555
|
-
"onUpdate:modelValue": g[0] || (g[0] = (u) => e(f).keyword = u),
|
556
|
-
placeholder: e(a)("base.placeholder.keyword"),
|
557
|
-
clearable: "",
|
558
|
-
onKeyup: ee(e(s), ["enter"]),
|
559
|
-
onClear: e(s)
|
560
|
-
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(i, {
|
561
|
-
modelValue: e(f).status,
|
562
|
-
"onUpdate:modelValue": g[1] || (g[1] = (u) => e(f).status = u),
|
563
|
-
onChange: e(s)
|
548
|
+
title: t(() => [l(e(W), {
|
549
|
+
loading: e(R),
|
550
|
+
onRefresh: e(i)
|
551
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(te), {
|
552
|
+
onOpen: e(f)
|
553
|
+
}, null, 8, ["onOpen"])]),
|
554
|
+
content: t(() => [l(p, {
|
555
|
+
class: "search-bar"
|
564
556
|
}, {
|
565
|
-
default:
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
557
|
+
default: t(() => [l(q, {
|
558
|
+
class: "basic-search-input",
|
559
|
+
modelValue: e(b).keyword,
|
560
|
+
"onUpdate:modelValue": V[0] || (V[0] = (r) => e(b).keyword = r),
|
561
|
+
placeholder: e(a)("base.placeholder.keyword"),
|
562
|
+
clearable: "",
|
563
|
+
onKeyup: X(e(s), ["enter"]),
|
564
|
+
onClear: e(s)
|
565
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(c, {
|
566
|
+
modelValue: e(b).status,
|
567
|
+
"onUpdate:modelValue": V[1] || (V[1] = (r) => e(b).status = r),
|
568
|
+
onChange: e(s)
|
569
|
+
}, {
|
570
|
+
default: t(() => [(M(), I(B, null, j([0, 1, 2], (r) => l(S, {
|
571
|
+
key: r,
|
572
|
+
label: e(a)(`base.DISABLE_ENABLE.${r}`),
|
573
|
+
value: r
|
574
|
+
}, null, 8, ["label", "value"])), 64))]),
|
575
|
+
_: 1
|
576
|
+
}, 8, ["modelValue", "onChange"]), l(e(oe), {
|
577
|
+
disabled: e(R),
|
578
|
+
onSearch: e(s)
|
579
|
+
}, null, 8, ["disabled", "onSearch"])]),
|
570
580
|
_: 1
|
571
|
-
}
|
572
|
-
onSearch: e(s)
|
573
|
-
}, null, 8, ["onSearch"])]),
|
581
|
+
})]),
|
574
582
|
_: 1
|
575
583
|
})]),
|
576
|
-
default:
|
584
|
+
default: t(() => [l(e(le), {
|
577
585
|
ref_key: "tableRef",
|
578
|
-
ref:
|
586
|
+
ref: w,
|
579
587
|
size: "small",
|
580
|
-
columns:
|
581
|
-
url: e(
|
582
|
-
"search-param": e(
|
588
|
+
columns: v,
|
589
|
+
url: e(H).urls[e(ae)],
|
590
|
+
"search-param": e(b),
|
583
591
|
autoSearch: ""
|
584
|
-
}, null, 8, ["url", "search-param"]), l(
|
592
|
+
}, null, 8, ["url", "search-param"]), l(Re, {
|
585
593
|
ref_key: "infoRef",
|
586
|
-
ref:
|
587
|
-
onRefresh: e(
|
594
|
+
ref: k,
|
595
|
+
onRefresh: e(n)
|
588
596
|
}, null, 8, ["onRefresh"])]),
|
589
597
|
_: 1
|
590
598
|
});
|
591
599
|
};
|
592
600
|
}
|
593
|
-
}),
|
601
|
+
}), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
594
602
|
__proto__: null,
|
595
|
-
default:
|
596
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
603
|
+
default: Ce
|
604
|
+
}, Symbol.toStringTag, { value: "Module" })), se = {
|
597
605
|
tops: "tops",
|
598
606
|
rules: "rules"
|
599
|
-
},
|
607
|
+
}, $ = ve.createAutoApi("menu", se, "id", Object.keys(se), [], ["TOP_MENU_LIST", "MENU_LIST"]), ce = Z("rule", {}, "key");
|
600
608
|
/*! Element Plus Icons Vue v2.3.1 */
|
601
|
-
var
|
609
|
+
var Se = /* @__PURE__ */ D({
|
602
610
|
name: "Key",
|
603
611
|
__name: "key",
|
604
|
-
setup(
|
605
|
-
return (C,
|
612
|
+
setup(U) {
|
613
|
+
return (C, v) => (M(), I("svg", {
|
606
614
|
xmlns: "http://www.w3.org/2000/svg",
|
607
615
|
viewBox: "0 0 1024 1024"
|
608
616
|
}, [
|
609
|
-
|
617
|
+
G("path", {
|
610
618
|
fill: "currentColor",
|
611
619
|
d: "M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"
|
612
620
|
})
|
613
621
|
]));
|
614
622
|
}
|
615
|
-
}),
|
616
|
-
const
|
623
|
+
}), Oe = Se;
|
624
|
+
const qe = /* @__PURE__ */ D({
|
617
625
|
__name: "topMenuSelect",
|
618
626
|
props: {
|
619
627
|
modelValue: {
|
@@ -626,50 +634,50 @@ const $e = /* @__PURE__ */ $({
|
|
626
634
|
}
|
627
635
|
},
|
628
636
|
emits: ["update:modelValue", "change"],
|
629
|
-
setup(
|
637
|
+
setup(U, {
|
630
638
|
emit: C
|
631
639
|
}) {
|
632
|
-
const
|
633
|
-
requesting:
|
634
|
-
} =
|
635
|
-
value:
|
636
|
-
options:
|
640
|
+
const v = C, R = U, {
|
641
|
+
requesting: w
|
642
|
+
} = K($), {
|
643
|
+
value: k,
|
644
|
+
options: b,
|
637
645
|
change: s,
|
638
|
-
refresh:
|
639
|
-
filterOptions:
|
640
|
-
} =
|
646
|
+
refresh: i,
|
647
|
+
filterOptions: n
|
648
|
+
} = de(ue(R, "modelValue"), v, {
|
641
649
|
key: "TOP_MENU_LIST",
|
642
|
-
api:
|
643
|
-
url:
|
650
|
+
api: $,
|
651
|
+
url: $.urls.tops,
|
644
652
|
isArray: !0
|
645
653
|
});
|
646
|
-
return (
|
647
|
-
const
|
648
|
-
return
|
654
|
+
return (f, g) => {
|
655
|
+
const h = d("el-select-v2");
|
656
|
+
return M(), T(h, {
|
649
657
|
class: "w-full",
|
650
|
-
modelValue: e(
|
651
|
-
"onUpdate:modelValue":
|
652
|
-
options: e(
|
653
|
-
multiple:
|
654
|
-
disabled: e(
|
658
|
+
modelValue: e(k),
|
659
|
+
"onUpdate:modelValue": g[1] || (g[1] = (V) => z(k) ? k.value = V : null),
|
660
|
+
options: e(b),
|
661
|
+
multiple: U.multiple,
|
662
|
+
disabled: e(w),
|
655
663
|
placeholder: e(a)("base.placeholder.select"),
|
656
664
|
filterable: "",
|
657
|
-
filterOptions: e(
|
665
|
+
filterOptions: e(n),
|
658
666
|
onChange: e(s)
|
659
667
|
}, {
|
660
|
-
prefix:
|
661
|
-
loading: e(
|
662
|
-
onRefresh:
|
668
|
+
prefix: t(() => [l(e(me), {
|
669
|
+
loading: e(w),
|
670
|
+
onRefresh: g[0] || (g[0] = (V) => e(i)(!0))
|
663
671
|
}, null, 8, ["loading"])]),
|
664
672
|
_: 1
|
665
673
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
666
674
|
};
|
667
675
|
}
|
668
|
-
}),
|
676
|
+
}), Ee = /* @__PURE__ */ D({
|
669
677
|
__name: "info",
|
670
678
|
emits: ["refresh"],
|
671
|
-
setup(
|
672
|
-
const
|
679
|
+
setup(U, { expose: C, emit: v }) {
|
680
|
+
const R = v, w = {
|
673
681
|
id: 0,
|
674
682
|
menu_id: 0,
|
675
683
|
module: "",
|
@@ -690,7 +698,7 @@ const $e = /* @__PURE__ */ $({
|
|
690
698
|
keep_alive: !1,
|
691
699
|
link: !1
|
692
700
|
}
|
693
|
-
}
|
701
|
+
}, k = {
|
694
702
|
sort: [
|
695
703
|
{ required: !0, type: "number", message: a("base.placeholder.input base.sort"), trigger: "blur" }
|
696
704
|
],
|
@@ -709,55 +717,52 @@ const $e = /* @__PURE__ */ $({
|
|
709
717
|
component: [
|
710
718
|
{ required: !0, message: a("base.placeholder.input menu.component"), trigger: "blur" }
|
711
719
|
]
|
712
|
-
}, { modal:
|
713
|
-
|
714
|
-
|
715
|
-
|
720
|
+
}, { modal: b, title: s, form: i, formData: n, requesting: f, executing: g, open: h, modify: V, submit: q, closed: S } = P(
|
721
|
+
R,
|
722
|
+
w,
|
723
|
+
$
|
716
724
|
);
|
717
725
|
return C({
|
718
|
-
openOrModify: (
|
719
|
-
|
726
|
+
openOrModify: (p) => {
|
727
|
+
p ? V({ id: p }) : h();
|
720
728
|
}
|
721
|
-
}), (
|
722
|
-
const
|
723
|
-
return
|
724
|
-
modelValue: e(
|
725
|
-
"onUpdate:modelValue": o[17] || (o[17] = (m) => z(
|
729
|
+
}), (p, o) => {
|
730
|
+
const u = d("el-form-item"), r = d("el-col"), x = d("el-input-number"), A = d("el-row"), _ = d("el-input"), y = d("el-switch"), O = d("el-form");
|
731
|
+
return M(), T(e(Y), {
|
732
|
+
modelValue: e(b),
|
733
|
+
"onUpdate:modelValue": o[17] || (o[17] = (m) => z(b) ? b.value = m : null),
|
726
734
|
title: e(s)(),
|
727
735
|
width: "1000px",
|
728
|
-
executing: e(
|
729
|
-
onClosed: e(
|
730
|
-
onSubmit: e(
|
736
|
+
executing: e(g),
|
737
|
+
onClosed: e(S),
|
738
|
+
onSubmit: e(q)
|
731
739
|
}, {
|
732
|
-
default:
|
733
|
-
l(
|
740
|
+
default: t(() => [
|
741
|
+
l(O, {
|
734
742
|
ref_key: "form",
|
735
|
-
ref:
|
736
|
-
model:
|
743
|
+
ref: i,
|
744
|
+
model: e(n),
|
737
745
|
"label-width": "auto",
|
738
|
-
rules:
|
739
|
-
disabled: e(
|
746
|
+
rules: k,
|
747
|
+
disabled: e(f) || e(g)
|
740
748
|
}, {
|
741
|
-
default:
|
742
|
-
|
743
|
-
[
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
l(u, { span: 12 }, {
|
752
|
-
default: n(() => [
|
753
|
-
l(r, {
|
749
|
+
default: t(() => [
|
750
|
+
l(A, { gutter: 20 }, {
|
751
|
+
default: t(() => [
|
752
|
+
l(r, { span: 12 }, {
|
753
|
+
default: t(() => [
|
754
|
+
l(A, { gutter: 10 }, {
|
755
|
+
default: t(() => [
|
756
|
+
l(r, { span: 12 }, {
|
757
|
+
default: t(() => [
|
758
|
+
l(u, {
|
754
759
|
label: e(a)("base.parent"),
|
755
760
|
prop: "menu_id"
|
756
761
|
}, {
|
757
|
-
default:
|
758
|
-
l(
|
759
|
-
modelValue:
|
760
|
-
"onUpdate:modelValue": o[0] || (o[0] = (m) =>
|
762
|
+
default: t(() => [
|
763
|
+
l(qe, {
|
764
|
+
modelValue: e(n).menu_id,
|
765
|
+
"onUpdate:modelValue": o[0] || (o[0] = (m) => e(n).menu_id = m)
|
761
766
|
}, null, 8, ["modelValue"])
|
762
767
|
]),
|
763
768
|
_: 1
|
@@ -765,17 +770,17 @@ const $e = /* @__PURE__ */ $({
|
|
765
770
|
]),
|
766
771
|
_: 1
|
767
772
|
}),
|
768
|
-
l(
|
769
|
-
default:
|
770
|
-
l(
|
773
|
+
l(r, { span: 12 }, {
|
774
|
+
default: t(() => [
|
775
|
+
l(u, {
|
771
776
|
label: e(a)("base.sort"),
|
772
777
|
prop: "sort"
|
773
778
|
}, {
|
774
|
-
default:
|
775
|
-
l(
|
779
|
+
default: t(() => [
|
780
|
+
l(x, {
|
776
781
|
class: "w-full",
|
777
|
-
modelValue:
|
778
|
-
"onUpdate:modelValue": o[1] || (o[1] = (m) =>
|
782
|
+
modelValue: e(n).sort,
|
783
|
+
"onUpdate:modelValue": o[1] || (o[1] = (m) => e(n).sort = m),
|
779
784
|
min: 0,
|
780
785
|
placeholder: e(a)("base.placeholder.input")
|
781
786
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -788,79 +793,79 @@ const $e = /* @__PURE__ */ $({
|
|
788
793
|
]),
|
789
794
|
_: 1
|
790
795
|
}),
|
791
|
-
l(
|
796
|
+
l(u, {
|
792
797
|
label: e(a)("menu.module"),
|
793
798
|
prop: "module"
|
794
799
|
}, {
|
795
|
-
default:
|
796
|
-
l(
|
797
|
-
modelValue:
|
798
|
-
"onUpdate:modelValue": o[2] || (o[2] = (m) =>
|
800
|
+
default: t(() => [
|
801
|
+
l(_, {
|
802
|
+
modelValue: e(n).module,
|
803
|
+
"onUpdate:modelValue": o[2] || (o[2] = (m) => e(n).module = m),
|
799
804
|
placeholder: e(a)("base.placeholder.input")
|
800
805
|
}, null, 8, ["modelValue", "placeholder"])
|
801
806
|
]),
|
802
807
|
_: 1
|
803
808
|
}, 8, ["label"]),
|
804
|
-
l(
|
809
|
+
l(u, {
|
805
810
|
label: e(a)("base.name"),
|
806
811
|
prop: "name"
|
807
812
|
}, {
|
808
|
-
default:
|
809
|
-
l(
|
810
|
-
modelValue:
|
811
|
-
"onUpdate:modelValue": o[3] || (o[3] = (m) =>
|
813
|
+
default: t(() => [
|
814
|
+
l(_, {
|
815
|
+
modelValue: e(n).name,
|
816
|
+
"onUpdate:modelValue": o[3] || (o[3] = (m) => e(n).name = m),
|
812
817
|
placeholder: e(a)("base.placeholder.input")
|
813
818
|
}, null, 8, ["modelValue", "placeholder"])
|
814
819
|
]),
|
815
820
|
_: 1
|
816
821
|
}, 8, ["label"]),
|
817
|
-
l(
|
822
|
+
l(u, {
|
818
823
|
label: e(a)("base.en_name"),
|
819
824
|
prop: "en_name"
|
820
825
|
}, {
|
821
|
-
default:
|
822
|
-
l(
|
823
|
-
modelValue:
|
824
|
-
"onUpdate:modelValue": o[4] || (o[4] = (m) =>
|
826
|
+
default: t(() => [
|
827
|
+
l(_, {
|
828
|
+
modelValue: e(n).en_name,
|
829
|
+
"onUpdate:modelValue": o[4] || (o[4] = (m) => e(n).en_name = m),
|
825
830
|
placeholder: e(a)("base.placeholder.input")
|
826
831
|
}, null, 8, ["modelValue", "placeholder"])
|
827
832
|
]),
|
828
833
|
_: 1
|
829
834
|
}, 8, ["label"]),
|
830
|
-
l(
|
835
|
+
l(u, {
|
831
836
|
label: e(a)("menu.component"),
|
832
837
|
prop: "component"
|
833
838
|
}, {
|
834
|
-
default:
|
835
|
-
l(
|
836
|
-
modelValue:
|
837
|
-
"onUpdate:modelValue": o[5] || (o[5] = (m) =>
|
839
|
+
default: t(() => [
|
840
|
+
l(_, {
|
841
|
+
modelValue: e(n).component,
|
842
|
+
"onUpdate:modelValue": o[5] || (o[5] = (m) => e(n).component = m),
|
838
843
|
placeholder: e(a)("base.placeholder.input")
|
839
844
|
}, null, 8, ["modelValue", "placeholder"])
|
840
845
|
]),
|
841
846
|
_: 1
|
842
847
|
}, 8, ["label"]),
|
843
|
-
l(
|
848
|
+
l(u, {
|
844
849
|
label: e(a)("base.url"),
|
845
850
|
prop: "url"
|
846
851
|
}, {
|
847
|
-
default:
|
848
|
-
l(
|
849
|
-
modelValue:
|
850
|
-
"onUpdate:modelValue": o[6] || (o[6] = (m) =>
|
852
|
+
default: t(() => [
|
853
|
+
l(_, {
|
854
|
+
modelValue: e(n).url,
|
855
|
+
"onUpdate:modelValue": o[6] || (o[6] = (m) => e(n).url = m),
|
851
856
|
placeholder: e(a)("base.placeholder.input")
|
852
857
|
}, null, 8, ["modelValue", "placeholder"])
|
853
858
|
]),
|
854
859
|
_: 1
|
855
860
|
}, 8, ["label"]),
|
856
|
-
l(
|
861
|
+
l(u, {
|
857
862
|
label: e(a)("base.remark"),
|
858
863
|
prop: "remark"
|
859
864
|
}, {
|
860
|
-
default:
|
861
|
-
l(
|
862
|
-
modelValue:
|
863
|
-
"onUpdate:modelValue": o[7] || (o[7] = (m) =>
|
865
|
+
default: t(() => [
|
866
|
+
l(_, {
|
867
|
+
modelValue: e(n).remark,
|
868
|
+
"onUpdate:modelValue": o[7] || (o[7] = (m) => e(n).remark = m),
|
864
869
|
placeholder: e(a)("base.placeholder.input")
|
865
870
|
}, null, 8, ["modelValue", "placeholder"])
|
866
871
|
]),
|
@@ -869,27 +874,24 @@ const $e = /* @__PURE__ */ $({
|
|
869
874
|
]),
|
870
875
|
_: 1
|
871
876
|
}),
|
872
|
-
l(
|
873
|
-
default:
|
874
|
-
|
875
|
-
[B, !1]
|
876
|
-
]),
|
877
|
-
l(r, {
|
877
|
+
l(r, { span: 12 }, {
|
878
|
+
default: t(() => [
|
879
|
+
l(u, {
|
878
880
|
label: e(a)("base.icon"),
|
879
881
|
prop: "icon"
|
880
882
|
}, {
|
881
|
-
default:
|
882
|
-
l(
|
883
|
-
modelValue:
|
884
|
-
"onUpdate:modelValue": o[8] || (o[8] = (m) =>
|
883
|
+
default: t(() => [
|
884
|
+
l(_, {
|
885
|
+
modelValue: e(n).icon,
|
886
|
+
"onUpdate:modelValue": o[8] || (o[8] = (m) => e(n).icon = m),
|
885
887
|
placeholder: e(a)("base.placeholder.input"),
|
886
888
|
onInput: o[9] || (o[9] = (m) => {
|
887
|
-
|
889
|
+
e(n).meta.icon = m;
|
888
890
|
})
|
889
891
|
}, {
|
890
|
-
prepend:
|
891
|
-
|
892
|
-
class:
|
892
|
+
prepend: t(() => [
|
893
|
+
G("span", {
|
894
|
+
class: be("iconfont " + e(n).icon)
|
893
895
|
}, null, 2)
|
894
896
|
]),
|
895
897
|
_: 1
|
@@ -897,44 +899,44 @@ const $e = /* @__PURE__ */ $({
|
|
897
899
|
]),
|
898
900
|
_: 1
|
899
901
|
}, 8, ["label"]),
|
900
|
-
l(
|
902
|
+
l(u, {
|
901
903
|
label: e(a)("base.title"),
|
902
904
|
prop: "meta.title"
|
903
905
|
}, {
|
904
|
-
default:
|
905
|
-
l(
|
906
|
-
modelValue:
|
907
|
-
"onUpdate:modelValue": o[10] || (o[10] = (m) =>
|
906
|
+
default: t(() => [
|
907
|
+
l(_, {
|
908
|
+
modelValue: e(n).meta.title,
|
909
|
+
"onUpdate:modelValue": o[10] || (o[10] = (m) => e(n).meta.title = m),
|
908
910
|
placeholder: e(a)("base.placeholder.input")
|
909
911
|
}, null, 8, ["modelValue", "placeholder"])
|
910
912
|
]),
|
911
913
|
_: 1
|
912
914
|
}, 8, ["label"]),
|
913
|
-
l(
|
915
|
+
l(u, {
|
914
916
|
label: e(a)("menu.active"),
|
915
917
|
prop: "meta.active"
|
916
918
|
}, {
|
917
|
-
default:
|
918
|
-
l(
|
919
|
-
modelValue:
|
920
|
-
"onUpdate:modelValue": o[11] || (o[11] = (m) =>
|
919
|
+
default: t(() => [
|
920
|
+
l(_, {
|
921
|
+
modelValue: e(n).meta.active,
|
922
|
+
"onUpdate:modelValue": o[11] || (o[11] = (m) => e(n).meta.active = m),
|
921
923
|
placeholder: e(a)("base.placeholder.input")
|
922
924
|
}, null, 8, ["modelValue", "placeholder"])
|
923
925
|
]),
|
924
926
|
_: 1
|
925
927
|
}, 8, ["label"]),
|
926
|
-
l(
|
927
|
-
default:
|
928
|
-
l(
|
929
|
-
default:
|
930
|
-
l(
|
928
|
+
l(A, null, {
|
929
|
+
default: t(() => [
|
930
|
+
l(r, { span: 12 }, {
|
931
|
+
default: t(() => [
|
932
|
+
l(u, {
|
931
933
|
label: e(a)("menu.link"),
|
932
934
|
prop: "meta.link"
|
933
935
|
}, {
|
934
|
-
default:
|
935
|
-
l(
|
936
|
-
modelValue:
|
937
|
-
"onUpdate:modelValue": o[12] || (o[12] = (m) =>
|
936
|
+
default: t(() => [
|
937
|
+
l(y, {
|
938
|
+
modelValue: e(n).meta.link,
|
939
|
+
"onUpdate:modelValue": o[12] || (o[12] = (m) => e(n).meta.link = m)
|
938
940
|
}, null, 8, ["modelValue"])
|
939
941
|
]),
|
940
942
|
_: 1
|
@@ -942,16 +944,16 @@ const $e = /* @__PURE__ */ $({
|
|
942
944
|
]),
|
943
945
|
_: 1
|
944
946
|
}),
|
945
|
-
l(
|
946
|
-
default:
|
947
|
-
l(
|
947
|
+
l(r, { span: 12 }, {
|
948
|
+
default: t(() => [
|
949
|
+
l(u, {
|
948
950
|
label: e(a)("menu.keep_alive"),
|
949
951
|
prop: "meta.keep_alive"
|
950
952
|
}, {
|
951
|
-
default:
|
952
|
-
l(
|
953
|
-
modelValue:
|
954
|
-
"onUpdate:modelValue": o[13] || (o[13] = (m) =>
|
953
|
+
default: t(() => [
|
954
|
+
l(y, {
|
955
|
+
modelValue: e(n).meta.keep_alive,
|
956
|
+
"onUpdate:modelValue": o[13] || (o[13] = (m) => e(n).meta.keep_alive = m)
|
955
957
|
}, null, 8, ["modelValue"])
|
956
958
|
]),
|
957
959
|
_: 1
|
@@ -959,16 +961,16 @@ const $e = /* @__PURE__ */ $({
|
|
959
961
|
]),
|
960
962
|
_: 1
|
961
963
|
}),
|
962
|
-
l(
|
963
|
-
default:
|
964
|
-
l(
|
964
|
+
l(r, { span: 12 }, {
|
965
|
+
default: t(() => [
|
966
|
+
l(u, {
|
965
967
|
label: e(a)("menu.hide"),
|
966
968
|
prop: "meta.hide"
|
967
969
|
}, {
|
968
|
-
default:
|
969
|
-
l(
|
970
|
-
modelValue:
|
971
|
-
"onUpdate:modelValue": o[14] || (o[14] = (m) =>
|
970
|
+
default: t(() => [
|
971
|
+
l(y, {
|
972
|
+
modelValue: e(n).meta.hide,
|
973
|
+
"onUpdate:modelValue": o[14] || (o[14] = (m) => e(n).meta.hide = m)
|
972
974
|
}, null, 8, ["modelValue"])
|
973
975
|
]),
|
974
976
|
_: 1
|
@@ -976,16 +978,16 @@ const $e = /* @__PURE__ */ $({
|
|
976
978
|
]),
|
977
979
|
_: 1
|
978
980
|
}),
|
979
|
-
l(
|
980
|
-
default:
|
981
|
-
l(
|
981
|
+
l(r, { span: 12 }, {
|
982
|
+
default: t(() => [
|
983
|
+
l(u, {
|
982
984
|
label: e(a)("menu.full"),
|
983
985
|
prop: "meta.full"
|
984
986
|
}, {
|
985
|
-
default:
|
986
|
-
l(
|
987
|
-
modelValue:
|
988
|
-
"onUpdate:modelValue": o[15] || (o[15] = (m) =>
|
987
|
+
default: t(() => [
|
988
|
+
l(y, {
|
989
|
+
modelValue: e(n).meta.full,
|
990
|
+
"onUpdate:modelValue": o[15] || (o[15] = (m) => e(n).meta.full = m)
|
989
991
|
}, null, 8, ["modelValue"])
|
990
992
|
]),
|
991
993
|
_: 1
|
@@ -993,16 +995,16 @@ const $e = /* @__PURE__ */ $({
|
|
993
995
|
]),
|
994
996
|
_: 1
|
995
997
|
}),
|
996
|
-
l(
|
997
|
-
default:
|
998
|
-
l(
|
998
|
+
l(r, { span: 12 }, {
|
999
|
+
default: t(() => [
|
1000
|
+
l(u, {
|
999
1001
|
label: e(a)("menu.affix"),
|
1000
1002
|
prop: "meta.affix"
|
1001
1003
|
}, {
|
1002
|
-
default:
|
1003
|
-
l(
|
1004
|
-
modelValue:
|
1005
|
-
"onUpdate:modelValue": o[16] || (o[16] = (m) =>
|
1004
|
+
default: t(() => [
|
1005
|
+
l(y, {
|
1006
|
+
modelValue: e(n).meta.affix,
|
1007
|
+
"onUpdate:modelValue": o[16] || (o[16] = (m) => e(n).meta.affix = m)
|
1006
1008
|
}, null, 8, ["modelValue"])
|
1007
1009
|
]),
|
1008
1010
|
_: 1
|
@@ -1027,7 +1029,7 @@ const $e = /* @__PURE__ */ $({
|
|
1027
1029
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
1028
1030
|
};
|
1029
1031
|
}
|
1030
|
-
}),
|
1032
|
+
}), Le = /* @__PURE__ */ D({
|
1031
1033
|
__name: "menuSelect",
|
1032
1034
|
props: {
|
1033
1035
|
modelValue: {
|
@@ -1040,49 +1042,49 @@ const $e = /* @__PURE__ */ $({
|
|
1040
1042
|
}
|
1041
1043
|
},
|
1042
1044
|
emits: ["update:modelValue", "change"],
|
1043
|
-
setup(
|
1045
|
+
setup(U, {
|
1044
1046
|
emit: C
|
1045
1047
|
}) {
|
1046
|
-
const
|
1047
|
-
requesting:
|
1048
|
-
} =
|
1049
|
-
value:
|
1050
|
-
options:
|
1048
|
+
const v = C, R = U, {
|
1049
|
+
requesting: w
|
1050
|
+
} = K($), {
|
1051
|
+
value: k,
|
1052
|
+
options: b,
|
1051
1053
|
change: s,
|
1052
|
-
refresh:
|
1053
|
-
filterOptions:
|
1054
|
-
} =
|
1054
|
+
refresh: i,
|
1055
|
+
filterOptions: n
|
1056
|
+
} = de(ue(R, "modelValue"), v, {
|
1055
1057
|
key: "MENU_LIST",
|
1056
|
-
api:
|
1058
|
+
api: $,
|
1057
1059
|
isArray: !0
|
1058
1060
|
});
|
1059
|
-
return (
|
1060
|
-
const
|
1061
|
-
return
|
1061
|
+
return (f, g) => {
|
1062
|
+
const h = d("el-select-v2");
|
1063
|
+
return M(), T(h, {
|
1062
1064
|
class: "w-full",
|
1063
|
-
modelValue: e(
|
1064
|
-
"onUpdate:modelValue":
|
1065
|
-
options: e(
|
1066
|
-
multiple:
|
1067
|
-
disabled: e(
|
1065
|
+
modelValue: e(k),
|
1066
|
+
"onUpdate:modelValue": g[1] || (g[1] = (V) => z(k) ? k.value = V : null),
|
1067
|
+
options: e(b),
|
1068
|
+
multiple: U.multiple,
|
1069
|
+
disabled: e(w),
|
1068
1070
|
placeholder: e(a)("base.placeholder.select"),
|
1069
1071
|
filterable: "",
|
1070
|
-
filterOptions: e(
|
1072
|
+
filterOptions: e(n),
|
1071
1073
|
onChange: e(s)
|
1072
1074
|
}, {
|
1073
|
-
prefix:
|
1074
|
-
loading: e(
|
1075
|
-
onRefresh:
|
1075
|
+
prefix: t(() => [l(e(me), {
|
1076
|
+
loading: e(w),
|
1077
|
+
onRefresh: g[0] || (g[0] = (V) => e(i)(!0))
|
1076
1078
|
}, null, 8, ["loading"])]),
|
1077
1079
|
_: 1
|
1078
1080
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
1079
1081
|
};
|
1080
1082
|
}
|
1081
|
-
}),
|
1083
|
+
}), Te = /* @__PURE__ */ D({
|
1082
1084
|
__name: "rule",
|
1083
1085
|
emits: ["refresh"],
|
1084
|
-
setup(
|
1085
|
-
const
|
1086
|
+
setup(U, { expose: C, emit: v }) {
|
1087
|
+
const R = v, w = {
|
1086
1088
|
key: "",
|
1087
1089
|
menu_id: 0,
|
1088
1090
|
sort: 0,
|
@@ -1090,7 +1092,7 @@ const $e = /* @__PURE__ */ $({
|
|
1090
1092
|
en_name: "",
|
1091
1093
|
urls: "",
|
1092
1094
|
remark: ""
|
1093
|
-
}
|
1095
|
+
}, k = {
|
1094
1096
|
menu_id: [
|
1095
1097
|
{ required: !0, type: "number", message: a("base.placeholder.select menu.Menu"), trigger: "blur" }
|
1096
1098
|
],
|
@@ -1106,104 +1108,101 @@ const $e = /* @__PURE__ */ $({
|
|
1106
1108
|
urls: [
|
1107
1109
|
{ required: !0, message: a("base.placeholder.input base.rules"), trigger: "blur" }
|
1108
1110
|
]
|
1109
|
-
}, { modal:
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1111
|
+
}, { modal: b, title: s, form: i, formData: n, requesting: f, executing: g, open: h, modify: V, submit: q, closed: S } = P(
|
1112
|
+
R,
|
1113
|
+
w,
|
1114
|
+
ce
|
1113
1115
|
);
|
1114
1116
|
return C({
|
1115
|
-
openOrModify: (
|
1116
|
-
|
1117
|
+
openOrModify: (p) => {
|
1118
|
+
p ? V({ key: p }) : h();
|
1117
1119
|
}
|
1118
|
-
}), (
|
1119
|
-
const
|
1120
|
-
return
|
1121
|
-
modelValue: e(
|
1122
|
-
"onUpdate:modelValue": o[6] || (o[6] = (
|
1120
|
+
}), (p, o) => {
|
1121
|
+
const u = d("el-form-item"), r = d("el-input-number"), x = d("el-input"), A = d("el-col"), _ = d("el-row"), y = d("el-form");
|
1122
|
+
return M(), T(e(Y), {
|
1123
|
+
modelValue: e(b),
|
1124
|
+
"onUpdate:modelValue": o[6] || (o[6] = (O) => z(b) ? b.value = O : null),
|
1123
1125
|
title: e(s)("base.rules"),
|
1124
1126
|
width: "1000px",
|
1125
|
-
executing: e(
|
1126
|
-
onClosed: e(
|
1127
|
-
onSubmit: e(
|
1127
|
+
executing: e(g),
|
1128
|
+
onClosed: e(S),
|
1129
|
+
onSubmit: e(q)
|
1128
1130
|
}, {
|
1129
|
-
default:
|
1130
|
-
l(
|
1131
|
+
default: t(() => [
|
1132
|
+
l(y, {
|
1131
1133
|
ref_key: "form",
|
1132
|
-
ref:
|
1133
|
-
model:
|
1134
|
+
ref: i,
|
1135
|
+
model: e(n),
|
1134
1136
|
"label-width": "auto",
|
1135
|
-
rules:
|
1136
|
-
disabled: e(
|
1137
|
+
rules: k,
|
1138
|
+
disabled: e(f) || e(g)
|
1137
1139
|
}, {
|
1138
|
-
default:
|
1139
|
-
|
1140
|
-
[
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
l(k, { span: 10 }, {
|
1145
|
-
default: n(() => [
|
1146
|
-
l(r, {
|
1140
|
+
default: t(() => [
|
1141
|
+
l(_, { gutter: 20 }, {
|
1142
|
+
default: t(() => [
|
1143
|
+
l(A, { span: 10 }, {
|
1144
|
+
default: t(() => [
|
1145
|
+
l(u, {
|
1147
1146
|
label: e(a)("menu.Menu"),
|
1148
1147
|
prop: "menu_id"
|
1149
1148
|
}, {
|
1150
|
-
default:
|
1151
|
-
l(
|
1152
|
-
modelValue:
|
1153
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
1149
|
+
default: t(() => [
|
1150
|
+
l(Le, {
|
1151
|
+
modelValue: e(n).menu_id,
|
1152
|
+
"onUpdate:modelValue": o[0] || (o[0] = (O) => e(n).menu_id = O)
|
1154
1153
|
}, null, 8, ["modelValue"])
|
1155
1154
|
]),
|
1156
1155
|
_: 1
|
1157
1156
|
}, 8, ["label"]),
|
1158
|
-
l(
|
1157
|
+
l(u, {
|
1159
1158
|
label: e(a)("base.sort"),
|
1160
1159
|
prop: "sort"
|
1161
1160
|
}, {
|
1162
|
-
default:
|
1163
|
-
l(
|
1161
|
+
default: t(() => [
|
1162
|
+
l(r, {
|
1164
1163
|
class: "w-full",
|
1165
|
-
modelValue:
|
1166
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
1164
|
+
modelValue: e(n).sort,
|
1165
|
+
"onUpdate:modelValue": o[1] || (o[1] = (O) => e(n).sort = O),
|
1167
1166
|
min: 0,
|
1168
1167
|
placeholder: e(a)("base.placeholder.input")
|
1169
1168
|
}, null, 8, ["modelValue", "placeholder"])
|
1170
1169
|
]),
|
1171
1170
|
_: 1
|
1172
1171
|
}, 8, ["label"]),
|
1173
|
-
l(
|
1172
|
+
l(u, {
|
1174
1173
|
label: e(a)("base.name"),
|
1175
1174
|
prop: "name"
|
1176
1175
|
}, {
|
1177
|
-
default:
|
1178
|
-
l(
|
1179
|
-
modelValue:
|
1180
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
1176
|
+
default: t(() => [
|
1177
|
+
l(x, {
|
1178
|
+
modelValue: e(n).name,
|
1179
|
+
"onUpdate:modelValue": o[2] || (o[2] = (O) => e(n).name = O),
|
1181
1180
|
placeholder: e(a)("base.placeholder.input")
|
1182
1181
|
}, null, 8, ["modelValue", "placeholder"])
|
1183
1182
|
]),
|
1184
1183
|
_: 1
|
1185
1184
|
}, 8, ["label"]),
|
1186
|
-
l(
|
1185
|
+
l(u, {
|
1187
1186
|
label: e(a)("base.en_name"),
|
1188
1187
|
prop: "en_name"
|
1189
1188
|
}, {
|
1190
|
-
default:
|
1191
|
-
l(
|
1192
|
-
modelValue:
|
1193
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
1189
|
+
default: t(() => [
|
1190
|
+
l(x, {
|
1191
|
+
modelValue: e(n).en_name,
|
1192
|
+
"onUpdate:modelValue": o[3] || (o[3] = (O) => e(n).en_name = O),
|
1194
1193
|
placeholder: e(a)("base.placeholder.input")
|
1195
1194
|
}, null, 8, ["modelValue", "placeholder"])
|
1196
1195
|
]),
|
1197
1196
|
_: 1
|
1198
1197
|
}, 8, ["label"]),
|
1199
|
-
l(
|
1198
|
+
l(u, {
|
1200
1199
|
label: e(a)("base.remark"),
|
1201
1200
|
prop: "remark"
|
1202
1201
|
}, {
|
1203
|
-
default:
|
1204
|
-
l(
|
1205
|
-
modelValue:
|
1206
|
-
"onUpdate:modelValue": o[4] || (o[4] = (
|
1202
|
+
default: t(() => [
|
1203
|
+
l(x, {
|
1204
|
+
modelValue: e(n).remark,
|
1205
|
+
"onUpdate:modelValue": o[4] || (o[4] = (O) => e(n).remark = O),
|
1207
1206
|
placeholder: e(a)("base.placeholder.input")
|
1208
1207
|
}, null, 8, ["modelValue", "placeholder"])
|
1209
1208
|
]),
|
@@ -1212,16 +1211,16 @@ const $e = /* @__PURE__ */ $({
|
|
1212
1211
|
]),
|
1213
1212
|
_: 1
|
1214
1213
|
}),
|
1215
|
-
l(
|
1216
|
-
default:
|
1217
|
-
l(
|
1214
|
+
l(A, { span: 14 }, {
|
1215
|
+
default: t(() => [
|
1216
|
+
l(u, {
|
1218
1217
|
label: e(a)("base.rules"),
|
1219
1218
|
prop: "urls"
|
1220
1219
|
}, {
|
1221
|
-
default:
|
1222
|
-
l(
|
1223
|
-
modelValue:
|
1224
|
-
"onUpdate:modelValue": o[5] || (o[5] = (
|
1220
|
+
default: t(() => [
|
1221
|
+
l(x, {
|
1222
|
+
modelValue: e(n).urls,
|
1223
|
+
"onUpdate:modelValue": o[5] || (o[5] = (O) => e(n).urls = O),
|
1225
1224
|
type: "textarea",
|
1226
1225
|
rows: 11,
|
1227
1226
|
placeholder: e(a)("base.placeholder.input")
|
@@ -1244,16 +1243,16 @@ const $e = /* @__PURE__ */ $({
|
|
1244
1243
|
};
|
1245
1244
|
}
|
1246
1245
|
});
|
1247
|
-
function
|
1248
|
-
return typeof
|
1246
|
+
function pe(U) {
|
1247
|
+
return typeof U == "function" || Object.prototype.toString.call(U) === "[object Object]" && !fe(U);
|
1249
1248
|
}
|
1250
|
-
const De = /* @__PURE__ */
|
1249
|
+
const De = /* @__PURE__ */ D({
|
1251
1250
|
__name: "index",
|
1252
|
-
setup(
|
1251
|
+
setup(U) {
|
1253
1252
|
const C = {
|
1254
1253
|
keyword: "",
|
1255
1254
|
status: 0
|
1256
|
-
},
|
1255
|
+
}, v = Q(""), R = [
|
1257
1256
|
{
|
1258
1257
|
label: a("base.sort"),
|
1259
1258
|
prop: "sort",
|
@@ -1264,9 +1263,9 @@ const De = /* @__PURE__ */ $({
|
|
1264
1263
|
prop: "icon",
|
1265
1264
|
width: 60,
|
1266
1265
|
render: ({
|
1267
|
-
row:
|
1266
|
+
row: p
|
1268
1267
|
}) => l("span", {
|
1269
|
-
class: "iconfont " +
|
1268
|
+
class: "iconfont " + p.icon,
|
1270
1269
|
style: "font-size: 16px;"
|
1271
1270
|
}, null)
|
1272
1271
|
},
|
@@ -1280,10 +1279,10 @@ const De = /* @__PURE__ */ $({
|
|
1280
1279
|
prop: "parent",
|
1281
1280
|
width: 120,
|
1282
1281
|
render: ({
|
1283
|
-
row:
|
1282
|
+
row: p
|
1284
1283
|
}) => {
|
1285
|
-
var
|
1286
|
-
return l(
|
1284
|
+
var o;
|
1285
|
+
return l(B, null, [(o = p.menu) == null ? void 0 : o.name]);
|
1287
1286
|
}
|
1288
1287
|
},
|
1289
1288
|
{
|
@@ -1308,12 +1307,12 @@ const De = /* @__PURE__ */ $({
|
|
1308
1307
|
width: 0,
|
1309
1308
|
align: "left",
|
1310
1309
|
render: ({
|
1311
|
-
row:
|
1310
|
+
row: p
|
1312
1311
|
}) => l(d("el-space"), null, {
|
1313
1312
|
default: () => {
|
1314
|
-
var
|
1315
|
-
return [(
|
1316
|
-
visible:
|
1313
|
+
var o;
|
1314
|
+
return [(o = p.rules) == null ? void 0 : o.map((u) => l(d("el-popover"), {
|
1315
|
+
visible: v.value === u.key,
|
1317
1316
|
title: a("message.title.warning"),
|
1318
1317
|
placement: "top-end",
|
1319
1318
|
width: 220
|
@@ -1322,27 +1321,27 @@ const De = /* @__PURE__ */ $({
|
|
1322
1321
|
class: "cursor-pointer",
|
1323
1322
|
closable: !0,
|
1324
1323
|
key: u.key,
|
1325
|
-
onClick: () =>
|
1326
|
-
onClose: () =>
|
1324
|
+
onClick: () => S(u.key),
|
1325
|
+
onClose: () => v.value = u.key
|
1327
1326
|
}, {
|
1328
1327
|
default: () => [u.translate]
|
1329
1328
|
}),
|
1330
1329
|
default: () => {
|
1331
|
-
let
|
1332
|
-
return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.delete base.rules")}: ${
|
1330
|
+
let r, x;
|
1331
|
+
return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.delete base.rules")}: ${p.translate}-${u.translate} ?`]), l("div", {
|
1333
1332
|
style: "text-align: right; margin: 0"
|
1334
1333
|
}, [l(d("el-button"), {
|
1335
1334
|
size: "small",
|
1336
1335
|
text: !0,
|
1337
|
-
onClick: () =>
|
1338
|
-
},
|
1339
|
-
default: () => [
|
1336
|
+
onClick: () => v.value = ""
|
1337
|
+
}, pe(r = a("base.cancel")) ? r : {
|
1338
|
+
default: () => [r]
|
1340
1339
|
}), l(d("el-button"), {
|
1341
1340
|
size: "small",
|
1342
1341
|
type: "danger",
|
1343
|
-
onClick: () =>
|
1344
|
-
},
|
1345
|
-
default: () => [
|
1342
|
+
onClick: () => c(u.key)
|
1343
|
+
}, pe(x = a("base.confirm")) ? x : {
|
1344
|
+
default: () => [x]
|
1346
1345
|
})])]);
|
1347
1346
|
}
|
1348
1347
|
}))];
|
@@ -1357,7 +1356,7 @@ const De = /* @__PURE__ */ $({
|
|
1357
1356
|
props: {
|
1358
1357
|
activeValue: 1,
|
1359
1358
|
inactiveValue: 2,
|
1360
|
-
api:
|
1359
|
+
api: $.urls[ie],
|
1361
1360
|
refresh: !0
|
1362
1361
|
}
|
1363
1362
|
},
|
@@ -1367,194 +1366,201 @@ const De = /* @__PURE__ */ $({
|
|
1367
1366
|
width: 60,
|
1368
1367
|
align: "center",
|
1369
1368
|
render: ({
|
1370
|
-
row:
|
1371
|
-
}) => l(
|
1372
|
-
onModify: () =>
|
1369
|
+
row: p
|
1370
|
+
}) => l(ee, {
|
1371
|
+
onModify: () => h(p.id)
|
1373
1372
|
}, null)
|
1374
1373
|
}
|
1375
1374
|
], {
|
1376
|
-
requesting:
|
1377
|
-
} =
|
1378
|
-
tableRef:
|
1379
|
-
infoRef:
|
1375
|
+
requesting: w
|
1376
|
+
} = K($), {
|
1377
|
+
tableRef: k,
|
1378
|
+
infoRef: b,
|
1380
1379
|
keyword: s,
|
1381
|
-
search:
|
1382
|
-
refresh:
|
1383
|
-
reset:
|
1384
|
-
openInfo:
|
1385
|
-
modifyInfo:
|
1386
|
-
} =
|
1387
|
-
infoRef:
|
1388
|
-
openInfo:
|
1389
|
-
modifyInfo:
|
1390
|
-
} =
|
1391
|
-
|
1392
|
-
key:
|
1380
|
+
search: i,
|
1381
|
+
refresh: n,
|
1382
|
+
reset: f,
|
1383
|
+
openInfo: g,
|
1384
|
+
modifyInfo: h
|
1385
|
+
} = F(C), {
|
1386
|
+
infoRef: V,
|
1387
|
+
openInfo: q,
|
1388
|
+
modifyInfo: S
|
1389
|
+
} = F(), c = (p) => {
|
1390
|
+
ce[we]({
|
1391
|
+
key: p
|
1393
1392
|
}).then(() => {
|
1394
|
-
|
1393
|
+
v.value = "", n();
|
1395
1394
|
});
|
1396
1395
|
};
|
1397
|
-
return (
|
1398
|
-
const u = d("el-button"),
|
1399
|
-
return
|
1396
|
+
return (p, o) => {
|
1397
|
+
const u = d("el-button"), r = d("el-input"), x = d("el-radio-button"), A = d("el-radio-group"), _ = d("el-space"), y = d("el-page-header"), O = d("el-card");
|
1398
|
+
return M(), T(O, {
|
1400
1399
|
class: "basic-card flex-full",
|
1401
1400
|
"body-class": "flex-1",
|
1402
|
-
onClick:
|
1401
|
+
onClick: o[2] || (o[2] = () => v.value = "")
|
1403
1402
|
}, {
|
1404
|
-
header:
|
1405
|
-
class: "
|
1403
|
+
header: t(() => [l(y, {
|
1404
|
+
class: "basic-header"
|
1406
1405
|
}, {
|
1407
|
-
|
1408
|
-
loading: e(
|
1409
|
-
onRefresh: e(
|
1410
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
1411
|
-
onOpen: e(
|
1406
|
+
title: t(() => [l(e(W), {
|
1407
|
+
loading: e(w),
|
1408
|
+
onRefresh: e(n)
|
1409
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(te), {
|
1410
|
+
onOpen: e(g)
|
1412
1411
|
}, null, 8, ["onOpen"]), l(u, {
|
1413
1412
|
circle: "",
|
1414
|
-
onClick: e(
|
1415
|
-
icon: e(
|
1416
|
-
}, null, 8, ["onClick", "icon"]),
|
1417
|
-
|
1418
|
-
|
1419
|
-
"onUpdate:modelValue": r[0] || (r[0] = (m) => e(s).keyword = m),
|
1420
|
-
placeholder: e(a)("base.placeholder.keyword"),
|
1421
|
-
clearable: "",
|
1422
|
-
onKeyup: ee(e(_), ["enter"]),
|
1423
|
-
onClear: e(_)
|
1424
|
-
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(U, {
|
1425
|
-
modelValue: e(s).status,
|
1426
|
-
"onUpdate:modelValue": r[1] || (r[1] = (m) => e(s).status = m),
|
1427
|
-
onChange: e(_)
|
1413
|
+
onClick: e(q),
|
1414
|
+
icon: e(Oe)
|
1415
|
+
}, null, 8, ["onClick", "icon"])]),
|
1416
|
+
content: t(() => [l(_, {
|
1417
|
+
class: "search-bar"
|
1428
1418
|
}, {
|
1429
|
-
default:
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1419
|
+
default: t(() => [l(r, {
|
1420
|
+
class: "basic-search-input",
|
1421
|
+
modelValue: e(s).keyword,
|
1422
|
+
"onUpdate:modelValue": o[0] || (o[0] = (m) => e(s).keyword = m),
|
1423
|
+
placeholder: e(a)("base.placeholder.keyword"),
|
1424
|
+
clearable: "",
|
1425
|
+
onKeyup: X(e(i), ["enter"]),
|
1426
|
+
onClear: e(i)
|
1427
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(A, {
|
1428
|
+
modelValue: e(s).status,
|
1429
|
+
"onUpdate:modelValue": o[1] || (o[1] = (m) => e(s).status = m),
|
1430
|
+
onChange: e(i)
|
1431
|
+
}, {
|
1432
|
+
default: t(() => [(M(), I(B, null, j([0, 1, 2], (m) => l(x, {
|
1433
|
+
key: m,
|
1434
|
+
label: e(a)(`base.DISABLE_ENABLE.${m}`),
|
1435
|
+
value: m
|
1436
|
+
}, null, 8, ["label", "value"])), 64))]),
|
1437
|
+
_: 1
|
1438
|
+
}, 8, ["modelValue", "onChange"]), l(e(oe), {
|
1439
|
+
disabled: e(w),
|
1440
|
+
onSearch: e(i)
|
1441
|
+
}, null, 8, ["disabled", "onSearch"])]),
|
1434
1442
|
_: 1
|
1435
|
-
}
|
1436
|
-
onSearch: e(_)
|
1437
|
-
}, null, 8, ["onSearch"])]),
|
1443
|
+
})]),
|
1438
1444
|
_: 1
|
1439
1445
|
})]),
|
1440
|
-
default:
|
1446
|
+
default: t(() => [l(e(le), {
|
1441
1447
|
ref_key: "tableRef",
|
1442
|
-
ref:
|
1448
|
+
ref: k,
|
1443
1449
|
size: "small",
|
1444
|
-
columns:
|
1445
|
-
url: e(
|
1450
|
+
columns: R,
|
1451
|
+
url: e($).urls[e(ae)],
|
1446
1452
|
"search-param": e(s),
|
1447
1453
|
autoSearch: ""
|
1448
|
-
}, null, 8, ["url", "search-param"]), l(
|
1454
|
+
}, null, 8, ["url", "search-param"]), l(Ee, {
|
1449
1455
|
ref_key: "infoRef",
|
1450
|
-
ref:
|
1451
|
-
onRefresh: e(
|
1452
|
-
}, null, 8, ["onRefresh"]), l(
|
1456
|
+
ref: b,
|
1457
|
+
onRefresh: e(f)
|
1458
|
+
}, null, 8, ["onRefresh"]), l(Te, {
|
1453
1459
|
ref_key: "ruleRef",
|
1454
|
-
ref:
|
1455
|
-
onRefresh: e(
|
1460
|
+
ref: V,
|
1461
|
+
onRefresh: e(n)
|
1456
1462
|
}, null, 8, ["onRefresh"])]),
|
1457
1463
|
_: 1
|
1458
1464
|
});
|
1459
1465
|
};
|
1460
1466
|
}
|
1461
|
-
}),
|
1467
|
+
}), $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1462
1468
|
__proto__: null,
|
1463
1469
|
default: De
|
1464
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1470
|
+
}, Symbol.toStringTag, { value: "Module" })), Ie = { class: "rule-check" }, ze = { style: { width: "80px", "line-height": "36px" } }, Ke = /* @__PURE__ */ D({
|
1465
1471
|
__name: "rulesCheck",
|
1466
1472
|
props: {
|
1467
1473
|
modelValue: { type: Array, required: !0 },
|
1468
1474
|
disabled: { type: Boolean, default: !1 }
|
1469
1475
|
},
|
1470
1476
|
emits: ["update:modelValue"],
|
1471
|
-
setup(
|
1472
|
-
const { requesting:
|
1477
|
+
setup(U, { expose: C, emit: v }) {
|
1478
|
+
const { requesting: R } = K($), w = U, k = v, b = Q(!1), s = _e({
|
1473
1479
|
checkAll: !1,
|
1474
1480
|
indeterminate: !1,
|
1475
1481
|
MenuAll: {},
|
1476
1482
|
MenuList: {},
|
1477
1483
|
MenuIndeterminate: {}
|
1478
|
-
}), { options:
|
1479
|
-
|
1480
|
-
|
1481
|
-
{ key: "RULE_CHECK", api:
|
1484
|
+
}), { options: i, refresh: n } = de(
|
1485
|
+
ue(w, "modelValue"),
|
1486
|
+
k,
|
1487
|
+
{ key: "RULE_CHECK", api: $, url: $.urls.rules, isArray: !0 },
|
1482
1488
|
!1
|
1483
1489
|
);
|
1484
|
-
function
|
1485
|
-
|
1486
|
-
var
|
1487
|
-
(
|
1490
|
+
function f() {
|
1491
|
+
i.value.forEach((c) => {
|
1492
|
+
var p;
|
1493
|
+
(p = c.rules) != null && p.length && (s.MenuAll[c.id] = !1, s.MenuIndeterminate[c.id] = !1, s.MenuList[c.id] = []);
|
1488
1494
|
});
|
1489
1495
|
}
|
1490
|
-
function
|
1491
|
-
|
1492
|
-
var
|
1493
|
-
(
|
1494
|
-
}),
|
1496
|
+
function g(c) {
|
1497
|
+
i.value.forEach((p) => {
|
1498
|
+
var o;
|
1499
|
+
(o = p.rules) != null && o.length && (s.MenuList[p.id] = c ? p.rules.map((u) => u.key) : []);
|
1500
|
+
}), V();
|
1495
1501
|
}
|
1496
|
-
function
|
1497
|
-
const
|
1498
|
-
s.MenuList[
|
1502
|
+
function h(c, p) {
|
1503
|
+
const o = i.value.find((u) => u.id === p);
|
1504
|
+
s.MenuList[p] = c && o ? o.rules.map((u) => u.key) : [], V();
|
1499
1505
|
}
|
1500
|
-
function
|
1501
|
-
|
1502
|
-
var u,
|
1503
|
-
const
|
1504
|
-
s.MenuAll[
|
1505
|
-
}), s.checkAll = Object.values(s.MenuAll).every(Boolean), s.indeterminate = !s.checkAll && Object.values(s.MenuList).some((
|
1506
|
+
function V() {
|
1507
|
+
i.value.forEach((c) => {
|
1508
|
+
var u, r;
|
1509
|
+
const p = ((u = c.rules) == null ? void 0 : u.length) || 0, o = ((r = s.MenuList[c.id]) == null ? void 0 : r.length) || 0;
|
1510
|
+
s.MenuAll[c.id] = o === p && p > 0, s.MenuIndeterminate[c.id] = o > 0 && o < p;
|
1511
|
+
}), s.checkAll = Object.values(s.MenuAll).every(Boolean), s.indeterminate = !s.checkAll && Object.values(s.MenuList).some((c) => c.length > 0), k("update:modelValue", Object.values(s.MenuList).flat());
|
1506
1512
|
}
|
1507
|
-
function
|
1508
|
-
s.checkAll = !1, s.indeterminate = !1, s.MenuAll = {}, s.MenuList = {}, s.MenuIndeterminate = {},
|
1513
|
+
function q() {
|
1514
|
+
s.checkAll = !1, s.indeterminate = !1, s.MenuAll = {}, s.MenuList = {}, s.MenuIndeterminate = {}, f(), k("update:modelValue", []), b.value = !1;
|
1509
1515
|
}
|
1510
|
-
function
|
1511
|
-
var
|
1512
|
-
if (Array.isArray(
|
1513
|
-
for (let
|
1514
|
-
if (Array.isArray(
|
1515
|
-
for (let u of
|
1516
|
-
|
1517
|
-
|
1516
|
+
function S(c) {
|
1517
|
+
var p;
|
1518
|
+
if (Array.isArray(i.value) && i.value.length > 0) {
|
1519
|
+
for (let o of i.value)
|
1520
|
+
if (Array.isArray(o.rules) && o.rules.length > 0)
|
1521
|
+
for (let u of o.rules)
|
1522
|
+
c.some((r) => r === u.key) && (s.MenuList[o.id] = (((p = s.MenuList) == null ? void 0 : p[o.id]) || []).concat([u.key]));
|
1523
|
+
V(), b.value = !0;
|
1518
1524
|
}
|
1519
1525
|
}
|
1520
|
-
return
|
1521
|
-
var
|
1522
|
-
(
|
1523
|
-
}),
|
1524
|
-
() =>
|
1525
|
-
(
|
1526
|
-
|
1527
|
-
var
|
1528
|
-
|
1526
|
+
return ge(async () => {
|
1527
|
+
var c;
|
1528
|
+
(c = i.value) != null && c.length || await n(), !b.value && w.modelValue && S(w.modelValue);
|
1529
|
+
}), he(
|
1530
|
+
() => w.modelValue,
|
1531
|
+
(c) => {
|
1532
|
+
Ve(() => {
|
1533
|
+
var p;
|
1534
|
+
b.value || !((p = i.value) != null && p.length) || c && c.length > 0 && S(c);
|
1529
1535
|
});
|
1530
1536
|
},
|
1531
1537
|
{ deep: !0, immediate: !0 }
|
1532
1538
|
), C({
|
1533
|
-
generateOption:
|
1534
|
-
cleanChecked:
|
1535
|
-
}), (
|
1536
|
-
const
|
1537
|
-
return
|
1539
|
+
generateOption: S,
|
1540
|
+
cleanChecked: q
|
1541
|
+
}), (c, p) => {
|
1542
|
+
const o = d("el-checkbox"), u = d("el-space"), r = d("el-text"), x = d("el-divider"), A = d("el-checkbox-group");
|
1543
|
+
return M(), I("div", Ie, [
|
1538
1544
|
l(u, { style: { "margin-bottom": "6px" } }, {
|
1539
|
-
default:
|
1540
|
-
l(
|
1545
|
+
default: t(() => [
|
1546
|
+
l(o, {
|
1541
1547
|
"model-value": s.checkAll,
|
1542
1548
|
indeterminate: s.indeterminate,
|
1543
1549
|
id: "all",
|
1544
|
-
disabled:
|
1545
|
-
onChange:
|
1550
|
+
disabled: U.disabled,
|
1551
|
+
onChange: g
|
1546
1552
|
}, {
|
1547
|
-
default:
|
1548
|
-
|
1553
|
+
default: t(() => p[1] || (p[1] = [
|
1554
|
+
G("span", null, "全选", -1)
|
1549
1555
|
])),
|
1550
1556
|
_: 1,
|
1551
1557
|
__: [1]
|
1552
1558
|
}, 8, ["model-value", "indeterminate", "disabled"]),
|
1553
|
-
l(e(
|
1554
|
-
loading: e(
|
1559
|
+
l(e(W), {
|
1560
|
+
loading: e(R),
|
1555
1561
|
text: "",
|
1556
1562
|
size: "small",
|
1557
|
-
onRefresh:
|
1563
|
+
onRefresh: p[0] || (p[0] = (_) => e(n)(!0))
|
1558
1564
|
}, null, 8, ["loading"])
|
1559
1565
|
]),
|
1560
1566
|
_: 1
|
@@ -1563,54 +1569,54 @@ const De = /* @__PURE__ */ $({
|
|
1563
1569
|
direction: "vertical",
|
1564
1570
|
alignment: "start"
|
1565
1571
|
}, {
|
1566
|
-
default:
|
1567
|
-
(
|
1568
|
-
key:
|
1572
|
+
default: t(() => [
|
1573
|
+
(M(!0), I(B, null, j(e(i), (_) => (M(), I("div", {
|
1574
|
+
key: _.id
|
1569
1575
|
}, [
|
1570
1576
|
l(u, {
|
1571
1577
|
direction: "horizontal",
|
1572
1578
|
size: 2
|
1573
1579
|
}, {
|
1574
|
-
default:
|
1575
|
-
l(
|
1580
|
+
default: t(() => [
|
1581
|
+
l(o, {
|
1576
1582
|
style: { "min-width": "150px" },
|
1577
|
-
"model-value": s.MenuAll[
|
1578
|
-
disabled:
|
1579
|
-
indeterminate: s.MenuIndeterminate[
|
1580
|
-
onChange: (
|
1583
|
+
"model-value": s.MenuAll[_.id],
|
1584
|
+
disabled: U.disabled || !_.rules || _.rules.length <= 0,
|
1585
|
+
indeterminate: s.MenuIndeterminate[_.id],
|
1586
|
+
onChange: (y) => h(y, _.id)
|
1581
1587
|
}, {
|
1582
|
-
default:
|
1583
|
-
l(
|
1584
|
-
default:
|
1585
|
-
|
1588
|
+
default: t(() => [
|
1589
|
+
l(r, { style: { "font-size": "15px" } }, {
|
1590
|
+
default: t(() => [
|
1591
|
+
N(ne(_.translate), 1)
|
1586
1592
|
]),
|
1587
1593
|
_: 2
|
1588
1594
|
}, 1024)
|
1589
1595
|
]),
|
1590
1596
|
_: 2
|
1591
1597
|
}, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
|
1592
|
-
l(
|
1593
|
-
|
1598
|
+
l(x, { direction: "vertical" }),
|
1599
|
+
_.rules ? (M(), T(A, {
|
1594
1600
|
key: 0,
|
1595
|
-
modelValue: s.MenuList[
|
1596
|
-
"onUpdate:modelValue": (
|
1597
|
-
disabled:
|
1601
|
+
modelValue: s.MenuList[_.id],
|
1602
|
+
"onUpdate:modelValue": (y) => s.MenuList[_.id] = y,
|
1603
|
+
disabled: U.disabled,
|
1598
1604
|
style: { margin: "auto" },
|
1599
|
-
onChange:
|
1605
|
+
onChange: V
|
1600
1606
|
}, {
|
1601
|
-
default:
|
1602
|
-
(
|
1603
|
-
key:
|
1604
|
-
value:
|
1607
|
+
default: t(() => [
|
1608
|
+
(M(!0), I(B, null, j(_.rules, (y) => (M(), T(o, {
|
1609
|
+
key: y.key,
|
1610
|
+
value: y.key
|
1605
1611
|
}, {
|
1606
|
-
default:
|
1607
|
-
|
1612
|
+
default: t(() => [
|
1613
|
+
G("div", ze, ne(y.translate), 1)
|
1608
1614
|
]),
|
1609
1615
|
_: 2
|
1610
1616
|
}, 1032, ["value"]))), 128))
|
1611
1617
|
]),
|
1612
1618
|
_: 2
|
1613
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
1619
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : ye("", !0)
|
1614
1620
|
]),
|
1615
1621
|
_: 2
|
1616
1622
|
}, 1024)
|
@@ -1621,11 +1627,11 @@ const De = /* @__PURE__ */ $({
|
|
1621
1627
|
]);
|
1622
1628
|
};
|
1623
1629
|
}
|
1624
|
-
}),
|
1630
|
+
}), Ne = /* @__PURE__ */ D({
|
1625
1631
|
__name: "info",
|
1626
1632
|
emits: ["refresh"],
|
1627
|
-
setup(
|
1628
|
-
const
|
1633
|
+
setup(U, { expose: C, emit: v }) {
|
1634
|
+
const R = v, w = Q(), k = {
|
1629
1635
|
key: "",
|
1630
1636
|
module: "",
|
1631
1637
|
sort: 0,
|
@@ -1633,61 +1639,58 @@ const De = /* @__PURE__ */ $({
|
|
1633
1639
|
en_name: "",
|
1634
1640
|
remark: "",
|
1635
1641
|
rules: []
|
1636
|
-
}
|
1642
|
+
}, b = {
|
1637
1643
|
name: [
|
1638
1644
|
{ required: !0, message: a("base.placeholder.input base.name"), trigger: "blur" }
|
1639
1645
|
],
|
1640
1646
|
en_name: [
|
1641
1647
|
{ required: !0, message: a("base.placeholder.input base.en_name"), trigger: "blur" }
|
1642
1648
|
]
|
1643
|
-
}, { modal: s, title:
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
),
|
1648
|
-
|
1649
|
+
}, { modal: s, title: i, form: n, formData: f, requesting: g, executing: h, open: V, modify: q, submit: S, closed: c } = P(
|
1650
|
+
R,
|
1651
|
+
k,
|
1652
|
+
J
|
1653
|
+
), p = (u) => {
|
1654
|
+
u ? q({ key: u }) : V();
|
1649
1655
|
}, o = () => {
|
1650
|
-
var
|
1651
|
-
(
|
1656
|
+
var u;
|
1657
|
+
(u = w.value) == null || u.cleanChecked(), c();
|
1652
1658
|
};
|
1653
1659
|
return C({
|
1654
|
-
openOrModify:
|
1655
|
-
}), (
|
1656
|
-
const
|
1657
|
-
return
|
1660
|
+
openOrModify: p
|
1661
|
+
}), (u, r) => {
|
1662
|
+
const x = d("el-input"), A = d("el-form-item"), _ = d("el-col"), y = d("el-input-number"), O = d("el-row"), m = d("el-form");
|
1663
|
+
return M(), T(e(Y), {
|
1658
1664
|
modelValue: e(s),
|
1659
|
-
"onUpdate:modelValue":
|
1660
|
-
title: e(
|
1665
|
+
"onUpdate:modelValue": r[6] || (r[6] = (L) => z(s) ? s.value = L : null),
|
1666
|
+
title: e(i)(),
|
1661
1667
|
width: "1000px",
|
1662
1668
|
executing: e(h),
|
1663
1669
|
onClosed: o,
|
1664
|
-
onSubmit: e(
|
1670
|
+
onSubmit: e(S)
|
1665
1671
|
}, {
|
1666
|
-
default:
|
1672
|
+
default: t(() => [
|
1667
1673
|
l(m, {
|
1668
1674
|
ref_key: "form",
|
1669
|
-
ref:
|
1670
|
-
model:
|
1675
|
+
ref: n,
|
1676
|
+
model: e(f),
|
1671
1677
|
"label-width": "auto",
|
1672
|
-
rules:
|
1673
|
-
disabled: e(
|
1678
|
+
rules: b,
|
1679
|
+
disabled: e(g) || e(h)
|
1674
1680
|
}, {
|
1675
|
-
default:
|
1676
|
-
|
1677
|
-
[
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
l(U, { span: 12 }, {
|
1682
|
-
default: n(() => [
|
1683
|
-
l(p, {
|
1681
|
+
default: t(() => [
|
1682
|
+
l(O, { gutter: 20 }, {
|
1683
|
+
default: t(() => [
|
1684
|
+
l(_, { span: 12 }, {
|
1685
|
+
default: t(() => [
|
1686
|
+
l(A, {
|
1684
1687
|
label: e(a)("base.module"),
|
1685
1688
|
prop: "module"
|
1686
1689
|
}, {
|
1687
|
-
default:
|
1688
|
-
l(
|
1689
|
-
modelValue:
|
1690
|
-
"onUpdate:modelValue":
|
1690
|
+
default: t(() => [
|
1691
|
+
l(x, {
|
1692
|
+
modelValue: e(f).module,
|
1693
|
+
"onUpdate:modelValue": r[0] || (r[0] = (L) => e(f).module = L),
|
1691
1694
|
placeholder: e(a)("base.placeholder.input")
|
1692
1695
|
}, null, 8, ["modelValue", "placeholder"])
|
1693
1696
|
]),
|
@@ -1696,17 +1699,17 @@ const De = /* @__PURE__ */ $({
|
|
1696
1699
|
]),
|
1697
1700
|
_: 1
|
1698
1701
|
}),
|
1699
|
-
l(
|
1700
|
-
default:
|
1701
|
-
l(
|
1702
|
+
l(_, { span: 12 }, {
|
1703
|
+
default: t(() => [
|
1704
|
+
l(A, {
|
1702
1705
|
label: e(a)("base.sort"),
|
1703
1706
|
prop: "sort"
|
1704
1707
|
}, {
|
1705
|
-
default:
|
1706
|
-
l(
|
1708
|
+
default: t(() => [
|
1709
|
+
l(y, {
|
1707
1710
|
class: "w-full",
|
1708
|
-
modelValue:
|
1709
|
-
"onUpdate:modelValue":
|
1711
|
+
modelValue: e(f).sort,
|
1712
|
+
"onUpdate:modelValue": r[1] || (r[1] = (L) => e(f).sort = L),
|
1710
1713
|
min: 0,
|
1711
1714
|
placeholder: e(a)("base.placeholder.input")
|
1712
1715
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -1719,56 +1722,56 @@ const De = /* @__PURE__ */ $({
|
|
1719
1722
|
]),
|
1720
1723
|
_: 1
|
1721
1724
|
}),
|
1722
|
-
l(
|
1725
|
+
l(A, {
|
1723
1726
|
label: e(a)("base.name"),
|
1724
1727
|
prop: "name"
|
1725
1728
|
}, {
|
1726
|
-
default:
|
1727
|
-
l(
|
1728
|
-
modelValue:
|
1729
|
-
"onUpdate:modelValue":
|
1729
|
+
default: t(() => [
|
1730
|
+
l(x, {
|
1731
|
+
modelValue: e(f).name,
|
1732
|
+
"onUpdate:modelValue": r[2] || (r[2] = (L) => e(f).name = L),
|
1730
1733
|
placeholder: e(a)("base.placeholder.input")
|
1731
1734
|
}, null, 8, ["modelValue", "placeholder"])
|
1732
1735
|
]),
|
1733
1736
|
_: 1
|
1734
1737
|
}, 8, ["label"]),
|
1735
|
-
l(
|
1738
|
+
l(A, {
|
1736
1739
|
label: e(a)("base.en_name"),
|
1737
1740
|
prop: "en_name"
|
1738
1741
|
}, {
|
1739
|
-
default:
|
1740
|
-
l(
|
1741
|
-
modelValue:
|
1742
|
-
"onUpdate:modelValue":
|
1742
|
+
default: t(() => [
|
1743
|
+
l(x, {
|
1744
|
+
modelValue: e(f).en_name,
|
1745
|
+
"onUpdate:modelValue": r[3] || (r[3] = (L) => e(f).en_name = L),
|
1743
1746
|
placeholder: e(a)("base.placeholder.input")
|
1744
1747
|
}, null, 8, ["modelValue", "placeholder"])
|
1745
1748
|
]),
|
1746
1749
|
_: 1
|
1747
1750
|
}, 8, ["label"]),
|
1748
|
-
l(
|
1751
|
+
l(A, {
|
1749
1752
|
label: e(a)("base.remark"),
|
1750
1753
|
prop: "remark"
|
1751
1754
|
}, {
|
1752
|
-
default:
|
1753
|
-
l(
|
1754
|
-
modelValue:
|
1755
|
-
"onUpdate:modelValue":
|
1755
|
+
default: t(() => [
|
1756
|
+
l(x, {
|
1757
|
+
modelValue: e(f).remark,
|
1758
|
+
"onUpdate:modelValue": r[4] || (r[4] = (L) => e(f).remark = L),
|
1756
1759
|
placeholder: e(a)("base.placeholder.input")
|
1757
1760
|
}, null, 8, ["modelValue", "placeholder"])
|
1758
1761
|
]),
|
1759
1762
|
_: 1
|
1760
1763
|
}, 8, ["label"]),
|
1761
|
-
l(
|
1764
|
+
l(A, {
|
1762
1765
|
label: e(a)("base.rules"),
|
1763
1766
|
prop: "rules"
|
1764
1767
|
}, {
|
1765
|
-
default:
|
1766
|
-
l(
|
1768
|
+
default: t(() => [
|
1769
|
+
l(Ke, {
|
1767
1770
|
ref_key: "rulesCheck",
|
1768
|
-
ref:
|
1769
|
-
modelValue:
|
1770
|
-
"onUpdate:modelValue":
|
1771
|
-
disabled: e(
|
1771
|
+
ref: w,
|
1772
|
+
modelValue: e(f).rules,
|
1773
|
+
"onUpdate:modelValue": r[5] || (r[5] = (L) => e(f).rules = L),
|
1774
|
+
disabled: e(g) || e(h)
|
1772
1775
|
}, null, 8, ["modelValue", "disabled"])
|
1773
1776
|
]),
|
1774
1777
|
_: 1
|
@@ -1781,12 +1784,12 @@ const De = /* @__PURE__ */ $({
|
|
1781
1784
|
}, 8, ["modelValue", "title", "executing", "onSubmit"]);
|
1782
1785
|
};
|
1783
1786
|
}
|
1784
|
-
}),
|
1787
|
+
}), Be = /* @__PURE__ */ D({
|
1785
1788
|
__name: "index",
|
1786
|
-
setup(
|
1789
|
+
setup(U) {
|
1787
1790
|
const C = {
|
1788
1791
|
keyword: ""
|
1789
|
-
},
|
1792
|
+
}, v = [
|
1790
1793
|
{
|
1791
1794
|
label: a("base.sort"),
|
1792
1795
|
prop: "sort",
|
@@ -1819,79 +1822,86 @@ const De = /* @__PURE__ */ $({
|
|
1819
1822
|
width: 60,
|
1820
1823
|
align: "center",
|
1821
1824
|
render: ({
|
1822
|
-
row:
|
1823
|
-
}) => l(
|
1824
|
-
onModify: () => h
|
1825
|
+
row: h
|
1826
|
+
}) => l(ee, {
|
1827
|
+
onModify: () => g(h.key)
|
1825
1828
|
}, null)
|
1826
1829
|
}
|
1827
1830
|
], {
|
1828
|
-
requesting:
|
1829
|
-
} =
|
1830
|
-
tableRef:
|
1831
|
-
infoRef:
|
1832
|
-
keyword:
|
1831
|
+
requesting: R
|
1832
|
+
} = K(J), {
|
1833
|
+
tableRef: w,
|
1834
|
+
infoRef: k,
|
1835
|
+
keyword: b,
|
1833
1836
|
search: s,
|
1834
|
-
refresh:
|
1835
|
-
reset:
|
1836
|
-
openInfo:
|
1837
|
-
modifyInfo:
|
1838
|
-
} =
|
1839
|
-
return (
|
1840
|
-
const
|
1841
|
-
return
|
1837
|
+
refresh: i,
|
1838
|
+
reset: n,
|
1839
|
+
openInfo: f,
|
1840
|
+
modifyInfo: g
|
1841
|
+
} = F(C);
|
1842
|
+
return (h, V) => {
|
1843
|
+
const q = d("el-input"), S = d("el-space"), c = d("el-page-header"), p = d("el-card");
|
1844
|
+
return M(), T(p, {
|
1842
1845
|
class: "basic-card flex-full",
|
1843
1846
|
"body-class": "flex-1"
|
1844
1847
|
}, {
|
1845
|
-
header:
|
1846
|
-
class: "
|
1848
|
+
header: t(() => [l(c, {
|
1849
|
+
class: "basic-header"
|
1847
1850
|
}, {
|
1848
|
-
|
1849
|
-
loading: e(
|
1850
|
-
onRefresh: e(
|
1851
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
1852
|
-
onOpen: e(
|
1853
|
-
}, null, 8, ["onOpen"]),
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1851
|
+
title: t(() => [l(e(W), {
|
1852
|
+
loading: e(R),
|
1853
|
+
onRefresh: e(i)
|
1854
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(te), {
|
1855
|
+
onOpen: e(f)
|
1856
|
+
}, null, 8, ["onOpen"])]),
|
1857
|
+
content: t(() => [l(S, {
|
1858
|
+
class: "search-bar"
|
1859
|
+
}, {
|
1860
|
+
default: t(() => [l(q, {
|
1861
|
+
class: "basic-search-input",
|
1862
|
+
modelValue: e(b).keyword,
|
1863
|
+
"onUpdate:modelValue": V[0] || (V[0] = (o) => e(b).keyword = o),
|
1864
|
+
placeholder: e(a)("base.placeholder.keyword"),
|
1865
|
+
clearable: "",
|
1866
|
+
onKeyup: X(e(s), ["enter"]),
|
1867
|
+
onClear: e(s)
|
1868
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(e(oe), {
|
1869
|
+
disabled: e(R),
|
1870
|
+
onSearch: e(s)
|
1871
|
+
}, null, 8, ["disabled", "onSearch"])]),
|
1872
|
+
_: 1
|
1873
|
+
})]),
|
1864
1874
|
_: 1
|
1865
1875
|
})]),
|
1866
|
-
default:
|
1876
|
+
default: t(() => [l(e(le), {
|
1867
1877
|
ref_key: "tableRef",
|
1868
|
-
ref:
|
1878
|
+
ref: w,
|
1869
1879
|
size: "small",
|
1870
|
-
columns:
|
1871
|
-
url: e(
|
1872
|
-
"search-param": e(
|
1880
|
+
columns: v,
|
1881
|
+
url: e(J).urls[e(ae)],
|
1882
|
+
"search-param": e(b),
|
1873
1883
|
autoSearch: ""
|
1874
|
-
}, null, 8, ["url", "search-param"]), l(
|
1884
|
+
}, null, 8, ["url", "search-param"]), l(Ne, {
|
1875
1885
|
ref_key: "infoRef",
|
1876
|
-
ref:
|
1877
|
-
onRefresh: e(
|
1886
|
+
ref: k,
|
1887
|
+
onRefresh: e(n)
|
1878
1888
|
}, null, 8, ["onRefresh"])]),
|
1879
1889
|
_: 1
|
1880
1890
|
});
|
1881
1891
|
};
|
1882
1892
|
}
|
1883
|
-
}),
|
1893
|
+
}), je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1884
1894
|
__proto__: null,
|
1885
|
-
default:
|
1886
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1887
|
-
install: (
|
1888
|
-
Reflect.ownKeys(
|
1895
|
+
default: Be
|
1896
|
+
}, Symbol.toStringTag, { value: "Module" })), Ye = {
|
1897
|
+
install: (U, C) => {
|
1898
|
+
Reflect.ownKeys(U._context.provides).some((v) => String(v) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app."), console.log(Reflect.ownKeys(U._context.provides));
|
1889
1899
|
},
|
1890
1900
|
version: "__VERSION__"
|
1891
|
-
},
|
1901
|
+
}, We = /* @__PURE__ */ Object.assign({ "./views/admin/index.vue": Ae, "./views/language/index.vue": Me, "./views/menu/index.vue": $e, "./views/role/index.vue": je });
|
1892
1902
|
export {
|
1893
1903
|
De as MenusPage,
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1904
|
+
Be as RolesPage,
|
1905
|
+
We as basicModules,
|
1906
|
+
Ye as default
|
1897
1907
|
};
|