auto-vue-basic 0.0.94 → 0.0.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auto-vue-basic.es.js +1384 -1339
- package/dist/auto-vue-basic.umd.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as O, toRef as
|
|
2
|
-
import { ApiUtils as
|
|
1
|
+
import { defineComponent as O, toRef as te, resolveComponent as r, openBlock as M, createBlock as q, unref as e, isRef as F, withCtx as o, createVNode as l, createElementVNode as j, normalizeClass as Ae, toDisplayString as I, ref as H, Fragment as G, withKeys as Ve, createElementBlock as B, renderList as ae, isVNode as De, reactive as Ke, onMounted as We, watch as Le, nextTick as Ge, createTextVNode as le, createCommentVNode as Ye, shallowRef as He, onBeforeMount as Qe } from "vue";
|
|
2
|
+
import { ApiUtils as Y, useLoading as z, useSelect as re, Translate as a, InlineRefreshButton as fe, useForm as ee, FormDialog as oe, DEFAULT_STATUS_KEY as Se, ModifyButton as ne, useCrudPage as J, useSingleFormModal as Te, DEFAULT_REMOVE_KEY as Je, ProTable as be, DEFAULT_PAGE_KEY as ye, SearchButton as de, RefreshButton as K, OpenButton as P, useCacheStore as Xe, useDialog as xe, RequestButton as X, 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 nl, ERROR_LOG_URL as tl, 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
|
+
}, Q = 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 },
|
|
@@ -13,40 +13,40 @@ const ul = {
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:modelValue", "change"],
|
|
15
15
|
setup(x, { emit: U }) {
|
|
16
|
-
const v = U,
|
|
16
|
+
const v = U, k = x, { requesting: V } = z(Q), { value: _, options: m, change: i, refresh: u, filterOptions: n } = re(te(k, "modelValue"), v, {
|
|
17
17
|
key: "TOP_MENU_LIST",
|
|
18
|
-
api:
|
|
19
|
-
url:
|
|
18
|
+
api: Q,
|
|
19
|
+
url: Q.urls.tops,
|
|
20
20
|
isArray: !0
|
|
21
21
|
});
|
|
22
|
-
return (w,
|
|
23
|
-
const
|
|
24
|
-
return M(),
|
|
22
|
+
return (w, s) => {
|
|
23
|
+
const c = r("el-space"), f = r("el-select-v2");
|
|
24
|
+
return M(), q(f, {
|
|
25
25
|
class: "w-full",
|
|
26
|
-
modelValue: e(
|
|
27
|
-
"onUpdate:modelValue":
|
|
28
|
-
options: e(
|
|
26
|
+
modelValue: e(_),
|
|
27
|
+
"onUpdate:modelValue": s[1] || (s[1] = (b) => F(_) ? _.value = b : null),
|
|
28
|
+
options: e(m),
|
|
29
29
|
multiple: x.multiple,
|
|
30
|
-
disabled: e(
|
|
30
|
+
disabled: e(V) || x.disabled,
|
|
31
31
|
placeholder: e(a)("placeholder.select"),
|
|
32
32
|
filterable: "",
|
|
33
33
|
filterOptions: e(n),
|
|
34
34
|
"empty-values": [void 0],
|
|
35
|
-
onChange: e(
|
|
35
|
+
onChange: e(i)
|
|
36
36
|
}, {
|
|
37
37
|
prefix: o(() => [
|
|
38
38
|
l(e(fe), {
|
|
39
|
-
loading: e(
|
|
40
|
-
onRefresh:
|
|
39
|
+
loading: e(V),
|
|
40
|
+
onRefresh: s[0] || (s[0] = (b) => e(u)(!0))
|
|
41
41
|
}, null, 8, ["loading"])
|
|
42
42
|
]),
|
|
43
|
-
default: o(({ item:
|
|
44
|
-
l(
|
|
43
|
+
default: o(({ item: b }) => [
|
|
44
|
+
l(c, null, {
|
|
45
45
|
default: o(() => [
|
|
46
|
-
|
|
47
|
-
class: Ae(`icon iconfont ${
|
|
46
|
+
j("i", {
|
|
47
|
+
class: Ae(`icon iconfont ${b.icon}`)
|
|
48
48
|
}, null, 2),
|
|
49
|
-
|
|
49
|
+
j("span", null, I(b.translate), 1)
|
|
50
50
|
]),
|
|
51
51
|
_: 2
|
|
52
52
|
}, 1024)
|
|
@@ -59,7 +59,7 @@ const ul = {
|
|
|
59
59
|
__name: "MenuFormModal",
|
|
60
60
|
emits: ["refresh"],
|
|
61
61
|
setup(x, { expose: U, emit: v }) {
|
|
62
|
-
const
|
|
62
|
+
const k = v, V = {
|
|
63
63
|
id: 0,
|
|
64
64
|
menu_id: 0,
|
|
65
65
|
module: "",
|
|
@@ -80,7 +80,7 @@ const ul = {
|
|
|
80
80
|
keep_alive: !1,
|
|
81
81
|
link: !1
|
|
82
82
|
}
|
|
83
|
-
},
|
|
83
|
+
}, _ = {
|
|
84
84
|
sort: [
|
|
85
85
|
{
|
|
86
86
|
required: !0,
|
|
@@ -124,38 +124,38 @@ const ul = {
|
|
|
124
124
|
trigger: "blur"
|
|
125
125
|
}
|
|
126
126
|
]
|
|
127
|
-
}, { modal:
|
|
127
|
+
}, { modal: m, title: i, form: u, formData: n, requesting: w, executing: s, open: c, modify: f, submit: b, closed: D } = ee(k, V, Q);
|
|
128
128
|
return U({
|
|
129
|
-
open:
|
|
129
|
+
open: c,
|
|
130
130
|
modify: f
|
|
131
131
|
}), (R, t) => {
|
|
132
|
-
const d = r("el-form-item"),
|
|
133
|
-
return M(),
|
|
134
|
-
modelValue: e(
|
|
135
|
-
"onUpdate:modelValue": t[17] || (t[17] = (
|
|
136
|
-
title: e(
|
|
132
|
+
const d = r("el-form-item"), p = r("el-col"), S = r("el-input-number"), g = r("el-row"), y = r("el-input"), h = r("el-switch"), C = r("el-form");
|
|
133
|
+
return M(), q(e(oe), {
|
|
134
|
+
modelValue: e(m),
|
|
135
|
+
"onUpdate:modelValue": t[17] || (t[17] = (A) => F(m) ? m.value = A : null),
|
|
136
|
+
title: e(i)(),
|
|
137
137
|
width: "1000px",
|
|
138
|
-
executing: e(
|
|
138
|
+
executing: e(s),
|
|
139
139
|
onClosed: e(D),
|
|
140
|
-
onSubmit: e(
|
|
140
|
+
onSubmit: e(b)
|
|
141
141
|
}, {
|
|
142
142
|
default: o(() => [
|
|
143
|
-
l(
|
|
143
|
+
l(C, {
|
|
144
144
|
ref_key: "form",
|
|
145
|
-
ref:
|
|
145
|
+
ref: u,
|
|
146
146
|
model: e(n),
|
|
147
147
|
"label-width": "auto",
|
|
148
|
-
rules:
|
|
149
|
-
disabled: e(w) || e(
|
|
148
|
+
rules: _,
|
|
149
|
+
disabled: e(w) || e(s)
|
|
150
150
|
}, {
|
|
151
151
|
default: o(() => [
|
|
152
|
-
l(
|
|
152
|
+
l(g, { gutter: 20 }, {
|
|
153
153
|
default: o(() => [
|
|
154
|
-
l(
|
|
154
|
+
l(p, { span: 12 }, {
|
|
155
155
|
default: o(() => [
|
|
156
|
-
l(
|
|
156
|
+
l(g, { gutter: 10 }, {
|
|
157
157
|
default: o(() => [
|
|
158
|
-
l(
|
|
158
|
+
l(p, { span: 14 }, {
|
|
159
159
|
default: o(() => [
|
|
160
160
|
l(d, {
|
|
161
161
|
label: e(a)("base.parent"),
|
|
@@ -164,8 +164,8 @@ const ul = {
|
|
|
164
164
|
default: o(() => [
|
|
165
165
|
l(il, {
|
|
166
166
|
modelValue: e(n).menu_id,
|
|
167
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
168
|
-
disabled: e(
|
|
167
|
+
"onUpdate:modelValue": t[0] || (t[0] = (A) => e(n).menu_id = A),
|
|
168
|
+
disabled: e(s)
|
|
169
169
|
}, null, 8, ["modelValue", "disabled"])
|
|
170
170
|
]),
|
|
171
171
|
_: 1
|
|
@@ -173,7 +173,7 @@ const ul = {
|
|
|
173
173
|
]),
|
|
174
174
|
_: 1
|
|
175
175
|
}),
|
|
176
|
-
l(
|
|
176
|
+
l(p, { span: 10 }, {
|
|
177
177
|
default: o(() => [
|
|
178
178
|
l(d, {
|
|
179
179
|
"label-width": "60px",
|
|
@@ -184,7 +184,7 @@ const ul = {
|
|
|
184
184
|
l(S, {
|
|
185
185
|
class: "w-full",
|
|
186
186
|
modelValue: e(n).sort,
|
|
187
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
187
|
+
"onUpdate:modelValue": t[1] || (t[1] = (A) => e(n).sort = A),
|
|
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(
|
|
205
|
+
l(y, {
|
|
206
206
|
modelValue: e(n).module,
|
|
207
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
207
|
+
"onUpdate:modelValue": t[2] || (t[2] = (A) => e(n).module = A),
|
|
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(
|
|
218
|
+
l(y, {
|
|
219
219
|
modelValue: e(n).name,
|
|
220
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
220
|
+
"onUpdate:modelValue": t[3] || (t[3] = (A) => e(n).name = A),
|
|
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(
|
|
231
|
+
l(y, {
|
|
232
232
|
modelValue: e(n).en_name,
|
|
233
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
233
|
+
"onUpdate:modelValue": t[4] || (t[4] = (A) => e(n).en_name = A),
|
|
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(
|
|
244
|
+
l(y, {
|
|
245
245
|
modelValue: e(n).component,
|
|
246
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
246
|
+
"onUpdate:modelValue": t[5] || (t[5] = (A) => e(n).component = A),
|
|
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(
|
|
257
|
+
l(y, {
|
|
258
258
|
modelValue: e(n).url,
|
|
259
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
259
|
+
"onUpdate:modelValue": t[6] || (t[6] = (A) => e(n).url = A),
|
|
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(
|
|
270
|
+
l(y, {
|
|
271
271
|
modelValue: e(n).remark,
|
|
272
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
272
|
+
"onUpdate:modelValue": t[7] || (t[7] = (A) => e(n).remark = A),
|
|
273
273
|
placeholder: e(a)("placeholder.input")
|
|
274
274
|
}, null, 8, ["modelValue", "placeholder"])
|
|
275
275
|
]),
|
|
@@ -278,23 +278,23 @@ const ul = {
|
|
|
278
278
|
]),
|
|
279
279
|
_: 1
|
|
280
280
|
}),
|
|
281
|
-
l(
|
|
281
|
+
l(p, { span: 12 }, {
|
|
282
282
|
default: o(() => [
|
|
283
283
|
l(d, {
|
|
284
284
|
label: e(a)("base.icon"),
|
|
285
285
|
prop: "icon"
|
|
286
286
|
}, {
|
|
287
287
|
default: o(() => [
|
|
288
|
-
l(
|
|
288
|
+
l(y, {
|
|
289
289
|
modelValue: e(n).icon,
|
|
290
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
290
|
+
"onUpdate:modelValue": t[8] || (t[8] = (A) => e(n).icon = A),
|
|
291
291
|
placeholder: e(a)("placeholder.input"),
|
|
292
|
-
onInput: t[9] || (t[9] = (
|
|
293
|
-
e(n).meta.icon =
|
|
292
|
+
onInput: t[9] || (t[9] = (A) => {
|
|
293
|
+
e(n).meta.icon = A;
|
|
294
294
|
})
|
|
295
295
|
}, {
|
|
296
296
|
prepend: o(() => [
|
|
297
|
-
|
|
297
|
+
j("span", {
|
|
298
298
|
class: Ae("iconfont " + e(n).icon)
|
|
299
299
|
}, null, 2)
|
|
300
300
|
]),
|
|
@@ -308,9 +308,9 @@ const ul = {
|
|
|
308
308
|
prop: "meta.title"
|
|
309
309
|
}, {
|
|
310
310
|
default: o(() => [
|
|
311
|
-
l(
|
|
311
|
+
l(y, {
|
|
312
312
|
modelValue: e(n).meta.title,
|
|
313
|
-
"onUpdate:modelValue": t[10] || (t[10] = (
|
|
313
|
+
"onUpdate:modelValue": t[10] || (t[10] = (A) => e(n).meta.title = A),
|
|
314
314
|
placeholder: e(a)("placeholder.input")
|
|
315
315
|
}, null, 8, ["modelValue", "placeholder"])
|
|
316
316
|
]),
|
|
@@ -321,26 +321,26 @@ const ul = {
|
|
|
321
321
|
prop: "meta.active"
|
|
322
322
|
}, {
|
|
323
323
|
default: o(() => [
|
|
324
|
-
l(
|
|
324
|
+
l(y, {
|
|
325
325
|
modelValue: e(n).meta.active,
|
|
326
|
-
"onUpdate:modelValue": t[11] || (t[11] = (
|
|
326
|
+
"onUpdate:modelValue": t[11] || (t[11] = (A) => e(n).meta.active = A),
|
|
327
327
|
placeholder: e(a)("placeholder.input")
|
|
328
328
|
}, null, 8, ["modelValue", "placeholder"])
|
|
329
329
|
]),
|
|
330
330
|
_: 1
|
|
331
331
|
}, 8, ["label"]),
|
|
332
|
-
l(
|
|
332
|
+
l(g, null, {
|
|
333
333
|
default: o(() => [
|
|
334
|
-
l(
|
|
334
|
+
l(p, { span: 12 }, {
|
|
335
335
|
default: o(() => [
|
|
336
336
|
l(d, {
|
|
337
337
|
label: e(a)("menu.link"),
|
|
338
338
|
prop: "meta.link"
|
|
339
339
|
}, {
|
|
340
340
|
default: o(() => [
|
|
341
|
-
l(
|
|
341
|
+
l(h, {
|
|
342
342
|
modelValue: e(n).meta.link,
|
|
343
|
-
"onUpdate:modelValue": t[12] || (t[12] = (
|
|
343
|
+
"onUpdate:modelValue": t[12] || (t[12] = (A) => e(n).meta.link = A)
|
|
344
344
|
}, null, 8, ["modelValue"])
|
|
345
345
|
]),
|
|
346
346
|
_: 1
|
|
@@ -348,16 +348,16 @@ const ul = {
|
|
|
348
348
|
]),
|
|
349
349
|
_: 1
|
|
350
350
|
}),
|
|
351
|
-
l(
|
|
351
|
+
l(p, { span: 12 }, {
|
|
352
352
|
default: o(() => [
|
|
353
353
|
l(d, {
|
|
354
354
|
label: e(a)("menu.keep_alive"),
|
|
355
355
|
prop: "meta.keep_alive"
|
|
356
356
|
}, {
|
|
357
357
|
default: o(() => [
|
|
358
|
-
l(
|
|
358
|
+
l(h, {
|
|
359
359
|
modelValue: e(n).meta.keep_alive,
|
|
360
|
-
"onUpdate:modelValue": t[13] || (t[13] = (
|
|
360
|
+
"onUpdate:modelValue": t[13] || (t[13] = (A) => e(n).meta.keep_alive = A)
|
|
361
361
|
}, null, 8, ["modelValue"])
|
|
362
362
|
]),
|
|
363
363
|
_: 1
|
|
@@ -365,16 +365,16 @@ const ul = {
|
|
|
365
365
|
]),
|
|
366
366
|
_: 1
|
|
367
367
|
}),
|
|
368
|
-
l(
|
|
368
|
+
l(p, { span: 12 }, {
|
|
369
369
|
default: o(() => [
|
|
370
370
|
l(d, {
|
|
371
371
|
label: e(a)("menu.hide"),
|
|
372
372
|
prop: "meta.hide"
|
|
373
373
|
}, {
|
|
374
374
|
default: o(() => [
|
|
375
|
-
l(
|
|
375
|
+
l(h, {
|
|
376
376
|
modelValue: e(n).meta.hide,
|
|
377
|
-
"onUpdate:modelValue": t[14] || (t[14] = (
|
|
377
|
+
"onUpdate:modelValue": t[14] || (t[14] = (A) => e(n).meta.hide = A)
|
|
378
378
|
}, null, 8, ["modelValue"])
|
|
379
379
|
]),
|
|
380
380
|
_: 1
|
|
@@ -382,16 +382,16 @@ const ul = {
|
|
|
382
382
|
]),
|
|
383
383
|
_: 1
|
|
384
384
|
}),
|
|
385
|
-
l(
|
|
385
|
+
l(p, { span: 12 }, {
|
|
386
386
|
default: o(() => [
|
|
387
387
|
l(d, {
|
|
388
388
|
label: e(a)("menu.full"),
|
|
389
389
|
prop: "meta.full"
|
|
390
390
|
}, {
|
|
391
391
|
default: o(() => [
|
|
392
|
-
l(
|
|
392
|
+
l(h, {
|
|
393
393
|
modelValue: e(n).meta.full,
|
|
394
|
-
"onUpdate:modelValue": t[15] || (t[15] = (
|
|
394
|
+
"onUpdate:modelValue": t[15] || (t[15] = (A) => e(n).meta.full = A)
|
|
395
395
|
}, null, 8, ["modelValue"])
|
|
396
396
|
]),
|
|
397
397
|
_: 1
|
|
@@ -399,16 +399,16 @@ const ul = {
|
|
|
399
399
|
]),
|
|
400
400
|
_: 1
|
|
401
401
|
}),
|
|
402
|
-
l(
|
|
402
|
+
l(p, { span: 12 }, {
|
|
403
403
|
default: o(() => [
|
|
404
404
|
l(d, {
|
|
405
405
|
label: e(a)("menu.affix"),
|
|
406
406
|
prop: "meta.affix"
|
|
407
407
|
}, {
|
|
408
408
|
default: o(() => [
|
|
409
|
-
l(
|
|
409
|
+
l(h, {
|
|
410
410
|
modelValue: e(n).meta.affix,
|
|
411
|
-
"onUpdate:modelValue": t[16] || (t[16] = (
|
|
411
|
+
"onUpdate:modelValue": t[16] || (t[16] = (A) => e(n).meta.affix = A)
|
|
412
412
|
}, null, 8, ["modelValue"])
|
|
413
413
|
]),
|
|
414
414
|
_: 1
|
|
@@ -442,34 +442,34 @@ const ul = {
|
|
|
442
442
|
},
|
|
443
443
|
emits: ["update:modelValue", "change"],
|
|
444
444
|
setup(x, { emit: U }) {
|
|
445
|
-
const v = U,
|
|
446
|
-
return (w,
|
|
447
|
-
const
|
|
448
|
-
return M(),
|
|
445
|
+
const v = U, k = x, { requesting: V } = z(Q), { value: _, options: m, change: i, refresh: u, filterOptions: n } = re(te(k, "modelValue"), v, { key: "MENU_LIST", api: Q, isArray: !0 });
|
|
446
|
+
return (w, s) => {
|
|
447
|
+
const c = r("el-space"), f = r("el-select-v2");
|
|
448
|
+
return M(), q(f, {
|
|
449
449
|
class: "w-full",
|
|
450
|
-
modelValue: e(
|
|
451
|
-
"onUpdate:modelValue":
|
|
452
|
-
options: e(
|
|
450
|
+
modelValue: e(_),
|
|
451
|
+
"onUpdate:modelValue": s[1] || (s[1] = (b) => F(_) ? _.value = b : null),
|
|
452
|
+
options: e(m),
|
|
453
453
|
multiple: x.multiple,
|
|
454
|
-
disabled: e(
|
|
454
|
+
disabled: e(V) || x.disabled,
|
|
455
455
|
placeholder: e(a)("placeholder.select"),
|
|
456
456
|
filterable: "",
|
|
457
457
|
filterOptions: e(n),
|
|
458
|
-
onChange: e(
|
|
458
|
+
onChange: e(i)
|
|
459
459
|
}, {
|
|
460
460
|
prefix: o(() => [
|
|
461
461
|
l(e(fe), {
|
|
462
|
-
loading: e(
|
|
463
|
-
onRefresh:
|
|
462
|
+
loading: e(V),
|
|
463
|
+
onRefresh: s[0] || (s[0] = (b) => e(u)(!0))
|
|
464
464
|
}, null, 8, ["loading"])
|
|
465
465
|
]),
|
|
466
|
-
default: o(({ item:
|
|
467
|
-
l(
|
|
466
|
+
default: o(({ item: b }) => [
|
|
467
|
+
l(c, null, {
|
|
468
468
|
default: o(() => [
|
|
469
|
-
|
|
470
|
-
class: Ae(`icon iconfont ${
|
|
469
|
+
j("i", {
|
|
470
|
+
class: Ae(`icon iconfont ${b.icon}`)
|
|
471
471
|
}, null, 2),
|
|
472
|
-
|
|
472
|
+
j("span", null, I(b.translate), 1)
|
|
473
473
|
]),
|
|
474
474
|
_: 2
|
|
475
475
|
}, 1024)
|
|
@@ -482,7 +482,7 @@ const ul = {
|
|
|
482
482
|
__name: "MenuRuleFormModal",
|
|
483
483
|
emits: ["refresh"],
|
|
484
484
|
setup(x, { expose: U, emit: v }) {
|
|
485
|
-
const
|
|
485
|
+
const k = v, V = {
|
|
486
486
|
key: "",
|
|
487
487
|
menu_id: 0,
|
|
488
488
|
sort: 0,
|
|
@@ -490,7 +490,7 @@ const ul = {
|
|
|
490
490
|
en_name: "",
|
|
491
491
|
urls: "",
|
|
492
492
|
remark: ""
|
|
493
|
-
},
|
|
493
|
+
}, _ = {
|
|
494
494
|
menu_id: [
|
|
495
495
|
{
|
|
496
496
|
required: !0,
|
|
@@ -528,34 +528,34 @@ const ul = {
|
|
|
528
528
|
trigger: "blur"
|
|
529
529
|
}
|
|
530
530
|
]
|
|
531
|
-
}, { modal:
|
|
531
|
+
}, { modal: m, title: i, form: u, formData: n, requesting: w, executing: s, open: c, modify: f, submit: b, closed: D } = ee(k, V, $e);
|
|
532
532
|
return U({
|
|
533
|
-
open:
|
|
533
|
+
open: c,
|
|
534
534
|
modify: f
|
|
535
535
|
}), (R, t) => {
|
|
536
|
-
const d = r("el-form-item"),
|
|
537
|
-
return M(),
|
|
538
|
-
modelValue: e(
|
|
539
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
540
|
-
title: e(
|
|
536
|
+
const d = r("el-form-item"), p = r("el-input-number"), S = r("el-input"), g = r("el-col"), y = r("el-row"), h = r("el-form");
|
|
537
|
+
return M(), q(e(oe), {
|
|
538
|
+
modelValue: e(m),
|
|
539
|
+
"onUpdate:modelValue": t[6] || (t[6] = (C) => F(m) ? m.value = C : null),
|
|
540
|
+
title: e(i)("menu.rules"),
|
|
541
541
|
width: "1000px",
|
|
542
|
-
executing: e(
|
|
542
|
+
executing: e(s),
|
|
543
543
|
onClosed: e(D),
|
|
544
|
-
onSubmit: e(
|
|
544
|
+
onSubmit: e(b)
|
|
545
545
|
}, {
|
|
546
546
|
default: o(() => [
|
|
547
|
-
l(
|
|
547
|
+
l(h, {
|
|
548
548
|
ref_key: "form",
|
|
549
|
-
ref:
|
|
549
|
+
ref: u,
|
|
550
550
|
model: e(n),
|
|
551
551
|
"label-width": "auto",
|
|
552
|
-
rules:
|
|
553
|
-
disabled: e(w) || e(
|
|
552
|
+
rules: _,
|
|
553
|
+
disabled: e(w) || e(s)
|
|
554
554
|
}, {
|
|
555
555
|
default: o(() => [
|
|
556
|
-
l(
|
|
556
|
+
l(y, { gutter: 20 }, {
|
|
557
557
|
default: o(() => [
|
|
558
|
-
l(
|
|
558
|
+
l(g, { span: 10 }, {
|
|
559
559
|
default: o(() => [
|
|
560
560
|
l(d, {
|
|
561
561
|
label: e(a)("menu.Menu"),
|
|
@@ -564,8 +564,8 @@ const ul = {
|
|
|
564
564
|
default: o(() => [
|
|
565
565
|
l(ml, {
|
|
566
566
|
modelValue: e(n).menu_id,
|
|
567
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
568
|
-
disabled: e(
|
|
567
|
+
"onUpdate:modelValue": t[0] || (t[0] = (C) => e(n).menu_id = C),
|
|
568
|
+
disabled: e(s)
|
|
569
569
|
}, null, 8, ["modelValue", "disabled"])
|
|
570
570
|
]),
|
|
571
571
|
_: 1
|
|
@@ -575,10 +575,10 @@ const ul = {
|
|
|
575
575
|
prop: "sort"
|
|
576
576
|
}, {
|
|
577
577
|
default: o(() => [
|
|
578
|
-
l(
|
|
578
|
+
l(p, {
|
|
579
579
|
class: "w-full",
|
|
580
580
|
modelValue: e(n).sort,
|
|
581
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
581
|
+
"onUpdate:modelValue": t[1] || (t[1] = (C) => e(n).sort = C),
|
|
582
582
|
min: 0,
|
|
583
583
|
placeholder: e(a)("placeholder.input")
|
|
584
584
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -592,7 +592,7 @@ const ul = {
|
|
|
592
592
|
default: o(() => [
|
|
593
593
|
l(S, {
|
|
594
594
|
modelValue: e(n).name,
|
|
595
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
595
|
+
"onUpdate:modelValue": t[2] || (t[2] = (C) => e(n).name = C),
|
|
596
596
|
placeholder: e(a)("placeholder.input")
|
|
597
597
|
}, null, 8, ["modelValue", "placeholder"])
|
|
598
598
|
]),
|
|
@@ -605,7 +605,7 @@ const ul = {
|
|
|
605
605
|
default: o(() => [
|
|
606
606
|
l(S, {
|
|
607
607
|
modelValue: e(n).en_name,
|
|
608
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
608
|
+
"onUpdate:modelValue": t[3] || (t[3] = (C) => e(n).en_name = C),
|
|
609
609
|
placeholder: e(a)("placeholder.input")
|
|
610
610
|
}, null, 8, ["modelValue", "placeholder"])
|
|
611
611
|
]),
|
|
@@ -618,7 +618,7 @@ const ul = {
|
|
|
618
618
|
default: o(() => [
|
|
619
619
|
l(S, {
|
|
620
620
|
modelValue: e(n).remark,
|
|
621
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
621
|
+
"onUpdate:modelValue": t[4] || (t[4] = (C) => e(n).remark = C),
|
|
622
622
|
placeholder: e(a)("placeholder.input")
|
|
623
623
|
}, null, 8, ["modelValue", "placeholder"])
|
|
624
624
|
]),
|
|
@@ -627,7 +627,7 @@ const ul = {
|
|
|
627
627
|
]),
|
|
628
628
|
_: 1
|
|
629
629
|
}),
|
|
630
|
-
l(
|
|
630
|
+
l(g, { span: 14 }, {
|
|
631
631
|
default: o(() => [
|
|
632
632
|
l(d, {
|
|
633
633
|
label: e(a)("menu.rules"),
|
|
@@ -636,7 +636,7 @@ const ul = {
|
|
|
636
636
|
default: o(() => [
|
|
637
637
|
l(S, {
|
|
638
638
|
modelValue: e(n).urls,
|
|
639
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
639
|
+
"onUpdate:modelValue": t[5] || (t[5] = (C) => e(n).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
|
|
663
|
-
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !
|
|
662
|
+
function Me(x) {
|
|
663
|
+
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !De(x);
|
|
664
664
|
}
|
|
665
|
-
const
|
|
665
|
+
const Yl = /* @__PURE__ */ O({
|
|
666
666
|
__name: "index",
|
|
667
667
|
setup(x) {
|
|
668
668
|
const U = {
|
|
669
669
|
keyword: "",
|
|
670
670
|
status: 0
|
|
671
|
-
}, v =
|
|
671
|
+
}, v = H(""), k = [
|
|
672
672
|
{
|
|
673
673
|
label: a("base.sort"),
|
|
674
674
|
prop: "sort",
|
|
@@ -696,7 +696,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
696
696
|
width: 120,
|
|
697
697
|
render: ({
|
|
698
698
|
row: t
|
|
699
|
-
}) => l(
|
|
699
|
+
}) => l(G, null, [t.menu?.translate])
|
|
700
700
|
},
|
|
701
701
|
{
|
|
702
702
|
label: a("base.name"),
|
|
@@ -742,20 +742,20 @@ const Gl = /* @__PURE__ */ O({
|
|
|
742
742
|
default: () => [d.translate]
|
|
743
743
|
}),
|
|
744
744
|
default: () => {
|
|
745
|
-
let
|
|
745
|
+
let p, S;
|
|
746
746
|
return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.space base.delete base.space menu.rules")}: ${t.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
751
|
onClick: () => v.value = ""
|
|
752
|
-
},
|
|
753
|
-
default: () => [
|
|
752
|
+
}, Me(p = a("base.cancel")) ? p : {
|
|
753
|
+
default: () => [p]
|
|
754
754
|
}), l(r("el-button"), {
|
|
755
755
|
size: "small",
|
|
756
756
|
type: "danger",
|
|
757
757
|
onClick: () => R(d.key)
|
|
758
|
-
},
|
|
758
|
+
}, Me(S = a("base.confirm")) ? S : {
|
|
759
759
|
default: () => [S]
|
|
760
760
|
})])]);
|
|
761
761
|
}
|
|
@@ -770,7 +770,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
770
770
|
props: {
|
|
771
771
|
activeValue: 1,
|
|
772
772
|
inactiveValue: 2,
|
|
773
|
-
api:
|
|
773
|
+
api: Q.urls[Se],
|
|
774
774
|
refresh: !0
|
|
775
775
|
}
|
|
776
776
|
},
|
|
@@ -781,27 +781,27 @@ const Gl = /* @__PURE__ */ O({
|
|
|
781
781
|
align: "center",
|
|
782
782
|
render: ({
|
|
783
783
|
row: t
|
|
784
|
-
}) => l(
|
|
784
|
+
}) => l(ne, {
|
|
785
785
|
size: "default",
|
|
786
|
-
onModify: () =>
|
|
786
|
+
onModify: () => c({
|
|
787
787
|
id: t.id
|
|
788
788
|
})
|
|
789
789
|
}, null)
|
|
790
790
|
}
|
|
791
791
|
], {
|
|
792
|
-
requesting:
|
|
793
|
-
} =
|
|
794
|
-
tableRef:
|
|
795
|
-
formModalRef:
|
|
796
|
-
keyword:
|
|
797
|
-
search:
|
|
792
|
+
requesting: V
|
|
793
|
+
} = z(Q), {
|
|
794
|
+
tableRef: _,
|
|
795
|
+
formModalRef: m,
|
|
796
|
+
keyword: i,
|
|
797
|
+
search: u,
|
|
798
798
|
refresh: n,
|
|
799
799
|
reset: w,
|
|
800
|
-
openFormModal:
|
|
801
|
-
editFormModal:
|
|
802
|
-
} =
|
|
800
|
+
openFormModal: s,
|
|
801
|
+
editFormModal: c
|
|
802
|
+
} = J(U), {
|
|
803
803
|
formRef: f,
|
|
804
|
-
open:
|
|
804
|
+
open: b,
|
|
805
805
|
edit: D
|
|
806
806
|
} = Te(), R = (t) => {
|
|
807
807
|
$e[Je]({
|
|
@@ -811,50 +811,50 @@ const Gl = /* @__PURE__ */ O({
|
|
|
811
811
|
});
|
|
812
812
|
};
|
|
813
813
|
return (t, d) => {
|
|
814
|
-
const
|
|
815
|
-
return M(),
|
|
814
|
+
const p = r("el-button"), S = r("el-input"), g = r("el-radio-button"), y = r("el-radio-group"), h = r("el-space"), C = r("el-page-header"), A = r("el-card");
|
|
815
|
+
return M(), q(A, {
|
|
816
816
|
class: "basic-card flex-full",
|
|
817
817
|
"body-class": "flex-1",
|
|
818
818
|
onClick: d[5] || (d[5] = () => v.value = "")
|
|
819
819
|
}, {
|
|
820
|
-
header: o(() => [l(
|
|
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(V),
|
|
825
825
|
onRefresh: e(w)
|
|
826
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
|
827
|
-
onOpen: e(
|
|
828
|
-
}, null, 8, ["onOpen"]), l(
|
|
826
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
827
|
+
onOpen: e(s)
|
|
828
|
+
}, null, 8, ["onOpen"]), l(p, {
|
|
829
829
|
circle: "",
|
|
830
830
|
icon: e(dl),
|
|
831
|
-
onClick: e(
|
|
831
|
+
onClick: e(b)
|
|
832
832
|
}, null, 8, ["icon", "onClick"])]),
|
|
833
|
-
content: o(() => [l(
|
|
833
|
+
content: o(() => [l(h, {
|
|
834
834
|
class: "search-bar"
|
|
835
835
|
}, {
|
|
836
836
|
default: o(() => [l(S, {
|
|
837
837
|
class: "basic-search-input",
|
|
838
|
-
modelValue: e(
|
|
839
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
838
|
+
modelValue: e(i).keyword,
|
|
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] = Ve((
|
|
843
|
-
onClear: d[2] || (d[2] = (
|
|
844
|
-
}, null, 8, ["modelValue", "placeholder"]), l(
|
|
845
|
-
modelValue: e(
|
|
846
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
847
|
-
onChange: d[4] || (d[4] = (
|
|
842
|
+
onKeyup: d[1] || (d[1] = Ve((L) => e(u)(), ["enter"])),
|
|
843
|
+
onClear: d[2] || (d[2] = (L) => e(u)())
|
|
844
|
+
}, null, 8, ["modelValue", "placeholder"]), l(y, {
|
|
845
|
+
modelValue: e(i).status,
|
|
846
|
+
"onUpdate:modelValue": d[3] || (d[3] = (L) => e(i).status = L),
|
|
847
|
+
onChange: d[4] || (d[4] = (L) => e(u)())
|
|
848
848
|
}, {
|
|
849
|
-
default: o(() => [(M(),
|
|
850
|
-
key:
|
|
851
|
-
label: e(a)(`status.${
|
|
852
|
-
value:
|
|
849
|
+
default: o(() => [(M(), B(G, null, ae([0, 1, 2], (L) => l(g, {
|
|
850
|
+
key: L,
|
|
851
|
+
label: e(a)(`status.${L}`),
|
|
852
|
+
value: L
|
|
853
853
|
}, null, 8, ["label", "value"])), 64))]),
|
|
854
854
|
_: 1
|
|
855
855
|
}, 8, ["modelValue"]), l(e(de), {
|
|
856
|
-
disabled: e(
|
|
857
|
-
onSearch: e(
|
|
856
|
+
disabled: e(V),
|
|
857
|
+
onSearch: e(u)
|
|
858
858
|
}, null, 8, ["disabled", "onSearch"])]),
|
|
859
859
|
_: 1
|
|
860
860
|
})]),
|
|
@@ -862,14 +862,14 @@ const Gl = /* @__PURE__ */ O({
|
|
|
862
862
|
})]),
|
|
863
863
|
default: o(() => [l(e(be), {
|
|
864
864
|
ref_key: "tableRef",
|
|
865
|
-
ref:
|
|
866
|
-
columns:
|
|
867
|
-
url: e(
|
|
868
|
-
"search-param": e(
|
|
865
|
+
ref: _,
|
|
866
|
+
columns: k,
|
|
867
|
+
url: e(Q).urls[e(ye)],
|
|
868
|
+
"search-param": e(i),
|
|
869
869
|
"auto-search": ""
|
|
870
870
|
}, null, 8, ["url", "search-param"]), l(pl, {
|
|
871
871
|
ref_key: "formModalRef",
|
|
872
|
-
ref:
|
|
872
|
+
ref: m,
|
|
873
873
|
onRefresh: e(n)
|
|
874
874
|
}, null, 8, ["onRefresh"]), l(cl, {
|
|
875
875
|
ref_key: "ruleFormModalRef",
|
|
@@ -880,7 +880,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
880
880
|
});
|
|
881
881
|
};
|
|
882
882
|
}
|
|
883
|
-
}), we =
|
|
883
|
+
}), we = Y.routineApi("role", "key"), fl = { class: "rule-check" }, bl = { style: { width: "80px", "line-height": "36px" } }, _l = /* @__PURE__ */ O({
|
|
884
884
|
__name: "RulesCheck",
|
|
885
885
|
props: {
|
|
886
886
|
modelValue: { type: Array, required: !0 },
|
|
@@ -888,131 +888,131 @@ const Gl = /* @__PURE__ */ O({
|
|
|
888
888
|
},
|
|
889
889
|
emits: ["update:modelValue"],
|
|
890
890
|
setup(x, { expose: U, emit: v }) {
|
|
891
|
-
const { requesting:
|
|
891
|
+
const { requesting: k } = z(Q), V = x, _ = v, m = H(!1), i = Ke({
|
|
892
892
|
checkAll: !1,
|
|
893
893
|
indeterminate: !1,
|
|
894
894
|
MenuAll: {},
|
|
895
895
|
MenuList: {},
|
|
896
896
|
MenuIndeterminate: {}
|
|
897
|
-
}), { options:
|
|
897
|
+
}), { options: u, refresh: n } = re(te(V, "modelValue"), _, { key: "RULE_CHECK", api: Q, url: Q.urls.rules, isArray: !0 }, { autoRefresh: !1 });
|
|
898
898
|
function w() {
|
|
899
|
-
|
|
900
|
-
R.rules?.length && (
|
|
899
|
+
u.value.forEach((R) => {
|
|
900
|
+
R.rules?.length && (i.MenuAll[R.id] = !1, i.MenuIndeterminate[R.id] = !1, i.MenuList[R.id] = []);
|
|
901
901
|
});
|
|
902
902
|
}
|
|
903
|
-
function
|
|
904
|
-
|
|
905
|
-
t.rules?.length && (
|
|
903
|
+
function s(R) {
|
|
904
|
+
u.value.forEach((t) => {
|
|
905
|
+
t.rules?.length && (i.MenuList[t.id] = R ? t.rules.map((d) => d.key) : []);
|
|
906
906
|
}), f();
|
|
907
907
|
}
|
|
908
|
-
function
|
|
909
|
-
const d =
|
|
910
|
-
|
|
908
|
+
function c(R, t) {
|
|
909
|
+
const d = u.value.find((p) => p.id === t);
|
|
910
|
+
i.MenuList[t] = R && d ? d.rules.map((p) => p.key) : [], f();
|
|
911
911
|
}
|
|
912
912
|
function f() {
|
|
913
|
-
|
|
914
|
-
const t = R.rules?.length || 0, d =
|
|
915
|
-
|
|
916
|
-
}),
|
|
913
|
+
u.value.forEach((R) => {
|
|
914
|
+
const t = R.rules?.length || 0, d = i.MenuList[R.id]?.length || 0;
|
|
915
|
+
i.MenuAll[R.id] = d === t && t > 0, i.MenuIndeterminate[R.id] = d > 0 && d < t;
|
|
916
|
+
}), i.checkAll = Object.values(i.MenuAll).every(Boolean), i.indeterminate = !i.checkAll && Object.values(i.MenuList).some((R) => R.length > 0), _("update:modelValue", Object.values(i.MenuList).flat());
|
|
917
917
|
}
|
|
918
|
-
function
|
|
919
|
-
|
|
918
|
+
function b() {
|
|
919
|
+
i.checkAll = !1, i.indeterminate = !1, i.MenuAll = {}, i.MenuList = {}, i.MenuIndeterminate = {}, w(), _("update:modelValue", []), m.value = !1;
|
|
920
920
|
}
|
|
921
921
|
function D(R) {
|
|
922
|
-
if (Array.isArray(
|
|
923
|
-
for (let t of
|
|
922
|
+
if (Array.isArray(u.value) && u.value.length > 0) {
|
|
923
|
+
for (let t of u.value)
|
|
924
924
|
if (Array.isArray(t.rules) && t.rules.length > 0)
|
|
925
925
|
for (let d of t.rules)
|
|
926
|
-
R.some((
|
|
927
|
-
f(),
|
|
926
|
+
R.some((p) => p === d.key) && (i.MenuList[t.id] = (i.MenuList?.[t.id] || []).concat([d.key]));
|
|
927
|
+
f(), m.value = !0;
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
return We(async () => {
|
|
931
|
-
|
|
931
|
+
u.value?.length || await n(), !m.value && V.modelValue && D(V.modelValue);
|
|
932
932
|
}), Le(
|
|
933
|
-
() =>
|
|
933
|
+
() => V.modelValue,
|
|
934
934
|
(R) => {
|
|
935
935
|
Ge(() => {
|
|
936
|
-
|
|
936
|
+
m.value || !u.value?.length || R && R.length > 0 && D(R);
|
|
937
937
|
});
|
|
938
938
|
},
|
|
939
939
|
{ deep: !0, immediate: !0 }
|
|
940
940
|
), U({
|
|
941
941
|
generateOption: D,
|
|
942
|
-
cleanChecked:
|
|
942
|
+
cleanChecked: b
|
|
943
943
|
}), (R, t) => {
|
|
944
|
-
const d = r("el-checkbox"),
|
|
945
|
-
return M(),
|
|
946
|
-
l(
|
|
944
|
+
const d = r("el-checkbox"), p = r("el-space"), S = r("el-text"), g = r("el-divider"), y = r("el-checkbox-group");
|
|
945
|
+
return M(), B("div", fl, [
|
|
946
|
+
l(p, { style: { "margin-bottom": "6px" } }, {
|
|
947
947
|
default: o(() => [
|
|
948
948
|
l(d, {
|
|
949
|
-
"model-value":
|
|
950
|
-
indeterminate:
|
|
949
|
+
"model-value": i.checkAll,
|
|
950
|
+
indeterminate: i.indeterminate,
|
|
951
951
|
id: "all",
|
|
952
952
|
disabled: x.disabled,
|
|
953
|
-
onChange:
|
|
953
|
+
onChange: s
|
|
954
954
|
}, {
|
|
955
955
|
default: o(() => [...t[1] || (t[1] = [
|
|
956
|
-
|
|
956
|
+
j("span", null, "全选", -1)
|
|
957
957
|
])]),
|
|
958
958
|
_: 1
|
|
959
959
|
}, 8, ["model-value", "indeterminate", "disabled"]),
|
|
960
960
|
l(e(K), {
|
|
961
|
-
loading: e(
|
|
961
|
+
loading: e(k),
|
|
962
962
|
text: "",
|
|
963
963
|
size: "small",
|
|
964
|
-
onRefresh: t[0] || (t[0] = (
|
|
964
|
+
onRefresh: t[0] || (t[0] = (h) => e(n)(!0))
|
|
965
965
|
}, null, 8, ["loading"])
|
|
966
966
|
]),
|
|
967
967
|
_: 1
|
|
968
968
|
}),
|
|
969
|
-
l(
|
|
969
|
+
l(p, {
|
|
970
970
|
direction: "vertical",
|
|
971
971
|
alignment: "start",
|
|
972
972
|
class: "rule-check-content"
|
|
973
973
|
}, {
|
|
974
974
|
default: o(() => [
|
|
975
|
-
(M(!0),
|
|
976
|
-
key:
|
|
975
|
+
(M(!0), B(G, null, ae(e(u), (h) => (M(), B("div", {
|
|
976
|
+
key: h.id
|
|
977
977
|
}, [
|
|
978
|
-
l(
|
|
978
|
+
l(p, {
|
|
979
979
|
direction: "horizontal",
|
|
980
980
|
size: 2
|
|
981
981
|
}, {
|
|
982
982
|
default: o(() => [
|
|
983
983
|
l(d, {
|
|
984
984
|
style: { "min-width": "150px" },
|
|
985
|
-
"model-value":
|
|
986
|
-
disabled: x.disabled || !
|
|
987
|
-
indeterminate:
|
|
988
|
-
onChange: (
|
|
985
|
+
"model-value": i.MenuAll[h.id],
|
|
986
|
+
disabled: x.disabled || !h.rules || h.rules.length <= 0,
|
|
987
|
+
indeterminate: i.MenuIndeterminate[h.id],
|
|
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
|
+
le(I(h.translate), 1)
|
|
994
994
|
]),
|
|
995
995
|
_: 2
|
|
996
996
|
}, 1024)
|
|
997
997
|
]),
|
|
998
998
|
_: 2
|
|
999
999
|
}, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
|
|
1000
|
-
l(
|
|
1001
|
-
|
|
1000
|
+
l(g, { direction: "vertical" }),
|
|
1001
|
+
h.rules ? (M(), q(y, {
|
|
1002
1002
|
key: 0,
|
|
1003
|
-
modelValue:
|
|
1004
|
-
"onUpdate:modelValue": (
|
|
1003
|
+
modelValue: i.MenuList[h.id],
|
|
1004
|
+
"onUpdate:modelValue": (C) => i.MenuList[h.id] = C,
|
|
1005
1005
|
disabled: x.disabled,
|
|
1006
1006
|
style: { margin: "auto" },
|
|
1007
1007
|
onChange: f
|
|
1008
1008
|
}, {
|
|
1009
1009
|
default: o(() => [
|
|
1010
|
-
(M(!0),
|
|
1011
|
-
key:
|
|
1012
|
-
value:
|
|
1010
|
+
(M(!0), B(G, null, ae(h.rules, (C) => (M(), q(d, {
|
|
1011
|
+
key: C.key,
|
|
1012
|
+
value: C.key
|
|
1013
1013
|
}, {
|
|
1014
1014
|
default: o(() => [
|
|
1015
|
-
|
|
1015
|
+
j("div", bl, I(C.translate), 1)
|
|
1016
1016
|
]),
|
|
1017
1017
|
_: 2
|
|
1018
1018
|
}, 1032, ["value"]))), 128))
|
|
@@ -1031,14 +1031,14 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1031
1031
|
}
|
|
1032
1032
|
}), Ee = (x, U) => {
|
|
1033
1033
|
const v = x.__vccOpts || x;
|
|
1034
|
-
for (const [
|
|
1035
|
-
v[
|
|
1034
|
+
for (const [k, V] of U)
|
|
1035
|
+
v[k] = V;
|
|
1036
1036
|
return v;
|
|
1037
1037
|
}, gl = /* @__PURE__ */ Ee(_l, [["__scopeId", "data-v-7adb5f76"]]), hl = /* @__PURE__ */ O({
|
|
1038
1038
|
__name: "RoleFormModal",
|
|
1039
1039
|
emits: ["refresh"],
|
|
1040
1040
|
setup(x, { expose: U, emit: v }) {
|
|
1041
|
-
const
|
|
1041
|
+
const k = v, V = H(), _ = {
|
|
1042
1042
|
key: "",
|
|
1043
1043
|
module: "",
|
|
1044
1044
|
sort: 0,
|
|
@@ -1046,7 +1046,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1046
1046
|
en_name: "",
|
|
1047
1047
|
remark: "",
|
|
1048
1048
|
rules: []
|
|
1049
|
-
},
|
|
1049
|
+
}, m = {
|
|
1050
1050
|
name: [
|
|
1051
1051
|
{
|
|
1052
1052
|
required: !0,
|
|
@@ -1061,45 +1061,45 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1061
1061
|
trigger: "blur"
|
|
1062
1062
|
}
|
|
1063
1063
|
]
|
|
1064
|
-
}, { modal:
|
|
1065
|
-
|
|
1064
|
+
}, { modal: i, title: u, form: n, formData: w, requesting: s, executing: c, open: f, modify: b, submit: D, closed: R } = ee(k, _, we), t = () => {
|
|
1065
|
+
V.value?.cleanChecked(), R();
|
|
1066
1066
|
};
|
|
1067
1067
|
return U({
|
|
1068
1068
|
open: f,
|
|
1069
|
-
modify:
|
|
1070
|
-
}), (d,
|
|
1071
|
-
const S = r("el-input"),
|
|
1072
|
-
return M(),
|
|
1073
|
-
modelValue: e(
|
|
1074
|
-
"onUpdate:modelValue":
|
|
1075
|
-
title: e(
|
|
1069
|
+
modify: b
|
|
1070
|
+
}), (d, p) => {
|
|
1071
|
+
const S = r("el-input"), g = r("el-form-item"), y = r("el-col"), h = r("el-input-number"), C = r("el-row"), A = r("el-form");
|
|
1072
|
+
return M(), q(e(oe), {
|
|
1073
|
+
modelValue: e(i),
|
|
1074
|
+
"onUpdate:modelValue": p[6] || (p[6] = (L) => F(i) ? i.value = L : null),
|
|
1075
|
+
title: e(u)(),
|
|
1076
1076
|
width: "1000px",
|
|
1077
|
-
executing: e(
|
|
1077
|
+
executing: e(c),
|
|
1078
1078
|
onClosed: t,
|
|
1079
1079
|
onSubmit: e(D)
|
|
1080
1080
|
}, {
|
|
1081
1081
|
default: o(() => [
|
|
1082
|
-
l(
|
|
1082
|
+
l(A, {
|
|
1083
1083
|
ref_key: "form",
|
|
1084
1084
|
ref: n,
|
|
1085
1085
|
model: e(w),
|
|
1086
1086
|
"label-width": "auto",
|
|
1087
|
-
rules:
|
|
1088
|
-
disabled: e(
|
|
1087
|
+
rules: m,
|
|
1088
|
+
disabled: e(s) || e(c)
|
|
1089
1089
|
}, {
|
|
1090
1090
|
default: o(() => [
|
|
1091
|
-
l(
|
|
1091
|
+
l(C, { gutter: 20 }, {
|
|
1092
1092
|
default: o(() => [
|
|
1093
|
-
l(
|
|
1093
|
+
l(y, { span: 12 }, {
|
|
1094
1094
|
default: o(() => [
|
|
1095
|
-
l(
|
|
1095
|
+
l(g, {
|
|
1096
1096
|
label: e(a)("base.module"),
|
|
1097
1097
|
prop: "module"
|
|
1098
1098
|
}, {
|
|
1099
1099
|
default: o(() => [
|
|
1100
1100
|
l(S, {
|
|
1101
1101
|
modelValue: e(w).module,
|
|
1102
|
-
"onUpdate:modelValue":
|
|
1102
|
+
"onUpdate:modelValue": p[0] || (p[0] = (L) => e(w).module = L),
|
|
1103
1103
|
placeholder: e(a)("placeholder.input")
|
|
1104
1104
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1105
1105
|
]),
|
|
@@ -1108,17 +1108,17 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1108
1108
|
]),
|
|
1109
1109
|
_: 1
|
|
1110
1110
|
}),
|
|
1111
|
-
l(
|
|
1111
|
+
l(y, { span: 12 }, {
|
|
1112
1112
|
default: o(() => [
|
|
1113
|
-
l(
|
|
1113
|
+
l(g, {
|
|
1114
1114
|
label: e(a)("base.sort"),
|
|
1115
1115
|
prop: "sort"
|
|
1116
1116
|
}, {
|
|
1117
1117
|
default: o(() => [
|
|
1118
|
-
l(
|
|
1118
|
+
l(h, {
|
|
1119
1119
|
class: "w-full",
|
|
1120
1120
|
modelValue: e(w).sort,
|
|
1121
|
-
"onUpdate:modelValue":
|
|
1121
|
+
"onUpdate:modelValue": p[1] || (p[1] = (L) => e(w).sort = L),
|
|
1122
1122
|
min: 0,
|
|
1123
1123
|
placeholder: e(a)("placeholder.input")
|
|
1124
1124
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -1131,56 +1131,56 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1131
1131
|
]),
|
|
1132
1132
|
_: 1
|
|
1133
1133
|
}),
|
|
1134
|
-
l(
|
|
1134
|
+
l(g, {
|
|
1135
1135
|
label: e(a)("base.name"),
|
|
1136
1136
|
prop: "name"
|
|
1137
1137
|
}, {
|
|
1138
1138
|
default: o(() => [
|
|
1139
1139
|
l(S, {
|
|
1140
1140
|
modelValue: e(w).name,
|
|
1141
|
-
"onUpdate:modelValue":
|
|
1141
|
+
"onUpdate:modelValue": p[2] || (p[2] = (L) => e(w).name = L),
|
|
1142
1142
|
placeholder: e(a)("placeholder.input")
|
|
1143
1143
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1144
1144
|
]),
|
|
1145
1145
|
_: 1
|
|
1146
1146
|
}, 8, ["label"]),
|
|
1147
|
-
l(
|
|
1147
|
+
l(g, {
|
|
1148
1148
|
label: e(a)("base.en_name"),
|
|
1149
1149
|
prop: "en_name"
|
|
1150
1150
|
}, {
|
|
1151
1151
|
default: o(() => [
|
|
1152
1152
|
l(S, {
|
|
1153
1153
|
modelValue: e(w).en_name,
|
|
1154
|
-
"onUpdate:modelValue":
|
|
1154
|
+
"onUpdate:modelValue": p[3] || (p[3] = (L) => e(w).en_name = L),
|
|
1155
1155
|
placeholder: e(a)("placeholder.input")
|
|
1156
1156
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1157
1157
|
]),
|
|
1158
1158
|
_: 1
|
|
1159
1159
|
}, 8, ["label"]),
|
|
1160
|
-
l(
|
|
1160
|
+
l(g, {
|
|
1161
1161
|
label: e(a)("base.remark"),
|
|
1162
1162
|
prop: "remark"
|
|
1163
1163
|
}, {
|
|
1164
1164
|
default: o(() => [
|
|
1165
1165
|
l(S, {
|
|
1166
1166
|
modelValue: e(w).remark,
|
|
1167
|
-
"onUpdate:modelValue":
|
|
1167
|
+
"onUpdate:modelValue": p[4] || (p[4] = (L) => e(w).remark = L),
|
|
1168
1168
|
placeholder: e(a)("placeholder.input")
|
|
1169
1169
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1170
1170
|
]),
|
|
1171
1171
|
_: 1
|
|
1172
1172
|
}, 8, ["label"]),
|
|
1173
|
-
l(
|
|
1173
|
+
l(g, {
|
|
1174
1174
|
label: e(a)("menu.rules"),
|
|
1175
1175
|
prop: "rules"
|
|
1176
1176
|
}, {
|
|
1177
1177
|
default: o(() => [
|
|
1178
1178
|
l(gl, {
|
|
1179
1179
|
ref_key: "rulesCheck",
|
|
1180
|
-
ref:
|
|
1180
|
+
ref: V,
|
|
1181
1181
|
modelValue: e(w).rules,
|
|
1182
|
-
"onUpdate:modelValue":
|
|
1183
|
-
disabled: e(
|
|
1182
|
+
"onUpdate:modelValue": p[5] || (p[5] = (L) => e(w).rules = L),
|
|
1183
|
+
disabled: e(s) || e(c)
|
|
1184
1184
|
}, null, 8, ["modelValue", "disabled"])
|
|
1185
1185
|
]),
|
|
1186
1186
|
_: 1
|
|
@@ -1193,7 +1193,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1193
1193
|
}, 8, ["modelValue", "title", "executing", "onSubmit"]);
|
|
1194
1194
|
};
|
|
1195
1195
|
}
|
|
1196
|
-
}),
|
|
1196
|
+
}), Hl = /* @__PURE__ */ O({
|
|
1197
1197
|
__name: "index",
|
|
1198
1198
|
setup(x) {
|
|
1199
1199
|
const U = {
|
|
@@ -1231,29 +1231,29 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1231
1231
|
width: 65,
|
|
1232
1232
|
align: "center",
|
|
1233
1233
|
render: ({
|
|
1234
|
-
row:
|
|
1235
|
-
}) => l(
|
|
1234
|
+
row: c
|
|
1235
|
+
}) => l(ne, {
|
|
1236
1236
|
size: "default",
|
|
1237
|
-
onModify: () =>
|
|
1238
|
-
key:
|
|
1237
|
+
onModify: () => s({
|
|
1238
|
+
key: c.key
|
|
1239
1239
|
})
|
|
1240
1240
|
}, null)
|
|
1241
1241
|
}
|
|
1242
1242
|
], {
|
|
1243
|
-
requesting:
|
|
1244
|
-
} =
|
|
1245
|
-
tableRef:
|
|
1246
|
-
formModalRef:
|
|
1247
|
-
keyword:
|
|
1248
|
-
search:
|
|
1249
|
-
reset:
|
|
1243
|
+
requesting: k
|
|
1244
|
+
} = z(we), {
|
|
1245
|
+
tableRef: V,
|
|
1246
|
+
formModalRef: _,
|
|
1247
|
+
keyword: m,
|
|
1248
|
+
search: i,
|
|
1249
|
+
reset: u,
|
|
1250
1250
|
refresh: n,
|
|
1251
1251
|
openFormModal: w,
|
|
1252
|
-
editFormModal:
|
|
1253
|
-
} =
|
|
1254
|
-
return (
|
|
1255
|
-
const
|
|
1256
|
-
return M(),
|
|
1252
|
+
editFormModal: s
|
|
1253
|
+
} = J(U);
|
|
1254
|
+
return (c, f) => {
|
|
1255
|
+
const b = r("el-input"), D = r("el-space"), R = r("el-page-header"), t = r("el-card");
|
|
1256
|
+
return M(), q(t, {
|
|
1257
1257
|
class: "basic-card flex-full",
|
|
1258
1258
|
"body-class": "flex-1"
|
|
1259
1259
|
}, {
|
|
@@ -1261,25 +1261,25 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1261
1261
|
class: "basic-header"
|
|
1262
1262
|
}, {
|
|
1263
1263
|
title: o(() => [l(e(K), {
|
|
1264
|
-
loading: e(
|
|
1265
|
-
onRefresh: e(
|
|
1266
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
|
1264
|
+
loading: e(k),
|
|
1265
|
+
onRefresh: e(u)
|
|
1266
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
1267
1267
|
onOpen: e(w)
|
|
1268
1268
|
}, null, 8, ["onOpen"])]),
|
|
1269
1269
|
content: o(() => [l(D, {
|
|
1270
1270
|
class: "search-bar"
|
|
1271
1271
|
}, {
|
|
1272
|
-
default: o(() => [l(
|
|
1272
|
+
default: o(() => [l(b, {
|
|
1273
1273
|
class: "basic-search-input",
|
|
1274
|
-
modelValue: e(
|
|
1275
|
-
"onUpdate:modelValue": f[0] || (f[0] = (d) => e(
|
|
1274
|
+
modelValue: e(m).keyword,
|
|
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] = Ve((d) => e(
|
|
1279
|
-
onClear: f[2] || (f[2] = (d) => e(
|
|
1278
|
+
onKeyup: f[1] || (f[1] = Ve((d) => e(i)(), ["enter"])),
|
|
1279
|
+
onClear: f[2] || (f[2] = (d) => e(i)())
|
|
1280
1280
|
}, null, 8, ["modelValue", "placeholder"]), l(e(de), {
|
|
1281
|
-
disabled: e(
|
|
1282
|
-
onSearch: f[3] || (f[3] = (d) => e(
|
|
1281
|
+
disabled: e(k),
|
|
1282
|
+
onSearch: f[3] || (f[3] = (d) => e(i)())
|
|
1283
1283
|
}, null, 8, ["disabled"])]),
|
|
1284
1284
|
_: 1
|
|
1285
1285
|
})]),
|
|
@@ -1287,24 +1287,24 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1287
1287
|
})]),
|
|
1288
1288
|
default: o(() => [l(e(be), {
|
|
1289
1289
|
ref_key: "tableRef",
|
|
1290
|
-
ref:
|
|
1290
|
+
ref: V,
|
|
1291
1291
|
columns: v,
|
|
1292
1292
|
url: e(we).urls[e(ye)],
|
|
1293
|
-
"search-param": e(
|
|
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:
|
|
1297
|
+
ref: _,
|
|
1298
1298
|
onRefresh: e(n)
|
|
1299
1299
|
}, null, 8, ["onRefresh"])]),
|
|
1300
1300
|
_: 1
|
|
1301
1301
|
});
|
|
1302
1302
|
};
|
|
1303
1303
|
}
|
|
1304
|
-
}),
|
|
1304
|
+
}), W = Y.routineApi("I18N", "uuid", {
|
|
1305
1305
|
modules: "modules",
|
|
1306
1306
|
languages: "languages"
|
|
1307
|
-
}, { gen: "gen" }, ["I18N_MODULES"]), ue =
|
|
1307
|
+
}, { gen: "gen" }, ["I18N_MODULES"]), ue = Y.routineApi("I18N_template", "uuid", {
|
|
1308
1308
|
apps: "apps"
|
|
1309
1309
|
}), Fe = /* @__PURE__ */ O({
|
|
1310
1310
|
__name: "ModuleSelect",
|
|
@@ -1335,45 +1335,45 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1335
1335
|
setup(x, {
|
|
1336
1336
|
emit: U
|
|
1337
1337
|
}) {
|
|
1338
|
-
const v = U,
|
|
1339
|
-
requesting:
|
|
1340
|
-
} =
|
|
1341
|
-
value:
|
|
1342
|
-
options:
|
|
1343
|
-
change:
|
|
1344
|
-
refresh:
|
|
1338
|
+
const v = U, k = x, {
|
|
1339
|
+
requesting: V
|
|
1340
|
+
} = z(W), {
|
|
1341
|
+
value: _,
|
|
1342
|
+
options: m,
|
|
1343
|
+
change: i,
|
|
1344
|
+
refresh: u,
|
|
1345
1345
|
filterOptions: n
|
|
1346
|
-
} = te(
|
|
1346
|
+
} = re(te(k, "modelValue"), v, {
|
|
1347
1347
|
key: "I18N_MODULES",
|
|
1348
|
-
url:
|
|
1349
|
-
api:
|
|
1348
|
+
url: W.urls.modules,
|
|
1349
|
+
api: W,
|
|
1350
1350
|
isArray: !0
|
|
1351
1351
|
});
|
|
1352
|
-
return (w,
|
|
1353
|
-
const
|
|
1354
|
-
return M(),
|
|
1352
|
+
return (w, s) => {
|
|
1353
|
+
const c = r("el-space"), f = r("el-select-v2");
|
|
1354
|
+
return M(), q(f, {
|
|
1355
1355
|
class: "w-full",
|
|
1356
|
-
modelValue: e(
|
|
1357
|
-
"onUpdate:modelValue":
|
|
1358
|
-
options: e(
|
|
1356
|
+
modelValue: e(_),
|
|
1357
|
+
"onUpdate:modelValue": s[1] || (s[1] = (b) => F(_) ? _.value = b : null),
|
|
1358
|
+
options: e(m),
|
|
1359
1359
|
multiple: x.multiple,
|
|
1360
|
-
disabled: e(
|
|
1360
|
+
disabled: e(V) || x.disabled,
|
|
1361
1361
|
clearable: x.clearable,
|
|
1362
1362
|
filterable: "",
|
|
1363
1363
|
"allow-create": x.allowCreate,
|
|
1364
1364
|
"default-first-option": "",
|
|
1365
1365
|
placeholder: e(a)("placeholder.select"),
|
|
1366
1366
|
filterOptions: e(n),
|
|
1367
|
-
onChange: e(
|
|
1367
|
+
onChange: e(i)
|
|
1368
1368
|
}, {
|
|
1369
1369
|
prefix: o(() => [l(e(fe), {
|
|
1370
|
-
loading: e(
|
|
1371
|
-
onRefresh:
|
|
1370
|
+
loading: e(V),
|
|
1371
|
+
onRefresh: s[0] || (s[0] = (b) => e(u)(!0))
|
|
1372
1372
|
}, null, 8, ["loading"])]),
|
|
1373
1373
|
default: o(({
|
|
1374
|
-
item:
|
|
1375
|
-
}) => [l(
|
|
1376
|
-
default: o(() => [
|
|
1374
|
+
item: b
|
|
1375
|
+
}) => [l(c, null, {
|
|
1376
|
+
default: o(() => [j("span", null, I(b.value), 1)]),
|
|
1377
1377
|
_: 2
|
|
1378
1378
|
}, 1024)]),
|
|
1379
1379
|
_: 1
|
|
@@ -1384,7 +1384,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1384
1384
|
__name: "I18N",
|
|
1385
1385
|
emits: ["refresh"],
|
|
1386
1386
|
setup(x, { expose: U, emit: v }) {
|
|
1387
|
-
const
|
|
1387
|
+
const k = v, V = {
|
|
1388
1388
|
uuid: "",
|
|
1389
1389
|
key: "",
|
|
1390
1390
|
module: void 0,
|
|
@@ -1393,7 +1393,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1393
1393
|
"en-US": ""
|
|
1394
1394
|
},
|
|
1395
1395
|
remark: ""
|
|
1396
|
-
},
|
|
1396
|
+
}, _ = {
|
|
1397
1397
|
module: [
|
|
1398
1398
|
{
|
|
1399
1399
|
required: !0,
|
|
@@ -1415,93 +1415,93 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1415
1415
|
trigger: "change"
|
|
1416
1416
|
}
|
|
1417
1417
|
]
|
|
1418
|
-
},
|
|
1419
|
-
function
|
|
1420
|
-
const
|
|
1418
|
+
}, m = H([]), i = Xe();
|
|
1419
|
+
function u() {
|
|
1420
|
+
const p = {
|
|
1421
1421
|
isArray: !0,
|
|
1422
1422
|
key: "I18N_LANGUAGES",
|
|
1423
|
-
url:
|
|
1423
|
+
url: W.urls.languages,
|
|
1424
1424
|
params: {}
|
|
1425
1425
|
};
|
|
1426
|
-
|
|
1427
|
-
|
|
1426
|
+
i.GET_CACHE({ ...p, force: !0 }).then((S) => {
|
|
1427
|
+
m.value = S;
|
|
1428
1428
|
});
|
|
1429
1429
|
}
|
|
1430
|
-
|
|
1431
|
-
const { modal: n, title: w, form:
|
|
1430
|
+
u();
|
|
1431
|
+
const { modal: n, title: w, form: s, formData: c, requesting: f, executing: b, open: D, modify: R, submit: t, closed: d } = ee(k, V, W);
|
|
1432
1432
|
return U({
|
|
1433
1433
|
open: D,
|
|
1434
1434
|
modify: R
|
|
1435
|
-
}), (
|
|
1436
|
-
const
|
|
1437
|
-
return M(),
|
|
1435
|
+
}), (p, S) => {
|
|
1436
|
+
const g = r("el-form-item"), y = r("el-input"), h = r("el-space"), C = r("el-form");
|
|
1437
|
+
return M(), q(e(oe), {
|
|
1438
1438
|
modelValue: e(n),
|
|
1439
|
-
"onUpdate:modelValue": S[3] || (S[3] = (
|
|
1439
|
+
"onUpdate:modelValue": S[3] || (S[3] = (A) => F(n) ? n.value = A : null),
|
|
1440
1440
|
title: e(w)(),
|
|
1441
1441
|
width: "600px",
|
|
1442
|
-
executing: e(
|
|
1442
|
+
executing: e(b),
|
|
1443
1443
|
onClosed: e(d),
|
|
1444
1444
|
onSubmit: e(t)
|
|
1445
1445
|
}, {
|
|
1446
1446
|
default: o(() => [
|
|
1447
|
-
l(
|
|
1447
|
+
l(C, {
|
|
1448
1448
|
ref_key: "form",
|
|
1449
|
-
ref:
|
|
1450
|
-
model: e(
|
|
1449
|
+
ref: s,
|
|
1450
|
+
model: e(c),
|
|
1451
1451
|
"label-width": "auto",
|
|
1452
|
-
rules:
|
|
1453
|
-
disabled: e(f) || e(
|
|
1452
|
+
rules: _,
|
|
1453
|
+
disabled: e(f) || e(b)
|
|
1454
1454
|
}, {
|
|
1455
1455
|
default: o(() => [
|
|
1456
|
-
l(
|
|
1456
|
+
l(g, {
|
|
1457
1457
|
label: e(a)("i18n.module"),
|
|
1458
1458
|
prop: "module",
|
|
1459
1459
|
required: ""
|
|
1460
1460
|
}, {
|
|
1461
1461
|
default: o(() => [
|
|
1462
1462
|
l(Fe, {
|
|
1463
|
-
modelValue: e(
|
|
1464
|
-
"onUpdate:modelValue": S[0] || (S[0] = (
|
|
1465
|
-
disabled: e(
|
|
1463
|
+
modelValue: e(c).module,
|
|
1464
|
+
"onUpdate:modelValue": S[0] || (S[0] = (A) => e(c).module = A),
|
|
1465
|
+
disabled: e(b),
|
|
1466
1466
|
"allow-create": ""
|
|
1467
1467
|
}, null, 8, ["modelValue", "disabled"])
|
|
1468
1468
|
]),
|
|
1469
1469
|
_: 1
|
|
1470
1470
|
}, 8, ["label"]),
|
|
1471
|
-
l(
|
|
1471
|
+
l(g, {
|
|
1472
1472
|
label: e(a)("i18n.key"),
|
|
1473
1473
|
prop: "key",
|
|
1474
1474
|
required: ""
|
|
1475
1475
|
}, {
|
|
1476
1476
|
default: o(() => [
|
|
1477
|
-
l(
|
|
1478
|
-
modelValue: e(
|
|
1479
|
-
"onUpdate:modelValue": S[1] || (S[1] = (
|
|
1477
|
+
l(y, {
|
|
1478
|
+
modelValue: e(c).key,
|
|
1479
|
+
"onUpdate:modelValue": S[1] || (S[1] = (A) => e(c).key = A),
|
|
1480
1480
|
placeholder: e(a)("i18n.placeholder.key")
|
|
1481
1481
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1482
1482
|
]),
|
|
1483
1483
|
_: 1
|
|
1484
1484
|
}, 8, ["label"]),
|
|
1485
|
-
l(
|
|
1485
|
+
l(g, {
|
|
1486
1486
|
label: e(a)("i18n.language"),
|
|
1487
1487
|
prop: "language",
|
|
1488
1488
|
required: ""
|
|
1489
1489
|
}, {
|
|
1490
1490
|
default: o(() => [
|
|
1491
|
-
l(
|
|
1491
|
+
l(h, {
|
|
1492
1492
|
direction: "vertical",
|
|
1493
1493
|
fill: "",
|
|
1494
1494
|
style: { width: "100%" }
|
|
1495
1495
|
}, {
|
|
1496
1496
|
default: o(() => [
|
|
1497
|
-
(M(!0),
|
|
1498
|
-
l(
|
|
1499
|
-
modelValue: e(
|
|
1500
|
-
"onUpdate:modelValue": (
|
|
1497
|
+
(M(!0), B(G, null, ae(m.value, (A) => (M(), B("div", { key: A }, [
|
|
1498
|
+
l(y, {
|
|
1499
|
+
modelValue: e(c).language[A],
|
|
1500
|
+
"onUpdate:modelValue": (L) => e(c).language[A] = L,
|
|
1501
1501
|
placeholder: e(a)("i18n.placeholder.language")
|
|
1502
1502
|
}, {
|
|
1503
1503
|
prepend: o(() => [
|
|
1504
|
-
|
|
1504
|
+
le(I(A), 1)
|
|
1505
1505
|
]),
|
|
1506
1506
|
_: 2
|
|
1507
1507
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
@@ -1512,14 +1512,14 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1512
1512
|
]),
|
|
1513
1513
|
_: 1
|
|
1514
1514
|
}, 8, ["label"]),
|
|
1515
|
-
l(
|
|
1515
|
+
l(g, {
|
|
1516
1516
|
label: e(a)("base.remark"),
|
|
1517
1517
|
prop: "remark"
|
|
1518
1518
|
}, {
|
|
1519
1519
|
default: o(() => [
|
|
1520
|
-
l(
|
|
1521
|
-
modelValue: e(
|
|
1522
|
-
"onUpdate:modelValue": S[2] || (S[2] = (
|
|
1520
|
+
l(y, {
|
|
1521
|
+
modelValue: e(c).remark,
|
|
1522
|
+
"onUpdate:modelValue": S[2] || (S[2] = (A) => e(c).remark = A),
|
|
1523
1523
|
placeholder: e(a)("placeholder.remark")
|
|
1524
1524
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1525
1525
|
]),
|
|
@@ -1533,144 +1533,189 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1533
1533
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
1534
1534
|
};
|
|
1535
1535
|
}
|
|
1536
|
-
})
|
|
1536
|
+
});
|
|
1537
|
+
function yl(x) {
|
|
1538
|
+
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !De(x);
|
|
1539
|
+
}
|
|
1540
|
+
const ze = /* @__PURE__ */ O({
|
|
1537
1541
|
__name: "I18N",
|
|
1538
1542
|
emits: ["closed", "choosed"],
|
|
1539
|
-
setup(x, {
|
|
1540
|
-
|
|
1543
|
+
setup(x, {
|
|
1544
|
+
expose: U,
|
|
1545
|
+
emit: v
|
|
1546
|
+
}) {
|
|
1547
|
+
const k = v, {
|
|
1548
|
+
visible: V,
|
|
1549
|
+
open: _,
|
|
1550
|
+
close: m
|
|
1551
|
+
} = xe(void 0, () => k("closed")), i = {
|
|
1541
1552
|
keyword: "",
|
|
1542
1553
|
module: void 0,
|
|
1543
1554
|
status: 0
|
|
1544
|
-
},
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1555
|
+
}, u = [{
|
|
1556
|
+
label: a("i18n.module"),
|
|
1557
|
+
prop: "module",
|
|
1558
|
+
width: 120
|
|
1559
|
+
}, {
|
|
1560
|
+
label: a("i18n.key"),
|
|
1561
|
+
prop: "key",
|
|
1562
|
+
width: 200
|
|
1563
|
+
}, {
|
|
1564
|
+
label: a("i18n.i18n"),
|
|
1565
|
+
align: "left",
|
|
1566
|
+
prop: "language",
|
|
1567
|
+
render: ({
|
|
1568
|
+
row: g
|
|
1569
|
+
}) => {
|
|
1570
|
+
const h = Object.keys(g.language).filter((C) => !!g.language[C]).map((C) => `${C}: ${g.language[C]}`).join("; ");
|
|
1571
|
+
return l(r("el-space"), null, yl(h) ? h : {
|
|
1572
|
+
default: () => [h]
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
}, {
|
|
1576
|
+
label: a("base.status"),
|
|
1577
|
+
prop: "checked",
|
|
1578
|
+
width: 80,
|
|
1579
|
+
type: "switch",
|
|
1580
|
+
props: {
|
|
1581
|
+
activeValue: 1,
|
|
1582
|
+
inactiveValue: 2,
|
|
1583
|
+
api: W.urls[Se],
|
|
1584
|
+
refresh: !0
|
|
1571
1585
|
}
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1586
|
+
}, {
|
|
1587
|
+
prop: "action",
|
|
1588
|
+
label: a("base.action"),
|
|
1589
|
+
width: 120,
|
|
1590
|
+
align: "center",
|
|
1591
|
+
render: ({
|
|
1592
|
+
rowData: g
|
|
1593
|
+
}) => l(r("el-space"), null, {
|
|
1594
|
+
default: () => [l(ne, {
|
|
1595
|
+
size: "default",
|
|
1596
|
+
onModify: () => d({
|
|
1597
|
+
uuid: g.uuid
|
|
1598
|
+
})
|
|
1599
|
+
}, null), l(X, {
|
|
1600
|
+
size: "default",
|
|
1601
|
+
text: !0,
|
|
1602
|
+
type: "danger",
|
|
1603
|
+
loading: w.value,
|
|
1604
|
+
onClick: () => p(g.uuid)
|
|
1605
|
+
}, null)]
|
|
1606
|
+
})
|
|
1607
|
+
}], {
|
|
1608
|
+
requesting: n,
|
|
1609
|
+
executing: w
|
|
1610
|
+
} = z(W), {
|
|
1611
|
+
tableRef: s,
|
|
1612
|
+
formModalRef: c,
|
|
1613
|
+
keyword: f,
|
|
1614
|
+
search: b,
|
|
1615
|
+
reset: D,
|
|
1616
|
+
refresh: R,
|
|
1617
|
+
openFormModal: t,
|
|
1618
|
+
editFormModal: d
|
|
1619
|
+
} = J(i);
|
|
1620
|
+
async function p(g) {
|
|
1621
|
+
return W.remove({
|
|
1622
|
+
uuid: g
|
|
1623
|
+
}).finally(() => {
|
|
1624
|
+
R();
|
|
1625
|
+
});
|
|
1626
|
+
}
|
|
1627
|
+
function S(g) {
|
|
1628
|
+
k("choosed", g);
|
|
1575
1629
|
}
|
|
1576
1630
|
return U({
|
|
1577
|
-
open:
|
|
1578
|
-
}), (
|
|
1579
|
-
const
|
|
1580
|
-
return M(),
|
|
1631
|
+
open: _
|
|
1632
|
+
}), (g, y) => {
|
|
1633
|
+
const h = r("el-input"), C = r("el-radio-button"), A = r("el-radio-group"), L = r("el-space"), T = r("el-page-header");
|
|
1634
|
+
return M(), q(e(_e), {
|
|
1581
1635
|
class: "basic-drawer",
|
|
1582
|
-
modelValue: e(
|
|
1583
|
-
"onUpdate:modelValue":
|
|
1636
|
+
modelValue: e(V),
|
|
1637
|
+
"onUpdate:modelValue": y[7] || (y[7] = ($) => F(V) ? V.value = $ : null),
|
|
1584
1638
|
width: "880px",
|
|
1585
1639
|
"show-close": !1,
|
|
1586
|
-
onClosed: e(
|
|
1640
|
+
onClosed: e(m)
|
|
1587
1641
|
}, {
|
|
1588
|
-
title: o(() => [
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
onRefresh: e(_)
|
|
1594
|
-
}, null, 8, ["loading", "onRefresh"]),
|
|
1595
|
-
l(e(B), {
|
|
1596
|
-
onOpen: e(R),
|
|
1597
|
-
disabled: e(n)
|
|
1598
|
-
}, null, 8, ["onOpen", "disabled"])
|
|
1599
|
-
]),
|
|
1600
|
-
content: o(() => [
|
|
1601
|
-
l(V, { class: "search-bar" }, {
|
|
1602
|
-
default: o(() => [
|
|
1603
|
-
l(S, {
|
|
1604
|
-
style: { width: "160px" },
|
|
1605
|
-
modelValue: e(m).keyword,
|
|
1606
|
-
"onUpdate:modelValue": s[0] || (s[0] = (y) => e(m).keyword = y),
|
|
1607
|
-
disabled: e(n),
|
|
1608
|
-
placeholder: e(a)("placeholder.keyword"),
|
|
1609
|
-
clearable: "",
|
|
1610
|
-
onKeyup: s[1] || (s[1] = Ve((y) => e(f)(), ["enter"])),
|
|
1611
|
-
onClear: s[2] || (s[2] = (y) => e(f)())
|
|
1612
|
-
}, null, 8, ["modelValue", "disabled", "placeholder"]),
|
|
1613
|
-
l(Fe, {
|
|
1614
|
-
modelValue: e(m).module,
|
|
1615
|
-
"onUpdate:modelValue": s[3] || (s[3] = (y) => e(m).module = y),
|
|
1616
|
-
clearable: !0,
|
|
1617
|
-
disabled: e(n),
|
|
1618
|
-
style: { width: "160px" }
|
|
1619
|
-
}, null, 8, ["modelValue", "disabled"]),
|
|
1620
|
-
l(A, {
|
|
1621
|
-
modelValue: e(m).status,
|
|
1622
|
-
"onUpdate:modelValue": s[4] || (s[4] = (y) => e(m).status = y),
|
|
1623
|
-
onChange: s[5] || (s[5] = (y) => e(f)()),
|
|
1624
|
-
disabled: e(n)
|
|
1625
|
-
}, {
|
|
1626
|
-
default: o(() => [
|
|
1627
|
-
(M(), N(j, null, le([0, 1, 2], (y) => l(k, {
|
|
1628
|
-
key: y,
|
|
1629
|
-
label: e(a)(`status.${y}`),
|
|
1630
|
-
value: y
|
|
1631
|
-
}, null, 8, ["label", "value"])), 64))
|
|
1632
|
-
]),
|
|
1633
|
-
_: 1
|
|
1634
|
-
}, 8, ["modelValue", "disabled"]),
|
|
1635
|
-
l(e(de), {
|
|
1636
|
-
disabled: e(n),
|
|
1637
|
-
onSearch: s[6] || (s[6] = (y) => e(f)())
|
|
1638
|
-
}, null, 8, ["disabled"])
|
|
1639
|
-
]),
|
|
1640
|
-
_: 1
|
|
1641
|
-
})
|
|
1642
|
-
]),
|
|
1643
|
-
_: 1
|
|
1644
|
-
})
|
|
1645
|
-
]),
|
|
1646
|
-
default: o(() => [
|
|
1647
|
-
l(e(be), {
|
|
1648
|
-
ref_key: "tableRef",
|
|
1649
|
-
ref: w,
|
|
1650
|
-
columns: i,
|
|
1651
|
-
url: e(H).urls[e(ye)],
|
|
1652
|
-
"search-param": e(m),
|
|
1653
|
-
onRowDblclick: t,
|
|
1654
|
-
"auto-search": ""
|
|
1655
|
-
}, null, 8, ["url", "search-param"]),
|
|
1656
|
-
l(Vl, {
|
|
1657
|
-
ref_key: "formModalRef",
|
|
1658
|
-
ref: u,
|
|
1642
|
+
title: o(() => [l(T, {
|
|
1643
|
+
class: "basic-header"
|
|
1644
|
+
}, {
|
|
1645
|
+
title: o(() => [l(e(K), {
|
|
1646
|
+
loading: e(n),
|
|
1659
1647
|
onRefresh: e(D)
|
|
1660
|
-
}, null, 8, ["onRefresh"])
|
|
1661
|
-
|
|
1648
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
1649
|
+
onOpen: e(t),
|
|
1650
|
+
disabled: e(n)
|
|
1651
|
+
}, null, 8, ["onOpen", "disabled"])]),
|
|
1652
|
+
content: o(() => [l(L, {
|
|
1653
|
+
class: "search-bar"
|
|
1654
|
+
}, {
|
|
1655
|
+
default: o(() => [l(h, {
|
|
1656
|
+
style: {
|
|
1657
|
+
width: "160px"
|
|
1658
|
+
},
|
|
1659
|
+
modelValue: e(f).keyword,
|
|
1660
|
+
"onUpdate:modelValue": y[0] || (y[0] = ($) => e(f).keyword = $),
|
|
1661
|
+
disabled: e(n),
|
|
1662
|
+
placeholder: e(a)("placeholder.keyword"),
|
|
1663
|
+
clearable: "",
|
|
1664
|
+
onKeyup: y[1] || (y[1] = Ve(($) => e(b)(), ["enter"])),
|
|
1665
|
+
onClear: y[2] || (y[2] = ($) => e(b)())
|
|
1666
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"]), l(Fe, {
|
|
1667
|
+
modelValue: e(f).module,
|
|
1668
|
+
"onUpdate:modelValue": y[3] || (y[3] = ($) => e(f).module = $),
|
|
1669
|
+
clearable: !0,
|
|
1670
|
+
disabled: e(n),
|
|
1671
|
+
style: {
|
|
1672
|
+
width: "160px"
|
|
1673
|
+
}
|
|
1674
|
+
}, null, 8, ["modelValue", "disabled"]), l(A, {
|
|
1675
|
+
modelValue: e(f).status,
|
|
1676
|
+
"onUpdate:modelValue": y[4] || (y[4] = ($) => e(f).status = $),
|
|
1677
|
+
onChange: y[5] || (y[5] = ($) => e(b)()),
|
|
1678
|
+
disabled: e(n)
|
|
1679
|
+
}, {
|
|
1680
|
+
default: o(() => [(M(), B(G, null, ae([0, 1, 2], ($) => l(C, {
|
|
1681
|
+
key: $,
|
|
1682
|
+
label: e(a)(`status.${$}`),
|
|
1683
|
+
value: $
|
|
1684
|
+
}, null, 8, ["label", "value"])), 64))]),
|
|
1685
|
+
_: 1
|
|
1686
|
+
}, 8, ["modelValue", "disabled"]), l(e(de), {
|
|
1687
|
+
disabled: e(n),
|
|
1688
|
+
onSearch: y[6] || (y[6] = ($) => e(b)())
|
|
1689
|
+
}, null, 8, ["disabled"])]),
|
|
1690
|
+
_: 1
|
|
1691
|
+
})]),
|
|
1692
|
+
_: 1
|
|
1693
|
+
})]),
|
|
1694
|
+
default: o(() => [l(e(be), {
|
|
1695
|
+
ref_key: "tableRef",
|
|
1696
|
+
ref: s,
|
|
1697
|
+
columns: u,
|
|
1698
|
+
url: e(W).urls[e(ye)],
|
|
1699
|
+
"search-param": e(f),
|
|
1700
|
+
onRowDblclick: S,
|
|
1701
|
+
"auto-search": ""
|
|
1702
|
+
}, null, 8, ["url", "search-param"]), l(Vl, {
|
|
1703
|
+
ref_key: "formModalRef",
|
|
1704
|
+
ref: c,
|
|
1705
|
+
onRefresh: e(R)
|
|
1706
|
+
}, null, 8, ["onRefresh"])]),
|
|
1662
1707
|
_: 1
|
|
1663
1708
|
}, 8, ["modelValue", "onClosed"]);
|
|
1664
1709
|
};
|
|
1665
1710
|
}
|
|
1666
|
-
}),
|
|
1711
|
+
}), kl = { key: 0 }, vl = { key: 1 }, wl = /* @__PURE__ */ O({
|
|
1667
1712
|
__name: "template",
|
|
1668
1713
|
emits: ["refresh"],
|
|
1669
1714
|
setup(x, { expose: U, emit: v }) {
|
|
1670
|
-
const
|
|
1715
|
+
const k = He(), V = () => k.value?.open(), _ = v, m = H("600px"), i = H({
|
|
1671
1716
|
"zh-CN": "primary",
|
|
1672
1717
|
"en-US": "success"
|
|
1673
|
-
}),
|
|
1718
|
+
}), u = H({}), n = {
|
|
1674
1719
|
uuid: "",
|
|
1675
1720
|
app: 1,
|
|
1676
1721
|
keys: "",
|
|
@@ -1698,46 +1743,46 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1698
1743
|
trigger: "change"
|
|
1699
1744
|
}
|
|
1700
1745
|
]
|
|
1701
|
-
}, { modal:
|
|
1702
|
-
function
|
|
1703
|
-
|
|
1746
|
+
}, { modal: s, title: c, form: f, formData: b, requesting: D, executing: R, open: t, modify: d, submit: p, closed: S } = ee(_, n, ue);
|
|
1747
|
+
function g() {
|
|
1748
|
+
m.value = "1080px", V();
|
|
1704
1749
|
}
|
|
1705
|
-
function
|
|
1706
|
-
|
|
1750
|
+
function y() {
|
|
1751
|
+
m.value = "600px";
|
|
1707
1752
|
}
|
|
1708
|
-
function
|
|
1709
|
-
let
|
|
1710
|
-
|
|
1711
|
-
for (const
|
|
1712
|
-
|
|
1753
|
+
function h(L) {
|
|
1754
|
+
let T = L?.module?.toLowerCase() + "." + L.key.toLowerCase();
|
|
1755
|
+
b.keys = T, b.values.push(T);
|
|
1756
|
+
for (const $ in L.language)
|
|
1757
|
+
u.value[$] || (u.value[$] = []), u.value[$].push(L.language[$]);
|
|
1713
1758
|
}
|
|
1714
|
-
function
|
|
1715
|
-
|
|
1759
|
+
function C() {
|
|
1760
|
+
m.value = "600px", A();
|
|
1716
1761
|
}
|
|
1717
|
-
function
|
|
1718
|
-
|
|
1762
|
+
function A() {
|
|
1763
|
+
b.keys = "", b.values = [], u.value = {
|
|
1719
1764
|
"zh-CN": [],
|
|
1720
1765
|
"en-US": []
|
|
1721
1766
|
};
|
|
1722
1767
|
}
|
|
1723
|
-
return Le(() =>
|
|
1724
|
-
|
|
1768
|
+
return Le(() => s.value, (L) => {
|
|
1769
|
+
L ? C() : S();
|
|
1725
1770
|
}), U({
|
|
1726
1771
|
open: t,
|
|
1727
1772
|
modify: d
|
|
1728
|
-
}), (
|
|
1729
|
-
const
|
|
1730
|
-
return M(),
|
|
1731
|
-
modelValue: e(
|
|
1732
|
-
"onUpdate:modelValue":
|
|
1733
|
-
width:
|
|
1773
|
+
}), (L, T) => {
|
|
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
|
+
return M(), q(e(_e), {
|
|
1776
|
+
modelValue: e(s),
|
|
1777
|
+
"onUpdate:modelValue": T[3] || (T[3] = (Z) => F(s) ? s.value = Z : null),
|
|
1778
|
+
width: m.value,
|
|
1734
1779
|
"show-close": !1,
|
|
1735
1780
|
class: "basic-drawer"
|
|
1736
1781
|
}, {
|
|
1737
1782
|
title: o(() => [
|
|
1738
|
-
l(
|
|
1783
|
+
l($, { class: "basic-header" }, {
|
|
1739
1784
|
title: o(() => [
|
|
1740
|
-
|
|
1785
|
+
le(I(e(c)("i18n.template")), 1)
|
|
1741
1786
|
]),
|
|
1742
1787
|
extra: o(() => [
|
|
1743
1788
|
l(e(X), {
|
|
@@ -1745,7 +1790,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1745
1790
|
type: "default",
|
|
1746
1791
|
icon: "icon-clear",
|
|
1747
1792
|
loading: e(R),
|
|
1748
|
-
onClick:
|
|
1793
|
+
onClick: A
|
|
1749
1794
|
}, null, 8, ["loading"]),
|
|
1750
1795
|
l(e(X), {
|
|
1751
1796
|
circle: !1,
|
|
@@ -1754,17 +1799,17 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1754
1799
|
icon: "icon-save",
|
|
1755
1800
|
plain: !1,
|
|
1756
1801
|
loading: e(R),
|
|
1757
|
-
onClick: e(
|
|
1802
|
+
onClick: e(p)
|
|
1758
1803
|
}, null, 8, ["loading", "onClick"])
|
|
1759
1804
|
]),
|
|
1760
1805
|
_: 1
|
|
1761
1806
|
})
|
|
1762
1807
|
]),
|
|
1763
1808
|
default: o(() => [
|
|
1764
|
-
l(
|
|
1809
|
+
l(je, {
|
|
1765
1810
|
ref_key: "form",
|
|
1766
1811
|
ref: f,
|
|
1767
|
-
model: e(
|
|
1812
|
+
model: e(b),
|
|
1768
1813
|
"label-width": "auto",
|
|
1769
1814
|
rules: w,
|
|
1770
1815
|
disabled: e(D) || e(R)
|
|
@@ -1777,8 +1822,8 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1777
1822
|
}, {
|
|
1778
1823
|
default: o(() => [
|
|
1779
1824
|
l(e(qe), {
|
|
1780
|
-
modelValue: e(
|
|
1781
|
-
"onUpdate:modelValue":
|
|
1825
|
+
modelValue: e(b).app,
|
|
1826
|
+
"onUpdate:modelValue": T[0] || (T[0] = (Z) => e(b).app = Z),
|
|
1782
1827
|
"cache-key": "I18NAPPS",
|
|
1783
1828
|
hidden: [0],
|
|
1784
1829
|
url: e(ue).urls.apps
|
|
@@ -1792,15 +1837,15 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1792
1837
|
required: ""
|
|
1793
1838
|
}, {
|
|
1794
1839
|
default: o(() => [
|
|
1795
|
-
l(
|
|
1796
|
-
modelValue: e(
|
|
1797
|
-
"onUpdate:modelValue":
|
|
1840
|
+
l(N, {
|
|
1841
|
+
modelValue: e(b).keys,
|
|
1842
|
+
"onUpdate:modelValue": T[1] || (T[1] = (Z) => e(b).keys = Z),
|
|
1798
1843
|
placeholder: e(a)("i18n.placeholder.key")
|
|
1799
1844
|
}, {
|
|
1800
1845
|
append: o(() => [
|
|
1801
1846
|
l(Re, {
|
|
1802
1847
|
icon: e(sl),
|
|
1803
|
-
onClick:
|
|
1848
|
+
onClick: g
|
|
1804
1849
|
}, null, 8, ["icon"])
|
|
1805
1850
|
]),
|
|
1806
1851
|
_: 1
|
|
@@ -1814,7 +1859,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1814
1859
|
required: ""
|
|
1815
1860
|
}, {
|
|
1816
1861
|
default: o(() => [
|
|
1817
|
-
|
|
1862
|
+
le(I(e(b).values.join(":")), 1)
|
|
1818
1863
|
]),
|
|
1819
1864
|
_: 1
|
|
1820
1865
|
}, 8, ["label"]),
|
|
@@ -1822,22 +1867,22 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1822
1867
|
label: e(a)("i18n.values")
|
|
1823
1868
|
}, {
|
|
1824
1869
|
default: o(() => [
|
|
1825
|
-
(M(!0),
|
|
1870
|
+
(M(!0), B(G, null, ae(u.value, (Z, ke) => (M(), B("div", {
|
|
1826
1871
|
key: ke,
|
|
1827
1872
|
class: "w-full"
|
|
1828
1873
|
}, [
|
|
1829
1874
|
l(Pe, null, {
|
|
1830
1875
|
default: o(() => [
|
|
1831
1876
|
l(Be, {
|
|
1832
|
-
type:
|
|
1877
|
+
type: i.value[ke],
|
|
1833
1878
|
style: { "min-width": "80px" }
|
|
1834
1879
|
}, {
|
|
1835
1880
|
default: o(() => [
|
|
1836
|
-
|
|
1881
|
+
le(I(ke), 1)
|
|
1837
1882
|
]),
|
|
1838
1883
|
_: 2
|
|
1839
1884
|
}, 1032, ["type"]),
|
|
1840
|
-
ke == "zh-CN" ? (M(),
|
|
1885
|
+
ke == "zh-CN" ? (M(), B("span", kl, I(Z.join("")), 1)) : (M(), B("span", vl, I(Z.join(" ")), 1))
|
|
1841
1886
|
]),
|
|
1842
1887
|
_: 2
|
|
1843
1888
|
}, 1024)
|
|
@@ -1850,9 +1895,9 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1850
1895
|
prop: "remark"
|
|
1851
1896
|
}, {
|
|
1852
1897
|
default: o(() => [
|
|
1853
|
-
l(
|
|
1854
|
-
modelValue: e(
|
|
1855
|
-
"onUpdate:modelValue":
|
|
1898
|
+
l(N, {
|
|
1899
|
+
modelValue: e(b).remark,
|
|
1900
|
+
"onUpdate:modelValue": T[2] || (T[2] = (Z) => e(b).remark = Z),
|
|
1856
1901
|
placeholder: e(a)("placeholder.input")
|
|
1857
1902
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1858
1903
|
]),
|
|
@@ -1863,59 +1908,59 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1863
1908
|
}, 8, ["model", "disabled"]),
|
|
1864
1909
|
l(ze, {
|
|
1865
1910
|
ref_key: "I18nTableDrawerRef",
|
|
1866
|
-
ref:
|
|
1867
|
-
onChoosed:
|
|
1868
|
-
onClosed:
|
|
1911
|
+
ref: k,
|
|
1912
|
+
onChoosed: h,
|
|
1913
|
+
onClosed: y
|
|
1869
1914
|
}, null, 512)
|
|
1870
1915
|
]),
|
|
1871
1916
|
_: 1
|
|
1872
1917
|
}, 8, ["modelValue", "width"]);
|
|
1873
1918
|
};
|
|
1874
1919
|
}
|
|
1875
|
-
}),
|
|
1920
|
+
}), xl = Y.routineApi("gateway", "id", {
|
|
1876
1921
|
gen: "gen_translation"
|
|
1877
1922
|
});
|
|
1878
|
-
function
|
|
1879
|
-
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !
|
|
1923
|
+
function Rl(x) {
|
|
1924
|
+
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !De(x);
|
|
1880
1925
|
}
|
|
1881
|
-
const
|
|
1926
|
+
const Ql = /* @__PURE__ */ O({
|
|
1882
1927
|
__name: "index",
|
|
1883
1928
|
setup(x) {
|
|
1884
|
-
const U = ze, v =
|
|
1929
|
+
const U = ze, v = wl, k = {
|
|
1885
1930
|
keyword: "",
|
|
1886
1931
|
app: 0,
|
|
1887
1932
|
status: 0
|
|
1888
|
-
},
|
|
1889
|
-
row:
|
|
1933
|
+
}, V = ({
|
|
1934
|
+
row: y
|
|
1890
1935
|
}) => {
|
|
1891
|
-
let
|
|
1936
|
+
let h;
|
|
1892
1937
|
return l(r("el-tag"), {
|
|
1893
|
-
type: a("i18n.app.colors." +
|
|
1938
|
+
type: a("i18n.app.colors." + y.app),
|
|
1894
1939
|
style: "min-width: 80px"
|
|
1895
|
-
},
|
|
1896
|
-
default: () => [
|
|
1940
|
+
}, Rl(h = a("i18n.app." + y.app)) ? h : {
|
|
1941
|
+
default: () => [h]
|
|
1897
1942
|
});
|
|
1898
|
-
},
|
|
1899
|
-
row:
|
|
1943
|
+
}, _ = ({
|
|
1944
|
+
row: y
|
|
1900
1945
|
}) => l(r("el-space"), null, {
|
|
1901
|
-
default: () => [l(
|
|
1946
|
+
default: () => [l(ne, {
|
|
1902
1947
|
size: "default",
|
|
1903
|
-
disabled:
|
|
1948
|
+
disabled: u.value,
|
|
1904
1949
|
onModify: () => t({
|
|
1905
|
-
uuid:
|
|
1950
|
+
uuid: y.uuid
|
|
1906
1951
|
})
|
|
1907
1952
|
}, null), l(X, {
|
|
1908
1953
|
size: "default",
|
|
1909
1954
|
text: !0,
|
|
1910
1955
|
type: "danger",
|
|
1911
|
-
loading:
|
|
1912
|
-
onClick: () =>
|
|
1956
|
+
loading: u.value,
|
|
1957
|
+
onClick: () => p(y.uuid)
|
|
1913
1958
|
}, null)]
|
|
1914
|
-
}),
|
|
1959
|
+
}), m = [{
|
|
1915
1960
|
label: a("base.app"),
|
|
1916
1961
|
prop: "app",
|
|
1917
1962
|
width: 120,
|
|
1918
|
-
render:
|
|
1963
|
+
render: V
|
|
1919
1964
|
}, {
|
|
1920
1965
|
label: a("i18n.keys"),
|
|
1921
1966
|
prop: "keys",
|
|
@@ -1932,7 +1977,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
1932
1977
|
props: {
|
|
1933
1978
|
activeValue: 1,
|
|
1934
1979
|
inactiveValue: 2,
|
|
1935
|
-
api: ue.urls[
|
|
1980
|
+
api: ue.urls[Se],
|
|
1936
1981
|
refresh: !0
|
|
1937
1982
|
}
|
|
1938
1983
|
}, {
|
|
@@ -1952,42 +1997,42 @@ const Hl = /* @__PURE__ */ O({
|
|
|
1952
1997
|
label: a("base.action"),
|
|
1953
1998
|
width: 120,
|
|
1954
1999
|
align: "center",
|
|
1955
|
-
render:
|
|
2000
|
+
render: _
|
|
1956
2001
|
}], {
|
|
1957
|
-
requesting:
|
|
1958
|
-
executing:
|
|
1959
|
-
} =
|
|
2002
|
+
requesting: i,
|
|
2003
|
+
executing: u
|
|
2004
|
+
} = z(ue), {
|
|
1960
2005
|
tableRef: n,
|
|
1961
2006
|
formModalRef: w,
|
|
1962
|
-
dialogRef:
|
|
1963
|
-
keyword:
|
|
2007
|
+
dialogRef: s,
|
|
2008
|
+
keyword: c,
|
|
1964
2009
|
search: f,
|
|
1965
|
-
reset:
|
|
2010
|
+
reset: b,
|
|
1966
2011
|
refresh: D,
|
|
1967
2012
|
openFormModal: R,
|
|
1968
2013
|
editFormModal: t,
|
|
1969
2014
|
openDialog: d
|
|
1970
|
-
} =
|
|
1971
|
-
function
|
|
2015
|
+
} = J(k);
|
|
2016
|
+
function p(y) {
|
|
1972
2017
|
return ue.remove({
|
|
1973
|
-
uuid:
|
|
2018
|
+
uuid: y
|
|
1974
2019
|
}).finally(() => {
|
|
1975
2020
|
D();
|
|
1976
2021
|
});
|
|
1977
2022
|
}
|
|
1978
2023
|
function S() {
|
|
1979
|
-
return
|
|
2024
|
+
return W.gen().finally(() => {
|
|
1980
2025
|
D();
|
|
1981
2026
|
});
|
|
1982
2027
|
}
|
|
1983
|
-
function
|
|
1984
|
-
|
|
2028
|
+
function g() {
|
|
2029
|
+
xl.gen().finally(() => {
|
|
1985
2030
|
D();
|
|
1986
2031
|
});
|
|
1987
2032
|
}
|
|
1988
|
-
return (
|
|
1989
|
-
const
|
|
1990
|
-
return M(),
|
|
2033
|
+
return (y, h) => {
|
|
2034
|
+
const C = r("el-input"), A = 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
|
+
return M(), q(Re, {
|
|
1991
2036
|
class: "basic-card flex-full",
|
|
1992
2037
|
"body-class": "flex-1"
|
|
1993
2038
|
}, {
|
|
@@ -1995,45 +2040,45 @@ const Hl = /* @__PURE__ */ O({
|
|
|
1995
2040
|
class: "basic-header"
|
|
1996
2041
|
}, {
|
|
1997
2042
|
title: o(() => [l(e(K), {
|
|
1998
|
-
loading: e(
|
|
1999
|
-
onRefresh: e(
|
|
2000
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
|
2043
|
+
loading: e(i),
|
|
2044
|
+
onRefresh: e(b)
|
|
2045
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
2001
2046
|
onOpen: e(R)
|
|
2002
2047
|
}, null, 8, ["onOpen"])]),
|
|
2003
|
-
content: o(() => [l(
|
|
2048
|
+
content: o(() => [l(T, {
|
|
2004
2049
|
class: "search-bar"
|
|
2005
2050
|
}, {
|
|
2006
|
-
default: o(() => [l(
|
|
2051
|
+
default: o(() => [l(C, {
|
|
2007
2052
|
class: "basic-search-input",
|
|
2008
|
-
modelValue: e(
|
|
2009
|
-
"onUpdate:modelValue":
|
|
2010
|
-
disabled: e(
|
|
2053
|
+
modelValue: e(c).keyword,
|
|
2054
|
+
"onUpdate:modelValue": h[0] || (h[0] = (N) => e(c).keyword = N),
|
|
2055
|
+
disabled: e(i) || e(u),
|
|
2011
2056
|
placeholder: e(a)("placeholder.keyword"),
|
|
2012
2057
|
clearable: "",
|
|
2013
|
-
onKeyup:
|
|
2014
|
-
onClear:
|
|
2058
|
+
onKeyup: h[1] || (h[1] = Ve((N) => e(f)(), ["enter"])),
|
|
2059
|
+
onClear: h[2] || (h[2] = (N) => e(f)())
|
|
2015
2060
|
}, null, 8, ["modelValue", "disabled", "placeholder"]), l(e(qe), {
|
|
2016
|
-
modelValue: e(
|
|
2017
|
-
"onUpdate:modelValue":
|
|
2061
|
+
modelValue: e(c).app,
|
|
2062
|
+
"onUpdate:modelValue": h[3] || (h[3] = (N) => e(c).app = N),
|
|
2018
2063
|
"cache-key": "I18NAPPS",
|
|
2019
|
-
disabled: e(
|
|
2064
|
+
disabled: e(i) || e(u),
|
|
2020
2065
|
url: e(ue).urls.apps,
|
|
2021
|
-
onChange:
|
|
2022
|
-
}, null, 8, ["modelValue", "disabled", "url"]), l(
|
|
2023
|
-
modelValue: e(
|
|
2024
|
-
"onUpdate:modelValue":
|
|
2025
|
-
disabled: e(
|
|
2026
|
-
onChange:
|
|
2066
|
+
onChange: h[4] || (h[4] = (N) => e(f)())
|
|
2067
|
+
}, null, 8, ["modelValue", "disabled", "url"]), l(L, {
|
|
2068
|
+
modelValue: e(c).status,
|
|
2069
|
+
"onUpdate:modelValue": h[5] || (h[5] = (N) => e(c).status = N),
|
|
2070
|
+
disabled: e(i) || e(u),
|
|
2071
|
+
onChange: h[6] || (h[6] = (N) => e(f)())
|
|
2027
2072
|
}, {
|
|
2028
|
-
default: o(() => [(M(),
|
|
2029
|
-
key:
|
|
2030
|
-
label: e(a)(`status.${
|
|
2031
|
-
value:
|
|
2073
|
+
default: o(() => [(M(), B(G, null, ae([0, 1, 2], (N) => l(A, {
|
|
2074
|
+
key: N,
|
|
2075
|
+
label: e(a)(`status.${N}`),
|
|
2076
|
+
value: N
|
|
2032
2077
|
}, null, 8, ["label", "value"])), 64))]),
|
|
2033
2078
|
_: 1
|
|
2034
2079
|
}, 8, ["modelValue", "disabled"]), l(e(de), {
|
|
2035
|
-
disabled: e(
|
|
2036
|
-
onSearch:
|
|
2080
|
+
disabled: e(i) || e(u),
|
|
2081
|
+
onSearch: h[7] || (h[7] = (N) => e(f)())
|
|
2037
2082
|
}, null, 8, ["disabled"])]),
|
|
2038
2083
|
_: 1
|
|
2039
2084
|
})]),
|
|
@@ -2042,18 +2087,18 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2042
2087
|
type: "warning",
|
|
2043
2088
|
icon: "icon-cloud-upload",
|
|
2044
2089
|
plain: !1,
|
|
2045
|
-
loading: e(
|
|
2090
|
+
loading: e(u),
|
|
2046
2091
|
onClick: S
|
|
2047
2092
|
}, null, 8, ["loading"]), l(e(X), {
|
|
2048
2093
|
size: "default",
|
|
2049
2094
|
type: "danger",
|
|
2050
2095
|
icon: "icon-translate",
|
|
2051
2096
|
plain: !1,
|
|
2052
|
-
loading: e(
|
|
2053
|
-
onClick:
|
|
2054
|
-
}, null, 8, ["loading"]), l(
|
|
2097
|
+
loading: e(u),
|
|
2098
|
+
onClick: g
|
|
2099
|
+
}, null, 8, ["loading"]), l($, {
|
|
2055
2100
|
direction: "vertical"
|
|
2056
|
-
}), l(e(
|
|
2101
|
+
}), l(e(P), {
|
|
2057
2102
|
onOpen: e(d),
|
|
2058
2103
|
icon: "icon-en-US"
|
|
2059
2104
|
}, null, 8, ["onOpen"])]),
|
|
@@ -2062,13 +2107,13 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2062
2107
|
default: o(() => [l(e(be), {
|
|
2063
2108
|
ref_key: "tableRef",
|
|
2064
2109
|
ref: n,
|
|
2065
|
-
columns:
|
|
2110
|
+
columns: m,
|
|
2066
2111
|
url: e(ue).urls[e(ye)],
|
|
2067
|
-
"search-param": e(
|
|
2112
|
+
"search-param": e(c),
|
|
2068
2113
|
"auto-search": ""
|
|
2069
2114
|
}, null, 8, ["url", "search-param"]), l(e(U), {
|
|
2070
2115
|
ref_key: "I18nTableDrawerRef",
|
|
2071
|
-
ref:
|
|
2116
|
+
ref: s
|
|
2072
2117
|
}, null, 512), l(e(v), {
|
|
2073
2118
|
ref_key: "formModalRef",
|
|
2074
2119
|
ref: w,
|
|
@@ -2078,11 +2123,11 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2078
2123
|
});
|
|
2079
2124
|
};
|
|
2080
2125
|
}
|
|
2081
|
-
}), Ue =
|
|
2126
|
+
}), Ue = Y.routineApi("admin", "key"), Ul = /* @__PURE__ */ O({
|
|
2082
2127
|
__name: "AdminFormModal",
|
|
2083
2128
|
emits: ["refresh"],
|
|
2084
2129
|
setup(x, { expose: U, emit: v }) {
|
|
2085
|
-
const
|
|
2130
|
+
const k = v, V = {
|
|
2086
2131
|
key: "",
|
|
2087
2132
|
username: "",
|
|
2088
2133
|
password: "",
|
|
@@ -2091,7 +2136,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2091
2136
|
language: "zh-CN",
|
|
2092
2137
|
remark: "",
|
|
2093
2138
|
roles: []
|
|
2094
|
-
}, { modal:
|
|
2139
|
+
}, { modal: _, title: m, form: i, formData: u, requesting: n, executing: w, open: s, modify: c, submit: f, closed: b } = ee(k, V, Ue), D = {
|
|
2095
2140
|
username: [
|
|
2096
2141
|
{
|
|
2097
2142
|
required: !0,
|
|
@@ -2136,112 +2181,112 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2136
2181
|
trigger: "change"
|
|
2137
2182
|
}
|
|
2138
2183
|
]
|
|
2139
|
-
}, R =
|
|
2184
|
+
}, R = H([]), t = async () => {
|
|
2140
2185
|
const d = await we.list();
|
|
2141
2186
|
R.value = Array.isArray(d?.data) ? d.data : [];
|
|
2142
2187
|
};
|
|
2143
2188
|
return Qe(async () => {
|
|
2144
2189
|
await t();
|
|
2145
2190
|
}), U({
|
|
2146
|
-
open:
|
|
2147
|
-
modify:
|
|
2148
|
-
}), (d,
|
|
2149
|
-
const S = r("el-input"),
|
|
2150
|
-
return M(),
|
|
2151
|
-
modelValue: e(
|
|
2152
|
-
"onUpdate:modelValue":
|
|
2153
|
-
title: e(
|
|
2191
|
+
open: s,
|
|
2192
|
+
modify: c
|
|
2193
|
+
}), (d, p) => {
|
|
2194
|
+
const S = r("el-input"), g = r("el-form-item"), y = r("el-radio-button"), h = r("el-radio-group"), C = r("el-checkbox"), A = r("el-checkbox-group"), L = r("el-form");
|
|
2195
|
+
return M(), q(e(oe), {
|
|
2196
|
+
modelValue: e(_),
|
|
2197
|
+
"onUpdate:modelValue": p[7] || (p[7] = (T) => F(_) ? _.value = T : null),
|
|
2198
|
+
title: e(m)(),
|
|
2154
2199
|
width: "600px",
|
|
2155
2200
|
executing: e(w),
|
|
2156
|
-
onClosed: e(
|
|
2201
|
+
onClosed: e(b),
|
|
2157
2202
|
onSubmit: e(f)
|
|
2158
2203
|
}, {
|
|
2159
2204
|
default: o(() => [
|
|
2160
|
-
l(
|
|
2205
|
+
l(L, {
|
|
2161
2206
|
ref_key: "form",
|
|
2162
|
-
ref:
|
|
2163
|
-
model: e(
|
|
2207
|
+
ref: i,
|
|
2208
|
+
model: e(u),
|
|
2164
2209
|
"label-width": "auto",
|
|
2165
2210
|
rules: D,
|
|
2166
2211
|
disabled: e(n) || e(w)
|
|
2167
2212
|
}, {
|
|
2168
2213
|
default: o(() => [
|
|
2169
|
-
l(
|
|
2214
|
+
l(g, {
|
|
2170
2215
|
label: e(a)("base.username"),
|
|
2171
2216
|
prop: "username"
|
|
2172
2217
|
}, {
|
|
2173
2218
|
default: o(() => [
|
|
2174
2219
|
l(S, {
|
|
2175
|
-
modelValue: e(
|
|
2176
|
-
"onUpdate:modelValue":
|
|
2220
|
+
modelValue: e(u).username,
|
|
2221
|
+
"onUpdate:modelValue": p[0] || (p[0] = (T) => e(u).username = T),
|
|
2177
2222
|
placeholder: e(a)("placeholder.input"),
|
|
2178
2223
|
autocomplete: "off"
|
|
2179
2224
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2180
2225
|
]),
|
|
2181
2226
|
_: 1
|
|
2182
2227
|
}, 8, ["label"]),
|
|
2183
|
-
l(
|
|
2228
|
+
l(g, {
|
|
2184
2229
|
label: e(a)("base.phone"),
|
|
2185
2230
|
prop: "phone"
|
|
2186
2231
|
}, {
|
|
2187
2232
|
default: o(() => [
|
|
2188
2233
|
l(S, {
|
|
2189
|
-
modelValue: e(
|
|
2190
|
-
"onUpdate:modelValue":
|
|
2234
|
+
modelValue: e(u).phone,
|
|
2235
|
+
"onUpdate:modelValue": p[1] || (p[1] = (T) => e(u).phone = T),
|
|
2191
2236
|
placeholder: e(a)("placeholder.input"),
|
|
2192
2237
|
autocomplete: "off"
|
|
2193
2238
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2194
2239
|
]),
|
|
2195
2240
|
_: 1
|
|
2196
2241
|
}, 8, ["label"]),
|
|
2197
|
-
l(
|
|
2242
|
+
l(g, {
|
|
2198
2243
|
label: e(a)("base.password"),
|
|
2199
2244
|
prop: "password",
|
|
2200
|
-
required: !e(
|
|
2245
|
+
required: !e(u).key
|
|
2201
2246
|
}, {
|
|
2202
2247
|
default: o(() => [
|
|
2203
2248
|
l(S, {
|
|
2204
|
-
modelValue: e(
|
|
2205
|
-
"onUpdate:modelValue":
|
|
2249
|
+
modelValue: e(u).password,
|
|
2250
|
+
"onUpdate:modelValue": p[2] || (p[2] = (T) => e(u).password = T),
|
|
2206
2251
|
placeholder: e(a)("placeholder.input"),
|
|
2207
2252
|
autocomplete: "off"
|
|
2208
2253
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2209
2254
|
]),
|
|
2210
2255
|
_: 1
|
|
2211
2256
|
}, 8, ["label", "required"]),
|
|
2212
|
-
l(
|
|
2257
|
+
l(g, {
|
|
2213
2258
|
label: e(a)("base.email"),
|
|
2214
2259
|
prop: "email"
|
|
2215
2260
|
}, {
|
|
2216
2261
|
default: o(() => [
|
|
2217
2262
|
l(S, {
|
|
2218
|
-
modelValue: e(
|
|
2219
|
-
"onUpdate:modelValue":
|
|
2263
|
+
modelValue: e(u).email,
|
|
2264
|
+
"onUpdate:modelValue": p[3] || (p[3] = (T) => e(u).email = T),
|
|
2220
2265
|
placeholder: e(a)("placeholder.input"),
|
|
2221
2266
|
autocomplete: "off"
|
|
2222
2267
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2223
2268
|
]),
|
|
2224
2269
|
_: 1
|
|
2225
2270
|
}, 8, ["label"]),
|
|
2226
|
-
l(
|
|
2271
|
+
l(g, {
|
|
2227
2272
|
label: e(a)("base.language"),
|
|
2228
2273
|
prop: "language"
|
|
2229
2274
|
}, {
|
|
2230
2275
|
default: o(() => [
|
|
2231
|
-
l(
|
|
2232
|
-
modelValue: e(
|
|
2233
|
-
"onUpdate:modelValue":
|
|
2276
|
+
l(h, {
|
|
2277
|
+
modelValue: e(u).language,
|
|
2278
|
+
"onUpdate:modelValue": p[4] || (p[4] = (T) => e(u).language = T)
|
|
2234
2279
|
}, {
|
|
2235
2280
|
default: o(() => [
|
|
2236
|
-
l(
|
|
2237
|
-
default: o(() => [...
|
|
2238
|
-
|
|
2281
|
+
l(y, { value: "zh-CN" }, {
|
|
2282
|
+
default: o(() => [...p[8] || (p[8] = [
|
|
2283
|
+
le("zh-CN", -1)
|
|
2239
2284
|
])]),
|
|
2240
2285
|
_: 1
|
|
2241
2286
|
}),
|
|
2242
|
-
l(
|
|
2243
|
-
default: o(() => [...
|
|
2244
|
-
|
|
2287
|
+
l(y, { value: "en-US" }, {
|
|
2288
|
+
default: o(() => [...p[9] || (p[9] = [
|
|
2289
|
+
le("en-US", -1)
|
|
2245
2290
|
])]),
|
|
2246
2291
|
_: 1
|
|
2247
2292
|
})
|
|
@@ -2251,22 +2296,22 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2251
2296
|
]),
|
|
2252
2297
|
_: 1
|
|
2253
2298
|
}, 8, ["label"]),
|
|
2254
|
-
l(
|
|
2299
|
+
l(g, {
|
|
2255
2300
|
label: e(a)("menu.Role"),
|
|
2256
2301
|
prop: "roles"
|
|
2257
2302
|
}, {
|
|
2258
2303
|
default: o(() => [
|
|
2259
|
-
l(
|
|
2260
|
-
modelValue: e(
|
|
2261
|
-
"onUpdate:modelValue":
|
|
2304
|
+
l(A, {
|
|
2305
|
+
modelValue: e(u).roles,
|
|
2306
|
+
"onUpdate:modelValue": p[5] || (p[5] = (T) => e(u).roles = T)
|
|
2262
2307
|
}, {
|
|
2263
2308
|
default: o(() => [
|
|
2264
|
-
(M(!0),
|
|
2265
|
-
key:
|
|
2266
|
-
value:
|
|
2309
|
+
(M(!0), B(G, null, ae(R.value, (T) => (M(), q(C, {
|
|
2310
|
+
key: T.key,
|
|
2311
|
+
value: T.key
|
|
2267
2312
|
}, {
|
|
2268
2313
|
default: o(() => [
|
|
2269
|
-
|
|
2314
|
+
le(I(T.translate), 1)
|
|
2270
2315
|
]),
|
|
2271
2316
|
_: 2
|
|
2272
2317
|
}, 1032, ["value"]))), 128))
|
|
@@ -2276,14 +2321,14 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2276
2321
|
]),
|
|
2277
2322
|
_: 1
|
|
2278
2323
|
}, 8, ["label"]),
|
|
2279
|
-
l(
|
|
2324
|
+
l(g, {
|
|
2280
2325
|
label: e(a)("base.remark"),
|
|
2281
2326
|
prop: "remark"
|
|
2282
2327
|
}, {
|
|
2283
2328
|
default: o(() => [
|
|
2284
2329
|
l(S, {
|
|
2285
|
-
modelValue: e(
|
|
2286
|
-
"onUpdate:modelValue":
|
|
2330
|
+
modelValue: e(u).remark,
|
|
2331
|
+
"onUpdate:modelValue": p[6] || (p[6] = (T) => e(u).remark = T),
|
|
2287
2332
|
placeholder: e(a)("placeholder.input")
|
|
2288
2333
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2289
2334
|
]),
|
|
@@ -2297,7 +2342,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2297
2342
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2298
2343
|
};
|
|
2299
2344
|
}
|
|
2300
|
-
}),
|
|
2345
|
+
}), Jl = /* @__PURE__ */ O({
|
|
2301
2346
|
__name: "index",
|
|
2302
2347
|
setup(x) {
|
|
2303
2348
|
const U = {
|
|
@@ -2307,21 +2352,21 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2307
2352
|
prop: "avatar",
|
|
2308
2353
|
width: 60,
|
|
2309
2354
|
render: ({
|
|
2310
|
-
row:
|
|
2355
|
+
row: c
|
|
2311
2356
|
}) => l(el, {
|
|
2312
|
-
src:
|
|
2357
|
+
src: c.avatar
|
|
2313
2358
|
}, null)
|
|
2314
2359
|
}, {
|
|
2315
2360
|
label: a("base.user"),
|
|
2316
2361
|
width: 200,
|
|
2317
2362
|
align: "left",
|
|
2318
2363
|
render: ({
|
|
2319
|
-
row:
|
|
2364
|
+
row: c
|
|
2320
2365
|
}) => l(r("el-space"), {
|
|
2321
2366
|
direction: "vertical",
|
|
2322
2367
|
alignment: "start"
|
|
2323
2368
|
}, {
|
|
2324
|
-
default: () => [l("div", null, [
|
|
2369
|
+
default: () => [l("div", null, [c.username]), l("div", null, [c.email])]
|
|
2325
2370
|
})
|
|
2326
2371
|
}, {
|
|
2327
2372
|
label: a("base.phone"),
|
|
@@ -2349,27 +2394,27 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2349
2394
|
width: 80,
|
|
2350
2395
|
align: "center",
|
|
2351
2396
|
render: ({
|
|
2352
|
-
row:
|
|
2353
|
-
}) => l(
|
|
2354
|
-
onModify: () =>
|
|
2355
|
-
key:
|
|
2397
|
+
row: c
|
|
2398
|
+
}) => l(ne, {
|
|
2399
|
+
onModify: () => s({
|
|
2400
|
+
key: c.key
|
|
2356
2401
|
})
|
|
2357
2402
|
}, null)
|
|
2358
2403
|
}], {
|
|
2359
|
-
requesting:
|
|
2360
|
-
} =
|
|
2361
|
-
tableRef:
|
|
2362
|
-
formModalRef:
|
|
2363
|
-
keyword:
|
|
2364
|
-
search:
|
|
2365
|
-
reset:
|
|
2404
|
+
requesting: k
|
|
2405
|
+
} = z(Ue), {
|
|
2406
|
+
tableRef: V,
|
|
2407
|
+
formModalRef: _,
|
|
2408
|
+
keyword: m,
|
|
2409
|
+
search: i,
|
|
2410
|
+
reset: u,
|
|
2366
2411
|
refresh: n,
|
|
2367
2412
|
openFormModal: w,
|
|
2368
|
-
editFormModal:
|
|
2369
|
-
} =
|
|
2370
|
-
return (
|
|
2371
|
-
const
|
|
2372
|
-
return M(),
|
|
2413
|
+
editFormModal: s
|
|
2414
|
+
} = J(U);
|
|
2415
|
+
return (c, f) => {
|
|
2416
|
+
const b = r("el-input"), D = r("el-space"), R = r("el-page-header"), t = r("el-card");
|
|
2417
|
+
return M(), q(t, {
|
|
2373
2418
|
class: "basic-card flex-full",
|
|
2374
2419
|
"body-class": "flex-1"
|
|
2375
2420
|
}, {
|
|
@@ -2377,25 +2422,25 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2377
2422
|
class: "basic-header"
|
|
2378
2423
|
}, {
|
|
2379
2424
|
title: o(() => [l(e(K), {
|
|
2380
|
-
loading: e(
|
|
2381
|
-
onRefresh: e(
|
|
2382
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
|
2425
|
+
loading: e(k),
|
|
2426
|
+
onRefresh: e(u)
|
|
2427
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
2383
2428
|
onOpen: e(w)
|
|
2384
2429
|
}, null, 8, ["onOpen"])]),
|
|
2385
2430
|
content: o(() => [l(D, {
|
|
2386
2431
|
class: "search-bar"
|
|
2387
2432
|
}, {
|
|
2388
|
-
default: o(() => [l(
|
|
2433
|
+
default: o(() => [l(b, {
|
|
2389
2434
|
class: "basic-search-input",
|
|
2390
|
-
modelValue: e(
|
|
2391
|
-
"onUpdate:modelValue": f[0] || (f[0] = (d) => e(
|
|
2435
|
+
modelValue: e(m).keyword,
|
|
2436
|
+
"onUpdate:modelValue": f[0] || (f[0] = (d) => e(m).keyword = d),
|
|
2392
2437
|
placeholder: e(a)("placeholder.keyword"),
|
|
2393
2438
|
clearable: "",
|
|
2394
|
-
onKeyup: f[1] || (f[1] = Ve((d) => e(
|
|
2395
|
-
onClear: f[2] || (f[2] = (d) => e(
|
|
2439
|
+
onKeyup: f[1] || (f[1] = Ve((d) => e(i)(), ["enter"])),
|
|
2440
|
+
onClear: f[2] || (f[2] = (d) => e(i)())
|
|
2396
2441
|
}, null, 8, ["modelValue", "placeholder"]), l(e(de), {
|
|
2397
|
-
disabled: e(
|
|
2398
|
-
onSearch: f[3] || (f[3] = (d) => e(
|
|
2442
|
+
disabled: e(k),
|
|
2443
|
+
onSearch: f[3] || (f[3] = (d) => e(i)())
|
|
2399
2444
|
}, null, 8, ["disabled"])]),
|
|
2400
2445
|
_: 1
|
|
2401
2446
|
})]),
|
|
@@ -2403,24 +2448,24 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2403
2448
|
})]),
|
|
2404
2449
|
default: o(() => [l(e(be), {
|
|
2405
2450
|
ref_key: "tableRef",
|
|
2406
|
-
ref:
|
|
2451
|
+
ref: V,
|
|
2407
2452
|
size: "small",
|
|
2408
2453
|
columns: v,
|
|
2409
2454
|
url: e(Ue).urls[e(ye)],
|
|
2410
|
-
"search-param": e(
|
|
2455
|
+
"search-param": e(m),
|
|
2411
2456
|
"auto-search": ""
|
|
2412
|
-
}, null, 8, ["url", "search-param"]), l(
|
|
2457
|
+
}, null, 8, ["url", "search-param"]), l(Ul, {
|
|
2413
2458
|
ref_key: "formModalRef",
|
|
2414
|
-
ref:
|
|
2459
|
+
ref: _,
|
|
2415
2460
|
onRefresh: e(n)
|
|
2416
2461
|
}, null, 8, ["onRefresh"])]),
|
|
2417
2462
|
_: 1
|
|
2418
2463
|
});
|
|
2419
2464
|
};
|
|
2420
2465
|
}
|
|
2421
|
-
}),
|
|
2466
|
+
}), Al = {
|
|
2422
2467
|
check: "check"
|
|
2423
|
-
}, pe =
|
|
2468
|
+
}, pe = Y.routineApi("site", "id", Al), ge = Y.routineApi("domain"), Ie = /* @__PURE__ */ O({
|
|
2424
2469
|
__name: "DomainSelect",
|
|
2425
2470
|
props: {
|
|
2426
2471
|
modelValue: {
|
|
@@ -2437,43 +2482,43 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2437
2482
|
expose: U,
|
|
2438
2483
|
emit: v
|
|
2439
2484
|
}) {
|
|
2440
|
-
const
|
|
2441
|
-
requesting:
|
|
2442
|
-
} =
|
|
2443
|
-
|
|
2444
|
-
options:
|
|
2445
|
-
refresh:
|
|
2485
|
+
const k = v, V = x, {
|
|
2486
|
+
requesting: _
|
|
2487
|
+
} = z(ge), {
|
|
2488
|
+
id: m,
|
|
2489
|
+
options: i,
|
|
2490
|
+
refresh: u,
|
|
2446
2491
|
change: n
|
|
2447
|
-
} = te(
|
|
2492
|
+
} = re(te(V, "modelValue"), k, {
|
|
2448
2493
|
key: "DOMAIN_LIST",
|
|
2449
2494
|
api: ge,
|
|
2450
2495
|
isArray: !0
|
|
2451
2496
|
});
|
|
2452
2497
|
return U({
|
|
2453
|
-
refresh:
|
|
2454
|
-
}), (w,
|
|
2455
|
-
const
|
|
2456
|
-
return M(),
|
|
2457
|
-
modelValue: e(
|
|
2458
|
-
"onUpdate:modelValue":
|
|
2459
|
-
options: e(
|
|
2460
|
-
disabled: x.disabled || e(
|
|
2498
|
+
refresh: u
|
|
2499
|
+
}), (w, s) => {
|
|
2500
|
+
const c = r("el-select-v2");
|
|
2501
|
+
return M(), q(c, {
|
|
2502
|
+
modelValue: e(m),
|
|
2503
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => F(m) ? m.value = f : null),
|
|
2504
|
+
options: e(i),
|
|
2505
|
+
disabled: x.disabled || e(_),
|
|
2461
2506
|
placeholder: e(a)("base.select config.domain"),
|
|
2462
2507
|
onChange: e(n)
|
|
2463
2508
|
}, {
|
|
2464
2509
|
prefix: o(() => [l(e(fe), {
|
|
2465
|
-
loading: e(
|
|
2466
|
-
onRefresh: e(
|
|
2510
|
+
loading: e(_),
|
|
2511
|
+
onRefresh: e(u)
|
|
2467
2512
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
2468
2513
|
_: 1
|
|
2469
2514
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2470
2515
|
};
|
|
2471
2516
|
}
|
|
2472
|
-
}),
|
|
2517
|
+
}), Dl = /* @__PURE__ */ O({
|
|
2473
2518
|
__name: "SiteFormModal",
|
|
2474
2519
|
emits: ["refresh"],
|
|
2475
2520
|
setup(x, { expose: U, emit: v }) {
|
|
2476
|
-
const
|
|
2521
|
+
const k = v, V = {
|
|
2477
2522
|
id: 0,
|
|
2478
2523
|
domain_id: 0,
|
|
2479
2524
|
prefix: "",
|
|
@@ -2483,34 +2528,34 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2483
2528
|
git: "",
|
|
2484
2529
|
status: 1,
|
|
2485
2530
|
remark: ""
|
|
2486
|
-
},
|
|
2531
|
+
}, _ = {
|
|
2487
2532
|
domain_id: [{ required: !0, message: a("placeholder.input config.domain"), trigger: "blur" }],
|
|
2488
2533
|
prefix: [{ required: !0, message: a("placeholder.input base.prefix"), trigger: "blur" }],
|
|
2489
2534
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
2490
2535
|
en_name: [{ required: !0, message: a("placeholder.input base.en_name"), trigger: "blur" }]
|
|
2491
|
-
}, { modal:
|
|
2536
|
+
}, { modal: m, title: i, form: u, formData: n, requesting: w, executing: s, open: c, modify: f, submit: b, closed: D } = ee(k, V, pe);
|
|
2492
2537
|
return U({
|
|
2493
|
-
open:
|
|
2538
|
+
open: c,
|
|
2494
2539
|
modify: f
|
|
2495
2540
|
}), (R, t) => {
|
|
2496
|
-
const d = r("el-form-item"),
|
|
2497
|
-
return M(),
|
|
2498
|
-
modelValue: e(
|
|
2499
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
2500
|
-
title: e(
|
|
2541
|
+
const d = r("el-form-item"), p = r("el-input"), S = r("el-form");
|
|
2542
|
+
return M(), q(e(oe), {
|
|
2543
|
+
modelValue: e(m),
|
|
2544
|
+
"onUpdate:modelValue": t[7] || (t[7] = (g) => F(m) ? m.value = g : null),
|
|
2545
|
+
title: e(i)("config.site"),
|
|
2501
2546
|
width: "600px",
|
|
2502
|
-
executing: e(
|
|
2547
|
+
executing: e(s),
|
|
2503
2548
|
onClosed: e(D),
|
|
2504
|
-
onSubmit: e(
|
|
2549
|
+
onSubmit: e(b)
|
|
2505
2550
|
}, {
|
|
2506
2551
|
default: o(() => [
|
|
2507
2552
|
l(S, {
|
|
2508
2553
|
ref_key: "form",
|
|
2509
|
-
ref:
|
|
2554
|
+
ref: u,
|
|
2510
2555
|
model: e(n),
|
|
2511
2556
|
"label-width": "auto",
|
|
2512
|
-
rules:
|
|
2513
|
-
disabled: e(w) || e(
|
|
2557
|
+
rules: _,
|
|
2558
|
+
disabled: e(w) || e(s)
|
|
2514
2559
|
}, {
|
|
2515
2560
|
default: o(() => [
|
|
2516
2561
|
l(d, {
|
|
@@ -2520,8 +2565,8 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2520
2565
|
default: o(() => [
|
|
2521
2566
|
l(Ie, {
|
|
2522
2567
|
modelValue: e(n).domain_id,
|
|
2523
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2524
|
-
disabled: e(
|
|
2568
|
+
"onUpdate:modelValue": t[0] || (t[0] = (g) => e(n).domain_id = g),
|
|
2569
|
+
disabled: e(s)
|
|
2525
2570
|
}, null, 8, ["modelValue", "disabled"])
|
|
2526
2571
|
]),
|
|
2527
2572
|
_: 1
|
|
@@ -2531,10 +2576,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2531
2576
|
label: e(a)("config.prefix")
|
|
2532
2577
|
}, {
|
|
2533
2578
|
default: o(() => [
|
|
2534
|
-
l(
|
|
2579
|
+
l(p, {
|
|
2535
2580
|
modelValue: e(n).prefix,
|
|
2536
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
2537
|
-
disabled: e(
|
|
2581
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => e(n).prefix = g),
|
|
2582
|
+
disabled: e(s),
|
|
2538
2583
|
placeholder: e(a)("placeholder.input")
|
|
2539
2584
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2540
2585
|
]),
|
|
@@ -2545,10 +2590,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2545
2590
|
label: e(a)("base.name")
|
|
2546
2591
|
}, {
|
|
2547
2592
|
default: o(() => [
|
|
2548
|
-
l(
|
|
2593
|
+
l(p, {
|
|
2549
2594
|
modelValue: e(n).name,
|
|
2550
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
2551
|
-
disabled: e(
|
|
2595
|
+
"onUpdate:modelValue": t[2] || (t[2] = (g) => e(n).name = g),
|
|
2596
|
+
disabled: e(s),
|
|
2552
2597
|
placeholder: e(a)("placeholder.input")
|
|
2553
2598
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2554
2599
|
]),
|
|
@@ -2559,10 +2604,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2559
2604
|
label: e(a)("base.en_name")
|
|
2560
2605
|
}, {
|
|
2561
2606
|
default: o(() => [
|
|
2562
|
-
l(
|
|
2607
|
+
l(p, {
|
|
2563
2608
|
modelValue: e(n).en_name,
|
|
2564
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
2565
|
-
disabled: e(
|
|
2609
|
+
"onUpdate:modelValue": t[3] || (t[3] = (g) => e(n).en_name = g),
|
|
2610
|
+
disabled: e(s),
|
|
2566
2611
|
placeholder: e(a)("placeholder.input")
|
|
2567
2612
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2568
2613
|
]),
|
|
@@ -2573,10 +2618,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2573
2618
|
label: e(a)("config.dns")
|
|
2574
2619
|
}, {
|
|
2575
2620
|
default: o(() => [
|
|
2576
|
-
l(
|
|
2621
|
+
l(p, {
|
|
2577
2622
|
modelValue: e(n).dns,
|
|
2578
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
2579
|
-
disabled: e(
|
|
2623
|
+
"onUpdate:modelValue": t[4] || (t[4] = (g) => e(n).dns = g),
|
|
2624
|
+
disabled: e(s),
|
|
2580
2625
|
placeholder: e(a)("placeholder.input")
|
|
2581
2626
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2582
2627
|
]),
|
|
@@ -2587,10 +2632,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2587
2632
|
label: e(a)("config.git")
|
|
2588
2633
|
}, {
|
|
2589
2634
|
default: o(() => [
|
|
2590
|
-
l(
|
|
2635
|
+
l(p, {
|
|
2591
2636
|
modelValue: e(n).git,
|
|
2592
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
2593
|
-
disabled: e(
|
|
2637
|
+
"onUpdate:modelValue": t[5] || (t[5] = (g) => e(n).git = g),
|
|
2638
|
+
disabled: e(s),
|
|
2594
2639
|
placeholder: e(a)("placeholder.input")
|
|
2595
2640
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2596
2641
|
]),
|
|
@@ -2601,10 +2646,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2601
2646
|
label: e(a)("base.remark")
|
|
2602
2647
|
}, {
|
|
2603
2648
|
default: o(() => [
|
|
2604
|
-
l(
|
|
2649
|
+
l(p, {
|
|
2605
2650
|
modelValue: e(n).remark,
|
|
2606
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
2607
|
-
disabled: e(
|
|
2651
|
+
"onUpdate:modelValue": t[6] || (t[6] = (g) => e(n).remark = g),
|
|
2652
|
+
disabled: e(s),
|
|
2608
2653
|
placeholder: e(a)("placeholder.input")
|
|
2609
2654
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2610
2655
|
]),
|
|
@@ -2618,7 +2663,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2618
2663
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2619
2664
|
};
|
|
2620
2665
|
}
|
|
2621
|
-
}), he =
|
|
2666
|
+
}), he = Y.routineApi("domain_provider"), Sl = /* @__PURE__ */ O({
|
|
2622
2667
|
__name: "DomainProviderSelect",
|
|
2623
2668
|
props: {
|
|
2624
2669
|
modelValue: {
|
|
@@ -2635,75 +2680,75 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2635
2680
|
expose: U,
|
|
2636
2681
|
emit: v
|
|
2637
2682
|
}) {
|
|
2638
|
-
const
|
|
2639
|
-
requesting:
|
|
2640
|
-
} =
|
|
2641
|
-
|
|
2642
|
-
options:
|
|
2643
|
-
refresh:
|
|
2683
|
+
const k = v, V = x, {
|
|
2684
|
+
requesting: _
|
|
2685
|
+
} = z(he), {
|
|
2686
|
+
id: m,
|
|
2687
|
+
options: i,
|
|
2688
|
+
refresh: u,
|
|
2644
2689
|
change: n
|
|
2645
|
-
} = te(
|
|
2690
|
+
} = re(te(V, "modelValue"), k, {
|
|
2646
2691
|
key: "DOMAIN_PROVIDER_LIST",
|
|
2647
2692
|
api: he,
|
|
2648
2693
|
isArray: !0
|
|
2649
2694
|
});
|
|
2650
2695
|
return U({
|
|
2651
|
-
refresh:
|
|
2652
|
-
}), (w,
|
|
2653
|
-
const
|
|
2654
|
-
return M(),
|
|
2655
|
-
modelValue: e(
|
|
2656
|
-
"onUpdate:modelValue":
|
|
2657
|
-
options: e(
|
|
2658
|
-
disabled: x.disabled || e(
|
|
2696
|
+
refresh: u
|
|
2697
|
+
}), (w, s) => {
|
|
2698
|
+
const c = r("el-select-v2");
|
|
2699
|
+
return M(), q(c, {
|
|
2700
|
+
modelValue: e(m),
|
|
2701
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => F(m) ? m.value = f : null),
|
|
2702
|
+
options: e(i),
|
|
2703
|
+
disabled: x.disabled || e(_),
|
|
2659
2704
|
placeholder: e(a)("base.select config.domain config.provider"),
|
|
2660
2705
|
onChange: e(n)
|
|
2661
2706
|
}, {
|
|
2662
2707
|
prefix: o(() => [l(e(fe), {
|
|
2663
|
-
loading: e(
|
|
2664
|
-
onRefresh: e(
|
|
2708
|
+
loading: e(_),
|
|
2709
|
+
onRefresh: e(u)
|
|
2665
2710
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
2666
2711
|
_: 1
|
|
2667
2712
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2668
2713
|
};
|
|
2669
2714
|
}
|
|
2670
|
-
}),
|
|
2715
|
+
}), Ml = /* @__PURE__ */ O({
|
|
2671
2716
|
__name: "DomainFormModal",
|
|
2672
2717
|
emits: ["refresh"],
|
|
2673
2718
|
setup(x, { expose: U, emit: v }) {
|
|
2674
|
-
const
|
|
2719
|
+
const k = v, V = {
|
|
2675
2720
|
id: 0,
|
|
2676
2721
|
provider_id: 0,
|
|
2677
2722
|
name: "",
|
|
2678
2723
|
expired_at: "",
|
|
2679
2724
|
status: 1,
|
|
2680
2725
|
remark: ""
|
|
2681
|
-
},
|
|
2726
|
+
}, _ = {
|
|
2682
2727
|
provider_id: [{ required: !0, message: a("placeholder.input config.domain config.provider"), trigger: "blur" }],
|
|
2683
2728
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }]
|
|
2684
|
-
}, { modal:
|
|
2729
|
+
}, { modal: m, title: i, form: u, formData: n, requesting: w, executing: s, open: c, modify: f, submit: b, closed: D } = ee(k, V, ge);
|
|
2685
2730
|
return U({
|
|
2686
|
-
open:
|
|
2731
|
+
open: c,
|
|
2687
2732
|
modify: f
|
|
2688
2733
|
}), (R, t) => {
|
|
2689
|
-
const d = r("el-form-item"),
|
|
2690
|
-
return M(),
|
|
2691
|
-
modelValue: e(
|
|
2692
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
2693
|
-
title: e(
|
|
2734
|
+
const d = r("el-form-item"), p = r("el-input"), S = r("el-date-picker"), g = r("el-form");
|
|
2735
|
+
return M(), q(e(oe), {
|
|
2736
|
+
modelValue: e(m),
|
|
2737
|
+
"onUpdate:modelValue": t[4] || (t[4] = (y) => F(m) ? m.value = y : null),
|
|
2738
|
+
title: e(i)("config.domain"),
|
|
2694
2739
|
width: "600px",
|
|
2695
|
-
executing: e(
|
|
2740
|
+
executing: e(s),
|
|
2696
2741
|
onClosed: e(D),
|
|
2697
|
-
onSubmit: e(
|
|
2742
|
+
onSubmit: e(b)
|
|
2698
2743
|
}, {
|
|
2699
2744
|
default: o(() => [
|
|
2700
|
-
l(
|
|
2745
|
+
l(g, {
|
|
2701
2746
|
ref_key: "form",
|
|
2702
|
-
ref:
|
|
2747
|
+
ref: u,
|
|
2703
2748
|
model: e(n),
|
|
2704
2749
|
"label-width": "auto",
|
|
2705
|
-
rules:
|
|
2706
|
-
disabled: e(w) || e(
|
|
2750
|
+
rules: _,
|
|
2751
|
+
disabled: e(w) || e(s)
|
|
2707
2752
|
}, {
|
|
2708
2753
|
default: o(() => [
|
|
2709
2754
|
l(d, {
|
|
@@ -2711,10 +2756,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2711
2756
|
label: e(a)("config.provider")
|
|
2712
2757
|
}, {
|
|
2713
2758
|
default: o(() => [
|
|
2714
|
-
l(
|
|
2759
|
+
l(Sl, {
|
|
2715
2760
|
modelValue: e(n).provider_id,
|
|
2716
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2717
|
-
disabled: e(
|
|
2761
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => e(n).provider_id = y),
|
|
2762
|
+
disabled: e(s)
|
|
2718
2763
|
}, null, 8, ["modelValue", "disabled"])
|
|
2719
2764
|
]),
|
|
2720
2765
|
_: 1
|
|
@@ -2724,10 +2769,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2724
2769
|
label: e(a)("base.name")
|
|
2725
2770
|
}, {
|
|
2726
2771
|
default: o(() => [
|
|
2727
|
-
l(
|
|
2772
|
+
l(p, {
|
|
2728
2773
|
modelValue: e(n).name,
|
|
2729
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
2730
|
-
disabled: e(
|
|
2774
|
+
"onUpdate:modelValue": t[1] || (t[1] = (y) => e(n).name = y),
|
|
2775
|
+
disabled: e(s),
|
|
2731
2776
|
placeholder: e(a)("placeholder.input")
|
|
2732
2777
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2733
2778
|
]),
|
|
@@ -2743,10 +2788,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2743
2788
|
type: "date",
|
|
2744
2789
|
style: { width: "100%" },
|
|
2745
2790
|
modelValue: e(n).expired_at,
|
|
2746
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
2747
|
-
disabled: e(
|
|
2748
|
-
"value-format": e(
|
|
2749
|
-
format: e(
|
|
2791
|
+
"onUpdate:modelValue": t[2] || (t[2] = (y) => e(n).expired_at = y),
|
|
2792
|
+
disabled: e(s),
|
|
2793
|
+
"value-format": e(E).DATE_VALUE_FORMAT,
|
|
2794
|
+
format: e(E).DATE_FORMAT,
|
|
2750
2795
|
placeholder: e(a)("placeholder.select")
|
|
2751
2796
|
}, null, 8, ["modelValue", "disabled", "value-format", "format", "placeholder"])
|
|
2752
2797
|
]),
|
|
@@ -2757,10 +2802,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2757
2802
|
label: e(a)("base.remark")
|
|
2758
2803
|
}, {
|
|
2759
2804
|
default: o(() => [
|
|
2760
|
-
l(
|
|
2805
|
+
l(p, {
|
|
2761
2806
|
modelValue: e(n).remark,
|
|
2762
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
2763
|
-
disabled: e(
|
|
2807
|
+
"onUpdate:modelValue": t[3] || (t[3] = (y) => e(n).remark = y),
|
|
2808
|
+
disabled: e(s),
|
|
2764
2809
|
placeholder: e(a)("placeholder.input")
|
|
2765
2810
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2766
2811
|
]),
|
|
@@ -2774,363 +2819,129 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2774
2819
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2775
2820
|
};
|
|
2776
2821
|
}
|
|
2777
|
-
}),
|
|
2778
|
-
|
|
2779
|
-
}, me = W.routineApi("SSL", "id", Ml), Cl = /* @__PURE__ */ O({
|
|
2780
|
-
__name: "SiteSelect",
|
|
2781
|
-
props: {
|
|
2782
|
-
modelValue: {
|
|
2783
|
-
type: Number,
|
|
2784
|
-
required: !0
|
|
2785
|
-
},
|
|
2786
|
-
disabled: {
|
|
2787
|
-
type: Boolean,
|
|
2788
|
-
default: !1
|
|
2789
|
-
}
|
|
2790
|
-
},
|
|
2791
|
-
emits: ["update:modelValue", "change"],
|
|
2792
|
-
setup(x, {
|
|
2793
|
-
expose: U,
|
|
2794
|
-
emit: v
|
|
2795
|
-
}) {
|
|
2796
|
-
const h = v, g = x, {
|
|
2797
|
-
requesting: b
|
|
2798
|
-
} = F(pe), {
|
|
2799
|
-
key: c,
|
|
2800
|
-
options: p,
|
|
2801
|
-
refresh: i,
|
|
2802
|
-
change: n
|
|
2803
|
-
} = te(ne(g, "modelValue"), h, {
|
|
2804
|
-
key: "SITE_LIST",
|
|
2805
|
-
api: pe,
|
|
2806
|
-
isArray: !0
|
|
2807
|
-
}, {
|
|
2808
|
-
formatOptions: (w) => w.map((u) => ({
|
|
2809
|
-
...u,
|
|
2810
|
-
label: u.prefix + "." + u.domain?.name,
|
|
2811
|
-
value: u.id
|
|
2812
|
-
}))
|
|
2813
|
-
});
|
|
2814
|
-
return U({
|
|
2815
|
-
refresh: i
|
|
2816
|
-
}), (w, u) => {
|
|
2817
|
-
const m = r("el-select-v2");
|
|
2818
|
-
return M(), T(m, {
|
|
2819
|
-
modelValue: e(c),
|
|
2820
|
-
"onUpdate:modelValue": u[0] || (u[0] = (f) => E(c) ? c.value = f : null),
|
|
2821
|
-
options: e(p),
|
|
2822
|
-
disabled: x.disabled || e(b),
|
|
2823
|
-
placeholder: e(a)("base.select config.domain"),
|
|
2824
|
-
onChange: e(n)
|
|
2825
|
-
}, {
|
|
2826
|
-
prefix: o(() => [l(e(fe), {
|
|
2827
|
-
loading: e(b),
|
|
2828
|
-
onRefresh: e(i)
|
|
2829
|
-
}, null, 8, ["loading", "onRefresh"])]),
|
|
2830
|
-
_: 1
|
|
2831
|
-
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2832
|
-
};
|
|
2833
|
-
}
|
|
2834
|
-
}), Ne = /* @__PURE__ */ O({
|
|
2835
|
-
__name: "SSLFormModal",
|
|
2822
|
+
}), Cl = /* @__PURE__ */ O({
|
|
2823
|
+
__name: "DomainProviderFormModal",
|
|
2836
2824
|
emits: ["refresh"],
|
|
2837
2825
|
setup(x, { expose: U, emit: v }) {
|
|
2838
|
-
const
|
|
2826
|
+
const k = v, V = {
|
|
2839
2827
|
id: 0,
|
|
2840
|
-
domain_id: void 0,
|
|
2841
|
-
client: "Lego",
|
|
2842
|
-
site_id: void 0,
|
|
2843
2828
|
name: "",
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2829
|
+
en_name: "",
|
|
2830
|
+
key: "",
|
|
2831
|
+
secret: "",
|
|
2832
|
+
end_point: "",
|
|
2833
|
+
status: 1,
|
|
2847
2834
|
remark: ""
|
|
2848
|
-
},
|
|
2849
|
-
domain_id: [{ required: !0, message: a("placeholder.select config.domain "), trigger: "blur" }],
|
|
2850
|
-
client: [{ required: !0, message: a("placeholder.select config.client "), trigger: "blur" }],
|
|
2835
|
+
}, _ = {
|
|
2851
2836
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2837
|
+
en_name: { required: !0, message: a("placeholder.input base.en_name"), trigger: "blur" },
|
|
2838
|
+
key: { required: !0, message: a("placeholder.input base.key"), trigger: "blur" },
|
|
2839
|
+
secret: { required: !0, message: a("placeholder.input config.secret"), trigger: "blur" },
|
|
2840
|
+
end_point: { required: !0, message: a("placeholder.input config.endpoint"), trigger: "blur" }
|
|
2841
|
+
}, { modal: m, title: i, form: u, formData: n, requesting: w, executing: s, open: c, modify: f, submit: b, closed: D } = ee(k, V, he);
|
|
2856
2842
|
return U({
|
|
2857
|
-
open:
|
|
2858
|
-
modify: f
|
|
2859
|
-
formData: n
|
|
2843
|
+
open: c,
|
|
2844
|
+
modify: f
|
|
2860
2845
|
}), (R, t) => {
|
|
2861
|
-
const d = r("el-
|
|
2862
|
-
return M(),
|
|
2863
|
-
modelValue: e(
|
|
2864
|
-
"onUpdate:modelValue": t[
|
|
2865
|
-
title: e(
|
|
2846
|
+
const d = r("el-input"), p = r("el-form-item"), S = r("el-form");
|
|
2847
|
+
return M(), q(e(oe), {
|
|
2848
|
+
modelValue: e(m),
|
|
2849
|
+
"onUpdate:modelValue": t[6] || (t[6] = (g) => F(m) ? m.value = g : null),
|
|
2850
|
+
title: e(i)("config.domain"),
|
|
2866
2851
|
width: "600px",
|
|
2867
|
-
executing: e(
|
|
2852
|
+
executing: e(s),
|
|
2868
2853
|
onClosed: e(D),
|
|
2869
|
-
onSubmit: e(
|
|
2854
|
+
onSubmit: e(b)
|
|
2870
2855
|
}, {
|
|
2871
2856
|
default: o(() => [
|
|
2872
|
-
l(
|
|
2857
|
+
l(S, {
|
|
2873
2858
|
ref_key: "form",
|
|
2874
|
-
ref:
|
|
2859
|
+
ref: u,
|
|
2875
2860
|
model: e(n),
|
|
2876
2861
|
"label-width": "auto",
|
|
2877
|
-
rules:
|
|
2878
|
-
disabled: e(w) || e(
|
|
2862
|
+
rules: _,
|
|
2863
|
+
disabled: e(w) || e(s)
|
|
2879
2864
|
}, {
|
|
2880
2865
|
default: o(() => [
|
|
2881
|
-
l(
|
|
2882
|
-
prop: "
|
|
2883
|
-
label: e(a)("
|
|
2884
|
-
}, {
|
|
2885
|
-
default: o(() => [
|
|
2886
|
-
l(Ie, {
|
|
2887
|
-
modelValue: e(n).domain_id,
|
|
2888
|
-
"onUpdate:modelValue": t[0] || (t[0] = (V) => e(n).domain_id = V),
|
|
2889
|
-
disabled: e(u)
|
|
2890
|
-
}, null, 8, ["modelValue", "disabled"])
|
|
2891
|
-
]),
|
|
2892
|
-
_: 1
|
|
2893
|
-
}, 8, ["label"]),
|
|
2894
|
-
l(d, {
|
|
2895
|
-
prop: "client",
|
|
2896
|
-
label: e(a)("ssl.client")
|
|
2897
|
-
}, {
|
|
2898
|
-
default: o(() => [
|
|
2899
|
-
l(S, {
|
|
2900
|
-
modelValue: e(n).client,
|
|
2901
|
-
"onUpdate:modelValue": t[1] || (t[1] = (V) => e(n).client = V)
|
|
2902
|
-
}, {
|
|
2903
|
-
default: o(() => [
|
|
2904
|
-
l(s, {
|
|
2905
|
-
label: "Lego",
|
|
2906
|
-
value: "Lego"
|
|
2907
|
-
})
|
|
2908
|
-
]),
|
|
2909
|
-
_: 1
|
|
2910
|
-
}, 8, ["modelValue"])
|
|
2911
|
-
]),
|
|
2912
|
-
_: 1
|
|
2913
|
-
}, 8, ["label"]),
|
|
2914
|
-
l(d, {
|
|
2915
|
-
prop: "site_id",
|
|
2916
|
-
label: e(a)("config.site")
|
|
2917
|
-
}, {
|
|
2918
|
-
default: o(() => [
|
|
2919
|
-
l(Cl, {
|
|
2920
|
-
modelValue: e(n).site_id,
|
|
2921
|
-
"onUpdate:modelValue": t[2] || (t[2] = (V) => e(n).site_id = V),
|
|
2922
|
-
disabled: e(u)
|
|
2923
|
-
}, null, 8, ["modelValue", "disabled"])
|
|
2924
|
-
]),
|
|
2925
|
-
_: 1
|
|
2926
|
-
}, 8, ["label"]),
|
|
2927
|
-
l(d, {
|
|
2928
|
-
prop: "name",
|
|
2929
|
-
label: e(a)("base.name")
|
|
2930
|
-
}, {
|
|
2931
|
-
default: o(() => [
|
|
2932
|
-
l(k, {
|
|
2933
|
-
modelValue: e(n).name,
|
|
2934
|
-
"onUpdate:modelValue": t[3] || (t[3] = (V) => e(n).name = V),
|
|
2935
|
-
disabled: e(u),
|
|
2936
|
-
placeholder: e(a)("placeholder.input")
|
|
2937
|
-
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2938
|
-
]),
|
|
2939
|
-
_: 1
|
|
2940
|
-
}, 8, ["label"]),
|
|
2941
|
-
l(d, {
|
|
2942
|
-
prop: "path",
|
|
2943
|
-
label: e(a)("base.path")
|
|
2944
|
-
}, {
|
|
2945
|
-
default: o(() => [
|
|
2946
|
-
l(k, {
|
|
2947
|
-
modelValue: e(n).path,
|
|
2948
|
-
"onUpdate:modelValue": t[4] || (t[4] = (V) => e(n).path = V),
|
|
2949
|
-
disabled: e(u),
|
|
2950
|
-
placeholder: e(a)("placeholder.input")
|
|
2951
|
-
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2952
|
-
]),
|
|
2953
|
-
_: 1
|
|
2954
|
-
}, 8, ["label"]),
|
|
2955
|
-
l(d, {
|
|
2956
|
-
prop: "email",
|
|
2957
|
-
label: e(a)("base.email")
|
|
2958
|
-
}, {
|
|
2959
|
-
default: o(() => [
|
|
2960
|
-
l(k, {
|
|
2961
|
-
modelValue: e(n).email,
|
|
2962
|
-
"onUpdate:modelValue": t[5] || (t[5] = (V) => e(n).email = V),
|
|
2963
|
-
disabled: e(u),
|
|
2964
|
-
placeholder: e(a)("placeholder.input")
|
|
2965
|
-
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2966
|
-
]),
|
|
2967
|
-
_: 1
|
|
2968
|
-
}, 8, ["label"]),
|
|
2969
|
-
l(d, {
|
|
2970
|
-
prop: "encryption",
|
|
2971
|
-
label: e(a)("config.encryption")
|
|
2972
|
-
}, {
|
|
2973
|
-
default: o(() => [
|
|
2974
|
-
l(S, {
|
|
2975
|
-
modelValue: e(n).encryption,
|
|
2976
|
-
"onUpdate:modelValue": t[6] || (t[6] = (V) => e(n).encryption = V)
|
|
2977
|
-
}, {
|
|
2978
|
-
default: o(() => [
|
|
2979
|
-
l(s, {
|
|
2980
|
-
label: "RSA2048",
|
|
2981
|
-
value: "RSA2048"
|
|
2982
|
-
})
|
|
2983
|
-
]),
|
|
2984
|
-
_: 1
|
|
2985
|
-
}, 8, ["modelValue"])
|
|
2986
|
-
]),
|
|
2987
|
-
_: 1
|
|
2988
|
-
}, 8, ["label"]),
|
|
2989
|
-
l(d, {
|
|
2990
|
-
prop: "remark",
|
|
2991
|
-
label: e(a)("base.remark")
|
|
2992
|
-
}, {
|
|
2993
|
-
default: o(() => [
|
|
2994
|
-
l(k, {
|
|
2995
|
-
modelValue: e(n).remark,
|
|
2996
|
-
"onUpdate:modelValue": t[7] || (t[7] = (V) => e(n).remark = V),
|
|
2997
|
-
disabled: e(u),
|
|
2998
|
-
placeholder: e(a)("placeholder.input")
|
|
2999
|
-
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3000
|
-
]),
|
|
3001
|
-
_: 1
|
|
3002
|
-
}, 8, ["label"])
|
|
3003
|
-
]),
|
|
3004
|
-
_: 1
|
|
3005
|
-
}, 8, ["model", "disabled"])
|
|
3006
|
-
]),
|
|
3007
|
-
_: 1
|
|
3008
|
-
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
3009
|
-
};
|
|
3010
|
-
}
|
|
3011
|
-
}), Ll = /* @__PURE__ */ O({
|
|
3012
|
-
__name: "DomainProviderFormModal",
|
|
3013
|
-
emits: ["refresh"],
|
|
3014
|
-
setup(x, { expose: U, emit: v }) {
|
|
3015
|
-
const h = v, g = {
|
|
3016
|
-
id: 0,
|
|
3017
|
-
name: "",
|
|
3018
|
-
en_name: "",
|
|
3019
|
-
key: "",
|
|
3020
|
-
secret: "",
|
|
3021
|
-
end_point: "",
|
|
3022
|
-
status: 1,
|
|
3023
|
-
remark: ""
|
|
3024
|
-
}, b = {
|
|
3025
|
-
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
3026
|
-
en_name: { required: !0, message: a("placeholder.input base.en_name"), trigger: "blur" },
|
|
3027
|
-
key: { required: !0, message: a("placeholder.input base.key"), trigger: "blur" },
|
|
3028
|
-
secret: { required: !0, message: a("placeholder.input config.secret"), trigger: "blur" },
|
|
3029
|
-
end_point: { required: !0, message: a("placeholder.input config.endpoint"), trigger: "blur" }
|
|
3030
|
-
}, { modal: c, title: p, form: i, formData: n, requesting: w, executing: u, open: m, modify: f, submit: _, closed: D } = Z(h, g, he);
|
|
3031
|
-
return U({
|
|
3032
|
-
open: m,
|
|
3033
|
-
modify: f
|
|
3034
|
-
}), (R, t) => {
|
|
3035
|
-
const d = r("el-input"), s = r("el-form-item"), S = r("el-form");
|
|
3036
|
-
return M(), T(e(ae), {
|
|
3037
|
-
modelValue: e(c),
|
|
3038
|
-
"onUpdate:modelValue": t[6] || (t[6] = (k) => E(c) ? c.value = k : null),
|
|
3039
|
-
title: e(p)("config.domain"),
|
|
3040
|
-
width: "600px",
|
|
3041
|
-
executing: e(u),
|
|
3042
|
-
onClosed: e(D),
|
|
3043
|
-
onSubmit: e(_)
|
|
3044
|
-
}, {
|
|
3045
|
-
default: o(() => [
|
|
3046
|
-
l(S, {
|
|
3047
|
-
ref_key: "form",
|
|
3048
|
-
ref: i,
|
|
3049
|
-
model: e(n),
|
|
3050
|
-
"label-width": "auto",
|
|
3051
|
-
rules: b,
|
|
3052
|
-
disabled: e(w) || e(u)
|
|
3053
|
-
}, {
|
|
3054
|
-
default: o(() => [
|
|
3055
|
-
l(s, {
|
|
3056
|
-
prop: "name",
|
|
3057
|
-
label: e(a)("base.name")
|
|
2866
|
+
l(p, {
|
|
2867
|
+
prop: "name",
|
|
2868
|
+
label: e(a)("base.name")
|
|
3058
2869
|
}, {
|
|
3059
2870
|
default: o(() => [
|
|
3060
2871
|
l(d, {
|
|
3061
2872
|
modelValue: e(n).name,
|
|
3062
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3063
|
-
disabled: e(
|
|
2873
|
+
"onUpdate:modelValue": t[0] || (t[0] = (g) => e(n).name = g),
|
|
2874
|
+
disabled: e(s),
|
|
3064
2875
|
placeholder: e(a)("placeholder.input")
|
|
3065
2876
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3066
2877
|
]),
|
|
3067
2878
|
_: 1
|
|
3068
2879
|
}, 8, ["label"]),
|
|
3069
|
-
l(
|
|
2880
|
+
l(p, {
|
|
3070
2881
|
prop: "en_name",
|
|
3071
2882
|
label: e(a)("base.en_name")
|
|
3072
2883
|
}, {
|
|
3073
2884
|
default: o(() => [
|
|
3074
2885
|
l(d, {
|
|
3075
2886
|
modelValue: e(n).en_name,
|
|
3076
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3077
|
-
disabled: e(
|
|
2887
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => e(n).en_name = g),
|
|
2888
|
+
disabled: e(s),
|
|
3078
2889
|
placeholder: e(a)("placeholder.input")
|
|
3079
2890
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3080
2891
|
]),
|
|
3081
2892
|
_: 1
|
|
3082
2893
|
}, 8, ["label"]),
|
|
3083
|
-
l(
|
|
2894
|
+
l(p, {
|
|
3084
2895
|
prop: "key",
|
|
3085
2896
|
label: e(a)("base.key")
|
|
3086
2897
|
}, {
|
|
3087
2898
|
default: o(() => [
|
|
3088
2899
|
l(d, {
|
|
3089
2900
|
modelValue: e(n).key,
|
|
3090
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
3091
|
-
disabled: e(
|
|
2901
|
+
"onUpdate:modelValue": t[2] || (t[2] = (g) => e(n).key = g),
|
|
2902
|
+
disabled: e(s),
|
|
3092
2903
|
placeholder: e(a)("placeholder.input")
|
|
3093
2904
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3094
2905
|
]),
|
|
3095
2906
|
_: 1
|
|
3096
2907
|
}, 8, ["label"]),
|
|
3097
|
-
l(
|
|
2908
|
+
l(p, {
|
|
3098
2909
|
prop: "secret",
|
|
3099
2910
|
label: e(a)("config.secret")
|
|
3100
2911
|
}, {
|
|
3101
2912
|
default: o(() => [
|
|
3102
2913
|
l(d, {
|
|
3103
2914
|
modelValue: e(n).secret,
|
|
3104
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
3105
|
-
disabled: e(
|
|
2915
|
+
"onUpdate:modelValue": t[3] || (t[3] = (g) => e(n).secret = g),
|
|
2916
|
+
disabled: e(s),
|
|
3106
2917
|
placeholder: e(a)("placeholder.input")
|
|
3107
2918
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3108
2919
|
]),
|
|
3109
2920
|
_: 1
|
|
3110
2921
|
}, 8, ["label"]),
|
|
3111
|
-
l(
|
|
2922
|
+
l(p, {
|
|
3112
2923
|
prop: "end_point",
|
|
3113
2924
|
label: e(a)("config.end_point")
|
|
3114
2925
|
}, {
|
|
3115
2926
|
default: o(() => [
|
|
3116
2927
|
l(d, {
|
|
3117
2928
|
modelValue: e(n).end_point,
|
|
3118
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
3119
|
-
disabled: e(
|
|
2929
|
+
"onUpdate:modelValue": t[4] || (t[4] = (g) => e(n).end_point = g),
|
|
2930
|
+
disabled: e(s),
|
|
3120
2931
|
placeholder: e(a)("placeholder.input")
|
|
3121
2932
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3122
2933
|
]),
|
|
3123
2934
|
_: 1
|
|
3124
2935
|
}, 8, ["label"]),
|
|
3125
|
-
l(
|
|
2936
|
+
l(p, {
|
|
3126
2937
|
prop: "remark",
|
|
3127
2938
|
label: e(a)("base.remark")
|
|
3128
2939
|
}, {
|
|
3129
2940
|
default: o(() => [
|
|
3130
2941
|
l(d, {
|
|
3131
2942
|
modelValue: e(n).remark,
|
|
3132
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
3133
|
-
disabled: e(
|
|
2943
|
+
"onUpdate:modelValue": t[5] || (t[5] = (g) => e(n).remark = g),
|
|
2944
|
+
disabled: e(s),
|
|
3134
2945
|
placeholder: e(a)("placeholder.input")
|
|
3135
2946
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3136
2947
|
]),
|
|
@@ -3144,20 +2955,20 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3144
2955
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
3145
2956
|
};
|
|
3146
2957
|
}
|
|
3147
|
-
}),
|
|
2958
|
+
}), Ll = /* @__PURE__ */ O({
|
|
3148
2959
|
__name: "DomainProviderTableDrawer",
|
|
3149
2960
|
setup(x, {
|
|
3150
2961
|
expose: U
|
|
3151
2962
|
}) {
|
|
3152
2963
|
const {
|
|
3153
2964
|
requesting: v
|
|
3154
|
-
} =
|
|
3155
|
-
tableRef:
|
|
3156
|
-
formModalRef:
|
|
3157
|
-
refresh:
|
|
3158
|
-
openFormModal:
|
|
3159
|
-
editFormModal:
|
|
3160
|
-
} =
|
|
2965
|
+
} = z(he), k = H(!1), {
|
|
2966
|
+
tableRef: V,
|
|
2967
|
+
formModalRef: _,
|
|
2968
|
+
refresh: m,
|
|
2969
|
+
openFormModal: i,
|
|
2970
|
+
editFormModal: u
|
|
2971
|
+
} = J({}), n = [{
|
|
3161
2972
|
prop: "name",
|
|
3162
2973
|
label: a("base.name"),
|
|
3163
2974
|
width: 0,
|
|
@@ -3172,26 +2983,26 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3172
2983
|
width: 60,
|
|
3173
2984
|
align: "center",
|
|
3174
2985
|
render: ({
|
|
3175
|
-
rowData:
|
|
2986
|
+
rowData: s
|
|
3176
2987
|
}) => l(r("el-space"), null, {
|
|
3177
|
-
default: () => [l(
|
|
2988
|
+
default: () => [l(ne, {
|
|
3178
2989
|
icon: "icon-edit",
|
|
3179
2990
|
t: "",
|
|
3180
|
-
onModify: () =>
|
|
3181
|
-
id:
|
|
2991
|
+
onModify: () => u({
|
|
2992
|
+
id: s.id
|
|
3182
2993
|
})
|
|
3183
2994
|
}, null)]
|
|
3184
2995
|
})
|
|
3185
2996
|
}];
|
|
3186
2997
|
return U({
|
|
3187
2998
|
open: () => {
|
|
3188
|
-
|
|
2999
|
+
k.value = !0;
|
|
3189
3000
|
}
|
|
3190
|
-
}), (
|
|
3001
|
+
}), (s, c) => {
|
|
3191
3002
|
const f = r("el-page-header");
|
|
3192
|
-
return M(),
|
|
3193
|
-
modelValue:
|
|
3194
|
-
"onUpdate:modelValue":
|
|
3003
|
+
return M(), q(e(_e), {
|
|
3004
|
+
modelValue: k.value,
|
|
3005
|
+
"onUpdate:modelValue": c[0] || (c[0] = (b) => k.value = b),
|
|
3195
3006
|
width: "400px",
|
|
3196
3007
|
"show-close": !1,
|
|
3197
3008
|
class: "basic-drawer"
|
|
@@ -3199,60 +3010,294 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3199
3010
|
title: o(() => [l(f, {
|
|
3200
3011
|
icon: ""
|
|
3201
3012
|
}, {
|
|
3202
|
-
title: o(() => [
|
|
3013
|
+
title: o(() => [j("span", null, I(e(a)("config.domain config.provider")), 1)]),
|
|
3203
3014
|
content: o(() => [l(e(K), {
|
|
3204
|
-
onRefresh: e(
|
|
3015
|
+
onRefresh: e(m),
|
|
3205
3016
|
size: "default",
|
|
3206
3017
|
loading: e(v)
|
|
3207
3018
|
}, null, 8, ["onRefresh", "loading"])]),
|
|
3208
|
-
extra: o(() => [l(e(
|
|
3209
|
-
onOpen: e(
|
|
3019
|
+
extra: o(() => [l(e(P), {
|
|
3020
|
+
onOpen: e(i)
|
|
3210
3021
|
}, null, 8, ["onOpen"])]),
|
|
3211
3022
|
_: 1
|
|
3212
3023
|
})]),
|
|
3213
3024
|
default: o(() => [l(e(ie), {
|
|
3214
3025
|
ref_key: "tableRef",
|
|
3215
|
-
ref:
|
|
3026
|
+
ref: V,
|
|
3216
3027
|
size: "small",
|
|
3217
3028
|
"row-key": "id",
|
|
3218
3029
|
url: e(he).urls.list,
|
|
3219
3030
|
columns: n,
|
|
3220
3031
|
loading: e(v)
|
|
3221
|
-
}, null, 8, ["url", "loading"]), l(
|
|
3032
|
+
}, null, 8, ["url", "loading"]), l(Cl, {
|
|
3222
3033
|
ref_key: "formModalRef",
|
|
3223
|
-
ref:
|
|
3224
|
-
onRefresh: e(
|
|
3034
|
+
ref: _,
|
|
3035
|
+
onRefresh: e(m)
|
|
3225
3036
|
}, null, 8, ["onRefresh"])]),
|
|
3226
3037
|
_: 1
|
|
3227
3038
|
}, 8, ["modelValue"]);
|
|
3228
3039
|
};
|
|
3229
3040
|
}
|
|
3230
|
-
}),
|
|
3041
|
+
}), Tl = {
|
|
3042
|
+
gen: "gen"
|
|
3043
|
+
}, me = Y.routineApi("SSL", "id", Tl), ql = /* @__PURE__ */ O({
|
|
3044
|
+
__name: "SiteSelect",
|
|
3045
|
+
props: {
|
|
3046
|
+
modelValue: {
|
|
3047
|
+
type: Number,
|
|
3048
|
+
required: !0
|
|
3049
|
+
},
|
|
3050
|
+
disabled: {
|
|
3051
|
+
type: Boolean,
|
|
3052
|
+
default: !1
|
|
3053
|
+
}
|
|
3054
|
+
},
|
|
3055
|
+
emits: ["update:modelValue", "change"],
|
|
3056
|
+
setup(x, {
|
|
3057
|
+
expose: U,
|
|
3058
|
+
emit: v
|
|
3059
|
+
}) {
|
|
3060
|
+
const k = v, V = x, {
|
|
3061
|
+
requesting: _
|
|
3062
|
+
} = z(pe), {
|
|
3063
|
+
key: m,
|
|
3064
|
+
options: i,
|
|
3065
|
+
refresh: u,
|
|
3066
|
+
change: n
|
|
3067
|
+
} = re(te(V, "modelValue"), k, {
|
|
3068
|
+
key: "SITE_LIST",
|
|
3069
|
+
api: pe,
|
|
3070
|
+
isArray: !0
|
|
3071
|
+
}, {
|
|
3072
|
+
formatOptions: (w) => w.map((s) => ({
|
|
3073
|
+
...s,
|
|
3074
|
+
label: s.prefix + "." + s.domain?.name,
|
|
3075
|
+
value: s.id
|
|
3076
|
+
}))
|
|
3077
|
+
});
|
|
3078
|
+
return U({
|
|
3079
|
+
refresh: u
|
|
3080
|
+
}), (w, s) => {
|
|
3081
|
+
const c = r("el-select-v2");
|
|
3082
|
+
return M(), q(c, {
|
|
3083
|
+
modelValue: e(m),
|
|
3084
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => F(m) ? m.value = f : null),
|
|
3085
|
+
options: e(i),
|
|
3086
|
+
disabled: x.disabled || e(_),
|
|
3087
|
+
placeholder: e(a)("base.select config.domain"),
|
|
3088
|
+
onChange: e(n)
|
|
3089
|
+
}, {
|
|
3090
|
+
prefix: o(() => [l(e(fe), {
|
|
3091
|
+
loading: e(_),
|
|
3092
|
+
onRefresh: e(u)
|
|
3093
|
+
}, null, 8, ["loading", "onRefresh"])]),
|
|
3094
|
+
_: 1
|
|
3095
|
+
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
3096
|
+
};
|
|
3097
|
+
}
|
|
3098
|
+
}), Ne = /* @__PURE__ */ O({
|
|
3099
|
+
__name: "SSLFormModal",
|
|
3100
|
+
emits: ["refresh"],
|
|
3101
|
+
setup(x, { expose: U, emit: v }) {
|
|
3102
|
+
const k = v, V = {
|
|
3103
|
+
id: 0,
|
|
3104
|
+
domain_id: void 0,
|
|
3105
|
+
client: "Lego",
|
|
3106
|
+
site_id: void 0,
|
|
3107
|
+
name: "",
|
|
3108
|
+
path: "",
|
|
3109
|
+
email: "",
|
|
3110
|
+
encryption: "RSA2048",
|
|
3111
|
+
remark: ""
|
|
3112
|
+
}, _ = {
|
|
3113
|
+
domain_id: [{ required: !0, message: a("placeholder.select config.domain "), trigger: "blur" }],
|
|
3114
|
+
client: [{ required: !0, message: a("placeholder.select config.client "), trigger: "blur" }],
|
|
3115
|
+
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
3116
|
+
path: [{ required: !0, message: a("placeholder.input base.path"), trigger: "blur" }],
|
|
3117
|
+
email: [{ required: !0, message: a("placeholder.input base.email"), trigger: "blur" }],
|
|
3118
|
+
encryption: [{ required: !0, message: a("placeholder.input config.encryption"), trigger: "blur" }]
|
|
3119
|
+
}, { modal: m, title: i, form: u, formData: n, requesting: w, executing: s, open: c, modify: f, submit: b, closed: D } = ee(k, V, me);
|
|
3120
|
+
return U({
|
|
3121
|
+
open: c,
|
|
3122
|
+
modify: f,
|
|
3123
|
+
formData: n
|
|
3124
|
+
}), (R, t) => {
|
|
3125
|
+
const d = r("el-form-item"), p = r("el-radio-button"), S = r("el-radio-group"), g = r("el-input"), y = r("el-form");
|
|
3126
|
+
return M(), q(e(oe), {
|
|
3127
|
+
modelValue: e(m),
|
|
3128
|
+
"onUpdate:modelValue": t[8] || (t[8] = (h) => F(m) ? m.value = h : null),
|
|
3129
|
+
title: e(i)("ssl.ssl"),
|
|
3130
|
+
width: "600px",
|
|
3131
|
+
executing: e(s),
|
|
3132
|
+
onClosed: e(D),
|
|
3133
|
+
onSubmit: e(b)
|
|
3134
|
+
}, {
|
|
3135
|
+
default: o(() => [
|
|
3136
|
+
l(y, {
|
|
3137
|
+
ref_key: "form",
|
|
3138
|
+
ref: u,
|
|
3139
|
+
model: e(n),
|
|
3140
|
+
"label-width": "auto",
|
|
3141
|
+
rules: _,
|
|
3142
|
+
disabled: e(w) || e(s)
|
|
3143
|
+
}, {
|
|
3144
|
+
default: o(() => [
|
|
3145
|
+
l(d, {
|
|
3146
|
+
prop: "domain_id",
|
|
3147
|
+
label: e(a)("config.domain")
|
|
3148
|
+
}, {
|
|
3149
|
+
default: o(() => [
|
|
3150
|
+
l(Ie, {
|
|
3151
|
+
modelValue: e(n).domain_id,
|
|
3152
|
+
"onUpdate:modelValue": t[0] || (t[0] = (h) => e(n).domain_id = h),
|
|
3153
|
+
disabled: e(s)
|
|
3154
|
+
}, null, 8, ["modelValue", "disabled"])
|
|
3155
|
+
]),
|
|
3156
|
+
_: 1
|
|
3157
|
+
}, 8, ["label"]),
|
|
3158
|
+
l(d, {
|
|
3159
|
+
prop: "client",
|
|
3160
|
+
label: e(a)("ssl.client")
|
|
3161
|
+
}, {
|
|
3162
|
+
default: o(() => [
|
|
3163
|
+
l(S, {
|
|
3164
|
+
modelValue: e(n).client,
|
|
3165
|
+
"onUpdate:modelValue": t[1] || (t[1] = (h) => e(n).client = h)
|
|
3166
|
+
}, {
|
|
3167
|
+
default: o(() => [
|
|
3168
|
+
l(p, {
|
|
3169
|
+
label: "Lego",
|
|
3170
|
+
value: "Lego"
|
|
3171
|
+
})
|
|
3172
|
+
]),
|
|
3173
|
+
_: 1
|
|
3174
|
+
}, 8, ["modelValue"])
|
|
3175
|
+
]),
|
|
3176
|
+
_: 1
|
|
3177
|
+
}, 8, ["label"]),
|
|
3178
|
+
l(d, {
|
|
3179
|
+
prop: "site_id",
|
|
3180
|
+
label: e(a)("config.site")
|
|
3181
|
+
}, {
|
|
3182
|
+
default: o(() => [
|
|
3183
|
+
l(ql, {
|
|
3184
|
+
modelValue: e(n).site_id,
|
|
3185
|
+
"onUpdate:modelValue": t[2] || (t[2] = (h) => e(n).site_id = h),
|
|
3186
|
+
disabled: e(s)
|
|
3187
|
+
}, null, 8, ["modelValue", "disabled"])
|
|
3188
|
+
]),
|
|
3189
|
+
_: 1
|
|
3190
|
+
}, 8, ["label"]),
|
|
3191
|
+
l(d, {
|
|
3192
|
+
prop: "name",
|
|
3193
|
+
label: e(a)("base.name")
|
|
3194
|
+
}, {
|
|
3195
|
+
default: o(() => [
|
|
3196
|
+
l(g, {
|
|
3197
|
+
modelValue: e(n).name,
|
|
3198
|
+
"onUpdate:modelValue": t[3] || (t[3] = (h) => e(n).name = h),
|
|
3199
|
+
disabled: e(s),
|
|
3200
|
+
placeholder: e(a)("placeholder.input")
|
|
3201
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3202
|
+
]),
|
|
3203
|
+
_: 1
|
|
3204
|
+
}, 8, ["label"]),
|
|
3205
|
+
l(d, {
|
|
3206
|
+
prop: "path",
|
|
3207
|
+
label: e(a)("base.path")
|
|
3208
|
+
}, {
|
|
3209
|
+
default: o(() => [
|
|
3210
|
+
l(g, {
|
|
3211
|
+
modelValue: e(n).path,
|
|
3212
|
+
"onUpdate:modelValue": t[4] || (t[4] = (h) => e(n).path = h),
|
|
3213
|
+
disabled: e(s),
|
|
3214
|
+
placeholder: e(a)("placeholder.input")
|
|
3215
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3216
|
+
]),
|
|
3217
|
+
_: 1
|
|
3218
|
+
}, 8, ["label"]),
|
|
3219
|
+
l(d, {
|
|
3220
|
+
prop: "email",
|
|
3221
|
+
label: e(a)("base.email")
|
|
3222
|
+
}, {
|
|
3223
|
+
default: o(() => [
|
|
3224
|
+
l(g, {
|
|
3225
|
+
modelValue: e(n).email,
|
|
3226
|
+
"onUpdate:modelValue": t[5] || (t[5] = (h) => e(n).email = h),
|
|
3227
|
+
disabled: e(s),
|
|
3228
|
+
placeholder: e(a)("placeholder.input")
|
|
3229
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3230
|
+
]),
|
|
3231
|
+
_: 1
|
|
3232
|
+
}, 8, ["label"]),
|
|
3233
|
+
l(d, {
|
|
3234
|
+
prop: "encryption",
|
|
3235
|
+
label: e(a)("config.encryption")
|
|
3236
|
+
}, {
|
|
3237
|
+
default: o(() => [
|
|
3238
|
+
l(S, {
|
|
3239
|
+
modelValue: e(n).encryption,
|
|
3240
|
+
"onUpdate:modelValue": t[6] || (t[6] = (h) => e(n).encryption = h)
|
|
3241
|
+
}, {
|
|
3242
|
+
default: o(() => [
|
|
3243
|
+
l(p, {
|
|
3244
|
+
label: "RSA2048",
|
|
3245
|
+
value: "RSA2048"
|
|
3246
|
+
})
|
|
3247
|
+
]),
|
|
3248
|
+
_: 1
|
|
3249
|
+
}, 8, ["modelValue"])
|
|
3250
|
+
]),
|
|
3251
|
+
_: 1
|
|
3252
|
+
}, 8, ["label"]),
|
|
3253
|
+
l(d, {
|
|
3254
|
+
prop: "remark",
|
|
3255
|
+
label: e(a)("base.remark")
|
|
3256
|
+
}, {
|
|
3257
|
+
default: o(() => [
|
|
3258
|
+
l(g, {
|
|
3259
|
+
modelValue: e(n).remark,
|
|
3260
|
+
"onUpdate:modelValue": t[7] || (t[7] = (h) => e(n).remark = h),
|
|
3261
|
+
disabled: e(s),
|
|
3262
|
+
placeholder: e(a)("placeholder.input")
|
|
3263
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3264
|
+
]),
|
|
3265
|
+
_: 1
|
|
3266
|
+
}, 8, ["label"])
|
|
3267
|
+
]),
|
|
3268
|
+
_: 1
|
|
3269
|
+
}, 8, ["model", "disabled"])
|
|
3270
|
+
]),
|
|
3271
|
+
_: 1
|
|
3272
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
3273
|
+
};
|
|
3274
|
+
}
|
|
3275
|
+
}), Ol = /* @__PURE__ */ O({
|
|
3231
3276
|
__name: "DomainTableDrawer",
|
|
3232
3277
|
setup(x, {
|
|
3233
3278
|
expose: U
|
|
3234
3279
|
}) {
|
|
3235
3280
|
const {
|
|
3236
3281
|
requesting: v
|
|
3237
|
-
} =
|
|
3238
|
-
visible:
|
|
3239
|
-
open:
|
|
3282
|
+
} = z(ge), {
|
|
3283
|
+
visible: k,
|
|
3284
|
+
open: V
|
|
3240
3285
|
} = xe(), {
|
|
3241
|
-
tableRef:
|
|
3242
|
-
formModalRef:
|
|
3243
|
-
refresh:
|
|
3244
|
-
openFormModal:
|
|
3286
|
+
tableRef: _,
|
|
3287
|
+
formModalRef: m,
|
|
3288
|
+
refresh: i,
|
|
3289
|
+
openFormModal: u,
|
|
3245
3290
|
editFormModal: n
|
|
3246
|
-
} =
|
|
3291
|
+
} = J(), {
|
|
3247
3292
|
formRef: w,
|
|
3248
|
-
open:
|
|
3249
|
-
edit:
|
|
3293
|
+
open: s,
|
|
3294
|
+
edit: c
|
|
3250
3295
|
} = Te(), {
|
|
3251
3296
|
dialogRef: f,
|
|
3252
|
-
open:
|
|
3297
|
+
open: b
|
|
3253
3298
|
} = ve(), D = [{
|
|
3254
3299
|
prop: "provider",
|
|
3255
|
-
label: a("config.
|
|
3300
|
+
label: a("config.provider"),
|
|
3256
3301
|
width: 120,
|
|
3257
3302
|
cellRenderer: ({
|
|
3258
3303
|
rowData: R
|
|
@@ -3276,53 +3321,53 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3276
3321
|
render: ({
|
|
3277
3322
|
rowData: R
|
|
3278
3323
|
}) => l(r("el-space"), null, {
|
|
3279
|
-
default: () => [l(
|
|
3324
|
+
default: () => [l(ne, {
|
|
3280
3325
|
icon: "icon-edit",
|
|
3281
3326
|
t: "",
|
|
3282
3327
|
onModify: () => n({
|
|
3283
3328
|
id: R.id
|
|
3284
3329
|
})
|
|
3285
|
-
}, null), l(
|
|
3330
|
+
}, null), l(P, {
|
|
3286
3331
|
icon: "icon-safetycertificate-f",
|
|
3287
3332
|
type: "primary",
|
|
3288
3333
|
size: "small",
|
|
3289
3334
|
link: !0,
|
|
3290
3335
|
onOpen: () => {
|
|
3291
|
-
R.ssl && R.ssl.id ?
|
|
3336
|
+
R.ssl && R.ssl.id ? c({
|
|
3292
3337
|
id: R.ssl?.id
|
|
3293
|
-
}) : (w.value.formData.domain_id = R.id, w.value.formData.site_id = 0,
|
|
3338
|
+
}) : (w.value.formData.domain_id = R.id, w.value.formData.site_id = 0, s());
|
|
3294
3339
|
}
|
|
3295
3340
|
}, null)]
|
|
3296
3341
|
})
|
|
3297
3342
|
}];
|
|
3298
3343
|
return U({
|
|
3299
|
-
open:
|
|
3344
|
+
open: V
|
|
3300
3345
|
}), (R, t) => {
|
|
3301
|
-
const d = r("el-space"),
|
|
3302
|
-
return M(),
|
|
3303
|
-
modelValue: e(
|
|
3304
|
-
"onUpdate:modelValue": t[0] || (t[0] = (S) =>
|
|
3346
|
+
const d = r("el-space"), p = r("el-page-header");
|
|
3347
|
+
return M(), q(e(_e), {
|
|
3348
|
+
modelValue: e(k),
|
|
3349
|
+
"onUpdate:modelValue": t[0] || (t[0] = (S) => F(k) ? k.value = S : null),
|
|
3305
3350
|
width: "600px",
|
|
3306
3351
|
"show-close": !1,
|
|
3307
3352
|
class: "basic-drawer"
|
|
3308
3353
|
}, {
|
|
3309
|
-
title: o(() => [l(
|
|
3354
|
+
title: o(() => [l(p, {
|
|
3310
3355
|
icon: ""
|
|
3311
3356
|
}, {
|
|
3312
|
-
title: o(() => [
|
|
3357
|
+
title: o(() => [j("span", null, I(e(a)("config.domain")), 1)]),
|
|
3313
3358
|
content: o(() => [l(e(K), {
|
|
3314
|
-
onRefresh: e(
|
|
3359
|
+
onRefresh: e(i),
|
|
3315
3360
|
size: "default",
|
|
3316
3361
|
loading: e(v)
|
|
3317
|
-
}, null, 8, ["onRefresh", "loading"]), l(e(
|
|
3318
|
-
onOpen: e(
|
|
3362
|
+
}, null, 8, ["onRefresh", "loading"]), l(e(P), {
|
|
3363
|
+
onOpen: e(u)
|
|
3319
3364
|
}, null, 8, ["onOpen"])]),
|
|
3320
3365
|
extra: o(() => [l(d, {
|
|
3321
3366
|
class: "w-full extra-tool",
|
|
3322
3367
|
alignment: "center"
|
|
3323
3368
|
}, {
|
|
3324
|
-
default: o(() => [l(e(
|
|
3325
|
-
onOpen: e(
|
|
3369
|
+
default: o(() => [l(e(P), {
|
|
3370
|
+
onOpen: e(b),
|
|
3326
3371
|
type: "danger"
|
|
3327
3372
|
}, null, 8, ["onOpen"])]),
|
|
3328
3373
|
_: 1
|
|
@@ -3331,21 +3376,21 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3331
3376
|
})]),
|
|
3332
3377
|
default: o(() => [l(e(ie), {
|
|
3333
3378
|
ref_key: "tableRef",
|
|
3334
|
-
ref:
|
|
3379
|
+
ref: _,
|
|
3335
3380
|
size: "small",
|
|
3336
3381
|
"row-key": "id",
|
|
3337
3382
|
url: e(ge).urls.list,
|
|
3338
3383
|
columns: D,
|
|
3339
3384
|
loading: e(v)
|
|
3340
|
-
}, null, 8, ["url", "loading"]), l(
|
|
3385
|
+
}, null, 8, ["url", "loading"]), l(Ml, {
|
|
3341
3386
|
ref_key: "formModalRef",
|
|
3342
|
-
ref:
|
|
3343
|
-
onRefresh: e(
|
|
3387
|
+
ref: m,
|
|
3388
|
+
onRefresh: e(i)
|
|
3344
3389
|
}, null, 8, ["onRefresh"]), l(Ne, {
|
|
3345
3390
|
ref_key: "sslFormModalRef",
|
|
3346
3391
|
ref: w,
|
|
3347
|
-
onRefresh: e(
|
|
3348
|
-
}, null, 8, ["onRefresh"]), l(
|
|
3392
|
+
onRefresh: e(i)
|
|
3393
|
+
}, null, 8, ["onRefresh"]), l(Ll, {
|
|
3349
3394
|
ref_key: "providerTableDrawerRef",
|
|
3350
3395
|
ref: f
|
|
3351
3396
|
}, null, 512)]),
|
|
@@ -3353,24 +3398,24 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3353
3398
|
}, 8, ["modelValue"]);
|
|
3354
3399
|
};
|
|
3355
3400
|
}
|
|
3356
|
-
}),
|
|
3401
|
+
}), $l = /* @__PURE__ */ O({
|
|
3357
3402
|
__name: "SSLTableDrawer",
|
|
3358
3403
|
setup(x, {
|
|
3359
3404
|
expose: U
|
|
3360
3405
|
}) {
|
|
3361
3406
|
const {
|
|
3362
3407
|
requesting: v,
|
|
3363
|
-
executing:
|
|
3364
|
-
} =
|
|
3365
|
-
visible:
|
|
3366
|
-
open:
|
|
3408
|
+
executing: k
|
|
3409
|
+
} = z(me), V = H(0), {
|
|
3410
|
+
visible: _,
|
|
3411
|
+
open: m
|
|
3367
3412
|
} = xe(), {
|
|
3368
|
-
tableRef:
|
|
3369
|
-
formModalRef:
|
|
3413
|
+
tableRef: i,
|
|
3414
|
+
formModalRef: u,
|
|
3370
3415
|
refresh: n,
|
|
3371
3416
|
openFormModal: w,
|
|
3372
|
-
editFormModal:
|
|
3373
|
-
} =
|
|
3417
|
+
editFormModal: s
|
|
3418
|
+
} = J(), c = [
|
|
3374
3419
|
{
|
|
3375
3420
|
prop: "client",
|
|
3376
3421
|
label: a("ssl.client"),
|
|
@@ -3411,12 +3456,12 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3411
3456
|
render: ({
|
|
3412
3457
|
rowData: D
|
|
3413
3458
|
}) => l(r("el-space"), null, {
|
|
3414
|
-
default: () => [l(
|
|
3459
|
+
default: () => [l(ne, {
|
|
3415
3460
|
size: "default",
|
|
3416
3461
|
icon: "icon-edit",
|
|
3417
3462
|
t: "",
|
|
3418
|
-
disabled:
|
|
3419
|
-
onModify: () =>
|
|
3463
|
+
disabled: k.value,
|
|
3464
|
+
onModify: () => s({
|
|
3420
3465
|
id: D.id
|
|
3421
3466
|
})
|
|
3422
3467
|
}, null), l(X, {
|
|
@@ -3424,17 +3469,17 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3424
3469
|
icon: "icon-key",
|
|
3425
3470
|
t: "",
|
|
3426
3471
|
text: !0,
|
|
3427
|
-
disabled:
|
|
3428
|
-
loading:
|
|
3472
|
+
disabled: k.value && V.value !== D.id,
|
|
3473
|
+
loading: V.value == D.id,
|
|
3429
3474
|
onClick: () => f(D.id)
|
|
3430
3475
|
}, null), l(X, {
|
|
3431
3476
|
size: "default",
|
|
3432
3477
|
icon: "icon-cloud-download",
|
|
3433
3478
|
t: "",
|
|
3434
3479
|
text: !0,
|
|
3435
|
-
disabled:
|
|
3436
|
-
loading:
|
|
3437
|
-
onClick: () =>
|
|
3480
|
+
disabled: k.value && V.value !== D.id,
|
|
3481
|
+
loading: V.value == D.id,
|
|
3482
|
+
onClick: () => b(D)
|
|
3438
3483
|
}, null)]
|
|
3439
3484
|
})
|
|
3440
3485
|
}
|
|
@@ -3445,20 +3490,20 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3445
3490
|
console.warn("Res:", R);
|
|
3446
3491
|
});
|
|
3447
3492
|
};
|
|
3448
|
-
function
|
|
3493
|
+
function b(D) {
|
|
3449
3494
|
const R = Oe.getDownloadUrl(D.path + ".zip");
|
|
3450
3495
|
fetch(R).then((t) => t.blob()).then((t) => {
|
|
3451
|
-
let d = URL.createObjectURL(t),
|
|
3452
|
-
|
|
3496
|
+
let d = URL.createObjectURL(t), p = document.createElement("a");
|
|
3497
|
+
p.style.display = "none", p.href = d, p.download = D.name + ".zip", p.click(), URL.revokeObjectURL(t);
|
|
3453
3498
|
});
|
|
3454
3499
|
}
|
|
3455
3500
|
return U({
|
|
3456
|
-
open:
|
|
3501
|
+
open: m
|
|
3457
3502
|
}), (D, R) => {
|
|
3458
3503
|
const t = r("el-page-header");
|
|
3459
|
-
return M(),
|
|
3460
|
-
modelValue: e(
|
|
3461
|
-
"onUpdate:modelValue": R[0] || (R[0] = (d) =>
|
|
3504
|
+
return M(), q(e(_e), {
|
|
3505
|
+
modelValue: e(_),
|
|
3506
|
+
"onUpdate:modelValue": R[0] || (R[0] = (d) => F(_) ? _.value = d : null),
|
|
3462
3507
|
width: "1000px",
|
|
3463
3508
|
"show-close": !1,
|
|
3464
3509
|
class: "basic-drawer"
|
|
@@ -3466,78 +3511,78 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3466
3511
|
title: o(() => [l(t, {
|
|
3467
3512
|
icon: ""
|
|
3468
3513
|
}, {
|
|
3469
|
-
title: o(() => [
|
|
3514
|
+
title: o(() => [j("span", null, I(e(a)("ssl.ssl")), 1)]),
|
|
3470
3515
|
content: o(() => [l(e(K), {
|
|
3471
3516
|
onRefresh: e(n),
|
|
3472
3517
|
size: "default",
|
|
3473
3518
|
loading: e(v)
|
|
3474
|
-
}, null, 8, ["onRefresh", "loading"]), l(e(
|
|
3519
|
+
}, null, 8, ["onRefresh", "loading"]), l(e(P), {
|
|
3475
3520
|
onOpen: e(w)
|
|
3476
3521
|
}, null, 8, ["onOpen"])]),
|
|
3477
3522
|
_: 1
|
|
3478
3523
|
})]),
|
|
3479
3524
|
default: o(() => [l(e(ie), {
|
|
3480
3525
|
ref_key: "tableRef",
|
|
3481
|
-
ref:
|
|
3526
|
+
ref: i,
|
|
3482
3527
|
size: "default",
|
|
3483
3528
|
"row-key": "id",
|
|
3484
3529
|
url: e(me).urls.list,
|
|
3485
|
-
columns:
|
|
3530
|
+
columns: c,
|
|
3486
3531
|
loading: e(v)
|
|
3487
3532
|
}, null, 8, ["url", "loading"]), l(Ne, {
|
|
3488
3533
|
ref_key: "formModalRef",
|
|
3489
|
-
ref:
|
|
3534
|
+
ref: u,
|
|
3490
3535
|
onRefresh: e(n)
|
|
3491
3536
|
}, null, 8, ["onRefresh"])]),
|
|
3492
3537
|
_: 1
|
|
3493
3538
|
}, 8, ["modelValue"]);
|
|
3494
3539
|
};
|
|
3495
3540
|
}
|
|
3496
|
-
}),
|
|
3541
|
+
}), Ce = Y.routineApi("SSLLog", "id"), El = /* @__PURE__ */ O({
|
|
3497
3542
|
__name: "SSLLogTableDrawer",
|
|
3498
3543
|
props: {
|
|
3499
3544
|
ssl: { type: Object, default: () => ({}) }
|
|
3500
3545
|
},
|
|
3501
3546
|
setup(x, { expose: U }) {
|
|
3502
|
-
const v = x, { requesting:
|
|
3547
|
+
const v = x, { requesting: k, executing: V } = z([Ce, me]), { visible: _, open: m } = xe(), { tableRef: i, refresh: u } = ll(), n = [
|
|
3503
3548
|
{ prop: "status.label", label: a("base.status"), width: 100 },
|
|
3504
3549
|
{ prop: "at", label: a("base.time"), width: 180 },
|
|
3505
3550
|
{ prop: "type_text", label: a("base.type"), width: 80 },
|
|
3506
3551
|
{ prop: "result", label: a("base.result"), width: 0 }
|
|
3507
3552
|
];
|
|
3508
3553
|
function w() {
|
|
3509
|
-
me.gen({ id: v.ssl.id }).then((
|
|
3510
|
-
console.warn("Res:",
|
|
3554
|
+
me.gen({ id: v.ssl.id }).then((c) => {
|
|
3555
|
+
console.warn("Res:", c);
|
|
3511
3556
|
});
|
|
3512
3557
|
}
|
|
3513
|
-
function
|
|
3514
|
-
const
|
|
3515
|
-
fetch(
|
|
3516
|
-
let
|
|
3517
|
-
D.style.display = "none", D.href =
|
|
3558
|
+
function s() {
|
|
3559
|
+
const c = Oe.getDownloadUrl(v.ssl.path + ".zip");
|
|
3560
|
+
fetch(c).then((f) => f.blob()).then((f) => {
|
|
3561
|
+
let b = URL.createObjectURL(f), D = document.createElement("a");
|
|
3562
|
+
D.style.display = "none", D.href = b, D.download = v.ssl.name + ".zip", D.click(), URL.revokeObjectURL(f);
|
|
3518
3563
|
});
|
|
3519
3564
|
}
|
|
3520
3565
|
return U({
|
|
3521
|
-
open:
|
|
3522
|
-
}), (
|
|
3523
|
-
const
|
|
3524
|
-
return M(),
|
|
3525
|
-
modelValue: e(
|
|
3526
|
-
"onUpdate:modelValue": f[0] || (f[0] = (D) =>
|
|
3566
|
+
open: m
|
|
3567
|
+
}), (c, f) => {
|
|
3568
|
+
const b = r("el-page-header");
|
|
3569
|
+
return M(), q(e(_e), {
|
|
3570
|
+
modelValue: e(_),
|
|
3571
|
+
"onUpdate:modelValue": f[0] || (f[0] = (D) => F(_) ? _.value = D : null),
|
|
3527
3572
|
width: "600px",
|
|
3528
3573
|
"show-close": !1,
|
|
3529
3574
|
class: "basic-drawer"
|
|
3530
3575
|
}, {
|
|
3531
3576
|
title: o(() => [
|
|
3532
|
-
l(
|
|
3577
|
+
l(b, { icon: "" }, {
|
|
3533
3578
|
title: o(() => [
|
|
3534
|
-
|
|
3579
|
+
j("span", null, I(e(a)("config.ssl base.log")), 1)
|
|
3535
3580
|
]),
|
|
3536
3581
|
content: o(() => [
|
|
3537
3582
|
l(e(K), {
|
|
3538
|
-
onRefresh: e(
|
|
3583
|
+
onRefresh: e(u),
|
|
3539
3584
|
size: "default",
|
|
3540
|
-
loading: e(
|
|
3585
|
+
loading: e(k)
|
|
3541
3586
|
}, null, 8, ["onRefresh", "loading"])
|
|
3542
3587
|
]),
|
|
3543
3588
|
extra: o(() => [
|
|
@@ -3545,17 +3590,17 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3545
3590
|
size: "default",
|
|
3546
3591
|
type: "danger",
|
|
3547
3592
|
icon: "icon-key",
|
|
3548
|
-
disabled: e(
|
|
3549
|
-
loading: e(
|
|
3593
|
+
disabled: e(V),
|
|
3594
|
+
loading: e(V),
|
|
3550
3595
|
onClick: w
|
|
3551
3596
|
}, null, 8, ["disabled", "loading"]),
|
|
3552
3597
|
l(e(X), {
|
|
3553
3598
|
size: "default",
|
|
3554
3599
|
type: "primary",
|
|
3555
3600
|
icon: "icon-cloud-download",
|
|
3556
|
-
disabled: e(
|
|
3557
|
-
loading: e(
|
|
3558
|
-
onClick:
|
|
3601
|
+
disabled: e(V),
|
|
3602
|
+
loading: e(V),
|
|
3603
|
+
onClick: s
|
|
3559
3604
|
}, null, 8, ["disabled", "loading"])
|
|
3560
3605
|
]),
|
|
3561
3606
|
_: 1
|
|
@@ -3564,41 +3609,41 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3564
3609
|
default: o(() => [
|
|
3565
3610
|
l(e(be), {
|
|
3566
3611
|
ref_key: "tableRef",
|
|
3567
|
-
ref:
|
|
3612
|
+
ref: i,
|
|
3568
3613
|
size: "small",
|
|
3569
3614
|
"row-key": "id",
|
|
3570
|
-
url: e(
|
|
3615
|
+
url: e(Ce).urls.search,
|
|
3571
3616
|
columns: n,
|
|
3572
|
-
loading: e(
|
|
3617
|
+
loading: e(k)
|
|
3573
3618
|
}, null, 8, ["url", "loading"])
|
|
3574
3619
|
]),
|
|
3575
3620
|
_: 1
|
|
3576
3621
|
}, 8, ["modelValue"]);
|
|
3577
3622
|
};
|
|
3578
3623
|
}
|
|
3579
|
-
}),
|
|
3624
|
+
}), Fl = /* @__PURE__ */ O({
|
|
3580
3625
|
__name: "index",
|
|
3581
3626
|
setup(x) {
|
|
3582
|
-
const U =
|
|
3583
|
-
requesting:
|
|
3584
|
-
executing:
|
|
3585
|
-
} =
|
|
3586
|
-
tableRef:
|
|
3587
|
-
formModalRef:
|
|
3627
|
+
const U = Ol, v = $l, k = El, V = H(), {
|
|
3628
|
+
requesting: _,
|
|
3629
|
+
executing: m
|
|
3630
|
+
} = z(pe), {
|
|
3631
|
+
tableRef: i,
|
|
3632
|
+
formModalRef: u,
|
|
3588
3633
|
reset: n,
|
|
3589
3634
|
refresh: w,
|
|
3590
|
-
openFormModal:
|
|
3591
|
-
editFormModal:
|
|
3592
|
-
} =
|
|
3635
|
+
openFormModal: s,
|
|
3636
|
+
editFormModal: c
|
|
3637
|
+
} = J(), {
|
|
3593
3638
|
dialogRef: f,
|
|
3594
|
-
open:
|
|
3639
|
+
open: b
|
|
3595
3640
|
} = ve(), {
|
|
3596
3641
|
dialogRef: D,
|
|
3597
3642
|
open: R
|
|
3598
3643
|
} = ve(), {
|
|
3599
3644
|
dialogRef: t,
|
|
3600
3645
|
open: d
|
|
3601
|
-
} = ve(),
|
|
3646
|
+
} = ve(), p = [{
|
|
3602
3647
|
prop: "domain.name",
|
|
3603
3648
|
label: a("config.domain"),
|
|
3604
3649
|
width: 129,
|
|
@@ -3623,16 +3668,16 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3623
3668
|
align: "center",
|
|
3624
3669
|
width: 140,
|
|
3625
3670
|
cellRenderer: ({
|
|
3626
|
-
rowData:
|
|
3671
|
+
rowData: y
|
|
3627
3672
|
}) => l(r("el-space"), null, {
|
|
3628
3673
|
default: () => [l(r("el-text"), null, {
|
|
3629
|
-
default: () => [
|
|
3674
|
+
default: () => [y.ssl?.renewal_days, le(" 天")]
|
|
3630
3675
|
}), l(r("el-button"), {
|
|
3631
3676
|
size: "small",
|
|
3632
3677
|
type: "primary",
|
|
3633
3678
|
text: !0,
|
|
3634
|
-
onClick: (
|
|
3635
|
-
|
|
3679
|
+
onClick: (h) => {
|
|
3680
|
+
h.stopPropagation(), y.ssl && y.ssl.id && (V.value = y.ssl, d());
|
|
3636
3681
|
}
|
|
3637
3682
|
}, {
|
|
3638
3683
|
default: () => [l("span", {
|
|
@@ -3651,36 +3696,36 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3651
3696
|
width: 100,
|
|
3652
3697
|
align: "center",
|
|
3653
3698
|
cellRenderer: ({
|
|
3654
|
-
rowData:
|
|
3699
|
+
rowData: y
|
|
3655
3700
|
}) => l(r("el-space"), null, {
|
|
3656
|
-
default: () => [l(
|
|
3701
|
+
default: () => [l(ne, {
|
|
3657
3702
|
icon: "icon-edit",
|
|
3658
3703
|
t: "",
|
|
3659
|
-
onModify: () =>
|
|
3660
|
-
id:
|
|
3704
|
+
onModify: () => c({
|
|
3705
|
+
id: y.id
|
|
3661
3706
|
})
|
|
3662
3707
|
}, null), l(X, {
|
|
3663
3708
|
icon: "icon-securityscan",
|
|
3664
3709
|
type: "primary",
|
|
3665
3710
|
size: "small",
|
|
3666
3711
|
link: !0,
|
|
3667
|
-
disabled:
|
|
3668
|
-
loading: S.value ==
|
|
3669
|
-
onClick: () =>
|
|
3712
|
+
disabled: m.value,
|
|
3713
|
+
loading: S.value == y.id && m.value,
|
|
3714
|
+
onClick: () => g(y)
|
|
3670
3715
|
}, null)]
|
|
3671
3716
|
})
|
|
3672
|
-
}], S =
|
|
3673
|
-
S.value =
|
|
3674
|
-
id:
|
|
3675
|
-
}).then((
|
|
3676
|
-
|
|
3717
|
+
}], S = H(0), g = (y) => {
|
|
3718
|
+
S.value = y.id, pe.check({
|
|
3719
|
+
id: y.id
|
|
3720
|
+
}).then((h) => {
|
|
3721
|
+
h.data && (al(h), w());
|
|
3677
3722
|
}).finally(() => {
|
|
3678
3723
|
S.value = 0;
|
|
3679
3724
|
});
|
|
3680
3725
|
};
|
|
3681
|
-
return (
|
|
3682
|
-
const
|
|
3683
|
-
return M(),
|
|
3726
|
+
return (y, h) => {
|
|
3727
|
+
const C = r("el-space"), A = r("el-page-header"), L = r("el-card");
|
|
3728
|
+
return M(), q(L, {
|
|
3684
3729
|
"body-style": {
|
|
3685
3730
|
padding: "12px",
|
|
3686
3731
|
height: "450px"
|
|
@@ -3688,28 +3733,28 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3688
3733
|
"body-class": "flex-1",
|
|
3689
3734
|
class: "config-card"
|
|
3690
3735
|
}, {
|
|
3691
|
-
header: o(() => [l(
|
|
3736
|
+
header: o(() => [l(A, {
|
|
3692
3737
|
icon: ""
|
|
3693
3738
|
}, {
|
|
3694
|
-
title: o(() => [
|
|
3695
|
-
content: o(() => [l(
|
|
3739
|
+
title: o(() => [j("span", null, I(e(a)("config.keys.sites")), 1)]),
|
|
3740
|
+
content: o(() => [l(C, {
|
|
3696
3741
|
alignment: "center",
|
|
3697
3742
|
style: {
|
|
3698
3743
|
height: "32px"
|
|
3699
3744
|
}
|
|
3700
3745
|
}, {
|
|
3701
3746
|
default: o(() => [l(e(K), {
|
|
3702
|
-
loading: e(
|
|
3747
|
+
loading: e(_),
|
|
3703
3748
|
onRefresh: e(n)
|
|
3704
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
|
3705
|
-
onOpen: e(
|
|
3749
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
3750
|
+
onOpen: e(s)
|
|
3706
3751
|
}, null, 8, ["onOpen"])]),
|
|
3707
3752
|
_: 1
|
|
3708
3753
|
})]),
|
|
3709
|
-
extra: o(() => [l(e(
|
|
3710
|
-
onOpen: e(
|
|
3754
|
+
extra: o(() => [l(e(P), {
|
|
3755
|
+
onOpen: e(b),
|
|
3711
3756
|
icon: "icon-compass"
|
|
3712
|
-
}, null, 8, ["onOpen"]), l(e(
|
|
3757
|
+
}, null, 8, ["onOpen"]), l(e(P), {
|
|
3713
3758
|
onOpen: e(R),
|
|
3714
3759
|
icon: "icon-safetycertificate-f"
|
|
3715
3760
|
}, null, 8, ["onOpen"])]),
|
|
@@ -3717,15 +3762,15 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3717
3762
|
})]),
|
|
3718
3763
|
default: o(() => [l(e(ie), {
|
|
3719
3764
|
ref_key: "tableRef",
|
|
3720
|
-
ref:
|
|
3765
|
+
ref: i,
|
|
3721
3766
|
size: "small",
|
|
3722
3767
|
"row-key": "id",
|
|
3723
3768
|
url: e(pe).urls[e(ol)],
|
|
3724
3769
|
"auto-search": "",
|
|
3725
|
-
columns:
|
|
3726
|
-
}, null, 8, ["url"]), l(
|
|
3770
|
+
columns: p
|
|
3771
|
+
}, null, 8, ["url"]), l(Dl, {
|
|
3727
3772
|
ref_key: "formModalRef",
|
|
3728
|
-
ref:
|
|
3773
|
+
ref: u,
|
|
3729
3774
|
onRefresh: e(w)
|
|
3730
3775
|
}, null, 8, ["onRefresh"]), l(e(U), {
|
|
3731
3776
|
ref_key: "domainTableDrawerRef",
|
|
@@ -3733,7 +3778,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3733
3778
|
}, null, 512), l(e(v), {
|
|
3734
3779
|
ref_key: "sslTableDrawerRef",
|
|
3735
3780
|
ref: D
|
|
3736
|
-
}, null, 512), l(e(
|
|
3781
|
+
}, null, 512), l(e(k), {
|
|
3737
3782
|
ref_key: "sslLogTableDrawerRef",
|
|
3738
3783
|
ref: t
|
|
3739
3784
|
}, null, 512)]),
|
|
@@ -3741,18 +3786,18 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3741
3786
|
});
|
|
3742
3787
|
};
|
|
3743
3788
|
}
|
|
3744
|
-
}),
|
|
3789
|
+
}), zl = /* @__PURE__ */ Ee(Fl, [["__scopeId", "data-v-34e18506"]]), Il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3745
3790
|
__proto__: null,
|
|
3746
|
-
default:
|
|
3747
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3791
|
+
default: zl
|
|
3792
|
+
}, Symbol.toStringTag, { value: "Module" })), Nl = {
|
|
3748
3793
|
request: "request",
|
|
3749
3794
|
error: "error",
|
|
3750
3795
|
sql: "SQL"
|
|
3751
|
-
}, ce =
|
|
3796
|
+
}, ce = Y.routineApi("log", "id", Nl), Xl = /* @__PURE__ */ O({
|
|
3752
3797
|
__name: "index",
|
|
3753
3798
|
setup(x) {
|
|
3754
3799
|
const U = {
|
|
3755
|
-
dates: [
|
|
3800
|
+
dates: [E.getCurrentHour().format(E.DATE_VALUE_FORMAT), E.getCurrentHour(1).format(E.DATE_VALUE_FORMAT)]
|
|
3756
3801
|
}, v = [{
|
|
3757
3802
|
label: a("base.sort"),
|
|
3758
3803
|
type: "index",
|
|
@@ -3762,52 +3807,52 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3762
3807
|
prop: "time",
|
|
3763
3808
|
width: 180,
|
|
3764
3809
|
render: ({
|
|
3765
|
-
rowData:
|
|
3766
|
-
}) => l(
|
|
3810
|
+
rowData: u
|
|
3811
|
+
}) => l(G, null, [E.formatDate(u.time)])
|
|
3767
3812
|
}, {
|
|
3768
3813
|
label: a("base.url"),
|
|
3769
3814
|
prop: "url",
|
|
3770
3815
|
align: "left",
|
|
3771
3816
|
width: 200
|
|
3772
3817
|
}], {
|
|
3773
|
-
requesting:
|
|
3774
|
-
} =
|
|
3775
|
-
tableRef:
|
|
3776
|
-
keyword:
|
|
3777
|
-
search:
|
|
3778
|
-
reset:
|
|
3779
|
-
} =
|
|
3780
|
-
return (
|
|
3781
|
-
const w = r("el-date-picker"),
|
|
3782
|
-
return M(),
|
|
3818
|
+
requesting: k
|
|
3819
|
+
} = z(ce), {
|
|
3820
|
+
tableRef: V,
|
|
3821
|
+
keyword: _,
|
|
3822
|
+
search: m,
|
|
3823
|
+
reset: i
|
|
3824
|
+
} = J(U);
|
|
3825
|
+
return (u, n) => {
|
|
3826
|
+
const w = r("el-date-picker"), s = r("el-space"), c = r("el-page-header"), f = r("el-card");
|
|
3827
|
+
return M(), q(f, {
|
|
3783
3828
|
class: "basic-card flex-full",
|
|
3784
3829
|
"body-class": "flex-1"
|
|
3785
3830
|
}, {
|
|
3786
|
-
header: o(() => [l(
|
|
3831
|
+
header: o(() => [l(c, {
|
|
3787
3832
|
class: "basic-header"
|
|
3788
3833
|
}, {
|
|
3789
3834
|
title: o(() => [l(e(K), {
|
|
3790
|
-
loading: e(
|
|
3791
|
-
onRefresh: e(
|
|
3835
|
+
loading: e(k),
|
|
3836
|
+
onRefresh: e(i)
|
|
3792
3837
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
3793
|
-
content: o(() => [l(
|
|
3838
|
+
content: o(() => [l(s, {
|
|
3794
3839
|
class: "search-bar"
|
|
3795
3840
|
}, {
|
|
3796
3841
|
default: o(() => [l(w, {
|
|
3797
|
-
modelValue: e(
|
|
3798
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
3842
|
+
modelValue: e(_).dates,
|
|
3843
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => e(_).dates = b),
|
|
3799
3844
|
class: "basic-search-datetimerange",
|
|
3800
|
-
"value-format": e(
|
|
3801
|
-
format: e(
|
|
3845
|
+
"value-format": e(E).DATE_VALUE_FORMAT,
|
|
3846
|
+
format: e(E).DATE_SHOW_FORMAT,
|
|
3802
3847
|
type: "datetimerange",
|
|
3803
3848
|
"range-separator": "-",
|
|
3804
3849
|
"start-placeholder": e(a)("base.start_at"),
|
|
3805
3850
|
"end-placeholder": e(a)("base.end_at"),
|
|
3806
3851
|
clearable: !1,
|
|
3807
|
-
onChange: n[1] || (n[1] = (
|
|
3852
|
+
onChange: n[1] || (n[1] = (b) => e(m)())
|
|
3808
3853
|
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(de), {
|
|
3809
|
-
disabled: e(
|
|
3810
|
-
onSearch: n[2] || (n[2] = (
|
|
3854
|
+
disabled: e(k),
|
|
3855
|
+
onSearch: n[2] || (n[2] = (b) => e(m)())
|
|
3811
3856
|
}, null, 8, ["disabled"])]),
|
|
3812
3857
|
_: 1
|
|
3813
3858
|
})]),
|
|
@@ -3815,22 +3860,22 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3815
3860
|
})]),
|
|
3816
3861
|
default: o(() => [l(e(ie), {
|
|
3817
3862
|
ref_key: "tableRef",
|
|
3818
|
-
ref:
|
|
3863
|
+
ref: V,
|
|
3819
3864
|
size: "small",
|
|
3820
3865
|
columns: v,
|
|
3821
3866
|
url: e(ce).urls.request,
|
|
3822
|
-
"search-param": e(
|
|
3867
|
+
"search-param": e(_),
|
|
3823
3868
|
"auto-search": ""
|
|
3824
3869
|
}, null, 8, ["url", "search-param"])]),
|
|
3825
3870
|
_: 1
|
|
3826
3871
|
});
|
|
3827
3872
|
};
|
|
3828
3873
|
}
|
|
3829
|
-
}),
|
|
3874
|
+
}), Zl = /* @__PURE__ */ O({
|
|
3830
3875
|
__name: "index",
|
|
3831
3876
|
setup(x) {
|
|
3832
3877
|
const U = {
|
|
3833
|
-
dates: [
|
|
3878
|
+
dates: [E.getCurrentDate(-7).format(E.DATE_FORMAT), E.getCurrentDate(0).format(E.DATE_FORMAT)]
|
|
3834
3879
|
}, v = [{
|
|
3835
3880
|
label: a("base.sort"),
|
|
3836
3881
|
type: "index",
|
|
@@ -3840,52 +3885,52 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3840
3885
|
prop: "time",
|
|
3841
3886
|
width: 180,
|
|
3842
3887
|
render: ({
|
|
3843
|
-
rowData:
|
|
3844
|
-
}) => l(
|
|
3888
|
+
rowData: u
|
|
3889
|
+
}) => l(G, null, [E.formatDate(u.time)])
|
|
3845
3890
|
}, {
|
|
3846
3891
|
label: a("base.url"),
|
|
3847
3892
|
prop: "url",
|
|
3848
3893
|
align: "left",
|
|
3849
3894
|
width: 200
|
|
3850
3895
|
}], {
|
|
3851
|
-
requesting:
|
|
3852
|
-
} =
|
|
3853
|
-
tableRef:
|
|
3854
|
-
keyword:
|
|
3855
|
-
search:
|
|
3856
|
-
reset:
|
|
3857
|
-
} =
|
|
3858
|
-
return (
|
|
3859
|
-
const w = r("el-date-picker"),
|
|
3860
|
-
return M(),
|
|
3896
|
+
requesting: k
|
|
3897
|
+
} = z(ce), {
|
|
3898
|
+
tableRef: V,
|
|
3899
|
+
keyword: _,
|
|
3900
|
+
search: m,
|
|
3901
|
+
reset: i
|
|
3902
|
+
} = J(U);
|
|
3903
|
+
return (u, n) => {
|
|
3904
|
+
const w = r("el-date-picker"), s = r("el-space"), c = r("el-page-header"), f = r("el-card");
|
|
3905
|
+
return M(), q(f, {
|
|
3861
3906
|
class: "basic-card flex-full",
|
|
3862
3907
|
"body-class": "flex-1"
|
|
3863
3908
|
}, {
|
|
3864
|
-
header: o(() => [l(
|
|
3909
|
+
header: o(() => [l(c, {
|
|
3865
3910
|
class: "basic-header"
|
|
3866
3911
|
}, {
|
|
3867
3912
|
title: o(() => [l(e(K), {
|
|
3868
|
-
loading: e(
|
|
3869
|
-
onRefresh: e(
|
|
3913
|
+
loading: e(k),
|
|
3914
|
+
onRefresh: e(i)
|
|
3870
3915
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
3871
|
-
content: o(() => [l(
|
|
3916
|
+
content: o(() => [l(s, {
|
|
3872
3917
|
class: "search-bar"
|
|
3873
3918
|
}, {
|
|
3874
3919
|
default: o(() => [l(w, {
|
|
3875
|
-
modelValue: e(
|
|
3876
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
3920
|
+
modelValue: e(_).dates,
|
|
3921
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => e(_).dates = b),
|
|
3877
3922
|
class: "basic-search-daterange",
|
|
3878
|
-
"value-format": e(
|
|
3879
|
-
format: e(
|
|
3923
|
+
"value-format": e(E).DATE_FORMAT,
|
|
3924
|
+
format: e(E).DATE_FORMAT,
|
|
3880
3925
|
type: "daterange",
|
|
3881
3926
|
"range-separator": "-",
|
|
3882
3927
|
"start-placeholder": e(a)("base.start_at"),
|
|
3883
3928
|
"end-placeholder": e(a)("base.end_at"),
|
|
3884
3929
|
clearable: !1,
|
|
3885
|
-
onChange: n[1] || (n[1] = (
|
|
3930
|
+
onChange: n[1] || (n[1] = (b) => e(m)())
|
|
3886
3931
|
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(de), {
|
|
3887
|
-
disabled: e(
|
|
3888
|
-
onSearch: n[2] || (n[2] = (
|
|
3932
|
+
disabled: e(k),
|
|
3933
|
+
onSearch: n[2] || (n[2] = (b) => e(m)())
|
|
3889
3934
|
}, null, 8, ["disabled"])]),
|
|
3890
3935
|
_: 1
|
|
3891
3936
|
})]),
|
|
@@ -3893,22 +3938,22 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3893
3938
|
})]),
|
|
3894
3939
|
default: o(() => [l(e(ie), {
|
|
3895
3940
|
ref_key: "tableRef",
|
|
3896
|
-
ref:
|
|
3941
|
+
ref: V,
|
|
3897
3942
|
size: "small",
|
|
3898
3943
|
columns: v,
|
|
3899
3944
|
url: e(ce).urls.error,
|
|
3900
|
-
"search-param": e(
|
|
3945
|
+
"search-param": e(_),
|
|
3901
3946
|
"auto-search": ""
|
|
3902
3947
|
}, null, 8, ["url", "search-param"])]),
|
|
3903
3948
|
_: 1
|
|
3904
3949
|
});
|
|
3905
3950
|
};
|
|
3906
3951
|
}
|
|
3907
|
-
}),
|
|
3952
|
+
}), ea = /* @__PURE__ */ O({
|
|
3908
3953
|
__name: "index",
|
|
3909
3954
|
setup(x) {
|
|
3910
3955
|
const U = {
|
|
3911
|
-
dates: [
|
|
3956
|
+
dates: [E.getCurrentDate(-7).format(E.DATE_FORMAT), E.getCurrentDate().format(E.DATE_FORMAT)]
|
|
3912
3957
|
}, v = [{
|
|
3913
3958
|
label: a("base.sort"),
|
|
3914
3959
|
type: "index",
|
|
@@ -3918,52 +3963,52 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3918
3963
|
prop: "time",
|
|
3919
3964
|
width: 180,
|
|
3920
3965
|
render: ({
|
|
3921
|
-
rowData:
|
|
3922
|
-
}) => l(
|
|
3966
|
+
rowData: u
|
|
3967
|
+
}) => l(G, null, [E.formatDate(u.time)])
|
|
3923
3968
|
}, {
|
|
3924
3969
|
label: a("base.url"),
|
|
3925
3970
|
prop: "url",
|
|
3926
3971
|
align: "left",
|
|
3927
3972
|
width: 200
|
|
3928
3973
|
}], {
|
|
3929
|
-
requesting:
|
|
3930
|
-
} =
|
|
3931
|
-
tableRef:
|
|
3932
|
-
keyword:
|
|
3933
|
-
search:
|
|
3934
|
-
reset:
|
|
3935
|
-
} =
|
|
3936
|
-
return (
|
|
3937
|
-
const w = r("el-date-picker"),
|
|
3938
|
-
return M(),
|
|
3974
|
+
requesting: k
|
|
3975
|
+
} = z(ce), {
|
|
3976
|
+
tableRef: V,
|
|
3977
|
+
keyword: _,
|
|
3978
|
+
search: m,
|
|
3979
|
+
reset: i
|
|
3980
|
+
} = J(U);
|
|
3981
|
+
return (u, n) => {
|
|
3982
|
+
const w = r("el-date-picker"), s = r("el-space"), c = r("el-page-header"), f = r("el-card");
|
|
3983
|
+
return M(), q(f, {
|
|
3939
3984
|
class: "basic-card flex-full",
|
|
3940
3985
|
"body-class": "flex-1"
|
|
3941
3986
|
}, {
|
|
3942
|
-
header: o(() => [l(
|
|
3987
|
+
header: o(() => [l(c, {
|
|
3943
3988
|
class: "basic-header"
|
|
3944
3989
|
}, {
|
|
3945
3990
|
title: o(() => [l(e(K), {
|
|
3946
|
-
loading: e(
|
|
3947
|
-
onRefresh: e(
|
|
3991
|
+
loading: e(k),
|
|
3992
|
+
onRefresh: e(i)
|
|
3948
3993
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
3949
|
-
content: o(() => [l(
|
|
3994
|
+
content: o(() => [l(s, {
|
|
3950
3995
|
class: "search-bar"
|
|
3951
3996
|
}, {
|
|
3952
3997
|
default: o(() => [l(w, {
|
|
3953
|
-
modelValue: e(
|
|
3954
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
3998
|
+
modelValue: e(_).dates,
|
|
3999
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => e(_).dates = b),
|
|
3955
4000
|
class: "basic-search-daterange",
|
|
3956
|
-
"value-format": e(
|
|
3957
|
-
format: e(
|
|
4001
|
+
"value-format": e(E).DATE_FORMAT,
|
|
4002
|
+
format: e(E).DATE_FORMAT,
|
|
3958
4003
|
type: "daterange",
|
|
3959
4004
|
"range-separator": "-",
|
|
3960
4005
|
"start-placeholder": e(a)("base.start_at"),
|
|
3961
4006
|
"end-placeholder": e(a)("base.end_at"),
|
|
3962
4007
|
clearable: !1,
|
|
3963
|
-
onChange: n[1] || (n[1] = (
|
|
4008
|
+
onChange: n[1] || (n[1] = (b) => e(m)())
|
|
3964
4009
|
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(de), {
|
|
3965
|
-
disabled: e(
|
|
3966
|
-
onSearch: n[2] || (n[2] = (
|
|
4010
|
+
disabled: e(k),
|
|
4011
|
+
onSearch: n[2] || (n[2] = (b) => e(m)())
|
|
3967
4012
|
}, null, 8, ["disabled"])]),
|
|
3968
4013
|
_: 1
|
|
3969
4014
|
})]),
|
|
@@ -3971,18 +4016,18 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3971
4016
|
})]),
|
|
3972
4017
|
default: o(() => [l(e(ie), {
|
|
3973
4018
|
ref_key: "tableRef",
|
|
3974
|
-
ref:
|
|
4019
|
+
ref: V,
|
|
3975
4020
|
size: "small",
|
|
3976
4021
|
columns: v,
|
|
3977
4022
|
url: e(ce).urls.sql,
|
|
3978
|
-
"search-param": e(
|
|
4023
|
+
"search-param": e(_),
|
|
3979
4024
|
"auto-search": ""
|
|
3980
4025
|
}, null, 8, ["url", "search-param"])]),
|
|
3981
4026
|
_: 1
|
|
3982
4027
|
});
|
|
3983
4028
|
};
|
|
3984
4029
|
}
|
|
3985
|
-
}),
|
|
4030
|
+
}), la = /* @__PURE__ */ O({
|
|
3986
4031
|
__name: "LanguageSelect",
|
|
3987
4032
|
props: {
|
|
3988
4033
|
modelValue: {
|
|
@@ -4007,47 +4052,47 @@ const Hl = /* @__PURE__ */ O({
|
|
|
4007
4052
|
setup(x, {
|
|
4008
4053
|
emit: U
|
|
4009
4054
|
}) {
|
|
4010
|
-
const v = U,
|
|
4011
|
-
requesting:
|
|
4012
|
-
} =
|
|
4013
|
-
value:
|
|
4014
|
-
options:
|
|
4015
|
-
change:
|
|
4016
|
-
} = te(
|
|
4055
|
+
const v = U, k = x, {
|
|
4056
|
+
requesting: V
|
|
4057
|
+
} = z(W), {
|
|
4058
|
+
value: _,
|
|
4059
|
+
options: m,
|
|
4060
|
+
change: i
|
|
4061
|
+
} = re(te(k, "modelValue"), v, {
|
|
4017
4062
|
key: "LANGUAGE_SELECT",
|
|
4018
|
-
url:
|
|
4019
|
-
api:
|
|
4063
|
+
url: W.urls.languages,
|
|
4064
|
+
api: W,
|
|
4020
4065
|
isArray: !0
|
|
4021
4066
|
}, {
|
|
4022
|
-
formatOptions: (
|
|
4067
|
+
formatOptions: (u) => u.map((n) => ({
|
|
4023
4068
|
value: n,
|
|
4024
4069
|
label: n
|
|
4025
4070
|
}))
|
|
4026
4071
|
});
|
|
4027
|
-
return (
|
|
4028
|
-
const w = r("el-radio-button"),
|
|
4029
|
-
return M(),
|
|
4030
|
-
modelValue: e(
|
|
4031
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
4032
|
-
disabled: e(
|
|
4033
|
-
onChange: e(
|
|
4072
|
+
return (u, n) => {
|
|
4073
|
+
const w = r("el-radio-button"), s = r("el-radio-group");
|
|
4074
|
+
return M(), q(s, {
|
|
4075
|
+
modelValue: e(_),
|
|
4076
|
+
"onUpdate:modelValue": n[0] || (n[0] = (c) => F(_) ? _.value = c : null),
|
|
4077
|
+
disabled: e(V),
|
|
4078
|
+
onChange: e(i)
|
|
4034
4079
|
}, {
|
|
4035
|
-
default: o(() => [(M(!0),
|
|
4036
|
-
key:
|
|
4037
|
-
value:
|
|
4080
|
+
default: o(() => [(M(!0), B(G, null, ae(e(m), (c) => (M(), q(w, {
|
|
4081
|
+
key: c.value,
|
|
4082
|
+
value: c.value
|
|
4038
4083
|
}, {
|
|
4039
|
-
default: o(() => [
|
|
4084
|
+
default: o(() => [j("span", null, I(c.label), 1)]),
|
|
4040
4085
|
_: 2
|
|
4041
4086
|
}, 1032, ["value"]))), 128))]),
|
|
4042
4087
|
_: 1
|
|
4043
4088
|
}, 8, ["modelValue", "disabled", "onChange"]);
|
|
4044
4089
|
};
|
|
4045
4090
|
}
|
|
4046
|
-
}),
|
|
4091
|
+
}), Bl = () => import("./index-SHsqnbNG.js"), Pl = () => import("./index-CJMTIvHk.js"), jl = () => import("./index-BMn8mAns.js"), aa = [
|
|
4047
4092
|
{
|
|
4048
4093
|
path: nl,
|
|
4049
4094
|
name: "RequestLog",
|
|
4050
|
-
component:
|
|
4095
|
+
component: Bl,
|
|
4051
4096
|
meta: {
|
|
4052
4097
|
title: a("menu.RequestLog")
|
|
4053
4098
|
}
|
|
@@ -4055,7 +4100,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
4055
4100
|
{
|
|
4056
4101
|
path: tl,
|
|
4057
4102
|
name: "ErrorLog",
|
|
4058
|
-
component:
|
|
4103
|
+
component: Pl,
|
|
4059
4104
|
meta: {
|
|
4060
4105
|
title: a("menu.ErrorLog")
|
|
4061
4106
|
}
|
|
@@ -4063,33 +4108,33 @@ const Hl = /* @__PURE__ */ O({
|
|
|
4063
4108
|
{
|
|
4064
4109
|
path: rl,
|
|
4065
4110
|
name: "SqlLog",
|
|
4066
|
-
component:
|
|
4111
|
+
component: jl,
|
|
4067
4112
|
meta: {
|
|
4068
4113
|
title: a("menu.SqlLog")
|
|
4069
4114
|
}
|
|
4070
4115
|
}
|
|
4071
|
-
],
|
|
4116
|
+
], oa = {
|
|
4072
4117
|
install: (x) => {
|
|
4073
4118
|
Reflect.ownKeys(x._context.provides).some((U) => String(U) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app.", Reflect.ownKeys(x._context.provides));
|
|
4074
4119
|
},
|
|
4075
4120
|
version: "__VERSION__"
|
|
4076
|
-
},
|
|
4121
|
+
}, na = /* @__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) });
|
|
4077
4122
|
export {
|
|
4078
|
-
|
|
4079
|
-
|
|
4123
|
+
Jl as AdminsPage,
|
|
4124
|
+
Sl as DomainProviderSelect,
|
|
4080
4125
|
Ie as DomainSelect,
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4126
|
+
Zl as ErrorLogsPage,
|
|
4127
|
+
la as LanguageSelect,
|
|
4128
|
+
Ql as LanguagesPage,
|
|
4129
|
+
aa as LogRoutes,
|
|
4085
4130
|
ml as MenuSelect,
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4131
|
+
Yl as MenusPage,
|
|
4132
|
+
Xl as RequestLogsPage,
|
|
4133
|
+
Hl as RolesPage,
|
|
4134
|
+
ea as SQLLogsPage,
|
|
4135
|
+
zl as SitePage,
|
|
4136
|
+
ql as SiteSelect,
|
|
4092
4137
|
il as TopMenuSelect,
|
|
4093
|
-
|
|
4094
|
-
|
|
4138
|
+
na as basicModules,
|
|
4139
|
+
oa as default
|
|
4095
4140
|
};
|