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