auto-vue-basic 0.0.100 → 0.1.13
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 ye, 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 Ve, 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: y } = 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(
|
|
29
|
+
multiple: R.multiple,
|
|
30
|
+
disabled: e(y) || 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
|
-
loading: e(
|
|
40
|
-
onRefresh: s[0] || (s[0] = (
|
|
39
|
+
loading: e(y),
|
|
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, y = {
|
|
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, y, J);
|
|
128
128
|
return U({
|
|
129
129
|
open: c,
|
|
130
130
|
modify: f
|
|
131
|
-
}), (
|
|
132
|
-
const d = r("el-form-item"), p = r("el-col"), S = r("el-input-number"), g = r("el-row"),
|
|
131
|
+
}), (w, n) => {
|
|
132
|
+
const d = r("el-form-item"), p = r("el-col"), S = r("el-input-number"), g = r("el-row"), V = 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"])
|
|
@@ -202,9 +202,9 @@ const ul = {
|
|
|
202
202
|
prop: "module"
|
|
203
203
|
}, {
|
|
204
204
|
default: o(() => [
|
|
205
|
-
l(
|
|
206
|
-
modelValue: e(
|
|
207
|
-
"onUpdate:modelValue":
|
|
205
|
+
l(V, {
|
|
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
|
]),
|
|
@@ -215,9 +215,9 @@ const ul = {
|
|
|
215
215
|
prop: "name"
|
|
216
216
|
}, {
|
|
217
217
|
default: o(() => [
|
|
218
|
-
l(
|
|
219
|
-
modelValue: e(
|
|
220
|
-
"onUpdate:modelValue":
|
|
218
|
+
l(V, {
|
|
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
|
]),
|
|
@@ -228,9 +228,9 @@ const ul = {
|
|
|
228
228
|
prop: "en_name"
|
|
229
229
|
}, {
|
|
230
230
|
default: o(() => [
|
|
231
|
-
l(
|
|
232
|
-
modelValue: e(
|
|
233
|
-
"onUpdate:modelValue":
|
|
231
|
+
l(V, {
|
|
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
|
]),
|
|
@@ -241,9 +241,9 @@ const ul = {
|
|
|
241
241
|
prop: "component"
|
|
242
242
|
}, {
|
|
243
243
|
default: o(() => [
|
|
244
|
-
l(
|
|
245
|
-
modelValue: e(
|
|
246
|
-
"onUpdate:modelValue":
|
|
244
|
+
l(V, {
|
|
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
|
]),
|
|
@@ -254,9 +254,9 @@ const ul = {
|
|
|
254
254
|
prop: "url"
|
|
255
255
|
}, {
|
|
256
256
|
default: o(() => [
|
|
257
|
-
l(
|
|
258
|
-
modelValue: e(
|
|
259
|
-
"onUpdate:modelValue":
|
|
257
|
+
l(V, {
|
|
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
|
]),
|
|
@@ -267,9 +267,9 @@ const ul = {
|
|
|
267
267
|
prop: "remark"
|
|
268
268
|
}, {
|
|
269
269
|
default: o(() => [
|
|
270
|
-
l(
|
|
271
|
-
modelValue: e(
|
|
272
|
-
"onUpdate:modelValue":
|
|
270
|
+
l(V, {
|
|
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
|
]),
|
|
@@ -285,17 +285,17 @@ const ul = {
|
|
|
285
285
|
prop: "icon"
|
|
286
286
|
}, {
|
|
287
287
|
default: o(() => [
|
|
288
|
-
l(
|
|
289
|
-
modelValue: e(
|
|
290
|
-
"onUpdate:modelValue":
|
|
288
|
+
l(V, {
|
|
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
|
|
@@ -308,9 +308,9 @@ const ul = {
|
|
|
308
308
|
prop: "meta.title"
|
|
309
309
|
}, {
|
|
310
310
|
default: o(() => [
|
|
311
|
-
l(
|
|
312
|
-
modelValue: e(
|
|
313
|
-
"onUpdate:modelValue":
|
|
311
|
+
l(V, {
|
|
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
|
]),
|
|
@@ -321,9 +321,9 @@ const ul = {
|
|
|
321
321
|
prop: "meta.active"
|
|
322
322
|
}, {
|
|
323
323
|
default: o(() => [
|
|
324
|
-
l(
|
|
325
|
-
modelValue: e(
|
|
326
|
-
"onUpdate:modelValue":
|
|
324
|
+
l(V, {
|
|
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: y } = 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(
|
|
453
|
+
multiple: R.multiple,
|
|
454
|
+
disabled: e(y) || 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
|
-
loading: e(
|
|
463
|
-
onRefresh: s[0] || (s[0] = (
|
|
462
|
+
loading: e(y),
|
|
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, y = {
|
|
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,32 +528,32 @@ 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, y, $e);
|
|
532
532
|
return U({
|
|
533
533
|
open: c,
|
|
534
534
|
modify: f
|
|
535
|
-
}), (
|
|
536
|
-
const d = r("el-form-item"), p = r("el-input-number"), S = r("el-input"), g = r("el-col"),
|
|
535
|
+
}), (w, n) => {
|
|
536
|
+
const d = r("el-form-item"), p = r("el-input-number"), S = r("el-input"), g = r("el-col"), V = 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(() => [
|
|
556
|
-
l(
|
|
556
|
+
l(V, { gutter: 20 }, {
|
|
557
557
|
default: o(() => [
|
|
558
558
|
l(g, { span: 10 }, {
|
|
559
559
|
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,55 +780,55 @@ 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
|
-
requesting:
|
|
793
|
-
} =
|
|
794
|
-
tableRef:
|
|
792
|
+
requesting: y
|
|
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"),
|
|
815
|
-
return M(), q(
|
|
813
|
+
return (n, d) => {
|
|
814
|
+
const p = r("el-button"), S = r("el-input"), g = r("el-radio-button"), V = 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"
|
|
822
822
|
}, {
|
|
823
823
|
title: o(() => [l(e(K), {
|
|
824
|
-
loading: e(
|
|
824
|
+
loading: e(y),
|
|
825
825
|
onRefresh: e(v)
|
|
826
826
|
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
827
827
|
onOpen: e(s)
|
|
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"
|
|
@@ -839,9 +839,9 @@ const Yl = /* @__PURE__ */ O({
|
|
|
839
839
|
"onUpdate:modelValue": d[0] || (d[0] = (L) => e(i).keyword = L),
|
|
840
840
|
placeholder: e(a)("placeholder.keyword"),
|
|
841
841
|
clearable: "",
|
|
842
|
-
onKeyup: d[1] || (d[1] =
|
|
842
|
+
onKeyup: d[1] || (d[1] = ye((L) => e(u)(), ["enter"])),
|
|
843
843
|
onClear: d[2] || (d[2] = (L) => e(u)())
|
|
844
|
-
}, null, 8, ["modelValue", "placeholder"]), l(
|
|
844
|
+
}, null, 8, ["modelValue", "placeholder"]), l(V, {
|
|
845
845
|
modelValue: e(i).status,
|
|
846
846
|
"onUpdate:modelValue": d[3] || (d[3] = (L) => e(i).status = L),
|
|
847
847
|
onChange: d[4] || (d[4] = (L) => e(u)())
|
|
@@ -853,7 +853,7 @@ const Yl = /* @__PURE__ */ O({
|
|
|
853
853
|
}, null, 8, ["label", "value"])), 64))]),
|
|
854
854
|
_: 1
|
|
855
855
|
}, 8, ["modelValue"]), l(e(de), {
|
|
856
|
-
disabled: e(
|
|
856
|
+
disabled: e(y),
|
|
857
857
|
onSearch: e(u)
|
|
858
858
|
}, null, 8, ["disabled", "onSearch"])]),
|
|
859
859
|
_: 1
|
|
@@ -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(Ve)],
|
|
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,61 +887,61 @@ 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), y = 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(y, "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 && y.modelValue && A(y.modelValue);
|
|
932
932
|
}), Le(
|
|
933
|
-
() =>
|
|
934
|
-
(
|
|
933
|
+
() => y.modelValue,
|
|
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
|
-
}), (
|
|
944
|
-
const d = r("el-checkbox"), p = r("el-space"), S = r("el-text"), g = r("el-divider"),
|
|
941
|
+
generateOption: A,
|
|
942
|
+
cleanChecked: _
|
|
943
|
+
}), (w, n) => {
|
|
944
|
+
const d = r("el-checkbox"), p = r("el-space"), S = r("el-text"), g = r("el-divider"), V = r("el-checkbox-group");
|
|
945
945
|
return M(), B("div", fl, [
|
|
946
946
|
l(p, { style: { "margin-bottom": "6px" } }, {
|
|
947
947
|
default: o(() => [
|
|
@@ -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)
|
|
@@ -998,11 +998,11 @@ const Yl = /* @__PURE__ */ O({
|
|
|
998
998
|
_: 2
|
|
999
999
|
}, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
|
|
1000
1000
|
l(g, { direction: "vertical" }),
|
|
1001
|
-
h.rules ? (M(), q(
|
|
1001
|
+
h.rules ? (M(), q(V, {
|
|
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
|
|
1034
|
-
for (const [k,
|
|
1035
|
-
|
|
1036
|
-
return
|
|
1032
|
+
}), Ee = (R, U) => {
|
|
1033
|
+
const x = R.__vccOpts || R;
|
|
1034
|
+
for (const [k, y] of U)
|
|
1035
|
+
x[k] = y;
|
|
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, y = 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
|
-
|
|
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
|
+
y.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"),
|
|
1071
|
+
const S = r("el-input"), g = r("el-form-item"), V = 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,
|
|
@@ -1090,7 +1090,7 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1090
1090
|
default: o(() => [
|
|
1091
1091
|
l(C, { gutter: 20 }, {
|
|
1092
1092
|
default: o(() => [
|
|
1093
|
-
l(
|
|
1093
|
+
l(V, { span: 12 }, {
|
|
1094
1094
|
default: o(() => [
|
|
1095
1095
|
l(g, {
|
|
1096
1096
|
label: e(a)("base.module"),
|
|
@@ -1108,7 +1108,7 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1108
1108
|
]),
|
|
1109
1109
|
_: 1
|
|
1110
1110
|
}),
|
|
1111
|
-
l(
|
|
1111
|
+
l(V, { span: 12 }, {
|
|
1112
1112
|
default: o(() => [
|
|
1113
1113
|
l(g, {
|
|
1114
1114
|
label: e(a)("base.sort"),
|
|
@@ -1177,7 +1177,7 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1177
1177
|
default: o(() => [
|
|
1178
1178
|
l(gl, {
|
|
1179
1179
|
ref_key: "rulesCheck",
|
|
1180
|
-
ref:
|
|
1180
|
+
ref: y,
|
|
1181
1181
|
modelValue: e(v).rules,
|
|
1182
1182
|
"onUpdate:modelValue": p[5] || (p[5] = (L) => e(v).rules = L),
|
|
1183
1183
|
disabled: e(s) || e(c)
|
|
@@ -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
|
-
} =
|
|
1245
|
-
tableRef:
|
|
1246
|
-
formModalRef:
|
|
1244
|
+
} = I(we), {
|
|
1245
|
+
tableRef: y,
|
|
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,16 +1266,16 @@ 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),
|
|
1276
1276
|
placeholder: e(a)("placeholder.keyword"),
|
|
1277
1277
|
clearable: "",
|
|
1278
|
-
onKeyup: f[1] || (f[1] =
|
|
1278
|
+
onKeyup: f[1] || (f[1] = ye((d) => e(i)(), ["enter"])),
|
|
1279
1279
|
onClear: f[2] || (f[2] = (d) => e(i)())
|
|
1280
1280
|
}, null, 8, ["modelValue", "placeholder"]), l(e(de), {
|
|
1281
1281
|
disabled: e(k),
|
|
@@ -1287,15 +1287,15 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1287
1287
|
})]),
|
|
1288
1288
|
default: o(() => [l(e(be), {
|
|
1289
1289
|
ref_key: "tableRef",
|
|
1290
|
-
ref:
|
|
1291
|
-
columns:
|
|
1292
|
-
url: e(we).urls[e(
|
|
1290
|
+
ref: y,
|
|
1291
|
+
columns: x,
|
|
1292
|
+
url: e(we).urls[e(Ve)],
|
|
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
|
|
1339
|
-
requesting:
|
|
1340
|
-
} =
|
|
1341
|
-
value:
|
|
1338
|
+
const x = U, k = R, {
|
|
1339
|
+
requesting: y
|
|
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,38 +1352,38 @@ 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
|
-
modelValue: e(
|
|
1356
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
1355
|
+
modelValue: e(b),
|
|
1356
|
+
"onUpdate:modelValue": s[1] || (s[1] = (_) => z(b) ? b.value = _ : null),
|
|
1357
1357
|
options: e(m),
|
|
1358
|
-
multiple:
|
|
1359
|
-
disabled: e(
|
|
1360
|
-
clearable:
|
|
1358
|
+
multiple: R.multiple,
|
|
1359
|
+
disabled: e(y) || R.disabled,
|
|
1360
|
+
clearable: R.clearable,
|
|
1361
1361
|
filterable: "",
|
|
1362
|
-
"allow-create":
|
|
1362
|
+
"allow-create": R.allowCreate,
|
|
1363
1363
|
"default-first-option": "",
|
|
1364
1364
|
placeholder: e(a)("placeholder.select"),
|
|
1365
|
-
filterOptions: e(
|
|
1365
|
+
filterOptions: e(t),
|
|
1366
1366
|
onChange: e(i)
|
|
1367
1367
|
}, {
|
|
1368
1368
|
prefix: o(() => [l(e(fe), {
|
|
1369
|
-
loading: e(
|
|
1370
|
-
onRefresh: s[0] || (s[0] = (
|
|
1369
|
+
loading: e(y),
|
|
1370
|
+
onRefresh: s[0] || (s[0] = (_) => e(u)(!0))
|
|
1371
1371
|
}, null, 8, ["loading"])]),
|
|
1372
1372
|
default: o(({
|
|
1373
|
-
item:
|
|
1373
|
+
item: _
|
|
1374
1374
|
}) => [l(c, null, {
|
|
1375
|
-
default: o(() => [j("span", null,
|
|
1375
|
+
default: o(() => [j("span", null, F(_.value), 1)]),
|
|
1376
1376
|
_: 2
|
|
1377
1377
|
}, 1024)]),
|
|
1378
1378
|
_: 1
|
|
1379
1379
|
}, 8, ["modelValue", "options", "multiple", "disabled", "clearable", "allow-create", "placeholder", "filterOptions", "onChange"]);
|
|
1380
1380
|
};
|
|
1381
1381
|
}
|
|
1382
|
-
}),
|
|
1382
|
+
}), yl = /* @__PURE__ */ O({
|
|
1383
1383
|
__name: "I18N",
|
|
1384
1384
|
emits: ["refresh"],
|
|
1385
|
-
setup(
|
|
1386
|
-
const k =
|
|
1385
|
+
setup(R, { expose: U, emit: x }) {
|
|
1386
|
+
const k = x, y = {
|
|
1387
1387
|
uuid: "",
|
|
1388
1388
|
key: "",
|
|
1389
1389
|
module: void 0,
|
|
@@ -1392,7 +1392,7 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1392
1392
|
"en-US": ""
|
|
1393
1393
|
},
|
|
1394
1394
|
remark: ""
|
|
1395
|
-
},
|
|
1395
|
+
}, b = {
|
|
1396
1396
|
module: [
|
|
1397
1397
|
{
|
|
1398
1398
|
required: !0,
|
|
@@ -1427,20 +1427,20 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1427
1427
|
});
|
|
1428
1428
|
}
|
|
1429
1429
|
u();
|
|
1430
|
-
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, y, W);
|
|
1431
1431
|
return U({
|
|
1432
|
-
open:
|
|
1433
|
-
modify:
|
|
1432
|
+
open: A,
|
|
1433
|
+
modify: w
|
|
1434
1434
|
}), (p, S) => {
|
|
1435
|
-
const g = r("el-form-item"),
|
|
1435
|
+
const g = r("el-form-item"), V = r("el-input"), h = r("el-space"), C = r("el-form");
|
|
1436
1436
|
return M(), q(e(oe), {
|
|
1437
|
-
modelValue: e(
|
|
1438
|
-
"onUpdate:modelValue": S[3] || (S[3] = (
|
|
1437
|
+
modelValue: e(t),
|
|
1438
|
+
"onUpdate:modelValue": S[3] || (S[3] = (D) => z(t) ? t.value = D : null),
|
|
1439
1439
|
title: e(v)(),
|
|
1440
1440
|
width: "600px",
|
|
1441
|
-
executing: e(
|
|
1441
|
+
executing: e(_),
|
|
1442
1442
|
onClosed: e(d),
|
|
1443
|
-
onSubmit: e(
|
|
1443
|
+
onSubmit: e(n)
|
|
1444
1444
|
}, {
|
|
1445
1445
|
default: o(() => [
|
|
1446
1446
|
l(C, {
|
|
@@ -1448,8 +1448,8 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1448
1448
|
ref: s,
|
|
1449
1449
|
model: e(c),
|
|
1450
1450
|
"label-width": "auto",
|
|
1451
|
-
rules:
|
|
1452
|
-
disabled: e(f) || e(
|
|
1451
|
+
rules: b,
|
|
1452
|
+
disabled: e(f) || e(_)
|
|
1453
1453
|
}, {
|
|
1454
1454
|
default: o(() => [
|
|
1455
1455
|
l(g, {
|
|
@@ -1460,8 +1460,8 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1460
1460
|
default: o(() => [
|
|
1461
1461
|
l(Fe, {
|
|
1462
1462
|
modelValue: e(c).module,
|
|
1463
|
-
"onUpdate:modelValue": S[0] || (S[0] = (
|
|
1464
|
-
disabled: e(
|
|
1463
|
+
"onUpdate:modelValue": S[0] || (S[0] = (D) => e(c).module = D),
|
|
1464
|
+
disabled: e(_),
|
|
1465
1465
|
"allow-create": ""
|
|
1466
1466
|
}, null, 8, ["modelValue", "disabled"])
|
|
1467
1467
|
]),
|
|
@@ -1473,9 +1473,9 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1473
1473
|
required: ""
|
|
1474
1474
|
}, {
|
|
1475
1475
|
default: o(() => [
|
|
1476
|
-
l(
|
|
1476
|
+
l(V, {
|
|
1477
1477
|
modelValue: e(c).key,
|
|
1478
|
-
"onUpdate:modelValue": S[1] || (S[1] = (
|
|
1478
|
+
"onUpdate:modelValue": S[1] || (S[1] = (D) => e(c).key = D),
|
|
1479
1479
|
placeholder: e(a)("i18n.placeholder.key")
|
|
1480
1480
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1481
1481
|
]),
|
|
@@ -1493,14 +1493,14 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1493
1493
|
style: { width: "100%" }
|
|
1494
1494
|
}, {
|
|
1495
1495
|
default: o(() => [
|
|
1496
|
-
(M(!0), B(G, null, ae(m.value, (
|
|
1497
|
-
l(
|
|
1498
|
-
modelValue: e(c).language[
|
|
1499
|
-
"onUpdate:modelValue": (L) => e(c).language[
|
|
1496
|
+
(M(!0), B(G, null, ae(m.value, (D) => (M(), B("div", { key: D }, [
|
|
1497
|
+
l(V, {
|
|
1498
|
+
modelValue: e(c).language[D],
|
|
1499
|
+
"onUpdate:modelValue": (L) => e(c).language[D] = L,
|
|
1500
1500
|
placeholder: e(a)("i18n.placeholder.language")
|
|
1501
1501
|
}, {
|
|
1502
1502
|
prepend: o(() => [
|
|
1503
|
-
|
|
1503
|
+
Q(F(D), 1)
|
|
1504
1504
|
]),
|
|
1505
1505
|
_: 2
|
|
1506
1506
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
@@ -1516,9 +1516,9 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1516
1516
|
prop: "remark"
|
|
1517
1517
|
}, {
|
|
1518
1518
|
default: o(() => [
|
|
1519
|
-
l(
|
|
1519
|
+
l(V, {
|
|
1520
1520
|
modelValue: e(c).remark,
|
|
1521
|
-
"onUpdate:modelValue": S[2] || (S[2] = (
|
|
1521
|
+
"onUpdate:modelValue": S[2] || (S[2] = (D) => e(c).remark = D),
|
|
1522
1522
|
placeholder: e(a)("placeholder.remark")
|
|
1523
1523
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1524
1524
|
]),
|
|
@@ -1533,19 +1533,19 @@ const Yl = /* @__PURE__ */ O({
|
|
|
1533
1533
|
};
|
|
1534
1534
|
}
|
|
1535
1535
|
});
|
|
1536
|
-
function
|
|
1537
|
-
return typeof
|
|
1536
|
+
function Vl(R) {
|
|
1537
|
+
return typeof R == "function" || Object.prototype.toString.call(R) === "[object Object]" && !De(R);
|
|
1538
1538
|
}
|
|
1539
1539
|
const ze = /* @__PURE__ */ O({
|
|
1540
1540
|
__name: "I18N",
|
|
1541
1541
|
emits: ["closed", "choosed"],
|
|
1542
|
-
setup(
|
|
1542
|
+
setup(R, {
|
|
1543
1543
|
expose: U,
|
|
1544
|
-
emit:
|
|
1544
|
+
emit: x
|
|
1545
1545
|
}) {
|
|
1546
|
-
const k =
|
|
1547
|
-
visible:
|
|
1548
|
-
open:
|
|
1546
|
+
const k = x, {
|
|
1547
|
+
visible: y,
|
|
1548
|
+
open: b,
|
|
1549
1549
|
close: m
|
|
1550
1550
|
} = xe(void 0, () => k("closed")), i = {
|
|
1551
1551
|
keyword: "",
|
|
@@ -1567,7 +1567,7 @@ const ze = /* @__PURE__ */ O({
|
|
|
1567
1567
|
row: g
|
|
1568
1568
|
}) => {
|
|
1569
1569
|
const h = Object.keys(g.language).filter((C) => !!g.language[C]).map((C) => `${C}: ${g.language[C]}`).join("; ");
|
|
1570
|
-
return l(r("el-space"), null,
|
|
1570
|
+
return l(r("el-space"), null, Vl(h) ? h : {
|
|
1571
1571
|
default: () => [h]
|
|
1572
1572
|
});
|
|
1573
1573
|
}
|
|
@@ -1590,12 +1590,12 @@ const ze = /* @__PURE__ */ O({
|
|
|
1590
1590
|
render: ({
|
|
1591
1591
|
row: g
|
|
1592
1592
|
}) => l(r("el-space"), null, {
|
|
1593
|
-
default: () => [l(
|
|
1593
|
+
default: () => [l(te, {
|
|
1594
1594
|
size: "default",
|
|
1595
1595
|
onModify: () => d({
|
|
1596
1596
|
uuid: g.uuid
|
|
1597
1597
|
})
|
|
1598
|
-
}, null), l(
|
|
1598
|
+
}, null), l(Z, {
|
|
1599
1599
|
size: "default",
|
|
1600
1600
|
text: !0,
|
|
1601
1601
|
type: "danger",
|
|
@@ -1604,36 +1604,36 @@ const ze = /* @__PURE__ */ O({
|
|
|
1604
1604
|
}, null)]
|
|
1605
1605
|
})
|
|
1606
1606
|
}], {
|
|
1607
|
-
requesting:
|
|
1607
|
+
requesting: t,
|
|
1608
1608
|
executing: v
|
|
1609
|
-
} =
|
|
1609
|
+
} = I(W), {
|
|
1610
1610
|
tableRef: s,
|
|
1611
1611
|
formModalRef: c,
|
|
1612
1612
|
keyword: f,
|
|
1613
|
-
search:
|
|
1614
|
-
reset:
|
|
1615
|
-
refresh:
|
|
1616
|
-
openFormModal:
|
|
1613
|
+
search: _,
|
|
1614
|
+
reset: A,
|
|
1615
|
+
refresh: w,
|
|
1616
|
+
openFormModal: n,
|
|
1617
1617
|
editFormModal: d
|
|
1618
|
-
} =
|
|
1618
|
+
} = X(i);
|
|
1619
1619
|
async function p(g) {
|
|
1620
1620
|
return W.remove({
|
|
1621
1621
|
uuid: g
|
|
1622
1622
|
}).finally(() => {
|
|
1623
|
-
|
|
1623
|
+
w();
|
|
1624
1624
|
});
|
|
1625
1625
|
}
|
|
1626
1626
|
function S(g) {
|
|
1627
1627
|
k("choosed", g);
|
|
1628
1628
|
}
|
|
1629
1629
|
return U({
|
|
1630
|
-
open:
|
|
1631
|
-
}), (g,
|
|
1632
|
-
const h = r("el-input"), C = r("el-radio-button"),
|
|
1630
|
+
open: b
|
|
1631
|
+
}), (g, V) => {
|
|
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");
|
|
1633
1633
|
return M(), q(e(_e), {
|
|
1634
1634
|
class: "basic-drawer",
|
|
1635
|
-
modelValue: e(
|
|
1636
|
-
"onUpdate:modelValue":
|
|
1635
|
+
modelValue: e(y),
|
|
1636
|
+
"onUpdate:modelValue": V[7] || (V[7] = ($) => z(y) ? y.value = $ : null),
|
|
1637
1637
|
width: "880px",
|
|
1638
1638
|
"show-close": !1,
|
|
1639
1639
|
onClosed: e(m)
|
|
@@ -1642,12 +1642,12 @@ const ze = /* @__PURE__ */ O({
|
|
|
1642
1642
|
class: "basic-header"
|
|
1643
1643
|
}, {
|
|
1644
1644
|
title: o(() => [l(e(K), {
|
|
1645
|
-
loading: e(
|
|
1645
|
+
loading: e(t),
|
|
1646
1646
|
disabled: e(v),
|
|
1647
|
-
onRefresh: e(
|
|
1647
|
+
onRefresh: e(A)
|
|
1648
1648
|
}, null, 8, ["loading", "disabled", "onRefresh"]), l(e(P), {
|
|
1649
|
-
onOpen: e(
|
|
1650
|
-
disabled: e(
|
|
1649
|
+
onOpen: e(n),
|
|
1650
|
+
disabled: e(t) || e(v)
|
|
1651
1651
|
}, null, 8, ["onOpen", "disabled"])]),
|
|
1652
1652
|
content: o(() => [l(L, {
|
|
1653
1653
|
class: "search-bar"
|
|
@@ -1657,25 +1657,25 @@ const ze = /* @__PURE__ */ O({
|
|
|
1657
1657
|
width: "160px"
|
|
1658
1658
|
},
|
|
1659
1659
|
modelValue: e(f).keyword,
|
|
1660
|
-
"onUpdate:modelValue":
|
|
1661
|
-
disabled: e(
|
|
1660
|
+
"onUpdate:modelValue": V[0] || (V[0] = ($) => e(f).keyword = $),
|
|
1661
|
+
disabled: e(t),
|
|
1662
1662
|
placeholder: e(a)("placeholder.keyword"),
|
|
1663
1663
|
clearable: "",
|
|
1664
|
-
onKeyup:
|
|
1665
|
-
onClear:
|
|
1664
|
+
onKeyup: V[1] || (V[1] = ye(($) => e(_)(), ["enter"])),
|
|
1665
|
+
onClear: V[2] || (V[2] = ($) => e(_)())
|
|
1666
1666
|
}, null, 8, ["modelValue", "disabled", "placeholder"]), l(Fe, {
|
|
1667
1667
|
modelValue: e(f).module,
|
|
1668
|
-
"onUpdate:modelValue":
|
|
1668
|
+
"onUpdate:modelValue": V[3] || (V[3] = ($) => e(f).module = $),
|
|
1669
1669
|
clearable: !0,
|
|
1670
|
-
disabled: e(
|
|
1670
|
+
disabled: e(t),
|
|
1671
1671
|
style: {
|
|
1672
1672
|
width: "160px"
|
|
1673
1673
|
}
|
|
1674
|
-
}, null, 8, ["modelValue", "disabled"]), l(
|
|
1674
|
+
}, null, 8, ["modelValue", "disabled"]), l(D, {
|
|
1675
1675
|
modelValue: e(f).status,
|
|
1676
|
-
"onUpdate:modelValue":
|
|
1677
|
-
onChange:
|
|
1678
|
-
disabled: e(
|
|
1676
|
+
"onUpdate:modelValue": V[4] || (V[4] = ($) => e(f).status = $),
|
|
1677
|
+
onChange: V[5] || (V[5] = ($) => e(_)()),
|
|
1678
|
+
disabled: e(t)
|
|
1679
1679
|
}, {
|
|
1680
1680
|
default: o(() => [(M(), B(G, null, ae([0, 1, 2], ($) => l(C, {
|
|
1681
1681
|
key: $,
|
|
@@ -1684,8 +1684,8 @@ const ze = /* @__PURE__ */ O({
|
|
|
1684
1684
|
}, null, 8, ["label", "value"])), 64))]),
|
|
1685
1685
|
_: 1
|
|
1686
1686
|
}, 8, ["modelValue", "disabled"]), l(e(de), {
|
|
1687
|
-
disabled: e(
|
|
1688
|
-
onSearch:
|
|
1687
|
+
disabled: e(t),
|
|
1688
|
+
onSearch: V[6] || (V[6] = ($) => e(_)())
|
|
1689
1689
|
}, null, 8, ["disabled"])]),
|
|
1690
1690
|
_: 1
|
|
1691
1691
|
})]),
|
|
@@ -1695,14 +1695,14 @@ const ze = /* @__PURE__ */ O({
|
|
|
1695
1695
|
ref_key: "tableRef",
|
|
1696
1696
|
ref: s,
|
|
1697
1697
|
columns: u,
|
|
1698
|
-
url: e(W).urls[e(
|
|
1698
|
+
url: e(W).urls[e(Ve)],
|
|
1699
1699
|
"search-param": e(f),
|
|
1700
1700
|
onRowDblclick: S,
|
|
1701
1701
|
"auto-search": ""
|
|
1702
|
-
}, null, 8, ["url", "search-param"]), l(
|
|
1702
|
+
}, null, 8, ["url", "search-param"]), l(yl, {
|
|
1703
1703
|
ref_key: "formModalRef",
|
|
1704
1704
|
ref: c,
|
|
1705
|
-
onRefresh: e(
|
|
1705
|
+
onRefresh: e(w)
|
|
1706
1706
|
}, null, 8, ["onRefresh"])]),
|
|
1707
1707
|
_: 1
|
|
1708
1708
|
}, 8, ["modelValue", "onClosed"]);
|
|
@@ -1711,11 +1711,11 @@ const ze = /* @__PURE__ */ O({
|
|
|
1711
1711
|
}), kl = { key: 0 }, vl = { key: 1 }, wl = /* @__PURE__ */ O({
|
|
1712
1712
|
__name: "template",
|
|
1713
1713
|
emits: ["refresh"],
|
|
1714
|
-
setup(
|
|
1715
|
-
const k = He(),
|
|
1714
|
+
setup(R, { expose: U, emit: x }) {
|
|
1715
|
+
const k = He(), y = () => k.value?.open(), b = x, m = H("600px"), i = H({
|
|
1716
1716
|
"zh-CN": "primary",
|
|
1717
1717
|
"en-US": "success"
|
|
1718
|
-
}), u = H({}),
|
|
1718
|
+
}), u = H({}), t = {
|
|
1719
1719
|
uuid: "",
|
|
1720
1720
|
app: 1,
|
|
1721
1721
|
keys: "",
|
|
@@ -1743,24 +1743,24 @@ const ze = /* @__PURE__ */ O({
|
|
|
1743
1743
|
trigger: "change"
|
|
1744
1744
|
}
|
|
1745
1745
|
]
|
|
1746
|
-
}, { 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);
|
|
1747
1747
|
function g() {
|
|
1748
|
-
m.value = "1080px",
|
|
1748
|
+
m.value = "1080px", y();
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function V() {
|
|
1751
1751
|
m.value = "600px";
|
|
1752
1752
|
}
|
|
1753
1753
|
function h(L) {
|
|
1754
1754
|
let T = L?.module?.toLowerCase() + "." + L.key.toLowerCase();
|
|
1755
|
-
|
|
1755
|
+
_.keys = T, _.values.push(T);
|
|
1756
1756
|
for (const $ in L.language)
|
|
1757
1757
|
u.value[$] || (u.value[$] = []), u.value[$].push(L.language[$]);
|
|
1758
1758
|
}
|
|
1759
1759
|
function C() {
|
|
1760
|
-
m.value = "600px",
|
|
1760
|
+
m.value = "600px", D();
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1763
|
-
|
|
1762
|
+
function D() {
|
|
1763
|
+
_.keys = "", _.values = [], u.value = {
|
|
1764
1764
|
"zh-CN": [],
|
|
1765
1765
|
"en-US": []
|
|
1766
1766
|
};
|
|
@@ -1768,13 +1768,13 @@ const ze = /* @__PURE__ */ O({
|
|
|
1768
1768
|
return Le(() => s.value, (L) => {
|
|
1769
1769
|
L ? C() : S();
|
|
1770
1770
|
}), U({
|
|
1771
|
-
open:
|
|
1771
|
+
open: n,
|
|
1772
1772
|
modify: d
|
|
1773
1773
|
}), (L, T) => {
|
|
1774
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");
|
|
1775
1775
|
return M(), q(e(_e), {
|
|
1776
1776
|
modelValue: e(s),
|
|
1777
|
-
"onUpdate:modelValue": T[3] || (T[3] = (
|
|
1777
|
+
"onUpdate:modelValue": T[3] || (T[3] = (ee) => z(s) ? s.value = ee : null),
|
|
1778
1778
|
width: m.value,
|
|
1779
1779
|
"show-close": !1,
|
|
1780
1780
|
class: "basic-drawer"
|
|
@@ -1782,23 +1782,23 @@ const ze = /* @__PURE__ */ O({
|
|
|
1782
1782
|
title: o(() => [
|
|
1783
1783
|
l($, { class: "basic-header" }, {
|
|
1784
1784
|
title: o(() => [
|
|
1785
|
-
|
|
1785
|
+
Q(F(e(c)("i18n.template")), 1)
|
|
1786
1786
|
]),
|
|
1787
1787
|
extra: o(() => [
|
|
1788
|
-
l(e(
|
|
1788
|
+
l(e(Z), {
|
|
1789
1789
|
size: "default",
|
|
1790
1790
|
type: "default",
|
|
1791
1791
|
icon: "icon-clear",
|
|
1792
|
-
loading: e(
|
|
1793
|
-
onClick:
|
|
1792
|
+
loading: e(w),
|
|
1793
|
+
onClick: D
|
|
1794
1794
|
}, null, 8, ["loading"]),
|
|
1795
|
-
l(e(
|
|
1795
|
+
l(e(Z), {
|
|
1796
1796
|
circle: !1,
|
|
1797
1797
|
size: "default",
|
|
1798
1798
|
type: "primary",
|
|
1799
1799
|
icon: "icon-save",
|
|
1800
1800
|
plain: !1,
|
|
1801
|
-
loading: e(
|
|
1801
|
+
loading: e(w),
|
|
1802
1802
|
onClick: e(p)
|
|
1803
1803
|
}, null, 8, ["loading", "onClick"])
|
|
1804
1804
|
]),
|
|
@@ -1809,10 +1809,10 @@ const ze = /* @__PURE__ */ O({
|
|
|
1809
1809
|
l(je, {
|
|
1810
1810
|
ref_key: "form",
|
|
1811
1811
|
ref: f,
|
|
1812
|
-
model: e(
|
|
1812
|
+
model: e(_),
|
|
1813
1813
|
"label-width": "auto",
|
|
1814
1814
|
rules: v,
|
|
1815
|
-
disabled: e(
|
|
1815
|
+
disabled: e(A) || e(w)
|
|
1816
1816
|
}, {
|
|
1817
1817
|
default: o(() => [
|
|
1818
1818
|
l(se, {
|
|
@@ -1822,8 +1822,8 @@ const ze = /* @__PURE__ */ O({
|
|
|
1822
1822
|
}, {
|
|
1823
1823
|
default: o(() => [
|
|
1824
1824
|
l(e(qe), {
|
|
1825
|
-
modelValue: e(
|
|
1826
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
1825
|
+
modelValue: e(_).app,
|
|
1826
|
+
"onUpdate:modelValue": T[0] || (T[0] = (ee) => e(_).app = ee),
|
|
1827
1827
|
"cache-key": "I18NAPPS",
|
|
1828
1828
|
hidden: [0],
|
|
1829
1829
|
url: e(ue).urls.apps
|
|
@@ -1838,8 +1838,8 @@ const ze = /* @__PURE__ */ O({
|
|
|
1838
1838
|
}, {
|
|
1839
1839
|
default: o(() => [
|
|
1840
1840
|
l(N, {
|
|
1841
|
-
modelValue: e(
|
|
1842
|
-
"onUpdate:modelValue": T[1] || (T[1] = (
|
|
1841
|
+
modelValue: e(_).keys,
|
|
1842
|
+
"onUpdate:modelValue": T[1] || (T[1] = (ee) => e(_).keys = ee),
|
|
1843
1843
|
placeholder: e(a)("i18n.placeholder.key")
|
|
1844
1844
|
}, {
|
|
1845
1845
|
append: o(() => [
|
|
@@ -1859,7 +1859,7 @@ const ze = /* @__PURE__ */ O({
|
|
|
1859
1859
|
required: ""
|
|
1860
1860
|
}, {
|
|
1861
1861
|
default: o(() => [
|
|
1862
|
-
|
|
1862
|
+
Q(F(e(_).values.join(":")), 1)
|
|
1863
1863
|
]),
|
|
1864
1864
|
_: 1
|
|
1865
1865
|
}, 8, ["label"]),
|
|
@@ -1867,7 +1867,7 @@ const ze = /* @__PURE__ */ O({
|
|
|
1867
1867
|
label: e(a)("i18n.values")
|
|
1868
1868
|
}, {
|
|
1869
1869
|
default: o(() => [
|
|
1870
|
-
(M(!0), B(G, null, ae(u.value, (
|
|
1870
|
+
(M(!0), B(G, null, ae(u.value, (ee, ke) => (M(), B("div", {
|
|
1871
1871
|
key: ke,
|
|
1872
1872
|
class: "w-full"
|
|
1873
1873
|
}, [
|
|
@@ -1878,11 +1878,11 @@ const ze = /* @__PURE__ */ O({
|
|
|
1878
1878
|
style: { "min-width": "80px" }
|
|
1879
1879
|
}, {
|
|
1880
1880
|
default: o(() => [
|
|
1881
|
-
|
|
1881
|
+
Q(F(ke), 1)
|
|
1882
1882
|
]),
|
|
1883
1883
|
_: 2
|
|
1884
1884
|
}, 1032, ["type"]),
|
|
1885
|
-
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))
|
|
1886
1886
|
]),
|
|
1887
1887
|
_: 2
|
|
1888
1888
|
}, 1024)
|
|
@@ -1896,8 +1896,8 @@ const ze = /* @__PURE__ */ O({
|
|
|
1896
1896
|
}, {
|
|
1897
1897
|
default: o(() => [
|
|
1898
1898
|
l(N, {
|
|
1899
|
-
modelValue: e(
|
|
1900
|
-
"onUpdate:modelValue": T[2] || (T[2] = (
|
|
1899
|
+
modelValue: e(_).remark,
|
|
1900
|
+
"onUpdate:modelValue": T[2] || (T[2] = (ee) => e(_).remark = ee),
|
|
1901
1901
|
placeholder: e(a)("placeholder.input")
|
|
1902
1902
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1903
1903
|
]),
|
|
@@ -1910,7 +1910,7 @@ const ze = /* @__PURE__ */ O({
|
|
|
1910
1910
|
ref_key: "I18nTableDrawerRef",
|
|
1911
1911
|
ref: k,
|
|
1912
1912
|
onChoosed: h,
|
|
1913
|
-
onClosed:
|
|
1913
|
+
onClosed: V
|
|
1914
1914
|
}, null, 512)
|
|
1915
1915
|
]),
|
|
1916
1916
|
_: 1
|
|
@@ -1920,47 +1920,47 @@ const ze = /* @__PURE__ */ O({
|
|
|
1920
1920
|
}), xl = Y.routineApi("gateway", "id", {
|
|
1921
1921
|
gen: "gen_translation"
|
|
1922
1922
|
});
|
|
1923
|
-
function Rl(
|
|
1924
|
-
return typeof
|
|
1923
|
+
function Rl(R) {
|
|
1924
|
+
return typeof R == "function" || Object.prototype.toString.call(R) === "[object Object]" && !De(R);
|
|
1925
1925
|
}
|
|
1926
1926
|
const Ql = /* @__PURE__ */ O({
|
|
1927
1927
|
__name: "index",
|
|
1928
|
-
setup(
|
|
1929
|
-
const U = ze,
|
|
1928
|
+
setup(R) {
|
|
1929
|
+
const U = ze, x = wl, k = {
|
|
1930
1930
|
keyword: "",
|
|
1931
1931
|
app: 0,
|
|
1932
1932
|
status: 0
|
|
1933
|
-
},
|
|
1934
|
-
row:
|
|
1933
|
+
}, y = ({
|
|
1934
|
+
row: V
|
|
1935
1935
|
}) => {
|
|
1936
1936
|
let h;
|
|
1937
1937
|
return l(r("el-tag"), {
|
|
1938
|
-
type: a("i18n.app.colors." +
|
|
1938
|
+
type: a("i18n.app.colors." + V.app),
|
|
1939
1939
|
style: "min-width: 80px"
|
|
1940
|
-
}, Rl(h = a("i18n.app." +
|
|
1940
|
+
}, Rl(h = a("i18n.app." + V.app)) ? h : {
|
|
1941
1941
|
default: () => [h]
|
|
1942
1942
|
});
|
|
1943
|
-
},
|
|
1944
|
-
row:
|
|
1943
|
+
}, b = ({
|
|
1944
|
+
row: V
|
|
1945
1945
|
}) => l(r("el-space"), null, {
|
|
1946
|
-
default: () => [l(
|
|
1946
|
+
default: () => [l(te, {
|
|
1947
1947
|
size: "default",
|
|
1948
1948
|
disabled: u.value,
|
|
1949
|
-
onModify: () =>
|
|
1950
|
-
uuid:
|
|
1949
|
+
onModify: () => n({
|
|
1950
|
+
uuid: V.uuid
|
|
1951
1951
|
})
|
|
1952
|
-
}, null), l(
|
|
1952
|
+
}, null), l(Z, {
|
|
1953
1953
|
size: "default",
|
|
1954
1954
|
text: !0,
|
|
1955
1955
|
type: "danger",
|
|
1956
1956
|
loading: u.value,
|
|
1957
|
-
onClick: () => p(
|
|
1957
|
+
onClick: () => p(V.uuid)
|
|
1958
1958
|
}, null)]
|
|
1959
1959
|
}), m = [{
|
|
1960
1960
|
label: a("base.app"),
|
|
1961
1961
|
prop: "app",
|
|
1962
1962
|
width: 120,
|
|
1963
|
-
render:
|
|
1963
|
+
render: y
|
|
1964
1964
|
}, {
|
|
1965
1965
|
label: a("i18n.keys"),
|
|
1966
1966
|
prop: "keys",
|
|
@@ -1997,41 +1997,41 @@ const Ql = /* @__PURE__ */ O({
|
|
|
1997
1997
|
label: a("base.action"),
|
|
1998
1998
|
width: 120,
|
|
1999
1999
|
align: "center",
|
|
2000
|
-
render:
|
|
2000
|
+
render: b
|
|
2001
2001
|
}], {
|
|
2002
2002
|
requesting: i,
|
|
2003
2003
|
executing: u
|
|
2004
|
-
} =
|
|
2005
|
-
tableRef:
|
|
2004
|
+
} = I(ue), {
|
|
2005
|
+
tableRef: t,
|
|
2006
2006
|
formModalRef: v,
|
|
2007
2007
|
dialogRef: s,
|
|
2008
2008
|
keyword: c,
|
|
2009
2009
|
search: f,
|
|
2010
|
-
reset:
|
|
2011
|
-
refresh:
|
|
2012
|
-
openFormModal:
|
|
2013
|
-
editFormModal:
|
|
2010
|
+
reset: _,
|
|
2011
|
+
refresh: A,
|
|
2012
|
+
openFormModal: w,
|
|
2013
|
+
editFormModal: n,
|
|
2014
2014
|
openDialog: d
|
|
2015
|
-
} =
|
|
2016
|
-
function p(
|
|
2015
|
+
} = X(k);
|
|
2016
|
+
function p(V) {
|
|
2017
2017
|
return ue.remove({
|
|
2018
|
-
uuid:
|
|
2018
|
+
uuid: V
|
|
2019
2019
|
}).finally(() => {
|
|
2020
|
-
|
|
2020
|
+
A();
|
|
2021
2021
|
});
|
|
2022
2022
|
}
|
|
2023
2023
|
function S() {
|
|
2024
2024
|
return W.gen().finally(() => {
|
|
2025
|
-
|
|
2025
|
+
A();
|
|
2026
2026
|
});
|
|
2027
2027
|
}
|
|
2028
2028
|
function g() {
|
|
2029
2029
|
xl.gen().finally(() => {
|
|
2030
|
-
|
|
2030
|
+
A();
|
|
2031
2031
|
});
|
|
2032
2032
|
}
|
|
2033
|
-
return (
|
|
2034
|
-
const C = r("el-input"),
|
|
2033
|
+
return (V, h) => {
|
|
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");
|
|
2035
2035
|
return M(), q(Re, {
|
|
2036
2036
|
class: "basic-card flex-full",
|
|
2037
2037
|
"body-class": "flex-1"
|
|
@@ -2041,9 +2041,9 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2041
2041
|
}, {
|
|
2042
2042
|
title: o(() => [l(e(K), {
|
|
2043
2043
|
loading: e(i),
|
|
2044
|
-
onRefresh: e(
|
|
2044
|
+
onRefresh: e(_)
|
|
2045
2045
|
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
2046
|
-
onOpen: e(
|
|
2046
|
+
onOpen: e(w)
|
|
2047
2047
|
}, null, 8, ["onOpen"])]),
|
|
2048
2048
|
content: o(() => [l(T, {
|
|
2049
2049
|
class: "search-bar"
|
|
@@ -2055,7 +2055,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2055
2055
|
disabled: e(i) || e(u),
|
|
2056
2056
|
placeholder: e(a)("placeholder.keyword"),
|
|
2057
2057
|
clearable: "",
|
|
2058
|
-
onKeyup: h[1] || (h[1] =
|
|
2058
|
+
onKeyup: h[1] || (h[1] = ye((N) => e(f)(), ["enter"])),
|
|
2059
2059
|
onClear: h[2] || (h[2] = (N) => e(f)())
|
|
2060
2060
|
}, null, 8, ["modelValue", "disabled", "placeholder"]), l(e(qe), {
|
|
2061
2061
|
modelValue: e(c).app,
|
|
@@ -2070,7 +2070,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2070
2070
|
disabled: e(i) || e(u),
|
|
2071
2071
|
onChange: h[6] || (h[6] = (N) => e(f)())
|
|
2072
2072
|
}, {
|
|
2073
|
-
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, {
|
|
2074
2074
|
key: N,
|
|
2075
2075
|
label: e(a)(`status.${N}`),
|
|
2076
2076
|
value: N
|
|
@@ -2082,14 +2082,14 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2082
2082
|
}, null, 8, ["disabled"])]),
|
|
2083
2083
|
_: 1
|
|
2084
2084
|
})]),
|
|
2085
|
-
extra: o(() => [l(e(
|
|
2085
|
+
extra: o(() => [l(e(Z), {
|
|
2086
2086
|
size: "default",
|
|
2087
2087
|
type: "warning",
|
|
2088
2088
|
icon: "icon-cloud-upload",
|
|
2089
2089
|
plain: !1,
|
|
2090
2090
|
loading: e(u),
|
|
2091
2091
|
onClick: S
|
|
2092
|
-
}, null, 8, ["loading"]), l(e(
|
|
2092
|
+
}, null, 8, ["loading"]), l(e(Z), {
|
|
2093
2093
|
size: "default",
|
|
2094
2094
|
type: "danger",
|
|
2095
2095
|
icon: "icon-translate",
|
|
@@ -2106,18 +2106,18 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2106
2106
|
})]),
|
|
2107
2107
|
default: o(() => [l(e(be), {
|
|
2108
2108
|
ref_key: "tableRef",
|
|
2109
|
-
ref:
|
|
2109
|
+
ref: t,
|
|
2110
2110
|
columns: m,
|
|
2111
|
-
url: e(ue).urls[e(
|
|
2111
|
+
url: e(ue).urls[e(Ve)],
|
|
2112
2112
|
"search-param": e(c),
|
|
2113
2113
|
"auto-search": ""
|
|
2114
2114
|
}, null, 8, ["url", "search-param"]), l(e(U), {
|
|
2115
2115
|
ref_key: "I18nTableDrawerRef",
|
|
2116
2116
|
ref: s
|
|
2117
|
-
}, null, 512), l(e(
|
|
2117
|
+
}, null, 512), l(e(x), {
|
|
2118
2118
|
ref_key: "formModalRef",
|
|
2119
2119
|
ref: v,
|
|
2120
|
-
onRefresh: e(
|
|
2120
|
+
onRefresh: e(A)
|
|
2121
2121
|
}, null, 8, ["onRefresh"])]),
|
|
2122
2122
|
_: 1
|
|
2123
2123
|
});
|
|
@@ -2126,8 +2126,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2126
2126
|
}), Ue = Y.routineApi("admin", "key"), Ul = /* @__PURE__ */ O({
|
|
2127
2127
|
__name: "AdminFormModal",
|
|
2128
2128
|
emits: ["refresh"],
|
|
2129
|
-
setup(
|
|
2130
|
-
const k =
|
|
2129
|
+
setup(R, { expose: U, emit: x }) {
|
|
2130
|
+
const k = x, y = {
|
|
2131
2131
|
key: "",
|
|
2132
2132
|
username: "",
|
|
2133
2133
|
password: "",
|
|
@@ -2136,7 +2136,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2136
2136
|
language: "zh-CN",
|
|
2137
2137
|
remark: "",
|
|
2138
2138
|
roles: []
|
|
2139
|
-
}, { modal:
|
|
2139
|
+
}, { modal: b, title: m, form: i, formData: u, requesting: t, executing: v, open: s, modify: c, submit: f, closed: _ } = le(k, y, Ue), A = {
|
|
2140
2140
|
username: [
|
|
2141
2141
|
{
|
|
2142
2142
|
required: !0,
|
|
@@ -2181,24 +2181,24 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2181
2181
|
trigger: "change"
|
|
2182
2182
|
}
|
|
2183
2183
|
]
|
|
2184
|
-
},
|
|
2184
|
+
}, w = H([]), n = async () => {
|
|
2185
2185
|
const d = await we.list();
|
|
2186
|
-
|
|
2186
|
+
w.value = Array.isArray(d?.data) ? d.data : [];
|
|
2187
2187
|
};
|
|
2188
2188
|
return Qe(async () => {
|
|
2189
|
-
await
|
|
2189
|
+
await n();
|
|
2190
2190
|
}), U({
|
|
2191
2191
|
open: s,
|
|
2192
2192
|
modify: c
|
|
2193
2193
|
}), (d, p) => {
|
|
2194
|
-
const S = r("el-input"), g = r("el-form-item"),
|
|
2194
|
+
const S = r("el-input"), g = r("el-form-item"), V = r("el-radio-button"), h = r("el-radio-group"), C = r("el-checkbox"), D = r("el-checkbox-group"), L = r("el-form");
|
|
2195
2195
|
return M(), q(e(oe), {
|
|
2196
|
-
modelValue: e(
|
|
2197
|
-
"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),
|
|
2198
2198
|
title: e(m)(),
|
|
2199
2199
|
width: "600px",
|
|
2200
2200
|
executing: e(v),
|
|
2201
|
-
onClosed: e(
|
|
2201
|
+
onClosed: e(_),
|
|
2202
2202
|
onSubmit: e(f)
|
|
2203
2203
|
}, {
|
|
2204
2204
|
default: o(() => [
|
|
@@ -2207,8 +2207,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2207
2207
|
ref: i,
|
|
2208
2208
|
model: e(u),
|
|
2209
2209
|
"label-width": "auto",
|
|
2210
|
-
rules:
|
|
2211
|
-
disabled: e(
|
|
2210
|
+
rules: A,
|
|
2211
|
+
disabled: e(t) || e(v)
|
|
2212
2212
|
}, {
|
|
2213
2213
|
default: o(() => [
|
|
2214
2214
|
l(g, {
|
|
@@ -2278,15 +2278,15 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2278
2278
|
"onUpdate:modelValue": p[4] || (p[4] = (T) => e(u).language = T)
|
|
2279
2279
|
}, {
|
|
2280
2280
|
default: o(() => [
|
|
2281
|
-
l(
|
|
2281
|
+
l(V, { value: "zh-CN" }, {
|
|
2282
2282
|
default: o(() => [...p[8] || (p[8] = [
|
|
2283
|
-
|
|
2283
|
+
Q("zh-CN", -1)
|
|
2284
2284
|
])]),
|
|
2285
2285
|
_: 1
|
|
2286
2286
|
}),
|
|
2287
|
-
l(
|
|
2287
|
+
l(V, { value: "en-US" }, {
|
|
2288
2288
|
default: o(() => [...p[9] || (p[9] = [
|
|
2289
|
-
|
|
2289
|
+
Q("en-US", -1)
|
|
2290
2290
|
])]),
|
|
2291
2291
|
_: 1
|
|
2292
2292
|
})
|
|
@@ -2301,17 +2301,17 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2301
2301
|
prop: "roles"
|
|
2302
2302
|
}, {
|
|
2303
2303
|
default: o(() => [
|
|
2304
|
-
l(
|
|
2304
|
+
l(D, {
|
|
2305
2305
|
modelValue: e(u).roles,
|
|
2306
2306
|
"onUpdate:modelValue": p[5] || (p[5] = (T) => e(u).roles = T)
|
|
2307
2307
|
}, {
|
|
2308
2308
|
default: o(() => [
|
|
2309
|
-
(M(!0), B(G, null, ae(
|
|
2309
|
+
(M(!0), B(G, null, ae(w.value, (T) => (M(), q(C, {
|
|
2310
2310
|
key: T.key,
|
|
2311
2311
|
value: T.key
|
|
2312
2312
|
}, {
|
|
2313
2313
|
default: o(() => [
|
|
2314
|
-
|
|
2314
|
+
Q(F(T.translate), 1)
|
|
2315
2315
|
]),
|
|
2316
2316
|
_: 2
|
|
2317
2317
|
}, 1032, ["value"]))), 128))
|
|
@@ -2344,10 +2344,10 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2344
2344
|
}
|
|
2345
2345
|
}), Jl = /* @__PURE__ */ O({
|
|
2346
2346
|
__name: "index",
|
|
2347
|
-
setup(
|
|
2347
|
+
setup(R) {
|
|
2348
2348
|
const U = {
|
|
2349
2349
|
keyword: ""
|
|
2350
|
-
},
|
|
2350
|
+
}, x = [{
|
|
2351
2351
|
label: a("base.avatar"),
|
|
2352
2352
|
prop: "avatar",
|
|
2353
2353
|
width: 60,
|
|
@@ -2395,30 +2395,30 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2395
2395
|
align: "center",
|
|
2396
2396
|
render: ({
|
|
2397
2397
|
row: c
|
|
2398
|
-
}) => l(
|
|
2398
|
+
}) => l(te, {
|
|
2399
2399
|
onModify: () => s({
|
|
2400
2400
|
key: c.key
|
|
2401
2401
|
})
|
|
2402
2402
|
}, null)
|
|
2403
2403
|
}], {
|
|
2404
2404
|
requesting: k
|
|
2405
|
-
} =
|
|
2406
|
-
tableRef:
|
|
2407
|
-
formModalRef:
|
|
2405
|
+
} = I(Ue), {
|
|
2406
|
+
tableRef: y,
|
|
2407
|
+
formModalRef: b,
|
|
2408
2408
|
keyword: m,
|
|
2409
2409
|
search: i,
|
|
2410
2410
|
reset: u,
|
|
2411
|
-
refresh:
|
|
2411
|
+
refresh: t,
|
|
2412
2412
|
openFormModal: v,
|
|
2413
2413
|
editFormModal: s
|
|
2414
|
-
} =
|
|
2414
|
+
} = X(U);
|
|
2415
2415
|
return (c, f) => {
|
|
2416
|
-
const
|
|
2417
|
-
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, {
|
|
2418
2418
|
class: "basic-card flex-full",
|
|
2419
2419
|
"body-class": "flex-1"
|
|
2420
2420
|
}, {
|
|
2421
|
-
header: o(() => [l(
|
|
2421
|
+
header: o(() => [l(w, {
|
|
2422
2422
|
class: "basic-header"
|
|
2423
2423
|
}, {
|
|
2424
2424
|
title: o(() => [l(e(K), {
|
|
@@ -2427,16 +2427,16 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2427
2427
|
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
2428
2428
|
onOpen: e(v)
|
|
2429
2429
|
}, null, 8, ["onOpen"])]),
|
|
2430
|
-
content: o(() => [l(
|
|
2430
|
+
content: o(() => [l(A, {
|
|
2431
2431
|
class: "search-bar"
|
|
2432
2432
|
}, {
|
|
2433
|
-
default: o(() => [l(
|
|
2433
|
+
default: o(() => [l(_, {
|
|
2434
2434
|
class: "basic-search-input",
|
|
2435
2435
|
modelValue: e(m).keyword,
|
|
2436
2436
|
"onUpdate:modelValue": f[0] || (f[0] = (d) => e(m).keyword = d),
|
|
2437
2437
|
placeholder: e(a)("placeholder.keyword"),
|
|
2438
2438
|
clearable: "",
|
|
2439
|
-
onKeyup: f[1] || (f[1] =
|
|
2439
|
+
onKeyup: f[1] || (f[1] = ye((d) => e(i)(), ["enter"])),
|
|
2440
2440
|
onClear: f[2] || (f[2] = (d) => e(i)())
|
|
2441
2441
|
}, null, 8, ["modelValue", "placeholder"]), l(e(de), {
|
|
2442
2442
|
disabled: e(k),
|
|
@@ -2448,16 +2448,16 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2448
2448
|
})]),
|
|
2449
2449
|
default: o(() => [l(e(be), {
|
|
2450
2450
|
ref_key: "tableRef",
|
|
2451
|
-
ref:
|
|
2451
|
+
ref: y,
|
|
2452
2452
|
size: "small",
|
|
2453
|
-
columns:
|
|
2454
|
-
url: e(Ue).urls[e(
|
|
2453
|
+
columns: x,
|
|
2454
|
+
url: e(Ue).urls[e(Ve)],
|
|
2455
2455
|
"search-param": e(m),
|
|
2456
2456
|
"auto-search": ""
|
|
2457
2457
|
}, null, 8, ["url", "search-param"]), l(Ul, {
|
|
2458
2458
|
ref_key: "formModalRef",
|
|
2459
|
-
ref:
|
|
2460
|
-
onRefresh: e(
|
|
2459
|
+
ref: b,
|
|
2460
|
+
onRefresh: e(t)
|
|
2461
2461
|
}, null, 8, ["onRefresh"])]),
|
|
2462
2462
|
_: 1
|
|
2463
2463
|
});
|
|
@@ -2478,18 +2478,18 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2478
2478
|
}
|
|
2479
2479
|
},
|
|
2480
2480
|
emits: ["update:modelValue", "change"],
|
|
2481
|
-
setup(
|
|
2481
|
+
setup(R, {
|
|
2482
2482
|
expose: U,
|
|
2483
|
-
emit:
|
|
2483
|
+
emit: x
|
|
2484
2484
|
}) {
|
|
2485
|
-
const k =
|
|
2486
|
-
requesting:
|
|
2487
|
-
} =
|
|
2485
|
+
const k = x, y = R, {
|
|
2486
|
+
requesting: b
|
|
2487
|
+
} = I(ge), {
|
|
2488
2488
|
id: m,
|
|
2489
2489
|
options: i,
|
|
2490
2490
|
refresh: u,
|
|
2491
|
-
change:
|
|
2492
|
-
} = re(
|
|
2491
|
+
change: t
|
|
2492
|
+
} = re(ne(y, "modelValue"), k, {
|
|
2493
2493
|
key: "DOMAIN_LIST",
|
|
2494
2494
|
api: ge,
|
|
2495
2495
|
isArray: !0
|
|
@@ -2500,14 +2500,14 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2500
2500
|
const c = r("el-select-v2");
|
|
2501
2501
|
return M(), q(c, {
|
|
2502
2502
|
modelValue: e(m),
|
|
2503
|
-
"onUpdate:modelValue": s[0] || (s[0] = (f) =>
|
|
2503
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => z(m) ? m.value = f : null),
|
|
2504
2504
|
options: e(i),
|
|
2505
|
-
disabled:
|
|
2505
|
+
disabled: R.disabled || e(b),
|
|
2506
2506
|
placeholder: e(a)("base.select config.domain"),
|
|
2507
|
-
onChange: e(
|
|
2507
|
+
onChange: e(t)
|
|
2508
2508
|
}, {
|
|
2509
2509
|
prefix: o(() => [l(e(fe), {
|
|
2510
|
-
loading: e(
|
|
2510
|
+
loading: e(b),
|
|
2511
2511
|
onRefresh: e(u)
|
|
2512
2512
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
2513
2513
|
_: 1
|
|
@@ -2517,8 +2517,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2517
2517
|
}), Dl = /* @__PURE__ */ O({
|
|
2518
2518
|
__name: "SiteFormModal",
|
|
2519
2519
|
emits: ["refresh"],
|
|
2520
|
-
setup(
|
|
2521
|
-
const k =
|
|
2520
|
+
setup(R, { expose: U, emit: x }) {
|
|
2521
|
+
const k = x, y = {
|
|
2522
2522
|
id: 0,
|
|
2523
2523
|
domain_id: 0,
|
|
2524
2524
|
prefix: "",
|
|
@@ -2528,33 +2528,33 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2528
2528
|
git: "",
|
|
2529
2529
|
status: 1,
|
|
2530
2530
|
remark: ""
|
|
2531
|
-
},
|
|
2531
|
+
}, b = {
|
|
2532
2532
|
domain_id: [{ required: !0, message: a("placeholder.input config.domain"), trigger: "blur" }],
|
|
2533
2533
|
prefix: [{ required: !0, message: a("placeholder.input base.prefix"), trigger: "blur" }],
|
|
2534
2534
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
2535
2535
|
en_name: [{ required: !0, message: a("placeholder.input base.en_name"), trigger: "blur" }]
|
|
2536
|
-
}, { 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, y, pe);
|
|
2537
2537
|
return U({
|
|
2538
2538
|
open: c,
|
|
2539
2539
|
modify: f
|
|
2540
|
-
}), (
|
|
2540
|
+
}), (w, n) => {
|
|
2541
2541
|
const d = r("el-form-item"), p = r("el-input"), S = r("el-form");
|
|
2542
2542
|
return M(), q(e(oe), {
|
|
2543
2543
|
modelValue: e(m),
|
|
2544
|
-
"onUpdate:modelValue":
|
|
2544
|
+
"onUpdate:modelValue": n[7] || (n[7] = (g) => z(m) ? m.value = g : null),
|
|
2545
2545
|
title: e(i)("config.site"),
|
|
2546
2546
|
width: "600px",
|
|
2547
2547
|
executing: e(s),
|
|
2548
|
-
onClosed: e(
|
|
2549
|
-
onSubmit: e(
|
|
2548
|
+
onClosed: e(A),
|
|
2549
|
+
onSubmit: e(_)
|
|
2550
2550
|
}, {
|
|
2551
2551
|
default: o(() => [
|
|
2552
2552
|
l(S, {
|
|
2553
2553
|
ref_key: "form",
|
|
2554
2554
|
ref: u,
|
|
2555
|
-
model: e(
|
|
2555
|
+
model: e(t),
|
|
2556
2556
|
"label-width": "auto",
|
|
2557
|
-
rules:
|
|
2557
|
+
rules: b,
|
|
2558
2558
|
disabled: e(v) || e(s)
|
|
2559
2559
|
}, {
|
|
2560
2560
|
default: o(() => [
|
|
@@ -2564,8 +2564,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2564
2564
|
}, {
|
|
2565
2565
|
default: o(() => [
|
|
2566
2566
|
l(Ie, {
|
|
2567
|
-
modelValue: e(
|
|
2568
|
-
"onUpdate:modelValue":
|
|
2567
|
+
modelValue: e(t).domain_id,
|
|
2568
|
+
"onUpdate:modelValue": n[0] || (n[0] = (g) => e(t).domain_id = g),
|
|
2569
2569
|
disabled: e(s)
|
|
2570
2570
|
}, null, 8, ["modelValue", "disabled"])
|
|
2571
2571
|
]),
|
|
@@ -2577,8 +2577,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2577
2577
|
}, {
|
|
2578
2578
|
default: o(() => [
|
|
2579
2579
|
l(p, {
|
|
2580
|
-
modelValue: e(
|
|
2581
|
-
"onUpdate:modelValue":
|
|
2580
|
+
modelValue: e(t).prefix,
|
|
2581
|
+
"onUpdate:modelValue": n[1] || (n[1] = (g) => e(t).prefix = g),
|
|
2582
2582
|
disabled: e(s),
|
|
2583
2583
|
placeholder: e(a)("placeholder.input")
|
|
2584
2584
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2591,8 +2591,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2591
2591
|
}, {
|
|
2592
2592
|
default: o(() => [
|
|
2593
2593
|
l(p, {
|
|
2594
|
-
modelValue: e(
|
|
2595
|
-
"onUpdate:modelValue":
|
|
2594
|
+
modelValue: e(t).name,
|
|
2595
|
+
"onUpdate:modelValue": n[2] || (n[2] = (g) => e(t).name = g),
|
|
2596
2596
|
disabled: e(s),
|
|
2597
2597
|
placeholder: e(a)("placeholder.input")
|
|
2598
2598
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2605,8 +2605,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2605
2605
|
}, {
|
|
2606
2606
|
default: o(() => [
|
|
2607
2607
|
l(p, {
|
|
2608
|
-
modelValue: e(
|
|
2609
|
-
"onUpdate:modelValue":
|
|
2608
|
+
modelValue: e(t).en_name,
|
|
2609
|
+
"onUpdate:modelValue": n[3] || (n[3] = (g) => e(t).en_name = g),
|
|
2610
2610
|
disabled: e(s),
|
|
2611
2611
|
placeholder: e(a)("placeholder.input")
|
|
2612
2612
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2619,8 +2619,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2619
2619
|
}, {
|
|
2620
2620
|
default: o(() => [
|
|
2621
2621
|
l(p, {
|
|
2622
|
-
modelValue: e(
|
|
2623
|
-
"onUpdate:modelValue":
|
|
2622
|
+
modelValue: e(t).dns,
|
|
2623
|
+
"onUpdate:modelValue": n[4] || (n[4] = (g) => e(t).dns = g),
|
|
2624
2624
|
disabled: e(s),
|
|
2625
2625
|
placeholder: e(a)("placeholder.input")
|
|
2626
2626
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2633,8 +2633,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2633
2633
|
}, {
|
|
2634
2634
|
default: o(() => [
|
|
2635
2635
|
l(p, {
|
|
2636
|
-
modelValue: e(
|
|
2637
|
-
"onUpdate:modelValue":
|
|
2636
|
+
modelValue: e(t).git,
|
|
2637
|
+
"onUpdate:modelValue": n[5] || (n[5] = (g) => e(t).git = g),
|
|
2638
2638
|
disabled: e(s),
|
|
2639
2639
|
placeholder: e(a)("placeholder.input")
|
|
2640
2640
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2647,8 +2647,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2647
2647
|
}, {
|
|
2648
2648
|
default: o(() => [
|
|
2649
2649
|
l(p, {
|
|
2650
|
-
modelValue: e(
|
|
2651
|
-
"onUpdate:modelValue":
|
|
2650
|
+
modelValue: e(t).remark,
|
|
2651
|
+
"onUpdate:modelValue": n[6] || (n[6] = (g) => e(t).remark = g),
|
|
2652
2652
|
disabled: e(s),
|
|
2653
2653
|
placeholder: e(a)("placeholder.input")
|
|
2654
2654
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2676,18 +2676,18 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2676
2676
|
}
|
|
2677
2677
|
},
|
|
2678
2678
|
emits: ["update:modelValue", "change"],
|
|
2679
|
-
setup(
|
|
2679
|
+
setup(R, {
|
|
2680
2680
|
expose: U,
|
|
2681
|
-
emit:
|
|
2681
|
+
emit: x
|
|
2682
2682
|
}) {
|
|
2683
|
-
const k =
|
|
2684
|
-
requesting:
|
|
2685
|
-
} =
|
|
2683
|
+
const k = x, y = R, {
|
|
2684
|
+
requesting: b
|
|
2685
|
+
} = I(he), {
|
|
2686
2686
|
id: m,
|
|
2687
2687
|
options: i,
|
|
2688
2688
|
refresh: u,
|
|
2689
|
-
change:
|
|
2690
|
-
} = re(
|
|
2689
|
+
change: t
|
|
2690
|
+
} = re(ne(y, "modelValue"), k, {
|
|
2691
2691
|
key: "DOMAIN_PROVIDER_LIST",
|
|
2692
2692
|
api: he,
|
|
2693
2693
|
isArray: !0
|
|
@@ -2698,14 +2698,14 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2698
2698
|
const c = r("el-select-v2");
|
|
2699
2699
|
return M(), q(c, {
|
|
2700
2700
|
modelValue: e(m),
|
|
2701
|
-
"onUpdate:modelValue": s[0] || (s[0] = (f) =>
|
|
2701
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => z(m) ? m.value = f : null),
|
|
2702
2702
|
options: e(i),
|
|
2703
|
-
disabled:
|
|
2703
|
+
disabled: R.disabled || e(b),
|
|
2704
2704
|
placeholder: e(a)("base.select config.domain config.provider"),
|
|
2705
|
-
onChange: e(
|
|
2705
|
+
onChange: e(t)
|
|
2706
2706
|
}, {
|
|
2707
2707
|
prefix: o(() => [l(e(fe), {
|
|
2708
|
-
loading: e(
|
|
2708
|
+
loading: e(b),
|
|
2709
2709
|
onRefresh: e(u)
|
|
2710
2710
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
2711
2711
|
_: 1
|
|
@@ -2715,39 +2715,39 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2715
2715
|
}), Ml = /* @__PURE__ */ O({
|
|
2716
2716
|
__name: "DomainFormModal",
|
|
2717
2717
|
emits: ["refresh"],
|
|
2718
|
-
setup(
|
|
2719
|
-
const k =
|
|
2718
|
+
setup(R, { expose: U, emit: x }) {
|
|
2719
|
+
const k = x, y = {
|
|
2720
2720
|
id: 0,
|
|
2721
2721
|
provider_id: 0,
|
|
2722
2722
|
name: "",
|
|
2723
2723
|
expired_at: "",
|
|
2724
2724
|
status: 1,
|
|
2725
2725
|
remark: ""
|
|
2726
|
-
},
|
|
2726
|
+
}, b = {
|
|
2727
2727
|
provider_id: [{ required: !0, message: a("placeholder.input config.domain config.provider"), trigger: "blur" }],
|
|
2728
2728
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }]
|
|
2729
|
-
}, { 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, y, ge);
|
|
2730
2730
|
return U({
|
|
2731
2731
|
open: c,
|
|
2732
2732
|
modify: f
|
|
2733
|
-
}), (
|
|
2733
|
+
}), (w, n) => {
|
|
2734
2734
|
const d = r("el-form-item"), p = r("el-input"), S = r("el-date-picker"), g = r("el-form");
|
|
2735
2735
|
return M(), q(e(oe), {
|
|
2736
2736
|
modelValue: e(m),
|
|
2737
|
-
"onUpdate:modelValue":
|
|
2737
|
+
"onUpdate:modelValue": n[4] || (n[4] = (V) => z(m) ? m.value = V : null),
|
|
2738
2738
|
title: e(i)("config.domain"),
|
|
2739
2739
|
width: "600px",
|
|
2740
2740
|
executing: e(s),
|
|
2741
|
-
onClosed: e(
|
|
2742
|
-
onSubmit: e(
|
|
2741
|
+
onClosed: e(A),
|
|
2742
|
+
onSubmit: e(_)
|
|
2743
2743
|
}, {
|
|
2744
2744
|
default: o(() => [
|
|
2745
2745
|
l(g, {
|
|
2746
2746
|
ref_key: "form",
|
|
2747
2747
|
ref: u,
|
|
2748
|
-
model: e(
|
|
2748
|
+
model: e(t),
|
|
2749
2749
|
"label-width": "auto",
|
|
2750
|
-
rules:
|
|
2750
|
+
rules: b,
|
|
2751
2751
|
disabled: e(v) || e(s)
|
|
2752
2752
|
}, {
|
|
2753
2753
|
default: o(() => [
|
|
@@ -2757,8 +2757,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2757
2757
|
}, {
|
|
2758
2758
|
default: o(() => [
|
|
2759
2759
|
l(Sl, {
|
|
2760
|
-
modelValue: e(
|
|
2761
|
-
"onUpdate:modelValue":
|
|
2760
|
+
modelValue: e(t).provider_id,
|
|
2761
|
+
"onUpdate:modelValue": n[0] || (n[0] = (V) => e(t).provider_id = V),
|
|
2762
2762
|
disabled: e(s)
|
|
2763
2763
|
}, null, 8, ["modelValue", "disabled"])
|
|
2764
2764
|
]),
|
|
@@ -2770,8 +2770,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2770
2770
|
}, {
|
|
2771
2771
|
default: o(() => [
|
|
2772
2772
|
l(p, {
|
|
2773
|
-
modelValue: e(
|
|
2774
|
-
"onUpdate:modelValue":
|
|
2773
|
+
modelValue: e(t).name,
|
|
2774
|
+
"onUpdate:modelValue": n[1] || (n[1] = (V) => e(t).name = V),
|
|
2775
2775
|
disabled: e(s),
|
|
2776
2776
|
placeholder: e(a)("placeholder.input")
|
|
2777
2777
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2787,8 +2787,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2787
2787
|
l(S, {
|
|
2788
2788
|
type: "date",
|
|
2789
2789
|
style: { width: "100%" },
|
|
2790
|
-
modelValue: e(
|
|
2791
|
-
"onUpdate:modelValue":
|
|
2790
|
+
modelValue: e(t).expired_at,
|
|
2791
|
+
"onUpdate:modelValue": n[2] || (n[2] = (V) => e(t).expired_at = V),
|
|
2792
2792
|
disabled: e(s),
|
|
2793
2793
|
"value-format": e(E).DATE_VALUE_FORMAT,
|
|
2794
2794
|
format: e(E).DATE_FORMAT,
|
|
@@ -2803,8 +2803,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2803
2803
|
}, {
|
|
2804
2804
|
default: o(() => [
|
|
2805
2805
|
l(p, {
|
|
2806
|
-
modelValue: e(
|
|
2807
|
-
"onUpdate:modelValue":
|
|
2806
|
+
modelValue: e(t).remark,
|
|
2807
|
+
"onUpdate:modelValue": n[3] || (n[3] = (V) => e(t).remark = V),
|
|
2808
2808
|
disabled: e(s),
|
|
2809
2809
|
placeholder: e(a)("placeholder.input")
|
|
2810
2810
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2822,8 +2822,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2822
2822
|
}), Cl = /* @__PURE__ */ O({
|
|
2823
2823
|
__name: "DomainProviderFormModal",
|
|
2824
2824
|
emits: ["refresh"],
|
|
2825
|
-
setup(
|
|
2826
|
-
const k =
|
|
2825
|
+
setup(R, { expose: U, emit: x }) {
|
|
2826
|
+
const k = x, y = {
|
|
2827
2827
|
id: 0,
|
|
2828
2828
|
name: "",
|
|
2829
2829
|
en_name: "",
|
|
@@ -2832,34 +2832,34 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2832
2832
|
end_point: "",
|
|
2833
2833
|
status: 1,
|
|
2834
2834
|
remark: ""
|
|
2835
|
-
},
|
|
2835
|
+
}, b = {
|
|
2836
2836
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
2837
2837
|
en_name: { required: !0, message: a("placeholder.input base.en_name"), trigger: "blur" },
|
|
2838
2838
|
key: { required: !0, message: a("placeholder.input base.key"), trigger: "blur" },
|
|
2839
2839
|
secret: { required: !0, message: a("placeholder.input config.secret"), trigger: "blur" },
|
|
2840
2840
|
end_point: { required: !0, message: a("placeholder.input config.endpoint"), trigger: "blur" }
|
|
2841
|
-
}, { 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, y, he);
|
|
2842
2842
|
return U({
|
|
2843
2843
|
open: c,
|
|
2844
2844
|
modify: f
|
|
2845
|
-
}), (
|
|
2845
|
+
}), (w, n) => {
|
|
2846
2846
|
const d = r("el-input"), p = r("el-form-item"), S = r("el-form");
|
|
2847
2847
|
return M(), q(e(oe), {
|
|
2848
2848
|
modelValue: e(m),
|
|
2849
|
-
"onUpdate:modelValue":
|
|
2849
|
+
"onUpdate:modelValue": n[6] || (n[6] = (g) => z(m) ? m.value = g : null),
|
|
2850
2850
|
title: e(i)("config.domain"),
|
|
2851
2851
|
width: "600px",
|
|
2852
2852
|
executing: e(s),
|
|
2853
|
-
onClosed: e(
|
|
2854
|
-
onSubmit: e(
|
|
2853
|
+
onClosed: e(A),
|
|
2854
|
+
onSubmit: e(_)
|
|
2855
2855
|
}, {
|
|
2856
2856
|
default: o(() => [
|
|
2857
2857
|
l(S, {
|
|
2858
2858
|
ref_key: "form",
|
|
2859
2859
|
ref: u,
|
|
2860
|
-
model: e(
|
|
2860
|
+
model: e(t),
|
|
2861
2861
|
"label-width": "auto",
|
|
2862
|
-
rules:
|
|
2862
|
+
rules: b,
|
|
2863
2863
|
disabled: e(v) || e(s)
|
|
2864
2864
|
}, {
|
|
2865
2865
|
default: o(() => [
|
|
@@ -2869,8 +2869,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2869
2869
|
}, {
|
|
2870
2870
|
default: o(() => [
|
|
2871
2871
|
l(d, {
|
|
2872
|
-
modelValue: e(
|
|
2873
|
-
"onUpdate:modelValue":
|
|
2872
|
+
modelValue: e(t).name,
|
|
2873
|
+
"onUpdate:modelValue": n[0] || (n[0] = (g) => e(t).name = g),
|
|
2874
2874
|
disabled: e(s),
|
|
2875
2875
|
placeholder: e(a)("placeholder.input")
|
|
2876
2876
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2883,8 +2883,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2883
2883
|
}, {
|
|
2884
2884
|
default: o(() => [
|
|
2885
2885
|
l(d, {
|
|
2886
|
-
modelValue: e(
|
|
2887
|
-
"onUpdate:modelValue":
|
|
2886
|
+
modelValue: e(t).en_name,
|
|
2887
|
+
"onUpdate:modelValue": n[1] || (n[1] = (g) => e(t).en_name = g),
|
|
2888
2888
|
disabled: e(s),
|
|
2889
2889
|
placeholder: e(a)("placeholder.input")
|
|
2890
2890
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2897,8 +2897,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2897
2897
|
}, {
|
|
2898
2898
|
default: o(() => [
|
|
2899
2899
|
l(d, {
|
|
2900
|
-
modelValue: e(
|
|
2901
|
-
"onUpdate:modelValue":
|
|
2900
|
+
modelValue: e(t).key,
|
|
2901
|
+
"onUpdate:modelValue": n[2] || (n[2] = (g) => e(t).key = g),
|
|
2902
2902
|
disabled: e(s),
|
|
2903
2903
|
placeholder: e(a)("placeholder.input")
|
|
2904
2904
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2911,8 +2911,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2911
2911
|
}, {
|
|
2912
2912
|
default: o(() => [
|
|
2913
2913
|
l(d, {
|
|
2914
|
-
modelValue: e(
|
|
2915
|
-
"onUpdate:modelValue":
|
|
2914
|
+
modelValue: e(t).secret,
|
|
2915
|
+
"onUpdate:modelValue": n[3] || (n[3] = (g) => e(t).secret = g),
|
|
2916
2916
|
disabled: e(s),
|
|
2917
2917
|
placeholder: e(a)("placeholder.input")
|
|
2918
2918
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2925,8 +2925,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2925
2925
|
}, {
|
|
2926
2926
|
default: o(() => [
|
|
2927
2927
|
l(d, {
|
|
2928
|
-
modelValue: e(
|
|
2929
|
-
"onUpdate:modelValue":
|
|
2928
|
+
modelValue: e(t).end_point,
|
|
2929
|
+
"onUpdate:modelValue": n[4] || (n[4] = (g) => e(t).end_point = g),
|
|
2930
2930
|
disabled: e(s),
|
|
2931
2931
|
placeholder: e(a)("placeholder.input")
|
|
2932
2932
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2939,8 +2939,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2939
2939
|
}, {
|
|
2940
2940
|
default: o(() => [
|
|
2941
2941
|
l(d, {
|
|
2942
|
-
modelValue: e(
|
|
2943
|
-
"onUpdate:modelValue":
|
|
2942
|
+
modelValue: e(t).remark,
|
|
2943
|
+
"onUpdate:modelValue": n[5] || (n[5] = (g) => e(t).remark = g),
|
|
2944
2944
|
disabled: e(s),
|
|
2945
2945
|
placeholder: e(a)("placeholder.input")
|
|
2946
2946
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -2957,18 +2957,18 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2957
2957
|
}
|
|
2958
2958
|
}), Ll = /* @__PURE__ */ O({
|
|
2959
2959
|
__name: "DomainProviderTableDrawer",
|
|
2960
|
-
setup(
|
|
2960
|
+
setup(R, {
|
|
2961
2961
|
expose: U
|
|
2962
2962
|
}) {
|
|
2963
2963
|
const {
|
|
2964
|
-
requesting:
|
|
2965
|
-
} =
|
|
2966
|
-
tableRef:
|
|
2967
|
-
formModalRef:
|
|
2964
|
+
requesting: x
|
|
2965
|
+
} = I(he), k = H(!1), {
|
|
2966
|
+
tableRef: y,
|
|
2967
|
+
formModalRef: b,
|
|
2968
2968
|
refresh: m,
|
|
2969
2969
|
openFormModal: i,
|
|
2970
2970
|
editFormModal: u
|
|
2971
|
-
} =
|
|
2971
|
+
} = X({}), t = [{
|
|
2972
2972
|
prop: "name",
|
|
2973
2973
|
label: a("base.name"),
|
|
2974
2974
|
width: 0,
|
|
@@ -2985,7 +2985,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
2985
2985
|
render: ({
|
|
2986
2986
|
rowData: s
|
|
2987
2987
|
}) => l(r("el-space"), null, {
|
|
2988
|
-
default: () => [l(
|
|
2988
|
+
default: () => [l(te, {
|
|
2989
2989
|
icon: "icon-edit",
|
|
2990
2990
|
t: "",
|
|
2991
2991
|
onModify: () => u({
|
|
@@ -3002,7 +3002,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3002
3002
|
const f = r("el-page-header");
|
|
3003
3003
|
return M(), q(e(_e), {
|
|
3004
3004
|
modelValue: k.value,
|
|
3005
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
3005
|
+
"onUpdate:modelValue": c[0] || (c[0] = (_) => k.value = _),
|
|
3006
3006
|
width: "400px",
|
|
3007
3007
|
"show-close": !1,
|
|
3008
3008
|
class: "basic-drawer"
|
|
@@ -3010,11 +3010,11 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3010
3010
|
title: o(() => [l(f, {
|
|
3011
3011
|
icon: ""
|
|
3012
3012
|
}, {
|
|
3013
|
-
title: o(() => [j("span", null,
|
|
3013
|
+
title: o(() => [j("span", null, F(e(a)("config.domain config.provider")), 1)]),
|
|
3014
3014
|
content: o(() => [l(e(K), {
|
|
3015
3015
|
onRefresh: e(m),
|
|
3016
3016
|
size: "default",
|
|
3017
|
-
loading: e(
|
|
3017
|
+
loading: e(x)
|
|
3018
3018
|
}, null, 8, ["onRefresh", "loading"])]),
|
|
3019
3019
|
extra: o(() => [l(e(P), {
|
|
3020
3020
|
onOpen: e(i)
|
|
@@ -3023,15 +3023,15 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3023
3023
|
})]),
|
|
3024
3024
|
default: o(() => [l(e(ie), {
|
|
3025
3025
|
ref_key: "tableRef",
|
|
3026
|
-
ref:
|
|
3026
|
+
ref: y,
|
|
3027
3027
|
size: "small",
|
|
3028
3028
|
"row-key": "id",
|
|
3029
3029
|
url: e(he).urls.list,
|
|
3030
|
-
columns:
|
|
3031
|
-
loading: e(
|
|
3030
|
+
columns: t,
|
|
3031
|
+
loading: e(x)
|
|
3032
3032
|
}, null, 8, ["url", "loading"]), l(Cl, {
|
|
3033
3033
|
ref_key: "formModalRef",
|
|
3034
|
-
ref:
|
|
3034
|
+
ref: b,
|
|
3035
3035
|
onRefresh: e(m)
|
|
3036
3036
|
}, null, 8, ["onRefresh"])]),
|
|
3037
3037
|
_: 1
|
|
@@ -3053,18 +3053,18 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3053
3053
|
}
|
|
3054
3054
|
},
|
|
3055
3055
|
emits: ["update:modelValue", "change"],
|
|
3056
|
-
setup(
|
|
3056
|
+
setup(R, {
|
|
3057
3057
|
expose: U,
|
|
3058
|
-
emit:
|
|
3058
|
+
emit: x
|
|
3059
3059
|
}) {
|
|
3060
|
-
const k =
|
|
3061
|
-
requesting:
|
|
3062
|
-
} =
|
|
3060
|
+
const k = x, y = R, {
|
|
3061
|
+
requesting: b
|
|
3062
|
+
} = I(pe), {
|
|
3063
3063
|
key: m,
|
|
3064
3064
|
options: i,
|
|
3065
3065
|
refresh: u,
|
|
3066
|
-
change:
|
|
3067
|
-
} = re(
|
|
3066
|
+
change: t
|
|
3067
|
+
} = re(ne(y, "modelValue"), k, {
|
|
3068
3068
|
key: "SITE_LIST",
|
|
3069
3069
|
api: pe,
|
|
3070
3070
|
isArray: !0
|
|
@@ -3081,14 +3081,14 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3081
3081
|
const c = r("el-select-v2");
|
|
3082
3082
|
return M(), q(c, {
|
|
3083
3083
|
modelValue: e(m),
|
|
3084
|
-
"onUpdate:modelValue": s[0] || (s[0] = (f) =>
|
|
3084
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => z(m) ? m.value = f : null),
|
|
3085
3085
|
options: e(i),
|
|
3086
|
-
disabled:
|
|
3086
|
+
disabled: R.disabled || e(b),
|
|
3087
3087
|
placeholder: e(a)("base.select config.domain"),
|
|
3088
|
-
onChange: e(
|
|
3088
|
+
onChange: e(t)
|
|
3089
3089
|
}, {
|
|
3090
3090
|
prefix: o(() => [l(e(fe), {
|
|
3091
|
-
loading: e(
|
|
3091
|
+
loading: e(b),
|
|
3092
3092
|
onRefresh: e(u)
|
|
3093
3093
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
3094
3094
|
_: 1
|
|
@@ -3098,8 +3098,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3098
3098
|
}), Ne = /* @__PURE__ */ O({
|
|
3099
3099
|
__name: "SSLFormModal",
|
|
3100
3100
|
emits: ["refresh"],
|
|
3101
|
-
setup(
|
|
3102
|
-
const k =
|
|
3101
|
+
setup(R, { expose: U, emit: x }) {
|
|
3102
|
+
const k = x, y = {
|
|
3103
3103
|
id: 0,
|
|
3104
3104
|
domain_id: void 0,
|
|
3105
3105
|
client: "Lego",
|
|
@@ -3109,36 +3109,36 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3109
3109
|
email: "",
|
|
3110
3110
|
encryption: "RSA2048",
|
|
3111
3111
|
remark: ""
|
|
3112
|
-
},
|
|
3112
|
+
}, b = {
|
|
3113
3113
|
domain_id: [{ required: !0, message: a("placeholder.select config.domain "), trigger: "blur" }],
|
|
3114
3114
|
client: [{ required: !0, message: a("placeholder.select config.client "), trigger: "blur" }],
|
|
3115
3115
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
3116
3116
|
path: [{ required: !0, message: a("placeholder.input base.path"), trigger: "blur" }],
|
|
3117
3117
|
email: [{ required: !0, message: a("placeholder.input base.email"), trigger: "blur" }],
|
|
3118
3118
|
encryption: [{ required: !0, message: a("placeholder.input config.encryption"), trigger: "blur" }]
|
|
3119
|
-
}, { 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, y, me);
|
|
3120
3120
|
return U({
|
|
3121
3121
|
open: c,
|
|
3122
3122
|
modify: f,
|
|
3123
|
-
formData:
|
|
3124
|
-
}), (
|
|
3125
|
-
const d = r("el-form-item"), p = r("el-radio-button"), S = r("el-radio-group"), g = r("el-input"),
|
|
3123
|
+
formData: t
|
|
3124
|
+
}), (w, n) => {
|
|
3125
|
+
const d = r("el-form-item"), p = r("el-radio-button"), S = r("el-radio-group"), g = r("el-input"), V = r("el-form");
|
|
3126
3126
|
return M(), q(e(oe), {
|
|
3127
3127
|
modelValue: e(m),
|
|
3128
|
-
"onUpdate:modelValue":
|
|
3128
|
+
"onUpdate:modelValue": n[8] || (n[8] = (h) => z(m) ? m.value = h : null),
|
|
3129
3129
|
title: e(i)("ssl.ssl"),
|
|
3130
3130
|
width: "600px",
|
|
3131
3131
|
executing: e(s),
|
|
3132
|
-
onClosed: e(
|
|
3133
|
-
onSubmit: e(
|
|
3132
|
+
onClosed: e(A),
|
|
3133
|
+
onSubmit: e(_)
|
|
3134
3134
|
}, {
|
|
3135
3135
|
default: o(() => [
|
|
3136
|
-
l(
|
|
3136
|
+
l(V, {
|
|
3137
3137
|
ref_key: "form",
|
|
3138
3138
|
ref: u,
|
|
3139
|
-
model: e(
|
|
3139
|
+
model: e(t),
|
|
3140
3140
|
"label-width": "auto",
|
|
3141
|
-
rules:
|
|
3141
|
+
rules: b,
|
|
3142
3142
|
disabled: e(v) || e(s)
|
|
3143
3143
|
}, {
|
|
3144
3144
|
default: o(() => [
|
|
@@ -3148,8 +3148,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3148
3148
|
}, {
|
|
3149
3149
|
default: o(() => [
|
|
3150
3150
|
l(Ie, {
|
|
3151
|
-
modelValue: e(
|
|
3152
|
-
"onUpdate:modelValue":
|
|
3151
|
+
modelValue: e(t).domain_id,
|
|
3152
|
+
"onUpdate:modelValue": n[0] || (n[0] = (h) => e(t).domain_id = h),
|
|
3153
3153
|
disabled: e(s)
|
|
3154
3154
|
}, null, 8, ["modelValue", "disabled"])
|
|
3155
3155
|
]),
|
|
@@ -3161,8 +3161,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3161
3161
|
}, {
|
|
3162
3162
|
default: o(() => [
|
|
3163
3163
|
l(S, {
|
|
3164
|
-
modelValue: e(
|
|
3165
|
-
"onUpdate:modelValue":
|
|
3164
|
+
modelValue: e(t).client,
|
|
3165
|
+
"onUpdate:modelValue": n[1] || (n[1] = (h) => e(t).client = h)
|
|
3166
3166
|
}, {
|
|
3167
3167
|
default: o(() => [
|
|
3168
3168
|
l(p, {
|
|
@@ -3181,8 +3181,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3181
3181
|
}, {
|
|
3182
3182
|
default: o(() => [
|
|
3183
3183
|
l(ql, {
|
|
3184
|
-
modelValue: e(
|
|
3185
|
-
"onUpdate:modelValue":
|
|
3184
|
+
modelValue: e(t).site_id,
|
|
3185
|
+
"onUpdate:modelValue": n[2] || (n[2] = (h) => e(t).site_id = h),
|
|
3186
3186
|
disabled: e(s)
|
|
3187
3187
|
}, null, 8, ["modelValue", "disabled"])
|
|
3188
3188
|
]),
|
|
@@ -3194,8 +3194,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3194
3194
|
}, {
|
|
3195
3195
|
default: o(() => [
|
|
3196
3196
|
l(g, {
|
|
3197
|
-
modelValue: e(
|
|
3198
|
-
"onUpdate:modelValue":
|
|
3197
|
+
modelValue: e(t).name,
|
|
3198
|
+
"onUpdate:modelValue": n[3] || (n[3] = (h) => e(t).name = h),
|
|
3199
3199
|
disabled: e(s),
|
|
3200
3200
|
placeholder: e(a)("placeholder.input")
|
|
3201
3201
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3208,8 +3208,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3208
3208
|
}, {
|
|
3209
3209
|
default: o(() => [
|
|
3210
3210
|
l(g, {
|
|
3211
|
-
modelValue: e(
|
|
3212
|
-
"onUpdate:modelValue":
|
|
3211
|
+
modelValue: e(t).path,
|
|
3212
|
+
"onUpdate:modelValue": n[4] || (n[4] = (h) => e(t).path = h),
|
|
3213
3213
|
disabled: e(s),
|
|
3214
3214
|
placeholder: e(a)("placeholder.input")
|
|
3215
3215
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3222,8 +3222,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3222
3222
|
}, {
|
|
3223
3223
|
default: o(() => [
|
|
3224
3224
|
l(g, {
|
|
3225
|
-
modelValue: e(
|
|
3226
|
-
"onUpdate:modelValue":
|
|
3225
|
+
modelValue: e(t).email,
|
|
3226
|
+
"onUpdate:modelValue": n[5] || (n[5] = (h) => e(t).email = h),
|
|
3227
3227
|
disabled: e(s),
|
|
3228
3228
|
placeholder: e(a)("placeholder.input")
|
|
3229
3229
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3236,8 +3236,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3236
3236
|
}, {
|
|
3237
3237
|
default: o(() => [
|
|
3238
3238
|
l(S, {
|
|
3239
|
-
modelValue: e(
|
|
3240
|
-
"onUpdate:modelValue":
|
|
3239
|
+
modelValue: e(t).encryption,
|
|
3240
|
+
"onUpdate:modelValue": n[6] || (n[6] = (h) => e(t).encryption = h)
|
|
3241
3241
|
}, {
|
|
3242
3242
|
default: o(() => [
|
|
3243
3243
|
l(p, {
|
|
@@ -3256,8 +3256,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3256
3256
|
}, {
|
|
3257
3257
|
default: o(() => [
|
|
3258
3258
|
l(g, {
|
|
3259
|
-
modelValue: e(
|
|
3260
|
-
"onUpdate:modelValue":
|
|
3259
|
+
modelValue: e(t).remark,
|
|
3260
|
+
"onUpdate:modelValue": n[7] || (n[7] = (h) => e(t).remark = h),
|
|
3261
3261
|
disabled: e(s),
|
|
3262
3262
|
placeholder: e(a)("placeholder.input")
|
|
3263
3263
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
@@ -3274,35 +3274,35 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3274
3274
|
}
|
|
3275
3275
|
}), Ol = /* @__PURE__ */ O({
|
|
3276
3276
|
__name: "DomainTableDrawer",
|
|
3277
|
-
setup(
|
|
3277
|
+
setup(R, {
|
|
3278
3278
|
expose: U
|
|
3279
3279
|
}) {
|
|
3280
3280
|
const {
|
|
3281
|
-
requesting:
|
|
3282
|
-
} =
|
|
3281
|
+
requesting: x
|
|
3282
|
+
} = I(ge), {
|
|
3283
3283
|
visible: k,
|
|
3284
|
-
open:
|
|
3284
|
+
open: y
|
|
3285
3285
|
} = xe(), {
|
|
3286
|
-
tableRef:
|
|
3286
|
+
tableRef: b,
|
|
3287
3287
|
formModalRef: m,
|
|
3288
3288
|
refresh: i,
|
|
3289
3289
|
openFormModal: u,
|
|
3290
|
-
editFormModal:
|
|
3291
|
-
} =
|
|
3290
|
+
editFormModal: t
|
|
3291
|
+
} = X(), {
|
|
3292
3292
|
formRef: v,
|
|
3293
3293
|
open: s,
|
|
3294
3294
|
edit: c
|
|
3295
3295
|
} = Te(), {
|
|
3296
3296
|
dialogRef: f,
|
|
3297
|
-
open:
|
|
3298
|
-
} = ve(),
|
|
3297
|
+
open: _
|
|
3298
|
+
} = ve(), A = [{
|
|
3299
3299
|
prop: "provider",
|
|
3300
3300
|
label: a("config.provider"),
|
|
3301
3301
|
width: 120,
|
|
3302
3302
|
cellRenderer: ({
|
|
3303
|
-
rowData:
|
|
3303
|
+
rowData: w
|
|
3304
3304
|
}) => l(r("el-text"), null, {
|
|
3305
|
-
default: () => [
|
|
3305
|
+
default: () => [w.provider?.name]
|
|
3306
3306
|
})
|
|
3307
3307
|
}, {
|
|
3308
3308
|
prop: "name",
|
|
@@ -3319,13 +3319,13 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3319
3319
|
width: 100,
|
|
3320
3320
|
align: "center",
|
|
3321
3321
|
render: ({
|
|
3322
|
-
rowData:
|
|
3322
|
+
rowData: w
|
|
3323
3323
|
}) => l(r("el-space"), null, {
|
|
3324
|
-
default: () => [l(
|
|
3324
|
+
default: () => [l(te, {
|
|
3325
3325
|
icon: "icon-edit",
|
|
3326
3326
|
t: "",
|
|
3327
|
-
onModify: () =>
|
|
3328
|
-
id:
|
|
3327
|
+
onModify: () => t({
|
|
3328
|
+
id: w.id
|
|
3329
3329
|
})
|
|
3330
3330
|
}, null), l(P, {
|
|
3331
3331
|
icon: "icon-safetycertificate-f",
|
|
@@ -3333,20 +3333,20 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3333
3333
|
size: "small",
|
|
3334
3334
|
link: !0,
|
|
3335
3335
|
onOpen: () => {
|
|
3336
|
-
|
|
3337
|
-
id:
|
|
3338
|
-
}) : (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());
|
|
3339
3339
|
}
|
|
3340
3340
|
}, null)]
|
|
3341
3341
|
})
|
|
3342
3342
|
}];
|
|
3343
3343
|
return U({
|
|
3344
|
-
open:
|
|
3345
|
-
}), (
|
|
3344
|
+
open: y
|
|
3345
|
+
}), (w, n) => {
|
|
3346
3346
|
const d = r("el-space"), p = r("el-page-header");
|
|
3347
3347
|
return M(), q(e(_e), {
|
|
3348
3348
|
modelValue: e(k),
|
|
3349
|
-
"onUpdate:modelValue":
|
|
3349
|
+
"onUpdate:modelValue": n[0] || (n[0] = (S) => z(k) ? k.value = S : null),
|
|
3350
3350
|
width: "600px",
|
|
3351
3351
|
"show-close": !1,
|
|
3352
3352
|
class: "basic-drawer"
|
|
@@ -3354,11 +3354,11 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3354
3354
|
title: o(() => [l(p, {
|
|
3355
3355
|
icon: ""
|
|
3356
3356
|
}, {
|
|
3357
|
-
title: o(() => [j("span", null,
|
|
3357
|
+
title: o(() => [j("span", null, F(e(a)("config.domain")), 1)]),
|
|
3358
3358
|
content: o(() => [l(e(K), {
|
|
3359
3359
|
onRefresh: e(i),
|
|
3360
3360
|
size: "default",
|
|
3361
|
-
loading: e(
|
|
3361
|
+
loading: e(x)
|
|
3362
3362
|
}, null, 8, ["onRefresh", "loading"]), l(e(P), {
|
|
3363
3363
|
onOpen: e(u)
|
|
3364
3364
|
}, null, 8, ["onOpen"])]),
|
|
@@ -3367,7 +3367,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3367
3367
|
alignment: "center"
|
|
3368
3368
|
}, {
|
|
3369
3369
|
default: o(() => [l(e(P), {
|
|
3370
|
-
onOpen: e(
|
|
3370
|
+
onOpen: e(_),
|
|
3371
3371
|
type: "danger"
|
|
3372
3372
|
}, null, 8, ["onOpen"])]),
|
|
3373
3373
|
_: 1
|
|
@@ -3376,12 +3376,12 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3376
3376
|
})]),
|
|
3377
3377
|
default: o(() => [l(e(ie), {
|
|
3378
3378
|
ref_key: "tableRef",
|
|
3379
|
-
ref:
|
|
3379
|
+
ref: b,
|
|
3380
3380
|
size: "small",
|
|
3381
3381
|
"row-key": "id",
|
|
3382
3382
|
url: e(ge).urls.list,
|
|
3383
|
-
columns:
|
|
3384
|
-
loading: e(
|
|
3383
|
+
columns: A,
|
|
3384
|
+
loading: e(x)
|
|
3385
3385
|
}, null, 8, ["url", "loading"]), l(Ml, {
|
|
3386
3386
|
ref_key: "formModalRef",
|
|
3387
3387
|
ref: m,
|
|
@@ -3400,22 +3400,22 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3400
3400
|
}
|
|
3401
3401
|
}), $l = /* @__PURE__ */ O({
|
|
3402
3402
|
__name: "SSLTableDrawer",
|
|
3403
|
-
setup(
|
|
3403
|
+
setup(R, {
|
|
3404
3404
|
expose: U
|
|
3405
3405
|
}) {
|
|
3406
3406
|
const {
|
|
3407
|
-
requesting:
|
|
3407
|
+
requesting: x,
|
|
3408
3408
|
executing: k
|
|
3409
|
-
} =
|
|
3410
|
-
visible:
|
|
3409
|
+
} = I(me), y = H(0), {
|
|
3410
|
+
visible: b,
|
|
3411
3411
|
open: m
|
|
3412
3412
|
} = xe(), {
|
|
3413
3413
|
tableRef: i,
|
|
3414
3414
|
formModalRef: u,
|
|
3415
|
-
refresh:
|
|
3415
|
+
refresh: t,
|
|
3416
3416
|
openFormModal: v,
|
|
3417
3417
|
editFormModal: s
|
|
3418
|
-
} =
|
|
3418
|
+
} = X(), c = [
|
|
3419
3419
|
{
|
|
3420
3420
|
prop: "client",
|
|
3421
3421
|
label: a("ssl.client"),
|
|
@@ -3454,68 +3454,68 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3454
3454
|
width: 160,
|
|
3455
3455
|
align: "center",
|
|
3456
3456
|
render: ({
|
|
3457
|
-
rowData:
|
|
3457
|
+
rowData: A
|
|
3458
3458
|
}) => l(r("el-space"), null, {
|
|
3459
|
-
default: () => [l(
|
|
3459
|
+
default: () => [l(te, {
|
|
3460
3460
|
size: "default",
|
|
3461
3461
|
icon: "icon-edit",
|
|
3462
3462
|
t: "",
|
|
3463
3463
|
disabled: k.value,
|
|
3464
3464
|
onModify: () => s({
|
|
3465
|
-
id:
|
|
3465
|
+
id: A.id
|
|
3466
3466
|
})
|
|
3467
|
-
}, null), l(
|
|
3467
|
+
}, null), l(Z, {
|
|
3468
3468
|
size: "default",
|
|
3469
3469
|
icon: "icon-key",
|
|
3470
3470
|
t: "",
|
|
3471
3471
|
text: !0,
|
|
3472
|
-
disabled: k.value &&
|
|
3473
|
-
loading:
|
|
3474
|
-
onClick: () => f(
|
|
3475
|
-
}, null), l(
|
|
3472
|
+
disabled: k.value && y.value !== A.id,
|
|
3473
|
+
loading: y.value == A.id,
|
|
3474
|
+
onClick: () => f(A.id)
|
|
3475
|
+
}, null), l(Z, {
|
|
3476
3476
|
size: "default",
|
|
3477
3477
|
icon: "icon-cloud-download",
|
|
3478
3478
|
t: "",
|
|
3479
3479
|
text: !0,
|
|
3480
|
-
disabled: k.value &&
|
|
3481
|
-
loading:
|
|
3482
|
-
onClick: () =>
|
|
3480
|
+
disabled: k.value && y.value !== A.id,
|
|
3481
|
+
loading: y.value == A.id,
|
|
3482
|
+
onClick: () => _(A)
|
|
3483
3483
|
}, null)]
|
|
3484
3484
|
})
|
|
3485
3485
|
}
|
|
3486
|
-
], f = (
|
|
3486
|
+
], f = (A) => {
|
|
3487
3487
|
me.gen({
|
|
3488
|
-
id:
|
|
3489
|
-
}).then((
|
|
3490
|
-
console.warn("Res:",
|
|
3488
|
+
id: A
|
|
3489
|
+
}).then((w) => {
|
|
3490
|
+
console.warn("Res:", w);
|
|
3491
3491
|
});
|
|
3492
3492
|
};
|
|
3493
|
-
function
|
|
3494
|
-
const
|
|
3495
|
-
fetch(
|
|
3496
|
-
let d = URL.createObjectURL(
|
|
3497
|
-
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);
|
|
3498
3498
|
});
|
|
3499
3499
|
}
|
|
3500
3500
|
return U({
|
|
3501
3501
|
open: m
|
|
3502
|
-
}), (
|
|
3503
|
-
const
|
|
3502
|
+
}), (A, w) => {
|
|
3503
|
+
const n = r("el-page-header");
|
|
3504
3504
|
return M(), q(e(_e), {
|
|
3505
|
-
modelValue: e(
|
|
3506
|
-
"onUpdate:modelValue":
|
|
3505
|
+
modelValue: e(b),
|
|
3506
|
+
"onUpdate:modelValue": w[0] || (w[0] = (d) => z(b) ? b.value = d : null),
|
|
3507
3507
|
width: "1000px",
|
|
3508
3508
|
"show-close": !1,
|
|
3509
3509
|
class: "basic-drawer"
|
|
3510
3510
|
}, {
|
|
3511
|
-
title: o(() => [l(
|
|
3511
|
+
title: o(() => [l(n, {
|
|
3512
3512
|
icon: ""
|
|
3513
3513
|
}, {
|
|
3514
|
-
title: o(() => [j("span", null,
|
|
3514
|
+
title: o(() => [j("span", null, F(e(a)("ssl.ssl")), 1)]),
|
|
3515
3515
|
content: o(() => [l(e(K), {
|
|
3516
|
-
onRefresh: e(
|
|
3516
|
+
onRefresh: e(t),
|
|
3517
3517
|
size: "default",
|
|
3518
|
-
loading: e(
|
|
3518
|
+
loading: e(x)
|
|
3519
3519
|
}, null, 8, ["onRefresh", "loading"]), l(e(P), {
|
|
3520
3520
|
onOpen: e(v)
|
|
3521
3521
|
}, null, 8, ["onOpen"])]),
|
|
@@ -3528,11 +3528,11 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3528
3528
|
"row-key": "id",
|
|
3529
3529
|
url: e(me).urls.list,
|
|
3530
3530
|
columns: c,
|
|
3531
|
-
loading: e(
|
|
3531
|
+
loading: e(x)
|
|
3532
3532
|
}, null, 8, ["url", "loading"]), l(Ne, {
|
|
3533
3533
|
ref_key: "formModalRef",
|
|
3534
3534
|
ref: u,
|
|
3535
|
-
onRefresh: e(
|
|
3535
|
+
onRefresh: e(t)
|
|
3536
3536
|
}, null, 8, ["onRefresh"])]),
|
|
3537
3537
|
_: 1
|
|
3538
3538
|
}, 8, ["modelValue"]);
|
|
@@ -3543,40 +3543,40 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3543
3543
|
props: {
|
|
3544
3544
|
ssl: { type: Object, default: () => ({}) }
|
|
3545
3545
|
},
|
|
3546
|
-
setup(
|
|
3547
|
-
const
|
|
3546
|
+
setup(R, { expose: U }) {
|
|
3547
|
+
const x = R, { requesting: k, executing: y } = I([Ce, me]), { visible: b, open: m } = xe(), { tableRef: i, refresh: u } = ll(), t = [
|
|
3548
3548
|
{ prop: "status.label", label: a("base.status"), width: 100 },
|
|
3549
3549
|
{ prop: "at", label: a("base.time"), width: 180 },
|
|
3550
3550
|
{ prop: "type_text", label: a("base.type"), width: 80 },
|
|
3551
3551
|
{ prop: "result", label: a("base.result"), width: 0 }
|
|
3552
3552
|
];
|
|
3553
3553
|
function v() {
|
|
3554
|
-
me.gen({ id:
|
|
3554
|
+
me.gen({ id: x.ssl.id }).then((c) => {
|
|
3555
3555
|
console.warn("Res:", c);
|
|
3556
3556
|
});
|
|
3557
3557
|
}
|
|
3558
3558
|
function s() {
|
|
3559
|
-
const c = Oe.getDownloadUrl(
|
|
3559
|
+
const c = Oe.getDownloadUrl(x.ssl.path + ".zip");
|
|
3560
3560
|
fetch(c).then((f) => f.blob()).then((f) => {
|
|
3561
|
-
let
|
|
3562
|
-
|
|
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);
|
|
3563
3563
|
});
|
|
3564
3564
|
}
|
|
3565
3565
|
return U({
|
|
3566
3566
|
open: m
|
|
3567
3567
|
}), (c, f) => {
|
|
3568
|
-
const
|
|
3568
|
+
const _ = r("el-page-header");
|
|
3569
3569
|
return M(), q(e(_e), {
|
|
3570
|
-
modelValue: e(
|
|
3571
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
3570
|
+
modelValue: e(b),
|
|
3571
|
+
"onUpdate:modelValue": f[0] || (f[0] = (A) => z(b) ? b.value = A : null),
|
|
3572
3572
|
width: "600px",
|
|
3573
3573
|
"show-close": !1,
|
|
3574
3574
|
class: "basic-drawer"
|
|
3575
3575
|
}, {
|
|
3576
3576
|
title: o(() => [
|
|
3577
|
-
l(
|
|
3577
|
+
l(_, { icon: "" }, {
|
|
3578
3578
|
title: o(() => [
|
|
3579
|
-
j("span", null,
|
|
3579
|
+
j("span", null, F(e(a)("config.ssl base.log")), 1)
|
|
3580
3580
|
]),
|
|
3581
3581
|
content: o(() => [
|
|
3582
3582
|
l(e(K), {
|
|
@@ -3586,20 +3586,20 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3586
3586
|
}, null, 8, ["onRefresh", "loading"])
|
|
3587
3587
|
]),
|
|
3588
3588
|
extra: o(() => [
|
|
3589
|
-
l(e(
|
|
3589
|
+
l(e(Z), {
|
|
3590
3590
|
size: "default",
|
|
3591
3591
|
type: "danger",
|
|
3592
3592
|
icon: "icon-key",
|
|
3593
|
-
disabled: e(
|
|
3594
|
-
loading: e(
|
|
3593
|
+
disabled: e(y),
|
|
3594
|
+
loading: e(y),
|
|
3595
3595
|
onClick: v
|
|
3596
3596
|
}, null, 8, ["disabled", "loading"]),
|
|
3597
|
-
l(e(
|
|
3597
|
+
l(e(Z), {
|
|
3598
3598
|
size: "default",
|
|
3599
3599
|
type: "primary",
|
|
3600
3600
|
icon: "icon-cloud-download",
|
|
3601
|
-
disabled: e(
|
|
3602
|
-
loading: e(
|
|
3601
|
+
disabled: e(y),
|
|
3602
|
+
loading: e(y),
|
|
3603
3603
|
onClick: s
|
|
3604
3604
|
}, null, 8, ["disabled", "loading"])
|
|
3605
3605
|
]),
|
|
@@ -3613,7 +3613,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3613
3613
|
size: "small",
|
|
3614
3614
|
"row-key": "id",
|
|
3615
3615
|
url: e(Ce).urls.search,
|
|
3616
|
-
columns:
|
|
3616
|
+
columns: t,
|
|
3617
3617
|
loading: e(k)
|
|
3618
3618
|
}, null, 8, ["url", "loading"])
|
|
3619
3619
|
]),
|
|
@@ -3623,25 +3623,25 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3623
3623
|
}
|
|
3624
3624
|
}), Fl = /* @__PURE__ */ O({
|
|
3625
3625
|
__name: "index",
|
|
3626
|
-
setup(
|
|
3627
|
-
const U = Ol,
|
|
3628
|
-
requesting:
|
|
3626
|
+
setup(R) {
|
|
3627
|
+
const U = Ol, x = $l, k = El, y = H(), {
|
|
3628
|
+
requesting: b,
|
|
3629
3629
|
executing: m
|
|
3630
|
-
} =
|
|
3630
|
+
} = I(pe), {
|
|
3631
3631
|
tableRef: i,
|
|
3632
3632
|
formModalRef: u,
|
|
3633
|
-
reset:
|
|
3633
|
+
reset: t,
|
|
3634
3634
|
refresh: v,
|
|
3635
3635
|
openFormModal: s,
|
|
3636
3636
|
editFormModal: c
|
|
3637
|
-
} =
|
|
3637
|
+
} = X(), {
|
|
3638
3638
|
dialogRef: f,
|
|
3639
|
-
open:
|
|
3639
|
+
open: _
|
|
3640
3640
|
} = ve(), {
|
|
3641
|
-
dialogRef:
|
|
3642
|
-
open:
|
|
3641
|
+
dialogRef: A,
|
|
3642
|
+
open: w
|
|
3643
3643
|
} = ve(), {
|
|
3644
|
-
dialogRef:
|
|
3644
|
+
dialogRef: n,
|
|
3645
3645
|
open: d
|
|
3646
3646
|
} = ve(), p = [{
|
|
3647
3647
|
prop: "domain.name",
|
|
@@ -3668,16 +3668,16 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3668
3668
|
align: "center",
|
|
3669
3669
|
width: 140,
|
|
3670
3670
|
cellRenderer: ({
|
|
3671
|
-
rowData:
|
|
3671
|
+
rowData: V
|
|
3672
3672
|
}) => l(r("el-space"), null, {
|
|
3673
3673
|
default: () => [l(r("el-text"), null, {
|
|
3674
|
-
default: () => [
|
|
3674
|
+
default: () => [V.ssl?.renewal_days, Q(" 天")]
|
|
3675
3675
|
}), l(r("el-button"), {
|
|
3676
3676
|
size: "small",
|
|
3677
3677
|
type: "primary",
|
|
3678
3678
|
text: !0,
|
|
3679
3679
|
onClick: (h) => {
|
|
3680
|
-
h.stopPropagation(),
|
|
3680
|
+
h.stopPropagation(), V.ssl && V.ssl.id && (y.value = V.ssl, d());
|
|
3681
3681
|
}
|
|
3682
3682
|
}, {
|
|
3683
3683
|
default: () => [l("span", {
|
|
@@ -3696,35 +3696,35 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3696
3696
|
width: 100,
|
|
3697
3697
|
align: "center",
|
|
3698
3698
|
cellRenderer: ({
|
|
3699
|
-
rowData:
|
|
3699
|
+
rowData: V
|
|
3700
3700
|
}) => l(r("el-space"), null, {
|
|
3701
|
-
default: () => [l(
|
|
3701
|
+
default: () => [l(te, {
|
|
3702
3702
|
icon: "icon-edit",
|
|
3703
3703
|
t: "",
|
|
3704
3704
|
onModify: () => c({
|
|
3705
|
-
id:
|
|
3705
|
+
id: V.id
|
|
3706
3706
|
})
|
|
3707
|
-
}, null), l(
|
|
3707
|
+
}, null), l(Z, {
|
|
3708
3708
|
icon: "icon-securityscan",
|
|
3709
3709
|
type: "primary",
|
|
3710
3710
|
size: "small",
|
|
3711
3711
|
link: !0,
|
|
3712
3712
|
disabled: m.value,
|
|
3713
|
-
loading: S.value ==
|
|
3714
|
-
onClick: () => g(
|
|
3713
|
+
loading: S.value == V.id && m.value,
|
|
3714
|
+
onClick: () => g(V)
|
|
3715
3715
|
}, null)]
|
|
3716
3716
|
})
|
|
3717
|
-
}], S = H(0), g = (
|
|
3718
|
-
S.value =
|
|
3719
|
-
id:
|
|
3717
|
+
}], S = H(0), g = (V) => {
|
|
3718
|
+
S.value = V.id, pe.check({
|
|
3719
|
+
id: V.id
|
|
3720
3720
|
}).then((h) => {
|
|
3721
3721
|
h.data && (al(h), v());
|
|
3722
3722
|
}).finally(() => {
|
|
3723
3723
|
S.value = 0;
|
|
3724
3724
|
});
|
|
3725
3725
|
};
|
|
3726
|
-
return (
|
|
3727
|
-
const C = r("el-space"),
|
|
3726
|
+
return (V, h) => {
|
|
3727
|
+
const C = r("el-space"), D = r("el-page-header"), L = r("el-card");
|
|
3728
3728
|
return M(), q(L, {
|
|
3729
3729
|
"body-style": {
|
|
3730
3730
|
padding: "12px",
|
|
@@ -3733,10 +3733,10 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3733
3733
|
"body-class": "flex-1",
|
|
3734
3734
|
class: "config-card"
|
|
3735
3735
|
}, {
|
|
3736
|
-
header: o(() => [l(
|
|
3736
|
+
header: o(() => [l(D, {
|
|
3737
3737
|
icon: ""
|
|
3738
3738
|
}, {
|
|
3739
|
-
title: o(() => [j("span", null,
|
|
3739
|
+
title: o(() => [j("span", null, F(e(a)("config.keys.sites")), 1)]),
|
|
3740
3740
|
content: o(() => [l(C, {
|
|
3741
3741
|
alignment: "center",
|
|
3742
3742
|
style: {
|
|
@@ -3744,18 +3744,18 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3744
3744
|
}
|
|
3745
3745
|
}, {
|
|
3746
3746
|
default: o(() => [l(e(K), {
|
|
3747
|
-
loading: e(
|
|
3748
|
-
onRefresh: e(
|
|
3747
|
+
loading: e(b),
|
|
3748
|
+
onRefresh: e(t)
|
|
3749
3749
|
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
3750
3750
|
onOpen: e(s)
|
|
3751
3751
|
}, null, 8, ["onOpen"])]),
|
|
3752
3752
|
_: 1
|
|
3753
3753
|
})]),
|
|
3754
3754
|
extra: o(() => [l(e(P), {
|
|
3755
|
-
onOpen: e(
|
|
3755
|
+
onOpen: e(_),
|
|
3756
3756
|
icon: "icon-compass"
|
|
3757
3757
|
}, null, 8, ["onOpen"]), l(e(P), {
|
|
3758
|
-
onOpen: e(
|
|
3758
|
+
onOpen: e(w),
|
|
3759
3759
|
icon: "icon-safetycertificate-f"
|
|
3760
3760
|
}, null, 8, ["onOpen"])]),
|
|
3761
3761
|
_: 1
|
|
@@ -3775,12 +3775,12 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3775
3775
|
}, null, 8, ["onRefresh"]), l(e(U), {
|
|
3776
3776
|
ref_key: "domainTableDrawerRef",
|
|
3777
3777
|
ref: f
|
|
3778
|
-
}, null, 512), l(e(
|
|
3778
|
+
}, null, 512), l(e(x), {
|
|
3779
3779
|
ref_key: "sslTableDrawerRef",
|
|
3780
|
-
ref:
|
|
3780
|
+
ref: A
|
|
3781
3781
|
}, null, 512), l(e(k), {
|
|
3782
3782
|
ref_key: "sslLogTableDrawerRef",
|
|
3783
|
-
ref:
|
|
3783
|
+
ref: n
|
|
3784
3784
|
}, null, 512)]),
|
|
3785
3785
|
_: 1
|
|
3786
3786
|
});
|
|
@@ -3795,34 +3795,66 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3795
3795
|
sql: "SQL"
|
|
3796
3796
|
}, ce = Y.routineApi("log", "id", Nl), Xl = /* @__PURE__ */ O({
|
|
3797
3797
|
__name: "index",
|
|
3798
|
-
setup(
|
|
3798
|
+
setup(R) {
|
|
3799
3799
|
const U = {
|
|
3800
3800
|
dates: [E.getCurrentHour().format(E.DATE_VALUE_FORMAT), E.getCurrentHour(1).format(E.DATE_VALUE_FORMAT)]
|
|
3801
|
-
},
|
|
3802
|
-
label: a("base.sort"),
|
|
3803
|
-
type: "index",
|
|
3804
|
-
width: 60
|
|
3805
|
-
}, {
|
|
3801
|
+
}, x = [{
|
|
3806
3802
|
label: a("base.time"),
|
|
3807
3803
|
prop: "time",
|
|
3808
3804
|
width: 180,
|
|
3809
3805
|
render: ({
|
|
3810
3806
|
rowData: u
|
|
3811
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
|
+
})
|
|
3812
3835
|
}, {
|
|
3813
3836
|
label: a("base.url"),
|
|
3814
3837
|
prop: "url",
|
|
3815
3838
|
align: "left",
|
|
3816
|
-
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
|
|
3817
3849
|
}], {
|
|
3818
3850
|
requesting: k
|
|
3819
|
-
} =
|
|
3820
|
-
tableRef:
|
|
3821
|
-
keyword:
|
|
3851
|
+
} = I(ce), {
|
|
3852
|
+
tableRef: y,
|
|
3853
|
+
keyword: b,
|
|
3822
3854
|
search: m,
|
|
3823
3855
|
reset: i
|
|
3824
|
-
} =
|
|
3825
|
-
return (u,
|
|
3856
|
+
} = X(U);
|
|
3857
|
+
return (u, t) => {
|
|
3826
3858
|
const v = r("el-date-picker"), s = r("el-space"), c = r("el-page-header"), f = r("el-card");
|
|
3827
3859
|
return M(), q(f, {
|
|
3828
3860
|
class: "basic-card flex-full",
|
|
@@ -3839,8 +3871,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3839
3871
|
class: "search-bar"
|
|
3840
3872
|
}, {
|
|
3841
3873
|
default: o(() => [l(v, {
|
|
3842
|
-
modelValue: e(
|
|
3843
|
-
"onUpdate:modelValue":
|
|
3874
|
+
modelValue: e(b).dates,
|
|
3875
|
+
"onUpdate:modelValue": t[0] || (t[0] = (_) => e(b).dates = _),
|
|
3844
3876
|
class: "basic-search-datetimerange",
|
|
3845
3877
|
"value-format": e(E).DATE_VALUE_FORMAT,
|
|
3846
3878
|
format: e(E).DATE_SHOW_FORMAT,
|
|
@@ -3849,10 +3881,10 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3849
3881
|
"start-placeholder": e(a)("base.start_at"),
|
|
3850
3882
|
"end-placeholder": e(a)("base.end_at"),
|
|
3851
3883
|
clearable: !1,
|
|
3852
|
-
onChange:
|
|
3884
|
+
onChange: t[1] || (t[1] = (_) => e(m)())
|
|
3853
3885
|
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(de), {
|
|
3854
3886
|
disabled: e(k),
|
|
3855
|
-
onSearch:
|
|
3887
|
+
onSearch: t[2] || (t[2] = (_) => e(m)())
|
|
3856
3888
|
}, null, 8, ["disabled"])]),
|
|
3857
3889
|
_: 1
|
|
3858
3890
|
})]),
|
|
@@ -3860,11 +3892,11 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3860
3892
|
})]),
|
|
3861
3893
|
default: o(() => [l(e(ie), {
|
|
3862
3894
|
ref_key: "tableRef",
|
|
3863
|
-
ref:
|
|
3895
|
+
ref: y,
|
|
3864
3896
|
size: "small",
|
|
3865
|
-
columns:
|
|
3897
|
+
columns: x,
|
|
3866
3898
|
url: e(ce).urls.request,
|
|
3867
|
-
"search-param": e(
|
|
3899
|
+
"search-param": e(b),
|
|
3868
3900
|
"auto-search": ""
|
|
3869
3901
|
}, null, 8, ["url", "search-param"])]),
|
|
3870
3902
|
_: 1
|
|
@@ -3873,14 +3905,10 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3873
3905
|
}
|
|
3874
3906
|
}), Zl = /* @__PURE__ */ O({
|
|
3875
3907
|
__name: "index",
|
|
3876
|
-
setup(
|
|
3908
|
+
setup(R) {
|
|
3877
3909
|
const U = {
|
|
3878
3910
|
dates: [E.getCurrentDate(-7).format(E.DATE_FORMAT), E.getCurrentDate(0).format(E.DATE_FORMAT)]
|
|
3879
|
-
},
|
|
3880
|
-
label: a("base.sort"),
|
|
3881
|
-
type: "index",
|
|
3882
|
-
width: 60
|
|
3883
|
-
}, {
|
|
3911
|
+
}, x = [{
|
|
3884
3912
|
label: a("base.time"),
|
|
3885
3913
|
prop: "time",
|
|
3886
3914
|
width: 180,
|
|
@@ -3888,19 +3916,27 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3888
3916
|
rowData: u
|
|
3889
3917
|
}) => l(G, null, [E.formatDate(u.time)])
|
|
3890
3918
|
}, {
|
|
3891
|
-
label: a("base.
|
|
3892
|
-
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",
|
|
3893
3929
|
align: "left",
|
|
3894
|
-
width:
|
|
3930
|
+
width: 0
|
|
3895
3931
|
}], {
|
|
3896
3932
|
requesting: k
|
|
3897
|
-
} =
|
|
3898
|
-
tableRef:
|
|
3899
|
-
keyword:
|
|
3933
|
+
} = I(ce), {
|
|
3934
|
+
tableRef: y,
|
|
3935
|
+
keyword: b,
|
|
3900
3936
|
search: m,
|
|
3901
3937
|
reset: i
|
|
3902
|
-
} =
|
|
3903
|
-
return (u,
|
|
3938
|
+
} = X(U);
|
|
3939
|
+
return (u, t) => {
|
|
3904
3940
|
const v = r("el-date-picker"), s = r("el-space"), c = r("el-page-header"), f = r("el-card");
|
|
3905
3941
|
return M(), q(f, {
|
|
3906
3942
|
class: "basic-card flex-full",
|
|
@@ -3917,8 +3953,8 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3917
3953
|
class: "search-bar"
|
|
3918
3954
|
}, {
|
|
3919
3955
|
default: o(() => [l(v, {
|
|
3920
|
-
modelValue: e(
|
|
3921
|
-
"onUpdate:modelValue":
|
|
3956
|
+
modelValue: e(b).dates,
|
|
3957
|
+
"onUpdate:modelValue": t[0] || (t[0] = (_) => e(b).dates = _),
|
|
3922
3958
|
class: "basic-search-daterange",
|
|
3923
3959
|
"value-format": e(E).DATE_FORMAT,
|
|
3924
3960
|
format: e(E).DATE_FORMAT,
|
|
@@ -3927,10 +3963,10 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3927
3963
|
"start-placeholder": e(a)("base.start_at"),
|
|
3928
3964
|
"end-placeholder": e(a)("base.end_at"),
|
|
3929
3965
|
clearable: !1,
|
|
3930
|
-
onChange:
|
|
3966
|
+
onChange: t[1] || (t[1] = (_) => e(m)())
|
|
3931
3967
|
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(de), {
|
|
3932
3968
|
disabled: e(k),
|
|
3933
|
-
onSearch:
|
|
3969
|
+
onSearch: t[2] || (t[2] = (_) => e(m)())
|
|
3934
3970
|
}, null, 8, ["disabled"])]),
|
|
3935
3971
|
_: 1
|
|
3936
3972
|
})]),
|
|
@@ -3938,11 +3974,11 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3938
3974
|
})]),
|
|
3939
3975
|
default: o(() => [l(e(ie), {
|
|
3940
3976
|
ref_key: "tableRef",
|
|
3941
|
-
ref:
|
|
3977
|
+
ref: y,
|
|
3942
3978
|
size: "small",
|
|
3943
|
-
columns:
|
|
3979
|
+
columns: x,
|
|
3944
3980
|
url: e(ce).urls.error,
|
|
3945
|
-
"search-param": e(
|
|
3981
|
+
"search-param": e(b),
|
|
3946
3982
|
"auto-search": ""
|
|
3947
3983
|
}, null, 8, ["url", "search-param"])]),
|
|
3948
3984
|
_: 1
|
|
@@ -3951,10 +3987,11 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3951
3987
|
}
|
|
3952
3988
|
}), ea = /* @__PURE__ */ O({
|
|
3953
3989
|
__name: "index",
|
|
3954
|
-
setup(
|
|
3990
|
+
setup(R) {
|
|
3955
3991
|
const U = {
|
|
3956
|
-
dates: [E.getCurrentDate(-7).format(E.DATE_FORMAT), E.getCurrentDate().format(E.DATE_FORMAT)]
|
|
3957
|
-
|
|
3992
|
+
dates: [E.getCurrentDate(-7).format(E.DATE_FORMAT), E.getCurrentDate().format(E.DATE_FORMAT)],
|
|
3993
|
+
type: "slow"
|
|
3994
|
+
}, x = [{
|
|
3958
3995
|
label: a("base.sort"),
|
|
3959
3996
|
type: "index",
|
|
3960
3997
|
width: 60
|
|
@@ -3966,37 +4003,41 @@ const Ql = /* @__PURE__ */ O({
|
|
|
3966
4003
|
rowData: u
|
|
3967
4004
|
}) => l(G, null, [E.formatDate(u.time)])
|
|
3968
4005
|
}, {
|
|
3969
|
-
label: a("
|
|
3970
|
-
prop: "
|
|
4006
|
+
label: a("time.cost") + "(ms)",
|
|
4007
|
+
prop: "cost",
|
|
4008
|
+
width: 120
|
|
4009
|
+
}, {
|
|
4010
|
+
label: a("base.sql"),
|
|
4011
|
+
prop: "sql",
|
|
3971
4012
|
align: "left",
|
|
3972
|
-
width:
|
|
4013
|
+
width: 0
|
|
3973
4014
|
}], {
|
|
3974
4015
|
requesting: k
|
|
3975
|
-
} =
|
|
3976
|
-
tableRef:
|
|
3977
|
-
keyword:
|
|
4016
|
+
} = I(ce), {
|
|
4017
|
+
tableRef: y,
|
|
4018
|
+
keyword: b,
|
|
3978
4019
|
search: m,
|
|
3979
4020
|
reset: i
|
|
3980
|
-
} =
|
|
3981
|
-
return (u,
|
|
3982
|
-
const v = r("el-date-picker"), s = r("el-
|
|
3983
|
-
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, {
|
|
3984
4025
|
class: "basic-card flex-full",
|
|
3985
4026
|
"body-class": "flex-1"
|
|
3986
4027
|
}, {
|
|
3987
|
-
header: o(() => [l(
|
|
4028
|
+
header: o(() => [l(_, {
|
|
3988
4029
|
class: "basic-header"
|
|
3989
4030
|
}, {
|
|
3990
4031
|
title: o(() => [l(e(K), {
|
|
3991
4032
|
loading: e(k),
|
|
3992
4033
|
onRefresh: e(i)
|
|
3993
4034
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
3994
|
-
content: o(() => [l(
|
|
4035
|
+
content: o(() => [l(f, {
|
|
3995
4036
|
class: "search-bar"
|
|
3996
4037
|
}, {
|
|
3997
4038
|
default: o(() => [l(v, {
|
|
3998
|
-
modelValue: e(
|
|
3999
|
-
"onUpdate:modelValue":
|
|
4039
|
+
modelValue: e(b).dates,
|
|
4040
|
+
"onUpdate:modelValue": t[0] || (t[0] = (w) => e(b).dates = w),
|
|
4000
4041
|
class: "basic-search-daterange",
|
|
4001
4042
|
"value-format": e(E).DATE_FORMAT,
|
|
4002
4043
|
format: e(E).DATE_FORMAT,
|
|
@@ -4005,10 +4046,31 @@ const Ql = /* @__PURE__ */ O({
|
|
|
4005
4046
|
"start-placeholder": e(a)("base.start_at"),
|
|
4006
4047
|
"end-placeholder": e(a)("base.end_at"),
|
|
4007
4048
|
clearable: !1,
|
|
4008
|
-
onChange:
|
|
4009
|
-
}, 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), {
|
|
4010
4072
|
disabled: e(k),
|
|
4011
|
-
onSearch:
|
|
4073
|
+
onSearch: t[3] || (t[3] = (w) => e(m)())
|
|
4012
4074
|
}, null, 8, ["disabled"])]),
|
|
4013
4075
|
_: 1
|
|
4014
4076
|
})]),
|
|
@@ -4016,11 +4078,11 @@ const Ql = /* @__PURE__ */ O({
|
|
|
4016
4078
|
})]),
|
|
4017
4079
|
default: o(() => [l(e(ie), {
|
|
4018
4080
|
ref_key: "tableRef",
|
|
4019
|
-
ref:
|
|
4081
|
+
ref: y,
|
|
4020
4082
|
size: "small",
|
|
4021
|
-
columns:
|
|
4083
|
+
columns: x,
|
|
4022
4084
|
url: e(ce).urls.sql,
|
|
4023
|
-
"search-param": e(
|
|
4085
|
+
"search-param": e(b),
|
|
4024
4086
|
"auto-search": ""
|
|
4025
4087
|
}, null, 8, ["url", "search-param"])]),
|
|
4026
4088
|
_: 1
|
|
@@ -4049,39 +4111,39 @@ const Ql = /* @__PURE__ */ O({
|
|
|
4049
4111
|
}
|
|
4050
4112
|
},
|
|
4051
4113
|
emits: ["update:modelValue", "update:value", "change"],
|
|
4052
|
-
setup(
|
|
4114
|
+
setup(R, {
|
|
4053
4115
|
emit: U
|
|
4054
4116
|
}) {
|
|
4055
|
-
const
|
|
4056
|
-
requesting:
|
|
4057
|
-
} =
|
|
4058
|
-
value:
|
|
4117
|
+
const x = U, k = R, {
|
|
4118
|
+
requesting: y
|
|
4119
|
+
} = I(W), {
|
|
4120
|
+
value: b,
|
|
4059
4121
|
options: m,
|
|
4060
4122
|
change: i
|
|
4061
|
-
} = re(
|
|
4123
|
+
} = re(ne(k, "modelValue"), x, {
|
|
4062
4124
|
key: "LANGUAGE_SELECT",
|
|
4063
4125
|
url: W.urls.languages,
|
|
4064
4126
|
api: W,
|
|
4065
4127
|
isArray: !0
|
|
4066
4128
|
}, {
|
|
4067
|
-
formatOptions: (u) => u.map((
|
|
4068
|
-
value:
|
|
4069
|
-
label:
|
|
4129
|
+
formatOptions: (u) => u.map((t) => ({
|
|
4130
|
+
value: t,
|
|
4131
|
+
label: t
|
|
4070
4132
|
}))
|
|
4071
4133
|
});
|
|
4072
|
-
return (u,
|
|
4134
|
+
return (u, t) => {
|
|
4073
4135
|
const v = r("el-radio-button"), s = r("el-radio-group");
|
|
4074
4136
|
return M(), q(s, {
|
|
4075
|
-
modelValue: e(
|
|
4076
|
-
"onUpdate:modelValue":
|
|
4077
|
-
disabled: e(
|
|
4137
|
+
modelValue: e(b),
|
|
4138
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => z(b) ? b.value = c : null),
|
|
4139
|
+
disabled: e(y),
|
|
4078
4140
|
onChange: e(i)
|
|
4079
4141
|
}, {
|
|
4080
4142
|
default: o(() => [(M(!0), B(G, null, ae(e(m), (c) => (M(), q(v, {
|
|
4081
4143
|
key: c.value,
|
|
4082
4144
|
value: c.value
|
|
4083
4145
|
}, {
|
|
4084
|
-
default: o(() => [j("span", null,
|
|
4146
|
+
default: o(() => [j("span", null, F(c.label), 1)]),
|
|
4085
4147
|
_: 2
|
|
4086
4148
|
}, 1032, ["value"]))), 128))]),
|
|
4087
4149
|
_: 1
|
|
@@ -4090,7 +4152,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
4090
4152
|
}
|
|
4091
4153
|
}), Bl = () => import("./index-SHsqnbNG.js"), Pl = () => import("./index-CJMTIvHk.js"), jl = () => import("./index-BMn8mAns.js"), aa = [
|
|
4092
4154
|
{
|
|
4093
|
-
path:
|
|
4155
|
+
path: tl,
|
|
4094
4156
|
name: "RequestLog",
|
|
4095
4157
|
component: Bl,
|
|
4096
4158
|
meta: {
|
|
@@ -4098,7 +4160,7 @@ const Ql = /* @__PURE__ */ O({
|
|
|
4098
4160
|
}
|
|
4099
4161
|
},
|
|
4100
4162
|
{
|
|
4101
|
-
path:
|
|
4163
|
+
path: nl,
|
|
4102
4164
|
name: "ErrorLog",
|
|
4103
4165
|
component: Pl,
|
|
4104
4166
|
meta: {
|
|
@@ -4114,11 +4176,11 @@ const Ql = /* @__PURE__ */ O({
|
|
|
4114
4176
|
}
|
|
4115
4177
|
}
|
|
4116
4178
|
], oa = {
|
|
4117
|
-
install: (
|
|
4118
|
-
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));
|
|
4119
4181
|
},
|
|
4120
4182
|
version: "__VERSION__"
|
|
4121
|
-
},
|
|
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) });
|
|
4122
4184
|
export {
|
|
4123
4185
|
Jl as AdminsPage,
|
|
4124
4186
|
Sl as DomainProviderSelect,
|
|
@@ -4135,6 +4197,6 @@ export {
|
|
|
4135
4197
|
zl as SitePage,
|
|
4136
4198
|
ql as SiteSelect,
|
|
4137
4199
|
il as TopMenuSelect,
|
|
4138
|
-
|
|
4200
|
+
ta as basicModules,
|
|
4139
4201
|
oa as default
|
|
4140
4202
|
};
|