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