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