auto-vue-basic 0.0.94 → 0.0.96
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 +1457 -1411
- 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
|
|
16
|
+
const w = U, k = x, { requesting: V } = z(Q), { value: _, options: m, change: i, refresh: u, filterOptions: n } = re(te(k, "modelValue"), w, {
|
|
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 (
|
|
23
|
-
const
|
|
24
|
-
return M(),
|
|
22
|
+
return (v, 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)
|
|
@@ -58,8 +58,8 @@ const ul = {
|
|
|
58
58
|
}), pl = /* @__PURE__ */ O({
|
|
59
59
|
__name: "MenuFormModal",
|
|
60
60
|
emits: ["refresh"],
|
|
61
|
-
setup(x, { expose: U, emit:
|
|
62
|
-
const
|
|
61
|
+
setup(x, { expose: U, emit: w }) {
|
|
62
|
+
const k = w, 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: v, 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(
|
|
148
|
+
rules: _,
|
|
149
|
+
disabled: e(v) || 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
|
|
446
|
-
return (
|
|
447
|
-
const
|
|
448
|
-
return M(),
|
|
445
|
+
const w = U, k = x, { requesting: V } = z(Q), { value: _, options: m, change: i, refresh: u, filterOptions: n } = re(te(k, "modelValue"), w, { key: "MENU_LIST", api: Q, isArray: !0 });
|
|
446
|
+
return (v, 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)
|
|
@@ -481,8 +481,8 @@ const ul = {
|
|
|
481
481
|
}), cl = /* @__PURE__ */ O({
|
|
482
482
|
__name: "MenuRuleFormModal",
|
|
483
483
|
emits: ["refresh"],
|
|
484
|
-
setup(x, { expose: U, emit:
|
|
485
|
-
const
|
|
484
|
+
setup(x, { expose: U, emit: w }) {
|
|
485
|
+
const k = w, 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: v, 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(
|
|
552
|
+
rules: _,
|
|
553
|
+
disabled: e(v) || 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
|
-
},
|
|
671
|
+
}, w = 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"),
|
|
@@ -725,7 +725,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
725
725
|
row: t
|
|
726
726
|
}) => l(r("el-space"), null, {
|
|
727
727
|
default: () => [t.rules?.map((d) => l(r("el-popover"), {
|
|
728
|
-
visible:
|
|
728
|
+
visible: w.value === d.key,
|
|
729
729
|
title: a("message.warning"),
|
|
730
730
|
placement: "top-end",
|
|
731
731
|
width: 220
|
|
@@ -737,25 +737,25 @@ const Gl = /* @__PURE__ */ O({
|
|
|
737
737
|
onClick: () => D({
|
|
738
738
|
key: d.key
|
|
739
739
|
}),
|
|
740
|
-
onClose: () =>
|
|
740
|
+
onClose: () => w.value = d.key
|
|
741
741
|
}, {
|
|
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
|
-
onClick: () =>
|
|
752
|
-
},
|
|
753
|
-
default: () => [
|
|
751
|
+
onClick: () => w.value = ""
|
|
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,80 +781,80 @@ 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
|
-
reset:
|
|
800
|
-
openFormModal:
|
|
801
|
-
editFormModal:
|
|
802
|
-
} =
|
|
799
|
+
reset: v,
|
|
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]({
|
|
808
808
|
key: t
|
|
809
809
|
}).then(() => {
|
|
810
|
-
|
|
810
|
+
w.value = "", n();
|
|
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
|
-
onClick: d[5] || (d[5] = () =>
|
|
818
|
+
onClick: d[5] || (d[5] = () => w.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(
|
|
825
|
-
onRefresh: e(
|
|
826
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
|
827
|
-
onOpen: e(
|
|
828
|
-
}, null, 8, ["onOpen"]), l(
|
|
824
|
+
loading: e(V),
|
|
825
|
+
onRefresh: e(v)
|
|
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,139 +880,139 @@ 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 },
|
|
887
887
|
disabled: { type: Boolean, default: !1 }
|
|
888
888
|
},
|
|
889
889
|
emits: ["update:modelValue"],
|
|
890
|
-
setup(x, { expose: U, emit:
|
|
891
|
-
const { requesting:
|
|
890
|
+
setup(x, { expose: U, emit: w }) {
|
|
891
|
+
const { requesting: k } = z(Q), V = x, _ = w, m = H(!1), i = Ke({
|
|
892
892
|
checkAll: !1,
|
|
893
893
|
indeterminate: !1,
|
|
894
894
|
MenuAll: {},
|
|
895
895
|
MenuList: {},
|
|
896
896
|
MenuIndeterminate: {}
|
|
897
|
-
}), { options:
|
|
898
|
-
function
|
|
899
|
-
|
|
900
|
-
R.rules?.length && (
|
|
897
|
+
}), { options: u, refresh: n } = re(te(V, "modelValue"), _, { key: "RULE_CHECK", api: Q, url: Q.urls.rules, isArray: !0 }, { autoRefresh: !1 });
|
|
898
|
+
function v() {
|
|
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 = {}, v(), _("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))
|
|
@@ -1030,15 +1030,15 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
1032
|
}), Ee = (x, U) => {
|
|
1033
|
-
const
|
|
1034
|
-
for (const [
|
|
1035
|
-
|
|
1036
|
-
return
|
|
1033
|
+
const w = x.__vccOpts || x;
|
|
1034
|
+
for (const [k, V] of U)
|
|
1035
|
+
w[k] = V;
|
|
1036
|
+
return w;
|
|
1037
1037
|
}, gl = /* @__PURE__ */ Ee(_l, [["__scopeId", "data-v-7adb5f76"]]), hl = /* @__PURE__ */ O({
|
|
1038
1038
|
__name: "RoleFormModal",
|
|
1039
1039
|
emits: ["refresh"],
|
|
1040
|
-
setup(x, { expose: U, emit:
|
|
1041
|
-
const
|
|
1040
|
+
setup(x, { expose: U, emit: w }) {
|
|
1041
|
+
const k = w, 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: v, 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
|
-
model: e(
|
|
1085
|
+
model: e(v),
|
|
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
|
-
modelValue: e(
|
|
1102
|
-
"onUpdate:modelValue":
|
|
1101
|
+
modelValue: e(v).module,
|
|
1102
|
+
"onUpdate:modelValue": p[0] || (p[0] = (L) => e(v).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
|
-
modelValue: e(
|
|
1121
|
-
"onUpdate:modelValue":
|
|
1120
|
+
modelValue: e(v).sort,
|
|
1121
|
+
"onUpdate:modelValue": p[1] || (p[1] = (L) => e(v).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
|
-
modelValue: e(
|
|
1141
|
-
"onUpdate:modelValue":
|
|
1140
|
+
modelValue: e(v).name,
|
|
1141
|
+
"onUpdate:modelValue": p[2] || (p[2] = (L) => e(v).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
|
-
modelValue: e(
|
|
1154
|
-
"onUpdate:modelValue":
|
|
1153
|
+
modelValue: e(v).en_name,
|
|
1154
|
+
"onUpdate:modelValue": p[3] || (p[3] = (L) => e(v).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
|
-
modelValue: e(
|
|
1167
|
-
"onUpdate:modelValue":
|
|
1166
|
+
modelValue: e(v).remark,
|
|
1167
|
+
"onUpdate:modelValue": p[4] || (p[4] = (L) => e(v).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:
|
|
1181
|
-
modelValue: e(
|
|
1182
|
-
"onUpdate:modelValue":
|
|
1183
|
-
disabled: e(
|
|
1180
|
+
ref: V,
|
|
1181
|
+
modelValue: e(v).rules,
|
|
1182
|
+
"onUpdate:modelValue": p[5] || (p[5] = (L) => e(v).rules = L),
|
|
1183
|
+
disabled: e(s) || e(c)
|
|
1184
1184
|
}, null, 8, ["modelValue", "disabled"])
|
|
1185
1185
|
]),
|
|
1186
1186
|
_: 1
|
|
@@ -1193,12 +1193,12 @@ 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 = {
|
|
1200
1200
|
keyword: ""
|
|
1201
|
-
},
|
|
1201
|
+
}, w = [
|
|
1202
1202
|
{
|
|
1203
1203
|
label: a("base.sort"),
|
|
1204
1204
|
prop: "sort",
|
|
@@ -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
|
-
openFormModal:
|
|
1252
|
-
editFormModal:
|
|
1253
|
-
} =
|
|
1254
|
-
return (
|
|
1255
|
-
const
|
|
1256
|
-
return M(),
|
|
1251
|
+
openFormModal: v,
|
|
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(
|
|
1267
|
-
onOpen: e(
|
|
1264
|
+
loading: e(k),
|
|
1265
|
+
onRefresh: e(u)
|
|
1266
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
1267
|
+
onOpen: e(v)
|
|
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:
|
|
1291
|
-
columns:
|
|
1290
|
+
ref: V,
|
|
1291
|
+
columns: w,
|
|
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
|
|
1339
|
-
requesting:
|
|
1340
|
-
} =
|
|
1341
|
-
value:
|
|
1342
|
-
options:
|
|
1343
|
-
change:
|
|
1344
|
-
refresh:
|
|
1338
|
+
const w = 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"), w, {
|
|
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 (
|
|
1353
|
-
const
|
|
1354
|
-
return M(),
|
|
1352
|
+
return (v, 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
|
|
@@ -1383,8 +1383,8 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1383
1383
|
}), Vl = /* @__PURE__ */ O({
|
|
1384
1384
|
__name: "I18N",
|
|
1385
1385
|
emits: ["refresh"],
|
|
1386
|
-
setup(x, { expose: U, emit:
|
|
1387
|
-
const
|
|
1386
|
+
setup(x, { expose: U, emit: w }) {
|
|
1387
|
+
const k = w, 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:
|
|
1430
|
+
u();
|
|
1431
|
+
const { modal: n, title: v, 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] = (
|
|
1440
|
-
title: e(
|
|
1439
|
+
"onUpdate:modelValue": S[3] || (S[3] = (A) => F(n) ? n.value = A : null),
|
|
1440
|
+
title: e(v)(),
|
|
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,150 +1533,196 @@ 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: w
|
|
1546
|
+
}) {
|
|
1547
|
+
const k = w, {
|
|
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: v.value,
|
|
1604
|
+
onClick: () => p(g.uuid)
|
|
1605
|
+
}, null)]
|
|
1606
|
+
})
|
|
1607
|
+
}], {
|
|
1608
|
+
requesting: n,
|
|
1609
|
+
executing: v
|
|
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
|
-
|
|
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),
|
|
1647
|
+
disabled: e(v),
|
|
1659
1648
|
onRefresh: e(D)
|
|
1660
|
-
}, null, 8, ["onRefresh"])
|
|
1661
|
-
|
|
1649
|
+
}, null, 8, ["loading", "disabled", "onRefresh"]), l(e(P), {
|
|
1650
|
+
onOpen: e(t),
|
|
1651
|
+
disabled: e(n) || e(v)
|
|
1652
|
+
}, null, 8, ["onOpen", "disabled"])]),
|
|
1653
|
+
content: o(() => [l(L, {
|
|
1654
|
+
class: "search-bar"
|
|
1655
|
+
}, {
|
|
1656
|
+
default: o(() => [l(h, {
|
|
1657
|
+
style: {
|
|
1658
|
+
width: "160px"
|
|
1659
|
+
},
|
|
1660
|
+
modelValue: e(f).keyword,
|
|
1661
|
+
"onUpdate:modelValue": y[0] || (y[0] = ($) => e(f).keyword = $),
|
|
1662
|
+
disabled: e(n),
|
|
1663
|
+
placeholder: e(a)("placeholder.keyword"),
|
|
1664
|
+
clearable: "",
|
|
1665
|
+
onKeyup: y[1] || (y[1] = Ve(($) => e(b)(), ["enter"])),
|
|
1666
|
+
onClear: y[2] || (y[2] = ($) => e(b)())
|
|
1667
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"]), l(Fe, {
|
|
1668
|
+
modelValue: e(f).module,
|
|
1669
|
+
"onUpdate:modelValue": y[3] || (y[3] = ($) => e(f).module = $),
|
|
1670
|
+
clearable: !0,
|
|
1671
|
+
disabled: e(n),
|
|
1672
|
+
style: {
|
|
1673
|
+
width: "160px"
|
|
1674
|
+
}
|
|
1675
|
+
}, null, 8, ["modelValue", "disabled"]), l(A, {
|
|
1676
|
+
modelValue: e(f).status,
|
|
1677
|
+
"onUpdate:modelValue": y[4] || (y[4] = ($) => e(f).status = $),
|
|
1678
|
+
onChange: y[5] || (y[5] = ($) => e(b)()),
|
|
1679
|
+
disabled: e(n)
|
|
1680
|
+
}, {
|
|
1681
|
+
default: o(() => [(M(), B(G, null, ae([0, 1, 2], ($) => l(C, {
|
|
1682
|
+
key: $,
|
|
1683
|
+
label: e(a)(`status.${$}`),
|
|
1684
|
+
value: $
|
|
1685
|
+
}, null, 8, ["label", "value"])), 64))]),
|
|
1686
|
+
_: 1
|
|
1687
|
+
}, 8, ["modelValue", "disabled"]), l(e(de), {
|
|
1688
|
+
disabled: e(n),
|
|
1689
|
+
onSearch: y[6] || (y[6] = ($) => e(b)())
|
|
1690
|
+
}, null, 8, ["disabled"])]),
|
|
1691
|
+
_: 1
|
|
1692
|
+
})]),
|
|
1693
|
+
_: 1
|
|
1694
|
+
})]),
|
|
1695
|
+
default: o(() => [l(e(be), {
|
|
1696
|
+
ref_key: "tableRef",
|
|
1697
|
+
ref: s,
|
|
1698
|
+
columns: u,
|
|
1699
|
+
url: e(W).urls[e(ye)],
|
|
1700
|
+
"search-param": e(f),
|
|
1701
|
+
onRowDblclick: S,
|
|
1702
|
+
"auto-search": ""
|
|
1703
|
+
}, null, 8, ["url", "search-param"]), l(Vl, {
|
|
1704
|
+
ref_key: "formModalRef",
|
|
1705
|
+
ref: c,
|
|
1706
|
+
onRefresh: e(R)
|
|
1707
|
+
}, null, 8, ["onRefresh"])]),
|
|
1662
1708
|
_: 1
|
|
1663
1709
|
}, 8, ["modelValue", "onClosed"]);
|
|
1664
1710
|
};
|
|
1665
1711
|
}
|
|
1666
|
-
}),
|
|
1712
|
+
}), kl = { key: 0 }, vl = { key: 1 }, wl = /* @__PURE__ */ O({
|
|
1667
1713
|
__name: "template",
|
|
1668
1714
|
emits: ["refresh"],
|
|
1669
|
-
setup(x, { expose: U, emit:
|
|
1670
|
-
const
|
|
1715
|
+
setup(x, { expose: U, emit: w }) {
|
|
1716
|
+
const k = He(), V = () => k.value?.open(), _ = w, m = H("600px"), i = H({
|
|
1671
1717
|
"zh-CN": "primary",
|
|
1672
1718
|
"en-US": "success"
|
|
1673
|
-
}),
|
|
1719
|
+
}), u = H({}), n = {
|
|
1674
1720
|
uuid: "",
|
|
1675
1721
|
app: 1,
|
|
1676
1722
|
keys: "",
|
|
1677
1723
|
values: [],
|
|
1678
1724
|
remark: ""
|
|
1679
|
-
},
|
|
1725
|
+
}, v = {
|
|
1680
1726
|
app: [
|
|
1681
1727
|
{
|
|
1682
1728
|
required: !0,
|
|
@@ -1698,46 +1744,46 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1698
1744
|
trigger: "change"
|
|
1699
1745
|
}
|
|
1700
1746
|
]
|
|
1701
|
-
}, { modal:
|
|
1702
|
-
function
|
|
1703
|
-
|
|
1747
|
+
}, { modal: s, title: c, form: f, formData: b, requesting: D, executing: R, open: t, modify: d, submit: p, closed: S } = ee(_, n, ue);
|
|
1748
|
+
function g() {
|
|
1749
|
+
m.value = "1080px", V();
|
|
1704
1750
|
}
|
|
1705
|
-
function
|
|
1706
|
-
|
|
1751
|
+
function y() {
|
|
1752
|
+
m.value = "600px";
|
|
1707
1753
|
}
|
|
1708
|
-
function
|
|
1709
|
-
let
|
|
1710
|
-
|
|
1711
|
-
for (const
|
|
1712
|
-
|
|
1754
|
+
function h(L) {
|
|
1755
|
+
let T = L?.module?.toLowerCase() + "." + L.key.toLowerCase();
|
|
1756
|
+
b.keys = T, b.values.push(T);
|
|
1757
|
+
for (const $ in L.language)
|
|
1758
|
+
u.value[$] || (u.value[$] = []), u.value[$].push(L.language[$]);
|
|
1713
1759
|
}
|
|
1714
|
-
function
|
|
1715
|
-
|
|
1760
|
+
function C() {
|
|
1761
|
+
m.value = "600px", A();
|
|
1716
1762
|
}
|
|
1717
|
-
function
|
|
1718
|
-
|
|
1763
|
+
function A() {
|
|
1764
|
+
b.keys = "", b.values = [], u.value = {
|
|
1719
1765
|
"zh-CN": [],
|
|
1720
1766
|
"en-US": []
|
|
1721
1767
|
};
|
|
1722
1768
|
}
|
|
1723
|
-
return Le(() =>
|
|
1724
|
-
|
|
1769
|
+
return Le(() => s.value, (L) => {
|
|
1770
|
+
L ? C() : S();
|
|
1725
1771
|
}), U({
|
|
1726
1772
|
open: t,
|
|
1727
1773
|
modify: d
|
|
1728
|
-
}), (
|
|
1729
|
-
const
|
|
1730
|
-
return M(),
|
|
1731
|
-
modelValue: e(
|
|
1732
|
-
"onUpdate:modelValue":
|
|
1733
|
-
width:
|
|
1774
|
+
}), (L, T) => {
|
|
1775
|
+
const $ = r("el-page-header"), se = r("el-form-item"), Re = r("el-button"), N = r("el-input"), Be = r("el-tag"), Pe = r("el-space"), je = r("el-form");
|
|
1776
|
+
return M(), q(e(_e), {
|
|
1777
|
+
modelValue: e(s),
|
|
1778
|
+
"onUpdate:modelValue": T[3] || (T[3] = (Z) => F(s) ? s.value = Z : null),
|
|
1779
|
+
width: m.value,
|
|
1734
1780
|
"show-close": !1,
|
|
1735
1781
|
class: "basic-drawer"
|
|
1736
1782
|
}, {
|
|
1737
1783
|
title: o(() => [
|
|
1738
|
-
l(
|
|
1784
|
+
l($, { class: "basic-header" }, {
|
|
1739
1785
|
title: o(() => [
|
|
1740
|
-
|
|
1786
|
+
le(I(e(c)("i18n.template")), 1)
|
|
1741
1787
|
]),
|
|
1742
1788
|
extra: o(() => [
|
|
1743
1789
|
l(e(X), {
|
|
@@ -1745,7 +1791,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1745
1791
|
type: "default",
|
|
1746
1792
|
icon: "icon-clear",
|
|
1747
1793
|
loading: e(R),
|
|
1748
|
-
onClick:
|
|
1794
|
+
onClick: A
|
|
1749
1795
|
}, null, 8, ["loading"]),
|
|
1750
1796
|
l(e(X), {
|
|
1751
1797
|
circle: !1,
|
|
@@ -1754,19 +1800,19 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1754
1800
|
icon: "icon-save",
|
|
1755
1801
|
plain: !1,
|
|
1756
1802
|
loading: e(R),
|
|
1757
|
-
onClick: e(
|
|
1803
|
+
onClick: e(p)
|
|
1758
1804
|
}, null, 8, ["loading", "onClick"])
|
|
1759
1805
|
]),
|
|
1760
1806
|
_: 1
|
|
1761
1807
|
})
|
|
1762
1808
|
]),
|
|
1763
1809
|
default: o(() => [
|
|
1764
|
-
l(
|
|
1810
|
+
l(je, {
|
|
1765
1811
|
ref_key: "form",
|
|
1766
1812
|
ref: f,
|
|
1767
|
-
model: e(
|
|
1813
|
+
model: e(b),
|
|
1768
1814
|
"label-width": "auto",
|
|
1769
|
-
rules:
|
|
1815
|
+
rules: v,
|
|
1770
1816
|
disabled: e(D) || e(R)
|
|
1771
1817
|
}, {
|
|
1772
1818
|
default: o(() => [
|
|
@@ -1777,8 +1823,8 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1777
1823
|
}, {
|
|
1778
1824
|
default: o(() => [
|
|
1779
1825
|
l(e(qe), {
|
|
1780
|
-
modelValue: e(
|
|
1781
|
-
"onUpdate:modelValue":
|
|
1826
|
+
modelValue: e(b).app,
|
|
1827
|
+
"onUpdate:modelValue": T[0] || (T[0] = (Z) => e(b).app = Z),
|
|
1782
1828
|
"cache-key": "I18NAPPS",
|
|
1783
1829
|
hidden: [0],
|
|
1784
1830
|
url: e(ue).urls.apps
|
|
@@ -1792,15 +1838,15 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1792
1838
|
required: ""
|
|
1793
1839
|
}, {
|
|
1794
1840
|
default: o(() => [
|
|
1795
|
-
l(
|
|
1796
|
-
modelValue: e(
|
|
1797
|
-
"onUpdate:modelValue":
|
|
1841
|
+
l(N, {
|
|
1842
|
+
modelValue: e(b).keys,
|
|
1843
|
+
"onUpdate:modelValue": T[1] || (T[1] = (Z) => e(b).keys = Z),
|
|
1798
1844
|
placeholder: e(a)("i18n.placeholder.key")
|
|
1799
1845
|
}, {
|
|
1800
1846
|
append: o(() => [
|
|
1801
1847
|
l(Re, {
|
|
1802
1848
|
icon: e(sl),
|
|
1803
|
-
onClick:
|
|
1849
|
+
onClick: g
|
|
1804
1850
|
}, null, 8, ["icon"])
|
|
1805
1851
|
]),
|
|
1806
1852
|
_: 1
|
|
@@ -1814,7 +1860,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1814
1860
|
required: ""
|
|
1815
1861
|
}, {
|
|
1816
1862
|
default: o(() => [
|
|
1817
|
-
|
|
1863
|
+
le(I(e(b).values.join(":")), 1)
|
|
1818
1864
|
]),
|
|
1819
1865
|
_: 1
|
|
1820
1866
|
}, 8, ["label"]),
|
|
@@ -1822,22 +1868,22 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1822
1868
|
label: e(a)("i18n.values")
|
|
1823
1869
|
}, {
|
|
1824
1870
|
default: o(() => [
|
|
1825
|
-
(M(!0),
|
|
1871
|
+
(M(!0), B(G, null, ae(u.value, (Z, ke) => (M(), B("div", {
|
|
1826
1872
|
key: ke,
|
|
1827
1873
|
class: "w-full"
|
|
1828
1874
|
}, [
|
|
1829
1875
|
l(Pe, null, {
|
|
1830
1876
|
default: o(() => [
|
|
1831
1877
|
l(Be, {
|
|
1832
|
-
type:
|
|
1878
|
+
type: i.value[ke],
|
|
1833
1879
|
style: { "min-width": "80px" }
|
|
1834
1880
|
}, {
|
|
1835
1881
|
default: o(() => [
|
|
1836
|
-
|
|
1882
|
+
le(I(ke), 1)
|
|
1837
1883
|
]),
|
|
1838
1884
|
_: 2
|
|
1839
1885
|
}, 1032, ["type"]),
|
|
1840
|
-
ke == "zh-CN" ? (M(),
|
|
1886
|
+
ke == "zh-CN" ? (M(), B("span", kl, I(Z.join("")), 1)) : (M(), B("span", vl, I(Z.join(" ")), 1))
|
|
1841
1887
|
]),
|
|
1842
1888
|
_: 2
|
|
1843
1889
|
}, 1024)
|
|
@@ -1850,9 +1896,9 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1850
1896
|
prop: "remark"
|
|
1851
1897
|
}, {
|
|
1852
1898
|
default: o(() => [
|
|
1853
|
-
l(
|
|
1854
|
-
modelValue: e(
|
|
1855
|
-
"onUpdate:modelValue":
|
|
1899
|
+
l(N, {
|
|
1900
|
+
modelValue: e(b).remark,
|
|
1901
|
+
"onUpdate:modelValue": T[2] || (T[2] = (Z) => e(b).remark = Z),
|
|
1856
1902
|
placeholder: e(a)("placeholder.input")
|
|
1857
1903
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1858
1904
|
]),
|
|
@@ -1863,59 +1909,59 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1863
1909
|
}, 8, ["model", "disabled"]),
|
|
1864
1910
|
l(ze, {
|
|
1865
1911
|
ref_key: "I18nTableDrawerRef",
|
|
1866
|
-
ref:
|
|
1867
|
-
onChoosed:
|
|
1868
|
-
onClosed:
|
|
1912
|
+
ref: k,
|
|
1913
|
+
onChoosed: h,
|
|
1914
|
+
onClosed: y
|
|
1869
1915
|
}, null, 512)
|
|
1870
1916
|
]),
|
|
1871
1917
|
_: 1
|
|
1872
1918
|
}, 8, ["modelValue", "width"]);
|
|
1873
1919
|
};
|
|
1874
1920
|
}
|
|
1875
|
-
}),
|
|
1921
|
+
}), xl = Y.routineApi("gateway", "id", {
|
|
1876
1922
|
gen: "gen_translation"
|
|
1877
1923
|
});
|
|
1878
|
-
function
|
|
1879
|
-
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !
|
|
1924
|
+
function Rl(x) {
|
|
1925
|
+
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !De(x);
|
|
1880
1926
|
}
|
|
1881
|
-
const
|
|
1927
|
+
const Ql = /* @__PURE__ */ O({
|
|
1882
1928
|
__name: "index",
|
|
1883
1929
|
setup(x) {
|
|
1884
|
-
const U = ze,
|
|
1930
|
+
const U = ze, w = wl, k = {
|
|
1885
1931
|
keyword: "",
|
|
1886
1932
|
app: 0,
|
|
1887
1933
|
status: 0
|
|
1888
|
-
},
|
|
1889
|
-
row:
|
|
1934
|
+
}, V = ({
|
|
1935
|
+
row: y
|
|
1890
1936
|
}) => {
|
|
1891
|
-
let
|
|
1937
|
+
let h;
|
|
1892
1938
|
return l(r("el-tag"), {
|
|
1893
|
-
type: a("i18n.app.colors." +
|
|
1939
|
+
type: a("i18n.app.colors." + y.app),
|
|
1894
1940
|
style: "min-width: 80px"
|
|
1895
|
-
},
|
|
1896
|
-
default: () => [
|
|
1941
|
+
}, Rl(h = a("i18n.app." + y.app)) ? h : {
|
|
1942
|
+
default: () => [h]
|
|
1897
1943
|
});
|
|
1898
|
-
},
|
|
1899
|
-
row:
|
|
1944
|
+
}, _ = ({
|
|
1945
|
+
row: y
|
|
1900
1946
|
}) => l(r("el-space"), null, {
|
|
1901
|
-
default: () => [l(
|
|
1947
|
+
default: () => [l(ne, {
|
|
1902
1948
|
size: "default",
|
|
1903
|
-
disabled:
|
|
1949
|
+
disabled: u.value,
|
|
1904
1950
|
onModify: () => t({
|
|
1905
|
-
uuid:
|
|
1951
|
+
uuid: y.uuid
|
|
1906
1952
|
})
|
|
1907
1953
|
}, null), l(X, {
|
|
1908
1954
|
size: "default",
|
|
1909
1955
|
text: !0,
|
|
1910
1956
|
type: "danger",
|
|
1911
|
-
loading:
|
|
1912
|
-
onClick: () =>
|
|
1957
|
+
loading: u.value,
|
|
1958
|
+
onClick: () => p(y.uuid)
|
|
1913
1959
|
}, null)]
|
|
1914
|
-
}),
|
|
1960
|
+
}), m = [{
|
|
1915
1961
|
label: a("base.app"),
|
|
1916
1962
|
prop: "app",
|
|
1917
1963
|
width: 120,
|
|
1918
|
-
render:
|
|
1964
|
+
render: V
|
|
1919
1965
|
}, {
|
|
1920
1966
|
label: a("i18n.keys"),
|
|
1921
1967
|
prop: "keys",
|
|
@@ -1932,7 +1978,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
1932
1978
|
props: {
|
|
1933
1979
|
activeValue: 1,
|
|
1934
1980
|
inactiveValue: 2,
|
|
1935
|
-
api: ue.urls[
|
|
1981
|
+
api: ue.urls[Se],
|
|
1936
1982
|
refresh: !0
|
|
1937
1983
|
}
|
|
1938
1984
|
}, {
|
|
@@ -1952,42 +1998,42 @@ const Hl = /* @__PURE__ */ O({
|
|
|
1952
1998
|
label: a("base.action"),
|
|
1953
1999
|
width: 120,
|
|
1954
2000
|
align: "center",
|
|
1955
|
-
render:
|
|
2001
|
+
render: _
|
|
1956
2002
|
}], {
|
|
1957
|
-
requesting:
|
|
1958
|
-
executing:
|
|
1959
|
-
} =
|
|
2003
|
+
requesting: i,
|
|
2004
|
+
executing: u
|
|
2005
|
+
} = z(ue), {
|
|
1960
2006
|
tableRef: n,
|
|
1961
|
-
formModalRef:
|
|
1962
|
-
dialogRef:
|
|
1963
|
-
keyword:
|
|
2007
|
+
formModalRef: v,
|
|
2008
|
+
dialogRef: s,
|
|
2009
|
+
keyword: c,
|
|
1964
2010
|
search: f,
|
|
1965
|
-
reset:
|
|
2011
|
+
reset: b,
|
|
1966
2012
|
refresh: D,
|
|
1967
2013
|
openFormModal: R,
|
|
1968
2014
|
editFormModal: t,
|
|
1969
2015
|
openDialog: d
|
|
1970
|
-
} =
|
|
1971
|
-
function
|
|
2016
|
+
} = J(k);
|
|
2017
|
+
function p(y) {
|
|
1972
2018
|
return ue.remove({
|
|
1973
|
-
uuid:
|
|
2019
|
+
uuid: y
|
|
1974
2020
|
}).finally(() => {
|
|
1975
2021
|
D();
|
|
1976
2022
|
});
|
|
1977
2023
|
}
|
|
1978
2024
|
function S() {
|
|
1979
|
-
return
|
|
2025
|
+
return W.gen().finally(() => {
|
|
1980
2026
|
D();
|
|
1981
2027
|
});
|
|
1982
2028
|
}
|
|
1983
|
-
function
|
|
1984
|
-
|
|
2029
|
+
function g() {
|
|
2030
|
+
xl.gen().finally(() => {
|
|
1985
2031
|
D();
|
|
1986
2032
|
});
|
|
1987
2033
|
}
|
|
1988
|
-
return (
|
|
1989
|
-
const
|
|
1990
|
-
return M(),
|
|
2034
|
+
return (y, h) => {
|
|
2035
|
+
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");
|
|
2036
|
+
return M(), q(Re, {
|
|
1991
2037
|
class: "basic-card flex-full",
|
|
1992
2038
|
"body-class": "flex-1"
|
|
1993
2039
|
}, {
|
|
@@ -1995,45 +2041,45 @@ const Hl = /* @__PURE__ */ O({
|
|
|
1995
2041
|
class: "basic-header"
|
|
1996
2042
|
}, {
|
|
1997
2043
|
title: o(() => [l(e(K), {
|
|
1998
|
-
loading: e(
|
|
1999
|
-
onRefresh: e(
|
|
2000
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
|
2044
|
+
loading: e(i),
|
|
2045
|
+
onRefresh: e(b)
|
|
2046
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
2001
2047
|
onOpen: e(R)
|
|
2002
2048
|
}, null, 8, ["onOpen"])]),
|
|
2003
|
-
content: o(() => [l(
|
|
2049
|
+
content: o(() => [l(T, {
|
|
2004
2050
|
class: "search-bar"
|
|
2005
2051
|
}, {
|
|
2006
|
-
default: o(() => [l(
|
|
2052
|
+
default: o(() => [l(C, {
|
|
2007
2053
|
class: "basic-search-input",
|
|
2008
|
-
modelValue: e(
|
|
2009
|
-
"onUpdate:modelValue":
|
|
2010
|
-
disabled: e(
|
|
2054
|
+
modelValue: e(c).keyword,
|
|
2055
|
+
"onUpdate:modelValue": h[0] || (h[0] = (N) => e(c).keyword = N),
|
|
2056
|
+
disabled: e(i) || e(u),
|
|
2011
2057
|
placeholder: e(a)("placeholder.keyword"),
|
|
2012
2058
|
clearable: "",
|
|
2013
|
-
onKeyup:
|
|
2014
|
-
onClear:
|
|
2059
|
+
onKeyup: h[1] || (h[1] = Ve((N) => e(f)(), ["enter"])),
|
|
2060
|
+
onClear: h[2] || (h[2] = (N) => e(f)())
|
|
2015
2061
|
}, null, 8, ["modelValue", "disabled", "placeholder"]), l(e(qe), {
|
|
2016
|
-
modelValue: e(
|
|
2017
|
-
"onUpdate:modelValue":
|
|
2062
|
+
modelValue: e(c).app,
|
|
2063
|
+
"onUpdate:modelValue": h[3] || (h[3] = (N) => e(c).app = N),
|
|
2018
2064
|
"cache-key": "I18NAPPS",
|
|
2019
|
-
disabled: e(
|
|
2065
|
+
disabled: e(i) || e(u),
|
|
2020
2066
|
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:
|
|
2067
|
+
onChange: h[4] || (h[4] = (N) => e(f)())
|
|
2068
|
+
}, null, 8, ["modelValue", "disabled", "url"]), l(L, {
|
|
2069
|
+
modelValue: e(c).status,
|
|
2070
|
+
"onUpdate:modelValue": h[5] || (h[5] = (N) => e(c).status = N),
|
|
2071
|
+
disabled: e(i) || e(u),
|
|
2072
|
+
onChange: h[6] || (h[6] = (N) => e(f)())
|
|
2027
2073
|
}, {
|
|
2028
|
-
default: o(() => [(M(),
|
|
2029
|
-
key:
|
|
2030
|
-
label: e(a)(`status.${
|
|
2031
|
-
value:
|
|
2074
|
+
default: o(() => [(M(), B(G, null, ae([0, 1, 2], (N) => l(A, {
|
|
2075
|
+
key: N,
|
|
2076
|
+
label: e(a)(`status.${N}`),
|
|
2077
|
+
value: N
|
|
2032
2078
|
}, null, 8, ["label", "value"])), 64))]),
|
|
2033
2079
|
_: 1
|
|
2034
2080
|
}, 8, ["modelValue", "disabled"]), l(e(de), {
|
|
2035
|
-
disabled: e(
|
|
2036
|
-
onSearch:
|
|
2081
|
+
disabled: e(i) || e(u),
|
|
2082
|
+
onSearch: h[7] || (h[7] = (N) => e(f)())
|
|
2037
2083
|
}, null, 8, ["disabled"])]),
|
|
2038
2084
|
_: 1
|
|
2039
2085
|
})]),
|
|
@@ -2042,18 +2088,18 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2042
2088
|
type: "warning",
|
|
2043
2089
|
icon: "icon-cloud-upload",
|
|
2044
2090
|
plain: !1,
|
|
2045
|
-
loading: e(
|
|
2091
|
+
loading: e(u),
|
|
2046
2092
|
onClick: S
|
|
2047
2093
|
}, null, 8, ["loading"]), l(e(X), {
|
|
2048
2094
|
size: "default",
|
|
2049
2095
|
type: "danger",
|
|
2050
2096
|
icon: "icon-translate",
|
|
2051
2097
|
plain: !1,
|
|
2052
|
-
loading: e(
|
|
2053
|
-
onClick:
|
|
2054
|
-
}, null, 8, ["loading"]), l(
|
|
2098
|
+
loading: e(u),
|
|
2099
|
+
onClick: g
|
|
2100
|
+
}, null, 8, ["loading"]), l($, {
|
|
2055
2101
|
direction: "vertical"
|
|
2056
|
-
}), l(e(
|
|
2102
|
+
}), l(e(P), {
|
|
2057
2103
|
onOpen: e(d),
|
|
2058
2104
|
icon: "icon-en-US"
|
|
2059
2105
|
}, null, 8, ["onOpen"])]),
|
|
@@ -2062,27 +2108,27 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2062
2108
|
default: o(() => [l(e(be), {
|
|
2063
2109
|
ref_key: "tableRef",
|
|
2064
2110
|
ref: n,
|
|
2065
|
-
columns:
|
|
2111
|
+
columns: m,
|
|
2066
2112
|
url: e(ue).urls[e(ye)],
|
|
2067
|
-
"search-param": e(
|
|
2113
|
+
"search-param": e(c),
|
|
2068
2114
|
"auto-search": ""
|
|
2069
2115
|
}, null, 8, ["url", "search-param"]), l(e(U), {
|
|
2070
2116
|
ref_key: "I18nTableDrawerRef",
|
|
2071
|
-
ref:
|
|
2072
|
-
}, null, 512), l(e(
|
|
2117
|
+
ref: s
|
|
2118
|
+
}, null, 512), l(e(w), {
|
|
2073
2119
|
ref_key: "formModalRef",
|
|
2074
|
-
ref:
|
|
2120
|
+
ref: v,
|
|
2075
2121
|
onRefresh: e(D)
|
|
2076
2122
|
}, null, 8, ["onRefresh"])]),
|
|
2077
2123
|
_: 1
|
|
2078
2124
|
});
|
|
2079
2125
|
};
|
|
2080
2126
|
}
|
|
2081
|
-
}), Ue =
|
|
2127
|
+
}), Ue = Y.routineApi("admin", "key"), Ul = /* @__PURE__ */ O({
|
|
2082
2128
|
__name: "AdminFormModal",
|
|
2083
2129
|
emits: ["refresh"],
|
|
2084
|
-
setup(x, { expose: U, emit:
|
|
2085
|
-
const
|
|
2130
|
+
setup(x, { expose: U, emit: w }) {
|
|
2131
|
+
const k = w, V = {
|
|
2086
2132
|
key: "",
|
|
2087
2133
|
username: "",
|
|
2088
2134
|
password: "",
|
|
@@ -2091,7 +2137,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2091
2137
|
language: "zh-CN",
|
|
2092
2138
|
remark: "",
|
|
2093
2139
|
roles: []
|
|
2094
|
-
}, { modal:
|
|
2140
|
+
}, { modal: _, title: m, form: i, formData: u, requesting: n, executing: v, open: s, modify: c, submit: f, closed: b } = ee(k, V, Ue), D = {
|
|
2095
2141
|
username: [
|
|
2096
2142
|
{
|
|
2097
2143
|
required: !0,
|
|
@@ -2136,112 +2182,112 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2136
2182
|
trigger: "change"
|
|
2137
2183
|
}
|
|
2138
2184
|
]
|
|
2139
|
-
}, R =
|
|
2185
|
+
}, R = H([]), t = async () => {
|
|
2140
2186
|
const d = await we.list();
|
|
2141
2187
|
R.value = Array.isArray(d?.data) ? d.data : [];
|
|
2142
2188
|
};
|
|
2143
2189
|
return Qe(async () => {
|
|
2144
2190
|
await t();
|
|
2145
2191
|
}), 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(
|
|
2192
|
+
open: s,
|
|
2193
|
+
modify: c
|
|
2194
|
+
}), (d, p) => {
|
|
2195
|
+
const S = r("el-input"), g = r("el-form-item"), y = r("el-radio-button"), h = r("el-radio-group"), C = r("el-checkbox"), A = r("el-checkbox-group"), L = r("el-form");
|
|
2196
|
+
return M(), q(e(oe), {
|
|
2197
|
+
modelValue: e(_),
|
|
2198
|
+
"onUpdate:modelValue": p[7] || (p[7] = (T) => F(_) ? _.value = T : null),
|
|
2199
|
+
title: e(m)(),
|
|
2154
2200
|
width: "600px",
|
|
2155
|
-
executing: e(
|
|
2156
|
-
onClosed: e(
|
|
2201
|
+
executing: e(v),
|
|
2202
|
+
onClosed: e(b),
|
|
2157
2203
|
onSubmit: e(f)
|
|
2158
2204
|
}, {
|
|
2159
2205
|
default: o(() => [
|
|
2160
|
-
l(
|
|
2206
|
+
l(L, {
|
|
2161
2207
|
ref_key: "form",
|
|
2162
|
-
ref:
|
|
2163
|
-
model: e(
|
|
2208
|
+
ref: i,
|
|
2209
|
+
model: e(u),
|
|
2164
2210
|
"label-width": "auto",
|
|
2165
2211
|
rules: D,
|
|
2166
|
-
disabled: e(n) || e(
|
|
2212
|
+
disabled: e(n) || e(v)
|
|
2167
2213
|
}, {
|
|
2168
2214
|
default: o(() => [
|
|
2169
|
-
l(
|
|
2215
|
+
l(g, {
|
|
2170
2216
|
label: e(a)("base.username"),
|
|
2171
2217
|
prop: "username"
|
|
2172
2218
|
}, {
|
|
2173
2219
|
default: o(() => [
|
|
2174
2220
|
l(S, {
|
|
2175
|
-
modelValue: e(
|
|
2176
|
-
"onUpdate:modelValue":
|
|
2221
|
+
modelValue: e(u).username,
|
|
2222
|
+
"onUpdate:modelValue": p[0] || (p[0] = (T) => e(u).username = T),
|
|
2177
2223
|
placeholder: e(a)("placeholder.input"),
|
|
2178
2224
|
autocomplete: "off"
|
|
2179
2225
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2180
2226
|
]),
|
|
2181
2227
|
_: 1
|
|
2182
2228
|
}, 8, ["label"]),
|
|
2183
|
-
l(
|
|
2229
|
+
l(g, {
|
|
2184
2230
|
label: e(a)("base.phone"),
|
|
2185
2231
|
prop: "phone"
|
|
2186
2232
|
}, {
|
|
2187
2233
|
default: o(() => [
|
|
2188
2234
|
l(S, {
|
|
2189
|
-
modelValue: e(
|
|
2190
|
-
"onUpdate:modelValue":
|
|
2235
|
+
modelValue: e(u).phone,
|
|
2236
|
+
"onUpdate:modelValue": p[1] || (p[1] = (T) => e(u).phone = T),
|
|
2191
2237
|
placeholder: e(a)("placeholder.input"),
|
|
2192
2238
|
autocomplete: "off"
|
|
2193
2239
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2194
2240
|
]),
|
|
2195
2241
|
_: 1
|
|
2196
2242
|
}, 8, ["label"]),
|
|
2197
|
-
l(
|
|
2243
|
+
l(g, {
|
|
2198
2244
|
label: e(a)("base.password"),
|
|
2199
2245
|
prop: "password",
|
|
2200
|
-
required: !e(
|
|
2246
|
+
required: !e(u).key
|
|
2201
2247
|
}, {
|
|
2202
2248
|
default: o(() => [
|
|
2203
2249
|
l(S, {
|
|
2204
|
-
modelValue: e(
|
|
2205
|
-
"onUpdate:modelValue":
|
|
2250
|
+
modelValue: e(u).password,
|
|
2251
|
+
"onUpdate:modelValue": p[2] || (p[2] = (T) => e(u).password = T),
|
|
2206
2252
|
placeholder: e(a)("placeholder.input"),
|
|
2207
2253
|
autocomplete: "off"
|
|
2208
2254
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2209
2255
|
]),
|
|
2210
2256
|
_: 1
|
|
2211
2257
|
}, 8, ["label", "required"]),
|
|
2212
|
-
l(
|
|
2258
|
+
l(g, {
|
|
2213
2259
|
label: e(a)("base.email"),
|
|
2214
2260
|
prop: "email"
|
|
2215
2261
|
}, {
|
|
2216
2262
|
default: o(() => [
|
|
2217
2263
|
l(S, {
|
|
2218
|
-
modelValue: e(
|
|
2219
|
-
"onUpdate:modelValue":
|
|
2264
|
+
modelValue: e(u).email,
|
|
2265
|
+
"onUpdate:modelValue": p[3] || (p[3] = (T) => e(u).email = T),
|
|
2220
2266
|
placeholder: e(a)("placeholder.input"),
|
|
2221
2267
|
autocomplete: "off"
|
|
2222
2268
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2223
2269
|
]),
|
|
2224
2270
|
_: 1
|
|
2225
2271
|
}, 8, ["label"]),
|
|
2226
|
-
l(
|
|
2272
|
+
l(g, {
|
|
2227
2273
|
label: e(a)("base.language"),
|
|
2228
2274
|
prop: "language"
|
|
2229
2275
|
}, {
|
|
2230
2276
|
default: o(() => [
|
|
2231
|
-
l(
|
|
2232
|
-
modelValue: e(
|
|
2233
|
-
"onUpdate:modelValue":
|
|
2277
|
+
l(h, {
|
|
2278
|
+
modelValue: e(u).language,
|
|
2279
|
+
"onUpdate:modelValue": p[4] || (p[4] = (T) => e(u).language = T)
|
|
2234
2280
|
}, {
|
|
2235
2281
|
default: o(() => [
|
|
2236
|
-
l(
|
|
2237
|
-
default: o(() => [...
|
|
2238
|
-
|
|
2282
|
+
l(y, { value: "zh-CN" }, {
|
|
2283
|
+
default: o(() => [...p[8] || (p[8] = [
|
|
2284
|
+
le("zh-CN", -1)
|
|
2239
2285
|
])]),
|
|
2240
2286
|
_: 1
|
|
2241
2287
|
}),
|
|
2242
|
-
l(
|
|
2243
|
-
default: o(() => [...
|
|
2244
|
-
|
|
2288
|
+
l(y, { value: "en-US" }, {
|
|
2289
|
+
default: o(() => [...p[9] || (p[9] = [
|
|
2290
|
+
le("en-US", -1)
|
|
2245
2291
|
])]),
|
|
2246
2292
|
_: 1
|
|
2247
2293
|
})
|
|
@@ -2251,22 +2297,22 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2251
2297
|
]),
|
|
2252
2298
|
_: 1
|
|
2253
2299
|
}, 8, ["label"]),
|
|
2254
|
-
l(
|
|
2300
|
+
l(g, {
|
|
2255
2301
|
label: e(a)("menu.Role"),
|
|
2256
2302
|
prop: "roles"
|
|
2257
2303
|
}, {
|
|
2258
2304
|
default: o(() => [
|
|
2259
|
-
l(
|
|
2260
|
-
modelValue: e(
|
|
2261
|
-
"onUpdate:modelValue":
|
|
2305
|
+
l(A, {
|
|
2306
|
+
modelValue: e(u).roles,
|
|
2307
|
+
"onUpdate:modelValue": p[5] || (p[5] = (T) => e(u).roles = T)
|
|
2262
2308
|
}, {
|
|
2263
2309
|
default: o(() => [
|
|
2264
|
-
(M(!0),
|
|
2265
|
-
key:
|
|
2266
|
-
value:
|
|
2310
|
+
(M(!0), B(G, null, ae(R.value, (T) => (M(), q(C, {
|
|
2311
|
+
key: T.key,
|
|
2312
|
+
value: T.key
|
|
2267
2313
|
}, {
|
|
2268
2314
|
default: o(() => [
|
|
2269
|
-
|
|
2315
|
+
le(I(T.translate), 1)
|
|
2270
2316
|
]),
|
|
2271
2317
|
_: 2
|
|
2272
2318
|
}, 1032, ["value"]))), 128))
|
|
@@ -2276,14 +2322,14 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2276
2322
|
]),
|
|
2277
2323
|
_: 1
|
|
2278
2324
|
}, 8, ["label"]),
|
|
2279
|
-
l(
|
|
2325
|
+
l(g, {
|
|
2280
2326
|
label: e(a)("base.remark"),
|
|
2281
2327
|
prop: "remark"
|
|
2282
2328
|
}, {
|
|
2283
2329
|
default: o(() => [
|
|
2284
2330
|
l(S, {
|
|
2285
|
-
modelValue: e(
|
|
2286
|
-
"onUpdate:modelValue":
|
|
2331
|
+
modelValue: e(u).remark,
|
|
2332
|
+
"onUpdate:modelValue": p[6] || (p[6] = (T) => e(u).remark = T),
|
|
2287
2333
|
placeholder: e(a)("placeholder.input")
|
|
2288
2334
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2289
2335
|
]),
|
|
@@ -2297,31 +2343,31 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2297
2343
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2298
2344
|
};
|
|
2299
2345
|
}
|
|
2300
|
-
}),
|
|
2346
|
+
}), Jl = /* @__PURE__ */ O({
|
|
2301
2347
|
__name: "index",
|
|
2302
2348
|
setup(x) {
|
|
2303
2349
|
const U = {
|
|
2304
2350
|
keyword: ""
|
|
2305
|
-
},
|
|
2351
|
+
}, w = [{
|
|
2306
2352
|
label: a("base.avatar"),
|
|
2307
2353
|
prop: "avatar",
|
|
2308
2354
|
width: 60,
|
|
2309
2355
|
render: ({
|
|
2310
|
-
row:
|
|
2356
|
+
row: c
|
|
2311
2357
|
}) => l(el, {
|
|
2312
|
-
src:
|
|
2358
|
+
src: c.avatar
|
|
2313
2359
|
}, null)
|
|
2314
2360
|
}, {
|
|
2315
2361
|
label: a("base.user"),
|
|
2316
2362
|
width: 200,
|
|
2317
2363
|
align: "left",
|
|
2318
2364
|
render: ({
|
|
2319
|
-
row:
|
|
2365
|
+
row: c
|
|
2320
2366
|
}) => l(r("el-space"), {
|
|
2321
2367
|
direction: "vertical",
|
|
2322
2368
|
alignment: "start"
|
|
2323
2369
|
}, {
|
|
2324
|
-
default: () => [l("div", null, [
|
|
2370
|
+
default: () => [l("div", null, [c.username]), l("div", null, [c.email])]
|
|
2325
2371
|
})
|
|
2326
2372
|
}, {
|
|
2327
2373
|
label: a("base.phone"),
|
|
@@ -2349,27 +2395,27 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2349
2395
|
width: 80,
|
|
2350
2396
|
align: "center",
|
|
2351
2397
|
render: ({
|
|
2352
|
-
row:
|
|
2353
|
-
}) => l(
|
|
2354
|
-
onModify: () =>
|
|
2355
|
-
key:
|
|
2398
|
+
row: c
|
|
2399
|
+
}) => l(ne, {
|
|
2400
|
+
onModify: () => s({
|
|
2401
|
+
key: c.key
|
|
2356
2402
|
})
|
|
2357
2403
|
}, null)
|
|
2358
2404
|
}], {
|
|
2359
|
-
requesting:
|
|
2360
|
-
} =
|
|
2361
|
-
tableRef:
|
|
2362
|
-
formModalRef:
|
|
2363
|
-
keyword:
|
|
2364
|
-
search:
|
|
2365
|
-
reset:
|
|
2405
|
+
requesting: k
|
|
2406
|
+
} = z(Ue), {
|
|
2407
|
+
tableRef: V,
|
|
2408
|
+
formModalRef: _,
|
|
2409
|
+
keyword: m,
|
|
2410
|
+
search: i,
|
|
2411
|
+
reset: u,
|
|
2366
2412
|
refresh: n,
|
|
2367
|
-
openFormModal:
|
|
2368
|
-
editFormModal:
|
|
2369
|
-
} =
|
|
2370
|
-
return (
|
|
2371
|
-
const
|
|
2372
|
-
return M(),
|
|
2413
|
+
openFormModal: v,
|
|
2414
|
+
editFormModal: s
|
|
2415
|
+
} = J(U);
|
|
2416
|
+
return (c, f) => {
|
|
2417
|
+
const b = r("el-input"), D = r("el-space"), R = r("el-page-header"), t = r("el-card");
|
|
2418
|
+
return M(), q(t, {
|
|
2373
2419
|
class: "basic-card flex-full",
|
|
2374
2420
|
"body-class": "flex-1"
|
|
2375
2421
|
}, {
|
|
@@ -2377,25 +2423,25 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2377
2423
|
class: "basic-header"
|
|
2378
2424
|
}, {
|
|
2379
2425
|
title: o(() => [l(e(K), {
|
|
2380
|
-
loading: e(
|
|
2381
|
-
onRefresh: e(
|
|
2382
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
|
2383
|
-
onOpen: e(
|
|
2426
|
+
loading: e(k),
|
|
2427
|
+
onRefresh: e(u)
|
|
2428
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
2429
|
+
onOpen: e(v)
|
|
2384
2430
|
}, null, 8, ["onOpen"])]),
|
|
2385
2431
|
content: o(() => [l(D, {
|
|
2386
2432
|
class: "search-bar"
|
|
2387
2433
|
}, {
|
|
2388
|
-
default: o(() => [l(
|
|
2434
|
+
default: o(() => [l(b, {
|
|
2389
2435
|
class: "basic-search-input",
|
|
2390
|
-
modelValue: e(
|
|
2391
|
-
"onUpdate:modelValue": f[0] || (f[0] = (d) => e(
|
|
2436
|
+
modelValue: e(m).keyword,
|
|
2437
|
+
"onUpdate:modelValue": f[0] || (f[0] = (d) => e(m).keyword = d),
|
|
2392
2438
|
placeholder: e(a)("placeholder.keyword"),
|
|
2393
2439
|
clearable: "",
|
|
2394
|
-
onKeyup: f[1] || (f[1] = Ve((d) => e(
|
|
2395
|
-
onClear: f[2] || (f[2] = (d) => e(
|
|
2440
|
+
onKeyup: f[1] || (f[1] = Ve((d) => e(i)(), ["enter"])),
|
|
2441
|
+
onClear: f[2] || (f[2] = (d) => e(i)())
|
|
2396
2442
|
}, null, 8, ["modelValue", "placeholder"]), l(e(de), {
|
|
2397
|
-
disabled: e(
|
|
2398
|
-
onSearch: f[3] || (f[3] = (d) => e(
|
|
2443
|
+
disabled: e(k),
|
|
2444
|
+
onSearch: f[3] || (f[3] = (d) => e(i)())
|
|
2399
2445
|
}, null, 8, ["disabled"])]),
|
|
2400
2446
|
_: 1
|
|
2401
2447
|
})]),
|
|
@@ -2403,24 +2449,24 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2403
2449
|
})]),
|
|
2404
2450
|
default: o(() => [l(e(be), {
|
|
2405
2451
|
ref_key: "tableRef",
|
|
2406
|
-
ref:
|
|
2452
|
+
ref: V,
|
|
2407
2453
|
size: "small",
|
|
2408
|
-
columns:
|
|
2454
|
+
columns: w,
|
|
2409
2455
|
url: e(Ue).urls[e(ye)],
|
|
2410
|
-
"search-param": e(
|
|
2456
|
+
"search-param": e(m),
|
|
2411
2457
|
"auto-search": ""
|
|
2412
|
-
}, null, 8, ["url", "search-param"]), l(
|
|
2458
|
+
}, null, 8, ["url", "search-param"]), l(Ul, {
|
|
2413
2459
|
ref_key: "formModalRef",
|
|
2414
|
-
ref:
|
|
2460
|
+
ref: _,
|
|
2415
2461
|
onRefresh: e(n)
|
|
2416
2462
|
}, null, 8, ["onRefresh"])]),
|
|
2417
2463
|
_: 1
|
|
2418
2464
|
});
|
|
2419
2465
|
};
|
|
2420
2466
|
}
|
|
2421
|
-
}),
|
|
2467
|
+
}), Al = {
|
|
2422
2468
|
check: "check"
|
|
2423
|
-
}, pe =
|
|
2469
|
+
}, pe = Y.routineApi("site", "id", Al), ge = Y.routineApi("domain"), Ie = /* @__PURE__ */ O({
|
|
2424
2470
|
__name: "DomainSelect",
|
|
2425
2471
|
props: {
|
|
2426
2472
|
modelValue: {
|
|
@@ -2435,45 +2481,45 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2435
2481
|
emits: ["update:modelValue", "change"],
|
|
2436
2482
|
setup(x, {
|
|
2437
2483
|
expose: U,
|
|
2438
|
-
emit:
|
|
2484
|
+
emit: w
|
|
2439
2485
|
}) {
|
|
2440
|
-
const
|
|
2441
|
-
requesting:
|
|
2442
|
-
} =
|
|
2443
|
-
|
|
2444
|
-
options:
|
|
2445
|
-
refresh:
|
|
2486
|
+
const k = w, V = x, {
|
|
2487
|
+
requesting: _
|
|
2488
|
+
} = z(ge), {
|
|
2489
|
+
id: m,
|
|
2490
|
+
options: i,
|
|
2491
|
+
refresh: u,
|
|
2446
2492
|
change: n
|
|
2447
|
-
} = te(
|
|
2493
|
+
} = re(te(V, "modelValue"), k, {
|
|
2448
2494
|
key: "DOMAIN_LIST",
|
|
2449
2495
|
api: ge,
|
|
2450
2496
|
isArray: !0
|
|
2451
2497
|
});
|
|
2452
2498
|
return U({
|
|
2453
|
-
refresh:
|
|
2454
|
-
}), (
|
|
2455
|
-
const
|
|
2456
|
-
return M(),
|
|
2457
|
-
modelValue: e(
|
|
2458
|
-
"onUpdate:modelValue":
|
|
2459
|
-
options: e(
|
|
2460
|
-
disabled: x.disabled || e(
|
|
2499
|
+
refresh: u
|
|
2500
|
+
}), (v, s) => {
|
|
2501
|
+
const c = r("el-select-v2");
|
|
2502
|
+
return M(), q(c, {
|
|
2503
|
+
modelValue: e(m),
|
|
2504
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => F(m) ? m.value = f : null),
|
|
2505
|
+
options: e(i),
|
|
2506
|
+
disabled: x.disabled || e(_),
|
|
2461
2507
|
placeholder: e(a)("base.select config.domain"),
|
|
2462
2508
|
onChange: e(n)
|
|
2463
2509
|
}, {
|
|
2464
2510
|
prefix: o(() => [l(e(fe), {
|
|
2465
|
-
loading: e(
|
|
2466
|
-
onRefresh: e(
|
|
2511
|
+
loading: e(_),
|
|
2512
|
+
onRefresh: e(u)
|
|
2467
2513
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
2468
2514
|
_: 1
|
|
2469
2515
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2470
2516
|
};
|
|
2471
2517
|
}
|
|
2472
|
-
}),
|
|
2518
|
+
}), Dl = /* @__PURE__ */ O({
|
|
2473
2519
|
__name: "SiteFormModal",
|
|
2474
2520
|
emits: ["refresh"],
|
|
2475
|
-
setup(x, { expose: U, emit:
|
|
2476
|
-
const
|
|
2521
|
+
setup(x, { expose: U, emit: w }) {
|
|
2522
|
+
const k = w, V = {
|
|
2477
2523
|
id: 0,
|
|
2478
2524
|
domain_id: 0,
|
|
2479
2525
|
prefix: "",
|
|
@@ -2483,34 +2529,34 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2483
2529
|
git: "",
|
|
2484
2530
|
status: 1,
|
|
2485
2531
|
remark: ""
|
|
2486
|
-
},
|
|
2532
|
+
}, _ = {
|
|
2487
2533
|
domain_id: [{ required: !0, message: a("placeholder.input config.domain"), trigger: "blur" }],
|
|
2488
2534
|
prefix: [{ required: !0, message: a("placeholder.input base.prefix"), trigger: "blur" }],
|
|
2489
2535
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
2490
2536
|
en_name: [{ required: !0, message: a("placeholder.input base.en_name"), trigger: "blur" }]
|
|
2491
|
-
}, { modal:
|
|
2537
|
+
}, { modal: m, title: i, form: u, formData: n, requesting: v, executing: s, open: c, modify: f, submit: b, closed: D } = ee(k, V, pe);
|
|
2492
2538
|
return U({
|
|
2493
|
-
open:
|
|
2539
|
+
open: c,
|
|
2494
2540
|
modify: f
|
|
2495
2541
|
}), (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(
|
|
2542
|
+
const d = r("el-form-item"), p = r("el-input"), S = r("el-form");
|
|
2543
|
+
return M(), q(e(oe), {
|
|
2544
|
+
modelValue: e(m),
|
|
2545
|
+
"onUpdate:modelValue": t[7] || (t[7] = (g) => F(m) ? m.value = g : null),
|
|
2546
|
+
title: e(i)("config.site"),
|
|
2501
2547
|
width: "600px",
|
|
2502
|
-
executing: e(
|
|
2548
|
+
executing: e(s),
|
|
2503
2549
|
onClosed: e(D),
|
|
2504
|
-
onSubmit: e(
|
|
2550
|
+
onSubmit: e(b)
|
|
2505
2551
|
}, {
|
|
2506
2552
|
default: o(() => [
|
|
2507
2553
|
l(S, {
|
|
2508
2554
|
ref_key: "form",
|
|
2509
|
-
ref:
|
|
2555
|
+
ref: u,
|
|
2510
2556
|
model: e(n),
|
|
2511
2557
|
"label-width": "auto",
|
|
2512
|
-
rules:
|
|
2513
|
-
disabled: e(
|
|
2558
|
+
rules: _,
|
|
2559
|
+
disabled: e(v) || e(s)
|
|
2514
2560
|
}, {
|
|
2515
2561
|
default: o(() => [
|
|
2516
2562
|
l(d, {
|
|
@@ -2520,8 +2566,8 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2520
2566
|
default: o(() => [
|
|
2521
2567
|
l(Ie, {
|
|
2522
2568
|
modelValue: e(n).domain_id,
|
|
2523
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2524
|
-
disabled: e(
|
|
2569
|
+
"onUpdate:modelValue": t[0] || (t[0] = (g) => e(n).domain_id = g),
|
|
2570
|
+
disabled: e(s)
|
|
2525
2571
|
}, null, 8, ["modelValue", "disabled"])
|
|
2526
2572
|
]),
|
|
2527
2573
|
_: 1
|
|
@@ -2531,10 +2577,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2531
2577
|
label: e(a)("config.prefix")
|
|
2532
2578
|
}, {
|
|
2533
2579
|
default: o(() => [
|
|
2534
|
-
l(
|
|
2580
|
+
l(p, {
|
|
2535
2581
|
modelValue: e(n).prefix,
|
|
2536
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
2537
|
-
disabled: e(
|
|
2582
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => e(n).prefix = g),
|
|
2583
|
+
disabled: e(s),
|
|
2538
2584
|
placeholder: e(a)("placeholder.input")
|
|
2539
2585
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2540
2586
|
]),
|
|
@@ -2545,10 +2591,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2545
2591
|
label: e(a)("base.name")
|
|
2546
2592
|
}, {
|
|
2547
2593
|
default: o(() => [
|
|
2548
|
-
l(
|
|
2594
|
+
l(p, {
|
|
2549
2595
|
modelValue: e(n).name,
|
|
2550
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
2551
|
-
disabled: e(
|
|
2596
|
+
"onUpdate:modelValue": t[2] || (t[2] = (g) => e(n).name = g),
|
|
2597
|
+
disabled: e(s),
|
|
2552
2598
|
placeholder: e(a)("placeholder.input")
|
|
2553
2599
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2554
2600
|
]),
|
|
@@ -2559,10 +2605,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2559
2605
|
label: e(a)("base.en_name")
|
|
2560
2606
|
}, {
|
|
2561
2607
|
default: o(() => [
|
|
2562
|
-
l(
|
|
2608
|
+
l(p, {
|
|
2563
2609
|
modelValue: e(n).en_name,
|
|
2564
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
2565
|
-
disabled: e(
|
|
2610
|
+
"onUpdate:modelValue": t[3] || (t[3] = (g) => e(n).en_name = g),
|
|
2611
|
+
disabled: e(s),
|
|
2566
2612
|
placeholder: e(a)("placeholder.input")
|
|
2567
2613
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2568
2614
|
]),
|
|
@@ -2573,10 +2619,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2573
2619
|
label: e(a)("config.dns")
|
|
2574
2620
|
}, {
|
|
2575
2621
|
default: o(() => [
|
|
2576
|
-
l(
|
|
2622
|
+
l(p, {
|
|
2577
2623
|
modelValue: e(n).dns,
|
|
2578
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
2579
|
-
disabled: e(
|
|
2624
|
+
"onUpdate:modelValue": t[4] || (t[4] = (g) => e(n).dns = g),
|
|
2625
|
+
disabled: e(s),
|
|
2580
2626
|
placeholder: e(a)("placeholder.input")
|
|
2581
2627
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2582
2628
|
]),
|
|
@@ -2587,10 +2633,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2587
2633
|
label: e(a)("config.git")
|
|
2588
2634
|
}, {
|
|
2589
2635
|
default: o(() => [
|
|
2590
|
-
l(
|
|
2636
|
+
l(p, {
|
|
2591
2637
|
modelValue: e(n).git,
|
|
2592
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
2593
|
-
disabled: e(
|
|
2638
|
+
"onUpdate:modelValue": t[5] || (t[5] = (g) => e(n).git = g),
|
|
2639
|
+
disabled: e(s),
|
|
2594
2640
|
placeholder: e(a)("placeholder.input")
|
|
2595
2641
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2596
2642
|
]),
|
|
@@ -2601,10 +2647,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2601
2647
|
label: e(a)("base.remark")
|
|
2602
2648
|
}, {
|
|
2603
2649
|
default: o(() => [
|
|
2604
|
-
l(
|
|
2650
|
+
l(p, {
|
|
2605
2651
|
modelValue: e(n).remark,
|
|
2606
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
2607
|
-
disabled: e(
|
|
2652
|
+
"onUpdate:modelValue": t[6] || (t[6] = (g) => e(n).remark = g),
|
|
2653
|
+
disabled: e(s),
|
|
2608
2654
|
placeholder: e(a)("placeholder.input")
|
|
2609
2655
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2610
2656
|
]),
|
|
@@ -2618,7 +2664,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2618
2664
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2619
2665
|
};
|
|
2620
2666
|
}
|
|
2621
|
-
}), he =
|
|
2667
|
+
}), he = Y.routineApi("domain_provider"), Sl = /* @__PURE__ */ O({
|
|
2622
2668
|
__name: "DomainProviderSelect",
|
|
2623
2669
|
props: {
|
|
2624
2670
|
modelValue: {
|
|
@@ -2633,77 +2679,77 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2633
2679
|
emits: ["update:modelValue", "change"],
|
|
2634
2680
|
setup(x, {
|
|
2635
2681
|
expose: U,
|
|
2636
|
-
emit:
|
|
2682
|
+
emit: w
|
|
2637
2683
|
}) {
|
|
2638
|
-
const
|
|
2639
|
-
requesting:
|
|
2640
|
-
} =
|
|
2641
|
-
|
|
2642
|
-
options:
|
|
2643
|
-
refresh:
|
|
2684
|
+
const k = w, V = x, {
|
|
2685
|
+
requesting: _
|
|
2686
|
+
} = z(he), {
|
|
2687
|
+
id: m,
|
|
2688
|
+
options: i,
|
|
2689
|
+
refresh: u,
|
|
2644
2690
|
change: n
|
|
2645
|
-
} = te(
|
|
2691
|
+
} = re(te(V, "modelValue"), k, {
|
|
2646
2692
|
key: "DOMAIN_PROVIDER_LIST",
|
|
2647
2693
|
api: he,
|
|
2648
2694
|
isArray: !0
|
|
2649
2695
|
});
|
|
2650
2696
|
return U({
|
|
2651
|
-
refresh:
|
|
2652
|
-
}), (
|
|
2653
|
-
const
|
|
2654
|
-
return M(),
|
|
2655
|
-
modelValue: e(
|
|
2656
|
-
"onUpdate:modelValue":
|
|
2657
|
-
options: e(
|
|
2658
|
-
disabled: x.disabled || e(
|
|
2697
|
+
refresh: u
|
|
2698
|
+
}), (v, s) => {
|
|
2699
|
+
const c = r("el-select-v2");
|
|
2700
|
+
return M(), q(c, {
|
|
2701
|
+
modelValue: e(m),
|
|
2702
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => F(m) ? m.value = f : null),
|
|
2703
|
+
options: e(i),
|
|
2704
|
+
disabled: x.disabled || e(_),
|
|
2659
2705
|
placeholder: e(a)("base.select config.domain config.provider"),
|
|
2660
2706
|
onChange: e(n)
|
|
2661
2707
|
}, {
|
|
2662
2708
|
prefix: o(() => [l(e(fe), {
|
|
2663
|
-
loading: e(
|
|
2664
|
-
onRefresh: e(
|
|
2709
|
+
loading: e(_),
|
|
2710
|
+
onRefresh: e(u)
|
|
2665
2711
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
2666
2712
|
_: 1
|
|
2667
2713
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2668
2714
|
};
|
|
2669
2715
|
}
|
|
2670
|
-
}),
|
|
2716
|
+
}), Ml = /* @__PURE__ */ O({
|
|
2671
2717
|
__name: "DomainFormModal",
|
|
2672
2718
|
emits: ["refresh"],
|
|
2673
|
-
setup(x, { expose: U, emit:
|
|
2674
|
-
const
|
|
2719
|
+
setup(x, { expose: U, emit: w }) {
|
|
2720
|
+
const k = w, V = {
|
|
2675
2721
|
id: 0,
|
|
2676
2722
|
provider_id: 0,
|
|
2677
2723
|
name: "",
|
|
2678
2724
|
expired_at: "",
|
|
2679
2725
|
status: 1,
|
|
2680
2726
|
remark: ""
|
|
2681
|
-
},
|
|
2727
|
+
}, _ = {
|
|
2682
2728
|
provider_id: [{ required: !0, message: a("placeholder.input config.domain config.provider"), trigger: "blur" }],
|
|
2683
2729
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }]
|
|
2684
|
-
}, { modal:
|
|
2730
|
+
}, { modal: m, title: i, form: u, formData: n, requesting: v, executing: s, open: c, modify: f, submit: b, closed: D } = ee(k, V, ge);
|
|
2685
2731
|
return U({
|
|
2686
|
-
open:
|
|
2732
|
+
open: c,
|
|
2687
2733
|
modify: f
|
|
2688
2734
|
}), (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(
|
|
2735
|
+
const d = r("el-form-item"), p = r("el-input"), S = r("el-date-picker"), g = r("el-form");
|
|
2736
|
+
return M(), q(e(oe), {
|
|
2737
|
+
modelValue: e(m),
|
|
2738
|
+
"onUpdate:modelValue": t[4] || (t[4] = (y) => F(m) ? m.value = y : null),
|
|
2739
|
+
title: e(i)("config.domain"),
|
|
2694
2740
|
width: "600px",
|
|
2695
|
-
executing: e(
|
|
2741
|
+
executing: e(s),
|
|
2696
2742
|
onClosed: e(D),
|
|
2697
|
-
onSubmit: e(
|
|
2743
|
+
onSubmit: e(b)
|
|
2698
2744
|
}, {
|
|
2699
2745
|
default: o(() => [
|
|
2700
|
-
l(
|
|
2746
|
+
l(g, {
|
|
2701
2747
|
ref_key: "form",
|
|
2702
|
-
ref:
|
|
2748
|
+
ref: u,
|
|
2703
2749
|
model: e(n),
|
|
2704
2750
|
"label-width": "auto",
|
|
2705
|
-
rules:
|
|
2706
|
-
disabled: e(
|
|
2751
|
+
rules: _,
|
|
2752
|
+
disabled: e(v) || e(s)
|
|
2707
2753
|
}, {
|
|
2708
2754
|
default: o(() => [
|
|
2709
2755
|
l(d, {
|
|
@@ -2711,10 +2757,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2711
2757
|
label: e(a)("config.provider")
|
|
2712
2758
|
}, {
|
|
2713
2759
|
default: o(() => [
|
|
2714
|
-
l(
|
|
2760
|
+
l(Sl, {
|
|
2715
2761
|
modelValue: e(n).provider_id,
|
|
2716
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2717
|
-
disabled: e(
|
|
2762
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => e(n).provider_id = y),
|
|
2763
|
+
disabled: e(s)
|
|
2718
2764
|
}, null, 8, ["modelValue", "disabled"])
|
|
2719
2765
|
]),
|
|
2720
2766
|
_: 1
|
|
@@ -2724,10 +2770,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2724
2770
|
label: e(a)("base.name")
|
|
2725
2771
|
}, {
|
|
2726
2772
|
default: o(() => [
|
|
2727
|
-
l(
|
|
2773
|
+
l(p, {
|
|
2728
2774
|
modelValue: e(n).name,
|
|
2729
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
2730
|
-
disabled: e(
|
|
2775
|
+
"onUpdate:modelValue": t[1] || (t[1] = (y) => e(n).name = y),
|
|
2776
|
+
disabled: e(s),
|
|
2731
2777
|
placeholder: e(a)("placeholder.input")
|
|
2732
2778
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2733
2779
|
]),
|
|
@@ -2743,10 +2789,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2743
2789
|
type: "date",
|
|
2744
2790
|
style: { width: "100%" },
|
|
2745
2791
|
modelValue: e(n).expired_at,
|
|
2746
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
2747
|
-
disabled: e(
|
|
2748
|
-
"value-format": e(
|
|
2749
|
-
format: e(
|
|
2792
|
+
"onUpdate:modelValue": t[2] || (t[2] = (y) => e(n).expired_at = y),
|
|
2793
|
+
disabled: e(s),
|
|
2794
|
+
"value-format": e(E).DATE_VALUE_FORMAT,
|
|
2795
|
+
format: e(E).DATE_FORMAT,
|
|
2750
2796
|
placeholder: e(a)("placeholder.select")
|
|
2751
2797
|
}, null, 8, ["modelValue", "disabled", "value-format", "format", "placeholder"])
|
|
2752
2798
|
]),
|
|
@@ -2757,10 +2803,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2757
2803
|
label: e(a)("base.remark")
|
|
2758
2804
|
}, {
|
|
2759
2805
|
default: o(() => [
|
|
2760
|
-
l(
|
|
2806
|
+
l(p, {
|
|
2761
2807
|
modelValue: e(n).remark,
|
|
2762
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
2763
|
-
disabled: e(
|
|
2808
|
+
"onUpdate:modelValue": t[3] || (t[3] = (y) => e(n).remark = y),
|
|
2809
|
+
disabled: e(s),
|
|
2764
2810
|
placeholder: e(a)("placeholder.input")
|
|
2765
2811
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
2766
2812
|
]),
|
|
@@ -2774,363 +2820,129 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2774
2820
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2775
2821
|
};
|
|
2776
2822
|
}
|
|
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",
|
|
2823
|
+
}), Cl = /* @__PURE__ */ O({
|
|
2824
|
+
__name: "DomainProviderFormModal",
|
|
2836
2825
|
emits: ["refresh"],
|
|
2837
|
-
setup(x, { expose: U, emit:
|
|
2838
|
-
const
|
|
2826
|
+
setup(x, { expose: U, emit: w }) {
|
|
2827
|
+
const k = w, V = {
|
|
2839
2828
|
id: 0,
|
|
2840
|
-
domain_id: void 0,
|
|
2841
|
-
client: "Lego",
|
|
2842
|
-
site_id: void 0,
|
|
2843
2829
|
name: "",
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2830
|
+
en_name: "",
|
|
2831
|
+
key: "",
|
|
2832
|
+
secret: "",
|
|
2833
|
+
end_point: "",
|
|
2834
|
+
status: 1,
|
|
2847
2835
|
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" }],
|
|
2836
|
+
}, _ = {
|
|
2851
2837
|
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2838
|
+
en_name: { required: !0, message: a("placeholder.input base.en_name"), trigger: "blur" },
|
|
2839
|
+
key: { required: !0, message: a("placeholder.input base.key"), trigger: "blur" },
|
|
2840
|
+
secret: { required: !0, message: a("placeholder.input config.secret"), trigger: "blur" },
|
|
2841
|
+
end_point: { required: !0, message: a("placeholder.input config.endpoint"), trigger: "blur" }
|
|
2842
|
+
}, { modal: m, title: i, form: u, formData: n, requesting: v, executing: s, open: c, modify: f, submit: b, closed: D } = ee(k, V, he);
|
|
2856
2843
|
return U({
|
|
2857
|
-
open:
|
|
2858
|
-
modify: f
|
|
2859
|
-
formData: n
|
|
2844
|
+
open: c,
|
|
2845
|
+
modify: f
|
|
2860
2846
|
}), (R, t) => {
|
|
2861
|
-
const d = r("el-
|
|
2862
|
-
return M(),
|
|
2863
|
-
modelValue: e(
|
|
2864
|
-
"onUpdate:modelValue": t[
|
|
2865
|
-
title: e(
|
|
2847
|
+
const d = r("el-input"), p = r("el-form-item"), S = r("el-form");
|
|
2848
|
+
return M(), q(e(oe), {
|
|
2849
|
+
modelValue: e(m),
|
|
2850
|
+
"onUpdate:modelValue": t[6] || (t[6] = (g) => F(m) ? m.value = g : null),
|
|
2851
|
+
title: e(i)("config.domain"),
|
|
2866
2852
|
width: "600px",
|
|
2867
|
-
executing: e(
|
|
2853
|
+
executing: e(s),
|
|
2868
2854
|
onClosed: e(D),
|
|
2869
|
-
onSubmit: e(
|
|
2855
|
+
onSubmit: e(b)
|
|
2870
2856
|
}, {
|
|
2871
2857
|
default: o(() => [
|
|
2872
|
-
l(
|
|
2858
|
+
l(S, {
|
|
2873
2859
|
ref_key: "form",
|
|
2874
|
-
ref:
|
|
2860
|
+
ref: u,
|
|
2875
2861
|
model: e(n),
|
|
2876
2862
|
"label-width": "auto",
|
|
2877
|
-
rules:
|
|
2878
|
-
disabled: e(
|
|
2863
|
+
rules: _,
|
|
2864
|
+
disabled: e(v) || e(s)
|
|
2879
2865
|
}, {
|
|
2880
2866
|
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")
|
|
2867
|
+
l(p, {
|
|
2868
|
+
prop: "name",
|
|
2869
|
+
label: e(a)("base.name")
|
|
3058
2870
|
}, {
|
|
3059
2871
|
default: o(() => [
|
|
3060
2872
|
l(d, {
|
|
3061
2873
|
modelValue: e(n).name,
|
|
3062
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3063
|
-
disabled: e(
|
|
2874
|
+
"onUpdate:modelValue": t[0] || (t[0] = (g) => e(n).name = g),
|
|
2875
|
+
disabled: e(s),
|
|
3064
2876
|
placeholder: e(a)("placeholder.input")
|
|
3065
2877
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3066
2878
|
]),
|
|
3067
2879
|
_: 1
|
|
3068
2880
|
}, 8, ["label"]),
|
|
3069
|
-
l(
|
|
2881
|
+
l(p, {
|
|
3070
2882
|
prop: "en_name",
|
|
3071
2883
|
label: e(a)("base.en_name")
|
|
3072
2884
|
}, {
|
|
3073
2885
|
default: o(() => [
|
|
3074
2886
|
l(d, {
|
|
3075
2887
|
modelValue: e(n).en_name,
|
|
3076
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3077
|
-
disabled: e(
|
|
2888
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => e(n).en_name = g),
|
|
2889
|
+
disabled: e(s),
|
|
3078
2890
|
placeholder: e(a)("placeholder.input")
|
|
3079
2891
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3080
2892
|
]),
|
|
3081
2893
|
_: 1
|
|
3082
2894
|
}, 8, ["label"]),
|
|
3083
|
-
l(
|
|
2895
|
+
l(p, {
|
|
3084
2896
|
prop: "key",
|
|
3085
2897
|
label: e(a)("base.key")
|
|
3086
2898
|
}, {
|
|
3087
2899
|
default: o(() => [
|
|
3088
2900
|
l(d, {
|
|
3089
2901
|
modelValue: e(n).key,
|
|
3090
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
3091
|
-
disabled: e(
|
|
2902
|
+
"onUpdate:modelValue": t[2] || (t[2] = (g) => e(n).key = g),
|
|
2903
|
+
disabled: e(s),
|
|
3092
2904
|
placeholder: e(a)("placeholder.input")
|
|
3093
2905
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3094
2906
|
]),
|
|
3095
2907
|
_: 1
|
|
3096
2908
|
}, 8, ["label"]),
|
|
3097
|
-
l(
|
|
2909
|
+
l(p, {
|
|
3098
2910
|
prop: "secret",
|
|
3099
2911
|
label: e(a)("config.secret")
|
|
3100
2912
|
}, {
|
|
3101
2913
|
default: o(() => [
|
|
3102
2914
|
l(d, {
|
|
3103
2915
|
modelValue: e(n).secret,
|
|
3104
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
3105
|
-
disabled: e(
|
|
2916
|
+
"onUpdate:modelValue": t[3] || (t[3] = (g) => e(n).secret = g),
|
|
2917
|
+
disabled: e(s),
|
|
3106
2918
|
placeholder: e(a)("placeholder.input")
|
|
3107
2919
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3108
2920
|
]),
|
|
3109
2921
|
_: 1
|
|
3110
2922
|
}, 8, ["label"]),
|
|
3111
|
-
l(
|
|
2923
|
+
l(p, {
|
|
3112
2924
|
prop: "end_point",
|
|
3113
2925
|
label: e(a)("config.end_point")
|
|
3114
2926
|
}, {
|
|
3115
2927
|
default: o(() => [
|
|
3116
2928
|
l(d, {
|
|
3117
2929
|
modelValue: e(n).end_point,
|
|
3118
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
3119
|
-
disabled: e(
|
|
2930
|
+
"onUpdate:modelValue": t[4] || (t[4] = (g) => e(n).end_point = g),
|
|
2931
|
+
disabled: e(s),
|
|
3120
2932
|
placeholder: e(a)("placeholder.input")
|
|
3121
2933
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3122
2934
|
]),
|
|
3123
2935
|
_: 1
|
|
3124
2936
|
}, 8, ["label"]),
|
|
3125
|
-
l(
|
|
2937
|
+
l(p, {
|
|
3126
2938
|
prop: "remark",
|
|
3127
2939
|
label: e(a)("base.remark")
|
|
3128
2940
|
}, {
|
|
3129
2941
|
default: o(() => [
|
|
3130
2942
|
l(d, {
|
|
3131
2943
|
modelValue: e(n).remark,
|
|
3132
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
3133
|
-
disabled: e(
|
|
2944
|
+
"onUpdate:modelValue": t[5] || (t[5] = (g) => e(n).remark = g),
|
|
2945
|
+
disabled: e(s),
|
|
3134
2946
|
placeholder: e(a)("placeholder.input")
|
|
3135
2947
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3136
2948
|
]),
|
|
@@ -3144,20 +2956,20 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3144
2956
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
3145
2957
|
};
|
|
3146
2958
|
}
|
|
3147
|
-
}),
|
|
2959
|
+
}), Ll = /* @__PURE__ */ O({
|
|
3148
2960
|
__name: "DomainProviderTableDrawer",
|
|
3149
2961
|
setup(x, {
|
|
3150
2962
|
expose: U
|
|
3151
2963
|
}) {
|
|
3152
2964
|
const {
|
|
3153
|
-
requesting:
|
|
3154
|
-
} =
|
|
3155
|
-
tableRef:
|
|
3156
|
-
formModalRef:
|
|
3157
|
-
refresh:
|
|
3158
|
-
openFormModal:
|
|
3159
|
-
editFormModal:
|
|
3160
|
-
} =
|
|
2965
|
+
requesting: w
|
|
2966
|
+
} = z(he), k = H(!1), {
|
|
2967
|
+
tableRef: V,
|
|
2968
|
+
formModalRef: _,
|
|
2969
|
+
refresh: m,
|
|
2970
|
+
openFormModal: i,
|
|
2971
|
+
editFormModal: u
|
|
2972
|
+
} = J({}), n = [{
|
|
3161
2973
|
prop: "name",
|
|
3162
2974
|
label: a("base.name"),
|
|
3163
2975
|
width: 0,
|
|
@@ -3172,26 +2984,26 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3172
2984
|
width: 60,
|
|
3173
2985
|
align: "center",
|
|
3174
2986
|
render: ({
|
|
3175
|
-
rowData:
|
|
2987
|
+
rowData: s
|
|
3176
2988
|
}) => l(r("el-space"), null, {
|
|
3177
|
-
default: () => [l(
|
|
2989
|
+
default: () => [l(ne, {
|
|
3178
2990
|
icon: "icon-edit",
|
|
3179
2991
|
t: "",
|
|
3180
|
-
onModify: () =>
|
|
3181
|
-
id:
|
|
2992
|
+
onModify: () => u({
|
|
2993
|
+
id: s.id
|
|
3182
2994
|
})
|
|
3183
2995
|
}, null)]
|
|
3184
2996
|
})
|
|
3185
2997
|
}];
|
|
3186
2998
|
return U({
|
|
3187
2999
|
open: () => {
|
|
3188
|
-
|
|
3000
|
+
k.value = !0;
|
|
3189
3001
|
}
|
|
3190
|
-
}), (
|
|
3002
|
+
}), (s, c) => {
|
|
3191
3003
|
const f = r("el-page-header");
|
|
3192
|
-
return M(),
|
|
3193
|
-
modelValue:
|
|
3194
|
-
"onUpdate:modelValue":
|
|
3004
|
+
return M(), q(e(_e), {
|
|
3005
|
+
modelValue: k.value,
|
|
3006
|
+
"onUpdate:modelValue": c[0] || (c[0] = (b) => k.value = b),
|
|
3195
3007
|
width: "400px",
|
|
3196
3008
|
"show-close": !1,
|
|
3197
3009
|
class: "basic-drawer"
|
|
@@ -3199,60 +3011,294 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3199
3011
|
title: o(() => [l(f, {
|
|
3200
3012
|
icon: ""
|
|
3201
3013
|
}, {
|
|
3202
|
-
title: o(() => [
|
|
3014
|
+
title: o(() => [j("span", null, I(e(a)("config.domain config.provider")), 1)]),
|
|
3203
3015
|
content: o(() => [l(e(K), {
|
|
3204
|
-
onRefresh: e(
|
|
3016
|
+
onRefresh: e(m),
|
|
3205
3017
|
size: "default",
|
|
3206
|
-
loading: e(
|
|
3018
|
+
loading: e(w)
|
|
3207
3019
|
}, null, 8, ["onRefresh", "loading"])]),
|
|
3208
|
-
extra: o(() => [l(e(
|
|
3209
|
-
onOpen: e(
|
|
3020
|
+
extra: o(() => [l(e(P), {
|
|
3021
|
+
onOpen: e(i)
|
|
3210
3022
|
}, null, 8, ["onOpen"])]),
|
|
3211
3023
|
_: 1
|
|
3212
3024
|
})]),
|
|
3213
3025
|
default: o(() => [l(e(ie), {
|
|
3214
3026
|
ref_key: "tableRef",
|
|
3215
|
-
ref:
|
|
3027
|
+
ref: V,
|
|
3216
3028
|
size: "small",
|
|
3217
3029
|
"row-key": "id",
|
|
3218
3030
|
url: e(he).urls.list,
|
|
3219
3031
|
columns: n,
|
|
3220
|
-
loading: e(
|
|
3221
|
-
}, null, 8, ["url", "loading"]), l(
|
|
3032
|
+
loading: e(w)
|
|
3033
|
+
}, null, 8, ["url", "loading"]), l(Cl, {
|
|
3222
3034
|
ref_key: "formModalRef",
|
|
3223
|
-
ref:
|
|
3224
|
-
onRefresh: e(
|
|
3035
|
+
ref: _,
|
|
3036
|
+
onRefresh: e(m)
|
|
3225
3037
|
}, null, 8, ["onRefresh"])]),
|
|
3226
3038
|
_: 1
|
|
3227
3039
|
}, 8, ["modelValue"]);
|
|
3228
3040
|
};
|
|
3229
3041
|
}
|
|
3230
|
-
}),
|
|
3042
|
+
}), Tl = {
|
|
3043
|
+
gen: "gen"
|
|
3044
|
+
}, me = Y.routineApi("SSL", "id", Tl), ql = /* @__PURE__ */ O({
|
|
3045
|
+
__name: "SiteSelect",
|
|
3046
|
+
props: {
|
|
3047
|
+
modelValue: {
|
|
3048
|
+
type: Number,
|
|
3049
|
+
required: !0
|
|
3050
|
+
},
|
|
3051
|
+
disabled: {
|
|
3052
|
+
type: Boolean,
|
|
3053
|
+
default: !1
|
|
3054
|
+
}
|
|
3055
|
+
},
|
|
3056
|
+
emits: ["update:modelValue", "change"],
|
|
3057
|
+
setup(x, {
|
|
3058
|
+
expose: U,
|
|
3059
|
+
emit: w
|
|
3060
|
+
}) {
|
|
3061
|
+
const k = w, V = x, {
|
|
3062
|
+
requesting: _
|
|
3063
|
+
} = z(pe), {
|
|
3064
|
+
key: m,
|
|
3065
|
+
options: i,
|
|
3066
|
+
refresh: u,
|
|
3067
|
+
change: n
|
|
3068
|
+
} = re(te(V, "modelValue"), k, {
|
|
3069
|
+
key: "SITE_LIST",
|
|
3070
|
+
api: pe,
|
|
3071
|
+
isArray: !0
|
|
3072
|
+
}, {
|
|
3073
|
+
formatOptions: (v) => v.map((s) => ({
|
|
3074
|
+
...s,
|
|
3075
|
+
label: s.prefix + "." + s.domain?.name,
|
|
3076
|
+
value: s.id
|
|
3077
|
+
}))
|
|
3078
|
+
});
|
|
3079
|
+
return U({
|
|
3080
|
+
refresh: u
|
|
3081
|
+
}), (v, s) => {
|
|
3082
|
+
const c = r("el-select-v2");
|
|
3083
|
+
return M(), q(c, {
|
|
3084
|
+
modelValue: e(m),
|
|
3085
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => F(m) ? m.value = f : null),
|
|
3086
|
+
options: e(i),
|
|
3087
|
+
disabled: x.disabled || e(_),
|
|
3088
|
+
placeholder: e(a)("base.select config.domain"),
|
|
3089
|
+
onChange: e(n)
|
|
3090
|
+
}, {
|
|
3091
|
+
prefix: o(() => [l(e(fe), {
|
|
3092
|
+
loading: e(_),
|
|
3093
|
+
onRefresh: e(u)
|
|
3094
|
+
}, null, 8, ["loading", "onRefresh"])]),
|
|
3095
|
+
_: 1
|
|
3096
|
+
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
3097
|
+
};
|
|
3098
|
+
}
|
|
3099
|
+
}), Ne = /* @__PURE__ */ O({
|
|
3100
|
+
__name: "SSLFormModal",
|
|
3101
|
+
emits: ["refresh"],
|
|
3102
|
+
setup(x, { expose: U, emit: w }) {
|
|
3103
|
+
const k = w, V = {
|
|
3104
|
+
id: 0,
|
|
3105
|
+
domain_id: void 0,
|
|
3106
|
+
client: "Lego",
|
|
3107
|
+
site_id: void 0,
|
|
3108
|
+
name: "",
|
|
3109
|
+
path: "",
|
|
3110
|
+
email: "",
|
|
3111
|
+
encryption: "RSA2048",
|
|
3112
|
+
remark: ""
|
|
3113
|
+
}, _ = {
|
|
3114
|
+
domain_id: [{ required: !0, message: a("placeholder.select config.domain "), trigger: "blur" }],
|
|
3115
|
+
client: [{ required: !0, message: a("placeholder.select config.client "), trigger: "blur" }],
|
|
3116
|
+
name: [{ required: !0, message: a("placeholder.input base.name"), trigger: "blur" }],
|
|
3117
|
+
path: [{ required: !0, message: a("placeholder.input base.path"), trigger: "blur" }],
|
|
3118
|
+
email: [{ required: !0, message: a("placeholder.input base.email"), trigger: "blur" }],
|
|
3119
|
+
encryption: [{ required: !0, message: a("placeholder.input config.encryption"), trigger: "blur" }]
|
|
3120
|
+
}, { modal: m, title: i, form: u, formData: n, requesting: v, executing: s, open: c, modify: f, submit: b, closed: D } = ee(k, V, me);
|
|
3121
|
+
return U({
|
|
3122
|
+
open: c,
|
|
3123
|
+
modify: f,
|
|
3124
|
+
formData: n
|
|
3125
|
+
}), (R, t) => {
|
|
3126
|
+
const d = r("el-form-item"), p = r("el-radio-button"), S = r("el-radio-group"), g = r("el-input"), y = r("el-form");
|
|
3127
|
+
return M(), q(e(oe), {
|
|
3128
|
+
modelValue: e(m),
|
|
3129
|
+
"onUpdate:modelValue": t[8] || (t[8] = (h) => F(m) ? m.value = h : null),
|
|
3130
|
+
title: e(i)("ssl.ssl"),
|
|
3131
|
+
width: "600px",
|
|
3132
|
+
executing: e(s),
|
|
3133
|
+
onClosed: e(D),
|
|
3134
|
+
onSubmit: e(b)
|
|
3135
|
+
}, {
|
|
3136
|
+
default: o(() => [
|
|
3137
|
+
l(y, {
|
|
3138
|
+
ref_key: "form",
|
|
3139
|
+
ref: u,
|
|
3140
|
+
model: e(n),
|
|
3141
|
+
"label-width": "auto",
|
|
3142
|
+
rules: _,
|
|
3143
|
+
disabled: e(v) || e(s)
|
|
3144
|
+
}, {
|
|
3145
|
+
default: o(() => [
|
|
3146
|
+
l(d, {
|
|
3147
|
+
prop: "domain_id",
|
|
3148
|
+
label: e(a)("config.domain")
|
|
3149
|
+
}, {
|
|
3150
|
+
default: o(() => [
|
|
3151
|
+
l(Ie, {
|
|
3152
|
+
modelValue: e(n).domain_id,
|
|
3153
|
+
"onUpdate:modelValue": t[0] || (t[0] = (h) => e(n).domain_id = h),
|
|
3154
|
+
disabled: e(s)
|
|
3155
|
+
}, null, 8, ["modelValue", "disabled"])
|
|
3156
|
+
]),
|
|
3157
|
+
_: 1
|
|
3158
|
+
}, 8, ["label"]),
|
|
3159
|
+
l(d, {
|
|
3160
|
+
prop: "client",
|
|
3161
|
+
label: e(a)("ssl.client")
|
|
3162
|
+
}, {
|
|
3163
|
+
default: o(() => [
|
|
3164
|
+
l(S, {
|
|
3165
|
+
modelValue: e(n).client,
|
|
3166
|
+
"onUpdate:modelValue": t[1] || (t[1] = (h) => e(n).client = h)
|
|
3167
|
+
}, {
|
|
3168
|
+
default: o(() => [
|
|
3169
|
+
l(p, {
|
|
3170
|
+
label: "Lego",
|
|
3171
|
+
value: "Lego"
|
|
3172
|
+
})
|
|
3173
|
+
]),
|
|
3174
|
+
_: 1
|
|
3175
|
+
}, 8, ["modelValue"])
|
|
3176
|
+
]),
|
|
3177
|
+
_: 1
|
|
3178
|
+
}, 8, ["label"]),
|
|
3179
|
+
l(d, {
|
|
3180
|
+
prop: "site_id",
|
|
3181
|
+
label: e(a)("config.site")
|
|
3182
|
+
}, {
|
|
3183
|
+
default: o(() => [
|
|
3184
|
+
l(ql, {
|
|
3185
|
+
modelValue: e(n).site_id,
|
|
3186
|
+
"onUpdate:modelValue": t[2] || (t[2] = (h) => e(n).site_id = h),
|
|
3187
|
+
disabled: e(s)
|
|
3188
|
+
}, null, 8, ["modelValue", "disabled"])
|
|
3189
|
+
]),
|
|
3190
|
+
_: 1
|
|
3191
|
+
}, 8, ["label"]),
|
|
3192
|
+
l(d, {
|
|
3193
|
+
prop: "name",
|
|
3194
|
+
label: e(a)("base.name")
|
|
3195
|
+
}, {
|
|
3196
|
+
default: o(() => [
|
|
3197
|
+
l(g, {
|
|
3198
|
+
modelValue: e(n).name,
|
|
3199
|
+
"onUpdate:modelValue": t[3] || (t[3] = (h) => e(n).name = h),
|
|
3200
|
+
disabled: e(s),
|
|
3201
|
+
placeholder: e(a)("placeholder.input")
|
|
3202
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3203
|
+
]),
|
|
3204
|
+
_: 1
|
|
3205
|
+
}, 8, ["label"]),
|
|
3206
|
+
l(d, {
|
|
3207
|
+
prop: "path",
|
|
3208
|
+
label: e(a)("base.path")
|
|
3209
|
+
}, {
|
|
3210
|
+
default: o(() => [
|
|
3211
|
+
l(g, {
|
|
3212
|
+
modelValue: e(n).path,
|
|
3213
|
+
"onUpdate:modelValue": t[4] || (t[4] = (h) => e(n).path = h),
|
|
3214
|
+
disabled: e(s),
|
|
3215
|
+
placeholder: e(a)("placeholder.input")
|
|
3216
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3217
|
+
]),
|
|
3218
|
+
_: 1
|
|
3219
|
+
}, 8, ["label"]),
|
|
3220
|
+
l(d, {
|
|
3221
|
+
prop: "email",
|
|
3222
|
+
label: e(a)("base.email")
|
|
3223
|
+
}, {
|
|
3224
|
+
default: o(() => [
|
|
3225
|
+
l(g, {
|
|
3226
|
+
modelValue: e(n).email,
|
|
3227
|
+
"onUpdate:modelValue": t[5] || (t[5] = (h) => e(n).email = h),
|
|
3228
|
+
disabled: e(s),
|
|
3229
|
+
placeholder: e(a)("placeholder.input")
|
|
3230
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3231
|
+
]),
|
|
3232
|
+
_: 1
|
|
3233
|
+
}, 8, ["label"]),
|
|
3234
|
+
l(d, {
|
|
3235
|
+
prop: "encryption",
|
|
3236
|
+
label: e(a)("config.encryption")
|
|
3237
|
+
}, {
|
|
3238
|
+
default: o(() => [
|
|
3239
|
+
l(S, {
|
|
3240
|
+
modelValue: e(n).encryption,
|
|
3241
|
+
"onUpdate:modelValue": t[6] || (t[6] = (h) => e(n).encryption = h)
|
|
3242
|
+
}, {
|
|
3243
|
+
default: o(() => [
|
|
3244
|
+
l(p, {
|
|
3245
|
+
label: "RSA2048",
|
|
3246
|
+
value: "RSA2048"
|
|
3247
|
+
})
|
|
3248
|
+
]),
|
|
3249
|
+
_: 1
|
|
3250
|
+
}, 8, ["modelValue"])
|
|
3251
|
+
]),
|
|
3252
|
+
_: 1
|
|
3253
|
+
}, 8, ["label"]),
|
|
3254
|
+
l(d, {
|
|
3255
|
+
prop: "remark",
|
|
3256
|
+
label: e(a)("base.remark")
|
|
3257
|
+
}, {
|
|
3258
|
+
default: o(() => [
|
|
3259
|
+
l(g, {
|
|
3260
|
+
modelValue: e(n).remark,
|
|
3261
|
+
"onUpdate:modelValue": t[7] || (t[7] = (h) => e(n).remark = h),
|
|
3262
|
+
disabled: e(s),
|
|
3263
|
+
placeholder: e(a)("placeholder.input")
|
|
3264
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
3265
|
+
]),
|
|
3266
|
+
_: 1
|
|
3267
|
+
}, 8, ["label"])
|
|
3268
|
+
]),
|
|
3269
|
+
_: 1
|
|
3270
|
+
}, 8, ["model", "disabled"])
|
|
3271
|
+
]),
|
|
3272
|
+
_: 1
|
|
3273
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
3274
|
+
};
|
|
3275
|
+
}
|
|
3276
|
+
}), Ol = /* @__PURE__ */ O({
|
|
3231
3277
|
__name: "DomainTableDrawer",
|
|
3232
3278
|
setup(x, {
|
|
3233
3279
|
expose: U
|
|
3234
3280
|
}) {
|
|
3235
3281
|
const {
|
|
3236
|
-
requesting:
|
|
3237
|
-
} =
|
|
3238
|
-
visible:
|
|
3239
|
-
open:
|
|
3282
|
+
requesting: w
|
|
3283
|
+
} = z(ge), {
|
|
3284
|
+
visible: k,
|
|
3285
|
+
open: V
|
|
3240
3286
|
} = xe(), {
|
|
3241
|
-
tableRef:
|
|
3242
|
-
formModalRef:
|
|
3243
|
-
refresh:
|
|
3244
|
-
openFormModal:
|
|
3287
|
+
tableRef: _,
|
|
3288
|
+
formModalRef: m,
|
|
3289
|
+
refresh: i,
|
|
3290
|
+
openFormModal: u,
|
|
3245
3291
|
editFormModal: n
|
|
3246
|
-
} =
|
|
3247
|
-
formRef:
|
|
3248
|
-
open:
|
|
3249
|
-
edit:
|
|
3292
|
+
} = J(), {
|
|
3293
|
+
formRef: v,
|
|
3294
|
+
open: s,
|
|
3295
|
+
edit: c
|
|
3250
3296
|
} = Te(), {
|
|
3251
3297
|
dialogRef: f,
|
|
3252
|
-
open:
|
|
3298
|
+
open: b
|
|
3253
3299
|
} = ve(), D = [{
|
|
3254
3300
|
prop: "provider",
|
|
3255
|
-
label: a("config.
|
|
3301
|
+
label: a("config.provider"),
|
|
3256
3302
|
width: 120,
|
|
3257
3303
|
cellRenderer: ({
|
|
3258
3304
|
rowData: R
|
|
@@ -3276,53 +3322,53 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3276
3322
|
render: ({
|
|
3277
3323
|
rowData: R
|
|
3278
3324
|
}) => l(r("el-space"), null, {
|
|
3279
|
-
default: () => [l(
|
|
3325
|
+
default: () => [l(ne, {
|
|
3280
3326
|
icon: "icon-edit",
|
|
3281
3327
|
t: "",
|
|
3282
3328
|
onModify: () => n({
|
|
3283
3329
|
id: R.id
|
|
3284
3330
|
})
|
|
3285
|
-
}, null), l(
|
|
3331
|
+
}, null), l(P, {
|
|
3286
3332
|
icon: "icon-safetycertificate-f",
|
|
3287
3333
|
type: "primary",
|
|
3288
3334
|
size: "small",
|
|
3289
3335
|
link: !0,
|
|
3290
3336
|
onOpen: () => {
|
|
3291
|
-
R.ssl && R.ssl.id ?
|
|
3337
|
+
R.ssl && R.ssl.id ? c({
|
|
3292
3338
|
id: R.ssl?.id
|
|
3293
|
-
}) : (
|
|
3339
|
+
}) : (v.value.formData.domain_id = R.id, v.value.formData.site_id = 0, s());
|
|
3294
3340
|
}
|
|
3295
3341
|
}, null)]
|
|
3296
3342
|
})
|
|
3297
3343
|
}];
|
|
3298
3344
|
return U({
|
|
3299
|
-
open:
|
|
3345
|
+
open: V
|
|
3300
3346
|
}), (R, t) => {
|
|
3301
|
-
const d = r("el-space"),
|
|
3302
|
-
return M(),
|
|
3303
|
-
modelValue: e(
|
|
3304
|
-
"onUpdate:modelValue": t[0] || (t[0] = (S) =>
|
|
3347
|
+
const d = r("el-space"), p = r("el-page-header");
|
|
3348
|
+
return M(), q(e(_e), {
|
|
3349
|
+
modelValue: e(k),
|
|
3350
|
+
"onUpdate:modelValue": t[0] || (t[0] = (S) => F(k) ? k.value = S : null),
|
|
3305
3351
|
width: "600px",
|
|
3306
3352
|
"show-close": !1,
|
|
3307
3353
|
class: "basic-drawer"
|
|
3308
3354
|
}, {
|
|
3309
|
-
title: o(() => [l(
|
|
3355
|
+
title: o(() => [l(p, {
|
|
3310
3356
|
icon: ""
|
|
3311
3357
|
}, {
|
|
3312
|
-
title: o(() => [
|
|
3358
|
+
title: o(() => [j("span", null, I(e(a)("config.domain")), 1)]),
|
|
3313
3359
|
content: o(() => [l(e(K), {
|
|
3314
|
-
onRefresh: e(
|
|
3360
|
+
onRefresh: e(i),
|
|
3315
3361
|
size: "default",
|
|
3316
|
-
loading: e(
|
|
3317
|
-
}, null, 8, ["onRefresh", "loading"]), l(e(
|
|
3318
|
-
onOpen: e(
|
|
3362
|
+
loading: e(w)
|
|
3363
|
+
}, null, 8, ["onRefresh", "loading"]), l(e(P), {
|
|
3364
|
+
onOpen: e(u)
|
|
3319
3365
|
}, null, 8, ["onOpen"])]),
|
|
3320
3366
|
extra: o(() => [l(d, {
|
|
3321
3367
|
class: "w-full extra-tool",
|
|
3322
3368
|
alignment: "center"
|
|
3323
3369
|
}, {
|
|
3324
|
-
default: o(() => [l(e(
|
|
3325
|
-
onOpen: e(
|
|
3370
|
+
default: o(() => [l(e(P), {
|
|
3371
|
+
onOpen: e(b),
|
|
3326
3372
|
type: "danger"
|
|
3327
3373
|
}, null, 8, ["onOpen"])]),
|
|
3328
3374
|
_: 1
|
|
@@ -3331,21 +3377,21 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3331
3377
|
})]),
|
|
3332
3378
|
default: o(() => [l(e(ie), {
|
|
3333
3379
|
ref_key: "tableRef",
|
|
3334
|
-
ref:
|
|
3380
|
+
ref: _,
|
|
3335
3381
|
size: "small",
|
|
3336
3382
|
"row-key": "id",
|
|
3337
3383
|
url: e(ge).urls.list,
|
|
3338
3384
|
columns: D,
|
|
3339
|
-
loading: e(
|
|
3340
|
-
}, null, 8, ["url", "loading"]), l(
|
|
3385
|
+
loading: e(w)
|
|
3386
|
+
}, null, 8, ["url", "loading"]), l(Ml, {
|
|
3341
3387
|
ref_key: "formModalRef",
|
|
3342
|
-
ref:
|
|
3343
|
-
onRefresh: e(
|
|
3388
|
+
ref: m,
|
|
3389
|
+
onRefresh: e(i)
|
|
3344
3390
|
}, null, 8, ["onRefresh"]), l(Ne, {
|
|
3345
3391
|
ref_key: "sslFormModalRef",
|
|
3346
|
-
ref:
|
|
3347
|
-
onRefresh: e(
|
|
3348
|
-
}, null, 8, ["onRefresh"]), l(
|
|
3392
|
+
ref: v,
|
|
3393
|
+
onRefresh: e(i)
|
|
3394
|
+
}, null, 8, ["onRefresh"]), l(Ll, {
|
|
3349
3395
|
ref_key: "providerTableDrawerRef",
|
|
3350
3396
|
ref: f
|
|
3351
3397
|
}, null, 512)]),
|
|
@@ -3353,24 +3399,24 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3353
3399
|
}, 8, ["modelValue"]);
|
|
3354
3400
|
};
|
|
3355
3401
|
}
|
|
3356
|
-
}),
|
|
3402
|
+
}), $l = /* @__PURE__ */ O({
|
|
3357
3403
|
__name: "SSLTableDrawer",
|
|
3358
3404
|
setup(x, {
|
|
3359
3405
|
expose: U
|
|
3360
3406
|
}) {
|
|
3361
3407
|
const {
|
|
3362
|
-
requesting:
|
|
3363
|
-
executing:
|
|
3364
|
-
} =
|
|
3365
|
-
visible:
|
|
3366
|
-
open:
|
|
3408
|
+
requesting: w,
|
|
3409
|
+
executing: k
|
|
3410
|
+
} = z(me), V = H(0), {
|
|
3411
|
+
visible: _,
|
|
3412
|
+
open: m
|
|
3367
3413
|
} = xe(), {
|
|
3368
|
-
tableRef:
|
|
3369
|
-
formModalRef:
|
|
3414
|
+
tableRef: i,
|
|
3415
|
+
formModalRef: u,
|
|
3370
3416
|
refresh: n,
|
|
3371
|
-
openFormModal:
|
|
3372
|
-
editFormModal:
|
|
3373
|
-
} =
|
|
3417
|
+
openFormModal: v,
|
|
3418
|
+
editFormModal: s
|
|
3419
|
+
} = J(), c = [
|
|
3374
3420
|
{
|
|
3375
3421
|
prop: "client",
|
|
3376
3422
|
label: a("ssl.client"),
|
|
@@ -3411,12 +3457,12 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3411
3457
|
render: ({
|
|
3412
3458
|
rowData: D
|
|
3413
3459
|
}) => l(r("el-space"), null, {
|
|
3414
|
-
default: () => [l(
|
|
3460
|
+
default: () => [l(ne, {
|
|
3415
3461
|
size: "default",
|
|
3416
3462
|
icon: "icon-edit",
|
|
3417
3463
|
t: "",
|
|
3418
|
-
disabled:
|
|
3419
|
-
onModify: () =>
|
|
3464
|
+
disabled: k.value,
|
|
3465
|
+
onModify: () => s({
|
|
3420
3466
|
id: D.id
|
|
3421
3467
|
})
|
|
3422
3468
|
}, null), l(X, {
|
|
@@ -3424,17 +3470,17 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3424
3470
|
icon: "icon-key",
|
|
3425
3471
|
t: "",
|
|
3426
3472
|
text: !0,
|
|
3427
|
-
disabled:
|
|
3428
|
-
loading:
|
|
3473
|
+
disabled: k.value && V.value !== D.id,
|
|
3474
|
+
loading: V.value == D.id,
|
|
3429
3475
|
onClick: () => f(D.id)
|
|
3430
3476
|
}, null), l(X, {
|
|
3431
3477
|
size: "default",
|
|
3432
3478
|
icon: "icon-cloud-download",
|
|
3433
3479
|
t: "",
|
|
3434
3480
|
text: !0,
|
|
3435
|
-
disabled:
|
|
3436
|
-
loading:
|
|
3437
|
-
onClick: () =>
|
|
3481
|
+
disabled: k.value && V.value !== D.id,
|
|
3482
|
+
loading: V.value == D.id,
|
|
3483
|
+
onClick: () => b(D)
|
|
3438
3484
|
}, null)]
|
|
3439
3485
|
})
|
|
3440
3486
|
}
|
|
@@ -3445,20 +3491,20 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3445
3491
|
console.warn("Res:", R);
|
|
3446
3492
|
});
|
|
3447
3493
|
};
|
|
3448
|
-
function
|
|
3494
|
+
function b(D) {
|
|
3449
3495
|
const R = Oe.getDownloadUrl(D.path + ".zip");
|
|
3450
3496
|
fetch(R).then((t) => t.blob()).then((t) => {
|
|
3451
|
-
let d = URL.createObjectURL(t),
|
|
3452
|
-
|
|
3497
|
+
let d = URL.createObjectURL(t), p = document.createElement("a");
|
|
3498
|
+
p.style.display = "none", p.href = d, p.download = D.name + ".zip", p.click(), URL.revokeObjectURL(t);
|
|
3453
3499
|
});
|
|
3454
3500
|
}
|
|
3455
3501
|
return U({
|
|
3456
|
-
open:
|
|
3502
|
+
open: m
|
|
3457
3503
|
}), (D, R) => {
|
|
3458
3504
|
const t = r("el-page-header");
|
|
3459
|
-
return M(),
|
|
3460
|
-
modelValue: e(
|
|
3461
|
-
"onUpdate:modelValue": R[0] || (R[0] = (d) =>
|
|
3505
|
+
return M(), q(e(_e), {
|
|
3506
|
+
modelValue: e(_),
|
|
3507
|
+
"onUpdate:modelValue": R[0] || (R[0] = (d) => F(_) ? _.value = d : null),
|
|
3462
3508
|
width: "1000px",
|
|
3463
3509
|
"show-close": !1,
|
|
3464
3510
|
class: "basic-drawer"
|
|
@@ -3466,78 +3512,78 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3466
3512
|
title: o(() => [l(t, {
|
|
3467
3513
|
icon: ""
|
|
3468
3514
|
}, {
|
|
3469
|
-
title: o(() => [
|
|
3515
|
+
title: o(() => [j("span", null, I(e(a)("ssl.ssl")), 1)]),
|
|
3470
3516
|
content: o(() => [l(e(K), {
|
|
3471
3517
|
onRefresh: e(n),
|
|
3472
3518
|
size: "default",
|
|
3473
|
-
loading: e(
|
|
3474
|
-
}, null, 8, ["onRefresh", "loading"]), l(e(
|
|
3475
|
-
onOpen: e(
|
|
3519
|
+
loading: e(w)
|
|
3520
|
+
}, null, 8, ["onRefresh", "loading"]), l(e(P), {
|
|
3521
|
+
onOpen: e(v)
|
|
3476
3522
|
}, null, 8, ["onOpen"])]),
|
|
3477
3523
|
_: 1
|
|
3478
3524
|
})]),
|
|
3479
3525
|
default: o(() => [l(e(ie), {
|
|
3480
3526
|
ref_key: "tableRef",
|
|
3481
|
-
ref:
|
|
3527
|
+
ref: i,
|
|
3482
3528
|
size: "default",
|
|
3483
3529
|
"row-key": "id",
|
|
3484
3530
|
url: e(me).urls.list,
|
|
3485
|
-
columns:
|
|
3486
|
-
loading: e(
|
|
3531
|
+
columns: c,
|
|
3532
|
+
loading: e(w)
|
|
3487
3533
|
}, null, 8, ["url", "loading"]), l(Ne, {
|
|
3488
3534
|
ref_key: "formModalRef",
|
|
3489
|
-
ref:
|
|
3535
|
+
ref: u,
|
|
3490
3536
|
onRefresh: e(n)
|
|
3491
3537
|
}, null, 8, ["onRefresh"])]),
|
|
3492
3538
|
_: 1
|
|
3493
3539
|
}, 8, ["modelValue"]);
|
|
3494
3540
|
};
|
|
3495
3541
|
}
|
|
3496
|
-
}),
|
|
3542
|
+
}), Ce = Y.routineApi("SSLLog", "id"), El = /* @__PURE__ */ O({
|
|
3497
3543
|
__name: "SSLLogTableDrawer",
|
|
3498
3544
|
props: {
|
|
3499
3545
|
ssl: { type: Object, default: () => ({}) }
|
|
3500
3546
|
},
|
|
3501
3547
|
setup(x, { expose: U }) {
|
|
3502
|
-
const
|
|
3548
|
+
const w = x, { requesting: k, executing: V } = z([Ce, me]), { visible: _, open: m } = xe(), { tableRef: i, refresh: u } = ll(), n = [
|
|
3503
3549
|
{ prop: "status.label", label: a("base.status"), width: 100 },
|
|
3504
3550
|
{ prop: "at", label: a("base.time"), width: 180 },
|
|
3505
3551
|
{ prop: "type_text", label: a("base.type"), width: 80 },
|
|
3506
3552
|
{ prop: "result", label: a("base.result"), width: 0 }
|
|
3507
3553
|
];
|
|
3508
|
-
function
|
|
3509
|
-
me.gen({ id:
|
|
3510
|
-
console.warn("Res:",
|
|
3554
|
+
function v() {
|
|
3555
|
+
me.gen({ id: w.ssl.id }).then((c) => {
|
|
3556
|
+
console.warn("Res:", c);
|
|
3511
3557
|
});
|
|
3512
3558
|
}
|
|
3513
|
-
function
|
|
3514
|
-
const
|
|
3515
|
-
fetch(
|
|
3516
|
-
let
|
|
3517
|
-
D.style.display = "none", D.href =
|
|
3559
|
+
function s() {
|
|
3560
|
+
const c = Oe.getDownloadUrl(w.ssl.path + ".zip");
|
|
3561
|
+
fetch(c).then((f) => f.blob()).then((f) => {
|
|
3562
|
+
let b = URL.createObjectURL(f), D = document.createElement("a");
|
|
3563
|
+
D.style.display = "none", D.href = b, D.download = w.ssl.name + ".zip", D.click(), URL.revokeObjectURL(f);
|
|
3518
3564
|
});
|
|
3519
3565
|
}
|
|
3520
3566
|
return U({
|
|
3521
|
-
open:
|
|
3522
|
-
}), (
|
|
3523
|
-
const
|
|
3524
|
-
return M(),
|
|
3525
|
-
modelValue: e(
|
|
3526
|
-
"onUpdate:modelValue": f[0] || (f[0] = (D) =>
|
|
3567
|
+
open: m
|
|
3568
|
+
}), (c, f) => {
|
|
3569
|
+
const b = r("el-page-header");
|
|
3570
|
+
return M(), q(e(_e), {
|
|
3571
|
+
modelValue: e(_),
|
|
3572
|
+
"onUpdate:modelValue": f[0] || (f[0] = (D) => F(_) ? _.value = D : null),
|
|
3527
3573
|
width: "600px",
|
|
3528
3574
|
"show-close": !1,
|
|
3529
3575
|
class: "basic-drawer"
|
|
3530
3576
|
}, {
|
|
3531
3577
|
title: o(() => [
|
|
3532
|
-
l(
|
|
3578
|
+
l(b, { icon: "" }, {
|
|
3533
3579
|
title: o(() => [
|
|
3534
|
-
|
|
3580
|
+
j("span", null, I(e(a)("config.ssl base.log")), 1)
|
|
3535
3581
|
]),
|
|
3536
3582
|
content: o(() => [
|
|
3537
3583
|
l(e(K), {
|
|
3538
|
-
onRefresh: e(
|
|
3584
|
+
onRefresh: e(u),
|
|
3539
3585
|
size: "default",
|
|
3540
|
-
loading: e(
|
|
3586
|
+
loading: e(k)
|
|
3541
3587
|
}, null, 8, ["onRefresh", "loading"])
|
|
3542
3588
|
]),
|
|
3543
3589
|
extra: o(() => [
|
|
@@ -3545,17 +3591,17 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3545
3591
|
size: "default",
|
|
3546
3592
|
type: "danger",
|
|
3547
3593
|
icon: "icon-key",
|
|
3548
|
-
disabled: e(
|
|
3549
|
-
loading: e(
|
|
3550
|
-
onClick:
|
|
3594
|
+
disabled: e(V),
|
|
3595
|
+
loading: e(V),
|
|
3596
|
+
onClick: v
|
|
3551
3597
|
}, null, 8, ["disabled", "loading"]),
|
|
3552
3598
|
l(e(X), {
|
|
3553
3599
|
size: "default",
|
|
3554
3600
|
type: "primary",
|
|
3555
3601
|
icon: "icon-cloud-download",
|
|
3556
|
-
disabled: e(
|
|
3557
|
-
loading: e(
|
|
3558
|
-
onClick:
|
|
3602
|
+
disabled: e(V),
|
|
3603
|
+
loading: e(V),
|
|
3604
|
+
onClick: s
|
|
3559
3605
|
}, null, 8, ["disabled", "loading"])
|
|
3560
3606
|
]),
|
|
3561
3607
|
_: 1
|
|
@@ -3564,41 +3610,41 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3564
3610
|
default: o(() => [
|
|
3565
3611
|
l(e(be), {
|
|
3566
3612
|
ref_key: "tableRef",
|
|
3567
|
-
ref:
|
|
3613
|
+
ref: i,
|
|
3568
3614
|
size: "small",
|
|
3569
3615
|
"row-key": "id",
|
|
3570
|
-
url: e(
|
|
3616
|
+
url: e(Ce).urls.search,
|
|
3571
3617
|
columns: n,
|
|
3572
|
-
loading: e(
|
|
3618
|
+
loading: e(k)
|
|
3573
3619
|
}, null, 8, ["url", "loading"])
|
|
3574
3620
|
]),
|
|
3575
3621
|
_: 1
|
|
3576
3622
|
}, 8, ["modelValue"]);
|
|
3577
3623
|
};
|
|
3578
3624
|
}
|
|
3579
|
-
}),
|
|
3625
|
+
}), Fl = /* @__PURE__ */ O({
|
|
3580
3626
|
__name: "index",
|
|
3581
3627
|
setup(x) {
|
|
3582
|
-
const U =
|
|
3583
|
-
requesting:
|
|
3584
|
-
executing:
|
|
3585
|
-
} =
|
|
3586
|
-
tableRef:
|
|
3587
|
-
formModalRef:
|
|
3628
|
+
const U = Ol, w = $l, k = El, V = H(), {
|
|
3629
|
+
requesting: _,
|
|
3630
|
+
executing: m
|
|
3631
|
+
} = z(pe), {
|
|
3632
|
+
tableRef: i,
|
|
3633
|
+
formModalRef: u,
|
|
3588
3634
|
reset: n,
|
|
3589
|
-
refresh:
|
|
3590
|
-
openFormModal:
|
|
3591
|
-
editFormModal:
|
|
3592
|
-
} =
|
|
3635
|
+
refresh: v,
|
|
3636
|
+
openFormModal: s,
|
|
3637
|
+
editFormModal: c
|
|
3638
|
+
} = J(), {
|
|
3593
3639
|
dialogRef: f,
|
|
3594
|
-
open:
|
|
3640
|
+
open: b
|
|
3595
3641
|
} = ve(), {
|
|
3596
3642
|
dialogRef: D,
|
|
3597
3643
|
open: R
|
|
3598
3644
|
} = ve(), {
|
|
3599
3645
|
dialogRef: t,
|
|
3600
3646
|
open: d
|
|
3601
|
-
} = ve(),
|
|
3647
|
+
} = ve(), p = [{
|
|
3602
3648
|
prop: "domain.name",
|
|
3603
3649
|
label: a("config.domain"),
|
|
3604
3650
|
width: 129,
|
|
@@ -3623,16 +3669,16 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3623
3669
|
align: "center",
|
|
3624
3670
|
width: 140,
|
|
3625
3671
|
cellRenderer: ({
|
|
3626
|
-
rowData:
|
|
3672
|
+
rowData: y
|
|
3627
3673
|
}) => l(r("el-space"), null, {
|
|
3628
3674
|
default: () => [l(r("el-text"), null, {
|
|
3629
|
-
default: () => [
|
|
3675
|
+
default: () => [y.ssl?.renewal_days, le(" 天")]
|
|
3630
3676
|
}), l(r("el-button"), {
|
|
3631
3677
|
size: "small",
|
|
3632
3678
|
type: "primary",
|
|
3633
3679
|
text: !0,
|
|
3634
|
-
onClick: (
|
|
3635
|
-
|
|
3680
|
+
onClick: (h) => {
|
|
3681
|
+
h.stopPropagation(), y.ssl && y.ssl.id && (V.value = y.ssl, d());
|
|
3636
3682
|
}
|
|
3637
3683
|
}, {
|
|
3638
3684
|
default: () => [l("span", {
|
|
@@ -3651,36 +3697,36 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3651
3697
|
width: 100,
|
|
3652
3698
|
align: "center",
|
|
3653
3699
|
cellRenderer: ({
|
|
3654
|
-
rowData:
|
|
3700
|
+
rowData: y
|
|
3655
3701
|
}) => l(r("el-space"), null, {
|
|
3656
|
-
default: () => [l(
|
|
3702
|
+
default: () => [l(ne, {
|
|
3657
3703
|
icon: "icon-edit",
|
|
3658
3704
|
t: "",
|
|
3659
|
-
onModify: () =>
|
|
3660
|
-
id:
|
|
3705
|
+
onModify: () => c({
|
|
3706
|
+
id: y.id
|
|
3661
3707
|
})
|
|
3662
3708
|
}, null), l(X, {
|
|
3663
3709
|
icon: "icon-securityscan",
|
|
3664
3710
|
type: "primary",
|
|
3665
3711
|
size: "small",
|
|
3666
3712
|
link: !0,
|
|
3667
|
-
disabled:
|
|
3668
|
-
loading: S.value ==
|
|
3669
|
-
onClick: () =>
|
|
3713
|
+
disabled: m.value,
|
|
3714
|
+
loading: S.value == y.id && m.value,
|
|
3715
|
+
onClick: () => g(y)
|
|
3670
3716
|
}, null)]
|
|
3671
3717
|
})
|
|
3672
|
-
}], S =
|
|
3673
|
-
S.value =
|
|
3674
|
-
id:
|
|
3675
|
-
}).then((
|
|
3676
|
-
|
|
3718
|
+
}], S = H(0), g = (y) => {
|
|
3719
|
+
S.value = y.id, pe.check({
|
|
3720
|
+
id: y.id
|
|
3721
|
+
}).then((h) => {
|
|
3722
|
+
h.data && (al(h), v());
|
|
3677
3723
|
}).finally(() => {
|
|
3678
3724
|
S.value = 0;
|
|
3679
3725
|
});
|
|
3680
3726
|
};
|
|
3681
|
-
return (
|
|
3682
|
-
const
|
|
3683
|
-
return M(),
|
|
3727
|
+
return (y, h) => {
|
|
3728
|
+
const C = r("el-space"), A = r("el-page-header"), L = r("el-card");
|
|
3729
|
+
return M(), q(L, {
|
|
3684
3730
|
"body-style": {
|
|
3685
3731
|
padding: "12px",
|
|
3686
3732
|
height: "450px"
|
|
@@ -3688,28 +3734,28 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3688
3734
|
"body-class": "flex-1",
|
|
3689
3735
|
class: "config-card"
|
|
3690
3736
|
}, {
|
|
3691
|
-
header: o(() => [l(
|
|
3737
|
+
header: o(() => [l(A, {
|
|
3692
3738
|
icon: ""
|
|
3693
3739
|
}, {
|
|
3694
|
-
title: o(() => [
|
|
3695
|
-
content: o(() => [l(
|
|
3740
|
+
title: o(() => [j("span", null, I(e(a)("config.keys.sites")), 1)]),
|
|
3741
|
+
content: o(() => [l(C, {
|
|
3696
3742
|
alignment: "center",
|
|
3697
3743
|
style: {
|
|
3698
3744
|
height: "32px"
|
|
3699
3745
|
}
|
|
3700
3746
|
}, {
|
|
3701
3747
|
default: o(() => [l(e(K), {
|
|
3702
|
-
loading: e(
|
|
3748
|
+
loading: e(_),
|
|
3703
3749
|
onRefresh: e(n)
|
|
3704
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
|
3705
|
-
onOpen: e(
|
|
3750
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(P), {
|
|
3751
|
+
onOpen: e(s)
|
|
3706
3752
|
}, null, 8, ["onOpen"])]),
|
|
3707
3753
|
_: 1
|
|
3708
3754
|
})]),
|
|
3709
|
-
extra: o(() => [l(e(
|
|
3710
|
-
onOpen: e(
|
|
3755
|
+
extra: o(() => [l(e(P), {
|
|
3756
|
+
onOpen: e(b),
|
|
3711
3757
|
icon: "icon-compass"
|
|
3712
|
-
}, null, 8, ["onOpen"]), l(e(
|
|
3758
|
+
}, null, 8, ["onOpen"]), l(e(P), {
|
|
3713
3759
|
onOpen: e(R),
|
|
3714
3760
|
icon: "icon-safetycertificate-f"
|
|
3715
3761
|
}, null, 8, ["onOpen"])]),
|
|
@@ -3717,23 +3763,23 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3717
3763
|
})]),
|
|
3718
3764
|
default: o(() => [l(e(ie), {
|
|
3719
3765
|
ref_key: "tableRef",
|
|
3720
|
-
ref:
|
|
3766
|
+
ref: i,
|
|
3721
3767
|
size: "small",
|
|
3722
3768
|
"row-key": "id",
|
|
3723
3769
|
url: e(pe).urls[e(ol)],
|
|
3724
3770
|
"auto-search": "",
|
|
3725
|
-
columns:
|
|
3726
|
-
}, null, 8, ["url"]), l(
|
|
3771
|
+
columns: p
|
|
3772
|
+
}, null, 8, ["url"]), l(Dl, {
|
|
3727
3773
|
ref_key: "formModalRef",
|
|
3728
|
-
ref:
|
|
3729
|
-
onRefresh: e(
|
|
3774
|
+
ref: u,
|
|
3775
|
+
onRefresh: e(v)
|
|
3730
3776
|
}, null, 8, ["onRefresh"]), l(e(U), {
|
|
3731
3777
|
ref_key: "domainTableDrawerRef",
|
|
3732
3778
|
ref: f
|
|
3733
|
-
}, null, 512), l(e(
|
|
3779
|
+
}, null, 512), l(e(w), {
|
|
3734
3780
|
ref_key: "sslTableDrawerRef",
|
|
3735
3781
|
ref: D
|
|
3736
|
-
}, null, 512), l(e(
|
|
3782
|
+
}, null, 512), l(e(k), {
|
|
3737
3783
|
ref_key: "sslLogTableDrawerRef",
|
|
3738
3784
|
ref: t
|
|
3739
3785
|
}, null, 512)]),
|
|
@@ -3741,19 +3787,19 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3741
3787
|
});
|
|
3742
3788
|
};
|
|
3743
3789
|
}
|
|
3744
|
-
}),
|
|
3790
|
+
}), zl = /* @__PURE__ */ Ee(Fl, [["__scopeId", "data-v-34e18506"]]), Il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3745
3791
|
__proto__: null,
|
|
3746
|
-
default:
|
|
3747
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3792
|
+
default: zl
|
|
3793
|
+
}, Symbol.toStringTag, { value: "Module" })), Nl = {
|
|
3748
3794
|
request: "request",
|
|
3749
3795
|
error: "error",
|
|
3750
3796
|
sql: "SQL"
|
|
3751
|
-
}, ce =
|
|
3797
|
+
}, ce = Y.routineApi("log", "id", Nl), Xl = /* @__PURE__ */ O({
|
|
3752
3798
|
__name: "index",
|
|
3753
3799
|
setup(x) {
|
|
3754
3800
|
const U = {
|
|
3755
|
-
dates: [
|
|
3756
|
-
},
|
|
3801
|
+
dates: [E.getCurrentHour().format(E.DATE_VALUE_FORMAT), E.getCurrentHour(1).format(E.DATE_VALUE_FORMAT)]
|
|
3802
|
+
}, w = [{
|
|
3757
3803
|
label: a("base.sort"),
|
|
3758
3804
|
type: "index",
|
|
3759
3805
|
width: 60
|
|
@@ -3762,52 +3808,52 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3762
3808
|
prop: "time",
|
|
3763
3809
|
width: 180,
|
|
3764
3810
|
render: ({
|
|
3765
|
-
rowData:
|
|
3766
|
-
}) => l(
|
|
3811
|
+
rowData: u
|
|
3812
|
+
}) => l(G, null, [E.formatDate(u.time)])
|
|
3767
3813
|
}, {
|
|
3768
3814
|
label: a("base.url"),
|
|
3769
3815
|
prop: "url",
|
|
3770
3816
|
align: "left",
|
|
3771
3817
|
width: 200
|
|
3772
3818
|
}], {
|
|
3773
|
-
requesting:
|
|
3774
|
-
} =
|
|
3775
|
-
tableRef:
|
|
3776
|
-
keyword:
|
|
3777
|
-
search:
|
|
3778
|
-
reset:
|
|
3779
|
-
} =
|
|
3780
|
-
return (
|
|
3781
|
-
const
|
|
3782
|
-
return M(),
|
|
3819
|
+
requesting: k
|
|
3820
|
+
} = z(ce), {
|
|
3821
|
+
tableRef: V,
|
|
3822
|
+
keyword: _,
|
|
3823
|
+
search: m,
|
|
3824
|
+
reset: i
|
|
3825
|
+
} = J(U);
|
|
3826
|
+
return (u, n) => {
|
|
3827
|
+
const v = r("el-date-picker"), s = r("el-space"), c = r("el-page-header"), f = r("el-card");
|
|
3828
|
+
return M(), q(f, {
|
|
3783
3829
|
class: "basic-card flex-full",
|
|
3784
3830
|
"body-class": "flex-1"
|
|
3785
3831
|
}, {
|
|
3786
|
-
header: o(() => [l(
|
|
3832
|
+
header: o(() => [l(c, {
|
|
3787
3833
|
class: "basic-header"
|
|
3788
3834
|
}, {
|
|
3789
3835
|
title: o(() => [l(e(K), {
|
|
3790
|
-
loading: e(
|
|
3791
|
-
onRefresh: e(
|
|
3836
|
+
loading: e(k),
|
|
3837
|
+
onRefresh: e(i)
|
|
3792
3838
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
3793
|
-
content: o(() => [l(
|
|
3839
|
+
content: o(() => [l(s, {
|
|
3794
3840
|
class: "search-bar"
|
|
3795
3841
|
}, {
|
|
3796
|
-
default: o(() => [l(
|
|
3797
|
-
modelValue: e(
|
|
3798
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
3842
|
+
default: o(() => [l(v, {
|
|
3843
|
+
modelValue: e(_).dates,
|
|
3844
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => e(_).dates = b),
|
|
3799
3845
|
class: "basic-search-datetimerange",
|
|
3800
|
-
"value-format": e(
|
|
3801
|
-
format: e(
|
|
3846
|
+
"value-format": e(E).DATE_VALUE_FORMAT,
|
|
3847
|
+
format: e(E).DATE_SHOW_FORMAT,
|
|
3802
3848
|
type: "datetimerange",
|
|
3803
3849
|
"range-separator": "-",
|
|
3804
3850
|
"start-placeholder": e(a)("base.start_at"),
|
|
3805
3851
|
"end-placeholder": e(a)("base.end_at"),
|
|
3806
3852
|
clearable: !1,
|
|
3807
|
-
onChange: n[1] || (n[1] = (
|
|
3853
|
+
onChange: n[1] || (n[1] = (b) => e(m)())
|
|
3808
3854
|
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(de), {
|
|
3809
|
-
disabled: e(
|
|
3810
|
-
onSearch: n[2] || (n[2] = (
|
|
3855
|
+
disabled: e(k),
|
|
3856
|
+
onSearch: n[2] || (n[2] = (b) => e(m)())
|
|
3811
3857
|
}, null, 8, ["disabled"])]),
|
|
3812
3858
|
_: 1
|
|
3813
3859
|
})]),
|
|
@@ -3815,23 +3861,23 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3815
3861
|
})]),
|
|
3816
3862
|
default: o(() => [l(e(ie), {
|
|
3817
3863
|
ref_key: "tableRef",
|
|
3818
|
-
ref:
|
|
3864
|
+
ref: V,
|
|
3819
3865
|
size: "small",
|
|
3820
|
-
columns:
|
|
3866
|
+
columns: w,
|
|
3821
3867
|
url: e(ce).urls.request,
|
|
3822
|
-
"search-param": e(
|
|
3868
|
+
"search-param": e(_),
|
|
3823
3869
|
"auto-search": ""
|
|
3824
3870
|
}, null, 8, ["url", "search-param"])]),
|
|
3825
3871
|
_: 1
|
|
3826
3872
|
});
|
|
3827
3873
|
};
|
|
3828
3874
|
}
|
|
3829
|
-
}),
|
|
3875
|
+
}), Zl = /* @__PURE__ */ O({
|
|
3830
3876
|
__name: "index",
|
|
3831
3877
|
setup(x) {
|
|
3832
3878
|
const U = {
|
|
3833
|
-
dates: [
|
|
3834
|
-
},
|
|
3879
|
+
dates: [E.getCurrentDate(-7).format(E.DATE_FORMAT), E.getCurrentDate(0).format(E.DATE_FORMAT)]
|
|
3880
|
+
}, w = [{
|
|
3835
3881
|
label: a("base.sort"),
|
|
3836
3882
|
type: "index",
|
|
3837
3883
|
width: 60
|
|
@@ -3840,52 +3886,52 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3840
3886
|
prop: "time",
|
|
3841
3887
|
width: 180,
|
|
3842
3888
|
render: ({
|
|
3843
|
-
rowData:
|
|
3844
|
-
}) => l(
|
|
3889
|
+
rowData: u
|
|
3890
|
+
}) => l(G, null, [E.formatDate(u.time)])
|
|
3845
3891
|
}, {
|
|
3846
3892
|
label: a("base.url"),
|
|
3847
3893
|
prop: "url",
|
|
3848
3894
|
align: "left",
|
|
3849
3895
|
width: 200
|
|
3850
3896
|
}], {
|
|
3851
|
-
requesting:
|
|
3852
|
-
} =
|
|
3853
|
-
tableRef:
|
|
3854
|
-
keyword:
|
|
3855
|
-
search:
|
|
3856
|
-
reset:
|
|
3857
|
-
} =
|
|
3858
|
-
return (
|
|
3859
|
-
const
|
|
3860
|
-
return M(),
|
|
3897
|
+
requesting: k
|
|
3898
|
+
} = z(ce), {
|
|
3899
|
+
tableRef: V,
|
|
3900
|
+
keyword: _,
|
|
3901
|
+
search: m,
|
|
3902
|
+
reset: i
|
|
3903
|
+
} = J(U);
|
|
3904
|
+
return (u, n) => {
|
|
3905
|
+
const v = r("el-date-picker"), s = r("el-space"), c = r("el-page-header"), f = r("el-card");
|
|
3906
|
+
return M(), q(f, {
|
|
3861
3907
|
class: "basic-card flex-full",
|
|
3862
3908
|
"body-class": "flex-1"
|
|
3863
3909
|
}, {
|
|
3864
|
-
header: o(() => [l(
|
|
3910
|
+
header: o(() => [l(c, {
|
|
3865
3911
|
class: "basic-header"
|
|
3866
3912
|
}, {
|
|
3867
3913
|
title: o(() => [l(e(K), {
|
|
3868
|
-
loading: e(
|
|
3869
|
-
onRefresh: e(
|
|
3914
|
+
loading: e(k),
|
|
3915
|
+
onRefresh: e(i)
|
|
3870
3916
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
3871
|
-
content: o(() => [l(
|
|
3917
|
+
content: o(() => [l(s, {
|
|
3872
3918
|
class: "search-bar"
|
|
3873
3919
|
}, {
|
|
3874
|
-
default: o(() => [l(
|
|
3875
|
-
modelValue: e(
|
|
3876
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
3920
|
+
default: o(() => [l(v, {
|
|
3921
|
+
modelValue: e(_).dates,
|
|
3922
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => e(_).dates = b),
|
|
3877
3923
|
class: "basic-search-daterange",
|
|
3878
|
-
"value-format": e(
|
|
3879
|
-
format: e(
|
|
3924
|
+
"value-format": e(E).DATE_FORMAT,
|
|
3925
|
+
format: e(E).DATE_FORMAT,
|
|
3880
3926
|
type: "daterange",
|
|
3881
3927
|
"range-separator": "-",
|
|
3882
3928
|
"start-placeholder": e(a)("base.start_at"),
|
|
3883
3929
|
"end-placeholder": e(a)("base.end_at"),
|
|
3884
3930
|
clearable: !1,
|
|
3885
|
-
onChange: n[1] || (n[1] = (
|
|
3931
|
+
onChange: n[1] || (n[1] = (b) => e(m)())
|
|
3886
3932
|
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(de), {
|
|
3887
|
-
disabled: e(
|
|
3888
|
-
onSearch: n[2] || (n[2] = (
|
|
3933
|
+
disabled: e(k),
|
|
3934
|
+
onSearch: n[2] || (n[2] = (b) => e(m)())
|
|
3889
3935
|
}, null, 8, ["disabled"])]),
|
|
3890
3936
|
_: 1
|
|
3891
3937
|
})]),
|
|
@@ -3893,23 +3939,23 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3893
3939
|
})]),
|
|
3894
3940
|
default: o(() => [l(e(ie), {
|
|
3895
3941
|
ref_key: "tableRef",
|
|
3896
|
-
ref:
|
|
3942
|
+
ref: V,
|
|
3897
3943
|
size: "small",
|
|
3898
|
-
columns:
|
|
3944
|
+
columns: w,
|
|
3899
3945
|
url: e(ce).urls.error,
|
|
3900
|
-
"search-param": e(
|
|
3946
|
+
"search-param": e(_),
|
|
3901
3947
|
"auto-search": ""
|
|
3902
3948
|
}, null, 8, ["url", "search-param"])]),
|
|
3903
3949
|
_: 1
|
|
3904
3950
|
});
|
|
3905
3951
|
};
|
|
3906
3952
|
}
|
|
3907
|
-
}),
|
|
3953
|
+
}), ea = /* @__PURE__ */ O({
|
|
3908
3954
|
__name: "index",
|
|
3909
3955
|
setup(x) {
|
|
3910
3956
|
const U = {
|
|
3911
|
-
dates: [
|
|
3912
|
-
},
|
|
3957
|
+
dates: [E.getCurrentDate(-7).format(E.DATE_FORMAT), E.getCurrentDate().format(E.DATE_FORMAT)]
|
|
3958
|
+
}, w = [{
|
|
3913
3959
|
label: a("base.sort"),
|
|
3914
3960
|
type: "index",
|
|
3915
3961
|
width: 60
|
|
@@ -3918,52 +3964,52 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3918
3964
|
prop: "time",
|
|
3919
3965
|
width: 180,
|
|
3920
3966
|
render: ({
|
|
3921
|
-
rowData:
|
|
3922
|
-
}) => l(
|
|
3967
|
+
rowData: u
|
|
3968
|
+
}) => l(G, null, [E.formatDate(u.time)])
|
|
3923
3969
|
}, {
|
|
3924
3970
|
label: a("base.url"),
|
|
3925
3971
|
prop: "url",
|
|
3926
3972
|
align: "left",
|
|
3927
3973
|
width: 200
|
|
3928
3974
|
}], {
|
|
3929
|
-
requesting:
|
|
3930
|
-
} =
|
|
3931
|
-
tableRef:
|
|
3932
|
-
keyword:
|
|
3933
|
-
search:
|
|
3934
|
-
reset:
|
|
3935
|
-
} =
|
|
3936
|
-
return (
|
|
3937
|
-
const
|
|
3938
|
-
return M(),
|
|
3975
|
+
requesting: k
|
|
3976
|
+
} = z(ce), {
|
|
3977
|
+
tableRef: V,
|
|
3978
|
+
keyword: _,
|
|
3979
|
+
search: m,
|
|
3980
|
+
reset: i
|
|
3981
|
+
} = J(U);
|
|
3982
|
+
return (u, n) => {
|
|
3983
|
+
const v = r("el-date-picker"), s = r("el-space"), c = r("el-page-header"), f = r("el-card");
|
|
3984
|
+
return M(), q(f, {
|
|
3939
3985
|
class: "basic-card flex-full",
|
|
3940
3986
|
"body-class": "flex-1"
|
|
3941
3987
|
}, {
|
|
3942
|
-
header: o(() => [l(
|
|
3988
|
+
header: o(() => [l(c, {
|
|
3943
3989
|
class: "basic-header"
|
|
3944
3990
|
}, {
|
|
3945
3991
|
title: o(() => [l(e(K), {
|
|
3946
|
-
loading: e(
|
|
3947
|
-
onRefresh: e(
|
|
3992
|
+
loading: e(k),
|
|
3993
|
+
onRefresh: e(i)
|
|
3948
3994
|
}, null, 8, ["loading", "onRefresh"])]),
|
|
3949
|
-
content: o(() => [l(
|
|
3995
|
+
content: o(() => [l(s, {
|
|
3950
3996
|
class: "search-bar"
|
|
3951
3997
|
}, {
|
|
3952
|
-
default: o(() => [l(
|
|
3953
|
-
modelValue: e(
|
|
3954
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
3998
|
+
default: o(() => [l(v, {
|
|
3999
|
+
modelValue: e(_).dates,
|
|
4000
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => e(_).dates = b),
|
|
3955
4001
|
class: "basic-search-daterange",
|
|
3956
|
-
"value-format": e(
|
|
3957
|
-
format: e(
|
|
4002
|
+
"value-format": e(E).DATE_FORMAT,
|
|
4003
|
+
format: e(E).DATE_FORMAT,
|
|
3958
4004
|
type: "daterange",
|
|
3959
4005
|
"range-separator": "-",
|
|
3960
4006
|
"start-placeholder": e(a)("base.start_at"),
|
|
3961
4007
|
"end-placeholder": e(a)("base.end_at"),
|
|
3962
4008
|
clearable: !1,
|
|
3963
|
-
onChange: n[1] || (n[1] = (
|
|
4009
|
+
onChange: n[1] || (n[1] = (b) => e(m)())
|
|
3964
4010
|
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(de), {
|
|
3965
|
-
disabled: e(
|
|
3966
|
-
onSearch: n[2] || (n[2] = (
|
|
4011
|
+
disabled: e(k),
|
|
4012
|
+
onSearch: n[2] || (n[2] = (b) => e(m)())
|
|
3967
4013
|
}, null, 8, ["disabled"])]),
|
|
3968
4014
|
_: 1
|
|
3969
4015
|
})]),
|
|
@@ -3971,18 +4017,18 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3971
4017
|
})]),
|
|
3972
4018
|
default: o(() => [l(e(ie), {
|
|
3973
4019
|
ref_key: "tableRef",
|
|
3974
|
-
ref:
|
|
4020
|
+
ref: V,
|
|
3975
4021
|
size: "small",
|
|
3976
|
-
columns:
|
|
4022
|
+
columns: w,
|
|
3977
4023
|
url: e(ce).urls.sql,
|
|
3978
|
-
"search-param": e(
|
|
4024
|
+
"search-param": e(_),
|
|
3979
4025
|
"auto-search": ""
|
|
3980
4026
|
}, null, 8, ["url", "search-param"])]),
|
|
3981
4027
|
_: 1
|
|
3982
4028
|
});
|
|
3983
4029
|
};
|
|
3984
4030
|
}
|
|
3985
|
-
}),
|
|
4031
|
+
}), la = /* @__PURE__ */ O({
|
|
3986
4032
|
__name: "LanguageSelect",
|
|
3987
4033
|
props: {
|
|
3988
4034
|
modelValue: {
|
|
@@ -4007,47 +4053,47 @@ const Hl = /* @__PURE__ */ O({
|
|
|
4007
4053
|
setup(x, {
|
|
4008
4054
|
emit: U
|
|
4009
4055
|
}) {
|
|
4010
|
-
const
|
|
4011
|
-
requesting:
|
|
4012
|
-
} =
|
|
4013
|
-
value:
|
|
4014
|
-
options:
|
|
4015
|
-
change:
|
|
4016
|
-
} = te(
|
|
4056
|
+
const w = U, k = x, {
|
|
4057
|
+
requesting: V
|
|
4058
|
+
} = z(W), {
|
|
4059
|
+
value: _,
|
|
4060
|
+
options: m,
|
|
4061
|
+
change: i
|
|
4062
|
+
} = re(te(k, "modelValue"), w, {
|
|
4017
4063
|
key: "LANGUAGE_SELECT",
|
|
4018
|
-
url:
|
|
4019
|
-
api:
|
|
4064
|
+
url: W.urls.languages,
|
|
4065
|
+
api: W,
|
|
4020
4066
|
isArray: !0
|
|
4021
4067
|
}, {
|
|
4022
|
-
formatOptions: (
|
|
4068
|
+
formatOptions: (u) => u.map((n) => ({
|
|
4023
4069
|
value: n,
|
|
4024
4070
|
label: n
|
|
4025
4071
|
}))
|
|
4026
4072
|
});
|
|
4027
|
-
return (
|
|
4028
|
-
const
|
|
4029
|
-
return M(),
|
|
4030
|
-
modelValue: e(
|
|
4031
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
4032
|
-
disabled: e(
|
|
4033
|
-
onChange: e(
|
|
4073
|
+
return (u, n) => {
|
|
4074
|
+
const v = r("el-radio-button"), s = r("el-radio-group");
|
|
4075
|
+
return M(), q(s, {
|
|
4076
|
+
modelValue: e(_),
|
|
4077
|
+
"onUpdate:modelValue": n[0] || (n[0] = (c) => F(_) ? _.value = c : null),
|
|
4078
|
+
disabled: e(V),
|
|
4079
|
+
onChange: e(i)
|
|
4034
4080
|
}, {
|
|
4035
|
-
default: o(() => [(M(!0),
|
|
4036
|
-
key:
|
|
4037
|
-
value:
|
|
4081
|
+
default: o(() => [(M(!0), B(G, null, ae(e(m), (c) => (M(), q(v, {
|
|
4082
|
+
key: c.value,
|
|
4083
|
+
value: c.value
|
|
4038
4084
|
}, {
|
|
4039
|
-
default: o(() => [
|
|
4085
|
+
default: o(() => [j("span", null, I(c.label), 1)]),
|
|
4040
4086
|
_: 2
|
|
4041
4087
|
}, 1032, ["value"]))), 128))]),
|
|
4042
4088
|
_: 1
|
|
4043
4089
|
}, 8, ["modelValue", "disabled", "onChange"]);
|
|
4044
4090
|
};
|
|
4045
4091
|
}
|
|
4046
|
-
}),
|
|
4092
|
+
}), Bl = () => import("./index-SHsqnbNG.js"), Pl = () => import("./index-CJMTIvHk.js"), jl = () => import("./index-BMn8mAns.js"), aa = [
|
|
4047
4093
|
{
|
|
4048
4094
|
path: nl,
|
|
4049
4095
|
name: "RequestLog",
|
|
4050
|
-
component:
|
|
4096
|
+
component: Bl,
|
|
4051
4097
|
meta: {
|
|
4052
4098
|
title: a("menu.RequestLog")
|
|
4053
4099
|
}
|
|
@@ -4055,7 +4101,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
4055
4101
|
{
|
|
4056
4102
|
path: tl,
|
|
4057
4103
|
name: "ErrorLog",
|
|
4058
|
-
component:
|
|
4104
|
+
component: Pl,
|
|
4059
4105
|
meta: {
|
|
4060
4106
|
title: a("menu.ErrorLog")
|
|
4061
4107
|
}
|
|
@@ -4063,33 +4109,33 @@ const Hl = /* @__PURE__ */ O({
|
|
|
4063
4109
|
{
|
|
4064
4110
|
path: rl,
|
|
4065
4111
|
name: "SqlLog",
|
|
4066
|
-
component:
|
|
4112
|
+
component: jl,
|
|
4067
4113
|
meta: {
|
|
4068
4114
|
title: a("menu.SqlLog")
|
|
4069
4115
|
}
|
|
4070
4116
|
}
|
|
4071
|
-
],
|
|
4117
|
+
], oa = {
|
|
4072
4118
|
install: (x) => {
|
|
4073
4119
|
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
4120
|
},
|
|
4075
4121
|
version: "__VERSION__"
|
|
4076
|
-
},
|
|
4122
|
+
}, 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
4123
|
export {
|
|
4078
|
-
|
|
4079
|
-
|
|
4124
|
+
Jl as AdminsPage,
|
|
4125
|
+
Sl as DomainProviderSelect,
|
|
4080
4126
|
Ie as DomainSelect,
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4127
|
+
Zl as ErrorLogsPage,
|
|
4128
|
+
la as LanguageSelect,
|
|
4129
|
+
Ql as LanguagesPage,
|
|
4130
|
+
aa as LogRoutes,
|
|
4085
4131
|
ml as MenuSelect,
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4132
|
+
Yl as MenusPage,
|
|
4133
|
+
Xl as RequestLogsPage,
|
|
4134
|
+
Hl as RolesPage,
|
|
4135
|
+
ea as SQLLogsPage,
|
|
4136
|
+
zl as SitePage,
|
|
4137
|
+
ql as SiteSelect,
|
|
4092
4138
|
il as TopMenuSelect,
|
|
4093
|
-
|
|
4094
|
-
|
|
4139
|
+
na as basicModules,
|
|
4140
|
+
oa as default
|
|
4095
4141
|
};
|