auto-vue-basic 0.0.42 → 0.0.44
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/README.md +1 -1
- package/dist/auto-vue-basic.es.js +988 -782
- package/dist/auto-vue-basic.umd.js +1 -1
- package/dist/index-BMn8mAns.js +4 -0
- package/dist/index-CJMTIvHk.js +4 -0
- package/dist/index-SHsqnbNG.js +4 -0
- package/dist/index.css +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/views/index.d.ts +3 -0
- package/dist/version.js +1 -1
- package/package.json +14 -4
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { createAutoApi as
|
3
|
-
const
|
1
|
+
import { defineComponent as D, ref as ee, onBeforeMount as Ve, resolveComponent as s, createBlock as q, openBlock as E, unref as e, isRef as N, withCtx as o, createVNode as l, createTextVNode as I, createElementBlock as K, Fragment as z, renderList as W, toDisplayString as X, withKeys as le, createElementVNode as Y, toRef as se, normalizeClass as _e, isVNode as ye, reactive as ke, onMounted as ve, watch as we, nextTick as xe, createCommentVNode as Re } from "vue";
|
2
|
+
import { createAutoApi as ae, useForm as G, Translate as a, RulesUtils as Ae, FormDialog as Q, BasicAvatar as Ue, ModifyButton as oe, useCrudPage as P, useLoading as F, ProTable as te, DEFAULT_PAGE_KEY as ne, SearchButton as j, RefreshButton as B, OpenButton as re, DEFAULT_STATUS_KEY as be, AutoApiUtils as fe, useSelect as de, InlineRefreshButton as ge, DEFAULT_REMOVE_KEY as Me, TimeUtils as T, ProTableList as pe, REQUEST_LOG_URL as Le, ERROR_LOG_URL as Ee, SQL_LOG_URL as Se } from "auto-vue-manual";
|
3
|
+
const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__ */ D({
|
4
4
|
__name: "AdminFormModal",
|
5
5
|
emits: ["refresh"],
|
6
|
-
setup(x, { expose:
|
7
|
-
const
|
6
|
+
setup(x, { expose: w, emit: y }) {
|
7
|
+
const k = y, h = {
|
8
8
|
key: "",
|
9
9
|
username: "",
|
10
10
|
password: "",
|
@@ -13,18 +13,7 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
|
|
13
13
|
language: "zh-CN",
|
14
14
|
remark: "",
|
15
15
|
roles: []
|
16
|
-
}, {
|
17
|
-
modal: V,
|
18
|
-
title: _,
|
19
|
-
form: s,
|
20
|
-
formData: p,
|
21
|
-
requesting: r,
|
22
|
-
executing: g,
|
23
|
-
open: m,
|
24
|
-
modify: i,
|
25
|
-
submit: U,
|
26
|
-
closed: C
|
27
|
-
} = I(M, v, ne), E = {
|
16
|
+
}, { modal: _, title: m, form: d, formData: p, requesting: n, executing: b, open: c, modify: i, submit: R, closed: v } = G(k, h, ue), C = {
|
28
17
|
username: [
|
29
18
|
{
|
30
19
|
required: !0,
|
@@ -35,7 +24,7 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
|
|
35
24
|
phone: [
|
36
25
|
{
|
37
26
|
required: !0,
|
38
|
-
validator:
|
27
|
+
validator: Ae.phoneRule,
|
39
28
|
message: a("base.placeholder.input base.phone"),
|
40
29
|
trigger: "blur"
|
41
30
|
}
|
@@ -69,113 +58,113 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
|
|
69
58
|
trigger: "change"
|
70
59
|
}
|
71
60
|
]
|
72
|
-
},
|
73
|
-
const u = await
|
74
|
-
|
61
|
+
}, f = ee([]), t = async () => {
|
62
|
+
const u = await Z.list();
|
63
|
+
f.value = Array.isArray(u == null ? void 0 : u.data) ? u.data : [];
|
75
64
|
};
|
76
|
-
return
|
77
|
-
await
|
78
|
-
}),
|
79
|
-
open:
|
65
|
+
return Ve(async () => {
|
66
|
+
await t();
|
67
|
+
}), w({
|
68
|
+
open: c,
|
80
69
|
modify: i
|
81
|
-
}), (u,
|
82
|
-
const
|
83
|
-
return
|
84
|
-
modelValue: e(
|
85
|
-
"onUpdate:modelValue":
|
86
|
-
title: e(
|
70
|
+
}), (u, r) => {
|
71
|
+
const A = s("el-input"), U = s("el-form-item"), S = s("el-radio-button"), V = s("el-radio-group"), M = s("el-checkbox"), g = s("el-checkbox-group"), L = s("el-form");
|
72
|
+
return E(), q(e(Q), {
|
73
|
+
modelValue: e(_),
|
74
|
+
"onUpdate:modelValue": r[7] || (r[7] = (O) => N(_) ? _.value = O : null),
|
75
|
+
title: e(m)(),
|
87
76
|
width: "600px",
|
88
|
-
executing: e(
|
89
|
-
onClosed: e(
|
90
|
-
onSubmit: e(
|
77
|
+
executing: e(b),
|
78
|
+
onClosed: e(v),
|
79
|
+
onSubmit: e(R)
|
91
80
|
}, {
|
92
|
-
default:
|
93
|
-
l(
|
81
|
+
default: o(() => [
|
82
|
+
l(L, {
|
94
83
|
ref_key: "form",
|
95
|
-
ref:
|
84
|
+
ref: d,
|
96
85
|
model: e(p),
|
97
86
|
"label-width": "auto",
|
98
|
-
rules:
|
99
|
-
disabled: e(
|
87
|
+
rules: C,
|
88
|
+
disabled: e(n) || e(b)
|
100
89
|
}, {
|
101
|
-
default:
|
102
|
-
l(
|
90
|
+
default: o(() => [
|
91
|
+
l(U, {
|
103
92
|
label: e(a)("base.username"),
|
104
93
|
prop: "username"
|
105
94
|
}, {
|
106
|
-
default:
|
107
|
-
l(
|
95
|
+
default: o(() => [
|
96
|
+
l(A, {
|
108
97
|
modelValue: e(p).username,
|
109
|
-
"onUpdate:modelValue":
|
98
|
+
"onUpdate:modelValue": r[0] || (r[0] = (O) => e(p).username = O),
|
110
99
|
placeholder: e(a)("base.placeholder.input"),
|
111
100
|
autocomplete: "off"
|
112
101
|
}, null, 8, ["modelValue", "placeholder"])
|
113
102
|
]),
|
114
103
|
_: 1
|
115
104
|
}, 8, ["label"]),
|
116
|
-
l(
|
105
|
+
l(U, {
|
117
106
|
label: e(a)("base.phone"),
|
118
107
|
prop: "phone"
|
119
108
|
}, {
|
120
|
-
default:
|
121
|
-
l(
|
109
|
+
default: o(() => [
|
110
|
+
l(A, {
|
122
111
|
modelValue: e(p).phone,
|
123
|
-
"onUpdate:modelValue":
|
112
|
+
"onUpdate:modelValue": r[1] || (r[1] = (O) => e(p).phone = O),
|
124
113
|
placeholder: e(a)("base.placeholder.input"),
|
125
114
|
autocomplete: "off"
|
126
115
|
}, null, 8, ["modelValue", "placeholder"])
|
127
116
|
]),
|
128
117
|
_: 1
|
129
118
|
}, 8, ["label"]),
|
130
|
-
l(
|
119
|
+
l(U, {
|
131
120
|
label: e(a)("base.password"),
|
132
121
|
prop: "password",
|
133
122
|
required: !e(p).key
|
134
123
|
}, {
|
135
|
-
default:
|
136
|
-
l(
|
124
|
+
default: o(() => [
|
125
|
+
l(A, {
|
137
126
|
modelValue: e(p).password,
|
138
|
-
"onUpdate:modelValue":
|
127
|
+
"onUpdate:modelValue": r[2] || (r[2] = (O) => e(p).password = O),
|
139
128
|
placeholder: e(a)("base.placeholder.input"),
|
140
129
|
autocomplete: "off"
|
141
130
|
}, null, 8, ["modelValue", "placeholder"])
|
142
131
|
]),
|
143
132
|
_: 1
|
144
133
|
}, 8, ["label", "required"]),
|
145
|
-
l(
|
134
|
+
l(U, {
|
146
135
|
label: e(a)("base.email"),
|
147
136
|
prop: "email"
|
148
137
|
}, {
|
149
|
-
default:
|
150
|
-
l(
|
138
|
+
default: o(() => [
|
139
|
+
l(A, {
|
151
140
|
modelValue: e(p).email,
|
152
|
-
"onUpdate:modelValue":
|
141
|
+
"onUpdate:modelValue": r[3] || (r[3] = (O) => e(p).email = O),
|
153
142
|
placeholder: e(a)("base.placeholder.input"),
|
154
143
|
autocomplete: "off"
|
155
144
|
}, null, 8, ["modelValue", "placeholder"])
|
156
145
|
]),
|
157
146
|
_: 1
|
158
147
|
}, 8, ["label"]),
|
159
|
-
l(
|
148
|
+
l(U, {
|
160
149
|
label: e(a)("base.language"),
|
161
150
|
prop: "language"
|
162
151
|
}, {
|
163
|
-
default:
|
164
|
-
l(
|
152
|
+
default: o(() => [
|
153
|
+
l(V, {
|
165
154
|
modelValue: e(p).language,
|
166
|
-
"onUpdate:modelValue":
|
155
|
+
"onUpdate:modelValue": r[4] || (r[4] = (O) => e(p).language = O)
|
167
156
|
}, {
|
168
|
-
default:
|
157
|
+
default: o(() => [
|
169
158
|
l(S, { value: "zh-CN" }, {
|
170
|
-
default:
|
171
|
-
|
159
|
+
default: o(() => r[8] || (r[8] = [
|
160
|
+
I("zh-CN")
|
172
161
|
])),
|
173
162
|
_: 1,
|
174
163
|
__: [8]
|
175
164
|
}),
|
176
165
|
l(S, { value: "en-US" }, {
|
177
|
-
default:
|
178
|
-
|
166
|
+
default: o(() => r[9] || (r[9] = [
|
167
|
+
I("en-US")
|
179
168
|
])),
|
180
169
|
_: 1,
|
181
170
|
__: [9]
|
@@ -186,22 +175,22 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
|
|
186
175
|
]),
|
187
176
|
_: 1
|
188
177
|
}, 8, ["label"]),
|
189
|
-
l(
|
178
|
+
l(U, {
|
190
179
|
label: e(a)("menu.Role"),
|
191
180
|
prop: "roles"
|
192
181
|
}, {
|
193
|
-
default:
|
194
|
-
l(
|
182
|
+
default: o(() => [
|
183
|
+
l(g, {
|
195
184
|
modelValue: e(p).roles,
|
196
|
-
"onUpdate:modelValue":
|
185
|
+
"onUpdate:modelValue": r[5] || (r[5] = (O) => e(p).roles = O)
|
197
186
|
}, {
|
198
|
-
default:
|
199
|
-
(
|
200
|
-
key:
|
201
|
-
value:
|
187
|
+
default: o(() => [
|
188
|
+
(E(!0), K(z, null, W(f.value, (O) => (E(), q(M, {
|
189
|
+
key: O.key,
|
190
|
+
value: O.key
|
202
191
|
}, {
|
203
|
-
default:
|
204
|
-
|
192
|
+
default: o(() => [
|
193
|
+
I(X(O.translate), 1)
|
205
194
|
]),
|
206
195
|
_: 2
|
207
196
|
}, 1032, ["value"]))), 128))
|
@@ -211,14 +200,14 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
|
|
211
200
|
]),
|
212
201
|
_: 1
|
213
202
|
}, 8, ["label"]),
|
214
|
-
l(
|
203
|
+
l(U, {
|
215
204
|
label: e(a)("base.remark"),
|
216
205
|
prop: "remark"
|
217
206
|
}, {
|
218
|
-
default:
|
219
|
-
l(
|
207
|
+
default: o(() => [
|
208
|
+
l(A, {
|
220
209
|
modelValue: e(p).remark,
|
221
|
-
"onUpdate:modelValue":
|
210
|
+
"onUpdate:modelValue": r[6] || (r[6] = (O) => e(p).remark = O),
|
222
211
|
placeholder: e(a)("base.placeholder.input")
|
223
212
|
}, null, 8, ["modelValue", "placeholder"])
|
224
213
|
]),
|
@@ -232,31 +221,31 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
|
|
232
221
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
233
222
|
};
|
234
223
|
}
|
235
|
-
}),
|
224
|
+
}), Te = /* @__PURE__ */ D({
|
236
225
|
__name: "index",
|
237
226
|
setup(x) {
|
238
|
-
const
|
227
|
+
const w = {
|
239
228
|
keyword: ""
|
240
|
-
},
|
229
|
+
}, y = [{
|
241
230
|
label: a("base.avatar"),
|
242
231
|
prop: "avatar",
|
243
232
|
width: 60,
|
244
233
|
render: ({
|
245
|
-
row:
|
246
|
-
}) => l(
|
247
|
-
src:
|
234
|
+
row: c
|
235
|
+
}) => l(Ue, {
|
236
|
+
src: c.avatar
|
248
237
|
}, null)
|
249
238
|
}, {
|
250
239
|
label: a("base.user"),
|
251
240
|
width: 200,
|
252
241
|
align: "left",
|
253
242
|
render: ({
|
254
|
-
row:
|
255
|
-
}) => l(
|
243
|
+
row: c
|
244
|
+
}) => l(s("el-space"), {
|
256
245
|
direction: "vertical",
|
257
246
|
alignment: "start"
|
258
247
|
}, {
|
259
|
-
default: () => [l("div", null, [
|
248
|
+
default: () => [l("div", null, [c.username]), l("div", null, [c.email])]
|
260
249
|
})
|
261
250
|
}, {
|
262
251
|
label: a("base.phone"),
|
@@ -284,89 +273,89 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
|
|
284
273
|
width: 80,
|
285
274
|
align: "center",
|
286
275
|
render: ({
|
287
|
-
row:
|
288
|
-
}) => l(
|
289
|
-
onModify: () =>
|
290
|
-
key:
|
276
|
+
row: c
|
277
|
+
}) => l(oe, {
|
278
|
+
onModify: () => b({
|
279
|
+
key: c.key
|
291
280
|
})
|
292
281
|
}, null)
|
293
282
|
}], {
|
294
|
-
requesting:
|
295
|
-
} =
|
296
|
-
tableRef:
|
297
|
-
formModalRef:
|
298
|
-
keyword:
|
299
|
-
search:
|
283
|
+
requesting: k
|
284
|
+
} = F(ue), {
|
285
|
+
tableRef: h,
|
286
|
+
formModalRef: _,
|
287
|
+
keyword: m,
|
288
|
+
search: d,
|
300
289
|
reset: p,
|
301
|
-
openFormModal:
|
302
|
-
editFormModal:
|
303
|
-
} = P(
|
304
|
-
return (
|
305
|
-
const
|
306
|
-
return
|
290
|
+
openFormModal: n,
|
291
|
+
editFormModal: b
|
292
|
+
} = P(w);
|
293
|
+
return (c, i) => {
|
294
|
+
const R = s("el-input"), v = s("el-space"), C = s("el-page-header"), f = s("el-card");
|
295
|
+
return E(), q(f, {
|
307
296
|
class: "basic-card flex-full",
|
308
297
|
"body-class": "flex-1"
|
309
298
|
}, {
|
310
|
-
header:
|
299
|
+
header: o(() => [l(C, {
|
311
300
|
class: "basic-header"
|
312
301
|
}, {
|
313
|
-
title:
|
314
|
-
loading: e(
|
302
|
+
title: o(() => [l(e(B), {
|
303
|
+
loading: e(k),
|
315
304
|
onRefresh: e(p)
|
316
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
317
|
-
onOpen: e(
|
305
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(re), {
|
306
|
+
onOpen: e(n)
|
318
307
|
}, null, 8, ["onOpen"])]),
|
319
|
-
content:
|
308
|
+
content: o(() => [l(v, {
|
320
309
|
class: "search-bar"
|
321
310
|
}, {
|
322
|
-
default:
|
311
|
+
default: o(() => [l(R, {
|
323
312
|
class: "basic-search-input",
|
324
|
-
modelValue: e(
|
325
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
313
|
+
modelValue: e(m).keyword,
|
314
|
+
"onUpdate:modelValue": i[0] || (i[0] = (t) => e(m).keyword = t),
|
326
315
|
placeholder: e(a)("base.placeholder.keyword"),
|
327
316
|
clearable: "",
|
328
|
-
onKeyup: i[1] || (i[1] =
|
329
|
-
onClear: i[2] || (i[2] = (
|
330
|
-
}, null, 8, ["modelValue", "placeholder"]), l(e(
|
331
|
-
disabled: e(
|
332
|
-
onSearch: i[3] || (i[3] = (
|
317
|
+
onKeyup: i[1] || (i[1] = le((t) => e(d)(), ["enter"])),
|
318
|
+
onClear: i[2] || (i[2] = (t) => e(d)())
|
319
|
+
}, null, 8, ["modelValue", "placeholder"]), l(e(j), {
|
320
|
+
disabled: e(k),
|
321
|
+
onSearch: i[3] || (i[3] = (t) => e(d)())
|
333
322
|
}, null, 8, ["disabled"])]),
|
334
323
|
_: 1
|
335
324
|
})]),
|
336
325
|
_: 1
|
337
326
|
})]),
|
338
|
-
default:
|
327
|
+
default: o(() => [l(e(te), {
|
339
328
|
ref_key: "tableRef",
|
340
|
-
ref:
|
329
|
+
ref: h,
|
341
330
|
size: "small",
|
342
|
-
columns:
|
343
|
-
url: e(
|
344
|
-
"search-param": e(
|
331
|
+
columns: y,
|
332
|
+
url: e(ue).urls[e(ne)],
|
333
|
+
"search-param": e(m),
|
345
334
|
autoSearch: ""
|
346
|
-
}, null, 8, ["url", "search-param"]), l(
|
335
|
+
}, null, 8, ["url", "search-param"]), l(Ce, {
|
347
336
|
ref_key: "formModalRef",
|
348
|
-
ref:
|
337
|
+
ref: _,
|
349
338
|
onRefresh: e(p)
|
350
339
|
}, null, 8, ["onRefresh"])]),
|
351
340
|
_: 1
|
352
341
|
});
|
353
342
|
};
|
354
343
|
}
|
355
|
-
}),
|
344
|
+
}), Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
356
345
|
__proto__: null,
|
357
|
-
default:
|
358
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
346
|
+
default: Te
|
347
|
+
}, Symbol.toStringTag, { value: "Module" })), J = ae("translation", {}, "key"), qe = /* @__PURE__ */ D({
|
359
348
|
__name: "LangFormModal",
|
360
349
|
emits: ["refresh"],
|
361
|
-
setup(x, { expose:
|
362
|
-
const
|
350
|
+
setup(x, { expose: w, emit: y }) {
|
351
|
+
const k = y, h = {
|
363
352
|
id: 0,
|
364
353
|
key: "",
|
365
354
|
module: "",
|
366
355
|
language: "",
|
367
356
|
result: "",
|
368
357
|
remark: ""
|
369
|
-
},
|
358
|
+
}, _ = {
|
370
359
|
module: [
|
371
360
|
{
|
372
361
|
required: !0,
|
@@ -395,91 +384,80 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
|
|
395
384
|
trigger: "blur"
|
396
385
|
}
|
397
386
|
]
|
398
|
-
}, {
|
399
|
-
|
400
|
-
title: s,
|
401
|
-
form: p,
|
402
|
-
formData: r,
|
403
|
-
requesting: g,
|
404
|
-
executing: m,
|
405
|
-
open: i,
|
406
|
-
modify: U,
|
407
|
-
submit: C,
|
408
|
-
closed: E
|
409
|
-
} = I(M, v, H);
|
410
|
-
return R({
|
387
|
+
}, { modal: m, title: d, form: p, formData: n, requesting: b, executing: c, open: i, modify: R, submit: v, closed: C } = G(k, h, J);
|
388
|
+
return w({
|
411
389
|
open: i,
|
412
|
-
modify:
|
413
|
-
}), (
|
414
|
-
const u =
|
415
|
-
return
|
416
|
-
modelValue: e(
|
417
|
-
"onUpdate:modelValue":
|
418
|
-
title: e(
|
390
|
+
modify: R
|
391
|
+
}), (f, t) => {
|
392
|
+
const u = s("el-input"), r = s("el-form-item"), A = s("el-radio-button"), U = s("el-radio-group"), S = s("el-form");
|
393
|
+
return E(), q(e(Q), {
|
394
|
+
modelValue: e(m),
|
395
|
+
"onUpdate:modelValue": t[5] || (t[5] = (V) => N(m) ? m.value = V : null),
|
396
|
+
title: e(d)(),
|
419
397
|
width: "600px",
|
420
|
-
executing: e(
|
421
|
-
onClosed: e(
|
422
|
-
onSubmit: e(
|
398
|
+
executing: e(c),
|
399
|
+
onClosed: e(C),
|
400
|
+
onSubmit: e(v)
|
423
401
|
}, {
|
424
|
-
default:
|
402
|
+
default: o(() => [
|
425
403
|
l(S, {
|
426
404
|
ref_key: "form",
|
427
405
|
ref: p,
|
428
|
-
model: e(
|
406
|
+
model: e(n),
|
429
407
|
"label-width": "auto",
|
430
|
-
rules:
|
431
|
-
disabled: e(
|
408
|
+
rules: _,
|
409
|
+
disabled: e(b) || e(c)
|
432
410
|
}, {
|
433
|
-
default:
|
434
|
-
l(
|
411
|
+
default: o(() => [
|
412
|
+
l(r, {
|
435
413
|
label: e(a)("language.module"),
|
436
414
|
prop: "module",
|
437
415
|
required: ""
|
438
416
|
}, {
|
439
|
-
default:
|
417
|
+
default: o(() => [
|
440
418
|
l(u, {
|
441
|
-
modelValue: e(
|
442
|
-
"onUpdate:modelValue":
|
419
|
+
modelValue: e(n).module,
|
420
|
+
"onUpdate:modelValue": t[0] || (t[0] = (V) => e(n).module = V),
|
443
421
|
placeholder: e(a)("language.placeholder.module")
|
444
422
|
}, null, 8, ["modelValue", "placeholder"])
|
445
423
|
]),
|
446
424
|
_: 1
|
447
425
|
}, 8, ["label"]),
|
448
|
-
l(
|
426
|
+
l(r, {
|
449
427
|
label: e(a)("language.key"),
|
450
428
|
prop: "key",
|
451
429
|
required: ""
|
452
430
|
}, {
|
453
|
-
default:
|
431
|
+
default: o(() => [
|
454
432
|
l(u, {
|
455
|
-
modelValue: e(
|
456
|
-
"onUpdate:modelValue":
|
433
|
+
modelValue: e(n).key,
|
434
|
+
"onUpdate:modelValue": t[1] || (t[1] = (V) => e(n).key = V),
|
457
435
|
placeholder: e(a)("language.placeholder.key")
|
458
436
|
}, null, 8, ["modelValue", "placeholder"])
|
459
437
|
]),
|
460
438
|
_: 1
|
461
439
|
}, 8, ["label"]),
|
462
|
-
l(
|
440
|
+
l(r, {
|
463
441
|
label: e(a)("language.language"),
|
464
442
|
prop: "language",
|
465
443
|
required: ""
|
466
444
|
}, {
|
467
|
-
default:
|
468
|
-
l(
|
469
|
-
modelValue: e(
|
470
|
-
"onUpdate:modelValue":
|
445
|
+
default: o(() => [
|
446
|
+
l(U, {
|
447
|
+
modelValue: e(n).language,
|
448
|
+
"onUpdate:modelValue": t[2] || (t[2] = (V) => e(n).language = V)
|
471
449
|
}, {
|
472
|
-
default:
|
473
|
-
l(
|
474
|
-
default:
|
475
|
-
|
450
|
+
default: o(() => [
|
451
|
+
l(A, { label: "zh-CN" }, {
|
452
|
+
default: o(() => t[6] || (t[6] = [
|
453
|
+
I("zh-CN")
|
476
454
|
])),
|
477
455
|
_: 1,
|
478
456
|
__: [6]
|
479
457
|
}),
|
480
|
-
l(
|
481
|
-
default:
|
482
|
-
|
458
|
+
l(A, { label: "en-US" }, {
|
459
|
+
default: o(() => t[7] || (t[7] = [
|
460
|
+
I("en-US")
|
483
461
|
])),
|
484
462
|
_: 1,
|
485
463
|
__: [7]
|
@@ -490,28 +468,28 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
|
|
490
468
|
]),
|
491
469
|
_: 1
|
492
470
|
}, 8, ["label"]),
|
493
|
-
l(
|
471
|
+
l(r, {
|
494
472
|
label: e(a)("language.result"),
|
495
473
|
prop: "result",
|
496
474
|
required: ""
|
497
475
|
}, {
|
498
|
-
default:
|
476
|
+
default: o(() => [
|
499
477
|
l(u, {
|
500
|
-
modelValue: e(
|
501
|
-
"onUpdate:modelValue":
|
478
|
+
modelValue: e(n).result,
|
479
|
+
"onUpdate:modelValue": t[3] || (t[3] = (V) => e(n).result = V),
|
502
480
|
placeholder: e(a)("language.placeholder.result")
|
503
481
|
}, null, 8, ["modelValue", "placeholder"])
|
504
482
|
]),
|
505
483
|
_: 1
|
506
484
|
}, 8, ["label"]),
|
507
|
-
l(
|
485
|
+
l(r, {
|
508
486
|
label: e(a)("base.remark"),
|
509
487
|
prop: "remark"
|
510
488
|
}, {
|
511
|
-
default:
|
489
|
+
default: o(() => [
|
512
490
|
l(u, {
|
513
|
-
modelValue: e(
|
514
|
-
"onUpdate:modelValue":
|
491
|
+
modelValue: e(n).remark,
|
492
|
+
"onUpdate:modelValue": t[4] || (t[4] = (V) => e(n).remark = V),
|
515
493
|
placeholder: e(a)("base.placeholder.input")
|
516
494
|
}, null, 8, ["modelValue", "placeholder"])
|
517
495
|
]),
|
@@ -525,13 +503,13 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
|
|
525
503
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
526
504
|
};
|
527
505
|
}
|
528
|
-
}),
|
506
|
+
}), De = /* @__PURE__ */ D({
|
529
507
|
__name: "index",
|
530
508
|
setup(x) {
|
531
|
-
const
|
509
|
+
const w = {
|
532
510
|
keyword: "",
|
533
511
|
status: 0
|
534
|
-
},
|
512
|
+
}, y = [{
|
535
513
|
label: a("base.module"),
|
536
514
|
prop: "module",
|
537
515
|
width: 120
|
@@ -555,7 +533,7 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
|
|
555
533
|
props: {
|
556
534
|
activeValue: 1,
|
557
535
|
inactiveValue: 2,
|
558
|
-
api:
|
536
|
+
api: J.urls[be],
|
559
537
|
refresh: !0
|
560
538
|
}
|
561
539
|
}, {
|
@@ -576,109 +554,109 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
|
|
576
554
|
width: 80,
|
577
555
|
align: "center",
|
578
556
|
render: ({
|
579
|
-
row:
|
580
|
-
}) => l(
|
581
|
-
onModify: () =>
|
582
|
-
id:
|
557
|
+
row: c
|
558
|
+
}) => l(oe, {
|
559
|
+
onModify: () => b({
|
560
|
+
id: c.id
|
583
561
|
})
|
584
562
|
}, null)
|
585
563
|
}], {
|
586
|
-
requesting:
|
587
|
-
} =
|
588
|
-
tableRef:
|
589
|
-
formModalRef:
|
590
|
-
keyword:
|
591
|
-
search:
|
564
|
+
requesting: k
|
565
|
+
} = F(J), {
|
566
|
+
tableRef: h,
|
567
|
+
formModalRef: _,
|
568
|
+
keyword: m,
|
569
|
+
search: d,
|
592
570
|
reset: p,
|
593
|
-
openFormModal:
|
594
|
-
editFormModal:
|
595
|
-
} = P(
|
596
|
-
return (
|
597
|
-
const
|
598
|
-
return
|
571
|
+
openFormModal: n,
|
572
|
+
editFormModal: b
|
573
|
+
} = P(w);
|
574
|
+
return (c, i) => {
|
575
|
+
const R = s("el-input"), v = s("el-radio-button"), C = s("el-radio-group"), f = s("el-space"), t = s("el-page-header"), u = s("el-card");
|
576
|
+
return E(), q(u, {
|
599
577
|
class: "basic-card flex-full",
|
600
578
|
"body-class": "flex-1"
|
601
579
|
}, {
|
602
|
-
header:
|
580
|
+
header: o(() => [l(t, {
|
603
581
|
class: "basic-header"
|
604
582
|
}, {
|
605
|
-
title:
|
606
|
-
loading: e(
|
583
|
+
title: o(() => [l(e(B), {
|
584
|
+
loading: e(k),
|
607
585
|
onRefresh: e(p)
|
608
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
609
|
-
onOpen: e(
|
586
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(re), {
|
587
|
+
onOpen: e(n)
|
610
588
|
}, null, 8, ["onOpen"])]),
|
611
|
-
content:
|
589
|
+
content: o(() => [l(f, {
|
612
590
|
class: "search-bar"
|
613
591
|
}, {
|
614
|
-
default:
|
592
|
+
default: o(() => [l(R, {
|
615
593
|
class: "basic-search-input",
|
616
|
-
modelValue: e(
|
617
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
594
|
+
modelValue: e(m).keyword,
|
595
|
+
"onUpdate:modelValue": i[0] || (i[0] = (r) => e(m).keyword = r),
|
618
596
|
placeholder: e(a)("base.placeholder.keyword"),
|
619
597
|
clearable: "",
|
620
|
-
onKeyup: i[1] || (i[1] =
|
621
|
-
onClear: i[2] || (i[2] = (
|
622
|
-
}, null, 8, ["modelValue", "placeholder"]), l(
|
623
|
-
modelValue: e(
|
624
|
-
"onUpdate:modelValue": i[3] || (i[3] = (
|
625
|
-
onChange: i[4] || (i[4] = (
|
598
|
+
onKeyup: i[1] || (i[1] = le((r) => e(d)(), ["enter"])),
|
599
|
+
onClear: i[2] || (i[2] = (r) => e(d)())
|
600
|
+
}, null, 8, ["modelValue", "placeholder"]), l(C, {
|
601
|
+
modelValue: e(m).status,
|
602
|
+
"onUpdate:modelValue": i[3] || (i[3] = (r) => e(m).status = r),
|
603
|
+
onChange: i[4] || (i[4] = (r) => e(d)())
|
626
604
|
}, {
|
627
|
-
default:
|
628
|
-
key:
|
629
|
-
label: e(a)(`base.DISABLE_ENABLE.${
|
630
|
-
value:
|
605
|
+
default: o(() => [(E(), K(z, null, W([0, 1, 2], (r) => l(v, {
|
606
|
+
key: r,
|
607
|
+
label: e(a)(`base.DISABLE_ENABLE.${r}`),
|
608
|
+
value: r
|
631
609
|
}, null, 8, ["label", "value"])), 64))]),
|
632
610
|
_: 1
|
633
|
-
}, 8, ["modelValue"]), l(e(
|
634
|
-
disabled: e(
|
635
|
-
onSearch: i[5] || (i[5] = (
|
611
|
+
}, 8, ["modelValue"]), l(e(j), {
|
612
|
+
disabled: e(k),
|
613
|
+
onSearch: i[5] || (i[5] = (r) => e(d)())
|
636
614
|
}, null, 8, ["disabled"])]),
|
637
615
|
_: 1
|
638
616
|
})]),
|
639
617
|
_: 1
|
640
618
|
})]),
|
641
|
-
default:
|
619
|
+
default: o(() => [l(e(te), {
|
642
620
|
ref_key: "tableRef",
|
643
|
-
ref:
|
621
|
+
ref: h,
|
644
622
|
size: "small",
|
645
|
-
columns:
|
646
|
-
url: e(
|
647
|
-
"search-param": e(
|
623
|
+
columns: y,
|
624
|
+
url: e(J).urls[e(ne)],
|
625
|
+
"search-param": e(m),
|
648
626
|
autoSearch: ""
|
649
|
-
}, null, 8, ["url", "search-param"]), l(
|
627
|
+
}, null, 8, ["url", "search-param"]), l(qe, {
|
650
628
|
ref_key: "formModalRef",
|
651
|
-
ref:
|
629
|
+
ref: _,
|
652
630
|
onRefresh: e(p)
|
653
631
|
}, null, 8, ["onRefresh"])]),
|
654
632
|
_: 1
|
655
633
|
});
|
656
634
|
};
|
657
635
|
}
|
658
|
-
}),
|
636
|
+
}), $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
659
637
|
__proto__: null,
|
660
|
-
default:
|
661
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
638
|
+
default: De
|
639
|
+
}, Symbol.toStringTag, { value: "Module" })), ie = {
|
662
640
|
tops: "tops",
|
663
641
|
rules: "rules"
|
664
|
-
},
|
642
|
+
}, $ = fe.createAutoApi("menu", ie, "id", Object.keys(ie), [], ["TOP_MENU_LIST", "MENU_LIST"]), he = ae("rule", {}, "key");
|
665
643
|
/*! Element Plus Icons Vue v2.3.1 */
|
666
|
-
var
|
644
|
+
var Fe = /* @__PURE__ */ D({
|
667
645
|
name: "Key",
|
668
646
|
__name: "key",
|
669
647
|
setup(x) {
|
670
|
-
return (
|
648
|
+
return (w, y) => (E(), K("svg", {
|
671
649
|
xmlns: "http://www.w3.org/2000/svg",
|
672
650
|
viewBox: "0 0 1024 1024"
|
673
651
|
}, [
|
674
|
-
|
652
|
+
Y("path", {
|
675
653
|
fill: "currentColor",
|
676
654
|
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"
|
677
655
|
})
|
678
656
|
]));
|
679
657
|
}
|
680
|
-
}),
|
681
|
-
const
|
658
|
+
}), ze = Fe;
|
659
|
+
const Ke = /* @__PURE__ */ D({
|
682
660
|
__name: "TopMenuSelect",
|
683
661
|
props: {
|
684
662
|
modelValue: {
|
@@ -692,49 +670,49 @@ const Le = /* @__PURE__ */ O({
|
|
692
670
|
},
|
693
671
|
emits: ["update:modelValue", "change"],
|
694
672
|
setup(x, {
|
695
|
-
emit:
|
673
|
+
emit: w
|
696
674
|
}) {
|
697
|
-
const
|
698
|
-
requesting:
|
699
|
-
} =
|
700
|
-
value:
|
701
|
-
options:
|
702
|
-
change:
|
675
|
+
const y = w, k = x, {
|
676
|
+
requesting: h
|
677
|
+
} = F($), {
|
678
|
+
value: _,
|
679
|
+
options: m,
|
680
|
+
change: d,
|
703
681
|
refresh: p,
|
704
|
-
filterOptions:
|
705
|
-
} =
|
682
|
+
filterOptions: n
|
683
|
+
} = de(se(k, "modelValue"), y, {
|
706
684
|
key: "TOP_MENU_LIST",
|
707
|
-
api:
|
708
|
-
url:
|
685
|
+
api: $,
|
686
|
+
url: $.urls.tops,
|
709
687
|
isArray: !0
|
710
688
|
});
|
711
|
-
return (
|
712
|
-
const i =
|
713
|
-
return
|
689
|
+
return (b, c) => {
|
690
|
+
const i = s("el-select-v2");
|
691
|
+
return E(), q(i, {
|
714
692
|
class: "w-full",
|
715
|
-
modelValue: e(
|
716
|
-
"onUpdate:modelValue":
|
717
|
-
options: e(
|
693
|
+
modelValue: e(_),
|
694
|
+
"onUpdate:modelValue": c[1] || (c[1] = (R) => N(_) ? _.value = R : null),
|
695
|
+
options: e(m),
|
718
696
|
multiple: x.multiple,
|
719
|
-
disabled: e(
|
697
|
+
disabled: e(h),
|
720
698
|
placeholder: e(a)("base.placeholder.select"),
|
721
699
|
filterable: "",
|
722
|
-
filterOptions: e(
|
723
|
-
onChange: e(
|
700
|
+
filterOptions: e(n),
|
701
|
+
onChange: e(d)
|
724
702
|
}, {
|
725
|
-
prefix:
|
726
|
-
loading: e(
|
727
|
-
onRefresh:
|
703
|
+
prefix: o(() => [l(e(ge), {
|
704
|
+
loading: e(h),
|
705
|
+
onRefresh: c[0] || (c[0] = (R) => e(p)(!0))
|
728
706
|
}, null, 8, ["loading"])]),
|
729
707
|
_: 1
|
730
708
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
731
709
|
};
|
732
710
|
}
|
733
|
-
}),
|
711
|
+
}), Pe = /* @__PURE__ */ D({
|
734
712
|
__name: "MenuFormModal",
|
735
713
|
emits: ["refresh"],
|
736
|
-
setup(x, { expose:
|
737
|
-
const
|
714
|
+
setup(x, { expose: w, emit: y }) {
|
715
|
+
const k = y, h = {
|
738
716
|
id: 0,
|
739
717
|
menu_id: 0,
|
740
718
|
module: "",
|
@@ -755,7 +733,7 @@ const Le = /* @__PURE__ */ O({
|
|
755
733
|
keep_alive: !1,
|
756
734
|
link: !1
|
757
735
|
}
|
758
|
-
},
|
736
|
+
}, _ = {
|
759
737
|
sort: [
|
760
738
|
{
|
761
739
|
required: !0,
|
@@ -799,58 +777,47 @@ const Le = /* @__PURE__ */ O({
|
|
799
777
|
trigger: "blur"
|
800
778
|
}
|
801
779
|
]
|
802
|
-
}, {
|
803
|
-
|
804
|
-
title: s,
|
805
|
-
form: p,
|
806
|
-
formData: r,
|
807
|
-
requesting: g,
|
808
|
-
executing: m,
|
780
|
+
}, { modal: m, title: d, form: p, formData: n, requesting: b, executing: c, open: i, modify: R, submit: v, closed: C } = G(k, h, $);
|
781
|
+
return w({
|
809
782
|
open: i,
|
810
|
-
modify:
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
}), (c, o) => {
|
818
|
-
const u = d("el-form-item"), n = d("el-col"), h = d("el-input-number"), y = d("el-row"), S = d("el-input"), f = d("el-switch"), w = d("el-form");
|
819
|
-
return q(), $(e(Y), {
|
820
|
-
modelValue: e(_),
|
821
|
-
"onUpdate:modelValue": o[17] || (o[17] = (b) => D(_) ? _.value = b : null),
|
822
|
-
title: e(s)(),
|
783
|
+
modify: R
|
784
|
+
}), (f, t) => {
|
785
|
+
const u = s("el-form-item"), r = s("el-col"), A = s("el-input-number"), U = s("el-row"), S = s("el-input"), V = s("el-switch"), M = s("el-form");
|
786
|
+
return E(), q(e(Q), {
|
787
|
+
modelValue: e(m),
|
788
|
+
"onUpdate:modelValue": t[17] || (t[17] = (g) => N(m) ? m.value = g : null),
|
789
|
+
title: e(d)(),
|
823
790
|
width: "1000px",
|
824
|
-
executing: e(
|
825
|
-
onClosed: e(
|
826
|
-
onSubmit: e(
|
791
|
+
executing: e(c),
|
792
|
+
onClosed: e(C),
|
793
|
+
onSubmit: e(v)
|
827
794
|
}, {
|
828
|
-
default:
|
829
|
-
l(
|
795
|
+
default: o(() => [
|
796
|
+
l(M, {
|
830
797
|
ref_key: "form",
|
831
798
|
ref: p,
|
832
|
-
model: e(
|
799
|
+
model: e(n),
|
833
800
|
"label-width": "auto",
|
834
|
-
rules:
|
835
|
-
disabled: e(
|
801
|
+
rules: _,
|
802
|
+
disabled: e(b) || e(c)
|
836
803
|
}, {
|
837
|
-
default:
|
838
|
-
l(
|
839
|
-
default:
|
840
|
-
l(
|
841
|
-
default:
|
842
|
-
l(
|
843
|
-
default:
|
844
|
-
l(
|
845
|
-
default:
|
804
|
+
default: o(() => [
|
805
|
+
l(U, { gutter: 20 }, {
|
806
|
+
default: o(() => [
|
807
|
+
l(r, { span: 12 }, {
|
808
|
+
default: o(() => [
|
809
|
+
l(U, { gutter: 10 }, {
|
810
|
+
default: o(() => [
|
811
|
+
l(r, { span: 12 }, {
|
812
|
+
default: o(() => [
|
846
813
|
l(u, {
|
847
814
|
label: e(a)("base.parent"),
|
848
815
|
prop: "menu_id"
|
849
816
|
}, {
|
850
|
-
default:
|
851
|
-
l(
|
852
|
-
modelValue: e(
|
853
|
-
"onUpdate:modelValue":
|
817
|
+
default: o(() => [
|
818
|
+
l(Ke, {
|
819
|
+
modelValue: e(n).menu_id,
|
820
|
+
"onUpdate:modelValue": t[0] || (t[0] = (g) => e(n).menu_id = g)
|
854
821
|
}, null, 8, ["modelValue"])
|
855
822
|
]),
|
856
823
|
_: 1
|
@@ -858,17 +825,17 @@ const Le = /* @__PURE__ */ O({
|
|
858
825
|
]),
|
859
826
|
_: 1
|
860
827
|
}),
|
861
|
-
l(
|
862
|
-
default:
|
828
|
+
l(r, { span: 12 }, {
|
829
|
+
default: o(() => [
|
863
830
|
l(u, {
|
864
831
|
label: e(a)("base.sort"),
|
865
832
|
prop: "sort"
|
866
833
|
}, {
|
867
|
-
default:
|
868
|
-
l(
|
834
|
+
default: o(() => [
|
835
|
+
l(A, {
|
869
836
|
class: "w-full",
|
870
|
-
modelValue: e(
|
871
|
-
"onUpdate:modelValue":
|
837
|
+
modelValue: e(n).sort,
|
838
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => e(n).sort = g),
|
872
839
|
min: 0,
|
873
840
|
placeholder: e(a)("base.placeholder.input")
|
874
841
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -885,10 +852,10 @@ const Le = /* @__PURE__ */ O({
|
|
885
852
|
label: e(a)("menu.module"),
|
886
853
|
prop: "module"
|
887
854
|
}, {
|
888
|
-
default:
|
855
|
+
default: o(() => [
|
889
856
|
l(S, {
|
890
|
-
modelValue: e(
|
891
|
-
"onUpdate:modelValue":
|
857
|
+
modelValue: e(n).module,
|
858
|
+
"onUpdate:modelValue": t[2] || (t[2] = (g) => e(n).module = g),
|
892
859
|
placeholder: e(a)("base.placeholder.input")
|
893
860
|
}, null, 8, ["modelValue", "placeholder"])
|
894
861
|
]),
|
@@ -898,10 +865,10 @@ const Le = /* @__PURE__ */ O({
|
|
898
865
|
label: e(a)("base.name"),
|
899
866
|
prop: "name"
|
900
867
|
}, {
|
901
|
-
default:
|
868
|
+
default: o(() => [
|
902
869
|
l(S, {
|
903
|
-
modelValue: e(
|
904
|
-
"onUpdate:modelValue":
|
870
|
+
modelValue: e(n).name,
|
871
|
+
"onUpdate:modelValue": t[3] || (t[3] = (g) => e(n).name = g),
|
905
872
|
placeholder: e(a)("base.placeholder.input")
|
906
873
|
}, null, 8, ["modelValue", "placeholder"])
|
907
874
|
]),
|
@@ -911,10 +878,10 @@ const Le = /* @__PURE__ */ O({
|
|
911
878
|
label: e(a)("base.en_name"),
|
912
879
|
prop: "en_name"
|
913
880
|
}, {
|
914
|
-
default:
|
881
|
+
default: o(() => [
|
915
882
|
l(S, {
|
916
|
-
modelValue: e(
|
917
|
-
"onUpdate:modelValue":
|
883
|
+
modelValue: e(n).en_name,
|
884
|
+
"onUpdate:modelValue": t[4] || (t[4] = (g) => e(n).en_name = g),
|
918
885
|
placeholder: e(a)("base.placeholder.input")
|
919
886
|
}, null, 8, ["modelValue", "placeholder"])
|
920
887
|
]),
|
@@ -924,10 +891,10 @@ const Le = /* @__PURE__ */ O({
|
|
924
891
|
label: e(a)("menu.component"),
|
925
892
|
prop: "component"
|
926
893
|
}, {
|
927
|
-
default:
|
894
|
+
default: o(() => [
|
928
895
|
l(S, {
|
929
|
-
modelValue: e(
|
930
|
-
"onUpdate:modelValue":
|
896
|
+
modelValue: e(n).component,
|
897
|
+
"onUpdate:modelValue": t[5] || (t[5] = (g) => e(n).component = g),
|
931
898
|
placeholder: e(a)("base.placeholder.input")
|
932
899
|
}, null, 8, ["modelValue", "placeholder"])
|
933
900
|
]),
|
@@ -937,10 +904,10 @@ const Le = /* @__PURE__ */ O({
|
|
937
904
|
label: e(a)("base.url"),
|
938
905
|
prop: "url"
|
939
906
|
}, {
|
940
|
-
default:
|
907
|
+
default: o(() => [
|
941
908
|
l(S, {
|
942
|
-
modelValue: e(
|
943
|
-
"onUpdate:modelValue":
|
909
|
+
modelValue: e(n).url,
|
910
|
+
"onUpdate:modelValue": t[6] || (t[6] = (g) => e(n).url = g),
|
944
911
|
placeholder: e(a)("base.placeholder.input")
|
945
912
|
}, null, 8, ["modelValue", "placeholder"])
|
946
913
|
]),
|
@@ -950,10 +917,10 @@ const Le = /* @__PURE__ */ O({
|
|
950
917
|
label: e(a)("base.remark"),
|
951
918
|
prop: "remark"
|
952
919
|
}, {
|
953
|
-
default:
|
920
|
+
default: o(() => [
|
954
921
|
l(S, {
|
955
|
-
modelValue: e(
|
956
|
-
"onUpdate:modelValue":
|
922
|
+
modelValue: e(n).remark,
|
923
|
+
"onUpdate:modelValue": t[7] || (t[7] = (g) => e(n).remark = g),
|
957
924
|
placeholder: e(a)("base.placeholder.input")
|
958
925
|
}, null, 8, ["modelValue", "placeholder"])
|
959
926
|
]),
|
@@ -962,24 +929,24 @@ const Le = /* @__PURE__ */ O({
|
|
962
929
|
]),
|
963
930
|
_: 1
|
964
931
|
}),
|
965
|
-
l(
|
966
|
-
default:
|
932
|
+
l(r, { span: 12 }, {
|
933
|
+
default: o(() => [
|
967
934
|
l(u, {
|
968
935
|
label: e(a)("base.icon"),
|
969
936
|
prop: "icon"
|
970
937
|
}, {
|
971
|
-
default:
|
938
|
+
default: o(() => [
|
972
939
|
l(S, {
|
973
|
-
modelValue: e(
|
974
|
-
"onUpdate:modelValue":
|
940
|
+
modelValue: e(n).icon,
|
941
|
+
"onUpdate:modelValue": t[8] || (t[8] = (g) => e(n).icon = g),
|
975
942
|
placeholder: e(a)("base.placeholder.input"),
|
976
|
-
onInput:
|
977
|
-
e(
|
943
|
+
onInput: t[9] || (t[9] = (g) => {
|
944
|
+
e(n).meta.icon = g;
|
978
945
|
})
|
979
946
|
}, {
|
980
|
-
prepend:
|
981
|
-
|
982
|
-
class:
|
947
|
+
prepend: o(() => [
|
948
|
+
Y("span", {
|
949
|
+
class: _e("iconfont " + e(n).icon)
|
983
950
|
}, null, 2)
|
984
951
|
]),
|
985
952
|
_: 1
|
@@ -991,10 +958,10 @@ const Le = /* @__PURE__ */ O({
|
|
991
958
|
label: e(a)("base.title"),
|
992
959
|
prop: "meta.title"
|
993
960
|
}, {
|
994
|
-
default:
|
961
|
+
default: o(() => [
|
995
962
|
l(S, {
|
996
|
-
modelValue: e(
|
997
|
-
"onUpdate:modelValue":
|
963
|
+
modelValue: e(n).meta.title,
|
964
|
+
"onUpdate:modelValue": t[10] || (t[10] = (g) => e(n).meta.title = g),
|
998
965
|
placeholder: e(a)("base.placeholder.input")
|
999
966
|
}, null, 8, ["modelValue", "placeholder"])
|
1000
967
|
]),
|
@@ -1004,27 +971,27 @@ const Le = /* @__PURE__ */ O({
|
|
1004
971
|
label: e(a)("menu.active"),
|
1005
972
|
prop: "meta.active"
|
1006
973
|
}, {
|
1007
|
-
default:
|
974
|
+
default: o(() => [
|
1008
975
|
l(S, {
|
1009
|
-
modelValue: e(
|
1010
|
-
"onUpdate:modelValue":
|
976
|
+
modelValue: e(n).meta.active,
|
977
|
+
"onUpdate:modelValue": t[11] || (t[11] = (g) => e(n).meta.active = g),
|
1011
978
|
placeholder: e(a)("base.placeholder.input")
|
1012
979
|
}, null, 8, ["modelValue", "placeholder"])
|
1013
980
|
]),
|
1014
981
|
_: 1
|
1015
982
|
}, 8, ["label"]),
|
1016
|
-
l(
|
1017
|
-
default:
|
1018
|
-
l(
|
1019
|
-
default:
|
983
|
+
l(U, null, {
|
984
|
+
default: o(() => [
|
985
|
+
l(r, { span: 12 }, {
|
986
|
+
default: o(() => [
|
1020
987
|
l(u, {
|
1021
988
|
label: e(a)("menu.link"),
|
1022
989
|
prop: "meta.link"
|
1023
990
|
}, {
|
1024
|
-
default:
|
1025
|
-
l(
|
1026
|
-
modelValue: e(
|
1027
|
-
"onUpdate:modelValue":
|
991
|
+
default: o(() => [
|
992
|
+
l(V, {
|
993
|
+
modelValue: e(n).meta.link,
|
994
|
+
"onUpdate:modelValue": t[12] || (t[12] = (g) => e(n).meta.link = g)
|
1028
995
|
}, null, 8, ["modelValue"])
|
1029
996
|
]),
|
1030
997
|
_: 1
|
@@ -1032,16 +999,16 @@ const Le = /* @__PURE__ */ O({
|
|
1032
999
|
]),
|
1033
1000
|
_: 1
|
1034
1001
|
}),
|
1035
|
-
l(
|
1036
|
-
default:
|
1002
|
+
l(r, { span: 12 }, {
|
1003
|
+
default: o(() => [
|
1037
1004
|
l(u, {
|
1038
1005
|
label: e(a)("menu.keep_alive"),
|
1039
1006
|
prop: "meta.keep_alive"
|
1040
1007
|
}, {
|
1041
|
-
default:
|
1042
|
-
l(
|
1043
|
-
modelValue: e(
|
1044
|
-
"onUpdate:modelValue":
|
1008
|
+
default: o(() => [
|
1009
|
+
l(V, {
|
1010
|
+
modelValue: e(n).meta.keep_alive,
|
1011
|
+
"onUpdate:modelValue": t[13] || (t[13] = (g) => e(n).meta.keep_alive = g)
|
1045
1012
|
}, null, 8, ["modelValue"])
|
1046
1013
|
]),
|
1047
1014
|
_: 1
|
@@ -1049,16 +1016,16 @@ const Le = /* @__PURE__ */ O({
|
|
1049
1016
|
]),
|
1050
1017
|
_: 1
|
1051
1018
|
}),
|
1052
|
-
l(
|
1053
|
-
default:
|
1019
|
+
l(r, { span: 12 }, {
|
1020
|
+
default: o(() => [
|
1054
1021
|
l(u, {
|
1055
1022
|
label: e(a)("menu.hide"),
|
1056
1023
|
prop: "meta.hide"
|
1057
1024
|
}, {
|
1058
|
-
default:
|
1059
|
-
l(
|
1060
|
-
modelValue: e(
|
1061
|
-
"onUpdate:modelValue":
|
1025
|
+
default: o(() => [
|
1026
|
+
l(V, {
|
1027
|
+
modelValue: e(n).meta.hide,
|
1028
|
+
"onUpdate:modelValue": t[14] || (t[14] = (g) => e(n).meta.hide = g)
|
1062
1029
|
}, null, 8, ["modelValue"])
|
1063
1030
|
]),
|
1064
1031
|
_: 1
|
@@ -1066,16 +1033,16 @@ const Le = /* @__PURE__ */ O({
|
|
1066
1033
|
]),
|
1067
1034
|
_: 1
|
1068
1035
|
}),
|
1069
|
-
l(
|
1070
|
-
default:
|
1036
|
+
l(r, { span: 12 }, {
|
1037
|
+
default: o(() => [
|
1071
1038
|
l(u, {
|
1072
1039
|
label: e(a)("menu.full"),
|
1073
1040
|
prop: "meta.full"
|
1074
1041
|
}, {
|
1075
|
-
default:
|
1076
|
-
l(
|
1077
|
-
modelValue: e(
|
1078
|
-
"onUpdate:modelValue":
|
1042
|
+
default: o(() => [
|
1043
|
+
l(V, {
|
1044
|
+
modelValue: e(n).meta.full,
|
1045
|
+
"onUpdate:modelValue": t[15] || (t[15] = (g) => e(n).meta.full = g)
|
1079
1046
|
}, null, 8, ["modelValue"])
|
1080
1047
|
]),
|
1081
1048
|
_: 1
|
@@ -1083,16 +1050,16 @@ const Le = /* @__PURE__ */ O({
|
|
1083
1050
|
]),
|
1084
1051
|
_: 1
|
1085
1052
|
}),
|
1086
|
-
l(
|
1087
|
-
default:
|
1053
|
+
l(r, { span: 12 }, {
|
1054
|
+
default: o(() => [
|
1088
1055
|
l(u, {
|
1089
1056
|
label: e(a)("menu.affix"),
|
1090
1057
|
prop: "meta.affix"
|
1091
1058
|
}, {
|
1092
|
-
default:
|
1093
|
-
l(
|
1094
|
-
modelValue: e(
|
1095
|
-
"onUpdate:modelValue":
|
1059
|
+
default: o(() => [
|
1060
|
+
l(V, {
|
1061
|
+
modelValue: e(n).meta.affix,
|
1062
|
+
"onUpdate:modelValue": t[16] || (t[16] = (g) => e(n).meta.affix = g)
|
1096
1063
|
}, null, 8, ["modelValue"])
|
1097
1064
|
]),
|
1098
1065
|
_: 1
|
@@ -1117,7 +1084,7 @@ const Le = /* @__PURE__ */ O({
|
|
1117
1084
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
1118
1085
|
};
|
1119
1086
|
}
|
1120
|
-
}),
|
1087
|
+
}), Be = /* @__PURE__ */ D({
|
1121
1088
|
__name: "MenuSelect",
|
1122
1089
|
props: {
|
1123
1090
|
modelValue: {
|
@@ -1131,56 +1098,56 @@ const Le = /* @__PURE__ */ O({
|
|
1131
1098
|
},
|
1132
1099
|
emits: ["update:modelValue", "change"],
|
1133
1100
|
setup(x, {
|
1134
|
-
emit:
|
1101
|
+
emit: w
|
1135
1102
|
}) {
|
1136
|
-
const
|
1137
|
-
requesting:
|
1138
|
-
} =
|
1139
|
-
value:
|
1140
|
-
options:
|
1141
|
-
change:
|
1103
|
+
const y = w, k = x, {
|
1104
|
+
requesting: h
|
1105
|
+
} = F($), {
|
1106
|
+
value: _,
|
1107
|
+
options: m,
|
1108
|
+
change: d,
|
1142
1109
|
refresh: p,
|
1143
|
-
filterOptions:
|
1144
|
-
} =
|
1110
|
+
filterOptions: n
|
1111
|
+
} = de(se(k, "modelValue"), y, {
|
1145
1112
|
key: "MENU_LIST",
|
1146
|
-
api:
|
1113
|
+
api: $,
|
1147
1114
|
isArray: !0
|
1148
1115
|
});
|
1149
|
-
return (
|
1150
|
-
const i =
|
1151
|
-
return
|
1116
|
+
return (b, c) => {
|
1117
|
+
const i = s("el-space"), R = s("el-select-v2");
|
1118
|
+
return E(), q(R, {
|
1152
1119
|
class: "w-full",
|
1153
|
-
modelValue: e(
|
1154
|
-
"onUpdate:modelValue":
|
1155
|
-
options: e(
|
1120
|
+
modelValue: e(_),
|
1121
|
+
"onUpdate:modelValue": c[1] || (c[1] = (v) => N(_) ? _.value = v : null),
|
1122
|
+
options: e(m),
|
1156
1123
|
multiple: x.multiple,
|
1157
|
-
disabled: e(
|
1124
|
+
disabled: e(h),
|
1158
1125
|
placeholder: e(a)("base.placeholder.select"),
|
1159
1126
|
filterable: "",
|
1160
|
-
filterOptions: e(
|
1161
|
-
onChange: e(
|
1127
|
+
filterOptions: e(n),
|
1128
|
+
onChange: e(d)
|
1162
1129
|
}, {
|
1163
|
-
prefix:
|
1164
|
-
loading: e(
|
1165
|
-
onRefresh:
|
1130
|
+
prefix: o(() => [l(e(ge), {
|
1131
|
+
loading: e(h),
|
1132
|
+
onRefresh: c[0] || (c[0] = (v) => e(p)(!0))
|
1166
1133
|
}, null, 8, ["loading"])]),
|
1167
|
-
default:
|
1168
|
-
item:
|
1134
|
+
default: o(({
|
1135
|
+
item: v
|
1169
1136
|
}) => [l(i, null, {
|
1170
|
-
default:
|
1171
|
-
class:
|
1172
|
-
}, null, 2),
|
1137
|
+
default: o(() => [Y("i", {
|
1138
|
+
class: _e(`icon iconfont ${v.icon}`)
|
1139
|
+
}, null, 2), Y("span", null, X(v.translate), 1)]),
|
1173
1140
|
_: 2
|
1174
1141
|
}, 1024)]),
|
1175
1142
|
_: 1
|
1176
1143
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
1177
1144
|
};
|
1178
1145
|
}
|
1179
|
-
}),
|
1146
|
+
}), Ne = /* @__PURE__ */ D({
|
1180
1147
|
__name: "MenuRuleFormModal",
|
1181
1148
|
emits: ["refresh"],
|
1182
|
-
setup(x, { expose:
|
1183
|
-
const
|
1149
|
+
setup(x, { expose: w, emit: y }) {
|
1150
|
+
const k = y, h = {
|
1184
1151
|
key: "",
|
1185
1152
|
menu_id: 0,
|
1186
1153
|
sort: 0,
|
@@ -1188,7 +1155,7 @@ const Le = /* @__PURE__ */ O({
|
|
1188
1155
|
en_name: "",
|
1189
1156
|
urls: "",
|
1190
1157
|
remark: ""
|
1191
|
-
},
|
1158
|
+
}, _ = {
|
1192
1159
|
menu_id: [
|
1193
1160
|
{
|
1194
1161
|
required: !0,
|
@@ -1226,54 +1193,43 @@ const Le = /* @__PURE__ */ O({
|
|
1226
1193
|
trigger: "blur"
|
1227
1194
|
}
|
1228
1195
|
]
|
1229
|
-
}, {
|
1230
|
-
|
1231
|
-
title: s,
|
1232
|
-
form: p,
|
1233
|
-
formData: r,
|
1234
|
-
requesting: g,
|
1235
|
-
executing: m,
|
1236
|
-
open: i,
|
1237
|
-
modify: U,
|
1238
|
-
submit: C,
|
1239
|
-
closed: E
|
1240
|
-
} = I(M, v, ce);
|
1241
|
-
return R({
|
1196
|
+
}, { modal: m, title: d, form: p, formData: n, requesting: b, executing: c, open: i, modify: R, submit: v, closed: C } = G(k, h, he);
|
1197
|
+
return w({
|
1242
1198
|
open: i,
|
1243
|
-
modify:
|
1244
|
-
}), (
|
1245
|
-
const u =
|
1246
|
-
return
|
1247
|
-
modelValue: e(
|
1248
|
-
"onUpdate:modelValue":
|
1249
|
-
title: e(
|
1199
|
+
modify: R
|
1200
|
+
}), (f, t) => {
|
1201
|
+
const u = s("el-form-item"), r = s("el-input-number"), A = s("el-input"), U = s("el-col"), S = s("el-row"), V = s("el-form");
|
1202
|
+
return E(), q(e(Q), {
|
1203
|
+
modelValue: e(m),
|
1204
|
+
"onUpdate:modelValue": t[6] || (t[6] = (M) => N(m) ? m.value = M : null),
|
1205
|
+
title: e(d)("menu.rules"),
|
1250
1206
|
width: "1000px",
|
1251
|
-
executing: e(
|
1252
|
-
onClosed: e(
|
1253
|
-
onSubmit: e(
|
1207
|
+
executing: e(c),
|
1208
|
+
onClosed: e(C),
|
1209
|
+
onSubmit: e(v)
|
1254
1210
|
}, {
|
1255
|
-
default:
|
1256
|
-
l(
|
1211
|
+
default: o(() => [
|
1212
|
+
l(V, {
|
1257
1213
|
ref_key: "form",
|
1258
1214
|
ref: p,
|
1259
|
-
model: e(
|
1215
|
+
model: e(n),
|
1260
1216
|
"label-width": "auto",
|
1261
|
-
rules:
|
1262
|
-
disabled: e(
|
1217
|
+
rules: _,
|
1218
|
+
disabled: e(b) || e(c)
|
1263
1219
|
}, {
|
1264
|
-
default:
|
1220
|
+
default: o(() => [
|
1265
1221
|
l(S, { gutter: 20 }, {
|
1266
|
-
default:
|
1267
|
-
l(
|
1268
|
-
default:
|
1222
|
+
default: o(() => [
|
1223
|
+
l(U, { span: 10 }, {
|
1224
|
+
default: o(() => [
|
1269
1225
|
l(u, {
|
1270
1226
|
label: e(a)("menu.Menu"),
|
1271
1227
|
prop: "menu_id"
|
1272
1228
|
}, {
|
1273
|
-
default:
|
1274
|
-
l(
|
1275
|
-
modelValue: e(
|
1276
|
-
"onUpdate:modelValue":
|
1229
|
+
default: o(() => [
|
1230
|
+
l(Be, {
|
1231
|
+
modelValue: e(n).menu_id,
|
1232
|
+
"onUpdate:modelValue": t[0] || (t[0] = (M) => e(n).menu_id = M)
|
1277
1233
|
}, null, 8, ["modelValue"])
|
1278
1234
|
]),
|
1279
1235
|
_: 1
|
@@ -1282,11 +1238,11 @@ const Le = /* @__PURE__ */ O({
|
|
1282
1238
|
label: e(a)("base.sort"),
|
1283
1239
|
prop: "sort"
|
1284
1240
|
}, {
|
1285
|
-
default:
|
1286
|
-
l(
|
1241
|
+
default: o(() => [
|
1242
|
+
l(r, {
|
1287
1243
|
class: "w-full",
|
1288
|
-
modelValue: e(
|
1289
|
-
"onUpdate:modelValue":
|
1244
|
+
modelValue: e(n).sort,
|
1245
|
+
"onUpdate:modelValue": t[1] || (t[1] = (M) => e(n).sort = M),
|
1290
1246
|
min: 0,
|
1291
1247
|
placeholder: e(a)("base.placeholder.input")
|
1292
1248
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -1297,10 +1253,10 @@ const Le = /* @__PURE__ */ O({
|
|
1297
1253
|
label: e(a)("base.name"),
|
1298
1254
|
prop: "name"
|
1299
1255
|
}, {
|
1300
|
-
default:
|
1301
|
-
l(
|
1302
|
-
modelValue: e(
|
1303
|
-
"onUpdate:modelValue":
|
1256
|
+
default: o(() => [
|
1257
|
+
l(A, {
|
1258
|
+
modelValue: e(n).name,
|
1259
|
+
"onUpdate:modelValue": t[2] || (t[2] = (M) => e(n).name = M),
|
1304
1260
|
placeholder: e(a)("base.placeholder.input")
|
1305
1261
|
}, null, 8, ["modelValue", "placeholder"])
|
1306
1262
|
]),
|
@@ -1310,10 +1266,10 @@ const Le = /* @__PURE__ */ O({
|
|
1310
1266
|
label: e(a)("base.en_name"),
|
1311
1267
|
prop: "en_name"
|
1312
1268
|
}, {
|
1313
|
-
default:
|
1314
|
-
l(
|
1315
|
-
modelValue: e(
|
1316
|
-
"onUpdate:modelValue":
|
1269
|
+
default: o(() => [
|
1270
|
+
l(A, {
|
1271
|
+
modelValue: e(n).en_name,
|
1272
|
+
"onUpdate:modelValue": t[3] || (t[3] = (M) => e(n).en_name = M),
|
1317
1273
|
placeholder: e(a)("base.placeholder.input")
|
1318
1274
|
}, null, 8, ["modelValue", "placeholder"])
|
1319
1275
|
]),
|
@@ -1323,10 +1279,10 @@ const Le = /* @__PURE__ */ O({
|
|
1323
1279
|
label: e(a)("base.remark"),
|
1324
1280
|
prop: "remark"
|
1325
1281
|
}, {
|
1326
|
-
default:
|
1327
|
-
l(
|
1328
|
-
modelValue: e(
|
1329
|
-
"onUpdate:modelValue":
|
1282
|
+
default: o(() => [
|
1283
|
+
l(A, {
|
1284
|
+
modelValue: e(n).remark,
|
1285
|
+
"onUpdate:modelValue": t[4] || (t[4] = (M) => e(n).remark = M),
|
1330
1286
|
placeholder: e(a)("base.placeholder.input")
|
1331
1287
|
}, null, 8, ["modelValue", "placeholder"])
|
1332
1288
|
]),
|
@@ -1335,16 +1291,16 @@ const Le = /* @__PURE__ */ O({
|
|
1335
1291
|
]),
|
1336
1292
|
_: 1
|
1337
1293
|
}),
|
1338
|
-
l(
|
1339
|
-
default:
|
1294
|
+
l(U, { span: 14 }, {
|
1295
|
+
default: o(() => [
|
1340
1296
|
l(u, {
|
1341
1297
|
label: e(a)("base.rules"),
|
1342
1298
|
prop: "urls"
|
1343
1299
|
}, {
|
1344
|
-
default:
|
1345
|
-
l(
|
1346
|
-
modelValue: e(
|
1347
|
-
"onUpdate:modelValue":
|
1300
|
+
default: o(() => [
|
1301
|
+
l(A, {
|
1302
|
+
modelValue: e(n).urls,
|
1303
|
+
"onUpdate:modelValue": t[5] || (t[5] = (M) => e(n).urls = M),
|
1348
1304
|
type: "textarea",
|
1349
1305
|
rows: 11,
|
1350
1306
|
placeholder: e(a)("base.placeholder.input")
|
@@ -1367,16 +1323,16 @@ const Le = /* @__PURE__ */ O({
|
|
1367
1323
|
};
|
1368
1324
|
}
|
1369
1325
|
});
|
1370
|
-
function
|
1371
|
-
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !
|
1326
|
+
function me(x) {
|
1327
|
+
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !ye(x);
|
1372
1328
|
}
|
1373
|
-
const
|
1329
|
+
const je = /* @__PURE__ */ D({
|
1374
1330
|
__name: "index",
|
1375
1331
|
setup(x) {
|
1376
|
-
const
|
1332
|
+
const w = {
|
1377
1333
|
keyword: "",
|
1378
1334
|
status: 0
|
1379
|
-
},
|
1335
|
+
}, y = ee(""), k = [
|
1380
1336
|
{
|
1381
1337
|
label: a("base.sort"),
|
1382
1338
|
prop: "sort",
|
@@ -1387,9 +1343,9 @@ const Te = /* @__PURE__ */ O({
|
|
1387
1343
|
prop: "icon",
|
1388
1344
|
width: 60,
|
1389
1345
|
render: ({
|
1390
|
-
row:
|
1346
|
+
row: t
|
1391
1347
|
}) => l("span", {
|
1392
|
-
class: "iconfont " +
|
1348
|
+
class: "iconfont " + t.icon,
|
1393
1349
|
style: "font-size: 16px;"
|
1394
1350
|
}, null)
|
1395
1351
|
},
|
@@ -1403,10 +1359,10 @@ const Te = /* @__PURE__ */ O({
|
|
1403
1359
|
prop: "parent",
|
1404
1360
|
width: 120,
|
1405
1361
|
render: ({
|
1406
|
-
row:
|
1362
|
+
row: t
|
1407
1363
|
}) => {
|
1408
1364
|
var u;
|
1409
|
-
return l(
|
1365
|
+
return l(z, null, [(u = t.menu) == null ? void 0 : u.name]);
|
1410
1366
|
}
|
1411
1367
|
},
|
1412
1368
|
{
|
@@ -1433,43 +1389,43 @@ const Te = /* @__PURE__ */ O({
|
|
1433
1389
|
width: 0,
|
1434
1390
|
align: "left",
|
1435
1391
|
render: ({
|
1436
|
-
row:
|
1437
|
-
}) => l(
|
1392
|
+
row: t
|
1393
|
+
}) => l(s("el-space"), null, {
|
1438
1394
|
default: () => {
|
1439
1395
|
var u;
|
1440
|
-
return [(u =
|
1441
|
-
visible:
|
1396
|
+
return [(u = t.rules) == null ? void 0 : u.map((r) => l(s("el-popover"), {
|
1397
|
+
visible: y.value === r.key,
|
1442
1398
|
title: a("message.title.warning"),
|
1443
1399
|
placement: "top-end",
|
1444
1400
|
width: 220
|
1445
1401
|
}, {
|
1446
|
-
reference: () => l(
|
1402
|
+
reference: () => l(s("el-tag"), {
|
1447
1403
|
class: "cursor-pointer",
|
1448
1404
|
closable: !0,
|
1449
|
-
key:
|
1450
|
-
onClick: () =>
|
1451
|
-
key:
|
1405
|
+
key: r.key,
|
1406
|
+
onClick: () => C({
|
1407
|
+
key: r.key
|
1452
1408
|
}),
|
1453
|
-
onClose: () =>
|
1409
|
+
onClose: () => y.value = r.key
|
1454
1410
|
}, {
|
1455
|
-
default: () => [
|
1411
|
+
default: () => [r.translate]
|
1456
1412
|
}),
|
1457
1413
|
default: () => {
|
1458
|
-
let
|
1459
|
-
return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.delete menu.rules")}: ${
|
1414
|
+
let A, U;
|
1415
|
+
return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.delete menu.rules")}: ${t.translate}-${r.translate} ?`]), l("div", {
|
1460
1416
|
style: "text-align: right; margin: 0"
|
1461
|
-
}, [l(
|
1417
|
+
}, [l(s("el-button"), {
|
1462
1418
|
size: "small",
|
1463
1419
|
text: !0,
|
1464
|
-
onClick: () =>
|
1465
|
-
},
|
1466
|
-
default: () => [
|
1467
|
-
}), l(
|
1420
|
+
onClick: () => y.value = ""
|
1421
|
+
}, me(A = a("base.cancel")) ? A : {
|
1422
|
+
default: () => [A]
|
1423
|
+
}), l(s("el-button"), {
|
1468
1424
|
size: "small",
|
1469
1425
|
type: "danger",
|
1470
|
-
onClick: () =>
|
1471
|
-
},
|
1472
|
-
default: () => [
|
1426
|
+
onClick: () => f(r.key)
|
1427
|
+
}, me(U = a("base.confirm")) ? U : {
|
1428
|
+
default: () => [U]
|
1473
1429
|
})])]);
|
1474
1430
|
}
|
1475
1431
|
}))];
|
@@ -1484,7 +1440,7 @@ const Te = /* @__PURE__ */ O({
|
|
1484
1440
|
props: {
|
1485
1441
|
activeValue: 1,
|
1486
1442
|
inactiveValue: 2,
|
1487
|
-
api:
|
1443
|
+
api: $.urls[be],
|
1488
1444
|
refresh: !0
|
1489
1445
|
}
|
1490
1446
|
},
|
@@ -1494,262 +1450,255 @@ const Te = /* @__PURE__ */ O({
|
|
1494
1450
|
width: 60,
|
1495
1451
|
align: "center",
|
1496
1452
|
render: ({
|
1497
|
-
row:
|
1498
|
-
}) => l(
|
1453
|
+
row: t
|
1454
|
+
}) => l(oe, {
|
1499
1455
|
onModify: () => i({
|
1500
|
-
id:
|
1456
|
+
id: t.id
|
1501
1457
|
})
|
1502
1458
|
}, null)
|
1503
1459
|
}
|
1504
1460
|
], {
|
1505
|
-
requesting:
|
1506
|
-
} =
|
1507
|
-
tableRef:
|
1508
|
-
formModalRef:
|
1509
|
-
keyword:
|
1461
|
+
requesting: h
|
1462
|
+
} = F($), {
|
1463
|
+
tableRef: _,
|
1464
|
+
formModalRef: m,
|
1465
|
+
keyword: d,
|
1510
1466
|
search: p,
|
1511
|
-
refresh:
|
1512
|
-
reset:
|
1513
|
-
openFormModal:
|
1467
|
+
refresh: n,
|
1468
|
+
reset: b,
|
1469
|
+
openFormModal: c,
|
1514
1470
|
editFormModal: i
|
1515
|
-
} = P(
|
1516
|
-
formModalRef:
|
1517
|
-
openFormModal:
|
1518
|
-
editFormModal:
|
1519
|
-
} = P(),
|
1520
|
-
|
1521
|
-
key:
|
1471
|
+
} = P(w), {
|
1472
|
+
formModalRef: R,
|
1473
|
+
openFormModal: v,
|
1474
|
+
editFormModal: C
|
1475
|
+
} = P(), f = (t) => {
|
1476
|
+
he[Me]({
|
1477
|
+
key: t
|
1522
1478
|
}).then(() => {
|
1523
|
-
|
1479
|
+
y.value = "", n();
|
1524
1480
|
});
|
1525
1481
|
};
|
1526
|
-
return (
|
1527
|
-
const
|
1528
|
-
return
|
1482
|
+
return (t, u) => {
|
1483
|
+
const r = s("el-button"), A = s("el-input"), U = s("el-radio-button"), S = s("el-radio-group"), V = s("el-space"), M = s("el-page-header"), g = s("el-card");
|
1484
|
+
return E(), q(g, {
|
1529
1485
|
class: "basic-card flex-full",
|
1530
1486
|
"body-class": "flex-1",
|
1531
|
-
onClick: u[5] || (u[5] = () =>
|
1487
|
+
onClick: u[5] || (u[5] = () => y.value = "")
|
1532
1488
|
}, {
|
1533
|
-
header:
|
1489
|
+
header: o(() => [l(M, {
|
1534
1490
|
class: "basic-header"
|
1535
1491
|
}, {
|
1536
|
-
title:
|
1537
|
-
loading: e(
|
1538
|
-
onRefresh: e(
|
1539
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
1540
|
-
onOpen: e(
|
1541
|
-
}, null, 8, ["onOpen"]), l(
|
1492
|
+
title: o(() => [l(e(B), {
|
1493
|
+
loading: e(h),
|
1494
|
+
onRefresh: e(b)
|
1495
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(re), {
|
1496
|
+
onOpen: e(c)
|
1497
|
+
}, null, 8, ["onOpen"]), l(r, {
|
1542
1498
|
circle: "",
|
1543
|
-
icon: e(
|
1544
|
-
onClick: e(
|
1499
|
+
icon: e(ze),
|
1500
|
+
onClick: e(v)
|
1545
1501
|
}, null, 8, ["icon", "onClick"])]),
|
1546
|
-
content:
|
1502
|
+
content: o(() => [l(V, {
|
1547
1503
|
class: "search-bar"
|
1548
1504
|
}, {
|
1549
|
-
default:
|
1505
|
+
default: o(() => [l(A, {
|
1550
1506
|
class: "basic-search-input",
|
1551
|
-
modelValue: e(
|
1552
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
1507
|
+
modelValue: e(d).keyword,
|
1508
|
+
"onUpdate:modelValue": u[0] || (u[0] = (L) => e(d).keyword = L),
|
1553
1509
|
placeholder: e(a)("base.placeholder.keyword"),
|
1554
1510
|
clearable: "",
|
1555
|
-
onKeyup: u[1] || (u[1] =
|
1556
|
-
onClear: u[2] || (u[2] = (
|
1511
|
+
onKeyup: u[1] || (u[1] = le((L) => e(p)(), ["enter"])),
|
1512
|
+
onClear: u[2] || (u[2] = (L) => e(p)())
|
1557
1513
|
}, null, 8, ["modelValue", "placeholder"]), l(S, {
|
1558
|
-
modelValue: e(
|
1559
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
1560
|
-
onChange: u[4] || (u[4] = (
|
1514
|
+
modelValue: e(d).status,
|
1515
|
+
"onUpdate:modelValue": u[3] || (u[3] = (L) => e(d).status = L),
|
1516
|
+
onChange: u[4] || (u[4] = (L) => e(p)())
|
1561
1517
|
}, {
|
1562
|
-
default:
|
1563
|
-
key:
|
1564
|
-
label: e(a)(`base.DISABLE_ENABLE.${
|
1565
|
-
value:
|
1518
|
+
default: o(() => [(E(), K(z, null, W([0, 1, 2], (L) => l(U, {
|
1519
|
+
key: L,
|
1520
|
+
label: e(a)(`base.DISABLE_ENABLE.${L}`),
|
1521
|
+
value: L
|
1566
1522
|
}, null, 8, ["label", "value"])), 64))]),
|
1567
1523
|
_: 1
|
1568
|
-
}, 8, ["modelValue"]), l(e(
|
1569
|
-
disabled: e(
|
1524
|
+
}, 8, ["modelValue"]), l(e(j), {
|
1525
|
+
disabled: e(h),
|
1570
1526
|
onSearch: e(p)
|
1571
1527
|
}, null, 8, ["disabled", "onSearch"])]),
|
1572
1528
|
_: 1
|
1573
1529
|
})]),
|
1574
1530
|
_: 1
|
1575
1531
|
})]),
|
1576
|
-
default:
|
1532
|
+
default: o(() => [l(e(te), {
|
1577
1533
|
ref_key: "tableRef",
|
1578
|
-
ref:
|
1534
|
+
ref: _,
|
1579
1535
|
size: "small",
|
1580
|
-
columns:
|
1581
|
-
url: e(
|
1582
|
-
"search-param": e(
|
1536
|
+
columns: k,
|
1537
|
+
url: e($).urls[e(ne)],
|
1538
|
+
"search-param": e(d),
|
1583
1539
|
autoSearch: ""
|
1584
|
-
}, null, 8, ["url", "search-param"]), l(
|
1540
|
+
}, null, 8, ["url", "search-param"]), l(Pe, {
|
1585
1541
|
ref_key: "formModalRef",
|
1586
|
-
ref:
|
1587
|
-
onRefresh: e(
|
1588
|
-
}, null, 8, ["onRefresh"]), l(
|
1542
|
+
ref: m,
|
1543
|
+
onRefresh: e(b)
|
1544
|
+
}, null, 8, ["onRefresh"]), l(Ne, {
|
1589
1545
|
ref_key: "ruleFormModalRef",
|
1590
|
-
ref:
|
1591
|
-
onRefresh: e(
|
1546
|
+
ref: R,
|
1547
|
+
onRefresh: e(n)
|
1592
1548
|
}, null, 8, ["onRefresh"])]),
|
1593
1549
|
_: 1
|
1594
1550
|
});
|
1595
1551
|
};
|
1596
1552
|
}
|
1597
|
-
}),
|
1553
|
+
}), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1598
1554
|
__proto__: null,
|
1599
|
-
default:
|
1600
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1601
|
-
__name: "
|
1555
|
+
default: je
|
1556
|
+
}, Symbol.toStringTag, { value: "Module" })), Ye = { class: "rule-check" }, He = { style: { width: "80px", "line-height": "36px" } }, We = /* @__PURE__ */ D({
|
1557
|
+
__name: "rulesCheck",
|
1602
1558
|
props: {
|
1603
1559
|
modelValue: { type: Array, required: !0 },
|
1604
1560
|
disabled: { type: Boolean, default: !1 }
|
1605
1561
|
},
|
1606
1562
|
emits: ["update:modelValue"],
|
1607
|
-
setup(x, { expose:
|
1608
|
-
const { requesting:
|
1563
|
+
setup(x, { expose: w, emit: y }) {
|
1564
|
+
const { requesting: k } = F($), h = x, _ = y, m = ee(!1), d = ke({
|
1609
1565
|
checkAll: !1,
|
1610
1566
|
indeterminate: !1,
|
1611
1567
|
MenuAll: {},
|
1612
1568
|
MenuList: {},
|
1613
1569
|
MenuIndeterminate: {}
|
1614
|
-
}), { options: p, refresh:
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
);
|
1620
|
-
function g() {
|
1621
|
-
p.value.forEach((c) => {
|
1622
|
-
var o;
|
1623
|
-
(o = c.rules) != null && o.length && (s.MenuAll[c.id] = !1, s.MenuIndeterminate[c.id] = !1, s.MenuList[c.id] = []);
|
1570
|
+
}), { options: p, refresh: n } = de(se(h, "modelValue"), _, { key: "RULE_CHECK", api: $, url: $.urls.rules, isArray: !0 }, !1);
|
1571
|
+
function b() {
|
1572
|
+
p.value.forEach((f) => {
|
1573
|
+
var t;
|
1574
|
+
(t = f.rules) != null && t.length && (d.MenuAll[f.id] = !1, d.MenuIndeterminate[f.id] = !1, d.MenuList[f.id] = []);
|
1624
1575
|
});
|
1625
1576
|
}
|
1626
|
-
function
|
1627
|
-
p.value.forEach((
|
1577
|
+
function c(f) {
|
1578
|
+
p.value.forEach((t) => {
|
1628
1579
|
var u;
|
1629
|
-
(u =
|
1630
|
-
}),
|
1580
|
+
(u = t.rules) != null && u.length && (d.MenuList[t.id] = f ? t.rules.map((r) => r.key) : []);
|
1581
|
+
}), R();
|
1631
1582
|
}
|
1632
|
-
function i(
|
1633
|
-
const u = p.value.find((
|
1634
|
-
|
1583
|
+
function i(f, t) {
|
1584
|
+
const u = p.value.find((r) => r.id === t);
|
1585
|
+
d.MenuList[t] = f && u ? u.rules.map((r) => r.key) : [], R();
|
1635
1586
|
}
|
1636
|
-
function
|
1637
|
-
p.value.forEach((
|
1638
|
-
var
|
1639
|
-
const
|
1640
|
-
|
1641
|
-
}),
|
1587
|
+
function R() {
|
1588
|
+
p.value.forEach((f) => {
|
1589
|
+
var r, A;
|
1590
|
+
const t = ((r = f.rules) == null ? void 0 : r.length) || 0, u = ((A = d.MenuList[f.id]) == null ? void 0 : A.length) || 0;
|
1591
|
+
d.MenuAll[f.id] = u === t && t > 0, d.MenuIndeterminate[f.id] = u > 0 && u < t;
|
1592
|
+
}), d.checkAll = Object.values(d.MenuAll).every(Boolean), d.indeterminate = !d.checkAll && Object.values(d.MenuList).some((f) => f.length > 0), _("update:modelValue", Object.values(d.MenuList).flat());
|
1642
1593
|
}
|
1643
|
-
function
|
1644
|
-
|
1594
|
+
function v() {
|
1595
|
+
d.checkAll = !1, d.indeterminate = !1, d.MenuAll = {}, d.MenuList = {}, d.MenuIndeterminate = {}, b(), _("update:modelValue", []), m.value = !1;
|
1645
1596
|
}
|
1646
|
-
function
|
1647
|
-
var
|
1597
|
+
function C(f) {
|
1598
|
+
var t;
|
1648
1599
|
if (Array.isArray(p.value) && p.value.length > 0) {
|
1649
1600
|
for (let u of p.value)
|
1650
1601
|
if (Array.isArray(u.rules) && u.rules.length > 0)
|
1651
|
-
for (let
|
1652
|
-
|
1653
|
-
|
1654
|
-
]));
|
1655
|
-
U(), _.value = !0;
|
1602
|
+
for (let r of u.rules)
|
1603
|
+
f.some((A) => A === r.key) && (d.MenuList[u.id] = (((t = d.MenuList) == null ? void 0 : t[u.id]) || []).concat([r.key]));
|
1604
|
+
R(), m.value = !0;
|
1656
1605
|
}
|
1657
1606
|
}
|
1658
|
-
return
|
1659
|
-
var
|
1660
|
-
(
|
1661
|
-
}),
|
1662
|
-
() =>
|
1663
|
-
(
|
1664
|
-
|
1665
|
-
var
|
1666
|
-
|
1607
|
+
return ve(async () => {
|
1608
|
+
var f;
|
1609
|
+
(f = p.value) != null && f.length || await n(), !m.value && h.modelValue && C(h.modelValue);
|
1610
|
+
}), we(
|
1611
|
+
() => h.modelValue,
|
1612
|
+
(f) => {
|
1613
|
+
xe(() => {
|
1614
|
+
var t;
|
1615
|
+
m.value || !((t = p.value) != null && t.length) || f && f.length > 0 && C(f);
|
1667
1616
|
});
|
1668
1617
|
},
|
1669
1618
|
{ deep: !0, immediate: !0 }
|
1670
|
-
),
|
1671
|
-
generateOption:
|
1672
|
-
cleanChecked:
|
1673
|
-
}), (
|
1674
|
-
const u =
|
1675
|
-
return
|
1676
|
-
l(
|
1677
|
-
default:
|
1619
|
+
), w({
|
1620
|
+
generateOption: C,
|
1621
|
+
cleanChecked: v
|
1622
|
+
}), (f, t) => {
|
1623
|
+
const u = s("el-checkbox"), r = s("el-space"), A = s("el-text"), U = s("el-divider"), S = s("el-checkbox-group");
|
1624
|
+
return E(), K("div", Ye, [
|
1625
|
+
l(r, { style: { "margin-bottom": "6px" } }, {
|
1626
|
+
default: o(() => [
|
1678
1627
|
l(u, {
|
1679
|
-
"model-value":
|
1680
|
-
indeterminate:
|
1628
|
+
"model-value": d.checkAll,
|
1629
|
+
indeterminate: d.indeterminate,
|
1681
1630
|
id: "all",
|
1682
1631
|
disabled: x.disabled,
|
1683
|
-
onChange:
|
1632
|
+
onChange: c
|
1684
1633
|
}, {
|
1685
|
-
default:
|
1686
|
-
|
1634
|
+
default: o(() => t[1] || (t[1] = [
|
1635
|
+
Y("span", null, "全选", -1)
|
1687
1636
|
])),
|
1688
1637
|
_: 1,
|
1689
1638
|
__: [1]
|
1690
1639
|
}, 8, ["model-value", "indeterminate", "disabled"]),
|
1691
|
-
l(e(
|
1692
|
-
loading: e(
|
1640
|
+
l(e(B), {
|
1641
|
+
loading: e(k),
|
1693
1642
|
text: "",
|
1694
1643
|
size: "small",
|
1695
|
-
onRefresh:
|
1644
|
+
onRefresh: t[0] || (t[0] = (V) => e(n)(!0))
|
1696
1645
|
}, null, 8, ["loading"])
|
1697
1646
|
]),
|
1698
1647
|
_: 1
|
1699
1648
|
}),
|
1700
|
-
l(
|
1649
|
+
l(r, {
|
1701
1650
|
direction: "vertical",
|
1702
1651
|
alignment: "start",
|
1703
1652
|
class: "rule-check-content"
|
1704
1653
|
}, {
|
1705
|
-
default:
|
1706
|
-
(
|
1707
|
-
key:
|
1654
|
+
default: o(() => [
|
1655
|
+
(E(!0), K(z, null, W(e(p), (V) => (E(), K("div", {
|
1656
|
+
key: V.id
|
1708
1657
|
}, [
|
1709
|
-
l(
|
1658
|
+
l(r, {
|
1710
1659
|
direction: "horizontal",
|
1711
1660
|
size: 2
|
1712
1661
|
}, {
|
1713
|
-
default:
|
1662
|
+
default: o(() => [
|
1714
1663
|
l(u, {
|
1715
1664
|
style: { "min-width": "150px" },
|
1716
|
-
"model-value":
|
1717
|
-
disabled: x.disabled || !
|
1718
|
-
indeterminate:
|
1719
|
-
onChange: (
|
1665
|
+
"model-value": d.MenuAll[V.id],
|
1666
|
+
disabled: x.disabled || !V.rules || V.rules.length <= 0,
|
1667
|
+
indeterminate: d.MenuIndeterminate[V.id],
|
1668
|
+
onChange: (M) => i(M, V.id)
|
1720
1669
|
}, {
|
1721
|
-
default:
|
1722
|
-
l(
|
1723
|
-
default:
|
1724
|
-
|
1670
|
+
default: o(() => [
|
1671
|
+
l(A, { style: { "font-size": "15px" } }, {
|
1672
|
+
default: o(() => [
|
1673
|
+
I(X(V.translate), 1)
|
1725
1674
|
]),
|
1726
1675
|
_: 2
|
1727
1676
|
}, 1024)
|
1728
1677
|
]),
|
1729
1678
|
_: 2
|
1730
1679
|
}, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
|
1731
|
-
l(
|
1732
|
-
|
1680
|
+
l(U, { direction: "vertical" }),
|
1681
|
+
V.rules ? (E(), q(S, {
|
1733
1682
|
key: 0,
|
1734
|
-
modelValue:
|
1735
|
-
"onUpdate:modelValue": (
|
1683
|
+
modelValue: d.MenuList[V.id],
|
1684
|
+
"onUpdate:modelValue": (M) => d.MenuList[V.id] = M,
|
1736
1685
|
disabled: x.disabled,
|
1737
1686
|
style: { margin: "auto" },
|
1738
|
-
onChange:
|
1687
|
+
onChange: R
|
1739
1688
|
}, {
|
1740
|
-
default:
|
1741
|
-
(
|
1742
|
-
key:
|
1743
|
-
value:
|
1689
|
+
default: o(() => [
|
1690
|
+
(E(!0), K(z, null, W(V.rules, (M) => (E(), q(u, {
|
1691
|
+
key: M.key,
|
1692
|
+
value: M.key
|
1744
1693
|
}, {
|
1745
|
-
default:
|
1746
|
-
|
1694
|
+
default: o(() => [
|
1695
|
+
Y("div", He, X(M.translate), 1)
|
1747
1696
|
]),
|
1748
1697
|
_: 2
|
1749
1698
|
}, 1032, ["value"]))), 128))
|
1750
1699
|
]),
|
1751
1700
|
_: 2
|
1752
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
1701
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : Re("", !0)
|
1753
1702
|
]),
|
1754
1703
|
_: 2
|
1755
1704
|
}, 1024)
|
@@ -1760,11 +1709,16 @@ const Te = /* @__PURE__ */ O({
|
|
1760
1709
|
]);
|
1761
1710
|
};
|
1762
1711
|
}
|
1763
|
-
}),
|
1712
|
+
}), Ge = (x, w) => {
|
1713
|
+
const y = x.__vccOpts || x;
|
1714
|
+
for (const [k, h] of w)
|
1715
|
+
y[k] = h;
|
1716
|
+
return y;
|
1717
|
+
}, Qe = /* @__PURE__ */ Ge(We, [["__scopeId", "data-v-f4f07023"]]), Je = /* @__PURE__ */ D({
|
1764
1718
|
__name: "RoleFormModal",
|
1765
1719
|
emits: ["refresh"],
|
1766
|
-
setup(x, { expose:
|
1767
|
-
const
|
1720
|
+
setup(x, { expose: w, emit: y }) {
|
1721
|
+
const k = y, h = ee(), _ = {
|
1768
1722
|
key: "",
|
1769
1723
|
module: "",
|
1770
1724
|
sort: 0,
|
@@ -1772,7 +1726,7 @@ const Te = /* @__PURE__ */ O({
|
|
1772
1726
|
en_name: "",
|
1773
1727
|
remark: "",
|
1774
1728
|
rules: []
|
1775
|
-
},
|
1729
|
+
}, m = {
|
1776
1730
|
name: [
|
1777
1731
|
{
|
1778
1732
|
required: !0,
|
@@ -1787,57 +1741,46 @@ const Te = /* @__PURE__ */ O({
|
|
1787
1741
|
trigger: "blur"
|
1788
1742
|
}
|
1789
1743
|
]
|
1790
|
-
}, {
|
1791
|
-
modal: s,
|
1792
|
-
title: p,
|
1793
|
-
form: r,
|
1794
|
-
formData: g,
|
1795
|
-
requesting: m,
|
1796
|
-
executing: i,
|
1797
|
-
open: U,
|
1798
|
-
modify: C,
|
1799
|
-
submit: E,
|
1800
|
-
closed: c
|
1801
|
-
} = I(M, V, J), o = () => {
|
1744
|
+
}, { modal: d, title: p, form: n, formData: b, requesting: c, executing: i, open: R, modify: v, submit: C, closed: f } = G(k, _, Z), t = () => {
|
1802
1745
|
var u;
|
1803
|
-
(u =
|
1746
|
+
(u = h.value) == null || u.cleanChecked(), f();
|
1804
1747
|
};
|
1805
|
-
return
|
1806
|
-
open:
|
1807
|
-
modify:
|
1808
|
-
}), (u,
|
1809
|
-
const
|
1810
|
-
return
|
1811
|
-
modelValue: e(
|
1812
|
-
"onUpdate:modelValue":
|
1748
|
+
return w({
|
1749
|
+
open: R,
|
1750
|
+
modify: v
|
1751
|
+
}), (u, r) => {
|
1752
|
+
const A = s("el-input"), U = s("el-form-item"), S = s("el-col"), V = s("el-input-number"), M = s("el-row"), g = s("el-form");
|
1753
|
+
return E(), q(e(Q), {
|
1754
|
+
modelValue: e(d),
|
1755
|
+
"onUpdate:modelValue": r[6] || (r[6] = (L) => N(d) ? d.value = L : null),
|
1813
1756
|
title: e(p)(),
|
1814
1757
|
width: "1000px",
|
1815
1758
|
executing: e(i),
|
1816
|
-
onClosed:
|
1817
|
-
onSubmit: e(
|
1759
|
+
onClosed: t,
|
1760
|
+
onSubmit: e(C)
|
1818
1761
|
}, {
|
1819
|
-
default:
|
1820
|
-
l(
|
1762
|
+
default: o(() => [
|
1763
|
+
l(g, {
|
1821
1764
|
ref_key: "form",
|
1822
|
-
ref:
|
1823
|
-
model: e(
|
1765
|
+
ref: n,
|
1766
|
+
model: e(b),
|
1824
1767
|
"label-width": "auto",
|
1825
|
-
rules:
|
1826
|
-
disabled: e(
|
1768
|
+
rules: m,
|
1769
|
+
disabled: e(c) || e(i)
|
1827
1770
|
}, {
|
1828
|
-
default:
|
1829
|
-
l(
|
1830
|
-
default:
|
1771
|
+
default: o(() => [
|
1772
|
+
l(M, { gutter: 20 }, {
|
1773
|
+
default: o(() => [
|
1831
1774
|
l(S, { span: 12 }, {
|
1832
|
-
default:
|
1833
|
-
l(
|
1775
|
+
default: o(() => [
|
1776
|
+
l(U, {
|
1834
1777
|
label: e(a)("base.module"),
|
1835
1778
|
prop: "module"
|
1836
1779
|
}, {
|
1837
|
-
default:
|
1838
|
-
l(
|
1839
|
-
modelValue: e(
|
1840
|
-
"onUpdate:modelValue":
|
1780
|
+
default: o(() => [
|
1781
|
+
l(A, {
|
1782
|
+
modelValue: e(b).module,
|
1783
|
+
"onUpdate:modelValue": r[0] || (r[0] = (L) => e(b).module = L),
|
1841
1784
|
placeholder: e(a)("base.placeholder.input")
|
1842
1785
|
}, null, 8, ["modelValue", "placeholder"])
|
1843
1786
|
]),
|
@@ -1847,16 +1790,16 @@ const Te = /* @__PURE__ */ O({
|
|
1847
1790
|
_: 1
|
1848
1791
|
}),
|
1849
1792
|
l(S, { span: 12 }, {
|
1850
|
-
default:
|
1851
|
-
l(
|
1793
|
+
default: o(() => [
|
1794
|
+
l(U, {
|
1852
1795
|
label: e(a)("base.sort"),
|
1853
1796
|
prop: "sort"
|
1854
1797
|
}, {
|
1855
|
-
default:
|
1856
|
-
l(
|
1798
|
+
default: o(() => [
|
1799
|
+
l(V, {
|
1857
1800
|
class: "w-full",
|
1858
|
-
modelValue: e(
|
1859
|
-
"onUpdate:modelValue":
|
1801
|
+
modelValue: e(b).sort,
|
1802
|
+
"onUpdate:modelValue": r[1] || (r[1] = (L) => e(b).sort = L),
|
1860
1803
|
min: 0,
|
1861
1804
|
placeholder: e(a)("base.placeholder.input")
|
1862
1805
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -1869,56 +1812,56 @@ const Te = /* @__PURE__ */ O({
|
|
1869
1812
|
]),
|
1870
1813
|
_: 1
|
1871
1814
|
}),
|
1872
|
-
l(
|
1815
|
+
l(U, {
|
1873
1816
|
label: e(a)("base.name"),
|
1874
1817
|
prop: "name"
|
1875
1818
|
}, {
|
1876
|
-
default:
|
1877
|
-
l(
|
1878
|
-
modelValue: e(
|
1879
|
-
"onUpdate:modelValue":
|
1819
|
+
default: o(() => [
|
1820
|
+
l(A, {
|
1821
|
+
modelValue: e(b).name,
|
1822
|
+
"onUpdate:modelValue": r[2] || (r[2] = (L) => e(b).name = L),
|
1880
1823
|
placeholder: e(a)("base.placeholder.input")
|
1881
1824
|
}, null, 8, ["modelValue", "placeholder"])
|
1882
1825
|
]),
|
1883
1826
|
_: 1
|
1884
1827
|
}, 8, ["label"]),
|
1885
|
-
l(
|
1828
|
+
l(U, {
|
1886
1829
|
label: e(a)("base.en_name"),
|
1887
1830
|
prop: "en_name"
|
1888
1831
|
}, {
|
1889
|
-
default:
|
1890
|
-
l(
|
1891
|
-
modelValue: e(
|
1892
|
-
"onUpdate:modelValue":
|
1832
|
+
default: o(() => [
|
1833
|
+
l(A, {
|
1834
|
+
modelValue: e(b).en_name,
|
1835
|
+
"onUpdate:modelValue": r[3] || (r[3] = (L) => e(b).en_name = L),
|
1893
1836
|
placeholder: e(a)("base.placeholder.input")
|
1894
1837
|
}, null, 8, ["modelValue", "placeholder"])
|
1895
1838
|
]),
|
1896
1839
|
_: 1
|
1897
1840
|
}, 8, ["label"]),
|
1898
|
-
l(
|
1841
|
+
l(U, {
|
1899
1842
|
label: e(a)("base.remark"),
|
1900
1843
|
prop: "remark"
|
1901
1844
|
}, {
|
1902
|
-
default:
|
1903
|
-
l(
|
1904
|
-
modelValue: e(
|
1905
|
-
"onUpdate:modelValue":
|
1845
|
+
default: o(() => [
|
1846
|
+
l(A, {
|
1847
|
+
modelValue: e(b).remark,
|
1848
|
+
"onUpdate:modelValue": r[4] || (r[4] = (L) => e(b).remark = L),
|
1906
1849
|
placeholder: e(a)("base.placeholder.input")
|
1907
1850
|
}, null, 8, ["modelValue", "placeholder"])
|
1908
1851
|
]),
|
1909
1852
|
_: 1
|
1910
1853
|
}, 8, ["label"]),
|
1911
|
-
l(
|
1854
|
+
l(U, {
|
1912
1855
|
label: e(a)("base.rules"),
|
1913
1856
|
prop: "rules"
|
1914
1857
|
}, {
|
1915
|
-
default:
|
1916
|
-
l(
|
1858
|
+
default: o(() => [
|
1859
|
+
l(Qe, {
|
1917
1860
|
ref_key: "rulesCheck",
|
1918
|
-
ref:
|
1919
|
-
modelValue: e(
|
1920
|
-
"onUpdate:modelValue":
|
1921
|
-
disabled: e(
|
1861
|
+
ref: h,
|
1862
|
+
modelValue: e(b).rules,
|
1863
|
+
"onUpdate:modelValue": r[5] || (r[5] = (L) => e(b).rules = L),
|
1864
|
+
disabled: e(c) || e(i)
|
1922
1865
|
}, null, 8, ["modelValue", "disabled"])
|
1923
1866
|
]),
|
1924
1867
|
_: 1
|
@@ -1931,12 +1874,12 @@ const Te = /* @__PURE__ */ O({
|
|
1931
1874
|
}, 8, ["modelValue", "title", "executing", "onSubmit"]);
|
1932
1875
|
};
|
1933
1876
|
}
|
1934
|
-
}),
|
1877
|
+
}), Xe = /* @__PURE__ */ D({
|
1935
1878
|
__name: "index",
|
1936
1879
|
setup(x) {
|
1937
|
-
const
|
1880
|
+
const w = {
|
1938
1881
|
keyword: ""
|
1939
|
-
},
|
1882
|
+
}, y = [
|
1940
1883
|
{
|
1941
1884
|
label: a("base.sort"),
|
1942
1885
|
prop: "sort",
|
@@ -1969,98 +1912,361 @@ const Te = /* @__PURE__ */ O({
|
|
1969
1912
|
width: 60,
|
1970
1913
|
align: "center",
|
1971
1914
|
render: ({
|
1972
|
-
row:
|
1973
|
-
}) => l(
|
1974
|
-
onModify: () =>
|
1975
|
-
key:
|
1915
|
+
row: c
|
1916
|
+
}) => l(oe, {
|
1917
|
+
onModify: () => b({
|
1918
|
+
key: c.key
|
1976
1919
|
})
|
1977
1920
|
}, null)
|
1978
1921
|
}
|
1979
1922
|
], {
|
1980
|
-
requesting:
|
1981
|
-
} =
|
1982
|
-
tableRef:
|
1983
|
-
formModalRef:
|
1984
|
-
keyword:
|
1985
|
-
search:
|
1923
|
+
requesting: k
|
1924
|
+
} = F(Z), {
|
1925
|
+
tableRef: h,
|
1926
|
+
formModalRef: _,
|
1927
|
+
keyword: m,
|
1928
|
+
search: d,
|
1986
1929
|
reset: p,
|
1987
|
-
openFormModal:
|
1988
|
-
editFormModal:
|
1989
|
-
} = P(
|
1990
|
-
return (
|
1991
|
-
const
|
1992
|
-
return
|
1930
|
+
openFormModal: n,
|
1931
|
+
editFormModal: b
|
1932
|
+
} = P(w);
|
1933
|
+
return (c, i) => {
|
1934
|
+
const R = s("el-input"), v = s("el-space"), C = s("el-page-header"), f = s("el-card");
|
1935
|
+
return E(), q(f, {
|
1993
1936
|
class: "basic-card flex-full",
|
1994
1937
|
"body-class": "flex-1"
|
1995
1938
|
}, {
|
1996
|
-
header:
|
1939
|
+
header: o(() => [l(C, {
|
1997
1940
|
class: "basic-header"
|
1998
1941
|
}, {
|
1999
|
-
title:
|
2000
|
-
loading: e(
|
1942
|
+
title: o(() => [l(e(B), {
|
1943
|
+
loading: e(k),
|
2001
1944
|
onRefresh: e(p)
|
2002
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
2003
|
-
onOpen: e(
|
1945
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(re), {
|
1946
|
+
onOpen: e(n)
|
2004
1947
|
}, null, 8, ["onOpen"])]),
|
2005
|
-
content:
|
1948
|
+
content: o(() => [l(v, {
|
2006
1949
|
class: "search-bar"
|
2007
1950
|
}, {
|
2008
|
-
default:
|
1951
|
+
default: o(() => [l(R, {
|
2009
1952
|
class: "basic-search-input",
|
2010
|
-
modelValue: e(
|
2011
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
1953
|
+
modelValue: e(m).keyword,
|
1954
|
+
"onUpdate:modelValue": i[0] || (i[0] = (t) => e(m).keyword = t),
|
2012
1955
|
placeholder: e(a)("base.placeholder.keyword"),
|
2013
1956
|
clearable: "",
|
2014
|
-
onKeyup: i[1] || (i[1] =
|
2015
|
-
onClear: i[2] || (i[2] = (
|
2016
|
-
}, null, 8, ["modelValue", "placeholder"]), l(e(
|
2017
|
-
disabled: e(
|
2018
|
-
onSearch: i[3] || (i[3] = (
|
1957
|
+
onKeyup: i[1] || (i[1] = le((t) => e(d)(), ["enter"])),
|
1958
|
+
onClear: i[2] || (i[2] = (t) => e(d)())
|
1959
|
+
}, null, 8, ["modelValue", "placeholder"]), l(e(j), {
|
1960
|
+
disabled: e(k),
|
1961
|
+
onSearch: i[3] || (i[3] = (t) => e(d)())
|
2019
1962
|
}, null, 8, ["disabled"])]),
|
2020
1963
|
_: 1
|
2021
1964
|
})]),
|
2022
1965
|
_: 1
|
2023
1966
|
})]),
|
2024
|
-
default:
|
1967
|
+
default: o(() => [l(e(te), {
|
2025
1968
|
ref_key: "tableRef",
|
2026
|
-
ref:
|
1969
|
+
ref: h,
|
2027
1970
|
size: "small",
|
2028
|
-
columns:
|
2029
|
-
url: e(
|
2030
|
-
"search-param": e(
|
1971
|
+
columns: y,
|
1972
|
+
url: e(Z).urls[e(ne)],
|
1973
|
+
"search-param": e(m),
|
2031
1974
|
autoSearch: ""
|
2032
|
-
}, null, 8, ["url", "search-param"]), l(
|
1975
|
+
}, null, 8, ["url", "search-param"]), l(Je, {
|
2033
1976
|
ref_key: "formModalRef",
|
2034
|
-
ref:
|
1977
|
+
ref: _,
|
2035
1978
|
onRefresh: e(p)
|
2036
1979
|
}, null, 8, ["onRefresh"])]),
|
2037
1980
|
_: 1
|
2038
1981
|
});
|
2039
1982
|
};
|
2040
1983
|
}
|
2041
|
-
}),
|
1984
|
+
}), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2042
1985
|
__proto__: null,
|
2043
|
-
default:
|
2044
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
2045
|
-
|
2046
|
-
|
2047
|
-
|
2048
|
-
|
2049
|
-
|
2050
|
-
|
1986
|
+
default: Xe
|
1987
|
+
}, Symbol.toStringTag, { value: "Module" })), ce = {
|
1988
|
+
request: "request",
|
1989
|
+
error: "error",
|
1990
|
+
sql: "SQL"
|
1991
|
+
}, H = fe.createAutoApi("log", ce, "id", Object.keys(ce), [], []), nl = /* @__PURE__ */ D({
|
1992
|
+
__name: "index",
|
1993
|
+
setup(x) {
|
1994
|
+
const w = {
|
1995
|
+
dates: [T.getCurrentHour().format(T.DATE_VALUE_FORMAT), T.getCurrentHour(1).format(T.DATE_VALUE_FORMAT)]
|
1996
|
+
}, y = [{
|
1997
|
+
label: a("base.sort"),
|
1998
|
+
type: "index",
|
1999
|
+
width: 60
|
2000
|
+
}, {
|
2001
|
+
label: a("base.time"),
|
2002
|
+
prop: "time",
|
2003
|
+
width: 180,
|
2004
|
+
render: ({
|
2005
|
+
rowData: p
|
2006
|
+
}) => l(z, null, [T.formatDate(p.time)])
|
2007
|
+
}, {
|
2008
|
+
label: a("base.url"),
|
2009
|
+
prop: "url",
|
2010
|
+
align: "left",
|
2011
|
+
width: 200
|
2012
|
+
}], {
|
2013
|
+
requesting: k
|
2014
|
+
} = F(H), {
|
2015
|
+
tableRef: h,
|
2016
|
+
keyword: _,
|
2017
|
+
search: m,
|
2018
|
+
reset: d
|
2019
|
+
} = P(w);
|
2020
|
+
return (p, n) => {
|
2021
|
+
const b = s("el-date-picker"), c = s("el-space"), i = s("el-page-header"), R = s("el-card");
|
2022
|
+
return E(), q(R, {
|
2023
|
+
class: "basic-card flex-full",
|
2024
|
+
"body-class": "flex-1"
|
2025
|
+
}, {
|
2026
|
+
header: o(() => [l(i, {
|
2027
|
+
class: "basic-header"
|
2028
|
+
}, {
|
2029
|
+
title: o(() => [l(e(B), {
|
2030
|
+
loading: e(k),
|
2031
|
+
onRefresh: e(d)
|
2032
|
+
}, null, 8, ["loading", "onRefresh"])]),
|
2033
|
+
content: o(() => [l(c, {
|
2034
|
+
class: "search-bar"
|
2035
|
+
}, {
|
2036
|
+
default: o(() => [l(b, {
|
2037
|
+
modelValue: e(_).dates,
|
2038
|
+
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(_).dates = v),
|
2039
|
+
class: "basic-search-datetimerange",
|
2040
|
+
"value-format": e(T).DATE_HOUR_FORMAT,
|
2041
|
+
format: e(T).DATE_SHOW_FORMAT,
|
2042
|
+
type: "datetimerange",
|
2043
|
+
"range-separator": "-",
|
2044
|
+
"start-placeholder": e(a)("base.start_at"),
|
2045
|
+
"end-placeholder": e(a)("base.end_at"),
|
2046
|
+
clearable: !1,
|
2047
|
+
onChange: n[1] || (n[1] = (v) => e(m)())
|
2048
|
+
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(j), {
|
2049
|
+
disabled: e(k),
|
2050
|
+
onSearch: n[2] || (n[2] = (v) => e(m)())
|
2051
|
+
}, null, 8, ["disabled"])]),
|
2052
|
+
_: 1
|
2053
|
+
})]),
|
2054
|
+
_: 1
|
2055
|
+
})]),
|
2056
|
+
default: o(() => [l(e(pe), {
|
2057
|
+
ref_key: "tableRef",
|
2058
|
+
ref: h,
|
2059
|
+
size: "small",
|
2060
|
+
columns: y,
|
2061
|
+
url: e(H).urls.request,
|
2062
|
+
"search-param": e(_),
|
2063
|
+
autoSearch: ""
|
2064
|
+
}, null, 8, ["url", "search-param"])]),
|
2065
|
+
_: 1
|
2066
|
+
});
|
2067
|
+
};
|
2068
|
+
}
|
2069
|
+
}), rl = /* @__PURE__ */ D({
|
2070
|
+
__name: "index",
|
2071
|
+
setup(x) {
|
2072
|
+
const w = {
|
2073
|
+
dates: [T.getCurrentDate(-7).format(T.DATE_VALUE_FORMAT), T.getCurrentDate(0).format(T.DATE_VALUE_FORMAT)]
|
2074
|
+
}, y = [{
|
2075
|
+
label: a("base.sort"),
|
2076
|
+
type: "index",
|
2077
|
+
width: 60
|
2078
|
+
}, {
|
2079
|
+
label: a("base.time"),
|
2080
|
+
prop: "time",
|
2081
|
+
width: 180,
|
2082
|
+
render: ({
|
2083
|
+
rowData: p
|
2084
|
+
}) => l(z, null, [T.formatDate(p.time)])
|
2085
|
+
}, {
|
2086
|
+
label: a("base.url"),
|
2087
|
+
prop: "url",
|
2088
|
+
align: "left",
|
2089
|
+
width: 200
|
2090
|
+
}], {
|
2091
|
+
requesting: k
|
2092
|
+
} = F(H), {
|
2093
|
+
tableRef: h,
|
2094
|
+
keyword: _,
|
2095
|
+
search: m,
|
2096
|
+
reset: d
|
2097
|
+
} = P(w);
|
2098
|
+
return (p, n) => {
|
2099
|
+
const b = s("el-date-picker"), c = s("el-space"), i = s("el-page-header"), R = s("el-card");
|
2100
|
+
return E(), q(R, {
|
2101
|
+
class: "basic-card flex-full",
|
2102
|
+
"body-class": "flex-1"
|
2103
|
+
}, {
|
2104
|
+
header: o(() => [l(i, {
|
2105
|
+
class: "basic-header"
|
2106
|
+
}, {
|
2107
|
+
title: o(() => [l(e(B), {
|
2108
|
+
loading: e(k),
|
2109
|
+
onRefresh: e(d)
|
2110
|
+
}, null, 8, ["loading", "onRefresh"])]),
|
2111
|
+
content: o(() => [l(c, {
|
2112
|
+
class: "search-bar"
|
2113
|
+
}, {
|
2114
|
+
default: o(() => [l(b, {
|
2115
|
+
modelValue: e(_).dates,
|
2116
|
+
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(_).dates = v),
|
2117
|
+
class: "basic-search-daterange",
|
2118
|
+
"value-format": e(T).DATE_VALUE_FORMAT,
|
2119
|
+
format: e(T).DATE_FORMAT,
|
2120
|
+
type: "daterange",
|
2121
|
+
"range-separator": "-",
|
2122
|
+
"start-placeholder": e(a)("base.start_at"),
|
2123
|
+
"end-placeholder": e(a)("base.end_at"),
|
2124
|
+
clearable: !1,
|
2125
|
+
onChange: n[1] || (n[1] = (v) => e(m)())
|
2126
|
+
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(j), {
|
2127
|
+
disabled: e(k),
|
2128
|
+
onSearch: n[2] || (n[2] = (v) => e(m)())
|
2129
|
+
}, null, 8, ["disabled"])]),
|
2130
|
+
_: 1
|
2131
|
+
})]),
|
2132
|
+
_: 1
|
2133
|
+
})]),
|
2134
|
+
default: o(() => [l(e(pe), {
|
2135
|
+
ref_key: "tableRef",
|
2136
|
+
ref: h,
|
2137
|
+
size: "small",
|
2138
|
+
columns: y,
|
2139
|
+
url: e(H).urls.error,
|
2140
|
+
"search-param": e(_),
|
2141
|
+
autoSearch: ""
|
2142
|
+
}, null, 8, ["url", "search-param"])]),
|
2143
|
+
_: 1
|
2144
|
+
});
|
2145
|
+
};
|
2146
|
+
}
|
2147
|
+
}), ul = /* @__PURE__ */ D({
|
2148
|
+
__name: "index",
|
2149
|
+
setup(x) {
|
2150
|
+
const w = {
|
2151
|
+
dates: [T.getCurrentDate(-7).format(T.DATE_VALUE_FORMAT), T.getCurrentDate().format(T.DATE_VALUE_FORMAT)]
|
2152
|
+
}, y = [{
|
2153
|
+
label: a("base.sort"),
|
2154
|
+
type: "index",
|
2155
|
+
width: 60
|
2156
|
+
}, {
|
2157
|
+
label: a("base.time"),
|
2158
|
+
prop: "time",
|
2159
|
+
width: 180,
|
2160
|
+
render: ({
|
2161
|
+
rowData: p
|
2162
|
+
}) => l(z, null, [T.formatDate(p.time)])
|
2163
|
+
}, {
|
2164
|
+
label: a("base.url"),
|
2165
|
+
prop: "url",
|
2166
|
+
align: "left",
|
2167
|
+
width: 200
|
2168
|
+
}], {
|
2169
|
+
requesting: k
|
2170
|
+
} = F(H), {
|
2171
|
+
tableRef: h,
|
2172
|
+
keyword: _,
|
2173
|
+
search: m,
|
2174
|
+
reset: d
|
2175
|
+
} = P(w);
|
2176
|
+
return (p, n) => {
|
2177
|
+
const b = s("el-date-picker"), c = s("el-space"), i = s("el-page-header"), R = s("el-card");
|
2178
|
+
return E(), q(R, {
|
2179
|
+
class: "basic-card flex-full",
|
2180
|
+
"body-class": "flex-1"
|
2181
|
+
}, {
|
2182
|
+
header: o(() => [l(i, {
|
2183
|
+
class: "basic-header"
|
2184
|
+
}, {
|
2185
|
+
title: o(() => [l(e(B), {
|
2186
|
+
loading: e(k),
|
2187
|
+
onRefresh: e(d)
|
2188
|
+
}, null, 8, ["loading", "onRefresh"])]),
|
2189
|
+
content: o(() => [l(c, {
|
2190
|
+
class: "search-bar"
|
2191
|
+
}, {
|
2192
|
+
default: o(() => [l(b, {
|
2193
|
+
modelValue: e(_).dates,
|
2194
|
+
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(_).dates = v),
|
2195
|
+
class: "basic-search-daterange",
|
2196
|
+
"value-format": e(T).DATE_HOUR_FORMAT,
|
2197
|
+
format: e(T).DATE_FORMAT,
|
2198
|
+
type: "daterange",
|
2199
|
+
"range-separator": "-",
|
2200
|
+
"start-placeholder": e(a)("base.start_at"),
|
2201
|
+
"end-placeholder": e(a)("base.end_at"),
|
2202
|
+
clearable: !1,
|
2203
|
+
onChange: n[1] || (n[1] = (v) => e(m)())
|
2204
|
+
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(j), {
|
2205
|
+
disabled: e(k),
|
2206
|
+
onSearch: n[2] || (n[2] = (v) => e(m)())
|
2207
|
+
}, null, 8, ["disabled"])]),
|
2208
|
+
_: 1
|
2209
|
+
})]),
|
2210
|
+
_: 1
|
2211
|
+
})]),
|
2212
|
+
default: o(() => [l(e(pe), {
|
2213
|
+
ref_key: "tableRef",
|
2214
|
+
ref: h,
|
2215
|
+
size: "small",
|
2216
|
+
columns: y,
|
2217
|
+
url: e(H).urls.sql,
|
2218
|
+
"search-param": e(_),
|
2219
|
+
autoSearch: ""
|
2220
|
+
}, null, 8, ["url", "search-param"])]),
|
2221
|
+
_: 1
|
2222
|
+
});
|
2223
|
+
};
|
2224
|
+
}
|
2225
|
+
}), el = () => import("./index-SHsqnbNG.js"), ll = () => import("./index-CJMTIvHk.js"), al = () => import("./index-BMn8mAns.js"), sl = [
|
2226
|
+
{
|
2227
|
+
path: Le,
|
2228
|
+
name: "RequestLog",
|
2229
|
+
component: el,
|
2230
|
+
meta: {
|
2231
|
+
title: a("menu.RequestLog")
|
2232
|
+
}
|
2233
|
+
},
|
2234
|
+
{
|
2235
|
+
path: Ee,
|
2236
|
+
name: "ErrorLog",
|
2237
|
+
component: ll,
|
2238
|
+
meta: {
|
2239
|
+
title: a("menu.ErrorLog")
|
2240
|
+
}
|
2241
|
+
},
|
2242
|
+
{
|
2243
|
+
path: Se,
|
2244
|
+
name: "SqlLog",
|
2245
|
+
component: al,
|
2246
|
+
meta: {
|
2247
|
+
title: a("menu.SqlLog")
|
2248
|
+
}
|
2249
|
+
}
|
2250
|
+
], dl = {
|
2251
|
+
install: (x) => {
|
2252
|
+
Reflect.ownKeys(x._context.provides).some((w) => String(w) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app."), console.warn(Reflect.ownKeys(x._context.provides));
|
2051
2253
|
},
|
2052
2254
|
version: "__VERSION__"
|
2053
|
-
},
|
2054
|
-
"./views/admin/index.vue":
|
2055
|
-
"./views/language/index.vue":
|
2056
|
-
"./views/menu/index.vue":
|
2057
|
-
"./views/role/index.vue":
|
2255
|
+
}, pl = /* @__PURE__ */ Object.assign({
|
2256
|
+
"./views/admin/index.vue": Oe,
|
2257
|
+
"./views/language/index.vue": $e,
|
2258
|
+
"./views/menu/index.vue": Ie,
|
2259
|
+
"./views/role/index.vue": Ze
|
2058
2260
|
});
|
2059
2261
|
export {
|
2060
|
-
|
2061
|
-
|
2062
|
-
|
2063
|
-
|
2064
|
-
|
2065
|
-
|
2262
|
+
Te as AdminsPage,
|
2263
|
+
rl as ErrorLogsPage,
|
2264
|
+
De as LanguagesPage,
|
2265
|
+
sl as LogRoutes,
|
2266
|
+
je as MenusPage,
|
2267
|
+
nl as RequestLogsPage,
|
2268
|
+
Xe as RolesPage,
|
2269
|
+
ul as SQLLogsPage,
|
2270
|
+
pl as basicModules,
|
2271
|
+
dl as default
|
2066
2272
|
};
|