auto-vue-basic 0.0.78 → 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 +492 -482
- 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,24 +1427,24 @@ 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: "",
|
|
@@ -1476,12 +1476,12 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1476
1476
|
trigger: "change"
|
|
1477
1477
|
}
|
|
1478
1478
|
]
|
|
1479
|
-
}, c =
|
|
1479
|
+
}, c = N([]), i = Ge();
|
|
1480
1480
|
function p() {
|
|
1481
1481
|
const r = {
|
|
1482
1482
|
isArray: !0,
|
|
1483
1483
|
key: "I18N_LANGUAGES",
|
|
1484
|
-
url:
|
|
1484
|
+
url: J.urls.languages,
|
|
1485
1485
|
params: {}
|
|
1486
1486
|
};
|
|
1487
1487
|
i.GET_CACHE({ ...r, force: !0 }).then((y) => {
|
|
@@ -1489,15 +1489,15 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1489
1489
|
});
|
|
1490
1490
|
}
|
|
1491
1491
|
p();
|
|
1492
|
-
const { modal: n, title: v, form: u, formData: f, requesting: g, executing: _, open:
|
|
1493
|
-
return
|
|
1494
|
-
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,
|
|
1495
1495
|
modify: w
|
|
1496
1496
|
}), (r, y) => {
|
|
1497
|
-
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");
|
|
1498
1498
|
return C(), T(e(ee), {
|
|
1499
1499
|
modelValue: e(n),
|
|
1500
|
-
"onUpdate:modelValue": y[3] || (y[3] = (
|
|
1500
|
+
"onUpdate:modelValue": y[3] || (y[3] = (M) => P(n) ? n.value = M : null),
|
|
1501
1501
|
title: e(v)(),
|
|
1502
1502
|
width: "600px",
|
|
1503
1503
|
executing: e(_),
|
|
@@ -1520,9 +1520,9 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1520
1520
|
required: ""
|
|
1521
1521
|
}, {
|
|
1522
1522
|
default: o(() => [
|
|
1523
|
-
l(
|
|
1523
|
+
l(Te, {
|
|
1524
1524
|
modelValue: e(f).module,
|
|
1525
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
1525
|
+
"onUpdate:modelValue": y[0] || (y[0] = (M) => e(f).module = M),
|
|
1526
1526
|
"allow-create": ""
|
|
1527
1527
|
}, null, 8, ["modelValue"])
|
|
1528
1528
|
]),
|
|
@@ -1536,7 +1536,7 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1536
1536
|
default: o(() => [
|
|
1537
1537
|
l(S, {
|
|
1538
1538
|
modelValue: e(f).key,
|
|
1539
|
-
"onUpdate:modelValue": y[1] || (y[1] = (
|
|
1539
|
+
"onUpdate:modelValue": y[1] || (y[1] = (M) => e(f).key = M),
|
|
1540
1540
|
placeholder: e(a)("i18n.placeholder.key")
|
|
1541
1541
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1542
1542
|
]),
|
|
@@ -1548,20 +1548,20 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1548
1548
|
required: ""
|
|
1549
1549
|
}, {
|
|
1550
1550
|
default: o(() => [
|
|
1551
|
-
l(
|
|
1551
|
+
l(A, {
|
|
1552
1552
|
direction: "vertical",
|
|
1553
1553
|
fill: "",
|
|
1554
1554
|
style: { width: "100%" }
|
|
1555
1555
|
}, {
|
|
1556
1556
|
default: o(() => [
|
|
1557
|
-
(C(!0),
|
|
1557
|
+
(C(!0), I(G, null, ae(c.value, (M) => (C(), I("div", { key: M }, [
|
|
1558
1558
|
l(S, {
|
|
1559
|
-
modelValue: e(f).language[
|
|
1560
|
-
"onUpdate:modelValue": (L) => e(f).language[
|
|
1561
|
-
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")
|
|
1562
1562
|
}, {
|
|
1563
1563
|
prepend: o(() => [
|
|
1564
|
-
Z(z(
|
|
1564
|
+
Z(z(M), 1)
|
|
1565
1565
|
]),
|
|
1566
1566
|
_: 2
|
|
1567
1567
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
@@ -1579,7 +1579,7 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1579
1579
|
default: o(() => [
|
|
1580
1580
|
l(S, {
|
|
1581
1581
|
modelValue: e(f).remark,
|
|
1582
|
-
"onUpdate:modelValue": y[2] || (y[2] = (
|
|
1582
|
+
"onUpdate:modelValue": y[2] || (y[2] = (M) => e(f).remark = M),
|
|
1583
1583
|
placeholder: e(a)("placeholder.remark")
|
|
1584
1584
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1585
1585
|
]),
|
|
@@ -1594,17 +1594,17 @@ const Nl = /* @__PURE__ */ O({
|
|
|
1594
1594
|
};
|
|
1595
1595
|
}
|
|
1596
1596
|
});
|
|
1597
|
-
function
|
|
1598
|
-
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);
|
|
1599
1599
|
}
|
|
1600
|
-
const
|
|
1600
|
+
const Oe = /* @__PURE__ */ O({
|
|
1601
1601
|
__name: "I18N",
|
|
1602
1602
|
emits: ["closed", "choosed"],
|
|
1603
1603
|
setup(x, {
|
|
1604
|
-
expose:
|
|
1604
|
+
expose: R,
|
|
1605
1605
|
emit: k
|
|
1606
1606
|
}) {
|
|
1607
|
-
const h =
|
|
1607
|
+
const h = N(!1), V = k, b = {
|
|
1608
1608
|
keyword: "",
|
|
1609
1609
|
module: void 0,
|
|
1610
1610
|
status: 0
|
|
@@ -1623,8 +1623,8 @@ const Te = /* @__PURE__ */ O({
|
|
|
1623
1623
|
render: ({
|
|
1624
1624
|
row: y
|
|
1625
1625
|
}) => {
|
|
1626
|
-
const S = Object.keys(y.language).filter((
|
|
1627
|
-
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 : {
|
|
1628
1628
|
default: () => [S]
|
|
1629
1629
|
});
|
|
1630
1630
|
}
|
|
@@ -1636,7 +1636,7 @@ const Te = /* @__PURE__ */ O({
|
|
|
1636
1636
|
props: {
|
|
1637
1637
|
activeValue: 1,
|
|
1638
1638
|
inactiveValue: 2,
|
|
1639
|
-
api:
|
|
1639
|
+
api: J.urls[Ue],
|
|
1640
1640
|
refresh: !0
|
|
1641
1641
|
}
|
|
1642
1642
|
}, {
|
|
@@ -1652,7 +1652,7 @@ const Te = /* @__PURE__ */ O({
|
|
|
1652
1652
|
onModify: () => w({
|
|
1653
1653
|
uuid: y.uuid
|
|
1654
1654
|
})
|
|
1655
|
-
}, null), l(
|
|
1655
|
+
}, null), l(H, {
|
|
1656
1656
|
size: "default",
|
|
1657
1657
|
text: !0,
|
|
1658
1658
|
type: "danger",
|
|
@@ -1663,18 +1663,18 @@ const Te = /* @__PURE__ */ O({
|
|
|
1663
1663
|
}], {
|
|
1664
1664
|
requesting: i,
|
|
1665
1665
|
executing: p
|
|
1666
|
-
} = E(
|
|
1666
|
+
} = E(J), {
|
|
1667
1667
|
tableRef: n,
|
|
1668
1668
|
formModalRef: v,
|
|
1669
1669
|
keyword: u,
|
|
1670
1670
|
search: f,
|
|
1671
1671
|
reset: g,
|
|
1672
1672
|
refresh: _,
|
|
1673
|
-
openFormModal:
|
|
1673
|
+
openFormModal: D,
|
|
1674
1674
|
editFormModal: w
|
|
1675
1675
|
} = F(b);
|
|
1676
1676
|
function t(y) {
|
|
1677
|
-
return
|
|
1677
|
+
return J.remove({
|
|
1678
1678
|
uuid: y
|
|
1679
1679
|
}).finally(() => {
|
|
1680
1680
|
_();
|
|
@@ -1686,15 +1686,15 @@ const Te = /* @__PURE__ */ O({
|
|
|
1686
1686
|
function r(y) {
|
|
1687
1687
|
V("choosed", y), h.value = !1;
|
|
1688
1688
|
}
|
|
1689
|
-
return
|
|
1689
|
+
return Re(() => h.value, (y) => {
|
|
1690
1690
|
y || V("closed");
|
|
1691
|
-
}),
|
|
1691
|
+
}), R({
|
|
1692
1692
|
open: d
|
|
1693
1693
|
}), (y, m) => {
|
|
1694
|
-
const S = s("el-input"),
|
|
1695
|
-
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), {
|
|
1696
1696
|
modelValue: h.value,
|
|
1697
|
-
"onUpdate:modelValue": m[7] || (m[7] = (
|
|
1697
|
+
"onUpdate:modelValue": m[7] || (m[7] = (U) => h.value = U),
|
|
1698
1698
|
width: "880px",
|
|
1699
1699
|
"show-close": !1,
|
|
1700
1700
|
class: "basic-drawer"
|
|
@@ -1706,9 +1706,9 @@ const Te = /* @__PURE__ */ O({
|
|
|
1706
1706
|
loading: e(i),
|
|
1707
1707
|
onRefresh: e(g)
|
|
1708
1708
|
}, null, 8, ["loading", "onRefresh"]), l(e(j), {
|
|
1709
|
-
onOpen: e(
|
|
1709
|
+
onOpen: e(D)
|
|
1710
1710
|
}, null, 8, ["onOpen"])]),
|
|
1711
|
-
content: o(() => [l(
|
|
1711
|
+
content: o(() => [l(M, {
|
|
1712
1712
|
class: "search-bar"
|
|
1713
1713
|
}, {
|
|
1714
1714
|
default: o(() => [l(S, {
|
|
@@ -1716,46 +1716,46 @@ const Te = /* @__PURE__ */ O({
|
|
|
1716
1716
|
width: "160px"
|
|
1717
1717
|
},
|
|
1718
1718
|
modelValue: e(u).keyword,
|
|
1719
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
1719
|
+
"onUpdate:modelValue": m[0] || (m[0] = (U) => e(u).keyword = U),
|
|
1720
1720
|
placeholder: e(a)("placeholder.keyword"),
|
|
1721
1721
|
clearable: "",
|
|
1722
|
-
onKeyup: m[1] || (m[1] =
|
|
1723
|
-
onClear: m[2] || (m[2] = (
|
|
1724
|
-
}, 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, {
|
|
1725
1725
|
modelValue: e(u).module,
|
|
1726
|
-
"onUpdate:modelValue": m[3] || (m[3] = (
|
|
1726
|
+
"onUpdate:modelValue": m[3] || (m[3] = (U) => e(u).module = U),
|
|
1727
1727
|
clearable: !0,
|
|
1728
1728
|
style: {
|
|
1729
1729
|
width: "160px"
|
|
1730
1730
|
}
|
|
1731
1731
|
}, null, 8, ["modelValue"]), l(q, {
|
|
1732
1732
|
modelValue: e(u).status,
|
|
1733
|
-
"onUpdate:modelValue": m[4] || (m[4] = (
|
|
1734
|
-
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)())
|
|
1735
1735
|
}, {
|
|
1736
|
-
default: o(() => [(C(),
|
|
1737
|
-
key:
|
|
1738
|
-
label: e(a)(`status.${
|
|
1739
|
-
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
|
|
1740
1740
|
}, null, 8, ["label", "value"])), 64))]),
|
|
1741
1741
|
_: 1
|
|
1742
1742
|
}, 8, ["modelValue"]), l(e(oe), {
|
|
1743
1743
|
disabled: e(i),
|
|
1744
|
-
onSearch: m[6] || (m[6] = (
|
|
1744
|
+
onSearch: m[6] || (m[6] = (U) => e(f)())
|
|
1745
1745
|
}, null, 8, ["disabled"])]),
|
|
1746
1746
|
_: 1
|
|
1747
1747
|
})]),
|
|
1748
1748
|
_: 1
|
|
1749
1749
|
})]),
|
|
1750
|
-
default: o(() => [l(e(
|
|
1750
|
+
default: o(() => [l(e(ce), {
|
|
1751
1751
|
ref_key: "tableRef",
|
|
1752
1752
|
ref: n,
|
|
1753
1753
|
columns: c,
|
|
1754
|
-
url: e(
|
|
1754
|
+
url: e(J).urls[e(Ve)],
|
|
1755
1755
|
"search-param": e(u),
|
|
1756
1756
|
onRowDblclick: r,
|
|
1757
1757
|
"auto-search": ""
|
|
1758
|
-
}, null, 8, ["url", "search-param"]), l(
|
|
1758
|
+
}, null, 8, ["url", "search-param"]), l(bl, {
|
|
1759
1759
|
ref_key: "formModalRef",
|
|
1760
1760
|
ref: v,
|
|
1761
1761
|
onRefresh: e(_)
|
|
@@ -1764,14 +1764,14 @@ const Te = /* @__PURE__ */ O({
|
|
|
1764
1764
|
}, 8, ["modelValue"]);
|
|
1765
1765
|
};
|
|
1766
1766
|
}
|
|
1767
|
-
}),
|
|
1767
|
+
}), hl = { key: 0 }, Vl = { key: 1 }, yl = /* @__PURE__ */ O({
|
|
1768
1768
|
__name: "template",
|
|
1769
1769
|
emits: ["refresh"],
|
|
1770
|
-
setup(x, { expose:
|
|
1771
|
-
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({
|
|
1772
1772
|
"zh-CN": "primary",
|
|
1773
1773
|
"en-US": "success"
|
|
1774
|
-
}), p =
|
|
1774
|
+
}), p = N({}), n = {
|
|
1775
1775
|
uuid: "",
|
|
1776
1776
|
app: 1,
|
|
1777
1777
|
keys: "",
|
|
@@ -1799,46 +1799,56 @@ const Te = /* @__PURE__ */ O({
|
|
|
1799
1799
|
trigger: "change"
|
|
1800
1800
|
}
|
|
1801
1801
|
]
|
|
1802
|
-
}, { 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);
|
|
1803
1803
|
function m() {
|
|
1804
1804
|
c.value = "1080px", V();
|
|
1805
1805
|
}
|
|
1806
1806
|
function S() {
|
|
1807
1807
|
c.value = "600px";
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1810
|
-
let
|
|
1811
|
-
_.keys =
|
|
1812
|
-
for (const
|
|
1813
|
-
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]);
|
|
1814
1814
|
}
|
|
1815
1815
|
function q() {
|
|
1816
|
-
c.value = "600px",
|
|
1816
|
+
c.value = "600px", M();
|
|
1817
|
+
}
|
|
1818
|
+
function M() {
|
|
1819
|
+
_.keys = "", _.values = [], p.value = {
|
|
1817
1820
|
"zh-CN": [],
|
|
1818
1821
|
"en-US": []
|
|
1819
1822
|
};
|
|
1820
1823
|
}
|
|
1821
|
-
return
|
|
1822
|
-
|
|
1823
|
-
}),
|
|
1824
|
+
return Re(() => u.value, (L) => {
|
|
1825
|
+
L ? q() : y();
|
|
1826
|
+
}), R({
|
|
1824
1827
|
open: t,
|
|
1825
1828
|
modify: d
|
|
1826
|
-
}), (
|
|
1827
|
-
const
|
|
1828
|
-
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), {
|
|
1829
1832
|
modelValue: e(u),
|
|
1830
|
-
"onUpdate:modelValue":
|
|
1833
|
+
"onUpdate:modelValue": U[3] || (U[3] = (Q) => P(u) ? u.value = Q : null),
|
|
1831
1834
|
width: c.value,
|
|
1832
1835
|
"show-close": !1,
|
|
1833
1836
|
class: "basic-drawer"
|
|
1834
1837
|
}, {
|
|
1835
1838
|
title: o(() => [
|
|
1836
|
-
l(
|
|
1839
|
+
l(se, { class: "basic-header" }, {
|
|
1837
1840
|
title: o(() => [
|
|
1838
1841
|
Z(z(e(f)("i18n.template")), 1)
|
|
1839
1842
|
]),
|
|
1840
1843
|
extra: o(() => [
|
|
1841
|
-
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), {
|
|
1842
1852
|
circle: !1,
|
|
1843
1853
|
size: "default",
|
|
1844
1854
|
type: "primary",
|
|
@@ -1852,24 +1862,24 @@ const Te = /* @__PURE__ */ O({
|
|
|
1852
1862
|
})
|
|
1853
1863
|
]),
|
|
1854
1864
|
default: o(() => [
|
|
1855
|
-
l(
|
|
1865
|
+
l(Ne, {
|
|
1856
1866
|
ref_key: "form",
|
|
1857
1867
|
ref: g,
|
|
1858
1868
|
model: e(_),
|
|
1859
1869
|
"label-width": "auto",
|
|
1860
1870
|
rules: v,
|
|
1861
|
-
disabled: e(
|
|
1871
|
+
disabled: e(D) || e(w)
|
|
1862
1872
|
}, {
|
|
1863
1873
|
default: o(() => [
|
|
1864
|
-
l(
|
|
1874
|
+
l(_e, {
|
|
1865
1875
|
label: e(a)("base.app"),
|
|
1866
1876
|
prop: "app",
|
|
1867
1877
|
required: ""
|
|
1868
1878
|
}, {
|
|
1869
1879
|
default: o(() => [
|
|
1870
|
-
l(e(
|
|
1880
|
+
l(e(Se), {
|
|
1871
1881
|
modelValue: e(_).app,
|
|
1872
|
-
"onUpdate:modelValue":
|
|
1882
|
+
"onUpdate:modelValue": U[0] || (U[0] = (Q) => e(_).app = Q),
|
|
1873
1883
|
"cache-key": "I18NAPPS",
|
|
1874
1884
|
hidden: [0],
|
|
1875
1885
|
url: e(te).urls.apps
|
|
@@ -1877,20 +1887,20 @@ const Te = /* @__PURE__ */ O({
|
|
|
1877
1887
|
]),
|
|
1878
1888
|
_: 1
|
|
1879
1889
|
}, 8, ["label"]),
|
|
1880
|
-
l(
|
|
1890
|
+
l(_e, {
|
|
1881
1891
|
label: e(a)("i18n.keys"),
|
|
1882
1892
|
prop: "keys",
|
|
1883
1893
|
required: ""
|
|
1884
1894
|
}, {
|
|
1885
1895
|
default: o(() => [
|
|
1886
|
-
l(
|
|
1896
|
+
l(Me, {
|
|
1887
1897
|
modelValue: e(_).keys,
|
|
1888
|
-
"onUpdate:modelValue":
|
|
1898
|
+
"onUpdate:modelValue": U[1] || (U[1] = (Q) => e(_).keys = Q),
|
|
1889
1899
|
placeholder: e(a)("i18n.placeholder.key")
|
|
1890
1900
|
}, {
|
|
1891
1901
|
append: o(() => [
|
|
1892
|
-
l(
|
|
1893
|
-
icon: e(
|
|
1902
|
+
l(Ee, {
|
|
1903
|
+
icon: e(rl),
|
|
1894
1904
|
onClick: m
|
|
1895
1905
|
}, null, 8, ["icon"])
|
|
1896
1906
|
]),
|
|
@@ -1899,7 +1909,7 @@ const Te = /* @__PURE__ */ O({
|
|
|
1899
1909
|
]),
|
|
1900
1910
|
_: 1
|
|
1901
1911
|
}, 8, ["label"]),
|
|
1902
|
-
l(
|
|
1912
|
+
l(_e, {
|
|
1903
1913
|
label: e(a)("i18n.values"),
|
|
1904
1914
|
prop: "values",
|
|
1905
1915
|
required: ""
|
|
@@ -1909,17 +1919,17 @@ const Te = /* @__PURE__ */ O({
|
|
|
1909
1919
|
]),
|
|
1910
1920
|
_: 1
|
|
1911
1921
|
}, 8, ["label"]),
|
|
1912
|
-
l(
|
|
1922
|
+
l(_e, {
|
|
1913
1923
|
label: e(a)("i18n.values")
|
|
1914
1924
|
}, {
|
|
1915
1925
|
default: o(() => [
|
|
1916
|
-
(C(!0),
|
|
1926
|
+
(C(!0), I(G, null, ae(p.value, (Q, ye) => (C(), I("div", {
|
|
1917
1927
|
key: ye,
|
|
1918
1928
|
class: "w-full"
|
|
1919
1929
|
}, [
|
|
1920
|
-
l(
|
|
1930
|
+
l(Ie, null, {
|
|
1921
1931
|
default: o(() => [
|
|
1922
|
-
l(
|
|
1932
|
+
l(ze, {
|
|
1923
1933
|
type: i.value[ye],
|
|
1924
1934
|
style: { "min-width": "80px" }
|
|
1925
1935
|
}, {
|
|
@@ -1928,7 +1938,7 @@ const Te = /* @__PURE__ */ O({
|
|
|
1928
1938
|
]),
|
|
1929
1939
|
_: 2
|
|
1930
1940
|
}, 1032, ["type"]),
|
|
1931
|
-
|
|
1941
|
+
ye == "zh-CN" ? (C(), I("span", hl, z(Q.join("")), 1)) : (C(), I("span", Vl, z(Q.join(" ")), 1))
|
|
1932
1942
|
]),
|
|
1933
1943
|
_: 2
|
|
1934
1944
|
}, 1024)
|
|
@@ -1936,14 +1946,14 @@ const Te = /* @__PURE__ */ O({
|
|
|
1936
1946
|
]),
|
|
1937
1947
|
_: 1
|
|
1938
1948
|
}, 8, ["label"]),
|
|
1939
|
-
l(
|
|
1949
|
+
l(_e, {
|
|
1940
1950
|
label: e(a)("base.remark"),
|
|
1941
1951
|
prop: "remark"
|
|
1942
1952
|
}, {
|
|
1943
1953
|
default: o(() => [
|
|
1944
|
-
l(
|
|
1954
|
+
l(Me, {
|
|
1945
1955
|
modelValue: e(_).remark,
|
|
1946
|
-
"onUpdate:modelValue":
|
|
1956
|
+
"onUpdate:modelValue": U[2] || (U[2] = (Q) => e(_).remark = Q),
|
|
1947
1957
|
placeholder: e(a)("placeholder.input")
|
|
1948
1958
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1949
1959
|
]),
|
|
@@ -1952,10 +1962,10 @@ const Te = /* @__PURE__ */ O({
|
|
|
1952
1962
|
]),
|
|
1953
1963
|
_: 1
|
|
1954
1964
|
}, 8, ["model", "disabled"]),
|
|
1955
|
-
l(
|
|
1965
|
+
l(Oe, {
|
|
1956
1966
|
ref_key: "I18nTableDrawerRef",
|
|
1957
1967
|
ref: h,
|
|
1958
|
-
onChoosed:
|
|
1968
|
+
onChoosed: A,
|
|
1959
1969
|
onClosed: S
|
|
1960
1970
|
}, null, 512)
|
|
1961
1971
|
]),
|
|
@@ -1963,16 +1973,16 @@ const Te = /* @__PURE__ */ O({
|
|
|
1963
1973
|
}, 8, ["modelValue", "width"]);
|
|
1964
1974
|
};
|
|
1965
1975
|
}
|
|
1966
|
-
}),
|
|
1976
|
+
}), kl = W.routineApi("gateway", "id", {
|
|
1967
1977
|
gen: "gen_translation"
|
|
1968
1978
|
});
|
|
1969
|
-
function
|
|
1970
|
-
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);
|
|
1971
1981
|
}
|
|
1972
|
-
const
|
|
1982
|
+
const Wl = /* @__PURE__ */ O({
|
|
1973
1983
|
__name: "index",
|
|
1974
1984
|
setup(x) {
|
|
1975
|
-
const
|
|
1985
|
+
const R = {
|
|
1976
1986
|
keyword: "",
|
|
1977
1987
|
app: 0,
|
|
1978
1988
|
status: 0
|
|
@@ -1987,7 +1997,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
1987
1997
|
return l(s("el-tag"), {
|
|
1988
1998
|
type: a("i18n.app.colors." + d.app),
|
|
1989
1999
|
style: "min-width: 80px"
|
|
1990
|
-
},
|
|
2000
|
+
}, vl(r = a("i18n.app." + d.app)) ? r : {
|
|
1991
2001
|
default: () => [r]
|
|
1992
2002
|
});
|
|
1993
2003
|
}
|
|
@@ -2007,7 +2017,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2007
2017
|
props: {
|
|
2008
2018
|
activeValue: 1,
|
|
2009
2019
|
inactiveValue: 2,
|
|
2010
|
-
api: te.urls[
|
|
2020
|
+
api: te.urls[Ue],
|
|
2011
2021
|
refresh: !0
|
|
2012
2022
|
}
|
|
2013
2023
|
}, {
|
|
@@ -2036,12 +2046,12 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2036
2046
|
onModify: () => _({
|
|
2037
2047
|
uuid: d.uuid
|
|
2038
2048
|
})
|
|
2039
|
-
}, null), l(
|
|
2049
|
+
}, null), l(H, {
|
|
2040
2050
|
size: "default",
|
|
2041
2051
|
text: !0,
|
|
2042
2052
|
type: "danger",
|
|
2043
2053
|
loading: V.value,
|
|
2044
|
-
onClick: () =>
|
|
2054
|
+
onClick: () => D(d.uuid)
|
|
2045
2055
|
}, null)]
|
|
2046
2056
|
})
|
|
2047
2057
|
}], {
|
|
@@ -2059,8 +2069,8 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2059
2069
|
refresh: f,
|
|
2060
2070
|
openFormModal: g,
|
|
2061
2071
|
editFormModal: _
|
|
2062
|
-
} = F(
|
|
2063
|
-
function
|
|
2072
|
+
} = F(R);
|
|
2073
|
+
function D(d) {
|
|
2064
2074
|
return te.remove({
|
|
2065
2075
|
uuid: d
|
|
2066
2076
|
}).finally(() => {
|
|
@@ -2068,22 +2078,22 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2068
2078
|
});
|
|
2069
2079
|
}
|
|
2070
2080
|
function w() {
|
|
2071
|
-
return
|
|
2081
|
+
return J.gen().finally(() => {
|
|
2072
2082
|
f();
|
|
2073
2083
|
});
|
|
2074
2084
|
}
|
|
2075
2085
|
function t() {
|
|
2076
|
-
|
|
2086
|
+
kl.gen().finally(() => {
|
|
2077
2087
|
f();
|
|
2078
2088
|
});
|
|
2079
2089
|
}
|
|
2080
2090
|
return (d, r) => {
|
|
2081
|
-
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");
|
|
2082
2092
|
return C(), T(L, {
|
|
2083
2093
|
class: "basic-card flex-full",
|
|
2084
2094
|
"body-class": "flex-1"
|
|
2085
2095
|
}, {
|
|
2086
|
-
header: o(() => [l(
|
|
2096
|
+
header: o(() => [l(M, {
|
|
2087
2097
|
class: "basic-header"
|
|
2088
2098
|
}, {
|
|
2089
2099
|
title: o(() => [l(e(K), {
|
|
@@ -2092,14 +2102,14 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2092
2102
|
}, null, 8, ["loading", "onRefresh"]), l(e(j), {
|
|
2093
2103
|
onOpen: e(g)
|
|
2094
2104
|
}, null, 8, ["onOpen"])]),
|
|
2095
|
-
extra: o(() => [l(e(
|
|
2105
|
+
extra: o(() => [l(e(H), {
|
|
2096
2106
|
size: "default",
|
|
2097
2107
|
type: "warning",
|
|
2098
2108
|
icon: "icon-cloud-upload",
|
|
2099
2109
|
plain: !1,
|
|
2100
2110
|
loading: e(V),
|
|
2101
2111
|
onClick: w
|
|
2102
|
-
}, null, 8, ["loading"]), l(e(
|
|
2112
|
+
}, null, 8, ["loading"]), l(e(H), {
|
|
2103
2113
|
size: "default",
|
|
2104
2114
|
type: "danger",
|
|
2105
2115
|
icon: "icon-translate",
|
|
@@ -2118,48 +2128,48 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2118
2128
|
default: o(() => [l(m, {
|
|
2119
2129
|
class: "basic-search-input",
|
|
2120
2130
|
modelValue: e(n).keyword,
|
|
2121
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
2131
|
+
"onUpdate:modelValue": r[0] || (r[0] = (U) => e(n).keyword = U),
|
|
2122
2132
|
placeholder: e(a)("placeholder.keyword"),
|
|
2123
2133
|
clearable: "",
|
|
2124
|
-
onKeyup: r[1] || (r[1] =
|
|
2125
|
-
onClear: r[2] || (r[2] = (
|
|
2126
|
-
}, 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), {
|
|
2127
2137
|
modelValue: e(n).app,
|
|
2128
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
2138
|
+
"onUpdate:modelValue": r[3] || (r[3] = (U) => e(n).app = U),
|
|
2129
2139
|
"cache-key": "I18NAPPS",
|
|
2130
2140
|
url: e(te).urls.apps,
|
|
2131
|
-
onChange: r[4] || (r[4] = (
|
|
2132
|
-
}, null, 8, ["modelValue", "url"]), l(
|
|
2141
|
+
onChange: r[4] || (r[4] = (U) => e(v)())
|
|
2142
|
+
}, null, 8, ["modelValue", "url"]), l(A, {
|
|
2133
2143
|
modelValue: e(n).status,
|
|
2134
|
-
"onUpdate:modelValue": r[5] || (r[5] = (
|
|
2135
|
-
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)())
|
|
2136
2146
|
}, {
|
|
2137
|
-
default: o(() => [(C(),
|
|
2138
|
-
key:
|
|
2139
|
-
label: e(a)(`status.${
|
|
2140
|
-
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
|
|
2141
2151
|
}, null, 8, ["label", "value"])), 64))]),
|
|
2142
2152
|
_: 1
|
|
2143
2153
|
}, 8, ["modelValue"]), l(e(oe), {
|
|
2144
2154
|
disabled: e(h),
|
|
2145
|
-
onSearch: r[7] || (r[7] = (
|
|
2155
|
+
onSearch: r[7] || (r[7] = (U) => e(v)())
|
|
2146
2156
|
}, null, 8, ["disabled"])]),
|
|
2147
2157
|
_: 1
|
|
2148
2158
|
})]),
|
|
2149
2159
|
_: 1
|
|
2150
2160
|
})]),
|
|
2151
|
-
default: o(() => [l(e(
|
|
2161
|
+
default: o(() => [l(e(ce), {
|
|
2152
2162
|
ref_key: "tableRef",
|
|
2153
2163
|
ref: i,
|
|
2154
2164
|
columns: k,
|
|
2155
|
-
url: e(te).urls[e(
|
|
2165
|
+
url: e(te).urls[e(Ve)],
|
|
2156
2166
|
"search-param": e(n),
|
|
2157
2167
|
"auto-search": ""
|
|
2158
|
-
}, null, 8, ["url", "search-param"]), l(
|
|
2168
|
+
}, null, 8, ["url", "search-param"]), l(Oe, {
|
|
2159
2169
|
ref_key: "I18nTableDrawerRef",
|
|
2160
2170
|
ref: b,
|
|
2161
2171
|
onRefresh: e(f)
|
|
2162
|
-
}, null, 8, ["onRefresh"]), l(
|
|
2172
|
+
}, null, 8, ["onRefresh"]), l(yl, {
|
|
2163
2173
|
ref_key: "formModalRef",
|
|
2164
2174
|
ref: p,
|
|
2165
2175
|
onRefresh: e(f)
|
|
@@ -2168,10 +2178,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2168
2178
|
});
|
|
2169
2179
|
};
|
|
2170
2180
|
}
|
|
2171
|
-
}),
|
|
2181
|
+
}), ve = W.routineApi("admin", "key"), wl = /* @__PURE__ */ O({
|
|
2172
2182
|
__name: "AdminFormModal",
|
|
2173
2183
|
emits: ["refresh"],
|
|
2174
|
-
setup(x, { expose:
|
|
2184
|
+
setup(x, { expose: R, emit: k }) {
|
|
2175
2185
|
const h = k, V = {
|
|
2176
2186
|
key: "",
|
|
2177
2187
|
username: "",
|
|
@@ -2181,7 +2191,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2181
2191
|
language: "zh-CN",
|
|
2182
2192
|
remark: "",
|
|
2183
2193
|
roles: []
|
|
2184
|
-
}, { 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 = {
|
|
2185
2195
|
username: [
|
|
2186
2196
|
{
|
|
2187
2197
|
required: !0,
|
|
@@ -2192,7 +2202,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2192
2202
|
phone: [
|
|
2193
2203
|
{
|
|
2194
2204
|
required: !0,
|
|
2195
|
-
validator:
|
|
2205
|
+
validator: He.phoneRule,
|
|
2196
2206
|
message: a("placeholder.input base.phone"),
|
|
2197
2207
|
trigger: "blur"
|
|
2198
2208
|
}
|
|
@@ -2226,20 +2236,20 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2226
2236
|
trigger: "change"
|
|
2227
2237
|
}
|
|
2228
2238
|
]
|
|
2229
|
-
}, w =
|
|
2230
|
-
const d = await
|
|
2239
|
+
}, w = N([]), t = async () => {
|
|
2240
|
+
const d = await ke.list();
|
|
2231
2241
|
w.value = Array.isArray(d == null ? void 0 : d.data) ? d.data : [];
|
|
2232
2242
|
};
|
|
2233
|
-
return
|
|
2243
|
+
return We(async () => {
|
|
2234
2244
|
await t();
|
|
2235
|
-
}),
|
|
2245
|
+
}), R({
|
|
2236
2246
|
open: u,
|
|
2237
2247
|
modify: f
|
|
2238
2248
|
}), (d, r) => {
|
|
2239
|
-
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");
|
|
2240
2250
|
return C(), T(e(ee), {
|
|
2241
2251
|
modelValue: e(b),
|
|
2242
|
-
"onUpdate:modelValue": r[7] || (r[7] = (
|
|
2252
|
+
"onUpdate:modelValue": r[7] || (r[7] = (U) => P(b) ? b.value = U : null),
|
|
2243
2253
|
title: e(c)(),
|
|
2244
2254
|
width: "600px",
|
|
2245
2255
|
executing: e(v),
|
|
@@ -2252,7 +2262,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2252
2262
|
ref: i,
|
|
2253
2263
|
model: e(p),
|
|
2254
2264
|
"label-width": "auto",
|
|
2255
|
-
rules:
|
|
2265
|
+
rules: D,
|
|
2256
2266
|
disabled: e(n) || e(v)
|
|
2257
2267
|
}, {
|
|
2258
2268
|
default: o(() => [
|
|
@@ -2263,7 +2273,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2263
2273
|
default: o(() => [
|
|
2264
2274
|
l(y, {
|
|
2265
2275
|
modelValue: e(p).username,
|
|
2266
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
2276
|
+
"onUpdate:modelValue": r[0] || (r[0] = (U) => e(p).username = U),
|
|
2267
2277
|
placeholder: e(a)("placeholder.input"),
|
|
2268
2278
|
autocomplete: "off"
|
|
2269
2279
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -2277,7 +2287,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2277
2287
|
default: o(() => [
|
|
2278
2288
|
l(y, {
|
|
2279
2289
|
modelValue: e(p).phone,
|
|
2280
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
2290
|
+
"onUpdate:modelValue": r[1] || (r[1] = (U) => e(p).phone = U),
|
|
2281
2291
|
placeholder: e(a)("placeholder.input"),
|
|
2282
2292
|
autocomplete: "off"
|
|
2283
2293
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -2292,7 +2302,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2292
2302
|
default: o(() => [
|
|
2293
2303
|
l(y, {
|
|
2294
2304
|
modelValue: e(p).password,
|
|
2295
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
2305
|
+
"onUpdate:modelValue": r[2] || (r[2] = (U) => e(p).password = U),
|
|
2296
2306
|
placeholder: e(a)("placeholder.input"),
|
|
2297
2307
|
autocomplete: "off"
|
|
2298
2308
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -2306,7 +2316,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2306
2316
|
default: o(() => [
|
|
2307
2317
|
l(y, {
|
|
2308
2318
|
modelValue: e(p).email,
|
|
2309
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
2319
|
+
"onUpdate:modelValue": r[3] || (r[3] = (U) => e(p).email = U),
|
|
2310
2320
|
placeholder: e(a)("placeholder.input"),
|
|
2311
2321
|
autocomplete: "off"
|
|
2312
2322
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -2318,9 +2328,9 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2318
2328
|
prop: "language"
|
|
2319
2329
|
}, {
|
|
2320
2330
|
default: o(() => [
|
|
2321
|
-
l(
|
|
2331
|
+
l(A, {
|
|
2322
2332
|
modelValue: e(p).language,
|
|
2323
|
-
"onUpdate:modelValue": r[4] || (r[4] = (
|
|
2333
|
+
"onUpdate:modelValue": r[4] || (r[4] = (U) => e(p).language = U)
|
|
2324
2334
|
}, {
|
|
2325
2335
|
default: o(() => [
|
|
2326
2336
|
l(S, { value: "zh-CN" }, {
|
|
@@ -2346,17 +2356,17 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2346
2356
|
prop: "roles"
|
|
2347
2357
|
}, {
|
|
2348
2358
|
default: o(() => [
|
|
2349
|
-
l(
|
|
2359
|
+
l(M, {
|
|
2350
2360
|
modelValue: e(p).roles,
|
|
2351
|
-
"onUpdate:modelValue": r[5] || (r[5] = (
|
|
2361
|
+
"onUpdate:modelValue": r[5] || (r[5] = (U) => e(p).roles = U)
|
|
2352
2362
|
}, {
|
|
2353
2363
|
default: o(() => [
|
|
2354
|
-
(C(!0),
|
|
2355
|
-
key:
|
|
2356
|
-
value:
|
|
2364
|
+
(C(!0), I(G, null, ae(w.value, (U) => (C(), T(q, {
|
|
2365
|
+
key: U.key,
|
|
2366
|
+
value: U.key
|
|
2357
2367
|
}, {
|
|
2358
2368
|
default: o(() => [
|
|
2359
|
-
Z(z(
|
|
2369
|
+
Z(z(U.translate), 1)
|
|
2360
2370
|
]),
|
|
2361
2371
|
_: 2
|
|
2362
2372
|
}, 1032, ["value"]))), 128))
|
|
@@ -2373,7 +2383,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2373
2383
|
default: o(() => [
|
|
2374
2384
|
l(y, {
|
|
2375
2385
|
modelValue: e(p).remark,
|
|
2376
|
-
"onUpdate:modelValue": r[6] || (r[6] = (
|
|
2386
|
+
"onUpdate:modelValue": r[6] || (r[6] = (U) => e(p).remark = U),
|
|
2377
2387
|
placeholder: e(a)("placeholder.input")
|
|
2378
2388
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2379
2389
|
]),
|
|
@@ -2387,10 +2397,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2387
2397
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2388
2398
|
};
|
|
2389
2399
|
}
|
|
2390
|
-
}),
|
|
2400
|
+
}), Yl = /* @__PURE__ */ O({
|
|
2391
2401
|
__name: "index",
|
|
2392
2402
|
setup(x) {
|
|
2393
|
-
const
|
|
2403
|
+
const R = {
|
|
2394
2404
|
keyword: ""
|
|
2395
2405
|
}, k = [{
|
|
2396
2406
|
label: a("base.avatar"),
|
|
@@ -2398,7 +2408,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2398
2408
|
width: 60,
|
|
2399
2409
|
render: ({
|
|
2400
2410
|
row: f
|
|
2401
|
-
}) => l(
|
|
2411
|
+
}) => l(Qe, {
|
|
2402
2412
|
src: f.avatar
|
|
2403
2413
|
}, null)
|
|
2404
2414
|
}, {
|
|
@@ -2447,7 +2457,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2447
2457
|
}, null)
|
|
2448
2458
|
}], {
|
|
2449
2459
|
requesting: h
|
|
2450
|
-
} = E(
|
|
2460
|
+
} = E(ve), {
|
|
2451
2461
|
tableRef: V,
|
|
2452
2462
|
formModalRef: b,
|
|
2453
2463
|
keyword: c,
|
|
@@ -2456,9 +2466,9 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2456
2466
|
refresh: n,
|
|
2457
2467
|
openFormModal: v,
|
|
2458
2468
|
editFormModal: u
|
|
2459
|
-
} = F(
|
|
2469
|
+
} = F(R);
|
|
2460
2470
|
return (f, g) => {
|
|
2461
|
-
const _ = s("el-input"),
|
|
2471
|
+
const _ = s("el-input"), D = s("el-space"), w = s("el-page-header"), t = s("el-card");
|
|
2462
2472
|
return C(), T(t, {
|
|
2463
2473
|
class: "basic-card flex-full",
|
|
2464
2474
|
"body-class": "flex-1"
|
|
@@ -2472,7 +2482,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2472
2482
|
}, null, 8, ["loading", "onRefresh"]), l(e(j), {
|
|
2473
2483
|
onOpen: e(v)
|
|
2474
2484
|
}, null, 8, ["onOpen"])]),
|
|
2475
|
-
content: o(() => [l(
|
|
2485
|
+
content: o(() => [l(D, {
|
|
2476
2486
|
class: "search-bar"
|
|
2477
2487
|
}, {
|
|
2478
2488
|
default: o(() => [l(_, {
|
|
@@ -2481,7 +2491,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2481
2491
|
"onUpdate:modelValue": g[0] || (g[0] = (d) => e(c).keyword = d),
|
|
2482
2492
|
placeholder: e(a)("placeholder.keyword"),
|
|
2483
2493
|
clearable: "",
|
|
2484
|
-
onKeyup: g[1] || (g[1] =
|
|
2494
|
+
onKeyup: g[1] || (g[1] = he((d) => e(i)(), ["enter"])),
|
|
2485
2495
|
onClear: g[2] || (g[2] = (d) => e(i)())
|
|
2486
2496
|
}, null, 8, ["modelValue", "placeholder"]), l(e(oe), {
|
|
2487
2497
|
disabled: e(h),
|
|
@@ -2491,15 +2501,15 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2491
2501
|
})]),
|
|
2492
2502
|
_: 1
|
|
2493
2503
|
})]),
|
|
2494
|
-
default: o(() => [l(e(
|
|
2504
|
+
default: o(() => [l(e(ce), {
|
|
2495
2505
|
ref_key: "tableRef",
|
|
2496
2506
|
ref: V,
|
|
2497
2507
|
size: "small",
|
|
2498
2508
|
columns: k,
|
|
2499
|
-
url: e(
|
|
2509
|
+
url: e(ve).urls[e(Ve)],
|
|
2500
2510
|
"search-param": e(c),
|
|
2501
2511
|
"auto-search": ""
|
|
2502
|
-
}, null, 8, ["url", "search-param"]), l(
|
|
2512
|
+
}, null, 8, ["url", "search-param"]), l(wl, {
|
|
2503
2513
|
ref_key: "formModalRef",
|
|
2504
2514
|
ref: b,
|
|
2505
2515
|
onRefresh: e(n)
|
|
@@ -2508,9 +2518,9 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2508
2518
|
});
|
|
2509
2519
|
};
|
|
2510
2520
|
}
|
|
2511
|
-
}),
|
|
2521
|
+
}), xl = {
|
|
2512
2522
|
check: "check"
|
|
2513
|
-
},
|
|
2523
|
+
}, ue = W.routineApi("site", "id", xl), be = W.routineApi("domain"), $e = /* @__PURE__ */ O({
|
|
2514
2524
|
__name: "DomainSelect",
|
|
2515
2525
|
props: {
|
|
2516
2526
|
modelValue: {
|
|
@@ -2524,22 +2534,22 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2524
2534
|
},
|
|
2525
2535
|
emits: ["update:modelValue", "change"],
|
|
2526
2536
|
setup(x, {
|
|
2527
|
-
expose:
|
|
2537
|
+
expose: R,
|
|
2528
2538
|
emit: k
|
|
2529
2539
|
}) {
|
|
2530
2540
|
const h = k, V = x, {
|
|
2531
2541
|
requesting: b
|
|
2532
|
-
} = E(
|
|
2542
|
+
} = E(be), {
|
|
2533
2543
|
key: c,
|
|
2534
2544
|
options: i,
|
|
2535
2545
|
refresh: p,
|
|
2536
2546
|
change: n
|
|
2537
2547
|
} = re(ne(V, "modelValue"), h, {
|
|
2538
2548
|
key: "DOMAIN_LIST",
|
|
2539
|
-
api:
|
|
2549
|
+
api: be,
|
|
2540
2550
|
isArray: !0
|
|
2541
2551
|
});
|
|
2542
|
-
return
|
|
2552
|
+
return R({
|
|
2543
2553
|
refresh: p
|
|
2544
2554
|
}), (v, u) => {
|
|
2545
2555
|
const f = s("el-select-v2");
|
|
@@ -2551,7 +2561,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2551
2561
|
placeholder: e(a)("base.select config.domain"),
|
|
2552
2562
|
onChange: e(n)
|
|
2553
2563
|
}, {
|
|
2554
|
-
prefix: o(() => [l(e(
|
|
2564
|
+
prefix: o(() => [l(e(me), {
|
|
2555
2565
|
loading: e(b),
|
|
2556
2566
|
onRefresh: e(p)
|
|
2557
2567
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
@@ -2559,10 +2569,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2559
2569
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2560
2570
|
};
|
|
2561
2571
|
}
|
|
2562
|
-
}),
|
|
2572
|
+
}), Rl = /* @__PURE__ */ O({
|
|
2563
2573
|
__name: "SiteFormModal",
|
|
2564
2574
|
emits: ["refresh"],
|
|
2565
|
-
setup(x, { expose:
|
|
2575
|
+
setup(x, { expose: R, emit: k }) {
|
|
2566
2576
|
const h = k, V = {
|
|
2567
2577
|
id: 0,
|
|
2568
2578
|
domain_id: 0,
|
|
@@ -2578,8 +2588,8 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2578
2588
|
prefix: [{ required: !0, message: a("placeholder.input base.prefix"), trigger: "blur" }],
|
|
2579
2589
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
2580
2590
|
en_name: [{ required: !0, message: a("placeholder.input base.en_name"), trigger: "blur" }]
|
|
2581
|
-
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed:
|
|
2582
|
-
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({
|
|
2583
2593
|
open: f,
|
|
2584
2594
|
modify: g
|
|
2585
2595
|
}), (w, t) => {
|
|
@@ -2590,7 +2600,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2590
2600
|
title: e(i)("config.site"),
|
|
2591
2601
|
width: "600px",
|
|
2592
2602
|
executing: e(u),
|
|
2593
|
-
onClosed: e(
|
|
2603
|
+
onClosed: e(D),
|
|
2594
2604
|
onSubmit: e(_)
|
|
2595
2605
|
}, {
|
|
2596
2606
|
default: o(() => [
|
|
@@ -2608,7 +2618,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2608
2618
|
label: e(a)("config.domain")
|
|
2609
2619
|
}, {
|
|
2610
2620
|
default: o(() => [
|
|
2611
|
-
l(
|
|
2621
|
+
l($e, {
|
|
2612
2622
|
modelValue: e(n).domain_id,
|
|
2613
2623
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => e(n).domain_id = m),
|
|
2614
2624
|
disabled: e(u)
|
|
@@ -2708,7 +2718,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2708
2718
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2709
2719
|
};
|
|
2710
2720
|
}
|
|
2711
|
-
}),
|
|
2721
|
+
}), ge = W.routineApi("domain_provider"), Ul = /* @__PURE__ */ O({
|
|
2712
2722
|
__name: "DomainProviderSelect",
|
|
2713
2723
|
props: {
|
|
2714
2724
|
modelValue: {
|
|
@@ -2722,22 +2732,22 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2722
2732
|
},
|
|
2723
2733
|
emits: ["update:modelValue", "change"],
|
|
2724
2734
|
setup(x, {
|
|
2725
|
-
expose:
|
|
2735
|
+
expose: R,
|
|
2726
2736
|
emit: k
|
|
2727
2737
|
}) {
|
|
2728
2738
|
const h = k, V = x, {
|
|
2729
2739
|
requesting: b
|
|
2730
|
-
} = E(
|
|
2740
|
+
} = E(ge), {
|
|
2731
2741
|
key: c,
|
|
2732
2742
|
options: i,
|
|
2733
2743
|
refresh: p,
|
|
2734
2744
|
change: n
|
|
2735
2745
|
} = re(ne(V, "modelValue"), h, {
|
|
2736
2746
|
key: "DOMAIN_PROVIDER_LIST",
|
|
2737
|
-
api:
|
|
2747
|
+
api: ge,
|
|
2738
2748
|
isArray: !0
|
|
2739
2749
|
});
|
|
2740
|
-
return
|
|
2750
|
+
return R({
|
|
2741
2751
|
refresh: p
|
|
2742
2752
|
}), (v, u) => {
|
|
2743
2753
|
const f = s("el-select-v2");
|
|
@@ -2749,7 +2759,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2749
2759
|
placeholder: e(a)("base.select config.domain config.provider"),
|
|
2750
2760
|
onChange: e(n)
|
|
2751
2761
|
}, {
|
|
2752
|
-
prefix: o(() => [l(e(
|
|
2762
|
+
prefix: o(() => [l(e(me), {
|
|
2753
2763
|
loading: e(b),
|
|
2754
2764
|
onRefresh: e(p)
|
|
2755
2765
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
@@ -2757,10 +2767,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2757
2767
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2758
2768
|
};
|
|
2759
2769
|
}
|
|
2760
|
-
}),
|
|
2770
|
+
}), Ml = /* @__PURE__ */ O({
|
|
2761
2771
|
__name: "DomainFormModal",
|
|
2762
2772
|
emits: ["refresh"],
|
|
2763
|
-
setup(x, { expose:
|
|
2773
|
+
setup(x, { expose: R, emit: k }) {
|
|
2764
2774
|
const h = k, V = {
|
|
2765
2775
|
id: 0,
|
|
2766
2776
|
provider_id: 0,
|
|
@@ -2771,8 +2781,8 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2771
2781
|
}, b = {
|
|
2772
2782
|
provider_id: [{ required: !0, message: a("placeholder.input config.domain config.provider"), trigger: "blur" }],
|
|
2773
2783
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }]
|
|
2774
|
-
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed:
|
|
2775
|
-
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({
|
|
2776
2786
|
open: f,
|
|
2777
2787
|
modify: g
|
|
2778
2788
|
}), (w, t) => {
|
|
@@ -2783,7 +2793,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2783
2793
|
title: e(i)("config.domain"),
|
|
2784
2794
|
width: "600px",
|
|
2785
2795
|
executing: e(u),
|
|
2786
|
-
onClosed: e(
|
|
2796
|
+
onClosed: e(D),
|
|
2787
2797
|
onSubmit: e(_)
|
|
2788
2798
|
}, {
|
|
2789
2799
|
default: o(() => [
|
|
@@ -2801,7 +2811,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2801
2811
|
label: e(a)("config.provider")
|
|
2802
2812
|
}, {
|
|
2803
2813
|
default: o(() => [
|
|
2804
|
-
l(
|
|
2814
|
+
l(Ul, {
|
|
2805
2815
|
modelValue: e(n).provider_id,
|
|
2806
2816
|
"onUpdate:modelValue": t[0] || (t[0] = (S) => e(n).provider_id = S),
|
|
2807
2817
|
disabled: e(u)
|
|
@@ -2864,9 +2874,9 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2864
2874
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2865
2875
|
};
|
|
2866
2876
|
}
|
|
2867
|
-
}),
|
|
2877
|
+
}), Al = {
|
|
2868
2878
|
gen: "gen"
|
|
2869
|
-
},
|
|
2879
|
+
}, ie = W.routineApi("SSL", "id", Al), Dl = /* @__PURE__ */ O({
|
|
2870
2880
|
__name: "SiteSelect",
|
|
2871
2881
|
props: {
|
|
2872
2882
|
modelValue: {
|
|
@@ -2880,19 +2890,19 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2880
2890
|
},
|
|
2881
2891
|
emits: ["update:modelValue", "change"],
|
|
2882
2892
|
setup(x, {
|
|
2883
|
-
expose:
|
|
2893
|
+
expose: R,
|
|
2884
2894
|
emit: k
|
|
2885
2895
|
}) {
|
|
2886
2896
|
const h = k, V = x, {
|
|
2887
2897
|
requesting: b
|
|
2888
|
-
} = E(
|
|
2898
|
+
} = E(ue), {
|
|
2889
2899
|
key: c,
|
|
2890
2900
|
options: i,
|
|
2891
2901
|
refresh: p,
|
|
2892
2902
|
change: n
|
|
2893
2903
|
} = re(ne(V, "modelValue"), h, {
|
|
2894
2904
|
key: "SITE_LIST",
|
|
2895
|
-
api:
|
|
2905
|
+
api: ue,
|
|
2896
2906
|
isArray: !0
|
|
2897
2907
|
}, {
|
|
2898
2908
|
formatOptions: (v) => v.map((u) => {
|
|
@@ -2904,7 +2914,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2904
2914
|
};
|
|
2905
2915
|
})
|
|
2906
2916
|
});
|
|
2907
|
-
return
|
|
2917
|
+
return R({
|
|
2908
2918
|
refresh: p
|
|
2909
2919
|
}), (v, u) => {
|
|
2910
2920
|
const f = s("el-select-v2");
|
|
@@ -2916,7 +2926,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2916
2926
|
placeholder: e(a)("base.select config.domain"),
|
|
2917
2927
|
onChange: e(n)
|
|
2918
2928
|
}, {
|
|
2919
|
-
prefix: o(() => [l(e(
|
|
2929
|
+
prefix: o(() => [l(e(me), {
|
|
2920
2930
|
loading: e(b),
|
|
2921
2931
|
onRefresh: e(p)
|
|
2922
2932
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
@@ -2924,10 +2934,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2924
2934
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2925
2935
|
};
|
|
2926
2936
|
}
|
|
2927
|
-
}),
|
|
2937
|
+
}), Fe = /* @__PURE__ */ O({
|
|
2928
2938
|
__name: "SSLFormModal",
|
|
2929
2939
|
emits: ["refresh"],
|
|
2930
|
-
setup(x, { expose:
|
|
2940
|
+
setup(x, { expose: R, emit: k }) {
|
|
2931
2941
|
const h = k, V = {
|
|
2932
2942
|
id: 0,
|
|
2933
2943
|
domain_id: void 0,
|
|
@@ -2945,8 +2955,8 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2945
2955
|
path: [{ required: !0, message: a("placeholder.input base.path"), trigger: "blur" }],
|
|
2946
2956
|
email: [{ required: !0, message: a("placeholder.input base.email"), trigger: "blur" }],
|
|
2947
2957
|
encryption: [{ required: !0, message: a("placeholder.input config.encryption"), trigger: "blur" }]
|
|
2948
|
-
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed:
|
|
2949
|
-
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({
|
|
2950
2960
|
open: f,
|
|
2951
2961
|
modify: g,
|
|
2952
2962
|
formData: n
|
|
@@ -2954,11 +2964,11 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2954
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");
|
|
2955
2965
|
return C(), T(e(ee), {
|
|
2956
2966
|
modelValue: e(c),
|
|
2957
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
2967
|
+
"onUpdate:modelValue": t[8] || (t[8] = (A) => P(c) ? c.value = A : null),
|
|
2958
2968
|
title: e(i)("ssl.ssl"),
|
|
2959
2969
|
width: "600px",
|
|
2960
2970
|
executing: e(u),
|
|
2961
|
-
onClosed: e(
|
|
2971
|
+
onClosed: e(D),
|
|
2962
2972
|
onSubmit: e(_)
|
|
2963
2973
|
}, {
|
|
2964
2974
|
default: o(() => [
|
|
@@ -2976,9 +2986,9 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2976
2986
|
label: e(a)("config.domain")
|
|
2977
2987
|
}, {
|
|
2978
2988
|
default: o(() => [
|
|
2979
|
-
l(
|
|
2989
|
+
l($e, {
|
|
2980
2990
|
modelValue: e(n).domain_id,
|
|
2981
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2991
|
+
"onUpdate:modelValue": t[0] || (t[0] = (A) => e(n).domain_id = A),
|
|
2982
2992
|
disabled: e(u)
|
|
2983
2993
|
}, null, 8, ["modelValue", "disabled"])
|
|
2984
2994
|
]),
|
|
@@ -2991,7 +3001,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
2991
3001
|
default: o(() => [
|
|
2992
3002
|
l(y, {
|
|
2993
3003
|
modelValue: e(n).client,
|
|
2994
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3004
|
+
"onUpdate:modelValue": t[1] || (t[1] = (A) => e(n).client = A)
|
|
2995
3005
|
}, {
|
|
2996
3006
|
default: o(() => [
|
|
2997
3007
|
l(r, {
|
|
@@ -3009,9 +3019,9 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3009
3019
|
label: e(a)("config.site")
|
|
3010
3020
|
}, {
|
|
3011
3021
|
default: o(() => [
|
|
3012
|
-
l(
|
|
3022
|
+
l(Dl, {
|
|
3013
3023
|
modelValue: e(n).site_id,
|
|
3014
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
3024
|
+
"onUpdate:modelValue": t[2] || (t[2] = (A) => e(n).site_id = A),
|
|
3015
3025
|
disabled: e(u)
|
|
3016
3026
|
}, null, 8, ["modelValue", "disabled"])
|
|
3017
3027
|
]),
|
|
@@ -3024,7 +3034,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3024
3034
|
default: o(() => [
|
|
3025
3035
|
l(m, {
|
|
3026
3036
|
modelValue: e(n).name,
|
|
3027
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
3037
|
+
"onUpdate:modelValue": t[3] || (t[3] = (A) => e(n).name = A),
|
|
3028
3038
|
disabled: e(u),
|
|
3029
3039
|
placeholder: e(a)("placeholder.input")
|
|
3030
3040
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3038,7 +3048,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3038
3048
|
default: o(() => [
|
|
3039
3049
|
l(m, {
|
|
3040
3050
|
modelValue: e(n).path,
|
|
3041
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
3051
|
+
"onUpdate:modelValue": t[4] || (t[4] = (A) => e(n).path = A),
|
|
3042
3052
|
disabled: e(u),
|
|
3043
3053
|
placeholder: e(a)("placeholder.input")
|
|
3044
3054
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3052,7 +3062,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3052
3062
|
default: o(() => [
|
|
3053
3063
|
l(m, {
|
|
3054
3064
|
modelValue: e(n).email,
|
|
3055
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
3065
|
+
"onUpdate:modelValue": t[5] || (t[5] = (A) => e(n).email = A),
|
|
3056
3066
|
disabled: e(u),
|
|
3057
3067
|
placeholder: e(a)("placeholder.input")
|
|
3058
3068
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3066,7 +3076,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3066
3076
|
default: o(() => [
|
|
3067
3077
|
l(y, {
|
|
3068
3078
|
modelValue: e(n).encryption,
|
|
3069
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
3079
|
+
"onUpdate:modelValue": t[6] || (t[6] = (A) => e(n).encryption = A)
|
|
3070
3080
|
}, {
|
|
3071
3081
|
default: o(() => [
|
|
3072
3082
|
l(r, {
|
|
@@ -3086,7 +3096,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3086
3096
|
default: o(() => [
|
|
3087
3097
|
l(m, {
|
|
3088
3098
|
modelValue: e(n).remark,
|
|
3089
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
3099
|
+
"onUpdate:modelValue": t[7] || (t[7] = (A) => e(n).remark = A),
|
|
3090
3100
|
disabled: e(u),
|
|
3091
3101
|
placeholder: e(a)("placeholder.input")
|
|
3092
3102
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3101,10 +3111,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3101
3111
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
3102
3112
|
};
|
|
3103
3113
|
}
|
|
3104
|
-
}),
|
|
3114
|
+
}), Sl = /* @__PURE__ */ O({
|
|
3105
3115
|
__name: "DomainProviderFormModal",
|
|
3106
3116
|
emits: ["refresh"],
|
|
3107
|
-
setup(x, { expose:
|
|
3117
|
+
setup(x, { expose: R, emit: k }) {
|
|
3108
3118
|
const h = k, V = {
|
|
3109
3119
|
id: 0,
|
|
3110
3120
|
name: "",
|
|
@@ -3120,8 +3130,8 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3120
3130
|
key: { required: !0, message: a("placeholder.input base.key"), trigger: "blur" },
|
|
3121
3131
|
secret: { required: !0, message: a("placeholder.input config.secret"), trigger: "blur" },
|
|
3122
3132
|
end_point: { required: !0, message: a("placeholder.input config.endpoint"), trigger: "blur" }
|
|
3123
|
-
}, { modal: c, title: i, form: p, formData: n, requesting: v, executing: u, open: f, modify: g, submit: _, closed:
|
|
3124
|
-
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({
|
|
3125
3135
|
open: f,
|
|
3126
3136
|
modify: g
|
|
3127
3137
|
}), (w, t) => {
|
|
@@ -3132,7 +3142,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3132
3142
|
title: e(i)("config.domain"),
|
|
3133
3143
|
width: "600px",
|
|
3134
3144
|
executing: e(u),
|
|
3135
|
-
onClosed: e(
|
|
3145
|
+
onClosed: e(D),
|
|
3136
3146
|
onSubmit: e(_)
|
|
3137
3147
|
}, {
|
|
3138
3148
|
default: o(() => [
|
|
@@ -3237,14 +3247,14 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3237
3247
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
3238
3248
|
};
|
|
3239
3249
|
}
|
|
3240
|
-
}),
|
|
3250
|
+
}), Cl = /* @__PURE__ */ O({
|
|
3241
3251
|
__name: "DomainProviderTableDrawer",
|
|
3242
3252
|
setup(x, {
|
|
3243
|
-
expose:
|
|
3253
|
+
expose: R
|
|
3244
3254
|
}) {
|
|
3245
3255
|
const {
|
|
3246
3256
|
requesting: k
|
|
3247
|
-
} = E(
|
|
3257
|
+
} = E(ge), h = N(!1), {
|
|
3248
3258
|
tableRef: V,
|
|
3249
3259
|
formModalRef: b,
|
|
3250
3260
|
refresh: c,
|
|
@@ -3276,13 +3286,13 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3276
3286
|
}, null)]
|
|
3277
3287
|
})
|
|
3278
3288
|
}];
|
|
3279
|
-
return
|
|
3289
|
+
return R({
|
|
3280
3290
|
open: () => {
|
|
3281
3291
|
h.value = !0;
|
|
3282
3292
|
}
|
|
3283
3293
|
}), (u, f) => {
|
|
3284
3294
|
const g = s("el-page-header");
|
|
3285
|
-
return C(), T(e(
|
|
3295
|
+
return C(), T(e(fe), {
|
|
3286
3296
|
modelValue: h.value,
|
|
3287
3297
|
"onUpdate:modelValue": f[0] || (f[0] = (_) => h.value = _),
|
|
3288
3298
|
width: "400px",
|
|
@@ -3292,7 +3302,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3292
3302
|
title: o(() => [l(g, {
|
|
3293
3303
|
icon: ""
|
|
3294
3304
|
}, {
|
|
3295
|
-
title: o(() => [
|
|
3305
|
+
title: o(() => [B("span", null, z(e(a)("config.domain config.provider")), 1)]),
|
|
3296
3306
|
content: o(() => [l(e(K), {
|
|
3297
3307
|
onRefresh: e(c),
|
|
3298
3308
|
size: "default",
|
|
@@ -3308,10 +3318,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3308
3318
|
ref: V,
|
|
3309
3319
|
size: "small",
|
|
3310
3320
|
"row-key": "id",
|
|
3311
|
-
url: e(
|
|
3321
|
+
url: e(ge).urls.list,
|
|
3312
3322
|
columns: n,
|
|
3313
3323
|
loading: e(k)
|
|
3314
|
-
}, null, 8, ["url", "loading"]), l(
|
|
3324
|
+
}, null, 8, ["url", "loading"]), l(Sl, {
|
|
3315
3325
|
ref_key: "formModalRef",
|
|
3316
3326
|
ref: b,
|
|
3317
3327
|
onRefresh: e(c)
|
|
@@ -3320,14 +3330,14 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3320
3330
|
}, 8, ["modelValue"]);
|
|
3321
3331
|
};
|
|
3322
3332
|
}
|
|
3323
|
-
}),
|
|
3333
|
+
}), Ll = /* @__PURE__ */ O({
|
|
3324
3334
|
__name: "DomainTableDrawer",
|
|
3325
3335
|
setup(x, {
|
|
3326
|
-
expose:
|
|
3336
|
+
expose: R
|
|
3327
3337
|
}) {
|
|
3328
3338
|
const {
|
|
3329
3339
|
requesting: k
|
|
3330
|
-
} = E(
|
|
3340
|
+
} = E(be), h = N(!1), {
|
|
3331
3341
|
tableRef: V,
|
|
3332
3342
|
formModalRef: b,
|
|
3333
3343
|
refresh: c,
|
|
@@ -3389,13 +3399,13 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3389
3399
|
}, null)]
|
|
3390
3400
|
})
|
|
3391
3401
|
}];
|
|
3392
|
-
return
|
|
3402
|
+
return R({
|
|
3393
3403
|
open: () => {
|
|
3394
3404
|
h.value = !0;
|
|
3395
3405
|
}
|
|
3396
3406
|
}), (w, t) => {
|
|
3397
3407
|
const d = s("el-space"), r = s("el-page-header");
|
|
3398
|
-
return C(), T(e(
|
|
3408
|
+
return C(), T(e(fe), {
|
|
3399
3409
|
modelValue: h.value,
|
|
3400
3410
|
"onUpdate:modelValue": t[0] || (t[0] = (y) => h.value = y),
|
|
3401
3411
|
width: "600px",
|
|
@@ -3405,7 +3415,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3405
3415
|
title: o(() => [l(r, {
|
|
3406
3416
|
icon: ""
|
|
3407
3417
|
}, {
|
|
3408
|
-
title: o(() => [
|
|
3418
|
+
title: o(() => [B("span", null, z(e(a)("config.domain")), 1)]),
|
|
3409
3419
|
content: o(() => [l(e(K), {
|
|
3410
3420
|
onRefresh: e(c),
|
|
3411
3421
|
size: "default",
|
|
@@ -3430,18 +3440,18 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3430
3440
|
ref: V,
|
|
3431
3441
|
size: "small",
|
|
3432
3442
|
"row-key": "id",
|
|
3433
|
-
url: e(
|
|
3443
|
+
url: e(be).urls.list,
|
|
3434
3444
|
columns: _,
|
|
3435
3445
|
loading: e(k)
|
|
3436
|
-
}, null, 8, ["url", "loading"]), l(
|
|
3446
|
+
}, null, 8, ["url", "loading"]), l(Ml, {
|
|
3437
3447
|
ref_key: "formModalRef",
|
|
3438
3448
|
ref: b,
|
|
3439
3449
|
onRefresh: e(c)
|
|
3440
|
-
}, null, 8, ["onRefresh"]), l(
|
|
3450
|
+
}, null, 8, ["onRefresh"]), l(Fe, {
|
|
3441
3451
|
ref_key: "sslFormModalRef",
|
|
3442
3452
|
ref: n,
|
|
3443
3453
|
onRefresh: e(c)
|
|
3444
|
-
}, null, 8, ["onRefresh"]), l(
|
|
3454
|
+
}, null, 8, ["onRefresh"]), l(Cl, {
|
|
3445
3455
|
ref_key: "providerTableDrawerRef",
|
|
3446
3456
|
ref: f
|
|
3447
3457
|
}, null, 512)]),
|
|
@@ -3449,15 +3459,15 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3449
3459
|
}, 8, ["modelValue"]);
|
|
3450
3460
|
};
|
|
3451
3461
|
}
|
|
3452
|
-
}),
|
|
3462
|
+
}), ql = /* @__PURE__ */ O({
|
|
3453
3463
|
__name: "SSLTableDrawer",
|
|
3454
3464
|
setup(x, {
|
|
3455
|
-
expose:
|
|
3465
|
+
expose: R
|
|
3456
3466
|
}) {
|
|
3457
3467
|
const {
|
|
3458
3468
|
requesting: k,
|
|
3459
3469
|
executing: h
|
|
3460
|
-
} = E(
|
|
3470
|
+
} = E(ie), V = N(0), b = N(!1), {
|
|
3461
3471
|
tableRef: c,
|
|
3462
3472
|
formModalRef: i,
|
|
3463
3473
|
refresh: p,
|
|
@@ -3502,7 +3512,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3502
3512
|
width: 160,
|
|
3503
3513
|
align: "center",
|
|
3504
3514
|
render: ({
|
|
3505
|
-
rowData:
|
|
3515
|
+
rowData: D
|
|
3506
3516
|
}) => l(s("el-space"), null, {
|
|
3507
3517
|
default: () => [l(le, {
|
|
3508
3518
|
size: "default",
|
|
@@ -3510,48 +3520,48 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3510
3520
|
t: "",
|
|
3511
3521
|
disabled: h.value,
|
|
3512
3522
|
onModify: () => v({
|
|
3513
|
-
id:
|
|
3523
|
+
id: D.id
|
|
3514
3524
|
})
|
|
3515
|
-
}, null), l(
|
|
3525
|
+
}, null), l(H, {
|
|
3516
3526
|
size: "default",
|
|
3517
3527
|
icon: "icon-key",
|
|
3518
3528
|
t: "",
|
|
3519
3529
|
text: !0,
|
|
3520
|
-
disabled: h.value && V.value !==
|
|
3521
|
-
loading: V.value ==
|
|
3522
|
-
onClick: () => g(
|
|
3523
|
-
}, 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, {
|
|
3524
3534
|
size: "default",
|
|
3525
3535
|
icon: "icon-cloud-download",
|
|
3526
3536
|
t: "",
|
|
3527
3537
|
text: !0,
|
|
3528
|
-
disabled: h.value && V.value !==
|
|
3529
|
-
loading: V.value ==
|
|
3530
|
-
onClick: () => _(
|
|
3538
|
+
disabled: h.value && V.value !== D.id,
|
|
3539
|
+
loading: V.value == D.id,
|
|
3540
|
+
onClick: () => _(D)
|
|
3531
3541
|
}, null)]
|
|
3532
3542
|
})
|
|
3533
3543
|
}
|
|
3534
3544
|
], f = () => {
|
|
3535
3545
|
b.value = !0;
|
|
3536
|
-
}, g = (
|
|
3537
|
-
|
|
3538
|
-
id:
|
|
3546
|
+
}, g = (D) => {
|
|
3547
|
+
ie.gen({
|
|
3548
|
+
id: D
|
|
3539
3549
|
}).then((w) => {
|
|
3540
3550
|
console.warn("Res:", w);
|
|
3541
3551
|
});
|
|
3542
3552
|
};
|
|
3543
|
-
function _(
|
|
3544
|
-
const w =
|
|
3553
|
+
function _(D) {
|
|
3554
|
+
const w = Ce.getDownloadUrl(D.path + ".zip");
|
|
3545
3555
|
fetch(w).then((t) => t.blob()).then((t) => {
|
|
3546
3556
|
let d = URL.createObjectURL(t), r = document.createElement("a");
|
|
3547
|
-
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);
|
|
3548
3558
|
});
|
|
3549
3559
|
}
|
|
3550
|
-
return
|
|
3560
|
+
return R({
|
|
3551
3561
|
open: f
|
|
3552
|
-
}), (
|
|
3562
|
+
}), (D, w) => {
|
|
3553
3563
|
const t = s("el-page-header");
|
|
3554
|
-
return C(), T(e(
|
|
3564
|
+
return C(), T(e(fe), {
|
|
3555
3565
|
modelValue: b.value,
|
|
3556
3566
|
"onUpdate:modelValue": w[0] || (w[0] = (d) => b.value = d),
|
|
3557
3567
|
width: "1000px",
|
|
@@ -3561,7 +3571,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3561
3571
|
title: o(() => [l(t, {
|
|
3562
3572
|
icon: ""
|
|
3563
3573
|
}, {
|
|
3564
|
-
title: o(() => [
|
|
3574
|
+
title: o(() => [B("span", null, z(e(a)("ssl.ssl")), 1)]),
|
|
3565
3575
|
content: o(() => [l(e(K), {
|
|
3566
3576
|
onRefresh: e(p),
|
|
3567
3577
|
size: "default",
|
|
@@ -3576,10 +3586,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3576
3586
|
ref: c,
|
|
3577
3587
|
size: "default",
|
|
3578
3588
|
"row-key": "id",
|
|
3579
|
-
url: e(
|
|
3589
|
+
url: e(ie).urls.list,
|
|
3580
3590
|
columns: u,
|
|
3581
3591
|
loading: e(k)
|
|
3582
|
-
}, null, 8, ["url", "loading"]), l(
|
|
3592
|
+
}, null, 8, ["url", "loading"]), l(Fe, {
|
|
3583
3593
|
ref_key: "formModalRef",
|
|
3584
3594
|
ref: i,
|
|
3585
3595
|
onRefresh: e(p)
|
|
@@ -3588,7 +3598,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3588
3598
|
}, 8, ["modelValue"]);
|
|
3589
3599
|
};
|
|
3590
3600
|
}
|
|
3591
|
-
}),
|
|
3601
|
+
}), De = W.routineApi("SSLLog", "id"), Tl = /* @__PURE__ */ O({
|
|
3592
3602
|
__name: "SSLLogTableDrawer",
|
|
3593
3603
|
props: {
|
|
3594
3604
|
ssl: {
|
|
@@ -3597,12 +3607,12 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3597
3607
|
}
|
|
3598
3608
|
},
|
|
3599
3609
|
setup(x, {
|
|
3600
|
-
expose:
|
|
3610
|
+
expose: R
|
|
3601
3611
|
}) {
|
|
3602
3612
|
const k = x, {
|
|
3603
3613
|
requesting: h,
|
|
3604
3614
|
executing: V
|
|
3605
|
-
} = E([
|
|
3615
|
+
} = E([De, ie]), b = N(!1), {
|
|
3606
3616
|
tableRef: c,
|
|
3607
3617
|
refresh: i
|
|
3608
3618
|
} = F(), p = [{
|
|
@@ -3625,26 +3635,26 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3625
3635
|
b.value = !0;
|
|
3626
3636
|
};
|
|
3627
3637
|
function v() {
|
|
3628
|
-
|
|
3638
|
+
ie.gen({
|
|
3629
3639
|
id: k.ssl.id
|
|
3630
3640
|
}).then((f) => {
|
|
3631
3641
|
console.warn("Res:", f);
|
|
3632
3642
|
});
|
|
3633
3643
|
}
|
|
3634
3644
|
function u() {
|
|
3635
|
-
const f =
|
|
3645
|
+
const f = Ce.getDownloadUrl(k.ssl.path + ".zip");
|
|
3636
3646
|
fetch(f).then((g) => g.blob()).then((g) => {
|
|
3637
|
-
let _ = URL.createObjectURL(g),
|
|
3638
|
-
|
|
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);
|
|
3639
3649
|
});
|
|
3640
3650
|
}
|
|
3641
|
-
return
|
|
3651
|
+
return R({
|
|
3642
3652
|
open: n
|
|
3643
3653
|
}), (f, g) => {
|
|
3644
3654
|
const _ = s("el-page-header");
|
|
3645
|
-
return C(), T(e(
|
|
3655
|
+
return C(), T(e(fe), {
|
|
3646
3656
|
modelValue: b.value,
|
|
3647
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
3657
|
+
"onUpdate:modelValue": g[0] || (g[0] = (D) => b.value = D),
|
|
3648
3658
|
width: "600px",
|
|
3649
3659
|
"show-close": !1,
|
|
3650
3660
|
class: "basic-drawer"
|
|
@@ -3652,20 +3662,20 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3652
3662
|
title: o(() => [l(_, {
|
|
3653
3663
|
icon: ""
|
|
3654
3664
|
}, {
|
|
3655
|
-
title: o(() => [
|
|
3665
|
+
title: o(() => [B("span", null, z(e(a)("config.ssl base.log")), 1)]),
|
|
3656
3666
|
content: o(() => [l(e(K), {
|
|
3657
3667
|
onRefresh: e(i),
|
|
3658
3668
|
size: "default",
|
|
3659
3669
|
loading: e(h)
|
|
3660
3670
|
}, null, 8, ["onRefresh", "loading"])]),
|
|
3661
|
-
extra: o(() => [l(e(
|
|
3671
|
+
extra: o(() => [l(e(H), {
|
|
3662
3672
|
size: "default",
|
|
3663
3673
|
type: "danger",
|
|
3664
3674
|
icon: "icon-key",
|
|
3665
3675
|
disabled: e(V),
|
|
3666
3676
|
loading: e(V),
|
|
3667
3677
|
onClick: v
|
|
3668
|
-
}, null, 8, ["disabled", "loading"]), l(e(
|
|
3678
|
+
}, null, 8, ["disabled", "loading"]), l(e(H), {
|
|
3669
3679
|
size: "default",
|
|
3670
3680
|
type: "primary",
|
|
3671
3681
|
icon: "icon-cloud-download",
|
|
@@ -3675,12 +3685,12 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3675
3685
|
}, null, 8, ["disabled", "loading"])]),
|
|
3676
3686
|
_: 1
|
|
3677
3687
|
})]),
|
|
3678
|
-
default: o(() => [l(e(
|
|
3688
|
+
default: o(() => [l(e(ce), {
|
|
3679
3689
|
ref_key: "tableRef",
|
|
3680
3690
|
ref: c,
|
|
3681
3691
|
size: "small",
|
|
3682
3692
|
"row-key": "id",
|
|
3683
|
-
url: e(
|
|
3693
|
+
url: e(De).urls.search,
|
|
3684
3694
|
columns: p,
|
|
3685
3695
|
loading: e(h)
|
|
3686
3696
|
}, null, 8, ["url", "loading"])]),
|
|
@@ -3688,13 +3698,13 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3688
3698
|
}, 8, ["modelValue"]);
|
|
3689
3699
|
};
|
|
3690
3700
|
}
|
|
3691
|
-
}),
|
|
3701
|
+
}), Ol = /* @__PURE__ */ O({
|
|
3692
3702
|
__name: "index",
|
|
3693
3703
|
setup(x) {
|
|
3694
|
-
const
|
|
3704
|
+
const R = N(), {
|
|
3695
3705
|
requesting: k,
|
|
3696
3706
|
executing: h
|
|
3697
|
-
} = E(
|
|
3707
|
+
} = E(ue), {
|
|
3698
3708
|
tableRef: V,
|
|
3699
3709
|
formModalRef: b,
|
|
3700
3710
|
reset: c,
|
|
@@ -3709,7 +3719,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3709
3719
|
openFormModal: g
|
|
3710
3720
|
} = F(), {
|
|
3711
3721
|
formModalRef: _,
|
|
3712
|
-
openFormModal:
|
|
3722
|
+
openFormModal: D
|
|
3713
3723
|
} = F(), w = [{
|
|
3714
3724
|
prop: "domain.name",
|
|
3715
3725
|
label: a("config.domain"),
|
|
@@ -3747,7 +3757,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3747
3757
|
type: "primary",
|
|
3748
3758
|
text: !0,
|
|
3749
3759
|
onClick: (y) => {
|
|
3750
|
-
y.stopPropagation(), r.ssl && r.ssl.id && (
|
|
3760
|
+
y.stopPropagation(), r.ssl && r.ssl.id && (R.value = r.ssl, D());
|
|
3751
3761
|
}
|
|
3752
3762
|
}, {
|
|
3753
3763
|
default: () => [l("span", {
|
|
@@ -3774,7 +3784,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3774
3784
|
onModify: () => n({
|
|
3775
3785
|
id: r.id
|
|
3776
3786
|
})
|
|
3777
|
-
}, null), l(
|
|
3787
|
+
}, null), l(H, {
|
|
3778
3788
|
icon: "icon-securityscan",
|
|
3779
3789
|
type: "primary",
|
|
3780
3790
|
size: "small",
|
|
@@ -3784,18 +3794,18 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3784
3794
|
onClick: () => d(r)
|
|
3785
3795
|
}, null)]
|
|
3786
3796
|
})
|
|
3787
|
-
}], t =
|
|
3788
|
-
t.value = r.id,
|
|
3797
|
+
}], t = N(0), d = (r) => {
|
|
3798
|
+
t.value = r.id, ue.check({
|
|
3789
3799
|
id: r.id
|
|
3790
3800
|
}).then((y) => {
|
|
3791
|
-
y.data && (
|
|
3801
|
+
y.data && (Je(y), i());
|
|
3792
3802
|
}).finally(() => {
|
|
3793
3803
|
t.value = 0;
|
|
3794
3804
|
});
|
|
3795
3805
|
};
|
|
3796
3806
|
return (r, y) => {
|
|
3797
|
-
const m = s("el-space"), S = s("el-page-header"),
|
|
3798
|
-
return C(), T(
|
|
3807
|
+
const m = s("el-space"), S = s("el-page-header"), A = s("el-card");
|
|
3808
|
+
return C(), T(A, {
|
|
3799
3809
|
"body-style": {
|
|
3800
3810
|
padding: "12px",
|
|
3801
3811
|
height: "450px"
|
|
@@ -3806,7 +3816,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3806
3816
|
header: o(() => [l(S, {
|
|
3807
3817
|
icon: ""
|
|
3808
3818
|
}, {
|
|
3809
|
-
title: o(() => [
|
|
3819
|
+
title: o(() => [B("span", null, z(e(a)("config.keys.sites")), 1)]),
|
|
3810
3820
|
content: o(() => [l(m, {
|
|
3811
3821
|
alignment: "center",
|
|
3812
3822
|
style: {
|
|
@@ -3835,20 +3845,20 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3835
3845
|
ref: V,
|
|
3836
3846
|
size: "small",
|
|
3837
3847
|
"row-key": "id",
|
|
3838
|
-
url: e(
|
|
3848
|
+
url: e(ue).urls[e(Xe)],
|
|
3839
3849
|
"auto-search": "",
|
|
3840
3850
|
columns: w
|
|
3841
|
-
}, null, 8, ["url"]), l(
|
|
3851
|
+
}, null, 8, ["url"]), l(Rl, {
|
|
3842
3852
|
ref_key: "formModalRef",
|
|
3843
3853
|
ref: b,
|
|
3844
3854
|
onRefresh: e(i)
|
|
3845
|
-
}, null, 8, ["onRefresh"]), l(
|
|
3855
|
+
}, null, 8, ["onRefresh"]), l(Ll, {
|
|
3846
3856
|
ref_key: "domainTableDrawerRef",
|
|
3847
3857
|
ref: v
|
|
3848
|
-
}, null, 512), l(
|
|
3858
|
+
}, null, 512), l(ql, {
|
|
3849
3859
|
ref_key: "sslTableDrawerRef",
|
|
3850
3860
|
ref: f
|
|
3851
|
-
}, null, 512), l(
|
|
3861
|
+
}, null, 512), l(Tl, {
|
|
3852
3862
|
ref_key: "sslLogTableDrawerRef",
|
|
3853
3863
|
ref: _
|
|
3854
3864
|
}, null, 512)]),
|
|
@@ -3856,17 +3866,17 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3856
3866
|
});
|
|
3857
3867
|
};
|
|
3858
3868
|
}
|
|
3859
|
-
}),
|
|
3869
|
+
}), $l = /* @__PURE__ */ qe(Ol, [["__scopeId", "data-v-17c31592"]]), Fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3860
3870
|
__proto__: null,
|
|
3861
|
-
default:
|
|
3862
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3871
|
+
default: $l
|
|
3872
|
+
}, Symbol.toStringTag, { value: "Module" })), El = {
|
|
3863
3873
|
request: "request",
|
|
3864
3874
|
error: "error",
|
|
3865
3875
|
sql: "SQL"
|
|
3866
|
-
},
|
|
3876
|
+
}, pe = W.routineApi("log", "id", El), Gl = /* @__PURE__ */ O({
|
|
3867
3877
|
__name: "index",
|
|
3868
3878
|
setup(x) {
|
|
3869
|
-
const
|
|
3879
|
+
const R = {
|
|
3870
3880
|
dates: [$.getCurrentHour().format($.DATE_VALUE_FORMAT), $.getCurrentHour(1).format($.DATE_VALUE_FORMAT)]
|
|
3871
3881
|
}, k = [{
|
|
3872
3882
|
label: a("base.sort"),
|
|
@@ -3886,12 +3896,12 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3886
3896
|
width: 200
|
|
3887
3897
|
}], {
|
|
3888
3898
|
requesting: h
|
|
3889
|
-
} = E(
|
|
3899
|
+
} = E(pe), {
|
|
3890
3900
|
tableRef: V,
|
|
3891
3901
|
keyword: b,
|
|
3892
3902
|
search: c,
|
|
3893
3903
|
reset: i
|
|
3894
|
-
} = F(
|
|
3904
|
+
} = F(R);
|
|
3895
3905
|
return (p, n) => {
|
|
3896
3906
|
const v = s("el-date-picker"), u = s("el-space"), f = s("el-page-header"), g = s("el-card");
|
|
3897
3907
|
return C(), T(g, {
|
|
@@ -3933,7 +3943,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3933
3943
|
ref: V,
|
|
3934
3944
|
size: "small",
|
|
3935
3945
|
columns: k,
|
|
3936
|
-
url: e(
|
|
3946
|
+
url: e(pe).urls.request,
|
|
3937
3947
|
"search-param": e(b),
|
|
3938
3948
|
"auto-search": ""
|
|
3939
3949
|
}, null, 8, ["url", "search-param"])]),
|
|
@@ -3941,10 +3951,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3941
3951
|
});
|
|
3942
3952
|
};
|
|
3943
3953
|
}
|
|
3944
|
-
}),
|
|
3954
|
+
}), Hl = /* @__PURE__ */ O({
|
|
3945
3955
|
__name: "index",
|
|
3946
3956
|
setup(x) {
|
|
3947
|
-
const
|
|
3957
|
+
const R = {
|
|
3948
3958
|
dates: [$.getCurrentDate(-7).format($.DATE_FORMAT), $.getCurrentDate(0).format($.DATE_FORMAT)]
|
|
3949
3959
|
}, k = [{
|
|
3950
3960
|
label: a("base.sort"),
|
|
@@ -3964,12 +3974,12 @@ const Bl = /* @__PURE__ */ O({
|
|
|
3964
3974
|
width: 200
|
|
3965
3975
|
}], {
|
|
3966
3976
|
requesting: h
|
|
3967
|
-
} = E(
|
|
3977
|
+
} = E(pe), {
|
|
3968
3978
|
tableRef: V,
|
|
3969
3979
|
keyword: b,
|
|
3970
3980
|
search: c,
|
|
3971
3981
|
reset: i
|
|
3972
|
-
} = F(
|
|
3982
|
+
} = F(R);
|
|
3973
3983
|
return (p, n) => {
|
|
3974
3984
|
const v = s("el-date-picker"), u = s("el-space"), f = s("el-page-header"), g = s("el-card");
|
|
3975
3985
|
return C(), T(g, {
|
|
@@ -4011,7 +4021,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
4011
4021
|
ref: V,
|
|
4012
4022
|
size: "small",
|
|
4013
4023
|
columns: k,
|
|
4014
|
-
url: e(
|
|
4024
|
+
url: e(pe).urls.error,
|
|
4015
4025
|
"search-param": e(b),
|
|
4016
4026
|
"auto-search": ""
|
|
4017
4027
|
}, null, 8, ["url", "search-param"])]),
|
|
@@ -4019,10 +4029,10 @@ const Bl = /* @__PURE__ */ O({
|
|
|
4019
4029
|
});
|
|
4020
4030
|
};
|
|
4021
4031
|
}
|
|
4022
|
-
}),
|
|
4032
|
+
}), Ql = /* @__PURE__ */ O({
|
|
4023
4033
|
__name: "index",
|
|
4024
4034
|
setup(x) {
|
|
4025
|
-
const
|
|
4035
|
+
const R = {
|
|
4026
4036
|
dates: [$.getCurrentDate(-7).format($.DATE_FORMAT), $.getCurrentDate().format($.DATE_FORMAT)]
|
|
4027
4037
|
}, k = [{
|
|
4028
4038
|
label: a("base.sort"),
|
|
@@ -4042,12 +4052,12 @@ const Bl = /* @__PURE__ */ O({
|
|
|
4042
4052
|
width: 200
|
|
4043
4053
|
}], {
|
|
4044
4054
|
requesting: h
|
|
4045
|
-
} = E(
|
|
4055
|
+
} = E(pe), {
|
|
4046
4056
|
tableRef: V,
|
|
4047
4057
|
keyword: b,
|
|
4048
4058
|
search: c,
|
|
4049
4059
|
reset: i
|
|
4050
|
-
} = F(
|
|
4060
|
+
} = F(R);
|
|
4051
4061
|
return (p, n) => {
|
|
4052
4062
|
const v = s("el-date-picker"), u = s("el-space"), f = s("el-page-header"), g = s("el-card");
|
|
4053
4063
|
return C(), T(g, {
|
|
@@ -4089,7 +4099,7 @@ const Bl = /* @__PURE__ */ O({
|
|
|
4089
4099
|
ref: V,
|
|
4090
4100
|
size: "small",
|
|
4091
4101
|
columns: k,
|
|
4092
|
-
url: e(
|
|
4102
|
+
url: e(pe).urls.sql,
|
|
4093
4103
|
"search-param": e(b),
|
|
4094
4104
|
"auto-search": ""
|
|
4095
4105
|
}, null, 8, ["url", "search-param"])]),
|
|
@@ -4097,52 +4107,52 @@ const Bl = /* @__PURE__ */ O({
|
|
|
4097
4107
|
});
|
|
4098
4108
|
};
|
|
4099
4109
|
}
|
|
4100
|
-
}),
|
|
4110
|
+
}), zl = () => import("./index-SHsqnbNG.js"), Il = () => import("./index-CJMTIvHk.js"), Nl = () => import("./index-BMn8mAns.js"), Jl = [
|
|
4101
4111
|
{
|
|
4102
|
-
path:
|
|
4112
|
+
path: Ze,
|
|
4103
4113
|
name: "RequestLog",
|
|
4104
|
-
component:
|
|
4114
|
+
component: zl,
|
|
4105
4115
|
meta: {
|
|
4106
4116
|
title: a("menu.RequestLog")
|
|
4107
4117
|
}
|
|
4108
4118
|
},
|
|
4109
4119
|
{
|
|
4110
|
-
path:
|
|
4120
|
+
path: el,
|
|
4111
4121
|
name: "ErrorLog",
|
|
4112
|
-
component:
|
|
4122
|
+
component: Il,
|
|
4113
4123
|
meta: {
|
|
4114
4124
|
title: a("menu.ErrorLog")
|
|
4115
4125
|
}
|
|
4116
4126
|
},
|
|
4117
4127
|
{
|
|
4118
|
-
path:
|
|
4128
|
+
path: ll,
|
|
4119
4129
|
name: "SqlLog",
|
|
4120
|
-
component:
|
|
4130
|
+
component: Nl,
|
|
4121
4131
|
meta: {
|
|
4122
4132
|
title: a("menu.SqlLog")
|
|
4123
4133
|
}
|
|
4124
4134
|
}
|
|
4125
|
-
],
|
|
4135
|
+
], Xl = {
|
|
4126
4136
|
install: (x) => {
|
|
4127
|
-
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));
|
|
4128
4138
|
},
|
|
4129
4139
|
version: "__VERSION__"
|
|
4130
|
-
},
|
|
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) });
|
|
4131
4141
|
export {
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
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
|
|
4148
4158
|
};
|