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