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