auto-vue-basic 0.0.99 → 0.1.12
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as O, toRef as
|
|
2
|
-
import { ApiUtils as Y, useLoading as
|
|
1
|
+
import { defineComponent as O, toRef as ne, resolveComponent as r, openBlock as M, createBlock as q, unref as e, isRef as z, withCtx as o, createVNode as l, createElementVNode as j, normalizeClass as Ae, toDisplayString as F, ref as H, Fragment as G, withKeys as Ve, createElementBlock as B, renderList as ae, isVNode as De, reactive as Ke, onMounted as We, watch as Le, nextTick as Ge, createTextVNode as Q, createCommentVNode as Ye, shallowRef as He, onBeforeMount as Qe } from "vue";
|
|
2
|
+
import { ApiUtils as Y, useLoading as I, useSelect as re, Translate as a, InlineRefreshButton as fe, useForm as le, FormDialog as oe, DEFAULT_STATUS_KEY as Se, ModifyButton as te, useCrudPage as X, useSingleFormModal as Te, DEFAULT_REMOVE_KEY as Je, ProTable as be, DEFAULT_PAGE_KEY as ye, SearchButton as de, RefreshButton as K, OpenButton as P, useCacheStore as Xe, useDialog as xe, RequestButton as Z, BasicDrawer as _e, BasicRadioButton as qe, RulesUtils as Ze, BasicAvatar as el, TimeUtils as E, ProTableList as ie, useSingleDialog as ve, AssetsUtils as Oe, useSingleTable as ll, notification as al, DEFAULT_LIST_URL as ol, REQUEST_LOG_URL as tl, ERROR_LOG_URL as nl, SQL_LOG_URL as rl } from "auto-vue-manual";
|
|
3
3
|
import { Key as dl, Search as sl } from "@element-plus/icons-vue";
|
|
4
4
|
const ul = {
|
|
5
5
|
tops: "tops",
|
|
6
6
|
rules: "rules"
|
|
7
|
-
},
|
|
7
|
+
}, J = Y.routineApi("menu", "id", ul, {}, ["TOP_MENU_LIST", "MENU_LIST"]), $e = Y.routineApi("rule", "key"), il = /* @__PURE__ */ O({
|
|
8
8
|
__name: "TopMenuSelect",
|
|
9
9
|
props: {
|
|
10
10
|
modelValue: { type: [Number, Array, void 0], required: !0, default: void 0 },
|
|
@@ -12,41 +12,41 @@ const ul = {
|
|
|
12
12
|
disabled: { type: Boolean, default: !1 }
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:modelValue", "change"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
15
|
+
setup(R, { emit: U }) {
|
|
16
|
+
const x = U, k = R, { requesting: V } = I(J), { value: b, options: m, change: i, refresh: u, filterOptions: t } = re(ne(k, "modelValue"), x, {
|
|
17
17
|
key: "TOP_MENU_LIST",
|
|
18
|
-
api:
|
|
19
|
-
url:
|
|
18
|
+
api: J,
|
|
19
|
+
url: J.urls.tops,
|
|
20
20
|
isArray: !0
|
|
21
21
|
});
|
|
22
22
|
return (v, s) => {
|
|
23
23
|
const c = r("el-space"), f = r("el-select-v2");
|
|
24
24
|
return M(), q(f, {
|
|
25
25
|
class: "w-full",
|
|
26
|
-
modelValue: e(
|
|
27
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
26
|
+
modelValue: e(b),
|
|
27
|
+
"onUpdate:modelValue": s[1] || (s[1] = (_) => z(b) ? b.value = _ : null),
|
|
28
28
|
options: e(m),
|
|
29
|
-
multiple:
|
|
30
|
-
disabled: e(V) ||
|
|
29
|
+
multiple: R.multiple,
|
|
30
|
+
disabled: e(V) || R.disabled,
|
|
31
31
|
placeholder: e(a)("placeholder.select"),
|
|
32
32
|
filterable: "",
|
|
33
|
-
filterOptions: e(
|
|
33
|
+
filterOptions: e(t),
|
|
34
34
|
"empty-values": [void 0],
|
|
35
35
|
onChange: e(i)
|
|
36
36
|
}, {
|
|
37
37
|
prefix: o(() => [
|
|
38
38
|
l(e(fe), {
|
|
39
39
|
loading: e(V),
|
|
40
|
-
onRefresh: s[0] || (s[0] = (
|
|
40
|
+
onRefresh: s[0] || (s[0] = (_) => e(u)(!0))
|
|
41
41
|
}, null, 8, ["loading"])
|
|
42
42
|
]),
|
|
43
|
-
default: o(({ item:
|
|
43
|
+
default: o(({ item: _ }) => [
|
|
44
44
|
l(c, null, {
|
|
45
45
|
default: o(() => [
|
|
46
46
|
j("i", {
|
|
47
|
-
class: Ae(`icon iconfont ${
|
|
47
|
+
class: Ae(`icon iconfont ${_.icon}`)
|
|
48
48
|
}, null, 2),
|
|
49
|
-
j("span", null,
|
|
49
|
+
j("span", null, F(_.translate), 1)
|
|
50
50
|
]),
|
|
51
51
|
_: 2
|
|
52
52
|
}, 1024)
|
|
@@ -58,8 +58,8 @@ const ul = {
|
|
|
58
58
|
}), pl = /* @__PURE__ */ O({
|
|
59
59
|
__name: "MenuFormModal",
|
|
60
60
|
emits: ["refresh"],
|
|
61
|
-
setup(
|
|
62
|
-
const k =
|
|
61
|
+
setup(R, { expose: U, emit: x }) {
|
|
62
|
+
const k = x, V = {
|
|
63
63
|
id: 0,
|
|
64
64
|
menu_id: 0,
|
|
65
65
|
module: "",
|
|
@@ -80,7 +80,7 @@ const ul = {
|
|
|
80
80
|
keep_alive: !1,
|
|
81
81
|
link: !1
|
|
82
82
|
}
|
|
83
|
-
},
|
|
83
|
+
}, b = {
|
|
84
84
|
sort: [
|
|
85
85
|
{
|
|
86
86
|
required: !0,
|
|
@@ -124,28 +124,28 @@ const ul = {
|
|
|
124
124
|
trigger: "blur"
|
|
125
125
|
}
|
|
126
126
|
]
|
|
127
|
-
}, { modal: m, title: i, form: u, formData:
|
|
127
|
+
}, { modal: m, title: i, form: u, formData: t, requesting: v, executing: s, open: c, modify: f, submit: _, closed: A } = le(k, V, J);
|
|
128
128
|
return U({
|
|
129
129
|
open: c,
|
|
130
130
|
modify: f
|
|
131
|
-
}), (
|
|
131
|
+
}), (w, n) => {
|
|
132
132
|
const d = r("el-form-item"), p = r("el-col"), S = r("el-input-number"), g = r("el-row"), y = r("el-input"), h = r("el-switch"), C = r("el-form");
|
|
133
133
|
return M(), q(e(oe), {
|
|
134
134
|
modelValue: e(m),
|
|
135
|
-
"onUpdate:modelValue":
|
|
135
|
+
"onUpdate:modelValue": n[17] || (n[17] = (D) => z(m) ? m.value = D : null),
|
|
136
136
|
title: e(i)(),
|
|
137
137
|
width: "1000px",
|
|
138
138
|
executing: e(s),
|
|
139
|
-
onClosed: e(
|
|
140
|
-
onSubmit: e(
|
|
139
|
+
onClosed: e(A),
|
|
140
|
+
onSubmit: e(_)
|
|
141
141
|
}, {
|
|
142
142
|
default: o(() => [
|
|
143
143
|
l(C, {
|
|
144
144
|
ref_key: "form",
|
|
145
145
|
ref: u,
|
|
146
|
-
model: e(
|
|
146
|
+
model: e(t),
|
|
147
147
|
"label-width": "auto",
|
|
148
|
-
rules:
|
|
148
|
+
rules: b,
|
|
149
149
|
disabled: e(v) || e(s)
|
|
150
150
|
}, {
|
|
151
151
|
default: o(() => [
|
|
@@ -163,8 +163,8 @@ const ul = {
|
|
|
163
163
|
}, {
|
|
164
164
|
default: o(() => [
|
|
165
165
|
l(il, {
|
|
166
|
-
modelValue: e(
|
|
167
|
-
"onUpdate:modelValue":
|
|
166
|
+
modelValue: e(t).menu_id,
|
|
167
|
+
"onUpdate:modelValue": n[0] || (n[0] = (D) => e(t).menu_id = D),
|
|
168
168
|
disabled: e(s)
|
|
169
169
|
}, null, 8, ["modelValue", "disabled"])
|
|
170
170
|
]),
|
|
@@ -183,8 +183,8 @@ const ul = {
|
|
|
183
183
|
default: o(() => [
|
|
184
184
|
l(S, {
|
|
185
185
|
class: "w-full",
|
|
186
|
-
modelValue: e(
|
|
187
|
-
"onUpdate:modelValue":
|
|
186
|
+
modelValue: e(t).sort,
|
|
187
|
+
"onUpdate:modelValue": n[1] || (n[1] = (D) => e(t).sort = D),
|
|
188
188
|
min: 0,
|
|
189
189
|
placeholder: e(a)("placeholder.input")
|
|
190
190
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -203,8 +203,8 @@ const ul = {
|
|
|
203
203
|
}, {
|
|
204
204
|
default: o(() => [
|
|
205
205
|
l(y, {
|
|
206
|
-
modelValue: e(
|
|
207
|
-
"onUpdate:modelValue":
|
|
206
|
+
modelValue: e(t).module,
|
|
207
|
+
"onUpdate:modelValue": n[2] || (n[2] = (D) => e(t).module = D),
|
|
208
208
|
placeholder: e(a)("placeholder.input")
|
|
209
209
|
}, null, 8, ["modelValue", "placeholder"])
|
|
210
210
|
]),
|
|
@@ -216,8 +216,8 @@ const ul = {
|
|
|
216
216
|
}, {
|
|
217
217
|
default: o(() => [
|
|
218
218
|
l(y, {
|
|
219
|
-
modelValue: e(
|
|
220
|
-
"onUpdate:modelValue":
|
|
219
|
+
modelValue: e(t).name,
|
|
220
|
+
"onUpdate:modelValue": n[3] || (n[3] = (D) => e(t).name = D),
|
|
221
221
|
placeholder: e(a)("placeholder.input")
|
|
222
222
|
}, null, 8, ["modelValue", "placeholder"])
|
|
223
223
|
]),
|
|
@@ -229,8 +229,8 @@ const ul = {
|
|
|
229
229
|
}, {
|
|
230
230
|
default: o(() => [
|
|
231
231
|
l(y, {
|
|
232
|
-
modelValue: e(
|
|
233
|
-
"onUpdate:modelValue":
|
|
232
|
+
modelValue: e(t).en_name,
|
|
233
|
+
"onUpdate:modelValue": n[4] || (n[4] = (D) => e(t).en_name = D),
|
|
234
234
|
placeholder: e(a)("placeholder.input")
|
|
235
235
|
}, null, 8, ["modelValue", "placeholder"])
|
|
236
236
|
]),
|
|
@@ -242,8 +242,8 @@ const ul = {
|
|
|
242
242
|
}, {
|
|
243
243
|
default: o(() => [
|
|
244
244
|
l(y, {
|
|
245
|
-
modelValue: e(
|
|
246
|
-
"onUpdate:modelValue":
|
|
245
|
+
modelValue: e(t).component,
|
|
246
|
+
"onUpdate:modelValue": n[5] || (n[5] = (D) => e(t).component = D),
|
|
247
247
|
placeholder: e(a)("placeholder.input")
|
|
248
248
|
}, null, 8, ["modelValue", "placeholder"])
|
|
249
249
|
]),
|
|
@@ -255,8 +255,8 @@ const ul = {
|
|
|
255
255
|
}, {
|
|
256
256
|
default: o(() => [
|
|
257
257
|
l(y, {
|
|
258
|
-
modelValue: e(
|
|
259
|
-
"onUpdate:modelValue":
|
|
258
|
+
modelValue: e(t).url,
|
|
259
|
+
"onUpdate:modelValue": n[6] || (n[6] = (D) => e(t).url = D),
|
|
260
260
|
placeholder: e(a)("placeholder.input")
|
|
261
261
|
}, null, 8, ["modelValue", "placeholder"])
|
|
262
262
|
]),
|
|
@@ -268,8 +268,8 @@ const ul = {
|
|
|
268
268
|
}, {
|
|
269
269
|
default: o(() => [
|
|
270
270
|
l(y, {
|
|
271
|
-
modelValue: e(
|
|
272
|
-
"onUpdate:modelValue":
|
|
271
|
+
modelValue: e(t).remark,
|
|
272
|
+
"onUpdate:modelValue": n[7] || (n[7] = (D) => e(t).remark = D),
|
|
273
273
|
placeholder: e(a)("placeholder.input")
|
|
274
274
|
}, null, 8, ["modelValue", "placeholder"])
|
|
275
275
|
]),
|
|
@@ -286,16 +286,16 @@ const ul = {
|
|
|
286
286
|
}, {
|
|
287
287
|
default: o(() => [
|
|
288
288
|
l(y, {
|
|
289
|
-
modelValue: e(
|
|
290
|
-
"onUpdate:modelValue":
|
|
289
|
+
modelValue: e(t).icon,
|
|
290
|
+
"onUpdate:modelValue": n[8] || (n[8] = (D) => e(t).icon = D),
|
|
291
291
|
placeholder: e(a)("placeholder.input"),
|
|
292
|
-
onInput:
|
|
293
|
-
e(
|
|
292
|
+
onInput: n[9] || (n[9] = (D) => {
|
|
293
|
+
e(t).meta.icon = D;
|
|
294
294
|
})
|
|
295
295
|
}, {
|
|
296
296
|
prepend: o(() => [
|
|
297
297
|
j("span", {
|
|
298
|
-
class: Ae("iconfont " + e(
|
|
298
|
+
class: Ae("iconfont " + e(t).icon)
|
|
299
299
|
}, null, 2)
|
|
300
300
|
]),
|
|
301
301
|
_: 1
|
|
@@ -309,8 +309,8 @@ const ul = {
|
|
|
309
309
|
}, {
|
|
310
310
|
default: o(() => [
|
|
311
311
|
l(y, {
|
|
312
|
-
modelValue: e(
|
|
313
|
-
"onUpdate:modelValue":
|
|
312
|
+
modelValue: e(t).meta.title,
|
|
313
|
+
"onUpdate:modelValue": n[10] || (n[10] = (D) => e(t).meta.title = D),
|
|
314
314
|
placeholder: e(a)("placeholder.input")
|
|
315
315
|
}, null, 8, ["modelValue", "placeholder"])
|
|
316
316
|
]),
|
|
@@ -322,8 +322,8 @@ const ul = {
|
|
|
322
322
|
}, {
|
|
323
323
|
default: o(() => [
|
|
324
324
|
l(y, {
|
|
325
|
-
modelValue: e(
|
|
326
|
-
"onUpdate:modelValue":
|
|
325
|
+
modelValue: e(t).meta.active,
|
|
326
|
+
"onUpdate:modelValue": n[11] || (n[11] = (D) => e(t).meta.active = D),
|
|
327
327
|
placeholder: e(a)("placeholder.input")
|
|
328
328
|
}, null, 8, ["modelValue", "placeholder"])
|
|
329
329
|
]),
|
|
@@ -339,8 +339,8 @@ const ul = {
|
|
|
339
339
|
}, {
|
|
340
340
|
default: o(() => [
|
|
341
341
|
l(h, {
|
|
342
|
-
modelValue: e(
|
|
343
|
-
"onUpdate:modelValue":
|
|
342
|
+
modelValue: e(t).meta.link,
|
|
343
|
+
"onUpdate:modelValue": n[12] || (n[12] = (D) => e(t).meta.link = D)
|
|
344
344
|
}, null, 8, ["modelValue"])
|
|
345
345
|
]),
|
|
346
346
|
_: 1
|
|
@@ -356,8 +356,8 @@ const ul = {
|
|
|
356
356
|
}, {
|
|
357
357
|
default: o(() => [
|
|
358
358
|
l(h, {
|
|
359
|
-
modelValue: e(
|
|
360
|
-
"onUpdate:modelValue":
|
|
359
|
+
modelValue: e(t).meta.keep_alive,
|
|
360
|
+
"onUpdate:modelValue": n[13] || (n[13] = (D) => e(t).meta.keep_alive = D)
|
|
361
361
|
}, null, 8, ["modelValue"])
|
|
362
362
|
]),
|
|
363
363
|
_: 1
|
|
@@ -373,8 +373,8 @@ const ul = {
|
|
|
373
373
|
}, {
|
|
374
374
|
default: o(() => [
|
|
375
375
|
l(h, {
|
|
376
|
-
modelValue: e(
|
|
377
|
-
"onUpdate:modelValue":
|
|
376
|
+
modelValue: e(t).meta.hide,
|
|
377
|
+
"onUpdate:modelValue": n[14] || (n[14] = (D) => e(t).meta.hide = D)
|
|
378
378
|
}, null, 8, ["modelValue"])
|
|
379
379
|
]),
|
|
380
380
|
_: 1
|
|
@@ -390,8 +390,8 @@ const ul = {
|
|
|
390
390
|
}, {
|
|
391
391
|
default: o(() => [
|
|
392
392
|
l(h, {
|
|
393
|
-
modelValue: e(
|
|
394
|
-
"onUpdate:modelValue":
|
|
393
|
+
modelValue: e(t).meta.full,
|
|
394
|
+
"onUpdate:modelValue": n[15] || (n[15] = (D) => e(t).meta.full = D)
|
|
395
395
|
}, null, 8, ["modelValue"])
|
|
396
396
|
]),
|
|
397
397
|
_: 1
|
|
@@ -407,8 +407,8 @@ const ul = {
|
|
|
407
407
|
}, {
|
|
408
408
|
default: o(() => [
|
|
409
409
|
l(h, {
|
|
410
|
-
modelValue: e(
|
|
411
|
-
"onUpdate:modelValue":
|
|
410
|
+
modelValue: e(t).meta.affix,
|
|
411
|
+
"onUpdate:modelValue": n[16] || (n[16] = (D) => e(t).meta.affix = D)
|
|
412
412
|
}, null, 8, ["modelValue"])
|
|
413
413
|
]),
|
|
414
414
|
_: 1
|
|
@@ -441,35 +441,35 @@ const ul = {
|
|
|
441
441
|
disabled: { type: Boolean, default: !1 }
|
|
442
442
|
},
|
|
443
443
|
emits: ["update:modelValue", "change"],
|
|
444
|
-
setup(
|
|
445
|
-
const
|
|
444
|
+
setup(R, { emit: U }) {
|
|
445
|
+
const x = U, k = R, { requesting: V } = I(J), { value: b, options: m, change: i, refresh: u, filterOptions: t } = re(ne(k, "modelValue"), x, { key: "MENU_LIST", api: J, isArray: !0 });
|
|
446
446
|
return (v, s) => {
|
|
447
447
|
const c = r("el-space"), f = r("el-select-v2");
|
|
448
448
|
return M(), q(f, {
|
|
449
449
|
class: "w-full",
|
|
450
|
-
modelValue: e(
|
|
451
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
450
|
+
modelValue: e(b),
|
|
451
|
+
"onUpdate:modelValue": s[1] || (s[1] = (_) => z(b) ? b.value = _ : null),
|
|
452
452
|
options: e(m),
|
|
453
|
-
multiple:
|
|
454
|
-
disabled: e(V) ||
|
|
453
|
+
multiple: R.multiple,
|
|
454
|
+
disabled: e(V) || R.disabled,
|
|
455
455
|
placeholder: e(a)("placeholder.select"),
|
|
456
456
|
filterable: "",
|
|
457
|
-
filterOptions: e(
|
|
457
|
+
filterOptions: e(t),
|
|
458
458
|
onChange: e(i)
|
|
459
459
|
}, {
|
|
460
460
|
prefix: o(() => [
|
|
461
461
|
l(e(fe), {
|
|
462
462
|
loading: e(V),
|
|
463
|
-
onRefresh: s[0] || (s[0] = (
|
|
463
|
+
onRefresh: s[0] || (s[0] = (_) => e(u)(!0))
|
|
464
464
|
}, null, 8, ["loading"])
|
|
465
465
|
]),
|
|
466
|
-
default: o(({ item:
|
|
466
|
+
default: o(({ item: _ }) => [
|
|
467
467
|
l(c, null, {
|
|
468
468
|
default: o(() => [
|
|
469
469
|
j("i", {
|
|
470
|
-
class: Ae(`icon iconfont ${
|
|
470
|
+
class: Ae(`icon iconfont ${_.icon}`)
|
|
471
471
|
}, null, 2),
|
|
472
|
-
j("span", null,
|
|
472
|
+
j("span", null, F(_.translate), 1)
|
|
473
473
|
]),
|
|
474
474
|
_: 2
|
|
475
475
|
}, 1024)
|
|
@@ -481,8 +481,8 @@ const ul = {
|
|
|
481
481
|
}), cl = /* @__PURE__ */ O({
|
|
482
482
|
__name: "MenuRuleFormModal",
|
|
483
483
|
emits: ["refresh"],
|
|
484
|
-
setup(
|
|
485
|
-
const k =
|
|
484
|
+
setup(R, { expose: U, emit: x }) {
|
|
485
|
+
const k = x, V = {
|
|
486
486
|
key: "",
|
|
487
487
|
menu_id: 0,
|
|
488
488
|
sort: 0,
|
|
@@ -490,7 +490,7 @@ const ul = {
|
|
|
490
490
|
en_name: "",
|
|
491
491
|
urls: "",
|
|
492
492
|
remark: ""
|
|
493
|
-
},
|
|
493
|
+
}, b = {
|
|
494
494
|
menu_id: [
|
|
495
495
|
{
|
|
496
496
|
required: !0,
|
|
@@ -528,28 +528,28 @@ const ul = {
|
|
|
528
528
|
trigger: "blur"
|
|
529
529
|
}
|
|
530
530
|
]
|
|
531
|
-
}, { modal: m, title: i, form: u, formData:
|
|
531
|
+
}, { modal: m, title: i, form: u, formData: t, requesting: v, executing: s, open: c, modify: f, submit: _, closed: A } = le(k, V, $e);
|
|
532
532
|
return U({
|
|
533
533
|
open: c,
|
|
534
534
|
modify: f
|
|
535
|
-
}), (
|
|
535
|
+
}), (w, n) => {
|
|
536
536
|
const d = r("el-form-item"), p = r("el-input-number"), S = r("el-input"), g = r("el-col"), y = r("el-row"), h = r("el-form");
|
|
537
537
|
return M(), q(e(oe), {
|
|
538
538
|
modelValue: e(m),
|
|
539
|
-
"onUpdate:modelValue":
|
|
539
|
+
"onUpdate:modelValue": n[6] || (n[6] = (C) => z(m) ? m.value = C : null),
|
|
540
540
|
title: e(i)("menu.rules"),
|
|
541
541
|
width: "1000px",
|
|
542
542
|
executing: e(s),
|
|
543
|
-
onClosed: e(
|
|
544
|
-
onSubmit: e(
|
|
543
|
+
onClosed: e(A),
|
|
544
|
+
onSubmit: e(_)
|
|
545
545
|
}, {
|
|
546
546
|
default: o(() => [
|
|
547
547
|
l(h, {
|
|
548
548
|
ref_key: "form",
|
|
549
549
|
ref: u,
|
|
550
|
-
model: e(
|
|
550
|
+
model: e(t),
|
|
551
551
|
"label-width": "auto",
|
|
552
|
-
rules:
|
|
552
|
+
rules: b,
|
|
553
553
|
disabled: e(v) || e(s)
|
|
554
554
|
}, {
|
|
555
555
|
default: o(() => [
|
|
@@ -563,8 +563,8 @@ const ul = {
|
|
|
563
563
|
}, {
|
|
564
564
|
default: o(() => [
|
|
565
565
|
l(ml, {
|
|
566
|
-
modelValue: e(
|
|
567
|
-
"onUpdate:modelValue":
|
|
566
|
+
modelValue: e(t).menu_id,
|
|
567
|
+
"onUpdate:modelValue": n[0] || (n[0] = (C) => e(t).menu_id = C),
|
|
568
568
|
disabled: e(s)
|
|
569
569
|
}, null, 8, ["modelValue", "disabled"])
|
|
570
570
|
]),
|
|
@@ -577,8 +577,8 @@ const ul = {
|
|
|
577
577
|
default: o(() => [
|
|
578
578
|
l(p, {
|
|
579
579
|
class: "w-full",
|
|
580
|
-
modelValue: e(
|
|
581
|
-
"onUpdate:modelValue":
|
|
580
|
+
modelValue: e(t).sort,
|
|
581
|
+
"onUpdate:modelValue": n[1] || (n[1] = (C) => e(t).sort = C),
|
|
582
582
|
min: 0,
|
|
583
583
|
placeholder: e(a)("placeholder.input")
|
|
584
584
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -591,8 +591,8 @@ const ul = {
|
|
|
591
591
|
}, {
|
|
592
592
|
default: o(() => [
|
|
593
593
|
l(S, {
|
|
594
|
-
modelValue: e(
|
|
595
|
-
"onUpdate:modelValue":
|
|
594
|
+
modelValue: e(t).name,
|
|
595
|
+
"onUpdate:modelValue": n[2] || (n[2] = (C) => e(t).name = C),
|
|
596
596
|
placeholder: e(a)("placeholder.input")
|
|
597
597
|
}, null, 8, ["modelValue", "placeholder"])
|
|
598
598
|
]),
|
|
@@ -604,8 +604,8 @@ const ul = {
|
|
|
604
604
|
}, {
|
|
605
605
|
default: o(() => [
|
|
606
606
|
l(S, {
|
|
607
|
-
modelValue: e(
|
|
608
|
-
"onUpdate:modelValue":
|
|
607
|
+
modelValue: e(t).en_name,
|
|
608
|
+
"onUpdate:modelValue": n[3] || (n[3] = (C) => e(t).en_name = C),
|
|
609
609
|
placeholder: e(a)("placeholder.input")
|
|
610
610
|
}, null, 8, ["modelValue", "placeholder"])
|
|
611
611
|
]),
|
|
@@ -617,8 +617,8 @@ const ul = {
|
|
|
617
617
|
}, {
|
|
618
618
|
default: o(() => [
|
|
619
619
|
l(S, {
|
|
620
|
-
modelValue: e(
|
|
621
|
-
"onUpdate:modelValue":
|
|
620
|
+
modelValue: e(t).remark,
|
|
621
|
+
"onUpdate:modelValue": n[4] || (n[4] = (C) => e(t).remark = C),
|
|
622
622
|
placeholder: e(a)("placeholder.input")
|
|
623
623
|
}, null, 8, ["modelValue", "placeholder"])
|
|
624
624
|
]),
|
|
@@ -635,8 +635,8 @@ const ul = {
|
|
|
635
635
|
}, {
|
|
636
636
|
default: o(() => [
|
|
637
637
|
l(S, {
|
|
638
|
-
modelValue: e(
|
|
639
|
-
"onUpdate:modelValue":
|
|
638
|
+
modelValue: e(t).urls,
|
|
639
|
+
"onUpdate:modelValue": n[5] || (n[5] = (C) => e(t).urls = C),
|
|
640
640
|
type: "textarea",
|
|
641
641
|
rows: 11,
|
|
642
642
|
placeholder: e(a)("placeholder.input")
|
|
@@ -659,16 +659,16 @@ const ul = {
|
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
661
|
});
|
|
662
|
-
function Me(
|
|
663
|
-
return typeof
|
|
662
|
+
function Me(R) {
|
|
663
|
+
return typeof R == "function" || Object.prototype.toString.call(R) === "[object Object]" && !De(R);
|
|
664
664
|
}
|
|
665
665
|
const Yl = /* @__PURE__ */ O({
|
|
666
666
|
__name: "index",
|
|
667
|
-
setup(
|
|
667
|
+
setup(R) {
|
|
668
668
|
const U = {
|
|
669
669
|
keyword: "",
|
|
670
670
|
status: 0
|
|
671
|
-
},
|
|
671
|
+
}, x = H(""), k = [
|
|
672
672
|
{
|
|
673
673
|
label: a("base.sort"),
|
|
674
674
|
prop: "sort",
|
|
@@ -679,9 +679,9 @@ const Yl = /* @__PURE__ */ O({
|
|
|
679
679
|
prop: "icon",
|
|
680
680
|
width: 60,
|
|
681
681
|
render: ({
|
|
682
|
-
row:
|
|
682
|
+
row: n
|
|
683
683
|
}) => l("span", {
|
|
684
|
-
class: "iconfont " +
|
|
684
|
+
class: "iconfont " + n.icon,
|
|
685
685
|
style: "font-size: 16px;"
|
|
686
686
|
}, null)
|
|
687
687
|
},
|
|
@@ -695,8 +695,8 @@ const Yl = /* @__PURE__ */ O({
|
|
|
695
695
|
prop: "parent",
|
|
696
696
|
width: 120,
|
|
697
697
|
render: ({
|
|
698
|
-
row:
|
|
699
|
-
}) => l(G, null, [
|
|
698
|
+
row: n
|
|
699
|
+
}) => l(G, null, [n.menu?.translate])
|
|
700
700
|
},
|
|
701
701
|
{
|
|
702
702
|
label: a("base.name"),
|
|
@@ -722,10 +722,10 @@ const Yl = /* @__PURE__ */ O({
|
|
|
722
722
|
width: 0,
|
|
723
723
|
align: "left",
|
|
724
724
|
render: ({
|
|
725
|
-
row:
|
|
725
|
+
row: n
|
|
726
726
|
}) => l(r("el-space"), null, {
|
|
727
|
-
default: () => [
|
|
728
|
-
visible:
|
|
727
|
+
default: () => [n.rules?.map((d) => l(r("el-popover"), {
|
|
728
|
+
visible: x.value === d.key,
|
|
729
729
|
title: a("message.warning"),
|
|
730
730
|
placement: "top-end",
|
|
731
731
|
width: 220
|
|
@@ -734,27 +734,27 @@ const Yl = /* @__PURE__ */ O({
|
|
|
734
734
|
class: "cursor-pointer",
|
|
735
735
|
closable: !0,
|
|
736
736
|
key: d.key,
|
|
737
|
-
onClick: () =>
|
|
737
|
+
onClick: () => A({
|
|
738
738
|
key: d.key
|
|
739
739
|
}),
|
|
740
|
-
onClose: () =>
|
|
740
|
+
onClose: () => x.value = d.key
|
|
741
741
|
}, {
|
|
742
742
|
default: () => [d.translate]
|
|
743
743
|
}),
|
|
744
744
|
default: () => {
|
|
745
745
|
let p, S;
|
|
746
|
-
return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.space base.delete base.space menu.rules")}: ${
|
|
746
|
+
return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.space base.delete base.space menu.rules")}: ${n.translate}-${d.translate} ?`]), l("div", {
|
|
747
747
|
style: "text-align: right; margin: 0"
|
|
748
748
|
}, [l(r("el-button"), {
|
|
749
749
|
size: "small",
|
|
750
750
|
text: !0,
|
|
751
|
-
onClick: () =>
|
|
751
|
+
onClick: () => x.value = ""
|
|
752
752
|
}, Me(p = a("base.cancel")) ? p : {
|
|
753
753
|
default: () => [p]
|
|
754
754
|
}), l(r("el-button"), {
|
|
755
755
|
size: "small",
|
|
756
756
|
type: "danger",
|
|
757
|
-
onClick: () =>
|
|
757
|
+
onClick: () => w(d.key)
|
|
758
758
|
}, Me(S = a("base.confirm")) ? S : {
|
|
759
759
|
default: () => [S]
|
|
760
760
|
})])]);
|
|
@@ -770,7 +770,7 @@ const Yl = /* @__PURE__ */ O({
|
|
|
770
770
|
props: {
|
|
771
771
|
activeValue: 1,
|
|
772
772
|
inactiveValue: 2,
|
|
773
|
-
api:
|
|
773
|
+
api: J.urls[Se],
|
|
774
774
|
refresh: !0
|
|
775
775
|
}
|
|
776
776
|
},
|
|
@@ -780,42 +780,42 @@ const Yl = /* @__PURE__ */ O({
|
|
|
780
780
|
width: 60,
|
|
781
781
|
align: "center",
|
|
782
782
|
render: ({
|
|
783
|
-
row:
|
|
784
|
-
}) => l(
|
|
783
|
+
row: n
|
|
784
|
+
}) => l(te, {
|
|
785
785
|
size: "default",
|
|
786
786
|
onModify: () => c({
|
|
787
|
-
id:
|
|
787
|
+
id: n.id
|
|
788
788
|
})
|
|
789
789
|
}, null)
|
|
790
790
|
}
|
|
791
791
|
], {
|
|
792
792
|
requesting: V
|
|
793
|
-
} =
|
|
794
|
-
tableRef:
|
|
793
|
+
} = I(J), {
|
|
794
|
+
tableRef: b,
|
|
795
795
|
formModalRef: m,
|
|
796
796
|
keyword: i,
|
|
797
797
|
search: u,
|
|
798
|
-
refresh:
|
|
798
|
+
refresh: t,
|
|
799
799
|
reset: v,
|
|
800
800
|
openFormModal: s,
|
|
801
801
|
editFormModal: c
|
|
802
|
-
} =
|
|
802
|
+
} = X(U), {
|
|
803
803
|
formRef: f,
|
|
804
|
-
open:
|
|
805
|
-
edit:
|
|
806
|
-
} = Te(),
|
|
804
|
+
open: _,
|
|
805
|
+
edit: A
|
|
806
|
+
} = Te(), w = (n) => {
|
|
807
807
|
$e[Je]({
|
|
808
|
-
key:
|
|
808
|
+
key: n
|
|
809
809
|
}).then(() => {
|
|
810
|
-
|
|
810
|
+
x.value = "", t();
|
|
811
811
|
});
|
|
812
812
|
};
|
|
813
|
-
return (
|
|
814
|
-
const p = r("el-button"), S = r("el-input"), g = r("el-radio-button"), y = r("el-radio-group"), h = r("el-space"), C = r("el-page-header"),
|
|
815
|
-
return M(), q(
|
|
813
|
+
return (n, d) => {
|
|
814
|
+
const p = r("el-button"), S = r("el-input"), g = r("el-radio-button"), y = r("el-radio-group"), h = r("el-space"), C = r("el-page-header"), D = r("el-card");
|
|
815
|
+
return M(), q(D, {
|
|
816
816
|
class: "basic-card flex-full",
|
|
817
817
|
"body-class": "flex-1",
|
|
818
|
-
onClick: d[5] || (d[5] = () =>
|
|
818
|
+
onClick: d[5] || (d[5] = () => x.value = "")
|
|
819
819
|
}, {
|
|
820
820
|
header: o(() => [l(C, {
|
|
821
821
|
class: "basic-header"
|
|
@@ -828,7 +828,7 @@ const Yl = /* @__PURE__ */ O({
|
|
|
828
828
|
}, null, 8, ["onOpen"]), l(p, {
|
|
829
829
|
circle: "",
|
|
830
830
|
icon: e(dl),
|
|
831
|
-
onClick: e(
|
|
831
|
+
onClick: e(_)
|
|
832
832
|
}, null, 8, ["icon", "onClick"])]),
|
|
833
833
|
content: o(() => [l(h, {
|
|
834
834
|
class: "search-bar"
|
|
@@ -862,19 +862,19 @@ const Yl = /* @__PURE__ */ O({
|
|
|
862
862
|
})]),
|
|
863
863
|
default: o(() => [l(e(be), {
|
|
864
864
|
ref_key: "tableRef",
|
|
865
|
-
ref:
|
|
865
|
+
ref: b,
|
|
866
866
|
columns: k,
|
|
867
|
-
url: e(
|
|
867
|
+
url: e(J).urls[e(ye)],
|
|
868
868
|
"search-param": e(i),
|
|
869
869
|
"auto-search": ""
|
|
870
870
|
}, null, 8, ["url", "search-param"]), l(pl, {
|
|
871
871
|
ref_key: "formModalRef",
|
|
872
872
|
ref: m,
|
|
873
|
-
onRefresh: e(
|
|
873
|
+
onRefresh: e(t)
|
|
874
874
|
}, null, 8, ["onRefresh"]), l(cl, {
|
|
875
875
|
ref_key: "ruleFormModalRef",
|
|
876
876
|
ref: f,
|
|
877
|
-
onRefresh: e(
|
|
877
|
+
onRefresh: e(t)
|
|
878
878
|
}, null, 8, ["onRefresh"])]),
|
|
879
879
|
_: 1
|
|
880
880
|
});
|
|
@@ -887,60 +887,60 @@ const Yl = /* @__PURE__ */ O({
|
|
|
887
887
|
disabled: { type: Boolean, default: !1 }
|
|
888
888
|
},
|
|
889
889
|
emits: ["update:modelValue"],
|
|
890
|
-
setup(
|
|
891
|
-
const { requesting: k } =
|
|
890
|
+
setup(R, { expose: U, emit: x }) {
|
|
891
|
+
const { requesting: k } = I(J), V = R, b = x, m = H(!1), i = Ke({
|
|
892
892
|
checkAll: !1,
|
|
893
893
|
indeterminate: !1,
|
|
894
894
|
MenuAll: {},
|
|
895
895
|
MenuList: {},
|
|
896
896
|
MenuIndeterminate: {}
|
|
897
|
-
}), { options: u, refresh:
|
|
897
|
+
}), { options: u, refresh: t } = re(ne(V, "modelValue"), b, { key: "RULE_CHECK", api: J, url: J.urls.rules, isArray: !0 }, { autoRefresh: !1 });
|
|
898
898
|
function v() {
|
|
899
|
-
u.value.forEach((
|
|
900
|
-
|
|
899
|
+
u.value.forEach((w) => {
|
|
900
|
+
w.rules?.length && (i.MenuAll[w.id] = !1, i.MenuIndeterminate[w.id] = !1, i.MenuList[w.id] = []);
|
|
901
901
|
});
|
|
902
902
|
}
|
|
903
|
-
function s(
|
|
904
|
-
u.value.forEach((
|
|
905
|
-
|
|
903
|
+
function s(w) {
|
|
904
|
+
u.value.forEach((n) => {
|
|
905
|
+
n.rules?.length && (i.MenuList[n.id] = w ? n.rules.map((d) => d.key) : []);
|
|
906
906
|
}), f();
|
|
907
907
|
}
|
|
908
|
-
function c(
|
|
909
|
-
const d = u.value.find((p) => p.id ===
|
|
910
|
-
i.MenuList[
|
|
908
|
+
function c(w, n) {
|
|
909
|
+
const d = u.value.find((p) => p.id === n);
|
|
910
|
+
i.MenuList[n] = w && d ? d.rules.map((p) => p.key) : [], f();
|
|
911
911
|
}
|
|
912
912
|
function f() {
|
|
913
|
-
u.value.forEach((
|
|
914
|
-
const
|
|
915
|
-
i.MenuAll[
|
|
916
|
-
}), i.checkAll = Object.values(i.MenuAll).every(Boolean), i.indeterminate = !i.checkAll && Object.values(i.MenuList).some((
|
|
913
|
+
u.value.forEach((w) => {
|
|
914
|
+
const n = w.rules?.length || 0, d = i.MenuList[w.id]?.length || 0;
|
|
915
|
+
i.MenuAll[w.id] = d === n && n > 0, i.MenuIndeterminate[w.id] = d > 0 && d < n;
|
|
916
|
+
}), i.checkAll = Object.values(i.MenuAll).every(Boolean), i.indeterminate = !i.checkAll && Object.values(i.MenuList).some((w) => w.length > 0), b("update:modelValue", Object.values(i.MenuList).flat());
|
|
917
917
|
}
|
|
918
|
-
function
|
|
919
|
-
i.checkAll = !1, i.indeterminate = !1, i.MenuAll = {}, i.MenuList = {}, i.MenuIndeterminate = {}, v(),
|
|
918
|
+
function _() {
|
|
919
|
+
i.checkAll = !1, i.indeterminate = !1, i.MenuAll = {}, i.MenuList = {}, i.MenuIndeterminate = {}, v(), b("update:modelValue", []), m.value = !1;
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function A(w) {
|
|
922
922
|
if (Array.isArray(u.value) && u.value.length > 0) {
|
|
923
|
-
for (let
|
|
924
|
-
if (Array.isArray(
|
|
925
|
-
for (let d of
|
|
926
|
-
|
|
923
|
+
for (let n of u.value)
|
|
924
|
+
if (Array.isArray(n.rules) && n.rules.length > 0)
|
|
925
|
+
for (let d of n.rules)
|
|
926
|
+
w.some((p) => p === d.key) && (i.MenuList[n.id] = (i.MenuList?.[n.id] || []).concat([d.key]));
|
|
927
927
|
f(), m.value = !0;
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
return We(async () => {
|
|
931
|
-
u.value?.length || await
|
|
931
|
+
u.value?.length || await t(), !m.value && V.modelValue && A(V.modelValue);
|
|
932
932
|
}), Le(
|
|
933
933
|
() => V.modelValue,
|
|
934
|
-
(
|
|
934
|
+
(w) => {
|
|
935
935
|
Ge(() => {
|
|
936
|
-
m.value || !u.value?.length ||
|
|
936
|
+
m.value || !u.value?.length || w && w.length > 0 && A(w);
|
|
937
937
|
});
|
|
938
938
|
},
|
|
939
939
|
{ deep: !0, immediate: !0 }
|
|
940
940
|
), U({
|
|
941
|
-
generateOption:
|
|
942
|
-
cleanChecked:
|
|
943
|
-
}), (
|
|
941
|
+
generateOption: A,
|
|
942
|
+
cleanChecked: _
|
|
943
|
+
}), (w, n) => {
|
|
944
944
|
const d = r("el-checkbox"), p = r("el-space"), S = r("el-text"), g = r("el-divider"), y = r("el-checkbox-group");
|
|
945
945
|
return M(), B("div", fl, [
|
|
946
946
|
l(p, { style: { "margin-bottom": "6px" } }, {
|
|
@@ -949,10 +949,10 @@ const Yl = /* @__PURE__ */ O({
|
|
|
949
949
|
"model-value": i.checkAll,
|
|
950
950
|
indeterminate: i.indeterminate,
|
|
951
951
|
id: "all",
|
|
952
|
-
disabled:
|
|
952
|
+
disabled: R.disabled,
|
|
953
953
|
onChange: s
|
|
954
954
|
}, {
|
|
955
|
-
default: o(() => [...
|
|
955
|
+
default: o(() => [...n[1] || (n[1] = [
|
|
956
956
|
j("span", null, "全选", -1)
|
|
957
957
|
])]),
|
|
958
958
|
_: 1
|
|
@@ -961,7 +961,7 @@ const Yl = /* @__PURE__ */ O({
|
|
|
961
961
|
loading: e(k),
|
|
962
962
|
text: "",
|
|
963
963
|
size: "small",
|
|
964
|
-
onRefresh:
|
|
964
|
+
onRefresh: n[0] || (n[0] = (h) => e(t)(!0))
|
|
965
965
|
}, null, 8, ["loading"])
|
|
966
966
|
]),
|
|
967
967
|
_: 1
|
|
@@ -983,14 +983,14 @@ const Yl = /* @__PURE__ */ O({
|
|
|
983
983
|
l(d, {
|
|
984
984
|
style: { "min-width": "150px" },
|
|
985
985
|
"model-value": i.MenuAll[h.id],
|
|
986
|
-
disabled:
|
|
986
|
+
disabled: R.disabled || !h.rules || h.rules.length <= 0,
|
|
987
987
|
indeterminate: i.MenuIndeterminate[h.id],
|
|
988
988
|
onChange: (C) => c(C, h.id)
|
|
989
989
|
}, {
|
|
990
990
|
default: o(() => [
|
|
991
991
|
l(S, { style: { "font-size": "15px" } }, {
|
|
992
992
|
default: o(() => [
|
|
993
|
-
|
|
993
|
+
Q(F(h.translate), 1)
|
|
994
994
|
]),
|
|
995
995
|
_: 2
|
|
996
996
|
}, 1024)
|
|
@@ -1002,7 +1002,7 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1002
1002
|
key: 0,
|
|
1003
1003
|
modelValue: i.MenuList[h.id],
|
|
1004
1004
|
"onUpdate:modelValue": (C) => i.MenuList[h.id] = C,
|
|
1005
|
-
disabled:
|
|
1005
|
+
disabled: R.disabled,
|
|
1006
1006
|
style: { margin: "auto" },
|
|
1007
1007
|
onChange: f
|
|
1008
1008
|
}, {
|
|
@@ -1012,7 +1012,7 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1012
1012
|
value: C.key
|
|
1013
1013
|
}, {
|
|
1014
1014
|
default: o(() => [
|
|
1015
|
-
j("div", bl,
|
|
1015
|
+
j("div", bl, F(C.translate), 1)
|
|
1016
1016
|
]),
|
|
1017
1017
|
_: 2
|
|
1018
1018
|
}, 1032, ["value"]))), 128))
|
|
@@ -1029,16 +1029,16 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1029
1029
|
]);
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
|
-
}), Ee = (
|
|
1033
|
-
const
|
|
1032
|
+
}), Ee = (R, U) => {
|
|
1033
|
+
const x = R.__vccOpts || R;
|
|
1034
1034
|
for (const [k, V] of U)
|
|
1035
|
-
|
|
1036
|
-
return
|
|
1035
|
+
x[k] = V;
|
|
1036
|
+
return x;
|
|
1037
1037
|
}, gl = /* @__PURE__ */ Ee(_l, [["__scopeId", "data-v-7adb5f76"]]), hl = /* @__PURE__ */ O({
|
|
1038
1038
|
__name: "RoleFormModal",
|
|
1039
1039
|
emits: ["refresh"],
|
|
1040
|
-
setup(
|
|
1041
|
-
const k =
|
|
1040
|
+
setup(R, { expose: U, emit: x }) {
|
|
1041
|
+
const k = x, V = H(), b = {
|
|
1042
1042
|
key: "",
|
|
1043
1043
|
module: "",
|
|
1044
1044
|
sort: 0,
|
|
@@ -1061,27 +1061,27 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1061
1061
|
trigger: "blur"
|
|
1062
1062
|
}
|
|
1063
1063
|
]
|
|
1064
|
-
}, { modal: i, title: u, form:
|
|
1065
|
-
V.value?.cleanChecked(),
|
|
1064
|
+
}, { modal: i, title: u, form: t, formData: v, requesting: s, executing: c, open: f, modify: _, submit: A, closed: w } = le(k, b, we), n = () => {
|
|
1065
|
+
V.value?.cleanChecked(), w();
|
|
1066
1066
|
};
|
|
1067
1067
|
return U({
|
|
1068
1068
|
open: f,
|
|
1069
|
-
modify:
|
|
1069
|
+
modify: _
|
|
1070
1070
|
}), (d, p) => {
|
|
1071
|
-
const S = r("el-input"), g = r("el-form-item"), y = r("el-col"), h = r("el-input-number"), C = r("el-row"),
|
|
1071
|
+
const S = r("el-input"), g = r("el-form-item"), y = r("el-col"), h = r("el-input-number"), C = r("el-row"), D = r("el-form");
|
|
1072
1072
|
return M(), q(e(oe), {
|
|
1073
1073
|
modelValue: e(i),
|
|
1074
|
-
"onUpdate:modelValue": p[6] || (p[6] = (L) =>
|
|
1074
|
+
"onUpdate:modelValue": p[6] || (p[6] = (L) => z(i) ? i.value = L : null),
|
|
1075
1075
|
title: e(u)(),
|
|
1076
1076
|
width: "1000px",
|
|
1077
1077
|
executing: e(c),
|
|
1078
|
-
onClosed:
|
|
1079
|
-
onSubmit: e(
|
|
1078
|
+
onClosed: n,
|
|
1079
|
+
onSubmit: e(A)
|
|
1080
1080
|
}, {
|
|
1081
1081
|
default: o(() => [
|
|
1082
|
-
l(
|
|
1082
|
+
l(D, {
|
|
1083
1083
|
ref_key: "form",
|
|
1084
|
-
ref:
|
|
1084
|
+
ref: t,
|
|
1085
1085
|
model: e(v),
|
|
1086
1086
|
"label-width": "auto",
|
|
1087
1087
|
rules: m,
|
|
@@ -1195,10 +1195,10 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1195
1195
|
}
|
|
1196
1196
|
}), Hl = /* @__PURE__ */ O({
|
|
1197
1197
|
__name: "index",
|
|
1198
|
-
setup(
|
|
1198
|
+
setup(R) {
|
|
1199
1199
|
const U = {
|
|
1200
1200
|
keyword: ""
|
|
1201
|
-
},
|
|
1201
|
+
}, x = [
|
|
1202
1202
|
{
|
|
1203
1203
|
label: a("base.sort"),
|
|
1204
1204
|
prop: "sort",
|
|
@@ -1232,7 +1232,7 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1232
1232
|
align: "center",
|
|
1233
1233
|
render: ({
|
|
1234
1234
|
row: c
|
|
1235
|
-
}) => l(
|
|
1235
|
+
}) => l(te, {
|
|
1236
1236
|
size: "default",
|
|
1237
1237
|
onModify: () => s({
|
|
1238
1238
|
key: c.key
|
|
@@ -1241,23 +1241,23 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1241
1241
|
}
|
|
1242
1242
|
], {
|
|
1243
1243
|
requesting: k
|
|
1244
|
-
} =
|
|
1244
|
+
} = I(we), {
|
|
1245
1245
|
tableRef: V,
|
|
1246
|
-
formModalRef:
|
|
1246
|
+
formModalRef: b,
|
|
1247
1247
|
keyword: m,
|
|
1248
1248
|
search: i,
|
|
1249
1249
|
reset: u,
|
|
1250
|
-
refresh:
|
|
1250
|
+
refresh: t,
|
|
1251
1251
|
openFormModal: v,
|
|
1252
1252
|
editFormModal: s
|
|
1253
|
-
} =
|
|
1253
|
+
} = X(U);
|
|
1254
1254
|
return (c, f) => {
|
|
1255
|
-
const
|
|
1256
|
-
return M(), q(
|
|
1255
|
+
const _ = r("el-input"), A = r("el-space"), w = r("el-page-header"), n = r("el-card");
|
|
1256
|
+
return M(), q(n, {
|
|
1257
1257
|
class: "basic-card flex-full",
|
|
1258
1258
|
"body-class": "flex-1"
|
|
1259
1259
|
}, {
|
|
1260
|
-
header: o(() => [l(
|
|
1260
|
+
header: o(() => [l(w, {
|
|
1261
1261
|
class: "basic-header"
|
|
1262
1262
|
}, {
|
|
1263
1263
|
title: o(() => [l(e(K), {
|
|
@@ -1266,10 +1266,10 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1266
1266
|
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
1267
1267
|
onOpen: e(v)
|
|
1268
1268
|
}, null, 8, ["onOpen"])]),
|
|
1269
|
-
content: o(() => [l(
|
|
1269
|
+
content: o(() => [l(A, {
|
|
1270
1270
|
class: "search-bar"
|
|
1271
1271
|
}, {
|
|
1272
|
-
default: o(() => [l(
|
|
1272
|
+
default: o(() => [l(_, {
|
|
1273
1273
|
class: "basic-search-input",
|
|
1274
1274
|
modelValue: e(m).keyword,
|
|
1275
1275
|
"onUpdate:modelValue": f[0] || (f[0] = (d) => e(m).keyword = d),
|
|
@@ -1288,14 +1288,14 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1288
1288
|
default: o(() => [l(e(be), {
|
|
1289
1289
|
ref_key: "tableRef",
|
|
1290
1290
|
ref: V,
|
|
1291
|
-
columns:
|
|
1291
|
+
columns: x,
|
|
1292
1292
|
url: e(we).urls[e(ye)],
|
|
1293
1293
|
"search-param": e(m),
|
|
1294
1294
|
"auto-search": ""
|
|
1295
1295
|
}, null, 8, ["url", "search-param"]), l(hl, {
|
|
1296
1296
|
ref_key: "formModalRef",
|
|
1297
|
-
ref:
|
|
1298
|
-
onRefresh: e(
|
|
1297
|
+
ref: b,
|
|
1298
|
+
onRefresh: e(t)
|
|
1299
1299
|
}, null, 8, ["onRefresh"])]),
|
|
1300
1300
|
_: 1
|
|
1301
1301
|
});
|
|
@@ -1332,18 +1332,18 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1332
1332
|
}
|
|
1333
1333
|
},
|
|
1334
1334
|
emits: ["update:modelValue", "update:value", "change"],
|
|
1335
|
-
setup(
|
|
1335
|
+
setup(R, {
|
|
1336
1336
|
emit: U
|
|
1337
1337
|
}) {
|
|
1338
|
-
const
|
|
1338
|
+
const x = U, k = R, {
|
|
1339
1339
|
requesting: V
|
|
1340
|
-
} =
|
|
1341
|
-
value:
|
|
1340
|
+
} = I(W), {
|
|
1341
|
+
value: b,
|
|
1342
1342
|
options: m,
|
|
1343
1343
|
change: i,
|
|
1344
1344
|
refresh: u,
|
|
1345
|
-
filterOptions:
|
|
1346
|
-
} = re(
|
|
1345
|
+
filterOptions: t
|
|
1346
|
+
} = re(ne(k, "modelValue"), x, {
|
|
1347
1347
|
key: "I18N_MODULES",
|
|
1348
1348
|
url: W.urls.modules,
|
|
1349
1349
|
api: W,
|
|
@@ -1352,28 +1352,27 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1352
1352
|
return (v, s) => {
|
|
1353
1353
|
const c = r("el-space"), f = r("el-select-v2");
|
|
1354
1354
|
return M(), q(f, {
|
|
1355
|
-
|
|
1356
|
-
modelValue:
|
|
1357
|
-
"onUpdate:modelValue": s[1] || (s[1] = (b) => F(_) ? _.value = b : null),
|
|
1355
|
+
modelValue: e(b),
|
|
1356
|
+
"onUpdate:modelValue": s[1] || (s[1] = (_) => z(b) ? b.value = _ : null),
|
|
1358
1357
|
options: e(m),
|
|
1359
|
-
multiple:
|
|
1360
|
-
disabled: e(V) ||
|
|
1361
|
-
clearable:
|
|
1358
|
+
multiple: R.multiple,
|
|
1359
|
+
disabled: e(V) || R.disabled,
|
|
1360
|
+
clearable: R.clearable,
|
|
1362
1361
|
filterable: "",
|
|
1363
|
-
"allow-create":
|
|
1362
|
+
"allow-create": R.allowCreate,
|
|
1364
1363
|
"default-first-option": "",
|
|
1365
1364
|
placeholder: e(a)("placeholder.select"),
|
|
1366
|
-
filterOptions: e(
|
|
1365
|
+
filterOptions: e(t),
|
|
1367
1366
|
onChange: e(i)
|
|
1368
1367
|
}, {
|
|
1369
1368
|
prefix: o(() => [l(e(fe), {
|
|
1370
1369
|
loading: e(V),
|
|
1371
|
-
onRefresh: s[0] || (s[0] = (
|
|
1370
|
+
onRefresh: s[0] || (s[0] = (_) => e(u)(!0))
|
|
1372
1371
|
}, null, 8, ["loading"])]),
|
|
1373
1372
|
default: o(({
|
|
1374
|
-
item:
|
|
1373
|
+
item: _
|
|
1375
1374
|
}) => [l(c, null, {
|
|
1376
|
-
default: o(() => [j("span", null,
|
|
1375
|
+
default: o(() => [j("span", null, F(_.value), 1)]),
|
|
1377
1376
|
_: 2
|
|
1378
1377
|
}, 1024)]),
|
|
1379
1378
|
_: 1
|
|
@@ -1383,8 +1382,8 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1383
1382
|
}), Vl = /* @__PURE__ */ O({
|
|
1384
1383
|
__name: "I18N",
|
|
1385
1384
|
emits: ["refresh"],
|
|
1386
|
-
setup(
|
|
1387
|
-
const k =
|
|
1385
|
+
setup(R, { expose: U, emit: x }) {
|
|
1386
|
+
const k = x, V = {
|
|
1388
1387
|
uuid: "",
|
|
1389
1388
|
key: "",
|
|
1390
1389
|
module: void 0,
|
|
@@ -1393,7 +1392,7 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1393
1392
|
"en-US": ""
|
|
1394
1393
|
},
|
|
1395
1394
|
remark: ""
|
|
1396
|
-
},
|
|
1395
|
+
}, b = {
|
|
1397
1396
|
module: [
|
|
1398
1397
|
{
|
|
1399
1398
|
required: !0,
|
|
@@ -1428,20 +1427,20 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1428
1427
|
});
|
|
1429
1428
|
}
|
|
1430
1429
|
u();
|
|
1431
|
-
const { modal:
|
|
1430
|
+
const { modal: t, title: v, form: s, formData: c, requesting: f, executing: _, open: A, modify: w, submit: n, closed: d } = le(k, V, W);
|
|
1432
1431
|
return U({
|
|
1433
|
-
open:
|
|
1434
|
-
modify:
|
|
1432
|
+
open: A,
|
|
1433
|
+
modify: w
|
|
1435
1434
|
}), (p, S) => {
|
|
1436
1435
|
const g = r("el-form-item"), y = r("el-input"), h = r("el-space"), C = r("el-form");
|
|
1437
1436
|
return M(), q(e(oe), {
|
|
1438
|
-
modelValue: e(
|
|
1439
|
-
"onUpdate:modelValue": S[3] || (S[3] = (
|
|
1437
|
+
modelValue: e(t),
|
|
1438
|
+
"onUpdate:modelValue": S[3] || (S[3] = (D) => z(t) ? t.value = D : null),
|
|
1440
1439
|
title: e(v)(),
|
|
1441
1440
|
width: "600px",
|
|
1442
|
-
executing: e(
|
|
1441
|
+
executing: e(_),
|
|
1443
1442
|
onClosed: e(d),
|
|
1444
|
-
onSubmit: e(
|
|
1443
|
+
onSubmit: e(n)
|
|
1445
1444
|
}, {
|
|
1446
1445
|
default: o(() => [
|
|
1447
1446
|
l(C, {
|
|
@@ -1449,8 +1448,8 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1449
1448
|
ref: s,
|
|
1450
1449
|
model: e(c),
|
|
1451
1450
|
"label-width": "auto",
|
|
1452
|
-
rules:
|
|
1453
|
-
disabled: e(f) || e(
|
|
1451
|
+
rules: b,
|
|
1452
|
+
disabled: e(f) || e(_)
|
|
1454
1453
|
}, {
|
|
1455
1454
|
default: o(() => [
|
|
1456
1455
|
l(g, {
|
|
@@ -1461,8 +1460,8 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1461
1460
|
default: o(() => [
|
|
1462
1461
|
l(Fe, {
|
|
1463
1462
|
modelValue: e(c).module,
|
|
1464
|
-
"onUpdate:modelValue": S[0] || (S[0] = (
|
|
1465
|
-
disabled: e(
|
|
1463
|
+
"onUpdate:modelValue": S[0] || (S[0] = (D) => e(c).module = D),
|
|
1464
|
+
disabled: e(_),
|
|
1466
1465
|
"allow-create": ""
|
|
1467
1466
|
}, null, 8, ["modelValue", "disabled"])
|
|
1468
1467
|
]),
|
|
@@ -1476,7 +1475,7 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1476
1475
|
default: o(() => [
|
|
1477
1476
|
l(y, {
|
|
1478
1477
|
modelValue: e(c).key,
|
|
1479
|
-
"onUpdate:modelValue": S[1] || (S[1] = (
|
|
1478
|
+
"onUpdate:modelValue": S[1] || (S[1] = (D) => e(c).key = D),
|
|
1480
1479
|
placeholder: e(a)("i18n.placeholder.key")
|
|
1481
1480
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1482
1481
|
]),
|
|
@@ -1494,14 +1493,14 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1494
1493
|
style: { width: "100%" }
|
|
1495
1494
|
}, {
|
|
1496
1495
|
default: o(() => [
|
|
1497
|
-
(M(!0), B(G, null, ae(m.value, (
|
|
1496
|
+
(M(!0), B(G, null, ae(m.value, (D) => (M(), B("div", { key: D }, [
|
|
1498
1497
|
l(y, {
|
|
1499
|
-
modelValue: e(c).language[
|
|
1500
|
-
"onUpdate:modelValue": (L) => e(c).language[
|
|
1498
|
+
modelValue: e(c).language[D],
|
|
1499
|
+
"onUpdate:modelValue": (L) => e(c).language[D] = L,
|
|
1501
1500
|
placeholder: e(a)("i18n.placeholder.language")
|
|
1502
1501
|
}, {
|
|
1503
1502
|
prepend: o(() => [
|
|
1504
|
-
|
|
1503
|
+
Q(F(D), 1)
|
|
1505
1504
|
]),
|
|
1506
1505
|
_: 2
|
|
1507
1506
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
@@ -1519,7 +1518,7 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1519
1518
|
default: o(() => [
|
|
1520
1519
|
l(y, {
|
|
1521
1520
|
modelValue: e(c).remark,
|
|
1522
|
-
"onUpdate:modelValue": S[2] || (S[2] = (
|
|
1521
|
+
"onUpdate:modelValue": S[2] || (S[2] = (D) => e(c).remark = D),
|
|
1523
1522
|
placeholder: e(a)("placeholder.remark")
|
|
1524
1523
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1525
1524
|
]),
|
|
@@ -1534,19 +1533,19 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1534
1533
|
};
|
|
1535
1534
|
}
|
|
1536
1535
|
});
|
|
1537
|
-
function yl(
|
|
1538
|
-
return typeof
|
|
1536
|
+
function yl(R) {
|
|
1537
|
+
return typeof R == "function" || Object.prototype.toString.call(R) === "[object Object]" && !De(R);
|
|
1539
1538
|
}
|
|
1540
1539
|
const ze = /* @__PURE__ */ O({
|
|
1541
1540
|
__name: "I18N",
|
|
1542
1541
|
emits: ["closed", "choosed"],
|
|
1543
|
-
setup(
|
|
1542
|
+
setup(R, {
|
|
1544
1543
|
expose: U,
|
|
1545
|
-
emit:
|
|
1544
|
+
emit: x
|
|
1546
1545
|
}) {
|
|
1547
|
-
const k =
|
|
1546
|
+
const k = x, {
|
|
1548
1547
|
visible: V,
|
|
1549
|
-
open:
|
|
1548
|
+
open: b,
|
|
1550
1549
|
close: m
|
|
1551
1550
|
} = xe(void 0, () => k("closed")), i = {
|
|
1552
1551
|
keyword: "",
|
|
@@ -1591,12 +1590,12 @@ const ze = /* @__PURE__ */ O({
|
|
|
1591
1590
|
render: ({
|
|
1592
1591
|
row: g
|
|
1593
1592
|
}) => l(r("el-space"), null, {
|
|
1594
|
-
default: () => [l(
|
|
1593
|
+
default: () => [l(te, {
|
|
1595
1594
|
size: "default",
|
|
1596
1595
|
onModify: () => d({
|
|
1597
1596
|
uuid: g.uuid
|
|
1598
1597
|
})
|
|
1599
|
-
}, null), l(
|
|
1598
|
+
}, null), l(Z, {
|
|
1600
1599
|
size: "default",
|
|
1601
1600
|
text: !0,
|
|
1602
1601
|
type: "danger",
|
|
@@ -1605,36 +1604,36 @@ const ze = /* @__PURE__ */ O({
|
|
|
1605
1604
|
}, null)]
|
|
1606
1605
|
})
|
|
1607
1606
|
}], {
|
|
1608
|
-
requesting:
|
|
1607
|
+
requesting: t,
|
|
1609
1608
|
executing: v
|
|
1610
|
-
} =
|
|
1609
|
+
} = I(W), {
|
|
1611
1610
|
tableRef: s,
|
|
1612
1611
|
formModalRef: c,
|
|
1613
1612
|
keyword: f,
|
|
1614
|
-
search:
|
|
1615
|
-
reset:
|
|
1616
|
-
refresh:
|
|
1617
|
-
openFormModal:
|
|
1613
|
+
search: _,
|
|
1614
|
+
reset: A,
|
|
1615
|
+
refresh: w,
|
|
1616
|
+
openFormModal: n,
|
|
1618
1617
|
editFormModal: d
|
|
1619
|
-
} =
|
|
1618
|
+
} = X(i);
|
|
1620
1619
|
async function p(g) {
|
|
1621
1620
|
return W.remove({
|
|
1622
1621
|
uuid: g
|
|
1623
1622
|
}).finally(() => {
|
|
1624
|
-
|
|
1623
|
+
w();
|
|
1625
1624
|
});
|
|
1626
1625
|
}
|
|
1627
1626
|
function S(g) {
|
|
1628
1627
|
k("choosed", g);
|
|
1629
1628
|
}
|
|
1630
1629
|
return U({
|
|
1631
|
-
open:
|
|
1630
|
+
open: b
|
|
1632
1631
|
}), (g, y) => {
|
|
1633
|
-
const h = r("el-input"), C = r("el-radio-button"),
|
|
1632
|
+
const h = r("el-input"), C = r("el-radio-button"), D = r("el-radio-group"), L = r("el-space"), T = r("el-page-header");
|
|
1634
1633
|
return M(), q(e(_e), {
|
|
1635
1634
|
class: "basic-drawer",
|
|
1636
1635
|
modelValue: e(V),
|
|
1637
|
-
"onUpdate:modelValue": y[7] || (y[7] = ($) =>
|
|
1636
|
+
"onUpdate:modelValue": y[7] || (y[7] = ($) => z(V) ? V.value = $ : null),
|
|
1638
1637
|
width: "880px",
|
|
1639
1638
|
"show-close": !1,
|
|
1640
1639
|
onClosed: e(m)
|
|
@@ -1643,12 +1642,12 @@ const ze = /* @__PURE__ */ O({
|
|
|
1643
1642
|
class: "basic-header"
|
|
1644
1643
|
}, {
|
|
1645
1644
|
title: o(() => [l(e(K), {
|
|
1646
|
-
loading: e(
|
|
1645
|
+
loading: e(t),
|
|
1647
1646
|
disabled: e(v),
|
|
1648
|
-
onRefresh: e(
|
|
1647
|
+
onRefresh: e(A)
|
|
1649
1648
|
}, null, 8, ["loading", "disabled", "onRefresh"]), l(e(P), {
|
|
1650
|
-
onOpen: e(
|
|
1651
|
-
disabled: e(
|
|
1649
|
+
onOpen: e(n),
|
|
1650
|
+
disabled: e(t) || e(v)
|
|
1652
1651
|
}, null, 8, ["onOpen", "disabled"])]),
|
|
1653
1652
|
content: o(() => [l(L, {
|
|
1654
1653
|
class: "search-bar"
|
|
@@ -1659,24 +1658,24 @@ const ze = /* @__PURE__ */ O({
|
|
|
1659
1658
|
},
|
|
1660
1659
|
modelValue: e(f).keyword,
|
|
1661
1660
|
"onUpdate:modelValue": y[0] || (y[0] = ($) => e(f).keyword = $),
|
|
1662
|
-
disabled: e(
|
|
1661
|
+
disabled: e(t),
|
|
1663
1662
|
placeholder: e(a)("placeholder.keyword"),
|
|
1664
1663
|
clearable: "",
|
|
1665
|
-
onKeyup: y[1] || (y[1] = Ve(($) => e(
|
|
1666
|
-
onClear: y[2] || (y[2] = ($) => e(
|
|
1664
|
+
onKeyup: y[1] || (y[1] = Ve(($) => e(_)(), ["enter"])),
|
|
1665
|
+
onClear: y[2] || (y[2] = ($) => e(_)())
|
|
1667
1666
|
}, null, 8, ["modelValue", "disabled", "placeholder"]), l(Fe, {
|
|
1668
1667
|
modelValue: e(f).module,
|
|
1669
1668
|
"onUpdate:modelValue": y[3] || (y[3] = ($) => e(f).module = $),
|
|
1670
1669
|
clearable: !0,
|
|
1671
|
-
disabled: e(
|
|
1670
|
+
disabled: e(t),
|
|
1672
1671
|
style: {
|
|
1673
1672
|
width: "160px"
|
|
1674
1673
|
}
|
|
1675
|
-
}, null, 8, ["modelValue", "disabled"]), l(
|
|
1674
|
+
}, null, 8, ["modelValue", "disabled"]), l(D, {
|
|
1676
1675
|
modelValue: e(f).status,
|
|
1677
1676
|
"onUpdate:modelValue": y[4] || (y[4] = ($) => e(f).status = $),
|
|
1678
|
-
onChange: y[5] || (y[5] = ($) => e(
|
|
1679
|
-
disabled: e(
|
|
1677
|
+
onChange: y[5] || (y[5] = ($) => e(_)()),
|
|
1678
|
+
disabled: e(t)
|
|
1680
1679
|
}, {
|
|
1681
1680
|
default: o(() => [(M(), B(G, null, ae([0, 1, 2], ($) => l(C, {
|
|
1682
1681
|
key: $,
|
|
@@ -1685,8 +1684,8 @@ const ze = /* @__PURE__ */ O({
|
|
|
1685
1684
|
}, null, 8, ["label", "value"])), 64))]),
|
|
1686
1685
|
_: 1
|
|
1687
1686
|
}, 8, ["modelValue", "disabled"]), l(e(de), {
|
|
1688
|
-
disabled: e(
|
|
1689
|
-
onSearch: y[6] || (y[6] = ($) => e(
|
|
1687
|
+
disabled: e(t),
|
|
1688
|
+
onSearch: y[6] || (y[6] = ($) => e(_)())
|
|
1690
1689
|
}, null, 8, ["disabled"])]),
|
|
1691
1690
|
_: 1
|
|
1692
1691
|
})]),
|
|
@@ -1703,7 +1702,7 @@ const ze = /* @__PURE__ */ O({
|
|
|
1703
1702
|
}, null, 8, ["url", "search-param"]), l(Vl, {
|
|
1704
1703
|
ref_key: "formModalRef",
|
|
1705
1704
|
ref: c,
|
|
1706
|
-
onRefresh: e(
|
|
1705
|
+
onRefresh: e(w)
|
|
1707
1706
|
}, null, 8, ["onRefresh"])]),
|
|
1708
1707
|
_: 1
|
|
1709
1708
|
}, 8, ["modelValue", "onClosed"]);
|
|
@@ -1712,11 +1711,11 @@ const ze = /* @__PURE__ */ O({
|
|
|
1712
1711
|
}), kl = { key: 0 }, vl = { key: 1 }, wl = /* @__PURE__ */ O({
|
|
1713
1712
|
__name: "template",
|
|
1714
1713
|
emits: ["refresh"],
|
|
1715
|
-
setup(
|
|
1716
|
-
const k = He(), V = () => k.value?.open(),
|
|
1714
|
+
setup(R, { expose: U, emit: x }) {
|
|
1715
|
+
const k = He(), V = () => k.value?.open(), b = x, m = H("600px"), i = H({
|
|
1717
1716
|
"zh-CN": "primary",
|
|
1718
1717
|
"en-US": "success"
|
|
1719
|
-
}), u = H({}),
|
|
1718
|
+
}), u = H({}), t = {
|
|
1720
1719
|
uuid: "",
|
|
1721
1720
|
app: 1,
|
|
1722
1721
|
keys: "",
|
|
@@ -1744,7 +1743,7 @@ const ze = /* @__PURE__ */ O({
|
|
|
1744
1743
|
trigger: "change"
|
|
1745
1744
|
}
|
|
1746
1745
|
]
|
|
1747
|
-
}, { modal: s, title: c, form: f, formData:
|
|
1746
|
+
}, { modal: s, title: c, form: f, formData: _, requesting: A, executing: w, open: n, modify: d, submit: p, closed: S } = le(b, t, ue);
|
|
1748
1747
|
function g() {
|
|
1749
1748
|
m.value = "1080px", V();
|
|
1750
1749
|
}
|
|
@@ -1753,15 +1752,15 @@ const ze = /* @__PURE__ */ O({
|
|
|
1753
1752
|
}
|
|
1754
1753
|
function h(L) {
|
|
1755
1754
|
let T = L?.module?.toLowerCase() + "." + L.key.toLowerCase();
|
|
1756
|
-
|
|
1755
|
+
_.keys = T, _.values.push(T);
|
|
1757
1756
|
for (const $ in L.language)
|
|
1758
1757
|
u.value[$] || (u.value[$] = []), u.value[$].push(L.language[$]);
|
|
1759
1758
|
}
|
|
1760
1759
|
function C() {
|
|
1761
|
-
m.value = "600px",
|
|
1760
|
+
m.value = "600px", D();
|
|
1762
1761
|
}
|
|
1763
|
-
function
|
|
1764
|
-
|
|
1762
|
+
function D() {
|
|
1763
|
+
_.keys = "", _.values = [], u.value = {
|
|
1765
1764
|
"zh-CN": [],
|
|
1766
1765
|
"en-US": []
|
|
1767
1766
|
};
|
|
@@ -1769,13 +1768,13 @@ const ze = /* @__PURE__ */ O({
|
|
|
1769
1768
|
return Le(() => s.value, (L) => {
|
|
1770
1769
|
L ? C() : S();
|
|
1771
1770
|
}), U({
|
|
1772
|
-
open:
|
|
1771
|
+
open: n,
|
|
1773
1772
|
modify: d
|
|
1774
1773
|
}), (L, T) => {
|
|
1775
1774
|
const $ = r("el-page-header"), se = r("el-form-item"), Re = r("el-button"), N = r("el-input"), Be = r("el-tag"), Pe = r("el-space"), je = r("el-form");
|
|
1776
1775
|
return M(), q(e(_e), {
|
|
1777
1776
|
modelValue: e(s),
|
|
1778
|
-
"onUpdate:modelValue": T[3] || (T[3] = (
|
|
1777
|
+
"onUpdate:modelValue": T[3] || (T[3] = (ee) => z(s) ? s.value = ee : null),
|
|
1779
1778
|
width: m.value,
|
|
1780
1779
|
"show-close": !1,
|
|
1781
1780
|
class: "basic-drawer"
|
|
@@ -1783,23 +1782,23 @@ const ze = /* @__PURE__ */ O({
|
|
|
1783
1782
|
title: o(() => [
|
|
1784
1783
|
l($, { class: "basic-header" }, {
|
|
1785
1784
|
title: o(() => [
|
|
1786
|
-
|
|
1785
|
+
Q(F(e(c)("i18n.template")), 1)
|
|
1787
1786
|
]),
|
|
1788
1787
|
extra: o(() => [
|
|
1789
|
-
l(e(
|
|
1788
|
+
l(e(Z), {
|
|
1790
1789
|
size: "default",
|
|
1791
1790
|
type: "default",
|
|
1792
1791
|
icon: "icon-clear",
|
|
1793
|
-
loading: e(
|
|
1794
|
-
onClick:
|
|
1792
|
+
loading: e(w),
|
|
1793
|
+
onClick: D
|
|
1795
1794
|
}, null, 8, ["loading"]),
|
|
1796
|
-
l(e(
|
|
1795
|
+
l(e(Z), {
|
|
1797
1796
|
circle: !1,
|
|
1798
1797
|
size: "default",
|
|
1799
1798
|
type: "primary",
|
|
1800
1799
|
icon: "icon-save",
|
|
1801
1800
|
plain: !1,
|
|
1802
|
-
loading: e(
|
|
1801
|
+
loading: e(w),
|
|
1803
1802
|
onClick: e(p)
|
|
1804
1803
|
}, null, 8, ["loading", "onClick"])
|
|
1805
1804
|
]),
|
|
@@ -1810,10 +1809,10 @@ const ze = /* @__PURE__ */ O({
|
|
|
1810
1809
|
l(je, {
|
|
1811
1810
|
ref_key: "form",
|
|
1812
1811
|
ref: f,
|
|
1813
|
-
model: e(
|
|
1812
|
+
model: e(_),
|
|
1814
1813
|
"label-width": "auto",
|
|
1815
1814
|
rules: v,
|
|
1816
|
-
disabled: e(
|
|
1815
|
+
disabled: e(A) || e(w)
|
|
1817
1816
|
}, {
|
|
1818
1817
|
default: o(() => [
|
|
1819
1818
|
l(se, {
|
|
@@ -1823,8 +1822,8 @@ const ze = /* @__PURE__ */ O({
|
|
|
1823
1822
|
}, {
|
|
1824
1823
|
default: o(() => [
|
|
1825
1824
|
l(e(qe), {
|
|
1826
|
-
modelValue: e(
|
|
1827
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
1825
|
+
modelValue: e(_).app,
|
|
1826
|
+
"onUpdate:modelValue": T[0] || (T[0] = (ee) => e(_).app = ee),
|
|
1828
1827
|
"cache-key": "I18NAPPS",
|
|
1829
1828
|
hidden: [0],
|
|
1830
1829
|
url: e(ue).urls.apps
|
|
@@ -1839,8 +1838,8 @@ const ze = /* @__PURE__ */ O({
|
|
|
1839
1838
|
}, {
|
|
1840
1839
|
default: o(() => [
|
|
1841
1840
|
l(N, {
|
|
1842
|
-
modelValue: e(
|
|
1843
|
-
"onUpdate:modelValue": T[1] || (T[1] = (
|
|
1841
|
+
modelValue: e(_).keys,
|
|
1842
|
+
"onUpdate:modelValue": T[1] || (T[1] = (ee) => e(_).keys = ee),
|
|
1844
1843
|
placeholder: e(a)("i18n.placeholder.key")
|
|
1845
1844
|
}, {
|
|
1846
1845
|
append: o(() => [
|
|
@@ -1860,7 +1859,7 @@ const ze = /* @__PURE__ */ O({
|
|
|
1860
1859
|
required: ""
|
|
1861
1860
|
}, {
|
|
1862
1861
|
default: o(() => [
|
|
1863
|
-
|
|
1862
|
+
Q(F(e(_).values.join(":")), 1)
|
|
1864
1863
|
]),
|
|
1865
1864
|
_: 1
|
|
1866
1865
|
}, 8, ["label"]),
|
|
@@ -1868,7 +1867,7 @@ const ze = /* @__PURE__ */ O({
|
|
|
1868
1867
|
label: e(a)("i18n.values")
|
|
1869
1868
|
}, {
|
|
1870
1869
|
default: o(() => [
|
|
1871
|
-
(M(!0), B(G, null, ae(u.value, (
|
|
1870
|
+
(M(!0), B(G, null, ae(u.value, (ee, ke) => (M(), B("div", {
|
|
1872
1871
|
key: ke,
|
|
1873
1872
|
class: "w-full"
|
|
1874
1873
|
}, [
|
|
@@ -1879,11 +1878,11 @@ const ze = /* @__PURE__ */ O({
|
|
|
1879
1878
|
style: { "min-width": "80px" }
|
|
1880
1879
|
}, {
|
|
1881
1880
|
default: o(() => [
|
|
1882
|
-
|
|
1881
|
+
Q(F(ke), 1)
|
|
1883
1882
|
]),
|
|
1884
1883
|
_: 2
|
|
1885
1884
|
}, 1032, ["type"]),
|
|
1886
|
-
ke == "zh-CN" ? (M(), B("span", kl,
|
|
1885
|
+
ke == "zh-CN" ? (M(), B("span", kl, F(ee.join("")), 1)) : (M(), B("span", vl, F(ee.join(" ")), 1))
|
|
1887
1886
|
]),
|
|
1888
1887
|
_: 2
|
|
1889
1888
|
}, 1024)
|
|
@@ -1897,8 +1896,8 @@ const ze = /* @__PURE__ */ O({
|
|
|
1897
1896
|
}, {
|
|
1898
1897
|
default: o(() => [
|
|
1899
1898
|
l(N, {
|
|
1900
|
-
modelValue: e(
|
|
1901
|
-
"onUpdate:modelValue": T[2] || (T[2] = (
|
|
1899
|
+
modelValue: e(_).remark,
|
|
1900
|
+
"onUpdate:modelValue": T[2] || (T[2] = (ee) => e(_).remark = ee),
|
|
1902
1901
|
placeholder: e(a)("placeholder.input")
|
|
1903
1902
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1904
1903
|
]),
|
|
@@ -1921,13 +1920,13 @@ const ze = /* @__PURE__ */ O({
|
|
|
1921
1920
|
}), xl = Y.routineApi("gateway", "id", {
|
|
1922
1921
|
gen: "gen_translation"
|
|
1923
1922
|
});
|
|
1924
|
-
function Rl(
|
|
1925
|
-
return typeof
|
|
1923
|
+
function Rl(R) {
|
|
1924
|
+
return typeof R == "function" || Object.prototype.toString.call(R) === "[object Object]" && !De(R);
|
|
1926
1925
|
}
|
|
1927
1926
|
const Ql = /* @__PURE__ */ O({
|
|
1928
1927
|
__name: "index",
|
|
1929
|
-
setup(
|
|
1930
|
-
const U = ze,
|
|
1928
|
+
setup(R) {
|
|
1929
|
+
const U = ze, x = wl, k = {
|
|
1931
1930
|
keyword: "",
|
|
1932
1931
|
app: 0,
|
|
1933
1932
|
status: 0
|
|
@@ -1941,16 +1940,16 @@ const Ql = /* @__PURE__ */ O({
|
|
|
1941
1940
|
}, Rl(h = a("i18n.app." + y.app)) ? h : {
|
|
1942
1941
|
default: () => [h]
|
|
1943
1942
|
});
|
|
1944
|
-
},
|
|
1943
|
+
}, b = ({
|
|
1945
1944
|
row: y
|
|
1946
1945
|
}) => l(r("el-space"), null, {
|
|
1947
|
-
default: () => [l(
|
|
1946
|
+
default: () => [l(te, {
|
|
1948
1947
|
size: "default",
|
|
1949
1948
|
disabled: u.value,
|
|
1950
|
-
onModify: () =>
|
|
1949
|
+
onModify: () => n({
|
|
1951
1950
|
uuid: y.uuid
|
|
1952
1951
|
})
|
|
1953
|
-
}, null), l(
|
|
1952
|
+
}, null), l(Z, {
|
|
1954
1953
|
size: "default",
|
|
1955
1954
|
text: !0,
|
|
1956
1955
|
type: "danger",
|
|
@@ -1998,41 +1997,41 @@ const Ql = /* @__PURE__ */ O({
|
|
|
1998
1997
|
label: a("base.action"),
|
|
1999
1998
|
width: 120,
|
|
2000
1999
|
align: "center",
|
|
2001
|
-
render:
|
|
2000
|
+
render: b
|
|
2002
2001
|
}], {
|
|
2003
2002
|
requesting: i,
|
|
2004
2003
|
executing: u
|
|
2005
|
-
} =
|
|
2006
|
-
tableRef:
|
|
2004
|
+
} = I(ue), {
|
|
2005
|
+
tableRef: t,
|
|
2007
2006
|
formModalRef: v,
|
|
2008
2007
|
dialogRef: s,
|
|
2009
2008
|
keyword: c,
|
|
2010
2009
|
search: f,
|
|
2011
|
-
reset:
|
|
2012
|
-
refresh:
|
|
2013
|
-
openFormModal:
|
|
2014
|
-
editFormModal:
|
|
2010
|
+
reset: _,
|
|
2011
|
+
refresh: A,
|
|
2012
|
+
openFormModal: w,
|
|
2013
|
+
editFormModal: n,
|
|
2015
2014
|
openDialog: d
|
|
2016
|
-
} =
|
|
2015
|
+
} = X(k);
|
|
2017
2016
|
function p(y) {
|
|
2018
2017
|
return ue.remove({
|
|
2019
2018
|
uuid: y
|
|
2020
2019
|
}).finally(() => {
|
|
2021
|
-
|
|
2020
|
+
A();
|
|
2022
2021
|
});
|
|
2023
2022
|
}
|
|
2024
2023
|
function S() {
|
|
2025
2024
|
return W.gen().finally(() => {
|
|
2026
|
-
|
|
2025
|
+
A();
|
|
2027
2026
|
});
|
|
2028
2027
|
}
|
|
2029
2028
|
function g() {
|
|
2030
2029
|
xl.gen().finally(() => {
|
|
2031
|
-
|
|
2030
|
+
A();
|
|
2032
2031
|
});
|
|
2033
2032
|
}
|
|
2034
2033
|
return (y, h) => {
|
|
2035
|
-
const C = r("el-input"),
|
|
2034
|
+
const C = r("el-input"), D = r("el-radio-button"), L = r("el-radio-group"), T = r("el-space"), $ = r("el-divider"), se = r("el-page-header"), Re = r("el-card");
|
|
2036
2035
|
return M(), q(Re, {
|
|
2037
2036
|
class: "basic-card flex-full",
|
|
2038
2037
|
"body-class": "flex-1"
|
|
@@ -2042,9 +2041,9 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2042
2041
|
}, {
|
|
2043
2042
|
title: o(() => [l(e(K), {
|
|
2044
2043
|
loading: e(i),
|
|
2045
|
-
onRefresh: e(
|
|
2044
|
+
onRefresh: e(_)
|
|
2046
2045
|
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
2047
|
-
onOpen: e(
|
|
2046
|
+
onOpen: e(w)
|
|
2048
2047
|
}, null, 8, ["onOpen"])]),
|
|
2049
2048
|
content: o(() => [l(T, {
|
|
2050
2049
|
class: "search-bar"
|
|
@@ -2071,7 +2070,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2071
2070
|
disabled: e(i) || e(u),
|
|
2072
2071
|
onChange: h[6] || (h[6] = (N) => e(f)())
|
|
2073
2072
|
}, {
|
|
2074
|
-
default: o(() => [(M(), B(G, null, ae([0, 1, 2], (N) => l(
|
|
2073
|
+
default: o(() => [(M(), B(G, null, ae([0, 1, 2], (N) => l(D, {
|
|
2075
2074
|
key: N,
|
|
2076
2075
|
label: e(a)(`status.${N}`),
|
|
2077
2076
|
value: N
|
|
@@ -2083,14 +2082,14 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2083
2082
|
}, null, 8, ["disabled"])]),
|
|
2084
2083
|
_: 1
|
|
2085
2084
|
})]),
|
|
2086
|
-
extra: o(() => [l(e(
|
|
2085
|
+
extra: o(() => [l(e(Z), {
|
|
2087
2086
|
size: "default",
|
|
2088
2087
|
type: "warning",
|
|
2089
2088
|
icon: "icon-cloud-upload",
|
|
2090
2089
|
plain: !1,
|
|
2091
2090
|
loading: e(u),
|
|
2092
2091
|
onClick: S
|
|
2093
|
-
}, null, 8, ["loading"]), l(e(
|
|
2092
|
+
}, null, 8, ["loading"]), l(e(Z), {
|
|
2094
2093
|
size: "default",
|
|
2095
2094
|
type: "danger",
|
|
2096
2095
|
icon: "icon-translate",
|
|
@@ -2107,7 +2106,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2107
2106
|
})]),
|
|
2108
2107
|
default: o(() => [l(e(be), {
|
|
2109
2108
|
ref_key: "tableRef",
|
|
2110
|
-
ref:
|
|
2109
|
+
ref: t,
|
|
2111
2110
|
columns: m,
|
|
2112
2111
|
url: e(ue).urls[e(ye)],
|
|
2113
2112
|
"search-param": e(c),
|
|
@@ -2115,10 +2114,10 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2115
2114
|
}, null, 8, ["url", "search-param"]), l(e(U), {
|
|
2116
2115
|
ref_key: "I18nTableDrawerRef",
|
|
2117
2116
|
ref: s
|
|
2118
|
-
}, null, 512), l(e(
|
|
2117
|
+
}, null, 512), l(e(x), {
|
|
2119
2118
|
ref_key: "formModalRef",
|
|
2120
2119
|
ref: v,
|
|
2121
|
-
onRefresh: e(
|
|
2120
|
+
onRefresh: e(A)
|
|
2122
2121
|
}, null, 8, ["onRefresh"])]),
|
|
2123
2122
|
_: 1
|
|
2124
2123
|
});
|
|
@@ -2127,8 +2126,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2127
2126
|
}), Ue = Y.routineApi("admin", "key"), Ul = /* @__PURE__ */ O({
|
|
2128
2127
|
__name: "AdminFormModal",
|
|
2129
2128
|
emits: ["refresh"],
|
|
2130
|
-
setup(
|
|
2131
|
-
const k =
|
|
2129
|
+
setup(R, { expose: U, emit: x }) {
|
|
2130
|
+
const k = x, V = {
|
|
2132
2131
|
key: "",
|
|
2133
2132
|
username: "",
|
|
2134
2133
|
password: "",
|
|
@@ -2137,7 +2136,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2137
2136
|
language: "zh-CN",
|
|
2138
2137
|
remark: "",
|
|
2139
2138
|
roles: []
|
|
2140
|
-
}, { modal:
|
|
2139
|
+
}, { modal: b, title: m, form: i, formData: u, requesting: t, executing: v, open: s, modify: c, submit: f, closed: _ } = le(k, V, Ue), A = {
|
|
2141
2140
|
username: [
|
|
2142
2141
|
{
|
|
2143
2142
|
required: !0,
|
|
@@ -2182,24 +2181,24 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2182
2181
|
trigger: "change"
|
|
2183
2182
|
}
|
|
2184
2183
|
]
|
|
2185
|
-
},
|
|
2184
|
+
}, w = H([]), n = async () => {
|
|
2186
2185
|
const d = await we.list();
|
|
2187
|
-
|
|
2186
|
+
w.value = Array.isArray(d?.data) ? d.data : [];
|
|
2188
2187
|
};
|
|
2189
2188
|
return Qe(async () => {
|
|
2190
|
-
await
|
|
2189
|
+
await n();
|
|
2191
2190
|
}), U({
|
|
2192
2191
|
open: s,
|
|
2193
2192
|
modify: c
|
|
2194
2193
|
}), (d, p) => {
|
|
2195
|
-
const S = r("el-input"), g = r("el-form-item"), y = r("el-radio-button"), h = r("el-radio-group"), C = r("el-checkbox"),
|
|
2194
|
+
const S = r("el-input"), g = r("el-form-item"), y = r("el-radio-button"), h = r("el-radio-group"), C = r("el-checkbox"), D = r("el-checkbox-group"), L = r("el-form");
|
|
2196
2195
|
return M(), q(e(oe), {
|
|
2197
|
-
modelValue: e(
|
|
2198
|
-
"onUpdate:modelValue": p[7] || (p[7] = (T) =>
|
|
2196
|
+
modelValue: e(b),
|
|
2197
|
+
"onUpdate:modelValue": p[7] || (p[7] = (T) => z(b) ? b.value = T : null),
|
|
2199
2198
|
title: e(m)(),
|
|
2200
2199
|
width: "600px",
|
|
2201
2200
|
executing: e(v),
|
|
2202
|
-
onClosed: e(
|
|
2201
|
+
onClosed: e(_),
|
|
2203
2202
|
onSubmit: e(f)
|
|
2204
2203
|
}, {
|
|
2205
2204
|
default: o(() => [
|
|
@@ -2208,8 +2207,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2208
2207
|
ref: i,
|
|
2209
2208
|
model: e(u),
|
|
2210
2209
|
"label-width": "auto",
|
|
2211
|
-
rules:
|
|
2212
|
-
disabled: e(
|
|
2210
|
+
rules: A,
|
|
2211
|
+
disabled: e(t) || e(v)
|
|
2213
2212
|
}, {
|
|
2214
2213
|
default: o(() => [
|
|
2215
2214
|
l(g, {
|
|
@@ -2281,13 +2280,13 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2281
2280
|
default: o(() => [
|
|
2282
2281
|
l(y, { value: "zh-CN" }, {
|
|
2283
2282
|
default: o(() => [...p[8] || (p[8] = [
|
|
2284
|
-
|
|
2283
|
+
Q("zh-CN", -1)
|
|
2285
2284
|
])]),
|
|
2286
2285
|
_: 1
|
|
2287
2286
|
}),
|
|
2288
2287
|
l(y, { value: "en-US" }, {
|
|
2289
2288
|
default: o(() => [...p[9] || (p[9] = [
|
|
2290
|
-
|
|
2289
|
+
Q("en-US", -1)
|
|
2291
2290
|
])]),
|
|
2292
2291
|
_: 1
|
|
2293
2292
|
})
|
|
@@ -2302,17 +2301,17 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2302
2301
|
prop: "roles"
|
|
2303
2302
|
}, {
|
|
2304
2303
|
default: o(() => [
|
|
2305
|
-
l(
|
|
2304
|
+
l(D, {
|
|
2306
2305
|
modelValue: e(u).roles,
|
|
2307
2306
|
"onUpdate:modelValue": p[5] || (p[5] = (T) => e(u).roles = T)
|
|
2308
2307
|
}, {
|
|
2309
2308
|
default: o(() => [
|
|
2310
|
-
(M(!0), B(G, null, ae(
|
|
2309
|
+
(M(!0), B(G, null, ae(w.value, (T) => (M(), q(C, {
|
|
2311
2310
|
key: T.key,
|
|
2312
2311
|
value: T.key
|
|
2313
2312
|
}, {
|
|
2314
2313
|
default: o(() => [
|
|
2315
|
-
|
|
2314
|
+
Q(F(T.translate), 1)
|
|
2316
2315
|
]),
|
|
2317
2316
|
_: 2
|
|
2318
2317
|
}, 1032, ["value"]))), 128))
|
|
@@ -2345,10 +2344,10 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2345
2344
|
}
|
|
2346
2345
|
}), Jl = /* @__PURE__ */ O({
|
|
2347
2346
|
__name: "index",
|
|
2348
|
-
setup(
|
|
2347
|
+
setup(R) {
|
|
2349
2348
|
const U = {
|
|
2350
2349
|
keyword: ""
|
|
2351
|
-
},
|
|
2350
|
+
}, x = [{
|
|
2352
2351
|
label: a("base.avatar"),
|
|
2353
2352
|
prop: "avatar",
|
|
2354
2353
|
width: 60,
|
|
@@ -2396,30 +2395,30 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2396
2395
|
align: "center",
|
|
2397
2396
|
render: ({
|
|
2398
2397
|
row: c
|
|
2399
|
-
}) => l(
|
|
2398
|
+
}) => l(te, {
|
|
2400
2399
|
onModify: () => s({
|
|
2401
2400
|
key: c.key
|
|
2402
2401
|
})
|
|
2403
2402
|
}, null)
|
|
2404
2403
|
}], {
|
|
2405
2404
|
requesting: k
|
|
2406
|
-
} =
|
|
2405
|
+
} = I(Ue), {
|
|
2407
2406
|
tableRef: V,
|
|
2408
|
-
formModalRef:
|
|
2407
|
+
formModalRef: b,
|
|
2409
2408
|
keyword: m,
|
|
2410
2409
|
search: i,
|
|
2411
2410
|
reset: u,
|
|
2412
|
-
refresh:
|
|
2411
|
+
refresh: t,
|
|
2413
2412
|
openFormModal: v,
|
|
2414
2413
|
editFormModal: s
|
|
2415
|
-
} =
|
|
2414
|
+
} = X(U);
|
|
2416
2415
|
return (c, f) => {
|
|
2417
|
-
const
|
|
2418
|
-
return M(), q(
|
|
2416
|
+
const _ = r("el-input"), A = r("el-space"), w = r("el-page-header"), n = r("el-card");
|
|
2417
|
+
return M(), q(n, {
|
|
2419
2418
|
class: "basic-card flex-full",
|
|
2420
2419
|
"body-class": "flex-1"
|
|
2421
2420
|
}, {
|
|
2422
|
-
header: o(() => [l(
|
|
2421
|
+
header: o(() => [l(w, {
|
|
2423
2422
|
class: "basic-header"
|
|
2424
2423
|
}, {
|
|
2425
2424
|
title: o(() => [l(e(K), {
|
|
@@ -2428,10 +2427,10 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2428
2427
|
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
2429
2428
|
onOpen: e(v)
|
|
2430
2429
|
}, null, 8, ["onOpen"])]),
|
|
2431
|
-
content: o(() => [l(
|
|
2430
|
+
content: o(() => [l(A, {
|
|
2432
2431
|
class: "search-bar"
|
|
2433
2432
|
}, {
|
|
2434
|
-
default: o(() => [l(
|
|
2433
|
+
default: o(() => [l(_, {
|
|
2435
2434
|
class: "basic-search-input",
|
|
2436
2435
|
modelValue: e(m).keyword,
|
|
2437
2436
|
"onUpdate:modelValue": f[0] || (f[0] = (d) => e(m).keyword = d),
|
|
@@ -2451,14 +2450,14 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2451
2450
|
ref_key: "tableRef",
|
|
2452
2451
|
ref: V,
|
|
2453
2452
|
size: "small",
|
|
2454
|
-
columns:
|
|
2453
|
+
columns: x,
|
|
2455
2454
|
url: e(Ue).urls[e(ye)],
|
|
2456
2455
|
"search-param": e(m),
|
|
2457
2456
|
"auto-search": ""
|
|
2458
2457
|
}, null, 8, ["url", "search-param"]), l(Ul, {
|
|
2459
2458
|
ref_key: "formModalRef",
|
|
2460
|
-
ref:
|
|
2461
|
-
onRefresh: e(
|
|
2459
|
+
ref: b,
|
|
2460
|
+
onRefresh: e(t)
|
|
2462
2461
|
}, null, 8, ["onRefresh"])]),
|
|
2463
2462
|
_: 1
|
|
2464
2463
|
});
|
|
@@ -2479,18 +2478,18 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2479
2478
|
}
|
|
2480
2479
|
},
|
|
2481
2480
|
emits: ["update:modelValue", "change"],
|
|
2482
|
-
setup(
|
|
2481
|
+
setup(R, {
|
|
2483
2482
|
expose: U,
|
|
2484
|
-
emit:
|
|
2483
|
+
emit: x
|
|
2485
2484
|
}) {
|
|
2486
|
-
const k =
|
|
2487
|
-
requesting:
|
|
2488
|
-
} =
|
|
2485
|
+
const k = x, V = R, {
|
|
2486
|
+
requesting: b
|
|
2487
|
+
} = I(ge), {
|
|
2489
2488
|
id: m,
|
|
2490
2489
|
options: i,
|
|
2491
2490
|
refresh: u,
|
|
2492
|
-
change:
|
|
2493
|
-
} = re(
|
|
2491
|
+
change: t
|
|
2492
|
+
} = re(ne(V, "modelValue"), k, {
|
|
2494
2493
|
key: "DOMAIN_LIST",
|
|
2495
2494
|
api: ge,
|
|
2496
2495
|
isArray: !0
|
|
@@ -2501,14 +2500,14 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2501
2500
|
const c = r("el-select-v2");
|
|
2502
2501
|
return M(), q(c, {
|
|
2503
2502
|
modelValue: e(m),
|
|
2504
|
-
"onUpdate:modelValue": s[0] || (s[0] = (f) =>
|
|
2503
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => z(m) ? m.value = f : null),
|
|
2505
2504
|
options: e(i),
|
|
2506
|
-
disabled:
|
|
2505
|
+
disabled: R.disabled || e(b),
|
|
2507
2506
|
placeholder: e(a)("base.select config.domain"),
|
|
2508
|
-
onChange: e(
|
|
2507
|
+
onChange: e(t)
|
|
2509
2508
|
}, {
|
|
2510
2509
|
prefix: o(() => [l(e(fe), {
|
|
2511
|
-
loading: e(
|
|
2510
|
+
loading: e(b),
|
|
2512
2511
|
onRefresh: e(u)
|
|
2513
2512
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
2514
2513
|
_: 1
|
|
@@ -2518,8 +2517,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2518
2517
|
}), Dl = /* @__PURE__ */ O({
|
|
2519
2518
|
__name: "SiteFormModal",
|
|
2520
2519
|
emits: ["refresh"],
|
|
2521
|
-
setup(
|
|
2522
|
-
const k =
|
|
2520
|
+
setup(R, { expose: U, emit: x }) {
|
|
2521
|
+
const k = x, V = {
|
|
2523
2522
|
id: 0,
|
|
2524
2523
|
domain_id: 0,
|
|
2525
2524
|
prefix: "",
|
|
@@ -2529,33 +2528,33 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2529
2528
|
git: "",
|
|
2530
2529
|
status: 1,
|
|
2531
2530
|
remark: ""
|
|
2532
|
-
},
|
|
2531
|
+
}, b = {
|
|
2533
2532
|
domain_id: [{ required: !0, message: a("placeholder.input config.domain"), trigger: "blur" }],
|
|
2534
2533
|
prefix: [{ required: !0, message: a("placeholder.input base.prefix"), trigger: "blur" }],
|
|
2535
2534
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
2536
2535
|
en_name: [{ required: !0, message: a("placeholder.input base.en_name"), trigger: "blur" }]
|
|
2537
|
-
}, { modal: m, title: i, form: u, formData:
|
|
2536
|
+
}, { modal: m, title: i, form: u, formData: t, requesting: v, executing: s, open: c, modify: f, submit: _, closed: A } = le(k, V, pe);
|
|
2538
2537
|
return U({
|
|
2539
2538
|
open: c,
|
|
2540
2539
|
modify: f
|
|
2541
|
-
}), (
|
|
2540
|
+
}), (w, n) => {
|
|
2542
2541
|
const d = r("el-form-item"), p = r("el-input"), S = r("el-form");
|
|
2543
2542
|
return M(), q(e(oe), {
|
|
2544
2543
|
modelValue: e(m),
|
|
2545
|
-
"onUpdate:modelValue":
|
|
2544
|
+
"onUpdate:modelValue": n[7] || (n[7] = (g) => z(m) ? m.value = g : null),
|
|
2546
2545
|
title: e(i)("config.site"),
|
|
2547
2546
|
width: "600px",
|
|
2548
2547
|
executing: e(s),
|
|
2549
|
-
onClosed: e(
|
|
2550
|
-
onSubmit: e(
|
|
2548
|
+
onClosed: e(A),
|
|
2549
|
+
onSubmit: e(_)
|
|
2551
2550
|
}, {
|
|
2552
2551
|
default: o(() => [
|
|
2553
2552
|
l(S, {
|
|
2554
2553
|
ref_key: "form",
|
|
2555
2554
|
ref: u,
|
|
2556
|
-
model: e(
|
|
2555
|
+
model: e(t),
|
|
2557
2556
|
"label-width": "auto",
|
|
2558
|
-
rules:
|
|
2557
|
+
rules: b,
|
|
2559
2558
|
disabled: e(v) || e(s)
|
|
2560
2559
|
}, {
|
|
2561
2560
|
default: o(() => [
|
|
@@ -2565,8 +2564,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2565
2564
|
}, {
|
|
2566
2565
|
default: o(() => [
|
|
2567
2566
|
l(Ie, {
|
|
2568
|
-
modelValue: e(
|
|
2569
|
-
"onUpdate:modelValue":
|
|
2567
|
+
modelValue: e(t).domain_id,
|
|
2568
|
+
"onUpdate:modelValue": n[0] || (n[0] = (g) => e(t).domain_id = g),
|
|
2570
2569
|
disabled: e(s)
|
|
2571
2570
|
}, null, 8, ["modelValue", "disabled"])
|
|
2572
2571
|
]),
|
|
@@ -2578,8 +2577,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2578
2577
|
}, {
|
|
2579
2578
|
default: o(() => [
|
|
2580
2579
|
l(p, {
|
|
2581
|
-
modelValue: e(
|
|
2582
|
-
"onUpdate:modelValue":
|
|
2580
|
+
modelValue: e(t).prefix,
|
|
2581
|
+
"onUpdate:modelValue": n[1] || (n[1] = (g) => e(t).prefix = g),
|
|
2583
2582
|
disabled: e(s),
|
|
2584
2583
|
placeholder: e(a)("placeholder.input")
|
|
2585
2584
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2592,8 +2591,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2592
2591
|
}, {
|
|
2593
2592
|
default: o(() => [
|
|
2594
2593
|
l(p, {
|
|
2595
|
-
modelValue: e(
|
|
2596
|
-
"onUpdate:modelValue":
|
|
2594
|
+
modelValue: e(t).name,
|
|
2595
|
+
"onUpdate:modelValue": n[2] || (n[2] = (g) => e(t).name = g),
|
|
2597
2596
|
disabled: e(s),
|
|
2598
2597
|
placeholder: e(a)("placeholder.input")
|
|
2599
2598
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2606,8 +2605,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2606
2605
|
}, {
|
|
2607
2606
|
default: o(() => [
|
|
2608
2607
|
l(p, {
|
|
2609
|
-
modelValue: e(
|
|
2610
|
-
"onUpdate:modelValue":
|
|
2608
|
+
modelValue: e(t).en_name,
|
|
2609
|
+
"onUpdate:modelValue": n[3] || (n[3] = (g) => e(t).en_name = g),
|
|
2611
2610
|
disabled: e(s),
|
|
2612
2611
|
placeholder: e(a)("placeholder.input")
|
|
2613
2612
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2620,8 +2619,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2620
2619
|
}, {
|
|
2621
2620
|
default: o(() => [
|
|
2622
2621
|
l(p, {
|
|
2623
|
-
modelValue: e(
|
|
2624
|
-
"onUpdate:modelValue":
|
|
2622
|
+
modelValue: e(t).dns,
|
|
2623
|
+
"onUpdate:modelValue": n[4] || (n[4] = (g) => e(t).dns = g),
|
|
2625
2624
|
disabled: e(s),
|
|
2626
2625
|
placeholder: e(a)("placeholder.input")
|
|
2627
2626
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2634,8 +2633,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2634
2633
|
}, {
|
|
2635
2634
|
default: o(() => [
|
|
2636
2635
|
l(p, {
|
|
2637
|
-
modelValue: e(
|
|
2638
|
-
"onUpdate:modelValue":
|
|
2636
|
+
modelValue: e(t).git,
|
|
2637
|
+
"onUpdate:modelValue": n[5] || (n[5] = (g) => e(t).git = g),
|
|
2639
2638
|
disabled: e(s),
|
|
2640
2639
|
placeholder: e(a)("placeholder.input")
|
|
2641
2640
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2648,8 +2647,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2648
2647
|
}, {
|
|
2649
2648
|
default: o(() => [
|
|
2650
2649
|
l(p, {
|
|
2651
|
-
modelValue: e(
|
|
2652
|
-
"onUpdate:modelValue":
|
|
2650
|
+
modelValue: e(t).remark,
|
|
2651
|
+
"onUpdate:modelValue": n[6] || (n[6] = (g) => e(t).remark = g),
|
|
2653
2652
|
disabled: e(s),
|
|
2654
2653
|
placeholder: e(a)("placeholder.input")
|
|
2655
2654
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2677,18 +2676,18 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2677
2676
|
}
|
|
2678
2677
|
},
|
|
2679
2678
|
emits: ["update:modelValue", "change"],
|
|
2680
|
-
setup(
|
|
2679
|
+
setup(R, {
|
|
2681
2680
|
expose: U,
|
|
2682
|
-
emit:
|
|
2681
|
+
emit: x
|
|
2683
2682
|
}) {
|
|
2684
|
-
const k =
|
|
2685
|
-
requesting:
|
|
2686
|
-
} =
|
|
2683
|
+
const k = x, V = R, {
|
|
2684
|
+
requesting: b
|
|
2685
|
+
} = I(he), {
|
|
2687
2686
|
id: m,
|
|
2688
2687
|
options: i,
|
|
2689
2688
|
refresh: u,
|
|
2690
|
-
change:
|
|
2691
|
-
} = re(
|
|
2689
|
+
change: t
|
|
2690
|
+
} = re(ne(V, "modelValue"), k, {
|
|
2692
2691
|
key: "DOMAIN_PROVIDER_LIST",
|
|
2693
2692
|
api: he,
|
|
2694
2693
|
isArray: !0
|
|
@@ -2699,14 +2698,14 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2699
2698
|
const c = r("el-select-v2");
|
|
2700
2699
|
return M(), q(c, {
|
|
2701
2700
|
modelValue: e(m),
|
|
2702
|
-
"onUpdate:modelValue": s[0] || (s[0] = (f) =>
|
|
2701
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => z(m) ? m.value = f : null),
|
|
2703
2702
|
options: e(i),
|
|
2704
|
-
disabled:
|
|
2703
|
+
disabled: R.disabled || e(b),
|
|
2705
2704
|
placeholder: e(a)("base.select config.domain config.provider"),
|
|
2706
|
-
onChange: e(
|
|
2705
|
+
onChange: e(t)
|
|
2707
2706
|
}, {
|
|
2708
2707
|
prefix: o(() => [l(e(fe), {
|
|
2709
|
-
loading: e(
|
|
2708
|
+
loading: e(b),
|
|
2710
2709
|
onRefresh: e(u)
|
|
2711
2710
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
2712
2711
|
_: 1
|
|
@@ -2716,39 +2715,39 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2716
2715
|
}), Ml = /* @__PURE__ */ O({
|
|
2717
2716
|
__name: "DomainFormModal",
|
|
2718
2717
|
emits: ["refresh"],
|
|
2719
|
-
setup(
|
|
2720
|
-
const k =
|
|
2718
|
+
setup(R, { expose: U, emit: x }) {
|
|
2719
|
+
const k = x, V = {
|
|
2721
2720
|
id: 0,
|
|
2722
2721
|
provider_id: 0,
|
|
2723
2722
|
name: "",
|
|
2724
2723
|
expired_at: "",
|
|
2725
2724
|
status: 1,
|
|
2726
2725
|
remark: ""
|
|
2727
|
-
},
|
|
2726
|
+
}, b = {
|
|
2728
2727
|
provider_id: [{ required: !0, message: a("placeholder.input config.domain config.provider"), trigger: "blur" }],
|
|
2729
2728
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }]
|
|
2730
|
-
}, { modal: m, title: i, form: u, formData:
|
|
2729
|
+
}, { modal: m, title: i, form: u, formData: t, requesting: v, executing: s, open: c, modify: f, submit: _, closed: A } = le(k, V, ge);
|
|
2731
2730
|
return U({
|
|
2732
2731
|
open: c,
|
|
2733
2732
|
modify: f
|
|
2734
|
-
}), (
|
|
2733
|
+
}), (w, n) => {
|
|
2735
2734
|
const d = r("el-form-item"), p = r("el-input"), S = r("el-date-picker"), g = r("el-form");
|
|
2736
2735
|
return M(), q(e(oe), {
|
|
2737
2736
|
modelValue: e(m),
|
|
2738
|
-
"onUpdate:modelValue":
|
|
2737
|
+
"onUpdate:modelValue": n[4] || (n[4] = (y) => z(m) ? m.value = y : null),
|
|
2739
2738
|
title: e(i)("config.domain"),
|
|
2740
2739
|
width: "600px",
|
|
2741
2740
|
executing: e(s),
|
|
2742
|
-
onClosed: e(
|
|
2743
|
-
onSubmit: e(
|
|
2741
|
+
onClosed: e(A),
|
|
2742
|
+
onSubmit: e(_)
|
|
2744
2743
|
}, {
|
|
2745
2744
|
default: o(() => [
|
|
2746
2745
|
l(g, {
|
|
2747
2746
|
ref_key: "form",
|
|
2748
2747
|
ref: u,
|
|
2749
|
-
model: e(
|
|
2748
|
+
model: e(t),
|
|
2750
2749
|
"label-width": "auto",
|
|
2751
|
-
rules:
|
|
2750
|
+
rules: b,
|
|
2752
2751
|
disabled: e(v) || e(s)
|
|
2753
2752
|
}, {
|
|
2754
2753
|
default: o(() => [
|
|
@@ -2758,8 +2757,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2758
2757
|
}, {
|
|
2759
2758
|
default: o(() => [
|
|
2760
2759
|
l(Sl, {
|
|
2761
|
-
modelValue: e(
|
|
2762
|
-
"onUpdate:modelValue":
|
|
2760
|
+
modelValue: e(t).provider_id,
|
|
2761
|
+
"onUpdate:modelValue": n[0] || (n[0] = (y) => e(t).provider_id = y),
|
|
2763
2762
|
disabled: e(s)
|
|
2764
2763
|
}, null, 8, ["modelValue", "disabled"])
|
|
2765
2764
|
]),
|
|
@@ -2771,8 +2770,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2771
2770
|
}, {
|
|
2772
2771
|
default: o(() => [
|
|
2773
2772
|
l(p, {
|
|
2774
|
-
modelValue: e(
|
|
2775
|
-
"onUpdate:modelValue":
|
|
2773
|
+
modelValue: e(t).name,
|
|
2774
|
+
"onUpdate:modelValue": n[1] || (n[1] = (y) => e(t).name = y),
|
|
2776
2775
|
disabled: e(s),
|
|
2777
2776
|
placeholder: e(a)("placeholder.input")
|
|
2778
2777
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2788,8 +2787,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2788
2787
|
l(S, {
|
|
2789
2788
|
type: "date",
|
|
2790
2789
|
style: { width: "100%" },
|
|
2791
|
-
modelValue: e(
|
|
2792
|
-
"onUpdate:modelValue":
|
|
2790
|
+
modelValue: e(t).expired_at,
|
|
2791
|
+
"onUpdate:modelValue": n[2] || (n[2] = (y) => e(t).expired_at = y),
|
|
2793
2792
|
disabled: e(s),
|
|
2794
2793
|
"value-format": e(E).DATE_VALUE_FORMAT,
|
|
2795
2794
|
format: e(E).DATE_FORMAT,
|
|
@@ -2804,8 +2803,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2804
2803
|
}, {
|
|
2805
2804
|
default: o(() => [
|
|
2806
2805
|
l(p, {
|
|
2807
|
-
modelValue: e(
|
|
2808
|
-
"onUpdate:modelValue":
|
|
2806
|
+
modelValue: e(t).remark,
|
|
2807
|
+
"onUpdate:modelValue": n[3] || (n[3] = (y) => e(t).remark = y),
|
|
2809
2808
|
disabled: e(s),
|
|
2810
2809
|
placeholder: e(a)("placeholder.input")
|
|
2811
2810
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2823,8 +2822,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2823
2822
|
}), Cl = /* @__PURE__ */ O({
|
|
2824
2823
|
__name: "DomainProviderFormModal",
|
|
2825
2824
|
emits: ["refresh"],
|
|
2826
|
-
setup(
|
|
2827
|
-
const k =
|
|
2825
|
+
setup(R, { expose: U, emit: x }) {
|
|
2826
|
+
const k = x, V = {
|
|
2828
2827
|
id: 0,
|
|
2829
2828
|
name: "",
|
|
2830
2829
|
en_name: "",
|
|
@@ -2833,34 +2832,34 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2833
2832
|
end_point: "",
|
|
2834
2833
|
status: 1,
|
|
2835
2834
|
remark: ""
|
|
2836
|
-
},
|
|
2835
|
+
}, b = {
|
|
2837
2836
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
2838
2837
|
en_name: { required: !0, message: a("placeholder.input base.en_name"), trigger: "blur" },
|
|
2839
2838
|
key: { required: !0, message: a("placeholder.input base.key"), trigger: "blur" },
|
|
2840
2839
|
secret: { required: !0, message: a("placeholder.input config.secret"), trigger: "blur" },
|
|
2841
2840
|
end_point: { required: !0, message: a("placeholder.input config.endpoint"), trigger: "blur" }
|
|
2842
|
-
}, { modal: m, title: i, form: u, formData:
|
|
2841
|
+
}, { modal: m, title: i, form: u, formData: t, requesting: v, executing: s, open: c, modify: f, submit: _, closed: A } = le(k, V, he);
|
|
2843
2842
|
return U({
|
|
2844
2843
|
open: c,
|
|
2845
2844
|
modify: f
|
|
2846
|
-
}), (
|
|
2845
|
+
}), (w, n) => {
|
|
2847
2846
|
const d = r("el-input"), p = r("el-form-item"), S = r("el-form");
|
|
2848
2847
|
return M(), q(e(oe), {
|
|
2849
2848
|
modelValue: e(m),
|
|
2850
|
-
"onUpdate:modelValue":
|
|
2849
|
+
"onUpdate:modelValue": n[6] || (n[6] = (g) => z(m) ? m.value = g : null),
|
|
2851
2850
|
title: e(i)("config.domain"),
|
|
2852
2851
|
width: "600px",
|
|
2853
2852
|
executing: e(s),
|
|
2854
|
-
onClosed: e(
|
|
2855
|
-
onSubmit: e(
|
|
2853
|
+
onClosed: e(A),
|
|
2854
|
+
onSubmit: e(_)
|
|
2856
2855
|
}, {
|
|
2857
2856
|
default: o(() => [
|
|
2858
2857
|
l(S, {
|
|
2859
2858
|
ref_key: "form",
|
|
2860
2859
|
ref: u,
|
|
2861
|
-
model: e(
|
|
2860
|
+
model: e(t),
|
|
2862
2861
|
"label-width": "auto",
|
|
2863
|
-
rules:
|
|
2862
|
+
rules: b,
|
|
2864
2863
|
disabled: e(v) || e(s)
|
|
2865
2864
|
}, {
|
|
2866
2865
|
default: o(() => [
|
|
@@ -2870,8 +2869,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2870
2869
|
}, {
|
|
2871
2870
|
default: o(() => [
|
|
2872
2871
|
l(d, {
|
|
2873
|
-
modelValue: e(
|
|
2874
|
-
"onUpdate:modelValue":
|
|
2872
|
+
modelValue: e(t).name,
|
|
2873
|
+
"onUpdate:modelValue": n[0] || (n[0] = (g) => e(t).name = g),
|
|
2875
2874
|
disabled: e(s),
|
|
2876
2875
|
placeholder: e(a)("placeholder.input")
|
|
2877
2876
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2884,8 +2883,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2884
2883
|
}, {
|
|
2885
2884
|
default: o(() => [
|
|
2886
2885
|
l(d, {
|
|
2887
|
-
modelValue: e(
|
|
2888
|
-
"onUpdate:modelValue":
|
|
2886
|
+
modelValue: e(t).en_name,
|
|
2887
|
+
"onUpdate:modelValue": n[1] || (n[1] = (g) => e(t).en_name = g),
|
|
2889
2888
|
disabled: e(s),
|
|
2890
2889
|
placeholder: e(a)("placeholder.input")
|
|
2891
2890
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2898,8 +2897,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2898
2897
|
}, {
|
|
2899
2898
|
default: o(() => [
|
|
2900
2899
|
l(d, {
|
|
2901
|
-
modelValue: e(
|
|
2902
|
-
"onUpdate:modelValue":
|
|
2900
|
+
modelValue: e(t).key,
|
|
2901
|
+
"onUpdate:modelValue": n[2] || (n[2] = (g) => e(t).key = g),
|
|
2903
2902
|
disabled: e(s),
|
|
2904
2903
|
placeholder: e(a)("placeholder.input")
|
|
2905
2904
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2912,8 +2911,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2912
2911
|
}, {
|
|
2913
2912
|
default: o(() => [
|
|
2914
2913
|
l(d, {
|
|
2915
|
-
modelValue: e(
|
|
2916
|
-
"onUpdate:modelValue":
|
|
2914
|
+
modelValue: e(t).secret,
|
|
2915
|
+
"onUpdate:modelValue": n[3] || (n[3] = (g) => e(t).secret = g),
|
|
2917
2916
|
disabled: e(s),
|
|
2918
2917
|
placeholder: e(a)("placeholder.input")
|
|
2919
2918
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2926,8 +2925,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2926
2925
|
}, {
|
|
2927
2926
|
default: o(() => [
|
|
2928
2927
|
l(d, {
|
|
2929
|
-
modelValue: e(
|
|
2930
|
-
"onUpdate:modelValue":
|
|
2928
|
+
modelValue: e(t).end_point,
|
|
2929
|
+
"onUpdate:modelValue": n[4] || (n[4] = (g) => e(t).end_point = g),
|
|
2931
2930
|
disabled: e(s),
|
|
2932
2931
|
placeholder: e(a)("placeholder.input")
|
|
2933
2932
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2940,8 +2939,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2940
2939
|
}, {
|
|
2941
2940
|
default: o(() => [
|
|
2942
2941
|
l(d, {
|
|
2943
|
-
modelValue: e(
|
|
2944
|
-
"onUpdate:modelValue":
|
|
2942
|
+
modelValue: e(t).remark,
|
|
2943
|
+
"onUpdate:modelValue": n[5] || (n[5] = (g) => e(t).remark = g),
|
|
2945
2944
|
disabled: e(s),
|
|
2946
2945
|
placeholder: e(a)("placeholder.input")
|
|
2947
2946
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2958,18 +2957,18 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2958
2957
|
}
|
|
2959
2958
|
}), Ll = /* @__PURE__ */ O({
|
|
2960
2959
|
__name: "DomainProviderTableDrawer",
|
|
2961
|
-
setup(
|
|
2960
|
+
setup(R, {
|
|
2962
2961
|
expose: U
|
|
2963
2962
|
}) {
|
|
2964
2963
|
const {
|
|
2965
|
-
requesting:
|
|
2966
|
-
} =
|
|
2964
|
+
requesting: x
|
|
2965
|
+
} = I(he), k = H(!1), {
|
|
2967
2966
|
tableRef: V,
|
|
2968
|
-
formModalRef:
|
|
2967
|
+
formModalRef: b,
|
|
2969
2968
|
refresh: m,
|
|
2970
2969
|
openFormModal: i,
|
|
2971
2970
|
editFormModal: u
|
|
2972
|
-
} =
|
|
2971
|
+
} = X({}), t = [{
|
|
2973
2972
|
prop: "name",
|
|
2974
2973
|
label: a("base.name"),
|
|
2975
2974
|
width: 0,
|
|
@@ -2986,7 +2985,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2986
2985
|
render: ({
|
|
2987
2986
|
rowData: s
|
|
2988
2987
|
}) => l(r("el-space"), null, {
|
|
2989
|
-
default: () => [l(
|
|
2988
|
+
default: () => [l(te, {
|
|
2990
2989
|
icon: "icon-edit",
|
|
2991
2990
|
t: "",
|
|
2992
2991
|
onModify: () => u({
|
|
@@ -3003,7 +3002,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3003
3002
|
const f = r("el-page-header");
|
|
3004
3003
|
return M(), q(e(_e), {
|
|
3005
3004
|
modelValue: k.value,
|
|
3006
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
3005
|
+
"onUpdate:modelValue": c[0] || (c[0] = (_) => k.value = _),
|
|
3007
3006
|
width: "400px",
|
|
3008
3007
|
"show-close": !1,
|
|
3009
3008
|
class: "basic-drawer"
|
|
@@ -3011,11 +3010,11 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3011
3010
|
title: o(() => [l(f, {
|
|
3012
3011
|
icon: ""
|
|
3013
3012
|
}, {
|
|
3014
|
-
title: o(() => [j("span", null,
|
|
3013
|
+
title: o(() => [j("span", null, F(e(a)("config.domain config.provider")), 1)]),
|
|
3015
3014
|
content: o(() => [l(e(K), {
|
|
3016
3015
|
onRefresh: e(m),
|
|
3017
3016
|
size: "default",
|
|
3018
|
-
loading: e(
|
|
3017
|
+
loading: e(x)
|
|
3019
3018
|
}, null, 8, ["onRefresh", "loading"])]),
|
|
3020
3019
|
extra: o(() => [l(e(P), {
|
|
3021
3020
|
onOpen: e(i)
|
|
@@ -3028,11 +3027,11 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3028
3027
|
size: "small",
|
|
3029
3028
|
"row-key": "id",
|
|
3030
3029
|
url: e(he).urls.list,
|
|
3031
|
-
columns:
|
|
3032
|
-
loading: e(
|
|
3030
|
+
columns: t,
|
|
3031
|
+
loading: e(x)
|
|
3033
3032
|
}, null, 8, ["url", "loading"]), l(Cl, {
|
|
3034
3033
|
ref_key: "formModalRef",
|
|
3035
|
-
ref:
|
|
3034
|
+
ref: b,
|
|
3036
3035
|
onRefresh: e(m)
|
|
3037
3036
|
}, null, 8, ["onRefresh"])]),
|
|
3038
3037
|
_: 1
|
|
@@ -3054,18 +3053,18 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3054
3053
|
}
|
|
3055
3054
|
},
|
|
3056
3055
|
emits: ["update:modelValue", "change"],
|
|
3057
|
-
setup(
|
|
3056
|
+
setup(R, {
|
|
3058
3057
|
expose: U,
|
|
3059
|
-
emit:
|
|
3058
|
+
emit: x
|
|
3060
3059
|
}) {
|
|
3061
|
-
const k =
|
|
3062
|
-
requesting:
|
|
3063
|
-
} =
|
|
3060
|
+
const k = x, V = R, {
|
|
3061
|
+
requesting: b
|
|
3062
|
+
} = I(pe), {
|
|
3064
3063
|
key: m,
|
|
3065
3064
|
options: i,
|
|
3066
3065
|
refresh: u,
|
|
3067
|
-
change:
|
|
3068
|
-
} = re(
|
|
3066
|
+
change: t
|
|
3067
|
+
} = re(ne(V, "modelValue"), k, {
|
|
3069
3068
|
key: "SITE_LIST",
|
|
3070
3069
|
api: pe,
|
|
3071
3070
|
isArray: !0
|
|
@@ -3082,14 +3081,14 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3082
3081
|
const c = r("el-select-v2");
|
|
3083
3082
|
return M(), q(c, {
|
|
3084
3083
|
modelValue: e(m),
|
|
3085
|
-
"onUpdate:modelValue": s[0] || (s[0] = (f) =>
|
|
3084
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => z(m) ? m.value = f : null),
|
|
3086
3085
|
options: e(i),
|
|
3087
|
-
disabled:
|
|
3086
|
+
disabled: R.disabled || e(b),
|
|
3088
3087
|
placeholder: e(a)("base.select config.domain"),
|
|
3089
|
-
onChange: e(
|
|
3088
|
+
onChange: e(t)
|
|
3090
3089
|
}, {
|
|
3091
3090
|
prefix: o(() => [l(e(fe), {
|
|
3092
|
-
loading: e(
|
|
3091
|
+
loading: e(b),
|
|
3093
3092
|
onRefresh: e(u)
|
|
3094
3093
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
3095
3094
|
_: 1
|
|
@@ -3099,8 +3098,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3099
3098
|
}), Ne = /* @__PURE__ */ O({
|
|
3100
3099
|
__name: "SSLFormModal",
|
|
3101
3100
|
emits: ["refresh"],
|
|
3102
|
-
setup(
|
|
3103
|
-
const k =
|
|
3101
|
+
setup(R, { expose: U, emit: x }) {
|
|
3102
|
+
const k = x, V = {
|
|
3104
3103
|
id: 0,
|
|
3105
3104
|
domain_id: void 0,
|
|
3106
3105
|
client: "Lego",
|
|
@@ -3110,36 +3109,36 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3110
3109
|
email: "",
|
|
3111
3110
|
encryption: "RSA2048",
|
|
3112
3111
|
remark: ""
|
|
3113
|
-
},
|
|
3112
|
+
}, b = {
|
|
3114
3113
|
domain_id: [{ required: !0, message: a("placeholder.select config.domain "), trigger: "blur" }],
|
|
3115
3114
|
client: [{ required: !0, message: a("placeholder.select config.client "), trigger: "blur" }],
|
|
3116
3115
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
3117
3116
|
path: [{ required: !0, message: a("placeholder.input base.path"), trigger: "blur" }],
|
|
3118
3117
|
email: [{ required: !0, message: a("placeholder.input base.email"), trigger: "blur" }],
|
|
3119
3118
|
encryption: [{ required: !0, message: a("placeholder.input config.encryption"), trigger: "blur" }]
|
|
3120
|
-
}, { modal: m, title: i, form: u, formData:
|
|
3119
|
+
}, { modal: m, title: i, form: u, formData: t, requesting: v, executing: s, open: c, modify: f, submit: _, closed: A } = le(k, V, me);
|
|
3121
3120
|
return U({
|
|
3122
3121
|
open: c,
|
|
3123
3122
|
modify: f,
|
|
3124
|
-
formData:
|
|
3125
|
-
}), (
|
|
3123
|
+
formData: t
|
|
3124
|
+
}), (w, n) => {
|
|
3126
3125
|
const d = r("el-form-item"), p = r("el-radio-button"), S = r("el-radio-group"), g = r("el-input"), y = r("el-form");
|
|
3127
3126
|
return M(), q(e(oe), {
|
|
3128
3127
|
modelValue: e(m),
|
|
3129
|
-
"onUpdate:modelValue":
|
|
3128
|
+
"onUpdate:modelValue": n[8] || (n[8] = (h) => z(m) ? m.value = h : null),
|
|
3130
3129
|
title: e(i)("ssl.ssl"),
|
|
3131
3130
|
width: "600px",
|
|
3132
3131
|
executing: e(s),
|
|
3133
|
-
onClosed: e(
|
|
3134
|
-
onSubmit: e(
|
|
3132
|
+
onClosed: e(A),
|
|
3133
|
+
onSubmit: e(_)
|
|
3135
3134
|
}, {
|
|
3136
3135
|
default: o(() => [
|
|
3137
3136
|
l(y, {
|
|
3138
3137
|
ref_key: "form",
|
|
3139
3138
|
ref: u,
|
|
3140
|
-
model: e(
|
|
3139
|
+
model: e(t),
|
|
3141
3140
|
"label-width": "auto",
|
|
3142
|
-
rules:
|
|
3141
|
+
rules: b,
|
|
3143
3142
|
disabled: e(v) || e(s)
|
|
3144
3143
|
}, {
|
|
3145
3144
|
default: o(() => [
|
|
@@ -3149,8 +3148,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3149
3148
|
}, {
|
|
3150
3149
|
default: o(() => [
|
|
3151
3150
|
l(Ie, {
|
|
3152
|
-
modelValue: e(
|
|
3153
|
-
"onUpdate:modelValue":
|
|
3151
|
+
modelValue: e(t).domain_id,
|
|
3152
|
+
"onUpdate:modelValue": n[0] || (n[0] = (h) => e(t).domain_id = h),
|
|
3154
3153
|
disabled: e(s)
|
|
3155
3154
|
}, null, 8, ["modelValue", "disabled"])
|
|
3156
3155
|
]),
|
|
@@ -3162,8 +3161,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3162
3161
|
}, {
|
|
3163
3162
|
default: o(() => [
|
|
3164
3163
|
l(S, {
|
|
3165
|
-
modelValue: e(
|
|
3166
|
-
"onUpdate:modelValue":
|
|
3164
|
+
modelValue: e(t).client,
|
|
3165
|
+
"onUpdate:modelValue": n[1] || (n[1] = (h) => e(t).client = h)
|
|
3167
3166
|
}, {
|
|
3168
3167
|
default: o(() => [
|
|
3169
3168
|
l(p, {
|
|
@@ -3182,8 +3181,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3182
3181
|
}, {
|
|
3183
3182
|
default: o(() => [
|
|
3184
3183
|
l(ql, {
|
|
3185
|
-
modelValue: e(
|
|
3186
|
-
"onUpdate:modelValue":
|
|
3184
|
+
modelValue: e(t).site_id,
|
|
3185
|
+
"onUpdate:modelValue": n[2] || (n[2] = (h) => e(t).site_id = h),
|
|
3187
3186
|
disabled: e(s)
|
|
3188
3187
|
}, null, 8, ["modelValue", "disabled"])
|
|
3189
3188
|
]),
|
|
@@ -3195,8 +3194,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3195
3194
|
}, {
|
|
3196
3195
|
default: o(() => [
|
|
3197
3196
|
l(g, {
|
|
3198
|
-
modelValue: e(
|
|
3199
|
-
"onUpdate:modelValue":
|
|
3197
|
+
modelValue: e(t).name,
|
|
3198
|
+
"onUpdate:modelValue": n[3] || (n[3] = (h) => e(t).name = h),
|
|
3200
3199
|
disabled: e(s),
|
|
3201
3200
|
placeholder: e(a)("placeholder.input")
|
|
3202
3201
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3209,8 +3208,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3209
3208
|
}, {
|
|
3210
3209
|
default: o(() => [
|
|
3211
3210
|
l(g, {
|
|
3212
|
-
modelValue: e(
|
|
3213
|
-
"onUpdate:modelValue":
|
|
3211
|
+
modelValue: e(t).path,
|
|
3212
|
+
"onUpdate:modelValue": n[4] || (n[4] = (h) => e(t).path = h),
|
|
3214
3213
|
disabled: e(s),
|
|
3215
3214
|
placeholder: e(a)("placeholder.input")
|
|
3216
3215
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3223,8 +3222,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3223
3222
|
}, {
|
|
3224
3223
|
default: o(() => [
|
|
3225
3224
|
l(g, {
|
|
3226
|
-
modelValue: e(
|
|
3227
|
-
"onUpdate:modelValue":
|
|
3225
|
+
modelValue: e(t).email,
|
|
3226
|
+
"onUpdate:modelValue": n[5] || (n[5] = (h) => e(t).email = h),
|
|
3228
3227
|
disabled: e(s),
|
|
3229
3228
|
placeholder: e(a)("placeholder.input")
|
|
3230
3229
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3237,8 +3236,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3237
3236
|
}, {
|
|
3238
3237
|
default: o(() => [
|
|
3239
3238
|
l(S, {
|
|
3240
|
-
modelValue: e(
|
|
3241
|
-
"onUpdate:modelValue":
|
|
3239
|
+
modelValue: e(t).encryption,
|
|
3240
|
+
"onUpdate:modelValue": n[6] || (n[6] = (h) => e(t).encryption = h)
|
|
3242
3241
|
}, {
|
|
3243
3242
|
default: o(() => [
|
|
3244
3243
|
l(p, {
|
|
@@ -3257,8 +3256,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3257
3256
|
}, {
|
|
3258
3257
|
default: o(() => [
|
|
3259
3258
|
l(g, {
|
|
3260
|
-
modelValue: e(
|
|
3261
|
-
"onUpdate:modelValue":
|
|
3259
|
+
modelValue: e(t).remark,
|
|
3260
|
+
"onUpdate:modelValue": n[7] || (n[7] = (h) => e(t).remark = h),
|
|
3262
3261
|
disabled: e(s),
|
|
3263
3262
|
placeholder: e(a)("placeholder.input")
|
|
3264
3263
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3275,35 +3274,35 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3275
3274
|
}
|
|
3276
3275
|
}), Ol = /* @__PURE__ */ O({
|
|
3277
3276
|
__name: "DomainTableDrawer",
|
|
3278
|
-
setup(
|
|
3277
|
+
setup(R, {
|
|
3279
3278
|
expose: U
|
|
3280
3279
|
}) {
|
|
3281
3280
|
const {
|
|
3282
|
-
requesting:
|
|
3283
|
-
} =
|
|
3281
|
+
requesting: x
|
|
3282
|
+
} = I(ge), {
|
|
3284
3283
|
visible: k,
|
|
3285
3284
|
open: V
|
|
3286
3285
|
} = xe(), {
|
|
3287
|
-
tableRef:
|
|
3286
|
+
tableRef: b,
|
|
3288
3287
|
formModalRef: m,
|
|
3289
3288
|
refresh: i,
|
|
3290
3289
|
openFormModal: u,
|
|
3291
|
-
editFormModal:
|
|
3292
|
-
} =
|
|
3290
|
+
editFormModal: t
|
|
3291
|
+
} = X(), {
|
|
3293
3292
|
formRef: v,
|
|
3294
3293
|
open: s,
|
|
3295
3294
|
edit: c
|
|
3296
3295
|
} = Te(), {
|
|
3297
3296
|
dialogRef: f,
|
|
3298
|
-
open:
|
|
3299
|
-
} = ve(),
|
|
3297
|
+
open: _
|
|
3298
|
+
} = ve(), A = [{
|
|
3300
3299
|
prop: "provider",
|
|
3301
3300
|
label: a("config.provider"),
|
|
3302
3301
|
width: 120,
|
|
3303
3302
|
cellRenderer: ({
|
|
3304
|
-
rowData:
|
|
3303
|
+
rowData: w
|
|
3305
3304
|
}) => l(r("el-text"), null, {
|
|
3306
|
-
default: () => [
|
|
3305
|
+
default: () => [w.provider?.name]
|
|
3307
3306
|
})
|
|
3308
3307
|
}, {
|
|
3309
3308
|
prop: "name",
|
|
@@ -3320,13 +3319,13 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3320
3319
|
width: 100,
|
|
3321
3320
|
align: "center",
|
|
3322
3321
|
render: ({
|
|
3323
|
-
rowData:
|
|
3322
|
+
rowData: w
|
|
3324
3323
|
}) => l(r("el-space"), null, {
|
|
3325
|
-
default: () => [l(
|
|
3324
|
+
default: () => [l(te, {
|
|
3326
3325
|
icon: "icon-edit",
|
|
3327
3326
|
t: "",
|
|
3328
|
-
onModify: () =>
|
|
3329
|
-
id:
|
|
3327
|
+
onModify: () => t({
|
|
3328
|
+
id: w.id
|
|
3330
3329
|
})
|
|
3331
3330
|
}, null), l(P, {
|
|
3332
3331
|
icon: "icon-safetycertificate-f",
|
|
@@ -3334,20 +3333,20 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3334
3333
|
size: "small",
|
|
3335
3334
|
link: !0,
|
|
3336
3335
|
onOpen: () => {
|
|
3337
|
-
|
|
3338
|
-
id:
|
|
3339
|
-
}) : (v.value.formData.domain_id =
|
|
3336
|
+
w.ssl && w.ssl.id ? c({
|
|
3337
|
+
id: w.ssl?.id
|
|
3338
|
+
}) : (v.value.formData.domain_id = w.id, v.value.formData.site_id = 0, s());
|
|
3340
3339
|
}
|
|
3341
3340
|
}, null)]
|
|
3342
3341
|
})
|
|
3343
3342
|
}];
|
|
3344
3343
|
return U({
|
|
3345
3344
|
open: V
|
|
3346
|
-
}), (
|
|
3345
|
+
}), (w, n) => {
|
|
3347
3346
|
const d = r("el-space"), p = r("el-page-header");
|
|
3348
3347
|
return M(), q(e(_e), {
|
|
3349
3348
|
modelValue: e(k),
|
|
3350
|
-
"onUpdate:modelValue":
|
|
3349
|
+
"onUpdate:modelValue": n[0] || (n[0] = (S) => z(k) ? k.value = S : null),
|
|
3351
3350
|
width: "600px",
|
|
3352
3351
|
"show-close": !1,
|
|
3353
3352
|
class: "basic-drawer"
|
|
@@ -3355,11 +3354,11 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3355
3354
|
title: o(() => [l(p, {
|
|
3356
3355
|
icon: ""
|
|
3357
3356
|
}, {
|
|
3358
|
-
title: o(() => [j("span", null,
|
|
3357
|
+
title: o(() => [j("span", null, F(e(a)("config.domain")), 1)]),
|
|
3359
3358
|
content: o(() => [l(e(K), {
|
|
3360
3359
|
onRefresh: e(i),
|
|
3361
3360
|
size: "default",
|
|
3362
|
-
loading: e(
|
|
3361
|
+
loading: e(x)
|
|
3363
3362
|
}, null, 8, ["onRefresh", "loading"]), l(e(P), {
|
|
3364
3363
|
onOpen: e(u)
|
|
3365
3364
|
}, null, 8, ["onOpen"])]),
|
|
@@ -3368,7 +3367,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3368
3367
|
alignment: "center"
|
|
3369
3368
|
}, {
|
|
3370
3369
|
default: o(() => [l(e(P), {
|
|
3371
|
-
onOpen: e(
|
|
3370
|
+
onOpen: e(_),
|
|
3372
3371
|
type: "danger"
|
|
3373
3372
|
}, null, 8, ["onOpen"])]),
|
|
3374
3373
|
_: 1
|
|
@@ -3377,12 +3376,12 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3377
3376
|
})]),
|
|
3378
3377
|
default: o(() => [l(e(ie), {
|
|
3379
3378
|
ref_key: "tableRef",
|
|
3380
|
-
ref:
|
|
3379
|
+
ref: b,
|
|
3381
3380
|
size: "small",
|
|
3382
3381
|
"row-key": "id",
|
|
3383
3382
|
url: e(ge).urls.list,
|
|
3384
|
-
columns:
|
|
3385
|
-
loading: e(
|
|
3383
|
+
columns: A,
|
|
3384
|
+
loading: e(x)
|
|
3386
3385
|
}, null, 8, ["url", "loading"]), l(Ml, {
|
|
3387
3386
|
ref_key: "formModalRef",
|
|
3388
3387
|
ref: m,
|
|
@@ -3401,22 +3400,22 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3401
3400
|
}
|
|
3402
3401
|
}), $l = /* @__PURE__ */ O({
|
|
3403
3402
|
__name: "SSLTableDrawer",
|
|
3404
|
-
setup(
|
|
3403
|
+
setup(R, {
|
|
3405
3404
|
expose: U
|
|
3406
3405
|
}) {
|
|
3407
3406
|
const {
|
|
3408
|
-
requesting:
|
|
3407
|
+
requesting: x,
|
|
3409
3408
|
executing: k
|
|
3410
|
-
} =
|
|
3411
|
-
visible:
|
|
3409
|
+
} = I(me), V = H(0), {
|
|
3410
|
+
visible: b,
|
|
3412
3411
|
open: m
|
|
3413
3412
|
} = xe(), {
|
|
3414
3413
|
tableRef: i,
|
|
3415
3414
|
formModalRef: u,
|
|
3416
|
-
refresh:
|
|
3415
|
+
refresh: t,
|
|
3417
3416
|
openFormModal: v,
|
|
3418
3417
|
editFormModal: s
|
|
3419
|
-
} =
|
|
3418
|
+
} = X(), c = [
|
|
3420
3419
|
{
|
|
3421
3420
|
prop: "client",
|
|
3422
3421
|
label: a("ssl.client"),
|
|
@@ -3455,68 +3454,68 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3455
3454
|
width: 160,
|
|
3456
3455
|
align: "center",
|
|
3457
3456
|
render: ({
|
|
3458
|
-
rowData:
|
|
3457
|
+
rowData: A
|
|
3459
3458
|
}) => l(r("el-space"), null, {
|
|
3460
|
-
default: () => [l(
|
|
3459
|
+
default: () => [l(te, {
|
|
3461
3460
|
size: "default",
|
|
3462
3461
|
icon: "icon-edit",
|
|
3463
3462
|
t: "",
|
|
3464
3463
|
disabled: k.value,
|
|
3465
3464
|
onModify: () => s({
|
|
3466
|
-
id:
|
|
3465
|
+
id: A.id
|
|
3467
3466
|
})
|
|
3468
|
-
}, null), l(
|
|
3467
|
+
}, null), l(Z, {
|
|
3469
3468
|
size: "default",
|
|
3470
3469
|
icon: "icon-key",
|
|
3471
3470
|
t: "",
|
|
3472
3471
|
text: !0,
|
|
3473
|
-
disabled: k.value && V.value !==
|
|
3474
|
-
loading: V.value ==
|
|
3475
|
-
onClick: () => f(
|
|
3476
|
-
}, null), l(
|
|
3472
|
+
disabled: k.value && V.value !== A.id,
|
|
3473
|
+
loading: V.value == A.id,
|
|
3474
|
+
onClick: () => f(A.id)
|
|
3475
|
+
}, null), l(Z, {
|
|
3477
3476
|
size: "default",
|
|
3478
3477
|
icon: "icon-cloud-download",
|
|
3479
3478
|
t: "",
|
|
3480
3479
|
text: !0,
|
|
3481
|
-
disabled: k.value && V.value !==
|
|
3482
|
-
loading: V.value ==
|
|
3483
|
-
onClick: () =>
|
|
3480
|
+
disabled: k.value && V.value !== A.id,
|
|
3481
|
+
loading: V.value == A.id,
|
|
3482
|
+
onClick: () => _(A)
|
|
3484
3483
|
}, null)]
|
|
3485
3484
|
})
|
|
3486
3485
|
}
|
|
3487
|
-
], f = (
|
|
3486
|
+
], f = (A) => {
|
|
3488
3487
|
me.gen({
|
|
3489
|
-
id:
|
|
3490
|
-
}).then((
|
|
3491
|
-
console.warn("Res:",
|
|
3488
|
+
id: A
|
|
3489
|
+
}).then((w) => {
|
|
3490
|
+
console.warn("Res:", w);
|
|
3492
3491
|
});
|
|
3493
3492
|
};
|
|
3494
|
-
function
|
|
3495
|
-
const
|
|
3496
|
-
fetch(
|
|
3497
|
-
let d = URL.createObjectURL(
|
|
3498
|
-
p.style.display = "none", p.href = d, p.download =
|
|
3493
|
+
function _(A) {
|
|
3494
|
+
const w = Oe.getDownloadUrl(A.path + ".zip");
|
|
3495
|
+
fetch(w).then((n) => n.blob()).then((n) => {
|
|
3496
|
+
let d = URL.createObjectURL(n), p = document.createElement("a");
|
|
3497
|
+
p.style.display = "none", p.href = d, p.download = A.name + ".zip", p.click(), URL.revokeObjectURL(n);
|
|
3499
3498
|
});
|
|
3500
3499
|
}
|
|
3501
3500
|
return U({
|
|
3502
3501
|
open: m
|
|
3503
|
-
}), (
|
|
3504
|
-
const
|
|
3502
|
+
}), (A, w) => {
|
|
3503
|
+
const n = r("el-page-header");
|
|
3505
3504
|
return M(), q(e(_e), {
|
|
3506
|
-
modelValue: e(
|
|
3507
|
-
"onUpdate:modelValue":
|
|
3505
|
+
modelValue: e(b),
|
|
3506
|
+
"onUpdate:modelValue": w[0] || (w[0] = (d) => z(b) ? b.value = d : null),
|
|
3508
3507
|
width: "1000px",
|
|
3509
3508
|
"show-close": !1,
|
|
3510
3509
|
class: "basic-drawer"
|
|
3511
3510
|
}, {
|
|
3512
|
-
title: o(() => [l(
|
|
3511
|
+
title: o(() => [l(n, {
|
|
3513
3512
|
icon: ""
|
|
3514
3513
|
}, {
|
|
3515
|
-
title: o(() => [j("span", null,
|
|
3514
|
+
title: o(() => [j("span", null, F(e(a)("ssl.ssl")), 1)]),
|
|
3516
3515
|
content: o(() => [l(e(K), {
|
|
3517
|
-
onRefresh: e(
|
|
3516
|
+
onRefresh: e(t),
|
|
3518
3517
|
size: "default",
|
|
3519
|
-
loading: e(
|
|
3518
|
+
loading: e(x)
|
|
3520
3519
|
}, null, 8, ["onRefresh", "loading"]), l(e(P), {
|
|
3521
3520
|
onOpen: e(v)
|
|
3522
3521
|
}, null, 8, ["onOpen"])]),
|
|
@@ -3529,11 +3528,11 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3529
3528
|
"row-key": "id",
|
|
3530
3529
|
url: e(me).urls.list,
|
|
3531
3530
|
columns: c,
|
|
3532
|
-
loading: e(
|
|
3531
|
+
loading: e(x)
|
|
3533
3532
|
}, null, 8, ["url", "loading"]), l(Ne, {
|
|
3534
3533
|
ref_key: "formModalRef",
|
|
3535
3534
|
ref: u,
|
|
3536
|
-
onRefresh: e(
|
|
3535
|
+
onRefresh: e(t)
|
|
3537
3536
|
}, null, 8, ["onRefresh"])]),
|
|
3538
3537
|
_: 1
|
|
3539
3538
|
}, 8, ["modelValue"]);
|
|
@@ -3544,40 +3543,40 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3544
3543
|
props: {
|
|
3545
3544
|
ssl: { type: Object, default: () => ({}) }
|
|
3546
3545
|
},
|
|
3547
|
-
setup(
|
|
3548
|
-
const
|
|
3546
|
+
setup(R, { expose: U }) {
|
|
3547
|
+
const x = R, { requesting: k, executing: V } = I([Ce, me]), { visible: b, open: m } = xe(), { tableRef: i, refresh: u } = ll(), t = [
|
|
3549
3548
|
{ prop: "status.label", label: a("base.status"), width: 100 },
|
|
3550
3549
|
{ prop: "at", label: a("base.time"), width: 180 },
|
|
3551
3550
|
{ prop: "type_text", label: a("base.type"), width: 80 },
|
|
3552
3551
|
{ prop: "result", label: a("base.result"), width: 0 }
|
|
3553
3552
|
];
|
|
3554
3553
|
function v() {
|
|
3555
|
-
me.gen({ id:
|
|
3554
|
+
me.gen({ id: x.ssl.id }).then((c) => {
|
|
3556
3555
|
console.warn("Res:", c);
|
|
3557
3556
|
});
|
|
3558
3557
|
}
|
|
3559
3558
|
function s() {
|
|
3560
|
-
const c = Oe.getDownloadUrl(
|
|
3559
|
+
const c = Oe.getDownloadUrl(x.ssl.path + ".zip");
|
|
3561
3560
|
fetch(c).then((f) => f.blob()).then((f) => {
|
|
3562
|
-
let
|
|
3563
|
-
|
|
3561
|
+
let _ = URL.createObjectURL(f), A = document.createElement("a");
|
|
3562
|
+
A.style.display = "none", A.href = _, A.download = x.ssl.name + ".zip", A.click(), URL.revokeObjectURL(f);
|
|
3564
3563
|
});
|
|
3565
3564
|
}
|
|
3566
3565
|
return U({
|
|
3567
3566
|
open: m
|
|
3568
3567
|
}), (c, f) => {
|
|
3569
|
-
const
|
|
3568
|
+
const _ = r("el-page-header");
|
|
3570
3569
|
return M(), q(e(_e), {
|
|
3571
|
-
modelValue: e(
|
|
3572
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
3570
|
+
modelValue: e(b),
|
|
3571
|
+
"onUpdate:modelValue": f[0] || (f[0] = (A) => z(b) ? b.value = A : null),
|
|
3573
3572
|
width: "600px",
|
|
3574
3573
|
"show-close": !1,
|
|
3575
3574
|
class: "basic-drawer"
|
|
3576
3575
|
}, {
|
|
3577
3576
|
title: o(() => [
|
|
3578
|
-
l(
|
|
3577
|
+
l(_, { icon: "" }, {
|
|
3579
3578
|
title: o(() => [
|
|
3580
|
-
j("span", null,
|
|
3579
|
+
j("span", null, F(e(a)("config.ssl base.log")), 1)
|
|
3581
3580
|
]),
|
|
3582
3581
|
content: o(() => [
|
|
3583
3582
|
l(e(K), {
|
|
@@ -3587,7 +3586,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3587
3586
|
}, null, 8, ["onRefresh", "loading"])
|
|
3588
3587
|
]),
|
|
3589
3588
|
extra: o(() => [
|
|
3590
|
-
l(e(
|
|
3589
|
+
l(e(Z), {
|
|
3591
3590
|
size: "default",
|
|
3592
3591
|
type: "danger",
|
|
3593
3592
|
icon: "icon-key",
|
|
@@ -3595,7 +3594,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3595
3594
|
loading: e(V),
|
|
3596
3595
|
onClick: v
|
|
3597
3596
|
}, null, 8, ["disabled", "loading"]),
|
|
3598
|
-
l(e(
|
|
3597
|
+
l(e(Z), {
|
|
3599
3598
|
size: "default",
|
|
3600
3599
|
type: "primary",
|
|
3601
3600
|
icon: "icon-cloud-download",
|
|
@@ -3614,7 +3613,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3614
3613
|
size: "small",
|
|
3615
3614
|
"row-key": "id",
|
|
3616
3615
|
url: e(Ce).urls.search,
|
|
3617
|
-
columns:
|
|
3616
|
+
columns: t,
|
|
3618
3617
|
loading: e(k)
|
|
3619
3618
|
}, null, 8, ["url", "loading"])
|
|
3620
3619
|
]),
|
|
@@ -3624,25 +3623,25 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3624
3623
|
}
|
|
3625
3624
|
}), Fl = /* @__PURE__ */ O({
|
|
3626
3625
|
__name: "index",
|
|
3627
|
-
setup(
|
|
3628
|
-
const U = Ol,
|
|
3629
|
-
requesting:
|
|
3626
|
+
setup(R) {
|
|
3627
|
+
const U = Ol, x = $l, k = El, V = H(), {
|
|
3628
|
+
requesting: b,
|
|
3630
3629
|
executing: m
|
|
3631
|
-
} =
|
|
3630
|
+
} = I(pe), {
|
|
3632
3631
|
tableRef: i,
|
|
3633
3632
|
formModalRef: u,
|
|
3634
|
-
reset:
|
|
3633
|
+
reset: t,
|
|
3635
3634
|
refresh: v,
|
|
3636
3635
|
openFormModal: s,
|
|
3637
3636
|
editFormModal: c
|
|
3638
|
-
} =
|
|
3637
|
+
} = X(), {
|
|
3639
3638
|
dialogRef: f,
|
|
3640
|
-
open:
|
|
3639
|
+
open: _
|
|
3641
3640
|
} = ve(), {
|
|
3642
|
-
dialogRef:
|
|
3643
|
-
open:
|
|
3641
|
+
dialogRef: A,
|
|
3642
|
+
open: w
|
|
3644
3643
|
} = ve(), {
|
|
3645
|
-
dialogRef:
|
|
3644
|
+
dialogRef: n,
|
|
3646
3645
|
open: d
|
|
3647
3646
|
} = ve(), p = [{
|
|
3648
3647
|
prop: "domain.name",
|
|
@@ -3672,7 +3671,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3672
3671
|
rowData: y
|
|
3673
3672
|
}) => l(r("el-space"), null, {
|
|
3674
3673
|
default: () => [l(r("el-text"), null, {
|
|
3675
|
-
default: () => [y.ssl?.renewal_days,
|
|
3674
|
+
default: () => [y.ssl?.renewal_days, Q(" 天")]
|
|
3676
3675
|
}), l(r("el-button"), {
|
|
3677
3676
|
size: "small",
|
|
3678
3677
|
type: "primary",
|
|
@@ -3699,13 +3698,13 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3699
3698
|
cellRenderer: ({
|
|
3700
3699
|
rowData: y
|
|
3701
3700
|
}) => l(r("el-space"), null, {
|
|
3702
|
-
default: () => [l(
|
|
3701
|
+
default: () => [l(te, {
|
|
3703
3702
|
icon: "icon-edit",
|
|
3704
3703
|
t: "",
|
|
3705
3704
|
onModify: () => c({
|
|
3706
3705
|
id: y.id
|
|
3707
3706
|
})
|
|
3708
|
-
}, null), l(
|
|
3707
|
+
}, null), l(Z, {
|
|
3709
3708
|
icon: "icon-securityscan",
|
|
3710
3709
|
type: "primary",
|
|
3711
3710
|
size: "small",
|
|
@@ -3725,7 +3724,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3725
3724
|
});
|
|
3726
3725
|
};
|
|
3727
3726
|
return (y, h) => {
|
|
3728
|
-
const C = r("el-space"),
|
|
3727
|
+
const C = r("el-space"), D = r("el-page-header"), L = r("el-card");
|
|
3729
3728
|
return M(), q(L, {
|
|
3730
3729
|
"body-style": {
|
|
3731
3730
|
padding: "12px",
|
|
@@ -3734,10 +3733,10 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3734
3733
|
"body-class": "flex-1",
|
|
3735
3734
|
class: "config-card"
|
|
3736
3735
|
}, {
|
|
3737
|
-
header: o(() => [l(
|
|
3736
|
+
header: o(() => [l(D, {
|
|
3738
3737
|
icon: ""
|
|
3739
3738
|
}, {
|
|
3740
|
-
title: o(() => [j("span", null,
|
|
3739
|
+
title: o(() => [j("span", null, F(e(a)("config.keys.sites")), 1)]),
|
|
3741
3740
|
content: o(() => [l(C, {
|
|
3742
3741
|
alignment: "center",
|
|
3743
3742
|
style: {
|
|
@@ -3745,18 +3744,18 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3745
3744
|
}
|
|
3746
3745
|
}, {
|
|
3747
3746
|
default: o(() => [l(e(K), {
|
|
3748
|
-
loading: e(
|
|
3749
|
-
onRefresh: e(
|
|
3747
|
+
loading: e(b),
|
|
3748
|
+
onRefresh: e(t)
|
|
3750
3749
|
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
3751
3750
|
onOpen: e(s)
|
|
3752
3751
|
}, null, 8, ["onOpen"])]),
|
|
3753
3752
|
_: 1
|
|
3754
3753
|
})]),
|
|
3755
3754
|
extra: o(() => [l(e(P), {
|
|
3756
|
-
onOpen: e(
|
|
3755
|
+
onOpen: e(_),
|
|
3757
3756
|
icon: "icon-compass"
|
|
3758
3757
|
}, null, 8, ["onOpen"]), l(e(P), {
|
|
3759
|
-
onOpen: e(
|
|
3758
|
+
onOpen: e(w),
|
|
3760
3759
|
icon: "icon-safetycertificate-f"
|
|
3761
3760
|
}, null, 8, ["onOpen"])]),
|
|
3762
3761
|
_: 1
|
|
@@ -3776,12 +3775,12 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3776
3775
|
}, null, 8, ["onRefresh"]), l(e(U), {
|
|
3777
3776
|
ref_key: "domainTableDrawerRef",
|
|
3778
3777
|
ref: f
|
|
3779
|
-
}, null, 512), l(e(
|
|
3778
|
+
}, null, 512), l(e(x), {
|
|
3780
3779
|
ref_key: "sslTableDrawerRef",
|
|
3781
|
-
ref:
|
|
3780
|
+
ref: A
|
|
3782
3781
|
}, null, 512), l(e(k), {
|
|
3783
3782
|
ref_key: "sslLogTableDrawerRef",
|
|
3784
|
-
ref:
|
|
3783
|
+
ref: n
|
|
3785
3784
|
}, null, 512)]),
|
|
3786
3785
|
_: 1
|
|
3787
3786
|
});
|
|
@@ -3796,34 +3795,66 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3796
3795
|
sql: "SQL"
|
|
3797
3796
|
}, ce = Y.routineApi("log", "id", Nl), Xl = /* @__PURE__ */ O({
|
|
3798
3797
|
__name: "index",
|
|
3799
|
-
setup(
|
|
3798
|
+
setup(R) {
|
|
3800
3799
|
const U = {
|
|
3801
3800
|
dates: [E.getCurrentHour().format(E.DATE_VALUE_FORMAT), E.getCurrentHour(1).format(E.DATE_VALUE_FORMAT)]
|
|
3802
|
-
},
|
|
3803
|
-
label: a("base.sort"),
|
|
3804
|
-
type: "index",
|
|
3805
|
-
width: 60
|
|
3806
|
-
}, {
|
|
3801
|
+
}, x = [{
|
|
3807
3802
|
label: a("base.time"),
|
|
3808
3803
|
prop: "time",
|
|
3809
3804
|
width: 180,
|
|
3810
3805
|
render: ({
|
|
3811
3806
|
rowData: u
|
|
3812
3807
|
}) => l(G, null, [E.formatDate(u.time)])
|
|
3808
|
+
}, {
|
|
3809
|
+
label: a("base.IP"),
|
|
3810
|
+
prop: "ip",
|
|
3811
|
+
align: "right",
|
|
3812
|
+
width: 120
|
|
3813
|
+
}, {
|
|
3814
|
+
label: a("base.code"),
|
|
3815
|
+
type: "index",
|
|
3816
|
+
width: 60,
|
|
3817
|
+
render: ({
|
|
3818
|
+
rowData: u
|
|
3819
|
+
}) => l(r("el-tag"), {
|
|
3820
|
+
type: a("colors.code." + u.code)
|
|
3821
|
+
}, {
|
|
3822
|
+
default: () => [u.code]
|
|
3823
|
+
})
|
|
3824
|
+
}, {
|
|
3825
|
+
label: a("base.method"),
|
|
3826
|
+
type: "index",
|
|
3827
|
+
width: 60,
|
|
3828
|
+
render: ({
|
|
3829
|
+
rowData: u
|
|
3830
|
+
}) => l(r("el-tag"), {
|
|
3831
|
+
type: a("colors.method." + u.method)
|
|
3832
|
+
}, {
|
|
3833
|
+
default: () => [u.method]
|
|
3834
|
+
})
|
|
3813
3835
|
}, {
|
|
3814
3836
|
label: a("base.url"),
|
|
3815
3837
|
prop: "url",
|
|
3816
3838
|
align: "left",
|
|
3817
|
-
width:
|
|
3839
|
+
width: 160
|
|
3840
|
+
}, {
|
|
3841
|
+
label: a("base.request_body"),
|
|
3842
|
+
prop: "body",
|
|
3843
|
+
align: "left",
|
|
3844
|
+
width: 0
|
|
3845
|
+
}, {
|
|
3846
|
+
label: a("time.cost") + "(ms)",
|
|
3847
|
+
prop: "cost",
|
|
3848
|
+
width: 120
|
|
3818
3849
|
}], {
|
|
3819
3850
|
requesting: k
|
|
3820
|
-
} =
|
|
3851
|
+
} = I(ce), {
|
|
3821
3852
|
tableRef: V,
|
|
3822
|
-
keyword:
|
|
3853
|
+
keyword: b,
|
|
3823
3854
|
search: m,
|
|
3824
3855
|
reset: i
|
|
3825
|
-
} =
|
|
3826
|
-
return (u,
|
|
3856
|
+
} = X(U);
|
|
3857
|
+
return (u, t) => {
|
|
3827
3858
|
const v = r("el-date-picker"), s = r("el-space"), c = r("el-page-header"), f = r("el-card");
|
|
3828
3859
|
return M(), q(f, {
|
|
3829
3860
|
class: "basic-card flex-full",
|
|
@@ -3840,8 +3871,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3840
3871
|
class: "search-bar"
|
|
3841
3872
|
}, {
|
|
3842
3873
|
default: o(() => [l(v, {
|
|
3843
|
-
modelValue: e(
|
|
3844
|
-
"onUpdate:modelValue":
|
|
3874
|
+
modelValue: e(b).dates,
|
|
3875
|
+
"onUpdate:modelValue": t[0] || (t[0] = (_) => e(b).dates = _),
|
|
3845
3876
|
class: "basic-search-datetimerange",
|
|
3846
3877
|
"value-format": e(E).DATE_VALUE_FORMAT,
|
|
3847
3878
|
format: e(E).DATE_SHOW_FORMAT,
|
|
@@ -3850,10 +3881,10 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3850
3881
|
"start-placeholder": e(a)("base.start_at"),
|
|
3851
3882
|
"end-placeholder": e(a)("base.end_at"),
|
|
3852
3883
|
clearable: !1,
|
|
3853
|
-
onChange:
|
|
3884
|
+
onChange: t[1] || (t[1] = (_) => e(m)())
|
|
3854
3885
|
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(de), {
|
|
3855
3886
|
disabled: e(k),
|
|
3856
|
-
onSearch:
|
|
3887
|
+
onSearch: t[2] || (t[2] = (_) => e(m)())
|
|
3857
3888
|
}, null, 8, ["disabled"])]),
|
|
3858
3889
|
_: 1
|
|
3859
3890
|
})]),
|
|
@@ -3863,9 +3894,9 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3863
3894
|
ref_key: "tableRef",
|
|
3864
3895
|
ref: V,
|
|
3865
3896
|
size: "small",
|
|
3866
|
-
columns:
|
|
3897
|
+
columns: x,
|
|
3867
3898
|
url: e(ce).urls.request,
|
|
3868
|
-
"search-param": e(
|
|
3899
|
+
"search-param": e(b),
|
|
3869
3900
|
"auto-search": ""
|
|
3870
3901
|
}, null, 8, ["url", "search-param"])]),
|
|
3871
3902
|
_: 1
|
|
@@ -3874,14 +3905,10 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3874
3905
|
}
|
|
3875
3906
|
}), Zl = /* @__PURE__ */ O({
|
|
3876
3907
|
__name: "index",
|
|
3877
|
-
setup(
|
|
3908
|
+
setup(R) {
|
|
3878
3909
|
const U = {
|
|
3879
3910
|
dates: [E.getCurrentDate(-7).format(E.DATE_FORMAT), E.getCurrentDate(0).format(E.DATE_FORMAT)]
|
|
3880
|
-
},
|
|
3881
|
-
label: a("base.sort"),
|
|
3882
|
-
type: "index",
|
|
3883
|
-
width: 60
|
|
3884
|
-
}, {
|
|
3911
|
+
}, x = [{
|
|
3885
3912
|
label: a("base.time"),
|
|
3886
3913
|
prop: "time",
|
|
3887
3914
|
width: 180,
|
|
@@ -3889,19 +3916,27 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3889
3916
|
rowData: u
|
|
3890
3917
|
}) => l(G, null, [E.formatDate(u.time)])
|
|
3891
3918
|
}, {
|
|
3892
|
-
label: a("base.
|
|
3893
|
-
prop: "
|
|
3919
|
+
label: a("base.type"),
|
|
3920
|
+
prop: "type",
|
|
3921
|
+
width: 60
|
|
3922
|
+
}, {
|
|
3923
|
+
label: a("base.service"),
|
|
3924
|
+
prop: "service",
|
|
3925
|
+
width: 180
|
|
3926
|
+
}, {
|
|
3927
|
+
label: a("base.error"),
|
|
3928
|
+
prop: "error",
|
|
3894
3929
|
align: "left",
|
|
3895
|
-
width:
|
|
3930
|
+
width: 0
|
|
3896
3931
|
}], {
|
|
3897
3932
|
requesting: k
|
|
3898
|
-
} =
|
|
3933
|
+
} = I(ce), {
|
|
3899
3934
|
tableRef: V,
|
|
3900
|
-
keyword:
|
|
3935
|
+
keyword: b,
|
|
3901
3936
|
search: m,
|
|
3902
3937
|
reset: i
|
|
3903
|
-
} =
|
|
3904
|
-
return (u,
|
|
3938
|
+
} = X(U);
|
|
3939
|
+
return (u, t) => {
|
|
3905
3940
|
const v = r("el-date-picker"), s = r("el-space"), c = r("el-page-header"), f = r("el-card");
|
|
3906
3941
|
return M(), q(f, {
|
|
3907
3942
|
class: "basic-card flex-full",
|
|
@@ -3918,8 +3953,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3918
3953
|
class: "search-bar"
|
|
3919
3954
|
}, {
|
|
3920
3955
|
default: o(() => [l(v, {
|
|
3921
|
-
modelValue: e(
|
|
3922
|
-
"onUpdate:modelValue":
|
|
3956
|
+
modelValue: e(b).dates,
|
|
3957
|
+
"onUpdate:modelValue": t[0] || (t[0] = (_) => e(b).dates = _),
|
|
3923
3958
|
class: "basic-search-daterange",
|
|
3924
3959
|
"value-format": e(E).DATE_FORMAT,
|
|
3925
3960
|
format: e(E).DATE_FORMAT,
|
|
@@ -3928,10 +3963,10 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3928
3963
|
"start-placeholder": e(a)("base.start_at"),
|
|
3929
3964
|
"end-placeholder": e(a)("base.end_at"),
|
|
3930
3965
|
clearable: !1,
|
|
3931
|
-
onChange:
|
|
3966
|
+
onChange: t[1] || (t[1] = (_) => e(m)())
|
|
3932
3967
|
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(de), {
|
|
3933
3968
|
disabled: e(k),
|
|
3934
|
-
onSearch:
|
|
3969
|
+
onSearch: t[2] || (t[2] = (_) => e(m)())
|
|
3935
3970
|
}, null, 8, ["disabled"])]),
|
|
3936
3971
|
_: 1
|
|
3937
3972
|
})]),
|
|
@@ -3941,9 +3976,9 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3941
3976
|
ref_key: "tableRef",
|
|
3942
3977
|
ref: V,
|
|
3943
3978
|
size: "small",
|
|
3944
|
-
columns:
|
|
3979
|
+
columns: x,
|
|
3945
3980
|
url: e(ce).urls.error,
|
|
3946
|
-
"search-param": e(
|
|
3981
|
+
"search-param": e(b),
|
|
3947
3982
|
"auto-search": ""
|
|
3948
3983
|
}, null, 8, ["url", "search-param"])]),
|
|
3949
3984
|
_: 1
|
|
@@ -3952,10 +3987,11 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3952
3987
|
}
|
|
3953
3988
|
}), ea = /* @__PURE__ */ O({
|
|
3954
3989
|
__name: "index",
|
|
3955
|
-
setup(
|
|
3990
|
+
setup(R) {
|
|
3956
3991
|
const U = {
|
|
3957
|
-
dates: [E.getCurrentDate(-7).format(E.DATE_FORMAT), E.getCurrentDate().format(E.DATE_FORMAT)]
|
|
3958
|
-
|
|
3992
|
+
dates: [E.getCurrentDate(-7).format(E.DATE_FORMAT), E.getCurrentDate().format(E.DATE_FORMAT)],
|
|
3993
|
+
type: "slow"
|
|
3994
|
+
}, x = [{
|
|
3959
3995
|
label: a("base.sort"),
|
|
3960
3996
|
type: "index",
|
|
3961
3997
|
width: 60
|
|
@@ -3967,49 +4003,74 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3967
4003
|
rowData: u
|
|
3968
4004
|
}) => l(G, null, [E.formatDate(u.time)])
|
|
3969
4005
|
}, {
|
|
3970
|
-
label: a("
|
|
3971
|
-
prop: "
|
|
4006
|
+
label: a("time.cost") + "(ms)",
|
|
4007
|
+
prop: "cost",
|
|
4008
|
+
width: 120
|
|
4009
|
+
}, {
|
|
4010
|
+
label: a("base.sql"),
|
|
4011
|
+
prop: "sql",
|
|
3972
4012
|
align: "left",
|
|
3973
|
-
width:
|
|
4013
|
+
width: 0
|
|
3974
4014
|
}], {
|
|
3975
4015
|
requesting: k
|
|
3976
|
-
} =
|
|
4016
|
+
} = I(ce), {
|
|
3977
4017
|
tableRef: V,
|
|
3978
|
-
keyword:
|
|
4018
|
+
keyword: b,
|
|
3979
4019
|
search: m,
|
|
3980
4020
|
reset: i
|
|
3981
|
-
} =
|
|
3982
|
-
return (u,
|
|
3983
|
-
const v = r("el-date-picker"), s = r("el-
|
|
3984
|
-
return M(), q(
|
|
4021
|
+
} = X(U);
|
|
4022
|
+
return (u, t) => {
|
|
4023
|
+
const v = r("el-date-picker"), s = r("el-radio-button"), c = r("el-radio-group"), f = r("el-space"), _ = r("el-page-header"), A = r("el-card");
|
|
4024
|
+
return M(), q(A, {
|
|
3985
4025
|
class: "basic-card flex-full",
|
|
3986
4026
|
"body-class": "flex-1"
|
|
3987
4027
|
}, {
|
|
3988
|
-
header: o(() => [l(
|
|
4028
|
+
header: o(() => [l(_, {
|
|
3989
4029
|
class: "basic-header"
|
|
3990
4030
|
}, {
|
|
3991
4031
|
title: o(() => [l(e(K), {
|
|
3992
4032
|
loading: e(k),
|
|
3993
4033
|
onRefresh: e(i)
|
|
3994
4034
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
3995
|
-
content: o(() => [l(
|
|
4035
|
+
content: o(() => [l(f, {
|
|
3996
4036
|
class: "search-bar"
|
|
3997
4037
|
}, {
|
|
3998
4038
|
default: o(() => [l(v, {
|
|
3999
|
-
modelValue: e(
|
|
4000
|
-
"onUpdate:modelValue":
|
|
4039
|
+
modelValue: e(b).dates,
|
|
4040
|
+
"onUpdate:modelValue": t[0] || (t[0] = (w) => e(b).dates = w),
|
|
4001
4041
|
class: "basic-search-daterange",
|
|
4002
|
-
"value-format": e(E).
|
|
4003
|
-
format: e(E).
|
|
4042
|
+
"value-format": e(E).DATE_VALUE_FORMAT,
|
|
4043
|
+
format: e(E).DATE_SHOW_FORMAT,
|
|
4004
4044
|
type: "daterange",
|
|
4005
4045
|
"range-separator": "-",
|
|
4006
4046
|
"start-placeholder": e(a)("base.start_at"),
|
|
4007
4047
|
"end-placeholder": e(a)("base.end_at"),
|
|
4008
4048
|
clearable: !1,
|
|
4009
|
-
onChange:
|
|
4010
|
-
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(
|
|
4049
|
+
onChange: t[1] || (t[1] = (w) => e(m)())
|
|
4050
|
+
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(c, {
|
|
4051
|
+
modelValue: e(b).type,
|
|
4052
|
+
"onUpdate:modelValue": t[2] || (t[2] = (w) => e(b).type = w)
|
|
4053
|
+
}, {
|
|
4054
|
+
default: o(() => [l(s, {
|
|
4055
|
+
value: "logs"
|
|
4056
|
+
}, {
|
|
4057
|
+
default: o(() => [Q(F(e(a)("base.log")), 1)]),
|
|
4058
|
+
_: 1
|
|
4059
|
+
}), l(s, {
|
|
4060
|
+
value: "slow"
|
|
4061
|
+
}, {
|
|
4062
|
+
default: o(() => [Q(F(e(a)("base.slow_log")), 1)]),
|
|
4063
|
+
_: 1
|
|
4064
|
+
}), l(s, {
|
|
4065
|
+
value: "errors"
|
|
4066
|
+
}, {
|
|
4067
|
+
default: o(() => [Q(F(e(a)("base.error_log")), 1)]),
|
|
4068
|
+
_: 1
|
|
4069
|
+
})]),
|
|
4070
|
+
_: 1
|
|
4071
|
+
}, 8, ["modelValue"]), l(e(de), {
|
|
4011
4072
|
disabled: e(k),
|
|
4012
|
-
onSearch:
|
|
4073
|
+
onSearch: t[3] || (t[3] = (w) => e(m)())
|
|
4013
4074
|
}, null, 8, ["disabled"])]),
|
|
4014
4075
|
_: 1
|
|
4015
4076
|
})]),
|
|
@@ -4019,9 +4080,9 @@ const Ql = /* @__PURE__ */ O({
|
|
|
4019
4080
|
ref_key: "tableRef",
|
|
4020
4081
|
ref: V,
|
|
4021
4082
|
size: "small",
|
|
4022
|
-
columns:
|
|
4083
|
+
columns: x,
|
|
4023
4084
|
url: e(ce).urls.sql,
|
|
4024
|
-
"search-param": e(
|
|
4085
|
+
"search-param": e(b),
|
|
4025
4086
|
"auto-search": ""
|
|
4026
4087
|
}, null, 8, ["url", "search-param"])]),
|
|
4027
4088
|
_: 1
|
|
@@ -4050,31 +4111,31 @@ const Ql = /* @__PURE__ */ O({
|
|
|
4050
4111
|
}
|
|
4051
4112
|
},
|
|
4052
4113
|
emits: ["update:modelValue", "update:value", "change"],
|
|
4053
|
-
setup(
|
|
4114
|
+
setup(R, {
|
|
4054
4115
|
emit: U
|
|
4055
4116
|
}) {
|
|
4056
|
-
const
|
|
4117
|
+
const x = U, k = R, {
|
|
4057
4118
|
requesting: V
|
|
4058
|
-
} =
|
|
4059
|
-
value:
|
|
4119
|
+
} = I(W), {
|
|
4120
|
+
value: b,
|
|
4060
4121
|
options: m,
|
|
4061
4122
|
change: i
|
|
4062
|
-
} = re(
|
|
4123
|
+
} = re(ne(k, "modelValue"), x, {
|
|
4063
4124
|
key: "LANGUAGE_SELECT",
|
|
4064
4125
|
url: W.urls.languages,
|
|
4065
4126
|
api: W,
|
|
4066
4127
|
isArray: !0
|
|
4067
4128
|
}, {
|
|
4068
|
-
formatOptions: (u) => u.map((
|
|
4069
|
-
value:
|
|
4070
|
-
label:
|
|
4129
|
+
formatOptions: (u) => u.map((t) => ({
|
|
4130
|
+
value: t,
|
|
4131
|
+
label: t
|
|
4071
4132
|
}))
|
|
4072
4133
|
});
|
|
4073
|
-
return (u,
|
|
4134
|
+
return (u, t) => {
|
|
4074
4135
|
const v = r("el-radio-button"), s = r("el-radio-group");
|
|
4075
4136
|
return M(), q(s, {
|
|
4076
|
-
modelValue: e(
|
|
4077
|
-
"onUpdate:modelValue":
|
|
4137
|
+
modelValue: e(b),
|
|
4138
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => z(b) ? b.value = c : null),
|
|
4078
4139
|
disabled: e(V),
|
|
4079
4140
|
onChange: e(i)
|
|
4080
4141
|
}, {
|
|
@@ -4082,7 +4143,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
4082
4143
|
key: c.value,
|
|
4083
4144
|
value: c.value
|
|
4084
4145
|
}, {
|
|
4085
|
-
default: o(() => [j("span", null,
|
|
4146
|
+
default: o(() => [j("span", null, F(c.label), 1)]),
|
|
4086
4147
|
_: 2
|
|
4087
4148
|
}, 1032, ["value"]))), 128))]),
|
|
4088
4149
|
_: 1
|
|
@@ -4091,7 +4152,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
4091
4152
|
}
|
|
4092
4153
|
}), Bl = () => import("./index-SHsqnbNG.js"), Pl = () => import("./index-CJMTIvHk.js"), jl = () => import("./index-BMn8mAns.js"), aa = [
|
|
4093
4154
|
{
|
|
4094
|
-
path:
|
|
4155
|
+
path: tl,
|
|
4095
4156
|
name: "RequestLog",
|
|
4096
4157
|
component: Bl,
|
|
4097
4158
|
meta: {
|
|
@@ -4099,7 +4160,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
4099
4160
|
}
|
|
4100
4161
|
},
|
|
4101
4162
|
{
|
|
4102
|
-
path:
|
|
4163
|
+
path: nl,
|
|
4103
4164
|
name: "ErrorLog",
|
|
4104
4165
|
component: Pl,
|
|
4105
4166
|
meta: {
|
|
@@ -4115,11 +4176,11 @@ const Ql = /* @__PURE__ */ O({
|
|
|
4115
4176
|
}
|
|
4116
4177
|
}
|
|
4117
4178
|
], oa = {
|
|
4118
|
-
install: (
|
|
4119
|
-
Reflect.ownKeys(
|
|
4179
|
+
install: (R) => {
|
|
4180
|
+
Reflect.ownKeys(R._context.provides).some((U) => String(U) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app.", Reflect.ownKeys(R._context.provides));
|
|
4120
4181
|
},
|
|
4121
4182
|
version: "__VERSION__"
|
|
4122
|
-
},
|
|
4183
|
+
}, ta = /* @__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(() => Il) });
|
|
4123
4184
|
export {
|
|
4124
4185
|
Jl as AdminsPage,
|
|
4125
4186
|
Sl as DomainProviderSelect,
|
|
@@ -4136,6 +4197,6 @@ export {
|
|
|
4136
4197
|
zl as SitePage,
|
|
4137
4198
|
ql as SiteSelect,
|
|
4138
4199
|
il as TopMenuSelect,
|
|
4139
|
-
|
|
4200
|
+
ta as basicModules,
|
|
4140
4201
|
oa as default
|
|
4141
4202
|
};
|