auto-vue-basic 0.0.77 → 0.0.79
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 +502 -499
- package/dist/auto-vue-basic.umd.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { defineComponent as O, createElementBlock as
|
|
2
|
-
import { ApiUtils as W, useLoading as E, useSelect as re, Translate as a, InlineRefreshButton as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as O, createElementBlock as I, openBlock as C, createElementVNode as B, toRef as ne, resolveComponent as s, createBlock as T, unref as e, isRef as P, withCtx as o, createVNode as l, normalizeClass as we, toDisplayString as z, ref as N, Fragment as G, withKeys as he, renderList as ae, isVNode as xe, reactive as Pe, onMounted as Be, watch as Re, nextTick as je, createCommentVNode as Ke, createTextVNode as Z, onBeforeMount as We } from "vue";
|
|
2
|
+
import { ApiUtils as W, useLoading as E, useSelect as re, Translate as a, InlineRefreshButton as me, useForm as X, FormDialog as ee, useCrudPage as F, DEFAULT_STATUS_KEY as Ue, ModifyButton as le, DEFAULT_REMOVE_KEY as Ye, ProTable as ce, DEFAULT_PAGE_KEY as Ve, SearchButton as oe, RefreshButton as K, OpenButton as j, useCacheStore as Ge, RequestButton as H, BasicDrawer as fe, BasicRadioButton as Se, RulesUtils as He, BasicAvatar as Qe, TimeUtils as $, ProTableList as de, AssetsUtils as Ce, notification as Je, DEFAULT_LIST_URL as Xe, REQUEST_LOG_URL as Ze, ERROR_LOG_URL as el, SQL_LOG_URL as ll } from "auto-vue-manual";
|
|
3
|
+
const al = {
|
|
4
4
|
tops: "tops",
|
|
5
5
|
rules: "rules"
|
|
6
|
-
}, Y = W.routineApi("menu", "id",
|
|
6
|
+
}, Y = W.routineApi("menu", "id", al, {}, ["TOP_MENU_LIST", "MENU_LIST"]), Le = W.routineApi("rule", "key");
|
|
7
7
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
8
|
-
var
|
|
8
|
+
var ol = /* @__PURE__ */ O({
|
|
9
9
|
name: "Key",
|
|
10
10
|
__name: "key",
|
|
11
11
|
setup(x) {
|
|
12
|
-
return (
|
|
12
|
+
return (R, k) => (C(), I("svg", {
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
14
|
viewBox: "0 0 1024 1024"
|
|
15
15
|
}, [
|
|
16
|
-
|
|
16
|
+
B("path", {
|
|
17
17
|
fill: "currentColor",
|
|
18
18
|
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"
|
|
19
19
|
})
|
|
20
20
|
]));
|
|
21
21
|
}
|
|
22
|
-
}),
|
|
22
|
+
}), tl = ol, nl = /* @__PURE__ */ O({
|
|
23
23
|
name: "Search",
|
|
24
24
|
__name: "search",
|
|
25
25
|
setup(x) {
|
|
26
|
-
return (
|
|
26
|
+
return (R, k) => (C(), I("svg", {
|
|
27
27
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28
28
|
viewBox: "0 0 1024 1024"
|
|
29
29
|
}, [
|
|
30
|
-
|
|
30
|
+
B("path", {
|
|
31
31
|
fill: "currentColor",
|
|
32
32
|
d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"
|
|
33
33
|
})
|
|
34
34
|
]));
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
37
|
-
const
|
|
36
|
+
}), rl = nl;
|
|
37
|
+
const dl = /* @__PURE__ */ O({
|
|
38
38
|
__name: "TopMenuSelect",
|
|
39
39
|
props: {
|
|
40
40
|
modelValue: {
|
|
@@ -48,9 +48,9 @@ const rl = /* @__PURE__ */ O({
|
|
|
48
48
|
},
|
|
49
49
|
emits: ["update:modelValue", "change"],
|
|
50
50
|
setup(x, {
|
|
51
|
-
emit:
|
|
51
|
+
emit: R
|
|
52
52
|
}) {
|
|
53
|
-
const k =
|
|
53
|
+
const k = R, h = x, {
|
|
54
54
|
requesting: V
|
|
55
55
|
} = E(Y), {
|
|
56
56
|
value: b,
|
|
@@ -78,26 +78,26 @@ const rl = /* @__PURE__ */ O({
|
|
|
78
78
|
filterOptions: e(n),
|
|
79
79
|
onChange: e(i)
|
|
80
80
|
}, {
|
|
81
|
-
prefix: o(() => [l(e(
|
|
81
|
+
prefix: o(() => [l(e(me), {
|
|
82
82
|
loading: e(V),
|
|
83
83
|
onRefresh: u[0] || (u[0] = (_) => e(p)(!0))
|
|
84
84
|
}, null, 8, ["loading"])]),
|
|
85
85
|
default: o(({
|
|
86
86
|
item: _
|
|
87
87
|
}) => [l(f, null, {
|
|
88
|
-
default: o(() => [
|
|
89
|
-
class:
|
|
90
|
-
}, null, 2),
|
|
88
|
+
default: o(() => [B("i", {
|
|
89
|
+
class: we(`icon iconfont ${_.icon}`)
|
|
90
|
+
}, null, 2), B("span", null, z(_.translate), 1)]),
|
|
91
91
|
_: 2
|
|
92
92
|
}, 1024)]),
|
|
93
93
|
_: 1
|
|
94
94
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
}),
|
|
97
|
+
}), sl = /* @__PURE__ */ O({
|
|
98
98
|
__name: "MenuFormModal",
|
|
99
99
|
emits: ["refresh"],
|
|
100
|
-
setup(x, { expose:
|
|
100
|
+
setup(x, { expose: R, emit: k }) {
|
|
101
101
|
const h = k, V = {
|
|
102
102
|
id: 0,
|
|
103
103
|
menu_id: 0,
|
|
@@ -163,19 +163,19 @@ const rl = /* @__PURE__ */ O({
|
|
|
163
163
|
trigger: "blur"
|
|
164
164
|
}
|
|
165
165
|
]
|
|
166
|
-
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed:
|
|
167
|
-
return
|
|
166
|
+
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed: D } = X(h, V, Y);
|
|
167
|
+
return R({
|
|
168
168
|
open: f,
|
|
169
169
|
modify: g
|
|
170
170
|
}), (w, t) => {
|
|
171
|
-
const d = s("el-form-item"), r = s("el-col"), y = s("el-input-number"), m = s("el-row"), S = s("el-input"),
|
|
171
|
+
const d = s("el-form-item"), r = s("el-col"), y = s("el-input-number"), m = s("el-row"), S = s("el-input"), A = s("el-switch"), q = s("el-form");
|
|
172
172
|
return C(), T(e(ee), {
|
|
173
173
|
modelValue: e(c),
|
|
174
|
-
"onUpdate:modelValue": t[17] || (t[17] = (
|
|
174
|
+
"onUpdate:modelValue": t[17] || (t[17] = (M) => P(c) ? c.value = M : null),
|
|
175
175
|
title: e(i)(),
|
|
176
176
|
width: "1000px",
|
|
177
177
|
executing: e(u),
|
|
178
|
-
onClosed: e(
|
|
178
|
+
onClosed: e(D),
|
|
179
179
|
onSubmit: e(_)
|
|
180
180
|
}, {
|
|
181
181
|
default: o(() => [
|
|
@@ -201,9 +201,9 @@ const rl = /* @__PURE__ */ O({
|
|
|
201
201
|
prop: "menu_id"
|
|
202
202
|
}, {
|
|
203
203
|
default: o(() => [
|
|
204
|
-
l(
|
|
204
|
+
l(dl, {
|
|
205
205
|
modelValue: e(n).menu_id,
|
|
206
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
206
|
+
"onUpdate:modelValue": t[0] || (t[0] = (M) => e(n).menu_id = M)
|
|
207
207
|
}, null, 8, ["modelValue"])
|
|
208
208
|
]),
|
|
209
209
|
_: 1
|
|
@@ -222,7 +222,7 @@ const rl = /* @__PURE__ */ O({
|
|
|
222
222
|
l(y, {
|
|
223
223
|
class: "w-full",
|
|
224
224
|
modelValue: e(n).sort,
|
|
225
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
225
|
+
"onUpdate:modelValue": t[1] || (t[1] = (M) => e(n).sort = M),
|
|
226
226
|
min: 0,
|
|
227
227
|
placeholder: e(a)("placeholder.input")
|
|
228
228
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -242,7 +242,7 @@ const rl = /* @__PURE__ */ O({
|
|
|
242
242
|
default: o(() => [
|
|
243
243
|
l(S, {
|
|
244
244
|
modelValue: e(n).module,
|
|
245
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
245
|
+
"onUpdate:modelValue": t[2] || (t[2] = (M) => e(n).module = M),
|
|
246
246
|
placeholder: e(a)("placeholder.input")
|
|
247
247
|
}, null, 8, ["modelValue", "placeholder"])
|
|
248
248
|
]),
|
|
@@ -255,7 +255,7 @@ const rl = /* @__PURE__ */ O({
|
|
|
255
255
|
default: o(() => [
|
|
256
256
|
l(S, {
|
|
257
257
|
modelValue: e(n).name,
|
|
258
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
258
|
+
"onUpdate:modelValue": t[3] || (t[3] = (M) => e(n).name = M),
|
|
259
259
|
placeholder: e(a)("placeholder.input")
|
|
260
260
|
}, null, 8, ["modelValue", "placeholder"])
|
|
261
261
|
]),
|
|
@@ -268,7 +268,7 @@ const rl = /* @__PURE__ */ O({
|
|
|
268
268
|
default: o(() => [
|
|
269
269
|
l(S, {
|
|
270
270
|
modelValue: e(n).en_name,
|
|
271
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
271
|
+
"onUpdate:modelValue": t[4] || (t[4] = (M) => e(n).en_name = M),
|
|
272
272
|
placeholder: e(a)("placeholder.input")
|
|
273
273
|
}, null, 8, ["modelValue", "placeholder"])
|
|
274
274
|
]),
|
|
@@ -281,7 +281,7 @@ const rl = /* @__PURE__ */ O({
|
|
|
281
281
|
default: o(() => [
|
|
282
282
|
l(S, {
|
|
283
283
|
modelValue: e(n).component,
|
|
284
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
284
|
+
"onUpdate:modelValue": t[5] || (t[5] = (M) => e(n).component = M),
|
|
285
285
|
placeholder: e(a)("placeholder.input")
|
|
286
286
|
}, null, 8, ["modelValue", "placeholder"])
|
|
287
287
|
]),
|
|
@@ -294,7 +294,7 @@ const rl = /* @__PURE__ */ O({
|
|
|
294
294
|
default: o(() => [
|
|
295
295
|
l(S, {
|
|
296
296
|
modelValue: e(n).url,
|
|
297
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
297
|
+
"onUpdate:modelValue": t[6] || (t[6] = (M) => e(n).url = M),
|
|
298
298
|
placeholder: e(a)("placeholder.input")
|
|
299
299
|
}, null, 8, ["modelValue", "placeholder"])
|
|
300
300
|
]),
|
|
@@ -307,7 +307,7 @@ const rl = /* @__PURE__ */ O({
|
|
|
307
307
|
default: o(() => [
|
|
308
308
|
l(S, {
|
|
309
309
|
modelValue: e(n).remark,
|
|
310
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
310
|
+
"onUpdate:modelValue": t[7] || (t[7] = (M) => e(n).remark = M),
|
|
311
311
|
placeholder: e(a)("placeholder.input")
|
|
312
312
|
}, null, 8, ["modelValue", "placeholder"])
|
|
313
313
|
]),
|
|
@@ -325,15 +325,15 @@ const rl = /* @__PURE__ */ O({
|
|
|
325
325
|
default: o(() => [
|
|
326
326
|
l(S, {
|
|
327
327
|
modelValue: e(n).icon,
|
|
328
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
328
|
+
"onUpdate:modelValue": t[8] || (t[8] = (M) => e(n).icon = M),
|
|
329
329
|
placeholder: e(a)("placeholder.input"),
|
|
330
|
-
onInput: t[9] || (t[9] = (
|
|
331
|
-
e(n).meta.icon =
|
|
330
|
+
onInput: t[9] || (t[9] = (M) => {
|
|
331
|
+
e(n).meta.icon = M;
|
|
332
332
|
})
|
|
333
333
|
}, {
|
|
334
334
|
prepend: o(() => [
|
|
335
|
-
|
|
336
|
-
class:
|
|
335
|
+
B("span", {
|
|
336
|
+
class: we("iconfont " + e(n).icon)
|
|
337
337
|
}, null, 2)
|
|
338
338
|
]),
|
|
339
339
|
_: 1
|
|
@@ -348,7 +348,7 @@ const rl = /* @__PURE__ */ O({
|
|
|
348
348
|
default: o(() => [
|
|
349
349
|
l(S, {
|
|
350
350
|
modelValue: e(n).meta.title,
|
|
351
|
-
"onUpdate:modelValue": t[10] || (t[10] = (
|
|
351
|
+
"onUpdate:modelValue": t[10] || (t[10] = (M) => e(n).meta.title = M),
|
|
352
352
|
placeholder: e(a)("placeholder.input")
|
|
353
353
|
}, null, 8, ["modelValue", "placeholder"])
|
|
354
354
|
]),
|
|
@@ -361,7 +361,7 @@ const rl = /* @__PURE__ */ O({
|
|
|
361
361
|
default: o(() => [
|
|
362
362
|
l(S, {
|
|
363
363
|
modelValue: e(n).meta.active,
|
|
364
|
-
"onUpdate:modelValue": t[11] || (t[11] = (
|
|
364
|
+
"onUpdate:modelValue": t[11] || (t[11] = (M) => e(n).meta.active = M),
|
|
365
365
|
placeholder: e(a)("placeholder.input")
|
|
366
366
|
}, null, 8, ["modelValue", "placeholder"])
|
|
367
367
|
]),
|
|
@@ -376,9 +376,9 @@ const rl = /* @__PURE__ */ O({
|
|
|
376
376
|
prop: "meta.link"
|
|
377
377
|
}, {
|
|
378
378
|
default: o(() => [
|
|
379
|
-
l(
|
|
379
|
+
l(A, {
|
|
380
380
|
modelValue: e(n).meta.link,
|
|
381
|
-
"onUpdate:modelValue": t[12] || (t[12] = (
|
|
381
|
+
"onUpdate:modelValue": t[12] || (t[12] = (M) => e(n).meta.link = M)
|
|
382
382
|
}, null, 8, ["modelValue"])
|
|
383
383
|
]),
|
|
384
384
|
_: 1
|
|
@@ -393,9 +393,9 @@ const rl = /* @__PURE__ */ O({
|
|
|
393
393
|
prop: "meta.keep_alive"
|
|
394
394
|
}, {
|
|
395
395
|
default: o(() => [
|
|
396
|
-
l(
|
|
396
|
+
l(A, {
|
|
397
397
|
modelValue: e(n).meta.keep_alive,
|
|
398
|
-
"onUpdate:modelValue": t[13] || (t[13] = (
|
|
398
|
+
"onUpdate:modelValue": t[13] || (t[13] = (M) => e(n).meta.keep_alive = M)
|
|
399
399
|
}, null, 8, ["modelValue"])
|
|
400
400
|
]),
|
|
401
401
|
_: 1
|
|
@@ -410,9 +410,9 @@ const rl = /* @__PURE__ */ O({
|
|
|
410
410
|
prop: "meta.hide"
|
|
411
411
|
}, {
|
|
412
412
|
default: o(() => [
|
|
413
|
-
l(
|
|
413
|
+
l(A, {
|
|
414
414
|
modelValue: e(n).meta.hide,
|
|
415
|
-
"onUpdate:modelValue": t[14] || (t[14] = (
|
|
415
|
+
"onUpdate:modelValue": t[14] || (t[14] = (M) => e(n).meta.hide = M)
|
|
416
416
|
}, null, 8, ["modelValue"])
|
|
417
417
|
]),
|
|
418
418
|
_: 1
|
|
@@ -427,9 +427,9 @@ const rl = /* @__PURE__ */ O({
|
|
|
427
427
|
prop: "meta.full"
|
|
428
428
|
}, {
|
|
429
429
|
default: o(() => [
|
|
430
|
-
l(
|
|
430
|
+
l(A, {
|
|
431
431
|
modelValue: e(n).meta.full,
|
|
432
|
-
"onUpdate:modelValue": t[15] || (t[15] = (
|
|
432
|
+
"onUpdate:modelValue": t[15] || (t[15] = (M) => e(n).meta.full = M)
|
|
433
433
|
}, null, 8, ["modelValue"])
|
|
434
434
|
]),
|
|
435
435
|
_: 1
|
|
@@ -444,9 +444,9 @@ const rl = /* @__PURE__ */ O({
|
|
|
444
444
|
prop: "meta.affix"
|
|
445
445
|
}, {
|
|
446
446
|
default: o(() => [
|
|
447
|
-
l(
|
|
447
|
+
l(A, {
|
|
448
448
|
modelValue: e(n).meta.affix,
|
|
449
|
-
"onUpdate:modelValue": t[16] || (t[16] = (
|
|
449
|
+
"onUpdate:modelValue": t[16] || (t[16] = (M) => e(n).meta.affix = M)
|
|
450
450
|
}, null, 8, ["modelValue"])
|
|
451
451
|
]),
|
|
452
452
|
_: 1
|
|
@@ -471,7 +471,7 @@ const rl = /* @__PURE__ */ O({
|
|
|
471
471
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
472
472
|
};
|
|
473
473
|
}
|
|
474
|
-
}),
|
|
474
|
+
}), ul = /* @__PURE__ */ O({
|
|
475
475
|
__name: "MenuSelect",
|
|
476
476
|
props: {
|
|
477
477
|
modelValue: {
|
|
@@ -485,9 +485,9 @@ const rl = /* @__PURE__ */ O({
|
|
|
485
485
|
},
|
|
486
486
|
emits: ["update:modelValue", "change"],
|
|
487
487
|
setup(x, {
|
|
488
|
-
emit:
|
|
488
|
+
emit: R
|
|
489
489
|
}) {
|
|
490
|
-
const k =
|
|
490
|
+
const k = R, h = x, {
|
|
491
491
|
requesting: V
|
|
492
492
|
} = E(Y), {
|
|
493
493
|
value: b,
|
|
@@ -514,26 +514,26 @@ const rl = /* @__PURE__ */ O({
|
|
|
514
514
|
filterOptions: e(n),
|
|
515
515
|
onChange: e(i)
|
|
516
516
|
}, {
|
|
517
|
-
prefix: o(() => [l(e(
|
|
517
|
+
prefix: o(() => [l(e(me), {
|
|
518
518
|
loading: e(V),
|
|
519
519
|
onRefresh: u[0] || (u[0] = (_) => e(p)(!0))
|
|
520
520
|
}, null, 8, ["loading"])]),
|
|
521
521
|
default: o(({
|
|
522
522
|
item: _
|
|
523
523
|
}) => [l(f, null, {
|
|
524
|
-
default: o(() => [
|
|
525
|
-
class:
|
|
526
|
-
}, null, 2),
|
|
524
|
+
default: o(() => [B("i", {
|
|
525
|
+
class: we(`icon iconfont ${_.icon}`)
|
|
526
|
+
}, null, 2), B("span", null, z(_.translate), 1)]),
|
|
527
527
|
_: 2
|
|
528
528
|
}, 1024)]),
|
|
529
529
|
_: 1
|
|
530
530
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
|
531
531
|
};
|
|
532
532
|
}
|
|
533
|
-
}),
|
|
533
|
+
}), il = /* @__PURE__ */ O({
|
|
534
534
|
__name: "MenuRuleFormModal",
|
|
535
535
|
emits: ["refresh"],
|
|
536
|
-
setup(x, { expose:
|
|
536
|
+
setup(x, { expose: R, emit: k }) {
|
|
537
537
|
const h = k, V = {
|
|
538
538
|
key: "",
|
|
539
539
|
menu_id: 0,
|
|
@@ -580,23 +580,23 @@ const rl = /* @__PURE__ */ O({
|
|
|
580
580
|
trigger: "blur"
|
|
581
581
|
}
|
|
582
582
|
]
|
|
583
|
-
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed:
|
|
584
|
-
return
|
|
583
|
+
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed: D } = X(h, V, Le);
|
|
584
|
+
return R({
|
|
585
585
|
open: f,
|
|
586
586
|
modify: g
|
|
587
587
|
}), (w, t) => {
|
|
588
|
-
const d = s("el-form-item"), r = s("el-input-number"), y = s("el-input"), m = s("el-col"), S = s("el-row"),
|
|
588
|
+
const d = s("el-form-item"), r = s("el-input-number"), y = s("el-input"), m = s("el-col"), S = s("el-row"), A = s("el-form");
|
|
589
589
|
return C(), T(e(ee), {
|
|
590
590
|
modelValue: e(c),
|
|
591
591
|
"onUpdate:modelValue": t[6] || (t[6] = (q) => P(c) ? c.value = q : null),
|
|
592
592
|
title: e(i)("menu.rules"),
|
|
593
593
|
width: "1000px",
|
|
594
594
|
executing: e(u),
|
|
595
|
-
onClosed: e(
|
|
595
|
+
onClosed: e(D),
|
|
596
596
|
onSubmit: e(_)
|
|
597
597
|
}, {
|
|
598
598
|
default: o(() => [
|
|
599
|
-
l(
|
|
599
|
+
l(A, {
|
|
600
600
|
ref_key: "form",
|
|
601
601
|
ref: p,
|
|
602
602
|
model: e(n),
|
|
@@ -614,7 +614,7 @@ const rl = /* @__PURE__ */ O({
|
|
|
614
614
|
prop: "menu_id"
|
|
615
615
|
}, {
|
|
616
616
|
default: o(() => [
|
|
617
|
-
l(
|
|
617
|
+
l(ul, {
|
|
618
618
|
modelValue: e(n).menu_id,
|
|
619
619
|
"onUpdate:modelValue": t[0] || (t[0] = (q) => e(n).menu_id = q)
|
|
620
620
|
}, null, 8, ["modelValue"])
|
|
@@ -710,16 +710,16 @@ const rl = /* @__PURE__ */ O({
|
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
712
|
});
|
|
713
|
-
function
|
|
714
|
-
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !
|
|
713
|
+
function Ae(x) {
|
|
714
|
+
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !xe(x);
|
|
715
715
|
}
|
|
716
|
-
const
|
|
716
|
+
const jl = /* @__PURE__ */ O({
|
|
717
717
|
__name: "index",
|
|
718
718
|
setup(x) {
|
|
719
|
-
const
|
|
719
|
+
const R = {
|
|
720
720
|
keyword: "",
|
|
721
721
|
status: 0
|
|
722
|
-
}, k =
|
|
722
|
+
}, k = N(""), h = [
|
|
723
723
|
{
|
|
724
724
|
label: a("base.sort"),
|
|
725
725
|
prop: "sort",
|
|
@@ -790,7 +790,7 @@ const Nl = /* @__PURE__ */ O({
|
|
|
790
790
|
class: "cursor-pointer",
|
|
791
791
|
closable: !0,
|
|
792
792
|
key: r.key,
|
|
793
|
-
onClick: () =>
|
|
793
|
+
onClick: () => D({
|
|
794
794
|
key: r.key
|
|
795
795
|
}),
|
|
796
796
|
onClose: () => k.value = r.key
|
|
@@ -805,13 +805,13 @@ const Nl = /* @__PURE__ */ O({
|
|
|
805
805
|
size: "small",
|
|
806
806
|
text: !0,
|
|
807
807
|
onClick: () => k.value = ""
|
|
808
|
-
},
|
|
808
|
+
}, Ae(y = a("base.cancel")) ? y : {
|
|
809
809
|
default: () => [y]
|
|
810
810
|
}), l(s("el-button"), {
|
|
811
811
|
size: "small",
|
|
812
812
|
type: "danger",
|
|
813
813
|
onClick: () => w(r.key)
|
|
814
|
-
},
|
|
814
|
+
}, Ae(m = a("base.confirm")) ? m : {
|
|
815
815
|
default: () => [m]
|
|
816
816
|
})])]);
|
|
817
817
|
}
|
|
@@ -827,7 +827,7 @@ const Nl = /* @__PURE__ */ O({
|
|
|
827
827
|
props: {
|
|
828
828
|
activeValue: 1,
|
|
829
829
|
inactiveValue: 2,
|
|
830
|
-
api: Y.urls[
|
|
830
|
+
api: Y.urls[Ue],
|
|
831
831
|
refresh: !0
|
|
832
832
|
}
|
|
833
833
|
},
|
|
@@ -856,20 +856,20 @@ const Nl = /* @__PURE__ */ O({
|
|
|
856
856
|
reset: v,
|
|
857
857
|
openFormModal: u,
|
|
858
858
|
editFormModal: f
|
|
859
|
-
} = F(
|
|
859
|
+
} = F(R), {
|
|
860
860
|
formModalRef: g,
|
|
861
861
|
openFormModal: _,
|
|
862
|
-
editFormModal:
|
|
862
|
+
editFormModal: D
|
|
863
863
|
} = F(), w = (t) => {
|
|
864
|
-
|
|
864
|
+
Le[Ye]({
|
|
865
865
|
key: t
|
|
866
866
|
}).then(() => {
|
|
867
867
|
k.value = "", n();
|
|
868
868
|
});
|
|
869
869
|
};
|
|
870
870
|
return (t, d) => {
|
|
871
|
-
const r = s("el-button"), y = s("el-input"), m = s("el-radio-button"), S = s("el-radio-group"),
|
|
872
|
-
return C(), T(
|
|
871
|
+
const r = s("el-button"), y = s("el-input"), m = s("el-radio-button"), S = s("el-radio-group"), A = s("el-space"), q = s("el-page-header"), M = s("el-card");
|
|
872
|
+
return C(), T(M, {
|
|
873
873
|
class: "basic-card flex-full",
|
|
874
874
|
"body-class": "flex-1",
|
|
875
875
|
onClick: d[5] || (d[5] = () => k.value = "")
|
|
@@ -884,10 +884,10 @@ const Nl = /* @__PURE__ */ O({
|
|
|
884
884
|
onOpen: e(u)
|
|
885
885
|
}, null, 8, ["onOpen"]), l(r, {
|
|
886
886
|
circle: "",
|
|
887
|
-
icon: e(
|
|
887
|
+
icon: e(tl),
|
|
888
888
|
onClick: e(_)
|
|
889
889
|
}, null, 8, ["icon", "onClick"])]),
|
|
890
|
-
content: o(() => [l(
|
|
890
|
+
content: o(() => [l(A, {
|
|
891
891
|
class: "search-bar"
|
|
892
892
|
}, {
|
|
893
893
|
default: o(() => [l(y, {
|
|
@@ -896,14 +896,14 @@ const Nl = /* @__PURE__ */ O({
|
|
|
896
896
|
"onUpdate:modelValue": d[0] || (d[0] = (L) => e(i).keyword = L),
|
|
897
897
|
placeholder: e(a)("placeholder.keyword"),
|
|
898
898
|
clearable: "",
|
|
899
|
-
onKeyup: d[1] || (d[1] =
|
|
899
|
+
onKeyup: d[1] || (d[1] = he((L) => e(p)(), ["enter"])),
|
|
900
900
|
onClear: d[2] || (d[2] = (L) => e(p)())
|
|
901
901
|
}, null, 8, ["modelValue", "placeholder"]), l(S, {
|
|
902
902
|
modelValue: e(i).status,
|
|
903
903
|
"onUpdate:modelValue": d[3] || (d[3] = (L) => e(i).status = L),
|
|
904
904
|
onChange: d[4] || (d[4] = (L) => e(p)())
|
|
905
905
|
}, {
|
|
906
|
-
default: o(() => [(C(),
|
|
906
|
+
default: o(() => [(C(), I(G, null, ae([0, 1, 2], (L) => l(m, {
|
|
907
907
|
key: L,
|
|
908
908
|
label: e(a)(`status.${L}`),
|
|
909
909
|
value: L
|
|
@@ -917,19 +917,19 @@ const Nl = /* @__PURE__ */ O({
|
|
|
917
917
|
})]),
|
|
918
918
|
_: 1
|
|
919
919
|
})]),
|
|
920
|
-
default: o(() => [l(e(
|
|
920
|
+
default: o(() => [l(e(ce), {
|
|
921
921
|
ref_key: "tableRef",
|
|
922
922
|
ref: b,
|
|
923
923
|
size: "small",
|
|
924
924
|
columns: h,
|
|
925
|
-
url: e(Y).urls[e(
|
|
925
|
+
url: e(Y).urls[e(Ve)],
|
|
926
926
|
"search-param": e(i),
|
|
927
927
|
"auto-search": ""
|
|
928
|
-
}, null, 8, ["url", "search-param"]), l(
|
|
928
|
+
}, null, 8, ["url", "search-param"]), l(sl, {
|
|
929
929
|
ref_key: "formModalRef",
|
|
930
930
|
ref: c,
|
|
931
931
|
onRefresh: e(n)
|
|
932
|
-
}, null, 8, ["onRefresh"]), l(
|
|
932
|
+
}, null, 8, ["onRefresh"]), l(il, {
|
|
933
933
|
ref_key: "ruleFormModalRef",
|
|
934
934
|
ref: g,
|
|
935
935
|
onRefresh: e(n)
|
|
@@ -938,15 +938,15 @@ const Nl = /* @__PURE__ */ O({
|
|
|
938
938
|
});
|
|
939
939
|
};
|
|
940
940
|
}
|
|
941
|
-
}),
|
|
941
|
+
}), ke = W.routineApi("role", "key"), pl = { class: "rule-check" }, ml = { style: { width: "80px", "line-height": "36px" } }, cl = /* @__PURE__ */ O({
|
|
942
942
|
__name: "RulesCheck",
|
|
943
943
|
props: {
|
|
944
944
|
modelValue: { type: Array, required: !0 },
|
|
945
945
|
disabled: { type: Boolean, default: !1 }
|
|
946
946
|
},
|
|
947
947
|
emits: ["update:modelValue"],
|
|
948
|
-
setup(x, { expose:
|
|
949
|
-
const { requesting: h } = E(Y), V = x, b = k, c =
|
|
948
|
+
setup(x, { expose: R, emit: k }) {
|
|
949
|
+
const { requesting: h } = E(Y), V = x, b = k, c = N(!1), i = Pe({
|
|
950
950
|
checkAll: !1,
|
|
951
951
|
indeterminate: !1,
|
|
952
952
|
MenuAll: {},
|
|
@@ -979,7 +979,7 @@ const Nl = /* @__PURE__ */ O({
|
|
|
979
979
|
function _() {
|
|
980
980
|
i.checkAll = !1, i.indeterminate = !1, i.MenuAll = {}, i.MenuList = {}, i.MenuIndeterminate = {}, v(), b("update:modelValue", []), c.value = !1;
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function D(w) {
|
|
983
983
|
var t;
|
|
984
984
|
if (Array.isArray(p.value) && p.value.length > 0) {
|
|
985
985
|
for (let d of p.value)
|
|
@@ -989,24 +989,24 @@ const Nl = /* @__PURE__ */ O({
|
|
|
989
989
|
g(), c.value = !0;
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
|
-
return
|
|
992
|
+
return Be(async () => {
|
|
993
993
|
var w;
|
|
994
|
-
(w = p.value) != null && w.length || await n(), !c.value && V.modelValue &&
|
|
995
|
-
}),
|
|
994
|
+
(w = p.value) != null && w.length || await n(), !c.value && V.modelValue && D(V.modelValue);
|
|
995
|
+
}), Re(
|
|
996
996
|
() => V.modelValue,
|
|
997
997
|
(w) => {
|
|
998
|
-
|
|
998
|
+
je(() => {
|
|
999
999
|
var t;
|
|
1000
|
-
c.value || !((t = p.value) != null && t.length) || w && w.length > 0 &&
|
|
1000
|
+
c.value || !((t = p.value) != null && t.length) || w && w.length > 0 && D(w);
|
|
1001
1001
|
});
|
|
1002
1002
|
},
|
|
1003
1003
|
{ deep: !0, immediate: !0 }
|
|
1004
|
-
),
|
|
1005
|
-
generateOption:
|
|
1004
|
+
), R({
|
|
1005
|
+
generateOption: D,
|
|
1006
1006
|
cleanChecked: _
|
|
1007
1007
|
}), (w, t) => {
|
|
1008
1008
|
const d = s("el-checkbox"), r = s("el-space"), y = s("el-text"), m = s("el-divider"), S = s("el-checkbox-group");
|
|
1009
|
-
return C(),
|
|
1009
|
+
return C(), I("div", pl, [
|
|
1010
1010
|
l(r, { style: { "margin-bottom": "6px" } }, {
|
|
1011
1011
|
default: o(() => [
|
|
1012
1012
|
l(d, {
|
|
@@ -1017,7 +1017,7 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1017
1017
|
onChange: u
|
|
1018
1018
|
}, {
|
|
1019
1019
|
default: o(() => [...t[1] || (t[1] = [
|
|
1020
|
-
|
|
1020
|
+
B("span", null, "全选", -1)
|
|
1021
1021
|
])]),
|
|
1022
1022
|
_: 1
|
|
1023
1023
|
}, 8, ["model-value", "indeterminate", "disabled"]),
|
|
@@ -1025,7 +1025,7 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1025
1025
|
loading: e(h),
|
|
1026
1026
|
text: "",
|
|
1027
1027
|
size: "small",
|
|
1028
|
-
onRefresh: t[0] || (t[0] = (
|
|
1028
|
+
onRefresh: t[0] || (t[0] = (A) => e(n)(!0))
|
|
1029
1029
|
}, null, 8, ["loading"])
|
|
1030
1030
|
]),
|
|
1031
1031
|
_: 1
|
|
@@ -1036,8 +1036,8 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1036
1036
|
class: "rule-check-content"
|
|
1037
1037
|
}, {
|
|
1038
1038
|
default: o(() => [
|
|
1039
|
-
(C(!0),
|
|
1040
|
-
key:
|
|
1039
|
+
(C(!0), I(G, null, ae(e(p), (A) => (C(), I("div", {
|
|
1040
|
+
key: A.id
|
|
1041
1041
|
}, [
|
|
1042
1042
|
l(r, {
|
|
1043
1043
|
direction: "horizontal",
|
|
@@ -1046,15 +1046,15 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1046
1046
|
default: o(() => [
|
|
1047
1047
|
l(d, {
|
|
1048
1048
|
style: { "min-width": "150px" },
|
|
1049
|
-
"model-value": i.MenuAll[
|
|
1050
|
-
disabled: x.disabled || !
|
|
1051
|
-
indeterminate: i.MenuIndeterminate[
|
|
1052
|
-
onChange: (q) => f(q,
|
|
1049
|
+
"model-value": i.MenuAll[A.id],
|
|
1050
|
+
disabled: x.disabled || !A.rules || A.rules.length <= 0,
|
|
1051
|
+
indeterminate: i.MenuIndeterminate[A.id],
|
|
1052
|
+
onChange: (q) => f(q, A.id)
|
|
1053
1053
|
}, {
|
|
1054
1054
|
default: o(() => [
|
|
1055
1055
|
l(y, { style: { "font-size": "15px" } }, {
|
|
1056
1056
|
default: o(() => [
|
|
1057
|
-
Z(z(
|
|
1057
|
+
Z(z(A.translate), 1)
|
|
1058
1058
|
]),
|
|
1059
1059
|
_: 2
|
|
1060
1060
|
}, 1024)
|
|
@@ -1062,27 +1062,27 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1062
1062
|
_: 2
|
|
1063
1063
|
}, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
|
|
1064
1064
|
l(m, { direction: "vertical" }),
|
|
1065
|
-
|
|
1065
|
+
A.rules ? (C(), T(S, {
|
|
1066
1066
|
key: 0,
|
|
1067
|
-
modelValue: i.MenuList[
|
|
1068
|
-
"onUpdate:modelValue": (q) => i.MenuList[
|
|
1067
|
+
modelValue: i.MenuList[A.id],
|
|
1068
|
+
"onUpdate:modelValue": (q) => i.MenuList[A.id] = q,
|
|
1069
1069
|
disabled: x.disabled,
|
|
1070
1070
|
style: { margin: "auto" },
|
|
1071
1071
|
onChange: g
|
|
1072
1072
|
}, {
|
|
1073
1073
|
default: o(() => [
|
|
1074
|
-
(C(!0),
|
|
1074
|
+
(C(!0), I(G, null, ae(A.rules, (q) => (C(), T(d, {
|
|
1075
1075
|
key: q.key,
|
|
1076
1076
|
value: q.key
|
|
1077
1077
|
}, {
|
|
1078
1078
|
default: o(() => [
|
|
1079
|
-
|
|
1079
|
+
B("div", ml, z(q.translate), 1)
|
|
1080
1080
|
]),
|
|
1081
1081
|
_: 2
|
|
1082
1082
|
}, 1032, ["value"]))), 128))
|
|
1083
1083
|
]),
|
|
1084
1084
|
_: 2
|
|
1085
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
|
1085
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : Ke("", !0)
|
|
1086
1086
|
]),
|
|
1087
1087
|
_: 2
|
|
1088
1088
|
}, 1024)
|
|
@@ -1093,16 +1093,16 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1093
1093
|
]);
|
|
1094
1094
|
};
|
|
1095
1095
|
}
|
|
1096
|
-
}),
|
|
1096
|
+
}), qe = (x, R) => {
|
|
1097
1097
|
const k = x.__vccOpts || x;
|
|
1098
|
-
for (const [h, V] of
|
|
1098
|
+
for (const [h, V] of R)
|
|
1099
1099
|
k[h] = V;
|
|
1100
1100
|
return k;
|
|
1101
|
-
},
|
|
1101
|
+
}, fl = /* @__PURE__ */ qe(cl, [["__scopeId", "data-v-7adb5f76"]]), _l = /* @__PURE__ */ O({
|
|
1102
1102
|
__name: "RoleFormModal",
|
|
1103
1103
|
emits: ["refresh"],
|
|
1104
|
-
setup(x, { expose:
|
|
1105
|
-
const h = k, V =
|
|
1104
|
+
setup(x, { expose: R, emit: k }) {
|
|
1105
|
+
const h = k, V = N(), b = {
|
|
1106
1106
|
key: "",
|
|
1107
1107
|
module: "",
|
|
1108
1108
|
sort: 0,
|
|
@@ -1125,15 +1125,15 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1125
1125
|
trigger: "blur"
|
|
1126
1126
|
}
|
|
1127
1127
|
]
|
|
1128
|
-
}, { modal: i, title: p, form: n, formData: v, requesting: u, executing: f, open: g, modify: _, submit:
|
|
1128
|
+
}, { modal: i, title: p, form: n, formData: v, requesting: u, executing: f, open: g, modify: _, submit: D, closed: w } = X(h, b, ke), t = () => {
|
|
1129
1129
|
var d;
|
|
1130
1130
|
(d = V.value) == null || d.cleanChecked(), w();
|
|
1131
1131
|
};
|
|
1132
|
-
return
|
|
1132
|
+
return R({
|
|
1133
1133
|
open: g,
|
|
1134
1134
|
modify: _
|
|
1135
1135
|
}), (d, r) => {
|
|
1136
|
-
const y = s("el-input"), m = s("el-form-item"), S = s("el-col"),
|
|
1136
|
+
const y = s("el-input"), m = s("el-form-item"), S = s("el-col"), A = s("el-input-number"), q = s("el-row"), M = s("el-form");
|
|
1137
1137
|
return C(), T(e(ee), {
|
|
1138
1138
|
modelValue: e(i),
|
|
1139
1139
|
"onUpdate:modelValue": r[6] || (r[6] = (L) => P(i) ? i.value = L : null),
|
|
@@ -1141,10 +1141,10 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1141
1141
|
width: "1000px",
|
|
1142
1142
|
executing: e(f),
|
|
1143
1143
|
onClosed: t,
|
|
1144
|
-
onSubmit: e(
|
|
1144
|
+
onSubmit: e(D)
|
|
1145
1145
|
}, {
|
|
1146
1146
|
default: o(() => [
|
|
1147
|
-
l(
|
|
1147
|
+
l(M, {
|
|
1148
1148
|
ref_key: "form",
|
|
1149
1149
|
ref: n,
|
|
1150
1150
|
model: e(v),
|
|
@@ -1180,7 +1180,7 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1180
1180
|
prop: "sort"
|
|
1181
1181
|
}, {
|
|
1182
1182
|
default: o(() => [
|
|
1183
|
-
l(
|
|
1183
|
+
l(A, {
|
|
1184
1184
|
class: "w-full",
|
|
1185
1185
|
modelValue: e(v).sort,
|
|
1186
1186
|
"onUpdate:modelValue": r[1] || (r[1] = (L) => e(v).sort = L),
|
|
@@ -1240,7 +1240,7 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1240
1240
|
prop: "rules"
|
|
1241
1241
|
}, {
|
|
1242
1242
|
default: o(() => [
|
|
1243
|
-
l(
|
|
1243
|
+
l(fl, {
|
|
1244
1244
|
ref_key: "rulesCheck",
|
|
1245
1245
|
ref: V,
|
|
1246
1246
|
modelValue: e(v).rules,
|
|
@@ -1258,10 +1258,10 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1258
1258
|
}, 8, ["modelValue", "title", "executing", "onSubmit"]);
|
|
1259
1259
|
};
|
|
1260
1260
|
}
|
|
1261
|
-
}),
|
|
1261
|
+
}), Kl = /* @__PURE__ */ O({
|
|
1262
1262
|
__name: "index",
|
|
1263
1263
|
setup(x) {
|
|
1264
|
-
const
|
|
1264
|
+
const R = {
|
|
1265
1265
|
keyword: ""
|
|
1266
1266
|
}, k = [
|
|
1267
1267
|
{
|
|
@@ -1306,7 +1306,7 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1306
1306
|
}
|
|
1307
1307
|
], {
|
|
1308
1308
|
requesting: h
|
|
1309
|
-
} = E(
|
|
1309
|
+
} = E(ke), {
|
|
1310
1310
|
tableRef: V,
|
|
1311
1311
|
formModalRef: b,
|
|
1312
1312
|
keyword: c,
|
|
@@ -1315,9 +1315,9 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1315
1315
|
refresh: n,
|
|
1316
1316
|
openFormModal: v,
|
|
1317
1317
|
editFormModal: u
|
|
1318
|
-
} = F(
|
|
1318
|
+
} = F(R);
|
|
1319
1319
|
return (f, g) => {
|
|
1320
|
-
const _ = s("el-input"),
|
|
1320
|
+
const _ = s("el-input"), D = s("el-space"), w = s("el-page-header"), t = s("el-card");
|
|
1321
1321
|
return C(), T(t, {
|
|
1322
1322
|
class: "basic-card flex-full",
|
|
1323
1323
|
"body-class": "flex-1"
|
|
@@ -1331,7 +1331,7 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1331
1331
|
}, null, 8, ["loading", "onRefresh"]), l(e(j), {
|
|
1332
1332
|
onOpen: e(v)
|
|
1333
1333
|
}, null, 8, ["onOpen"])]),
|
|
1334
|
-
content: o(() => [l(
|
|
1334
|
+
content: o(() => [l(D, {
|
|
1335
1335
|
class: "search-bar"
|
|
1336
1336
|
}, {
|
|
1337
1337
|
default: o(() => [l(_, {
|
|
@@ -1340,7 +1340,7 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1340
1340
|
"onUpdate:modelValue": g[0] || (g[0] = (d) => e(c).keyword = d),
|
|
1341
1341
|
placeholder: e(a)("placeholder.keyword"),
|
|
1342
1342
|
clearable: "",
|
|
1343
|
-
onKeyup: g[1] || (g[1] =
|
|
1343
|
+
onKeyup: g[1] || (g[1] = he((d) => e(i)(), ["enter"])),
|
|
1344
1344
|
onClear: g[2] || (g[2] = (d) => e(i)())
|
|
1345
1345
|
}, null, 8, ["modelValue", "placeholder"]), l(e(oe), {
|
|
1346
1346
|
disabled: e(h),
|
|
@@ -1350,14 +1350,14 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1350
1350
|
})]),
|
|
1351
1351
|
_: 1
|
|
1352
1352
|
})]),
|
|
1353
|
-
default: o(() => [l(e(
|
|
1353
|
+
default: o(() => [l(e(ce), {
|
|
1354
1354
|
ref_key: "tableRef",
|
|
1355
1355
|
ref: V,
|
|
1356
1356
|
columns: k,
|
|
1357
|
-
url: e(
|
|
1357
|
+
url: e(ke).urls[e(Ve)],
|
|
1358
1358
|
"search-param": e(c),
|
|
1359
1359
|
"auto-search": ""
|
|
1360
|
-
}, null, 8, ["url", "search-param"]), l(
|
|
1360
|
+
}, null, 8, ["url", "search-param"]), l(_l, {
|
|
1361
1361
|
ref_key: "formModalRef",
|
|
1362
1362
|
ref: b,
|
|
1363
1363
|
onRefresh: e(n)
|
|
@@ -1366,12 +1366,12 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1366
1366
|
});
|
|
1367
1367
|
};
|
|
1368
1368
|
}
|
|
1369
|
-
}),
|
|
1369
|
+
}), J = W.routineApi("I18N", "uuid", {
|
|
1370
1370
|
modules: "modules",
|
|
1371
1371
|
languages: "languages"
|
|
1372
1372
|
}, { gen: "gen" }, ["I18N_MODULES"]), te = W.routineApi("I18N_template", "uuid", {
|
|
1373
1373
|
apps: "apps"
|
|
1374
|
-
}),
|
|
1374
|
+
}), Te = /* @__PURE__ */ O({
|
|
1375
1375
|
__name: "ModuleSelect",
|
|
1376
1376
|
props: {
|
|
1377
1377
|
modelValue: {
|
|
@@ -1394,11 +1394,11 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1394
1394
|
},
|
|
1395
1395
|
emits: ["update:modelValue", "update:value", "change"],
|
|
1396
1396
|
setup(x, {
|
|
1397
|
-
emit:
|
|
1397
|
+
emit: R
|
|
1398
1398
|
}) {
|
|
1399
|
-
const k =
|
|
1399
|
+
const k = R, h = x, {
|
|
1400
1400
|
requesting: V
|
|
1401
|
-
} = E(
|
|
1401
|
+
} = E(J), {
|
|
1402
1402
|
value: b,
|
|
1403
1403
|
options: c,
|
|
1404
1404
|
change: i,
|
|
@@ -1406,8 +1406,8 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1406
1406
|
filterOptions: n
|
|
1407
1407
|
} = re(ne(h, "modelValue"), k, {
|
|
1408
1408
|
key: "I18N_MODULES",
|
|
1409
|
-
url:
|
|
1410
|
-
api:
|
|
1409
|
+
url: J.urls.modules,
|
|
1410
|
+
api: J,
|
|
1411
1411
|
isArray: !0
|
|
1412
1412
|
});
|
|
1413
1413
|
return (v, u) => {
|
|
@@ -1427,28 +1427,28 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1427
1427
|
filterOptions: e(n),
|
|
1428
1428
|
onChange: e(i)
|
|
1429
1429
|
}, {
|
|
1430
|
-
prefix: o(() => [l(e(
|
|
1430
|
+
prefix: o(() => [l(e(me), {
|
|
1431
1431
|
loading: e(V),
|
|
1432
1432
|
onRefresh: u[0] || (u[0] = (_) => e(p)(!0))
|
|
1433
1433
|
}, null, 8, ["loading"])]),
|
|
1434
1434
|
default: o(({
|
|
1435
1435
|
item: _
|
|
1436
1436
|
}) => [l(f, null, {
|
|
1437
|
-
default: o(() => [
|
|
1437
|
+
default: o(() => [B("span", null, z(_.value), 1)]),
|
|
1438
1438
|
_: 2
|
|
1439
1439
|
}, 1024)]),
|
|
1440
1440
|
_: 1
|
|
1441
1441
|
}, 8, ["modelValue", "options", "multiple", "disabled", "clearable", "allow-create", "placeholder", "filterOptions", "onChange"]);
|
|
1442
1442
|
};
|
|
1443
1443
|
}
|
|
1444
|
-
}),
|
|
1444
|
+
}), bl = /* @__PURE__ */ O({
|
|
1445
1445
|
__name: "I18N",
|
|
1446
1446
|
emits: ["refresh"],
|
|
1447
|
-
setup(x, { expose:
|
|
1447
|
+
setup(x, { expose: R, emit: k }) {
|
|
1448
1448
|
const h = k, V = {
|
|
1449
1449
|
uuid: "",
|
|
1450
1450
|
key: "",
|
|
1451
|
-
module:
|
|
1451
|
+
module: void 0,
|
|
1452
1452
|
language: {
|
|
1453
1453
|
"zh-CN": "",
|
|
1454
1454
|
"en-US": ""
|
|
@@ -1458,37 +1458,30 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1458
1458
|
module: [
|
|
1459
1459
|
{
|
|
1460
1460
|
required: !0,
|
|
1461
|
-
message: a("
|
|
1461
|
+
message: a("i18n.verify.module"),
|
|
1462
1462
|
trigger: "blur"
|
|
1463
1463
|
}
|
|
1464
1464
|
],
|
|
1465
1465
|
key: [
|
|
1466
1466
|
{
|
|
1467
1467
|
required: !0,
|
|
1468
|
-
message: a("
|
|
1468
|
+
message: a("i18n.verify.key"),
|
|
1469
1469
|
trigger: "blur"
|
|
1470
1470
|
}
|
|
1471
1471
|
],
|
|
1472
1472
|
language: [
|
|
1473
1473
|
{
|
|
1474
1474
|
required: !0,
|
|
1475
|
-
message: a("
|
|
1475
|
+
message: a("i18n.verify.language"),
|
|
1476
1476
|
trigger: "change"
|
|
1477
1477
|
}
|
|
1478
|
-
],
|
|
1479
|
-
result: [
|
|
1480
|
-
{
|
|
1481
|
-
required: !0,
|
|
1482
|
-
message: a("language.placeholder.result"),
|
|
1483
|
-
trigger: "blur"
|
|
1484
|
-
}
|
|
1485
1478
|
]
|
|
1486
|
-
}, c =
|
|
1479
|
+
}, c = N([]), i = Ge();
|
|
1487
1480
|
function p() {
|
|
1488
1481
|
const r = {
|
|
1489
1482
|
isArray: !0,
|
|
1490
1483
|
key: "I18N_LANGUAGES",
|
|
1491
|
-
url:
|
|
1484
|
+
url: J.urls.languages,
|
|
1492
1485
|
params: {}
|
|
1493
1486
|
};
|
|
1494
1487
|
i.GET_CACHE({ ...r, force: !0 }).then((y) => {
|
|
@@ -1496,15 +1489,15 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1496
1489
|
});
|
|
1497
1490
|
}
|
|
1498
1491
|
p();
|
|
1499
|
-
const { modal: n, title: v, form: u, formData: f, requesting: g, executing: _, open:
|
|
1500
|
-
return
|
|
1501
|
-
open:
|
|
1492
|
+
const { modal: n, title: v, form: u, formData: f, requesting: g, executing: _, open: D, modify: w, submit: t, closed: d } = X(h, V, J);
|
|
1493
|
+
return R({
|
|
1494
|
+
open: D,
|
|
1502
1495
|
modify: w
|
|
1503
1496
|
}), (r, y) => {
|
|
1504
|
-
const m = s("el-form-item"), S = s("el-input"),
|
|
1497
|
+
const m = s("el-form-item"), S = s("el-input"), A = s("el-space"), q = s("el-form");
|
|
1505
1498
|
return C(), T(e(ee), {
|
|
1506
1499
|
modelValue: e(n),
|
|
1507
|
-
"onUpdate:modelValue": y[3] || (y[3] = (
|
|
1500
|
+
"onUpdate:modelValue": y[3] || (y[3] = (M) => P(n) ? n.value = M : null),
|
|
1508
1501
|
title: e(v)(),
|
|
1509
1502
|
width: "600px",
|
|
1510
1503
|
executing: e(_),
|
|
@@ -1527,9 +1520,9 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1527
1520
|
required: ""
|
|
1528
1521
|
}, {
|
|
1529
1522
|
default: o(() => [
|
|
1530
|
-
l(
|
|
1523
|
+
l(Te, {
|
|
1531
1524
|
modelValue: e(f).module,
|
|
1532
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
1525
|
+
"onUpdate:modelValue": y[0] || (y[0] = (M) => e(f).module = M),
|
|
1533
1526
|
"allow-create": ""
|
|
1534
1527
|
}, null, 8, ["modelValue"])
|
|
1535
1528
|
]),
|
|
@@ -1543,8 +1536,8 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1543
1536
|
default: o(() => [
|
|
1544
1537
|
l(S, {
|
|
1545
1538
|
modelValue: e(f).key,
|
|
1546
|
-
"onUpdate:modelValue": y[1] || (y[1] = (
|
|
1547
|
-
placeholder: e(a)("
|
|
1539
|
+
"onUpdate:modelValue": y[1] || (y[1] = (M) => e(f).key = M),
|
|
1540
|
+
placeholder: e(a)("i18n.placeholder.key")
|
|
1548
1541
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1549
1542
|
]),
|
|
1550
1543
|
_: 1
|
|
@@ -1555,20 +1548,20 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1555
1548
|
required: ""
|
|
1556
1549
|
}, {
|
|
1557
1550
|
default: o(() => [
|
|
1558
|
-
l(
|
|
1551
|
+
l(A, {
|
|
1559
1552
|
direction: "vertical",
|
|
1560
1553
|
fill: "",
|
|
1561
1554
|
style: { width: "100%" }
|
|
1562
1555
|
}, {
|
|
1563
1556
|
default: o(() => [
|
|
1564
|
-
(C(!0),
|
|
1557
|
+
(C(!0), I(G, null, ae(c.value, (M) => (C(), I("div", { key: M }, [
|
|
1565
1558
|
l(S, {
|
|
1566
|
-
modelValue: e(f).language[
|
|
1567
|
-
"onUpdate:modelValue": (L) => e(f).language[
|
|
1568
|
-
placeholder: e(a)("i18n.placeholder.
|
|
1559
|
+
modelValue: e(f).language[M],
|
|
1560
|
+
"onUpdate:modelValue": (L) => e(f).language[M] = L,
|
|
1561
|
+
placeholder: e(a)("i18n.placeholder.language")
|
|
1569
1562
|
}, {
|
|
1570
1563
|
prepend: o(() => [
|
|
1571
|
-
Z(z(
|
|
1564
|
+
Z(z(M), 1)
|
|
1572
1565
|
]),
|
|
1573
1566
|
_: 2
|
|
1574
1567
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
@@ -1586,8 +1579,8 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1586
1579
|
default: o(() => [
|
|
1587
1580
|
l(S, {
|
|
1588
1581
|
modelValue: e(f).remark,
|
|
1589
|
-
"onUpdate:modelValue": y[2] || (y[2] = (
|
|
1590
|
-
placeholder: e(a)("placeholder.
|
|
1582
|
+
"onUpdate:modelValue": y[2] || (y[2] = (M) => e(f).remark = M),
|
|
1583
|
+
placeholder: e(a)("placeholder.remark")
|
|
1591
1584
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1592
1585
|
]),
|
|
1593
1586
|
_: 1
|
|
@@ -1601,37 +1594,37 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1601
1594
|
};
|
|
1602
1595
|
}
|
|
1603
1596
|
});
|
|
1604
|
-
function
|
|
1605
|
-
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !
|
|
1597
|
+
function gl(x) {
|
|
1598
|
+
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !xe(x);
|
|
1606
1599
|
}
|
|
1607
|
-
const
|
|
1600
|
+
const Oe = /* @__PURE__ */ O({
|
|
1608
1601
|
__name: "I18N",
|
|
1609
1602
|
emits: ["closed", "choosed"],
|
|
1610
1603
|
setup(x, {
|
|
1611
|
-
expose:
|
|
1604
|
+
expose: R,
|
|
1612
1605
|
emit: k
|
|
1613
1606
|
}) {
|
|
1614
|
-
const h =
|
|
1607
|
+
const h = N(!1), V = k, b = {
|
|
1615
1608
|
keyword: "",
|
|
1616
1609
|
module: void 0,
|
|
1617
1610
|
status: 0
|
|
1618
1611
|
}, c = [{
|
|
1619
|
-
label: a("
|
|
1612
|
+
label: a("i18n.module"),
|
|
1620
1613
|
prop: "module",
|
|
1621
1614
|
width: 120
|
|
1622
1615
|
}, {
|
|
1623
|
-
label: a("
|
|
1616
|
+
label: a("i18n.key"),
|
|
1624
1617
|
prop: "key",
|
|
1625
1618
|
width: 200
|
|
1626
1619
|
}, {
|
|
1627
|
-
label: a("
|
|
1620
|
+
label: a("i18n.i18n"),
|
|
1628
1621
|
align: "left",
|
|
1629
1622
|
prop: "language",
|
|
1630
1623
|
render: ({
|
|
1631
1624
|
row: y
|
|
1632
1625
|
}) => {
|
|
1633
|
-
const S = Object.keys(y.language).filter((
|
|
1634
|
-
return l(s("el-space"), null,
|
|
1626
|
+
const S = Object.keys(y.language).filter((A) => !!y.language[A]).map((A) => `${A}: ${y.language[A]}`).join("; ");
|
|
1627
|
+
return l(s("el-space"), null, gl(S) ? S : {
|
|
1635
1628
|
default: () => [S]
|
|
1636
1629
|
});
|
|
1637
1630
|
}
|
|
@@ -1643,7 +1636,7 @@ const Te = /* @__PURE__ */ O({
|
|
|
1643
1636
|
props: {
|
|
1644
1637
|
activeValue: 1,
|
|
1645
1638
|
inactiveValue: 2,
|
|
1646
|
-
api:
|
|
1639
|
+
api: J.urls[Ue],
|
|
1647
1640
|
refresh: !0
|
|
1648
1641
|
}
|
|
1649
1642
|
}, {
|
|
@@ -1659,7 +1652,7 @@ const Te = /* @__PURE__ */ O({
|
|
|
1659
1652
|
onModify: () => w({
|
|
1660
1653
|
uuid: y.uuid
|
|
1661
1654
|
})
|
|
1662
|
-
}, null), l(
|
|
1655
|
+
}, null), l(H, {
|
|
1663
1656
|
size: "default",
|
|
1664
1657
|
text: !0,
|
|
1665
1658
|
type: "danger",
|
|
@@ -1670,18 +1663,18 @@ const Te = /* @__PURE__ */ O({
|
|
|
1670
1663
|
}], {
|
|
1671
1664
|
requesting: i,
|
|
1672
1665
|
executing: p
|
|
1673
|
-
} = E(
|
|
1666
|
+
} = E(J), {
|
|
1674
1667
|
tableRef: n,
|
|
1675
1668
|
formModalRef: v,
|
|
1676
1669
|
keyword: u,
|
|
1677
1670
|
search: f,
|
|
1678
1671
|
reset: g,
|
|
1679
1672
|
refresh: _,
|
|
1680
|
-
openFormModal:
|
|
1673
|
+
openFormModal: D,
|
|
1681
1674
|
editFormModal: w
|
|
1682
1675
|
} = F(b);
|
|
1683
1676
|
function t(y) {
|
|
1684
|
-
return
|
|
1677
|
+
return J.remove({
|
|
1685
1678
|
uuid: y
|
|
1686
1679
|
}).finally(() => {
|
|
1687
1680
|
_();
|
|
@@ -1693,15 +1686,15 @@ const Te = /* @__PURE__ */ O({
|
|
|
1693
1686
|
function r(y) {
|
|
1694
1687
|
V("choosed", y), h.value = !1;
|
|
1695
1688
|
}
|
|
1696
|
-
return
|
|
1689
|
+
return Re(() => h.value, (y) => {
|
|
1697
1690
|
y || V("closed");
|
|
1698
|
-
}),
|
|
1691
|
+
}), R({
|
|
1699
1692
|
open: d
|
|
1700
1693
|
}), (y, m) => {
|
|
1701
|
-
const S = s("el-input"),
|
|
1702
|
-
return C(), T(e(
|
|
1694
|
+
const S = s("el-input"), A = s("el-radio-button"), q = s("el-radio-group"), M = s("el-space"), L = s("el-page-header");
|
|
1695
|
+
return C(), T(e(fe), {
|
|
1703
1696
|
modelValue: h.value,
|
|
1704
|
-
"onUpdate:modelValue": m[7] || (m[7] = (
|
|
1697
|
+
"onUpdate:modelValue": m[7] || (m[7] = (U) => h.value = U),
|
|
1705
1698
|
width: "880px",
|
|
1706
1699
|
"show-close": !1,
|
|
1707
1700
|
class: "basic-drawer"
|
|
@@ -1713,9 +1706,9 @@ const Te = /* @__PURE__ */ O({
|
|
|
1713
1706
|
loading: e(i),
|
|
1714
1707
|
onRefresh: e(g)
|
|
1715
1708
|
}, null, 8, ["loading", "onRefresh"]), l(e(j), {
|
|
1716
|
-
onOpen: e(
|
|
1709
|
+
onOpen: e(D)
|
|
1717
1710
|
}, null, 8, ["onOpen"])]),
|
|
1718
|
-
content: o(() => [l(
|
|
1711
|
+
content: o(() => [l(M, {
|
|
1719
1712
|
class: "search-bar"
|
|
1720
1713
|
}, {
|
|
1721
1714
|
default: o(() => [l(S, {
|
|
@@ -1723,46 +1716,46 @@ const Te = /* @__PURE__ */ O({
|
|
|
1723
1716
|
width: "160px"
|
|
1724
1717
|
},
|
|
1725
1718
|
modelValue: e(u).keyword,
|
|
1726
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
1719
|
+
"onUpdate:modelValue": m[0] || (m[0] = (U) => e(u).keyword = U),
|
|
1727
1720
|
placeholder: e(a)("placeholder.keyword"),
|
|
1728
1721
|
clearable: "",
|
|
1729
|
-
onKeyup: m[1] || (m[1] =
|
|
1730
|
-
onClear: m[2] || (m[2] = (
|
|
1731
|
-
}, null, 8, ["modelValue", "placeholder"]), l(
|
|
1722
|
+
onKeyup: m[1] || (m[1] = he((U) => e(f)(), ["enter"])),
|
|
1723
|
+
onClear: m[2] || (m[2] = (U) => e(f)())
|
|
1724
|
+
}, null, 8, ["modelValue", "placeholder"]), l(Te, {
|
|
1732
1725
|
modelValue: e(u).module,
|
|
1733
|
-
"onUpdate:modelValue": m[3] || (m[3] = (
|
|
1726
|
+
"onUpdate:modelValue": m[3] || (m[3] = (U) => e(u).module = U),
|
|
1734
1727
|
clearable: !0,
|
|
1735
1728
|
style: {
|
|
1736
1729
|
width: "160px"
|
|
1737
1730
|
}
|
|
1738
1731
|
}, null, 8, ["modelValue"]), l(q, {
|
|
1739
1732
|
modelValue: e(u).status,
|
|
1740
|
-
"onUpdate:modelValue": m[4] || (m[4] = (
|
|
1741
|
-
onChange: m[5] || (m[5] = (
|
|
1733
|
+
"onUpdate:modelValue": m[4] || (m[4] = (U) => e(u).status = U),
|
|
1734
|
+
onChange: m[5] || (m[5] = (U) => e(f)())
|
|
1742
1735
|
}, {
|
|
1743
|
-
default: o(() => [(C(),
|
|
1744
|
-
key:
|
|
1745
|
-
label: e(a)(`status.${
|
|
1746
|
-
value:
|
|
1736
|
+
default: o(() => [(C(), I(G, null, ae([0, 1, 2], (U) => l(A, {
|
|
1737
|
+
key: U,
|
|
1738
|
+
label: e(a)(`status.${U}`),
|
|
1739
|
+
value: U
|
|
1747
1740
|
}, null, 8, ["label", "value"])), 64))]),
|
|
1748
1741
|
_: 1
|
|
1749
1742
|
}, 8, ["modelValue"]), l(e(oe), {
|
|
1750
1743
|
disabled: e(i),
|
|
1751
|
-
onSearch: m[6] || (m[6] = (
|
|
1744
|
+
onSearch: m[6] || (m[6] = (U) => e(f)())
|
|
1752
1745
|
}, null, 8, ["disabled"])]),
|
|
1753
1746
|
_: 1
|
|
1754
1747
|
})]),
|
|
1755
1748
|
_: 1
|
|
1756
1749
|
})]),
|
|
1757
|
-
default: o(() => [l(e(
|
|
1750
|
+
default: o(() => [l(e(ce), {
|
|
1758
1751
|
ref_key: "tableRef",
|
|
1759
1752
|
ref: n,
|
|
1760
1753
|
columns: c,
|
|
1761
|
-
url: e(
|
|
1754
|
+
url: e(J).urls[e(Ve)],
|
|
1762
1755
|
"search-param": e(u),
|
|
1763
1756
|
onRowDblclick: r,
|
|
1764
1757
|
"auto-search": ""
|
|
1765
|
-
}, null, 8, ["url", "search-param"]), l(
|
|
1758
|
+
}, null, 8, ["url", "search-param"]), l(bl, {
|
|
1766
1759
|
ref_key: "formModalRef",
|
|
1767
1760
|
ref: v,
|
|
1768
1761
|
onRefresh: e(_)
|
|
@@ -1771,14 +1764,14 @@ const Te = /* @__PURE__ */ O({
|
|
|
1771
1764
|
}, 8, ["modelValue"]);
|
|
1772
1765
|
};
|
|
1773
1766
|
}
|
|
1774
|
-
}),
|
|
1767
|
+
}), hl = { key: 0 }, Vl = { key: 1 }, yl = /* @__PURE__ */ O({
|
|
1775
1768
|
__name: "template",
|
|
1776
1769
|
emits: ["refresh"],
|
|
1777
|
-
setup(x, { expose:
|
|
1778
|
-
const { formModalRef: h, openFormModal: V } = F(), b = k, c =
|
|
1770
|
+
setup(x, { expose: R, emit: k }) {
|
|
1771
|
+
const { formModalRef: h, openFormModal: V } = F(), b = k, c = N("600px"), i = N({
|
|
1779
1772
|
"zh-CN": "primary",
|
|
1780
1773
|
"en-US": "success"
|
|
1781
|
-
}), p =
|
|
1774
|
+
}), p = N({}), n = {
|
|
1782
1775
|
uuid: "",
|
|
1783
1776
|
app: 1,
|
|
1784
1777
|
keys: "",
|
|
@@ -1806,46 +1799,56 @@ const Te = /* @__PURE__ */ O({
|
|
|
1806
1799
|
trigger: "change"
|
|
1807
1800
|
}
|
|
1808
1801
|
]
|
|
1809
|
-
}, { modal: u, title: f, form: g, formData: _, requesting:
|
|
1802
|
+
}, { modal: u, title: f, form: g, formData: _, requesting: D, executing: w, open: t, modify: d, submit: r, closed: y } = X(b, n, te);
|
|
1810
1803
|
function m() {
|
|
1811
1804
|
c.value = "1080px", V();
|
|
1812
1805
|
}
|
|
1813
1806
|
function S() {
|
|
1814
1807
|
c.value = "600px";
|
|
1815
1808
|
}
|
|
1816
|
-
function
|
|
1817
|
-
let
|
|
1818
|
-
_.keys =
|
|
1819
|
-
for (const
|
|
1820
|
-
p.value[
|
|
1809
|
+
function A(L) {
|
|
1810
|
+
let U = L.module.toLowerCase() + "." + L.key.toLowerCase();
|
|
1811
|
+
_.keys = U, _.values.push(U);
|
|
1812
|
+
for (const se in L.language)
|
|
1813
|
+
p.value[se] || (p.value[se] = []), p.value[se].push(L.language[se]);
|
|
1821
1814
|
}
|
|
1822
1815
|
function q() {
|
|
1823
|
-
c.value = "600px",
|
|
1816
|
+
c.value = "600px", M();
|
|
1817
|
+
}
|
|
1818
|
+
function M() {
|
|
1819
|
+
_.keys = "", _.values = [], p.value = {
|
|
1824
1820
|
"zh-CN": [],
|
|
1825
1821
|
"en-US": []
|
|
1826
1822
|
};
|
|
1827
1823
|
}
|
|
1828
|
-
return
|
|
1829
|
-
|
|
1830
|
-
}),
|
|
1824
|
+
return Re(() => u.value, (L) => {
|
|
1825
|
+
L ? q() : y();
|
|
1826
|
+
}), R({
|
|
1831
1827
|
open: t,
|
|
1832
1828
|
modify: d
|
|
1833
|
-
}), (
|
|
1834
|
-
const
|
|
1835
|
-
return C(), T(e(
|
|
1829
|
+
}), (L, U) => {
|
|
1830
|
+
const se = s("el-page-header"), _e = s("el-form-item"), Ee = s("el-button"), Me = s("el-input"), ze = s("el-tag"), Ie = s("el-space"), Ne = s("el-form");
|
|
1831
|
+
return C(), T(e(fe), {
|
|
1836
1832
|
modelValue: e(u),
|
|
1837
|
-
"onUpdate:modelValue":
|
|
1833
|
+
"onUpdate:modelValue": U[3] || (U[3] = (Q) => P(u) ? u.value = Q : null),
|
|
1838
1834
|
width: c.value,
|
|
1839
1835
|
"show-close": !1,
|
|
1840
1836
|
class: "basic-drawer"
|
|
1841
1837
|
}, {
|
|
1842
1838
|
title: o(() => [
|
|
1843
|
-
l(
|
|
1839
|
+
l(se, { class: "basic-header" }, {
|
|
1844
1840
|
title: o(() => [
|
|
1845
1841
|
Z(z(e(f)("i18n.template")), 1)
|
|
1846
1842
|
]),
|
|
1847
1843
|
extra: o(() => [
|
|
1848
|
-
l(e(
|
|
1844
|
+
l(e(H), {
|
|
1845
|
+
size: "default",
|
|
1846
|
+
type: "default",
|
|
1847
|
+
icon: "icon-clear",
|
|
1848
|
+
loading: e(w),
|
|
1849
|
+
onClick: M
|
|
1850
|
+
}, null, 8, ["loading"]),
|
|
1851
|
+
l(e(H), {
|
|
1849
1852
|
circle: !1,
|
|
1850
1853
|
size: "default",
|
|
1851
1854
|
type: "primary",
|
|
@@ -1859,24 +1862,24 @@ const Te = /* @__PURE__ */ O({
|
|
|
1859
1862
|
})
|
|
1860
1863
|
]),
|
|
1861
1864
|
default: o(() => [
|
|
1862
|
-
l(
|
|
1865
|
+
l(Ne, {
|
|
1863
1866
|
ref_key: "form",
|
|
1864
1867
|
ref: g,
|
|
1865
1868
|
model: e(_),
|
|
1866
1869
|
"label-width": "auto",
|
|
1867
1870
|
rules: v,
|
|
1868
|
-
disabled: e(
|
|
1871
|
+
disabled: e(D) || e(w)
|
|
1869
1872
|
}, {
|
|
1870
1873
|
default: o(() => [
|
|
1871
|
-
l(
|
|
1872
|
-
label: e(a)("
|
|
1874
|
+
l(_e, {
|
|
1875
|
+
label: e(a)("base.app"),
|
|
1873
1876
|
prop: "app",
|
|
1874
1877
|
required: ""
|
|
1875
1878
|
}, {
|
|
1876
1879
|
default: o(() => [
|
|
1877
|
-
l(e(
|
|
1880
|
+
l(e(Se), {
|
|
1878
1881
|
modelValue: e(_).app,
|
|
1879
|
-
"onUpdate:modelValue":
|
|
1882
|
+
"onUpdate:modelValue": U[0] || (U[0] = (Q) => e(_).app = Q),
|
|
1880
1883
|
"cache-key": "I18NAPPS",
|
|
1881
1884
|
hidden: [0],
|
|
1882
1885
|
url: e(te).urls.apps
|
|
@@ -1884,20 +1887,20 @@ const Te = /* @__PURE__ */ O({
|
|
|
1884
1887
|
]),
|
|
1885
1888
|
_: 1
|
|
1886
1889
|
}, 8, ["label"]),
|
|
1887
|
-
l(
|
|
1890
|
+
l(_e, {
|
|
1888
1891
|
label: e(a)("i18n.keys"),
|
|
1889
1892
|
prop: "keys",
|
|
1890
1893
|
required: ""
|
|
1891
1894
|
}, {
|
|
1892
1895
|
default: o(() => [
|
|
1893
|
-
l(
|
|
1896
|
+
l(Me, {
|
|
1894
1897
|
modelValue: e(_).keys,
|
|
1895
|
-
"onUpdate:modelValue":
|
|
1898
|
+
"onUpdate:modelValue": U[1] || (U[1] = (Q) => e(_).keys = Q),
|
|
1896
1899
|
placeholder: e(a)("i18n.placeholder.key")
|
|
1897
1900
|
}, {
|
|
1898
1901
|
append: o(() => [
|
|
1899
|
-
l(
|
|
1900
|
-
icon: e(
|
|
1902
|
+
l(Ee, {
|
|
1903
|
+
icon: e(rl),
|
|
1901
1904
|
onClick: m
|
|
1902
1905
|
}, null, 8, ["icon"])
|
|
1903
1906
|
]),
|
|
@@ -1906,7 +1909,7 @@ const Te = /* @__PURE__ */ O({
|
|
|
1906
1909
|
]),
|
|
1907
1910
|
_: 1
|
|
1908
1911
|
}, 8, ["label"]),
|
|
1909
|
-
l(
|
|
1912
|
+
l(_e, {
|
|
1910
1913
|
label: e(a)("i18n.values"),
|
|
1911
1914
|
prop: "values",
|
|
1912
1915
|
required: ""
|
|
@@ -1916,17 +1919,17 @@ const Te = /* @__PURE__ */ O({
|
|
|
1916
1919
|
]),
|
|
1917
1920
|
_: 1
|
|
1918
1921
|
}, 8, ["label"]),
|
|
1919
|
-
l(
|
|
1922
|
+
l(_e, {
|
|
1920
1923
|
label: e(a)("i18n.values")
|
|
1921
1924
|
}, {
|
|
1922
1925
|
default: o(() => [
|
|
1923
|
-
(C(!0),
|
|
1926
|
+
(C(!0), I(G, null, ae(p.value, (Q, ye) => (C(), I("div", {
|
|
1924
1927
|
key: ye,
|
|
1925
1928
|
class: "w-full"
|
|
1926
1929
|
}, [
|
|
1927
|
-
l(
|
|
1930
|
+
l(Ie, null, {
|
|
1928
1931
|
default: o(() => [
|
|
1929
|
-
l(
|
|
1932
|
+
l(ze, {
|
|
1930
1933
|
type: i.value[ye],
|
|
1931
1934
|
style: { "min-width": "80px" }
|
|
1932
1935
|
}, {
|
|
@@ -1935,7 +1938,7 @@ const Te = /* @__PURE__ */ O({
|
|
|
1935
1938
|
]),
|
|
1936
1939
|
_: 2
|
|
1937
1940
|
}, 1032, ["type"]),
|
|
1938
|
-
|
|
1941
|
+
ye == "zh-CN" ? (C(), I("span", hl, z(Q.join("")), 1)) : (C(), I("span", Vl, z(Q.join(" ")), 1))
|
|
1939
1942
|
]),
|
|
1940
1943
|
_: 2
|
|
1941
1944
|
}, 1024)
|
|
@@ -1943,14 +1946,14 @@ const Te = /* @__PURE__ */ O({
|
|
|
1943
1946
|
]),
|
|
1944
1947
|
_: 1
|
|
1945
1948
|
}, 8, ["label"]),
|
|
1946
|
-
l(
|
|
1949
|
+
l(_e, {
|
|
1947
1950
|
label: e(a)("base.remark"),
|
|
1948
1951
|
prop: "remark"
|
|
1949
1952
|
}, {
|
|
1950
1953
|
default: o(() => [
|
|
1951
|
-
l(
|
|
1954
|
+
l(Me, {
|
|
1952
1955
|
modelValue: e(_).remark,
|
|
1953
|
-
"onUpdate:modelValue":
|
|
1956
|
+
"onUpdate:modelValue": U[2] || (U[2] = (Q) => e(_).remark = Q),
|
|
1954
1957
|
placeholder: e(a)("placeholder.input")
|
|
1955
1958
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1956
1959
|
]),
|
|
@@ -1959,10 +1962,10 @@ const Te = /* @__PURE__ */ O({
|
|
|
1959
1962
|
]),
|
|
1960
1963
|
_: 1
|
|
1961
1964
|
}, 8, ["model", "disabled"]),
|
|
1962
|
-
l(
|
|
1965
|
+
l(Oe, {
|
|
1963
1966
|
ref_key: "I18nTableDrawerRef",
|
|
1964
1967
|
ref: h,
|
|
1965
|
-
onChoosed:
|
|
1968
|
+
onChoosed: A,
|
|
1966
1969
|
onClosed: S
|
|
1967
1970
|
}, null, 512)
|
|
1968
1971
|
]),
|
|
@@ -1970,16 +1973,16 @@ const Te = /* @__PURE__ */ O({
|
|
|
1970
1973
|
}, 8, ["modelValue", "width"]);
|
|
1971
1974
|
};
|
|
1972
1975
|
}
|
|
1973
|
-
}),
|
|
1976
|
+
}), kl = W.routineApi("gateway", "id", {
|
|
1974
1977
|
gen: "gen_translation"
|
|
1975
1978
|
});
|
|
1976
|
-
function
|
|
1977
|
-
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !
|
|
1979
|
+
function vl(x) {
|
|
1980
|
+
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !xe(x);
|
|
1978
1981
|
}
|
|
1979
|
-
const
|
|
1982
|
+
const Wl = /* @__PURE__ */ O({
|
|
1980
1983
|
__name: "index",
|
|
1981
1984
|
setup(x) {
|
|
1982
|
-
const
|
|
1985
|
+
const R = {
|
|
1983
1986
|
keyword: "",
|
|
1984
1987
|
app: 0,
|
|
1985
1988
|
status: 0
|
|
@@ -1994,7 +1997,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
1994
1997
|
return l(s("el-tag"), {
|
|
1995
1998
|
type: a("i18n.app.colors." + d.app),
|
|
1996
1999
|
style: "min-width: 80px"
|
|
1997
|
-
},
|
|
2000
|
+
}, vl(r = a("i18n.app." + d.app)) ? r : {
|
|
1998
2001
|
default: () => [r]
|
|
1999
2002
|
});
|
|
2000
2003
|
}
|
|
@@ -2014,7 +2017,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2014
2017
|
props: {
|
|
2015
2018
|
activeValue: 1,
|
|
2016
2019
|
inactiveValue: 2,
|
|
2017
|
-
api: te.urls[
|
|
2020
|
+
api: te.urls[Ue],
|
|
2018
2021
|
refresh: !0
|
|
2019
2022
|
}
|
|
2020
2023
|
}, {
|
|
@@ -2043,12 +2046,12 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2043
2046
|
onModify: () => _({
|
|
2044
2047
|
uuid: d.uuid
|
|
2045
2048
|
})
|
|
2046
|
-
}, null), l(
|
|
2049
|
+
}, null), l(H, {
|
|
2047
2050
|
size: "default",
|
|
2048
2051
|
text: !0,
|
|
2049
2052
|
type: "danger",
|
|
2050
2053
|
loading: V.value,
|
|
2051
|
-
onClick: () =>
|
|
2054
|
+
onClick: () => D(d.uuid)
|
|
2052
2055
|
}, null)]
|
|
2053
2056
|
})
|
|
2054
2057
|
}], {
|
|
@@ -2066,8 +2069,8 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2066
2069
|
refresh: f,
|
|
2067
2070
|
openFormModal: g,
|
|
2068
2071
|
editFormModal: _
|
|
2069
|
-
} = F(
|
|
2070
|
-
function
|
|
2072
|
+
} = F(R);
|
|
2073
|
+
function D(d) {
|
|
2071
2074
|
return te.remove({
|
|
2072
2075
|
uuid: d
|
|
2073
2076
|
}).finally(() => {
|
|
@@ -2075,22 +2078,22 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2075
2078
|
});
|
|
2076
2079
|
}
|
|
2077
2080
|
function w() {
|
|
2078
|
-
return
|
|
2081
|
+
return J.gen().finally(() => {
|
|
2079
2082
|
f();
|
|
2080
2083
|
});
|
|
2081
2084
|
}
|
|
2082
2085
|
function t() {
|
|
2083
|
-
|
|
2086
|
+
kl.gen().finally(() => {
|
|
2084
2087
|
f();
|
|
2085
2088
|
});
|
|
2086
2089
|
}
|
|
2087
2090
|
return (d, r) => {
|
|
2088
|
-
const y = s("el-divider"), m = s("el-input"), S = s("el-radio-button"),
|
|
2091
|
+
const y = s("el-divider"), m = s("el-input"), S = s("el-radio-button"), A = s("el-radio-group"), q = s("el-space"), M = s("el-page-header"), L = s("el-card");
|
|
2089
2092
|
return C(), T(L, {
|
|
2090
2093
|
class: "basic-card flex-full",
|
|
2091
2094
|
"body-class": "flex-1"
|
|
2092
2095
|
}, {
|
|
2093
|
-
header: o(() => [l(
|
|
2096
|
+
header: o(() => [l(M, {
|
|
2094
2097
|
class: "basic-header"
|
|
2095
2098
|
}, {
|
|
2096
2099
|
title: o(() => [l(e(K), {
|
|
@@ -2099,14 +2102,14 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2099
2102
|
}, null, 8, ["loading", "onRefresh"]), l(e(j), {
|
|
2100
2103
|
onOpen: e(g)
|
|
2101
2104
|
}, null, 8, ["onOpen"])]),
|
|
2102
|
-
extra: o(() => [l(e(
|
|
2105
|
+
extra: o(() => [l(e(H), {
|
|
2103
2106
|
size: "default",
|
|
2104
2107
|
type: "warning",
|
|
2105
2108
|
icon: "icon-cloud-upload",
|
|
2106
2109
|
plain: !1,
|
|
2107
2110
|
loading: e(V),
|
|
2108
2111
|
onClick: w
|
|
2109
|
-
}, null, 8, ["loading"]), l(e(
|
|
2112
|
+
}, null, 8, ["loading"]), l(e(H), {
|
|
2110
2113
|
size: "default",
|
|
2111
2114
|
type: "danger",
|
|
2112
2115
|
icon: "icon-translate",
|
|
@@ -2125,48 +2128,48 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2125
2128
|
default: o(() => [l(m, {
|
|
2126
2129
|
class: "basic-search-input",
|
|
2127
2130
|
modelValue: e(n).keyword,
|
|
2128
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
2131
|
+
"onUpdate:modelValue": r[0] || (r[0] = (U) => e(n).keyword = U),
|
|
2129
2132
|
placeholder: e(a)("placeholder.keyword"),
|
|
2130
2133
|
clearable: "",
|
|
2131
|
-
onKeyup: r[1] || (r[1] =
|
|
2132
|
-
onClear: r[2] || (r[2] = (
|
|
2133
|
-
}, null, 8, ["modelValue", "placeholder"]), l(e(
|
|
2134
|
+
onKeyup: r[1] || (r[1] = he((U) => e(v)(), ["enter"])),
|
|
2135
|
+
onClear: r[2] || (r[2] = (U) => e(v)())
|
|
2136
|
+
}, null, 8, ["modelValue", "placeholder"]), l(e(Se), {
|
|
2134
2137
|
modelValue: e(n).app,
|
|
2135
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
2138
|
+
"onUpdate:modelValue": r[3] || (r[3] = (U) => e(n).app = U),
|
|
2136
2139
|
"cache-key": "I18NAPPS",
|
|
2137
2140
|
url: e(te).urls.apps,
|
|
2138
|
-
onChange: r[4] || (r[4] = (
|
|
2139
|
-
}, null, 8, ["modelValue", "url"]), l(
|
|
2141
|
+
onChange: r[4] || (r[4] = (U) => e(v)())
|
|
2142
|
+
}, null, 8, ["modelValue", "url"]), l(A, {
|
|
2140
2143
|
modelValue: e(n).status,
|
|
2141
|
-
"onUpdate:modelValue": r[5] || (r[5] = (
|
|
2142
|
-
onChange: r[6] || (r[6] = (
|
|
2144
|
+
"onUpdate:modelValue": r[5] || (r[5] = (U) => e(n).status = U),
|
|
2145
|
+
onChange: r[6] || (r[6] = (U) => e(v)())
|
|
2143
2146
|
}, {
|
|
2144
|
-
default: o(() => [(C(),
|
|
2145
|
-
key:
|
|
2146
|
-
label: e(a)(`status.${
|
|
2147
|
-
value:
|
|
2147
|
+
default: o(() => [(C(), I(G, null, ae([0, 1, 2], (U) => l(S, {
|
|
2148
|
+
key: U,
|
|
2149
|
+
label: e(a)(`status.${U}`),
|
|
2150
|
+
value: U
|
|
2148
2151
|
}, null, 8, ["label", "value"])), 64))]),
|
|
2149
2152
|
_: 1
|
|
2150
2153
|
}, 8, ["modelValue"]), l(e(oe), {
|
|
2151
2154
|
disabled: e(h),
|
|
2152
|
-
onSearch: r[7] || (r[7] = (
|
|
2155
|
+
onSearch: r[7] || (r[7] = (U) => e(v)())
|
|
2153
2156
|
}, null, 8, ["disabled"])]),
|
|
2154
2157
|
_: 1
|
|
2155
2158
|
})]),
|
|
2156
2159
|
_: 1
|
|
2157
2160
|
})]),
|
|
2158
|
-
default: o(() => [l(e(
|
|
2161
|
+
default: o(() => [l(e(ce), {
|
|
2159
2162
|
ref_key: "tableRef",
|
|
2160
2163
|
ref: i,
|
|
2161
2164
|
columns: k,
|
|
2162
|
-
url: e(te).urls[e(
|
|
2165
|
+
url: e(te).urls[e(Ve)],
|
|
2163
2166
|
"search-param": e(n),
|
|
2164
2167
|
"auto-search": ""
|
|
2165
|
-
}, null, 8, ["url", "search-param"]), l(
|
|
2168
|
+
}, null, 8, ["url", "search-param"]), l(Oe, {
|
|
2166
2169
|
ref_key: "I18nTableDrawerRef",
|
|
2167
2170
|
ref: b,
|
|
2168
2171
|
onRefresh: e(f)
|
|
2169
|
-
}, null, 8, ["onRefresh"]), l(
|
|
2172
|
+
}, null, 8, ["onRefresh"]), l(yl, {
|
|
2170
2173
|
ref_key: "formModalRef",
|
|
2171
2174
|
ref: p,
|
|
2172
2175
|
onRefresh: e(f)
|
|
@@ -2175,10 +2178,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2175
2178
|
});
|
|
2176
2179
|
};
|
|
2177
2180
|
}
|
|
2178
|
-
}),
|
|
2181
|
+
}), ve = W.routineApi("admin", "key"), wl = /* @__PURE__ */ O({
|
|
2179
2182
|
__name: "AdminFormModal",
|
|
2180
2183
|
emits: ["refresh"],
|
|
2181
|
-
setup(x, { expose:
|
|
2184
|
+
setup(x, { expose: R, emit: k }) {
|
|
2182
2185
|
const h = k, V = {
|
|
2183
2186
|
key: "",
|
|
2184
2187
|
username: "",
|
|
@@ -2188,7 +2191,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2188
2191
|
language: "zh-CN",
|
|
2189
2192
|
remark: "",
|
|
2190
2193
|
roles: []
|
|
2191
|
-
}, { modal: b, title: c, form: i, formData: p, requesting: n, executing: v, open: u, modify: f, submit: g, closed: _ } =
|
|
2194
|
+
}, { modal: b, title: c, form: i, formData: p, requesting: n, executing: v, open: u, modify: f, submit: g, closed: _ } = X(h, V, ve), D = {
|
|
2192
2195
|
username: [
|
|
2193
2196
|
{
|
|
2194
2197
|
required: !0,
|
|
@@ -2199,7 +2202,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2199
2202
|
phone: [
|
|
2200
2203
|
{
|
|
2201
2204
|
required: !0,
|
|
2202
|
-
validator:
|
|
2205
|
+
validator: He.phoneRule,
|
|
2203
2206
|
message: a("placeholder.input base.phone"),
|
|
2204
2207
|
trigger: "blur"
|
|
2205
2208
|
}
|
|
@@ -2233,20 +2236,20 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2233
2236
|
trigger: "change"
|
|
2234
2237
|
}
|
|
2235
2238
|
]
|
|
2236
|
-
}, w =
|
|
2237
|
-
const d = await
|
|
2239
|
+
}, w = N([]), t = async () => {
|
|
2240
|
+
const d = await ke.list();
|
|
2238
2241
|
w.value = Array.isArray(d == null ? void 0 : d.data) ? d.data : [];
|
|
2239
2242
|
};
|
|
2240
|
-
return
|
|
2243
|
+
return We(async () => {
|
|
2241
2244
|
await t();
|
|
2242
|
-
}),
|
|
2245
|
+
}), R({
|
|
2243
2246
|
open: u,
|
|
2244
2247
|
modify: f
|
|
2245
2248
|
}), (d, r) => {
|
|
2246
|
-
const y = s("el-input"), m = s("el-form-item"), S = s("el-radio-button"),
|
|
2249
|
+
const y = s("el-input"), m = s("el-form-item"), S = s("el-radio-button"), A = s("el-radio-group"), q = s("el-checkbox"), M = s("el-checkbox-group"), L = s("el-form");
|
|
2247
2250
|
return C(), T(e(ee), {
|
|
2248
2251
|
modelValue: e(b),
|
|
2249
|
-
"onUpdate:modelValue": r[7] || (r[7] = (
|
|
2252
|
+
"onUpdate:modelValue": r[7] || (r[7] = (U) => P(b) ? b.value = U : null),
|
|
2250
2253
|
title: e(c)(),
|
|
2251
2254
|
width: "600px",
|
|
2252
2255
|
executing: e(v),
|
|
@@ -2259,7 +2262,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2259
2262
|
ref: i,
|
|
2260
2263
|
model: e(p),
|
|
2261
2264
|
"label-width": "auto",
|
|
2262
|
-
rules:
|
|
2265
|
+
rules: D,
|
|
2263
2266
|
disabled: e(n) || e(v)
|
|
2264
2267
|
}, {
|
|
2265
2268
|
default: o(() => [
|
|
@@ -2270,7 +2273,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2270
2273
|
default: o(() => [
|
|
2271
2274
|
l(y, {
|
|
2272
2275
|
modelValue: e(p).username,
|
|
2273
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
2276
|
+
"onUpdate:modelValue": r[0] || (r[0] = (U) => e(p).username = U),
|
|
2274
2277
|
placeholder: e(a)("placeholder.input"),
|
|
2275
2278
|
autocomplete: "off"
|
|
2276
2279
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -2284,7 +2287,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2284
2287
|
default: o(() => [
|
|
2285
2288
|
l(y, {
|
|
2286
2289
|
modelValue: e(p).phone,
|
|
2287
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
2290
|
+
"onUpdate:modelValue": r[1] || (r[1] = (U) => e(p).phone = U),
|
|
2288
2291
|
placeholder: e(a)("placeholder.input"),
|
|
2289
2292
|
autocomplete: "off"
|
|
2290
2293
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -2299,7 +2302,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2299
2302
|
default: o(() => [
|
|
2300
2303
|
l(y, {
|
|
2301
2304
|
modelValue: e(p).password,
|
|
2302
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
2305
|
+
"onUpdate:modelValue": r[2] || (r[2] = (U) => e(p).password = U),
|
|
2303
2306
|
placeholder: e(a)("placeholder.input"),
|
|
2304
2307
|
autocomplete: "off"
|
|
2305
2308
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -2313,7 +2316,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2313
2316
|
default: o(() => [
|
|
2314
2317
|
l(y, {
|
|
2315
2318
|
modelValue: e(p).email,
|
|
2316
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
2319
|
+
"onUpdate:modelValue": r[3] || (r[3] = (U) => e(p).email = U),
|
|
2317
2320
|
placeholder: e(a)("placeholder.input"),
|
|
2318
2321
|
autocomplete: "off"
|
|
2319
2322
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -2325,9 +2328,9 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2325
2328
|
prop: "language"
|
|
2326
2329
|
}, {
|
|
2327
2330
|
default: o(() => [
|
|
2328
|
-
l(
|
|
2331
|
+
l(A, {
|
|
2329
2332
|
modelValue: e(p).language,
|
|
2330
|
-
"onUpdate:modelValue": r[4] || (r[4] = (
|
|
2333
|
+
"onUpdate:modelValue": r[4] || (r[4] = (U) => e(p).language = U)
|
|
2331
2334
|
}, {
|
|
2332
2335
|
default: o(() => [
|
|
2333
2336
|
l(S, { value: "zh-CN" }, {
|
|
@@ -2353,17 +2356,17 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2353
2356
|
prop: "roles"
|
|
2354
2357
|
}, {
|
|
2355
2358
|
default: o(() => [
|
|
2356
|
-
l(
|
|
2359
|
+
l(M, {
|
|
2357
2360
|
modelValue: e(p).roles,
|
|
2358
|
-
"onUpdate:modelValue": r[5] || (r[5] = (
|
|
2361
|
+
"onUpdate:modelValue": r[5] || (r[5] = (U) => e(p).roles = U)
|
|
2359
2362
|
}, {
|
|
2360
2363
|
default: o(() => [
|
|
2361
|
-
(C(!0),
|
|
2362
|
-
key:
|
|
2363
|
-
value:
|
|
2364
|
+
(C(!0), I(G, null, ae(w.value, (U) => (C(), T(q, {
|
|
2365
|
+
key: U.key,
|
|
2366
|
+
value: U.key
|
|
2364
2367
|
}, {
|
|
2365
2368
|
default: o(() => [
|
|
2366
|
-
Z(z(
|
|
2369
|
+
Z(z(U.translate), 1)
|
|
2367
2370
|
]),
|
|
2368
2371
|
_: 2
|
|
2369
2372
|
}, 1032, ["value"]))), 128))
|
|
@@ -2380,7 +2383,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2380
2383
|
default: o(() => [
|
|
2381
2384
|
l(y, {
|
|
2382
2385
|
modelValue: e(p).remark,
|
|
2383
|
-
"onUpdate:modelValue": r[6] || (r[6] = (
|
|
2386
|
+
"onUpdate:modelValue": r[6] || (r[6] = (U) => e(p).remark = U),
|
|
2384
2387
|
placeholder: e(a)("placeholder.input")
|
|
2385
2388
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2386
2389
|
]),
|
|
@@ -2394,10 +2397,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2394
2397
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2395
2398
|
};
|
|
2396
2399
|
}
|
|
2397
|
-
}),
|
|
2400
|
+
}), Yl = /* @__PURE__ */ O({
|
|
2398
2401
|
__name: "index",
|
|
2399
2402
|
setup(x) {
|
|
2400
|
-
const
|
|
2403
|
+
const R = {
|
|
2401
2404
|
keyword: ""
|
|
2402
2405
|
}, k = [{
|
|
2403
2406
|
label: a("base.avatar"),
|
|
@@ -2405,7 +2408,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2405
2408
|
width: 60,
|
|
2406
2409
|
render: ({
|
|
2407
2410
|
row: f
|
|
2408
|
-
}) => l(
|
|
2411
|
+
}) => l(Qe, {
|
|
2409
2412
|
src: f.avatar
|
|
2410
2413
|
}, null)
|
|
2411
2414
|
}, {
|
|
@@ -2454,7 +2457,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2454
2457
|
}, null)
|
|
2455
2458
|
}], {
|
|
2456
2459
|
requesting: h
|
|
2457
|
-
} = E(
|
|
2460
|
+
} = E(ve), {
|
|
2458
2461
|
tableRef: V,
|
|
2459
2462
|
formModalRef: b,
|
|
2460
2463
|
keyword: c,
|
|
@@ -2463,9 +2466,9 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2463
2466
|
refresh: n,
|
|
2464
2467
|
openFormModal: v,
|
|
2465
2468
|
editFormModal: u
|
|
2466
|
-
} = F(
|
|
2469
|
+
} = F(R);
|
|
2467
2470
|
return (f, g) => {
|
|
2468
|
-
const _ = s("el-input"),
|
|
2471
|
+
const _ = s("el-input"), D = s("el-space"), w = s("el-page-header"), t = s("el-card");
|
|
2469
2472
|
return C(), T(t, {
|
|
2470
2473
|
class: "basic-card flex-full",
|
|
2471
2474
|
"body-class": "flex-1"
|
|
@@ -2479,7 +2482,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2479
2482
|
}, null, 8, ["loading", "onRefresh"]), l(e(j), {
|
|
2480
2483
|
onOpen: e(v)
|
|
2481
2484
|
}, null, 8, ["onOpen"])]),
|
|
2482
|
-
content: o(() => [l(
|
|
2485
|
+
content: o(() => [l(D, {
|
|
2483
2486
|
class: "search-bar"
|
|
2484
2487
|
}, {
|
|
2485
2488
|
default: o(() => [l(_, {
|
|
@@ -2488,7 +2491,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2488
2491
|
"onUpdate:modelValue": g[0] || (g[0] = (d) => e(c).keyword = d),
|
|
2489
2492
|
placeholder: e(a)("placeholder.keyword"),
|
|
2490
2493
|
clearable: "",
|
|
2491
|
-
onKeyup: g[1] || (g[1] =
|
|
2494
|
+
onKeyup: g[1] || (g[1] = he((d) => e(i)(), ["enter"])),
|
|
2492
2495
|
onClear: g[2] || (g[2] = (d) => e(i)())
|
|
2493
2496
|
}, null, 8, ["modelValue", "placeholder"]), l(e(oe), {
|
|
2494
2497
|
disabled: e(h),
|
|
@@ -2498,15 +2501,15 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2498
2501
|
})]),
|
|
2499
2502
|
_: 1
|
|
2500
2503
|
})]),
|
|
2501
|
-
default: o(() => [l(e(
|
|
2504
|
+
default: o(() => [l(e(ce), {
|
|
2502
2505
|
ref_key: "tableRef",
|
|
2503
2506
|
ref: V,
|
|
2504
2507
|
size: "small",
|
|
2505
2508
|
columns: k,
|
|
2506
|
-
url: e(
|
|
2509
|
+
url: e(ve).urls[e(Ve)],
|
|
2507
2510
|
"search-param": e(c),
|
|
2508
2511
|
"auto-search": ""
|
|
2509
|
-
}, null, 8, ["url", "search-param"]), l(
|
|
2512
|
+
}, null, 8, ["url", "search-param"]), l(wl, {
|
|
2510
2513
|
ref_key: "formModalRef",
|
|
2511
2514
|
ref: b,
|
|
2512
2515
|
onRefresh: e(n)
|
|
@@ -2515,9 +2518,9 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2515
2518
|
});
|
|
2516
2519
|
};
|
|
2517
2520
|
}
|
|
2518
|
-
}),
|
|
2521
|
+
}), xl = {
|
|
2519
2522
|
check: "check"
|
|
2520
|
-
},
|
|
2523
|
+
}, ue = W.routineApi("site", "id", xl), be = W.routineApi("domain"), $e = /* @__PURE__ */ O({
|
|
2521
2524
|
__name: "DomainSelect",
|
|
2522
2525
|
props: {
|
|
2523
2526
|
modelValue: {
|
|
@@ -2531,22 +2534,22 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2531
2534
|
},
|
|
2532
2535
|
emits: ["update:modelValue", "change"],
|
|
2533
2536
|
setup(x, {
|
|
2534
|
-
expose:
|
|
2537
|
+
expose: R,
|
|
2535
2538
|
emit: k
|
|
2536
2539
|
}) {
|
|
2537
2540
|
const h = k, V = x, {
|
|
2538
2541
|
requesting: b
|
|
2539
|
-
} = E(
|
|
2542
|
+
} = E(be), {
|
|
2540
2543
|
key: c,
|
|
2541
2544
|
options: i,
|
|
2542
2545
|
refresh: p,
|
|
2543
2546
|
change: n
|
|
2544
2547
|
} = re(ne(V, "modelValue"), h, {
|
|
2545
2548
|
key: "DOMAIN_LIST",
|
|
2546
|
-
api:
|
|
2549
|
+
api: be,
|
|
2547
2550
|
isArray: !0
|
|
2548
2551
|
});
|
|
2549
|
-
return
|
|
2552
|
+
return R({
|
|
2550
2553
|
refresh: p
|
|
2551
2554
|
}), (v, u) => {
|
|
2552
2555
|
const f = s("el-select-v2");
|
|
@@ -2558,7 +2561,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2558
2561
|
placeholder: e(a)("base.select config.domain"),
|
|
2559
2562
|
onChange: e(n)
|
|
2560
2563
|
}, {
|
|
2561
|
-
prefix: o(() => [l(e(
|
|
2564
|
+
prefix: o(() => [l(e(me), {
|
|
2562
2565
|
loading: e(b),
|
|
2563
2566
|
onRefresh: e(p)
|
|
2564
2567
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
@@ -2566,10 +2569,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2566
2569
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2567
2570
|
};
|
|
2568
2571
|
}
|
|
2569
|
-
}),
|
|
2572
|
+
}), Rl = /* @__PURE__ */ O({
|
|
2570
2573
|
__name: "SiteFormModal",
|
|
2571
2574
|
emits: ["refresh"],
|
|
2572
|
-
setup(x, { expose:
|
|
2575
|
+
setup(x, { expose: R, emit: k }) {
|
|
2573
2576
|
const h = k, V = {
|
|
2574
2577
|
id: 0,
|
|
2575
2578
|
domain_id: 0,
|
|
@@ -2585,8 +2588,8 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2585
2588
|
prefix: [{ required: !0, message: a("placeholder.input base.prefix"), trigger: "blur" }],
|
|
2586
2589
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
2587
2590
|
en_name: [{ required: !0, message: a("placeholder.input base.en_name"), trigger: "blur" }]
|
|
2588
|
-
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed:
|
|
2589
|
-
return
|
|
2591
|
+
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed: D } = X(h, V, ue);
|
|
2592
|
+
return R({
|
|
2590
2593
|
open: f,
|
|
2591
2594
|
modify: g
|
|
2592
2595
|
}), (w, t) => {
|
|
@@ -2597,7 +2600,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2597
2600
|
title: e(i)("config.site"),
|
|
2598
2601
|
width: "600px",
|
|
2599
2602
|
executing: e(u),
|
|
2600
|
-
onClosed: e(
|
|
2603
|
+
onClosed: e(D),
|
|
2601
2604
|
onSubmit: e(_)
|
|
2602
2605
|
}, {
|
|
2603
2606
|
default: o(() => [
|
|
@@ -2615,7 +2618,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2615
2618
|
label: e(a)("config.domain")
|
|
2616
2619
|
}, {
|
|
2617
2620
|
default: o(() => [
|
|
2618
|
-
l(
|
|
2621
|
+
l($e, {
|
|
2619
2622
|
modelValue: e(n).domain_id,
|
|
2620
2623
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => e(n).domain_id = m),
|
|
2621
2624
|
disabled: e(u)
|
|
@@ -2715,7 +2718,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2715
2718
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2716
2719
|
};
|
|
2717
2720
|
}
|
|
2718
|
-
}),
|
|
2721
|
+
}), ge = W.routineApi("domain_provider"), Ul = /* @__PURE__ */ O({
|
|
2719
2722
|
__name: "DomainProviderSelect",
|
|
2720
2723
|
props: {
|
|
2721
2724
|
modelValue: {
|
|
@@ -2729,22 +2732,22 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2729
2732
|
},
|
|
2730
2733
|
emits: ["update:modelValue", "change"],
|
|
2731
2734
|
setup(x, {
|
|
2732
|
-
expose:
|
|
2735
|
+
expose: R,
|
|
2733
2736
|
emit: k
|
|
2734
2737
|
}) {
|
|
2735
2738
|
const h = k, V = x, {
|
|
2736
2739
|
requesting: b
|
|
2737
|
-
} = E(
|
|
2740
|
+
} = E(ge), {
|
|
2738
2741
|
key: c,
|
|
2739
2742
|
options: i,
|
|
2740
2743
|
refresh: p,
|
|
2741
2744
|
change: n
|
|
2742
2745
|
} = re(ne(V, "modelValue"), h, {
|
|
2743
2746
|
key: "DOMAIN_PROVIDER_LIST",
|
|
2744
|
-
api:
|
|
2747
|
+
api: ge,
|
|
2745
2748
|
isArray: !0
|
|
2746
2749
|
});
|
|
2747
|
-
return
|
|
2750
|
+
return R({
|
|
2748
2751
|
refresh: p
|
|
2749
2752
|
}), (v, u) => {
|
|
2750
2753
|
const f = s("el-select-v2");
|
|
@@ -2756,7 +2759,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2756
2759
|
placeholder: e(a)("base.select config.domain config.provider"),
|
|
2757
2760
|
onChange: e(n)
|
|
2758
2761
|
}, {
|
|
2759
|
-
prefix: o(() => [l(e(
|
|
2762
|
+
prefix: o(() => [l(e(me), {
|
|
2760
2763
|
loading: e(b),
|
|
2761
2764
|
onRefresh: e(p)
|
|
2762
2765
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
@@ -2764,10 +2767,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2764
2767
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2765
2768
|
};
|
|
2766
2769
|
}
|
|
2767
|
-
}),
|
|
2770
|
+
}), Ml = /* @__PURE__ */ O({
|
|
2768
2771
|
__name: "DomainFormModal",
|
|
2769
2772
|
emits: ["refresh"],
|
|
2770
|
-
setup(x, { expose:
|
|
2773
|
+
setup(x, { expose: R, emit: k }) {
|
|
2771
2774
|
const h = k, V = {
|
|
2772
2775
|
id: 0,
|
|
2773
2776
|
provider_id: 0,
|
|
@@ -2778,8 +2781,8 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2778
2781
|
}, b = {
|
|
2779
2782
|
provider_id: [{ required: !0, message: a("placeholder.input config.domain config.provider"), trigger: "blur" }],
|
|
2780
2783
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }]
|
|
2781
|
-
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed:
|
|
2782
|
-
return
|
|
2784
|
+
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed: D } = X(h, V, be);
|
|
2785
|
+
return R({
|
|
2783
2786
|
open: f,
|
|
2784
2787
|
modify: g
|
|
2785
2788
|
}), (w, t) => {
|
|
@@ -2790,7 +2793,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2790
2793
|
title: e(i)("config.domain"),
|
|
2791
2794
|
width: "600px",
|
|
2792
2795
|
executing: e(u),
|
|
2793
|
-
onClosed: e(
|
|
2796
|
+
onClosed: e(D),
|
|
2794
2797
|
onSubmit: e(_)
|
|
2795
2798
|
}, {
|
|
2796
2799
|
default: o(() => [
|
|
@@ -2808,7 +2811,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2808
2811
|
label: e(a)("config.provider")
|
|
2809
2812
|
}, {
|
|
2810
2813
|
default: o(() => [
|
|
2811
|
-
l(
|
|
2814
|
+
l(Ul, {
|
|
2812
2815
|
modelValue: e(n).provider_id,
|
|
2813
2816
|
"onUpdate:modelValue": t[0] || (t[0] = (S) => e(n).provider_id = S),
|
|
2814
2817
|
disabled: e(u)
|
|
@@ -2871,9 +2874,9 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2871
2874
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2872
2875
|
};
|
|
2873
2876
|
}
|
|
2874
|
-
}),
|
|
2877
|
+
}), Al = {
|
|
2875
2878
|
gen: "gen"
|
|
2876
|
-
},
|
|
2879
|
+
}, ie = W.routineApi("SSL", "id", Al), Dl = /* @__PURE__ */ O({
|
|
2877
2880
|
__name: "SiteSelect",
|
|
2878
2881
|
props: {
|
|
2879
2882
|
modelValue: {
|
|
@@ -2887,19 +2890,19 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2887
2890
|
},
|
|
2888
2891
|
emits: ["update:modelValue", "change"],
|
|
2889
2892
|
setup(x, {
|
|
2890
|
-
expose:
|
|
2893
|
+
expose: R,
|
|
2891
2894
|
emit: k
|
|
2892
2895
|
}) {
|
|
2893
2896
|
const h = k, V = x, {
|
|
2894
2897
|
requesting: b
|
|
2895
|
-
} = E(
|
|
2898
|
+
} = E(ue), {
|
|
2896
2899
|
key: c,
|
|
2897
2900
|
options: i,
|
|
2898
2901
|
refresh: p,
|
|
2899
2902
|
change: n
|
|
2900
2903
|
} = re(ne(V, "modelValue"), h, {
|
|
2901
2904
|
key: "SITE_LIST",
|
|
2902
|
-
api:
|
|
2905
|
+
api: ue,
|
|
2903
2906
|
isArray: !0
|
|
2904
2907
|
}, {
|
|
2905
2908
|
formatOptions: (v) => v.map((u) => {
|
|
@@ -2911,7 +2914,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2911
2914
|
};
|
|
2912
2915
|
})
|
|
2913
2916
|
});
|
|
2914
|
-
return
|
|
2917
|
+
return R({
|
|
2915
2918
|
refresh: p
|
|
2916
2919
|
}), (v, u) => {
|
|
2917
2920
|
const f = s("el-select-v2");
|
|
@@ -2923,7 +2926,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2923
2926
|
placeholder: e(a)("base.select config.domain"),
|
|
2924
2927
|
onChange: e(n)
|
|
2925
2928
|
}, {
|
|
2926
|
-
prefix: o(() => [l(e(
|
|
2929
|
+
prefix: o(() => [l(e(me), {
|
|
2927
2930
|
loading: e(b),
|
|
2928
2931
|
onRefresh: e(p)
|
|
2929
2932
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
@@ -2931,10 +2934,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2931
2934
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2932
2935
|
};
|
|
2933
2936
|
}
|
|
2934
|
-
}),
|
|
2937
|
+
}), Fe = /* @__PURE__ */ O({
|
|
2935
2938
|
__name: "SSLFormModal",
|
|
2936
2939
|
emits: ["refresh"],
|
|
2937
|
-
setup(x, { expose:
|
|
2940
|
+
setup(x, { expose: R, emit: k }) {
|
|
2938
2941
|
const h = k, V = {
|
|
2939
2942
|
id: 0,
|
|
2940
2943
|
domain_id: void 0,
|
|
@@ -2952,8 +2955,8 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2952
2955
|
path: [{ required: !0, message: a("placeholder.input base.path"), trigger: "blur" }],
|
|
2953
2956
|
email: [{ required: !0, message: a("placeholder.input base.email"), trigger: "blur" }],
|
|
2954
2957
|
encryption: [{ required: !0, message: a("placeholder.input config.encryption"), trigger: "blur" }]
|
|
2955
|
-
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed:
|
|
2956
|
-
return
|
|
2958
|
+
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed: D } = X(h, V, ie);
|
|
2959
|
+
return R({
|
|
2957
2960
|
open: f,
|
|
2958
2961
|
modify: g,
|
|
2959
2962
|
formData: n
|
|
@@ -2961,11 +2964,11 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2961
2964
|
const d = s("el-form-item"), r = s("el-radio-button"), y = s("el-radio-group"), m = s("el-input"), S = s("el-form");
|
|
2962
2965
|
return C(), T(e(ee), {
|
|
2963
2966
|
modelValue: e(c),
|
|
2964
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
2967
|
+
"onUpdate:modelValue": t[8] || (t[8] = (A) => P(c) ? c.value = A : null),
|
|
2965
2968
|
title: e(i)("ssl.ssl"),
|
|
2966
2969
|
width: "600px",
|
|
2967
2970
|
executing: e(u),
|
|
2968
|
-
onClosed: e(
|
|
2971
|
+
onClosed: e(D),
|
|
2969
2972
|
onSubmit: e(_)
|
|
2970
2973
|
}, {
|
|
2971
2974
|
default: o(() => [
|
|
@@ -2983,9 +2986,9 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2983
2986
|
label: e(a)("config.domain")
|
|
2984
2987
|
}, {
|
|
2985
2988
|
default: o(() => [
|
|
2986
|
-
l(
|
|
2989
|
+
l($e, {
|
|
2987
2990
|
modelValue: e(n).domain_id,
|
|
2988
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2991
|
+
"onUpdate:modelValue": t[0] || (t[0] = (A) => e(n).domain_id = A),
|
|
2989
2992
|
disabled: e(u)
|
|
2990
2993
|
}, null, 8, ["modelValue", "disabled"])
|
|
2991
2994
|
]),
|
|
@@ -2998,7 +3001,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2998
3001
|
default: o(() => [
|
|
2999
3002
|
l(y, {
|
|
3000
3003
|
modelValue: e(n).client,
|
|
3001
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3004
|
+
"onUpdate:modelValue": t[1] || (t[1] = (A) => e(n).client = A)
|
|
3002
3005
|
}, {
|
|
3003
3006
|
default: o(() => [
|
|
3004
3007
|
l(r, {
|
|
@@ -3016,9 +3019,9 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3016
3019
|
label: e(a)("config.site")
|
|
3017
3020
|
}, {
|
|
3018
3021
|
default: o(() => [
|
|
3019
|
-
l(
|
|
3022
|
+
l(Dl, {
|
|
3020
3023
|
modelValue: e(n).site_id,
|
|
3021
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
3024
|
+
"onUpdate:modelValue": t[2] || (t[2] = (A) => e(n).site_id = A),
|
|
3022
3025
|
disabled: e(u)
|
|
3023
3026
|
}, null, 8, ["modelValue", "disabled"])
|
|
3024
3027
|
]),
|
|
@@ -3031,7 +3034,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3031
3034
|
default: o(() => [
|
|
3032
3035
|
l(m, {
|
|
3033
3036
|
modelValue: e(n).name,
|
|
3034
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
3037
|
+
"onUpdate:modelValue": t[3] || (t[3] = (A) => e(n).name = A),
|
|
3035
3038
|
disabled: e(u),
|
|
3036
3039
|
placeholder: e(a)("placeholder.input")
|
|
3037
3040
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3045,7 +3048,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3045
3048
|
default: o(() => [
|
|
3046
3049
|
l(m, {
|
|
3047
3050
|
modelValue: e(n).path,
|
|
3048
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
3051
|
+
"onUpdate:modelValue": t[4] || (t[4] = (A) => e(n).path = A),
|
|
3049
3052
|
disabled: e(u),
|
|
3050
3053
|
placeholder: e(a)("placeholder.input")
|
|
3051
3054
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3059,7 +3062,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3059
3062
|
default: o(() => [
|
|
3060
3063
|
l(m, {
|
|
3061
3064
|
modelValue: e(n).email,
|
|
3062
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
3065
|
+
"onUpdate:modelValue": t[5] || (t[5] = (A) => e(n).email = A),
|
|
3063
3066
|
disabled: e(u),
|
|
3064
3067
|
placeholder: e(a)("placeholder.input")
|
|
3065
3068
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3073,7 +3076,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3073
3076
|
default: o(() => [
|
|
3074
3077
|
l(y, {
|
|
3075
3078
|
modelValue: e(n).encryption,
|
|
3076
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
3079
|
+
"onUpdate:modelValue": t[6] || (t[6] = (A) => e(n).encryption = A)
|
|
3077
3080
|
}, {
|
|
3078
3081
|
default: o(() => [
|
|
3079
3082
|
l(r, {
|
|
@@ -3093,7 +3096,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3093
3096
|
default: o(() => [
|
|
3094
3097
|
l(m, {
|
|
3095
3098
|
modelValue: e(n).remark,
|
|
3096
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
3099
|
+
"onUpdate:modelValue": t[7] || (t[7] = (A) => e(n).remark = A),
|
|
3097
3100
|
disabled: e(u),
|
|
3098
3101
|
placeholder: e(a)("placeholder.input")
|
|
3099
3102
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3108,10 +3111,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3108
3111
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
3109
3112
|
};
|
|
3110
3113
|
}
|
|
3111
|
-
}),
|
|
3114
|
+
}), Sl = /* @__PURE__ */ O({
|
|
3112
3115
|
__name: "DomainProviderFormModal",
|
|
3113
3116
|
emits: ["refresh"],
|
|
3114
|
-
setup(x, { expose:
|
|
3117
|
+
setup(x, { expose: R, emit: k }) {
|
|
3115
3118
|
const h = k, V = {
|
|
3116
3119
|
id: 0,
|
|
3117
3120
|
name: "",
|
|
@@ -3127,8 +3130,8 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3127
3130
|
key: { required: !0, message: a("placeholder.input base.key"), trigger: "blur" },
|
|
3128
3131
|
secret: { required: !0, message: a("placeholder.input config.secret"), trigger: "blur" },
|
|
3129
3132
|
end_point: { required: !0, message: a("placeholder.input config.endpoint"), trigger: "blur" }
|
|
3130
|
-
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed:
|
|
3131
|
-
return
|
|
3133
|
+
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed: D } = X(h, V, ge);
|
|
3134
|
+
return R({
|
|
3132
3135
|
open: f,
|
|
3133
3136
|
modify: g
|
|
3134
3137
|
}), (w, t) => {
|
|
@@ -3139,7 +3142,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3139
3142
|
title: e(i)("config.domain"),
|
|
3140
3143
|
width: "600px",
|
|
3141
3144
|
executing: e(u),
|
|
3142
|
-
onClosed: e(
|
|
3145
|
+
onClosed: e(D),
|
|
3143
3146
|
onSubmit: e(_)
|
|
3144
3147
|
}, {
|
|
3145
3148
|
default: o(() => [
|
|
@@ -3244,14 +3247,14 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3244
3247
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
3245
3248
|
};
|
|
3246
3249
|
}
|
|
3247
|
-
}),
|
|
3250
|
+
}), Cl = /* @__PURE__ */ O({
|
|
3248
3251
|
__name: "DomainProviderTableDrawer",
|
|
3249
3252
|
setup(x, {
|
|
3250
|
-
expose:
|
|
3253
|
+
expose: R
|
|
3251
3254
|
}) {
|
|
3252
3255
|
const {
|
|
3253
3256
|
requesting: k
|
|
3254
|
-
} = E(
|
|
3257
|
+
} = E(ge), h = N(!1), {
|
|
3255
3258
|
tableRef: V,
|
|
3256
3259
|
formModalRef: b,
|
|
3257
3260
|
refresh: c,
|
|
@@ -3283,13 +3286,13 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3283
3286
|
}, null)]
|
|
3284
3287
|
})
|
|
3285
3288
|
}];
|
|
3286
|
-
return
|
|
3289
|
+
return R({
|
|
3287
3290
|
open: () => {
|
|
3288
3291
|
h.value = !0;
|
|
3289
3292
|
}
|
|
3290
3293
|
}), (u, f) => {
|
|
3291
3294
|
const g = s("el-page-header");
|
|
3292
|
-
return C(), T(e(
|
|
3295
|
+
return C(), T(e(fe), {
|
|
3293
3296
|
modelValue: h.value,
|
|
3294
3297
|
"onUpdate:modelValue": f[0] || (f[0] = (_) => h.value = _),
|
|
3295
3298
|
width: "400px",
|
|
@@ -3299,7 +3302,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3299
3302
|
title: o(() => [l(g, {
|
|
3300
3303
|
icon: ""
|
|
3301
3304
|
}, {
|
|
3302
|
-
title: o(() => [
|
|
3305
|
+
title: o(() => [B("span", null, z(e(a)("config.domain config.provider")), 1)]),
|
|
3303
3306
|
content: o(() => [l(e(K), {
|
|
3304
3307
|
onRefresh: e(c),
|
|
3305
3308
|
size: "default",
|
|
@@ -3315,10 +3318,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3315
3318
|
ref: V,
|
|
3316
3319
|
size: "small",
|
|
3317
3320
|
"row-key": "id",
|
|
3318
|
-
url: e(
|
|
3321
|
+
url: e(ge).urls.list,
|
|
3319
3322
|
columns: n,
|
|
3320
3323
|
loading: e(k)
|
|
3321
|
-
}, null, 8, ["url", "loading"]), l(
|
|
3324
|
+
}, null, 8, ["url", "loading"]), l(Sl, {
|
|
3322
3325
|
ref_key: "formModalRef",
|
|
3323
3326
|
ref: b,
|
|
3324
3327
|
onRefresh: e(c)
|
|
@@ -3327,14 +3330,14 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3327
3330
|
}, 8, ["modelValue"]);
|
|
3328
3331
|
};
|
|
3329
3332
|
}
|
|
3330
|
-
}),
|
|
3333
|
+
}), Ll = /* @__PURE__ */ O({
|
|
3331
3334
|
__name: "DomainTableDrawer",
|
|
3332
3335
|
setup(x, {
|
|
3333
|
-
expose:
|
|
3336
|
+
expose: R
|
|
3334
3337
|
}) {
|
|
3335
3338
|
const {
|
|
3336
3339
|
requesting: k
|
|
3337
|
-
} = E(
|
|
3340
|
+
} = E(be), h = N(!1), {
|
|
3338
3341
|
tableRef: V,
|
|
3339
3342
|
formModalRef: b,
|
|
3340
3343
|
refresh: c,
|
|
@@ -3396,13 +3399,13 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3396
3399
|
}, null)]
|
|
3397
3400
|
})
|
|
3398
3401
|
}];
|
|
3399
|
-
return
|
|
3402
|
+
return R({
|
|
3400
3403
|
open: () => {
|
|
3401
3404
|
h.value = !0;
|
|
3402
3405
|
}
|
|
3403
3406
|
}), (w, t) => {
|
|
3404
3407
|
const d = s("el-space"), r = s("el-page-header");
|
|
3405
|
-
return C(), T(e(
|
|
3408
|
+
return C(), T(e(fe), {
|
|
3406
3409
|
modelValue: h.value,
|
|
3407
3410
|
"onUpdate:modelValue": t[0] || (t[0] = (y) => h.value = y),
|
|
3408
3411
|
width: "600px",
|
|
@@ -3412,7 +3415,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3412
3415
|
title: o(() => [l(r, {
|
|
3413
3416
|
icon: ""
|
|
3414
3417
|
}, {
|
|
3415
|
-
title: o(() => [
|
|
3418
|
+
title: o(() => [B("span", null, z(e(a)("config.domain")), 1)]),
|
|
3416
3419
|
content: o(() => [l(e(K), {
|
|
3417
3420
|
onRefresh: e(c),
|
|
3418
3421
|
size: "default",
|
|
@@ -3437,18 +3440,18 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3437
3440
|
ref: V,
|
|
3438
3441
|
size: "small",
|
|
3439
3442
|
"row-key": "id",
|
|
3440
|
-
url: e(
|
|
3443
|
+
url: e(be).urls.list,
|
|
3441
3444
|
columns: _,
|
|
3442
3445
|
loading: e(k)
|
|
3443
|
-
}, null, 8, ["url", "loading"]), l(
|
|
3446
|
+
}, null, 8, ["url", "loading"]), l(Ml, {
|
|
3444
3447
|
ref_key: "formModalRef",
|
|
3445
3448
|
ref: b,
|
|
3446
3449
|
onRefresh: e(c)
|
|
3447
|
-
}, null, 8, ["onRefresh"]), l(
|
|
3450
|
+
}, null, 8, ["onRefresh"]), l(Fe, {
|
|
3448
3451
|
ref_key: "sslFormModalRef",
|
|
3449
3452
|
ref: n,
|
|
3450
3453
|
onRefresh: e(c)
|
|
3451
|
-
}, null, 8, ["onRefresh"]), l(
|
|
3454
|
+
}, null, 8, ["onRefresh"]), l(Cl, {
|
|
3452
3455
|
ref_key: "providerTableDrawerRef",
|
|
3453
3456
|
ref: f
|
|
3454
3457
|
}, null, 512)]),
|
|
@@ -3456,15 +3459,15 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3456
3459
|
}, 8, ["modelValue"]);
|
|
3457
3460
|
};
|
|
3458
3461
|
}
|
|
3459
|
-
}),
|
|
3462
|
+
}), ql = /* @__PURE__ */ O({
|
|
3460
3463
|
__name: "SSLTableDrawer",
|
|
3461
3464
|
setup(x, {
|
|
3462
|
-
expose:
|
|
3465
|
+
expose: R
|
|
3463
3466
|
}) {
|
|
3464
3467
|
const {
|
|
3465
3468
|
requesting: k,
|
|
3466
3469
|
executing: h
|
|
3467
|
-
} = E(
|
|
3470
|
+
} = E(ie), V = N(0), b = N(!1), {
|
|
3468
3471
|
tableRef: c,
|
|
3469
3472
|
formModalRef: i,
|
|
3470
3473
|
refresh: p,
|
|
@@ -3509,7 +3512,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3509
3512
|
width: 160,
|
|
3510
3513
|
align: "center",
|
|
3511
3514
|
render: ({
|
|
3512
|
-
rowData:
|
|
3515
|
+
rowData: D
|
|
3513
3516
|
}) => l(s("el-space"), null, {
|
|
3514
3517
|
default: () => [l(le, {
|
|
3515
3518
|
size: "default",
|
|
@@ -3517,48 +3520,48 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3517
3520
|
t: "",
|
|
3518
3521
|
disabled: h.value,
|
|
3519
3522
|
onModify: () => v({
|
|
3520
|
-
id:
|
|
3523
|
+
id: D.id
|
|
3521
3524
|
})
|
|
3522
|
-
}, null), l(
|
|
3525
|
+
}, null), l(H, {
|
|
3523
3526
|
size: "default",
|
|
3524
3527
|
icon: "icon-key",
|
|
3525
3528
|
t: "",
|
|
3526
3529
|
text: !0,
|
|
3527
|
-
disabled: h.value && V.value !==
|
|
3528
|
-
loading: V.value ==
|
|
3529
|
-
onClick: () => g(
|
|
3530
|
-
}, null), l(
|
|
3530
|
+
disabled: h.value && V.value !== D.id,
|
|
3531
|
+
loading: V.value == D.id,
|
|
3532
|
+
onClick: () => g(D.id)
|
|
3533
|
+
}, null), l(H, {
|
|
3531
3534
|
size: "default",
|
|
3532
3535
|
icon: "icon-cloud-download",
|
|
3533
3536
|
t: "",
|
|
3534
3537
|
text: !0,
|
|
3535
|
-
disabled: h.value && V.value !==
|
|
3536
|
-
loading: V.value ==
|
|
3537
|
-
onClick: () => _(
|
|
3538
|
+
disabled: h.value && V.value !== D.id,
|
|
3539
|
+
loading: V.value == D.id,
|
|
3540
|
+
onClick: () => _(D)
|
|
3538
3541
|
}, null)]
|
|
3539
3542
|
})
|
|
3540
3543
|
}
|
|
3541
3544
|
], f = () => {
|
|
3542
3545
|
b.value = !0;
|
|
3543
|
-
}, g = (
|
|
3544
|
-
|
|
3545
|
-
id:
|
|
3546
|
+
}, g = (D) => {
|
|
3547
|
+
ie.gen({
|
|
3548
|
+
id: D
|
|
3546
3549
|
}).then((w) => {
|
|
3547
3550
|
console.warn("Res:", w);
|
|
3548
3551
|
});
|
|
3549
3552
|
};
|
|
3550
|
-
function _(
|
|
3551
|
-
const w =
|
|
3553
|
+
function _(D) {
|
|
3554
|
+
const w = Ce.getDownloadUrl(D.path + ".zip");
|
|
3552
3555
|
fetch(w).then((t) => t.blob()).then((t) => {
|
|
3553
3556
|
let d = URL.createObjectURL(t), r = document.createElement("a");
|
|
3554
|
-
r.style.display = "none", r.href = d, r.download =
|
|
3557
|
+
r.style.display = "none", r.href = d, r.download = D.name + ".zip", r.click(), URL.revokeObjectURL(t);
|
|
3555
3558
|
});
|
|
3556
3559
|
}
|
|
3557
|
-
return
|
|
3560
|
+
return R({
|
|
3558
3561
|
open: f
|
|
3559
|
-
}), (
|
|
3562
|
+
}), (D, w) => {
|
|
3560
3563
|
const t = s("el-page-header");
|
|
3561
|
-
return C(), T(e(
|
|
3564
|
+
return C(), T(e(fe), {
|
|
3562
3565
|
modelValue: b.value,
|
|
3563
3566
|
"onUpdate:modelValue": w[0] || (w[0] = (d) => b.value = d),
|
|
3564
3567
|
width: "1000px",
|
|
@@ -3568,7 +3571,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3568
3571
|
title: o(() => [l(t, {
|
|
3569
3572
|
icon: ""
|
|
3570
3573
|
}, {
|
|
3571
|
-
title: o(() => [
|
|
3574
|
+
title: o(() => [B("span", null, z(e(a)("ssl.ssl")), 1)]),
|
|
3572
3575
|
content: o(() => [l(e(K), {
|
|
3573
3576
|
onRefresh: e(p),
|
|
3574
3577
|
size: "default",
|
|
@@ -3583,10 +3586,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3583
3586
|
ref: c,
|
|
3584
3587
|
size: "default",
|
|
3585
3588
|
"row-key": "id",
|
|
3586
|
-
url: e(
|
|
3589
|
+
url: e(ie).urls.list,
|
|
3587
3590
|
columns: u,
|
|
3588
3591
|
loading: e(k)
|
|
3589
|
-
}, null, 8, ["url", "loading"]), l(
|
|
3592
|
+
}, null, 8, ["url", "loading"]), l(Fe, {
|
|
3590
3593
|
ref_key: "formModalRef",
|
|
3591
3594
|
ref: i,
|
|
3592
3595
|
onRefresh: e(p)
|
|
@@ -3595,7 +3598,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3595
3598
|
}, 8, ["modelValue"]);
|
|
3596
3599
|
};
|
|
3597
3600
|
}
|
|
3598
|
-
}),
|
|
3601
|
+
}), De = W.routineApi("SSLLog", "id"), Tl = /* @__PURE__ */ O({
|
|
3599
3602
|
__name: "SSLLogTableDrawer",
|
|
3600
3603
|
props: {
|
|
3601
3604
|
ssl: {
|
|
@@ -3604,12 +3607,12 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3604
3607
|
}
|
|
3605
3608
|
},
|
|
3606
3609
|
setup(x, {
|
|
3607
|
-
expose:
|
|
3610
|
+
expose: R
|
|
3608
3611
|
}) {
|
|
3609
3612
|
const k = x, {
|
|
3610
3613
|
requesting: h,
|
|
3611
3614
|
executing: V
|
|
3612
|
-
} = E([
|
|
3615
|
+
} = E([De, ie]), b = N(!1), {
|
|
3613
3616
|
tableRef: c,
|
|
3614
3617
|
refresh: i
|
|
3615
3618
|
} = F(), p = [{
|
|
@@ -3632,26 +3635,26 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3632
3635
|
b.value = !0;
|
|
3633
3636
|
};
|
|
3634
3637
|
function v() {
|
|
3635
|
-
|
|
3638
|
+
ie.gen({
|
|
3636
3639
|
id: k.ssl.id
|
|
3637
3640
|
}).then((f) => {
|
|
3638
3641
|
console.warn("Res:", f);
|
|
3639
3642
|
});
|
|
3640
3643
|
}
|
|
3641
3644
|
function u() {
|
|
3642
|
-
const f =
|
|
3645
|
+
const f = Ce.getDownloadUrl(k.ssl.path + ".zip");
|
|
3643
3646
|
fetch(f).then((g) => g.blob()).then((g) => {
|
|
3644
|
-
let _ = URL.createObjectURL(g),
|
|
3645
|
-
|
|
3647
|
+
let _ = URL.createObjectURL(g), D = document.createElement("a");
|
|
3648
|
+
D.style.display = "none", D.href = _, D.download = k.ssl.name + ".zip", D.click(), URL.revokeObjectURL(g);
|
|
3646
3649
|
});
|
|
3647
3650
|
}
|
|
3648
|
-
return
|
|
3651
|
+
return R({
|
|
3649
3652
|
open: n
|
|
3650
3653
|
}), (f, g) => {
|
|
3651
3654
|
const _ = s("el-page-header");
|
|
3652
|
-
return C(), T(e(
|
|
3655
|
+
return C(), T(e(fe), {
|
|
3653
3656
|
modelValue: b.value,
|
|
3654
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
3657
|
+
"onUpdate:modelValue": g[0] || (g[0] = (D) => b.value = D),
|
|
3655
3658
|
width: "600px",
|
|
3656
3659
|
"show-close": !1,
|
|
3657
3660
|
class: "basic-drawer"
|
|
@@ -3659,20 +3662,20 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3659
3662
|
title: o(() => [l(_, {
|
|
3660
3663
|
icon: ""
|
|
3661
3664
|
}, {
|
|
3662
|
-
title: o(() => [
|
|
3665
|
+
title: o(() => [B("span", null, z(e(a)("config.ssl base.log")), 1)]),
|
|
3663
3666
|
content: o(() => [l(e(K), {
|
|
3664
3667
|
onRefresh: e(i),
|
|
3665
3668
|
size: "default",
|
|
3666
3669
|
loading: e(h)
|
|
3667
3670
|
}, null, 8, ["onRefresh", "loading"])]),
|
|
3668
|
-
extra: o(() => [l(e(
|
|
3671
|
+
extra: o(() => [l(e(H), {
|
|
3669
3672
|
size: "default",
|
|
3670
3673
|
type: "danger",
|
|
3671
3674
|
icon: "icon-key",
|
|
3672
3675
|
disabled: e(V),
|
|
3673
3676
|
loading: e(V),
|
|
3674
3677
|
onClick: v
|
|
3675
|
-
}, null, 8, ["disabled", "loading"]), l(e(
|
|
3678
|
+
}, null, 8, ["disabled", "loading"]), l(e(H), {
|
|
3676
3679
|
size: "default",
|
|
3677
3680
|
type: "primary",
|
|
3678
3681
|
icon: "icon-cloud-download",
|
|
@@ -3682,12 +3685,12 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3682
3685
|
}, null, 8, ["disabled", "loading"])]),
|
|
3683
3686
|
_: 1
|
|
3684
3687
|
})]),
|
|
3685
|
-
default: o(() => [l(e(
|
|
3688
|
+
default: o(() => [l(e(ce), {
|
|
3686
3689
|
ref_key: "tableRef",
|
|
3687
3690
|
ref: c,
|
|
3688
3691
|
size: "small",
|
|
3689
3692
|
"row-key": "id",
|
|
3690
|
-
url: e(
|
|
3693
|
+
url: e(De).urls.search,
|
|
3691
3694
|
columns: p,
|
|
3692
3695
|
loading: e(h)
|
|
3693
3696
|
}, null, 8, ["url", "loading"])]),
|
|
@@ -3695,13 +3698,13 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3695
3698
|
}, 8, ["modelValue"]);
|
|
3696
3699
|
};
|
|
3697
3700
|
}
|
|
3698
|
-
}),
|
|
3701
|
+
}), Ol = /* @__PURE__ */ O({
|
|
3699
3702
|
__name: "index",
|
|
3700
3703
|
setup(x) {
|
|
3701
|
-
const
|
|
3704
|
+
const R = N(), {
|
|
3702
3705
|
requesting: k,
|
|
3703
3706
|
executing: h
|
|
3704
|
-
} = E(
|
|
3707
|
+
} = E(ue), {
|
|
3705
3708
|
tableRef: V,
|
|
3706
3709
|
formModalRef: b,
|
|
3707
3710
|
reset: c,
|
|
@@ -3716,7 +3719,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3716
3719
|
openFormModal: g
|
|
3717
3720
|
} = F(), {
|
|
3718
3721
|
formModalRef: _,
|
|
3719
|
-
openFormModal:
|
|
3722
|
+
openFormModal: D
|
|
3720
3723
|
} = F(), w = [{
|
|
3721
3724
|
prop: "domain.name",
|
|
3722
3725
|
label: a("config.domain"),
|
|
@@ -3754,7 +3757,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3754
3757
|
type: "primary",
|
|
3755
3758
|
text: !0,
|
|
3756
3759
|
onClick: (y) => {
|
|
3757
|
-
y.stopPropagation(), r.ssl && r.ssl.id && (
|
|
3760
|
+
y.stopPropagation(), r.ssl && r.ssl.id && (R.value = r.ssl, D());
|
|
3758
3761
|
}
|
|
3759
3762
|
}, {
|
|
3760
3763
|
default: () => [l("span", {
|
|
@@ -3781,7 +3784,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3781
3784
|
onModify: () => n({
|
|
3782
3785
|
id: r.id
|
|
3783
3786
|
})
|
|
3784
|
-
}, null), l(
|
|
3787
|
+
}, null), l(H, {
|
|
3785
3788
|
icon: "icon-securityscan",
|
|
3786
3789
|
type: "primary",
|
|
3787
3790
|
size: "small",
|
|
@@ -3791,18 +3794,18 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3791
3794
|
onClick: () => d(r)
|
|
3792
3795
|
}, null)]
|
|
3793
3796
|
})
|
|
3794
|
-
}], t =
|
|
3795
|
-
t.value = r.id,
|
|
3797
|
+
}], t = N(0), d = (r) => {
|
|
3798
|
+
t.value = r.id, ue.check({
|
|
3796
3799
|
id: r.id
|
|
3797
3800
|
}).then((y) => {
|
|
3798
|
-
y.data && (
|
|
3801
|
+
y.data && (Je(y), i());
|
|
3799
3802
|
}).finally(() => {
|
|
3800
3803
|
t.value = 0;
|
|
3801
3804
|
});
|
|
3802
3805
|
};
|
|
3803
3806
|
return (r, y) => {
|
|
3804
|
-
const m = s("el-space"), S = s("el-page-header"),
|
|
3805
|
-
return C(), T(
|
|
3807
|
+
const m = s("el-space"), S = s("el-page-header"), A = s("el-card");
|
|
3808
|
+
return C(), T(A, {
|
|
3806
3809
|
"body-style": {
|
|
3807
3810
|
padding: "12px",
|
|
3808
3811
|
height: "450px"
|
|
@@ -3813,7 +3816,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3813
3816
|
header: o(() => [l(S, {
|
|
3814
3817
|
icon: ""
|
|
3815
3818
|
}, {
|
|
3816
|
-
title: o(() => [
|
|
3819
|
+
title: o(() => [B("span", null, z(e(a)("config.keys.sites")), 1)]),
|
|
3817
3820
|
content: o(() => [l(m, {
|
|
3818
3821
|
alignment: "center",
|
|
3819
3822
|
style: {
|
|
@@ -3842,20 +3845,20 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3842
3845
|
ref: V,
|
|
3843
3846
|
size: "small",
|
|
3844
3847
|
"row-key": "id",
|
|
3845
|
-
url: e(
|
|
3848
|
+
url: e(ue).urls[e(Xe)],
|
|
3846
3849
|
"auto-search": "",
|
|
3847
3850
|
columns: w
|
|
3848
|
-
}, null, 8, ["url"]), l(
|
|
3851
|
+
}, null, 8, ["url"]), l(Rl, {
|
|
3849
3852
|
ref_key: "formModalRef",
|
|
3850
3853
|
ref: b,
|
|
3851
3854
|
onRefresh: e(i)
|
|
3852
|
-
}, null, 8, ["onRefresh"]), l(
|
|
3855
|
+
}, null, 8, ["onRefresh"]), l(Ll, {
|
|
3853
3856
|
ref_key: "domainTableDrawerRef",
|
|
3854
3857
|
ref: v
|
|
3855
|
-
}, null, 512), l(
|
|
3858
|
+
}, null, 512), l(ql, {
|
|
3856
3859
|
ref_key: "sslTableDrawerRef",
|
|
3857
3860
|
ref: f
|
|
3858
|
-
}, null, 512), l(
|
|
3861
|
+
}, null, 512), l(Tl, {
|
|
3859
3862
|
ref_key: "sslLogTableDrawerRef",
|
|
3860
3863
|
ref: _
|
|
3861
3864
|
}, null, 512)]),
|
|
@@ -3863,17 +3866,17 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3863
3866
|
});
|
|
3864
3867
|
};
|
|
3865
3868
|
}
|
|
3866
|
-
}),
|
|
3869
|
+
}), $l = /* @__PURE__ */ qe(Ol, [["__scopeId", "data-v-17c31592"]]), Fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3867
3870
|
__proto__: null,
|
|
3868
|
-
default:
|
|
3869
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3871
|
+
default: $l
|
|
3872
|
+
}, Symbol.toStringTag, { value: "Module" })), El = {
|
|
3870
3873
|
request: "request",
|
|
3871
3874
|
error: "error",
|
|
3872
3875
|
sql: "SQL"
|
|
3873
|
-
},
|
|
3876
|
+
}, pe = W.routineApi("log", "id", El), Gl = /* @__PURE__ */ O({
|
|
3874
3877
|
__name: "index",
|
|
3875
3878
|
setup(x) {
|
|
3876
|
-
const
|
|
3879
|
+
const R = {
|
|
3877
3880
|
dates: [$.getCurrentHour().format($.DATE_VALUE_FORMAT), $.getCurrentHour(1).format($.DATE_VALUE_FORMAT)]
|
|
3878
3881
|
}, k = [{
|
|
3879
3882
|
label: a("base.sort"),
|
|
@@ -3893,12 +3896,12 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3893
3896
|
width: 200
|
|
3894
3897
|
}], {
|
|
3895
3898
|
requesting: h
|
|
3896
|
-
} = E(
|
|
3899
|
+
} = E(pe), {
|
|
3897
3900
|
tableRef: V,
|
|
3898
3901
|
keyword: b,
|
|
3899
3902
|
search: c,
|
|
3900
3903
|
reset: i
|
|
3901
|
-
} = F(
|
|
3904
|
+
} = F(R);
|
|
3902
3905
|
return (p, n) => {
|
|
3903
3906
|
const v = s("el-date-picker"), u = s("el-space"), f = s("el-page-header"), g = s("el-card");
|
|
3904
3907
|
return C(), T(g, {
|
|
@@ -3940,7 +3943,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3940
3943
|
ref: V,
|
|
3941
3944
|
size: "small",
|
|
3942
3945
|
columns: k,
|
|
3943
|
-
url: e(
|
|
3946
|
+
url: e(pe).urls.request,
|
|
3944
3947
|
"search-param": e(b),
|
|
3945
3948
|
"auto-search": ""
|
|
3946
3949
|
}, null, 8, ["url", "search-param"])]),
|
|
@@ -3948,10 +3951,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3948
3951
|
});
|
|
3949
3952
|
};
|
|
3950
3953
|
}
|
|
3951
|
-
}),
|
|
3954
|
+
}), Hl = /* @__PURE__ */ O({
|
|
3952
3955
|
__name: "index",
|
|
3953
3956
|
setup(x) {
|
|
3954
|
-
const
|
|
3957
|
+
const R = {
|
|
3955
3958
|
dates: [$.getCurrentDate(-7).format($.DATE_FORMAT), $.getCurrentDate(0).format($.DATE_FORMAT)]
|
|
3956
3959
|
}, k = [{
|
|
3957
3960
|
label: a("base.sort"),
|
|
@@ -3971,12 +3974,12 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3971
3974
|
width: 200
|
|
3972
3975
|
}], {
|
|
3973
3976
|
requesting: h
|
|
3974
|
-
} = E(
|
|
3977
|
+
} = E(pe), {
|
|
3975
3978
|
tableRef: V,
|
|
3976
3979
|
keyword: b,
|
|
3977
3980
|
search: c,
|
|
3978
3981
|
reset: i
|
|
3979
|
-
} = F(
|
|
3982
|
+
} = F(R);
|
|
3980
3983
|
return (p, n) => {
|
|
3981
3984
|
const v = s("el-date-picker"), u = s("el-space"), f = s("el-page-header"), g = s("el-card");
|
|
3982
3985
|
return C(), T(g, {
|
|
@@ -4018,7 +4021,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
4018
4021
|
ref: V,
|
|
4019
4022
|
size: "small",
|
|
4020
4023
|
columns: k,
|
|
4021
|
-
url: e(
|
|
4024
|
+
url: e(pe).urls.error,
|
|
4022
4025
|
"search-param": e(b),
|
|
4023
4026
|
"auto-search": ""
|
|
4024
4027
|
}, null, 8, ["url", "search-param"])]),
|
|
@@ -4026,10 +4029,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
4026
4029
|
});
|
|
4027
4030
|
};
|
|
4028
4031
|
}
|
|
4029
|
-
}),
|
|
4032
|
+
}), Ql = /* @__PURE__ */ O({
|
|
4030
4033
|
__name: "index",
|
|
4031
4034
|
setup(x) {
|
|
4032
|
-
const
|
|
4035
|
+
const R = {
|
|
4033
4036
|
dates: [$.getCurrentDate(-7).format($.DATE_FORMAT), $.getCurrentDate().format($.DATE_FORMAT)]
|
|
4034
4037
|
}, k = [{
|
|
4035
4038
|
label: a("base.sort"),
|
|
@@ -4049,12 +4052,12 @@ const Bl = /* @__PURE__ */ O({
|
|
|
4049
4052
|
width: 200
|
|
4050
4053
|
}], {
|
|
4051
4054
|
requesting: h
|
|
4052
|
-
} = E(
|
|
4055
|
+
} = E(pe), {
|
|
4053
4056
|
tableRef: V,
|
|
4054
4057
|
keyword: b,
|
|
4055
4058
|
search: c,
|
|
4056
4059
|
reset: i
|
|
4057
|
-
} = F(
|
|
4060
|
+
} = F(R);
|
|
4058
4061
|
return (p, n) => {
|
|
4059
4062
|
const v = s("el-date-picker"), u = s("el-space"), f = s("el-page-header"), g = s("el-card");
|
|
4060
4063
|
return C(), T(g, {
|
|
@@ -4096,7 +4099,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
4096
4099
|
ref: V,
|
|
4097
4100
|
size: "small",
|
|
4098
4101
|
columns: k,
|
|
4099
|
-
url: e(
|
|
4102
|
+
url: e(pe).urls.sql,
|
|
4100
4103
|
"search-param": e(b),
|
|
4101
4104
|
"auto-search": ""
|
|
4102
4105
|
}, null, 8, ["url", "search-param"])]),
|
|
@@ -4104,52 +4107,52 @@ const Bl = /* @__PURE__ */ O({
|
|
|
4104
4107
|
});
|
|
4105
4108
|
};
|
|
4106
4109
|
}
|
|
4107
|
-
}),
|
|
4110
|
+
}), zl = () => import("./index-SHsqnbNG.js"), Il = () => import("./index-CJMTIvHk.js"), Nl = () => import("./index-BMn8mAns.js"), Jl = [
|
|
4108
4111
|
{
|
|
4109
|
-
path:
|
|
4112
|
+
path: Ze,
|
|
4110
4113
|
name: "RequestLog",
|
|
4111
|
-
component:
|
|
4114
|
+
component: zl,
|
|
4112
4115
|
meta: {
|
|
4113
4116
|
title: a("menu.RequestLog")
|
|
4114
4117
|
}
|
|
4115
4118
|
},
|
|
4116
4119
|
{
|
|
4117
|
-
path:
|
|
4120
|
+
path: el,
|
|
4118
4121
|
name: "ErrorLog",
|
|
4119
|
-
component:
|
|
4122
|
+
component: Il,
|
|
4120
4123
|
meta: {
|
|
4121
4124
|
title: a("menu.ErrorLog")
|
|
4122
4125
|
}
|
|
4123
4126
|
},
|
|
4124
4127
|
{
|
|
4125
|
-
path:
|
|
4128
|
+
path: ll,
|
|
4126
4129
|
name: "SqlLog",
|
|
4127
|
-
component:
|
|
4130
|
+
component: Nl,
|
|
4128
4131
|
meta: {
|
|
4129
4132
|
title: a("menu.SqlLog")
|
|
4130
4133
|
}
|
|
4131
4134
|
}
|
|
4132
|
-
],
|
|
4135
|
+
], Xl = {
|
|
4133
4136
|
install: (x) => {
|
|
4134
|
-
Reflect.ownKeys(x._context.provides).some((
|
|
4137
|
+
Reflect.ownKeys(x._context.provides).some((R) => String(R) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app.", Reflect.ownKeys(x._context.provides));
|
|
4135
4138
|
},
|
|
4136
4139
|
version: "__VERSION__"
|
|
4137
|
-
},
|
|
4140
|
+
}, Zl = /* @__PURE__ */ Object.assign({ "./views/admin/index.vue": () => import("./index-UtDarrUe.js"), "./views/language/index.vue": () => import("./index-CV4JohFl.js"), "./views/menu/index.vue": () => import("./index-DQqJ05PJ.js"), "./views/role/index.vue": () => import("./index-DM5SO2SX.js"), "./views/site/index.vue": () => Promise.resolve().then(() => Fl) });
|
|
4138
4141
|
export {
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4142
|
+
Yl as AdminsPage,
|
|
4143
|
+
Ul as DomainProviderSelect,
|
|
4144
|
+
$e as DomainSelect,
|
|
4145
|
+
Hl as ErrorLogsPage,
|
|
4146
|
+
Wl as LanguagesPage,
|
|
4147
|
+
Jl as LogRoutes,
|
|
4148
|
+
ul as MenuSelect,
|
|
4149
|
+
jl as MenusPage,
|
|
4150
|
+
Gl as RequestLogsPage,
|
|
4151
|
+
Kl as RolesPage,
|
|
4152
|
+
Ql as SQLLogsPage,
|
|
4153
|
+
$l as SitePage,
|
|
4154
|
+
Dl as SiteSelect,
|
|
4155
|
+
dl as TopMenuSelect,
|
|
4156
|
+
Zl as basicModules,
|
|
4157
|
+
Xl as default
|
|
4155
4158
|
};
|