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