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