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