auto-vue-basic 0.0.45 → 0.0.47
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 +2141 -855
- package/dist/auto-vue-basic.umd.js +1 -1
- package/dist/index.css +1 -1
- package/dist/types/api/config/config.d.ts +3 -0
- package/dist/types/api/config/domain.d.ts +3 -0
- package/dist/types/api/config/domainProvider.d.ts +3 -0
- package/dist/types/api/config/site.d.ts +5 -0
- package/dist/types/api/config/ssl.d.ts +5 -0
- package/dist/types/api/config/sslLog.d.ts +3 -0
- package/dist/types/types/config.d.ts +55 -0
- package/dist/types/views/config/components/DomainFormModal.vue.d.ts +12 -0
- package/dist/types/views/config/components/DomainProviderFormModal.vue.d.ts +12 -0
- package/dist/types/views/config/components/DomainProviderSelect.vue.d.ts +31 -0
- package/dist/types/views/config/components/DomainProviderTableDrawer.vue.d.ts +29 -0
- package/dist/types/views/config/components/DomainSelect.vue.d.ts +31 -0
- package/dist/types/views/config/components/DomainTableDrawer.vue.d.ts +327 -0
- package/dist/types/views/config/components/SSLFormModal.vue.d.ts +132 -0
- package/dist/types/views/config/components/SSLLogTableDrawer.vue.d.ts +20 -0
- package/dist/types/views/config/components/SiteFormModal.vue.d.ts +12 -0
- package/dist/types/views/config/components/SiteSelect.vue.d.ts +31 -0
- package/dist/types/views/config/components/SiteTable.vue.d.ts +390 -0
- package/dist/types/views/config/index.vue.d.ts +3 -0
- package/dist/types/views/index.d.ts +1 -0
- package/dist/version.js +1 -1
- package/package.json +4 -3
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { createAutoApi as
|
3
|
-
const
|
1
|
+
import { defineComponent as q, ref as z, onBeforeMount as De, resolveComponent as s, createBlock as T, openBlock as S, unref as e, isRef as P, withCtx as t, createVNode as l, createTextVNode as J, createElementBlock as j, Fragment as W, renderList as le, toDisplayString as H, withKeys as me, toRef as te, createElementVNode as N, nextTick as _e, onMounted as Re, withModifiers as Le, normalizeClass as ge, isVNode as Te, reactive as qe, watch as Ce, createCommentVNode as Oe } from "vue";
|
2
|
+
import { createAutoApi as Y, useForm as G, Translate as a, RulesUtils as Ee, FormDialog as Q, BasicAvatar as Fe, ModifyButton as X, useCrudPage as $, useLoading as F, ProTable as se, DEFAULT_PAGE_KEY as ce, SearchButton as Z, RefreshButton as B, OpenButton as K, useSelect as ne, InlineRefreshButton as ue, TimeUtils as O, BasicDrawer as he, ProTableList as re, RequestButton as fe, AssetsUtils as $e, notification as ze, DEFAULT_LIST_URL as Pe, DEFAULT_STATUS_KEY as Ue, AutoApiUtils as Ae, DEFAULT_REMOVE_KEY as Ie, REQUEST_LOG_URL as Be, ERROR_LOG_URL as Ne, SQL_LOG_URL as je } from "auto-vue-manual";
|
3
|
+
const be = Y("admin", {}, "key"), pe = Y("role", {}, "key"), Ke = /* @__PURE__ */ q({
|
4
4
|
__name: "AdminFormModal",
|
5
5
|
emits: ["refresh"],
|
6
|
-
setup(
|
7
|
-
const
|
6
|
+
setup(w, { expose: x, emit: g }) {
|
7
|
+
const h = g, y = {
|
8
8
|
key: "",
|
9
9
|
username: "",
|
10
10
|
password: "",
|
@@ -13,7 +13,7 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
13
13
|
language: "zh-CN",
|
14
14
|
remark: "",
|
15
15
|
roles: []
|
16
|
-
}, { modal:
|
16
|
+
}, { modal: f, title: i, form: p, formData: m, requesting: n, executing: V, open: u, modify: c, submit: k, closed: v } = G(h, y, be), U = {
|
17
17
|
username: [
|
18
18
|
{
|
19
19
|
required: !0,
|
@@ -24,7 +24,7 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
24
24
|
phone: [
|
25
25
|
{
|
26
26
|
required: !0,
|
27
|
-
validator:
|
27
|
+
validator: Ee.phoneRule,
|
28
28
|
message: a("base.placeholder.input base.phone"),
|
29
29
|
trigger: "blur"
|
30
30
|
}
|
@@ -58,113 +58,113 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
58
58
|
trigger: "change"
|
59
59
|
}
|
60
60
|
]
|
61
|
-
},
|
62
|
-
const
|
63
|
-
|
61
|
+
}, b = z([]), o = async () => {
|
62
|
+
const d = await pe.list();
|
63
|
+
b.value = Array.isArray(d == null ? void 0 : d.data) ? d.data : [];
|
64
64
|
};
|
65
|
-
return
|
66
|
-
await
|
67
|
-
}),
|
68
|
-
open:
|
69
|
-
modify:
|
70
|
-
}), (
|
71
|
-
const
|
72
|
-
return
|
73
|
-
modelValue: e(
|
74
|
-
"onUpdate:modelValue": r[7] || (r[7] = (
|
75
|
-
title: e(
|
65
|
+
return De(async () => {
|
66
|
+
await o();
|
67
|
+
}), x({
|
68
|
+
open: u,
|
69
|
+
modify: c
|
70
|
+
}), (d, r) => {
|
71
|
+
const R = s("el-input"), _ = s("el-form-item"), D = s("el-radio-button"), M = s("el-radio-group"), L = s("el-checkbox"), A = s("el-checkbox-group"), C = s("el-form");
|
72
|
+
return S(), T(e(Q), {
|
73
|
+
modelValue: e(f),
|
74
|
+
"onUpdate:modelValue": r[7] || (r[7] = (E) => P(f) ? f.value = E : null),
|
75
|
+
title: e(i)(),
|
76
76
|
width: "600px",
|
77
|
-
executing: e(
|
77
|
+
executing: e(V),
|
78
78
|
onClosed: e(v),
|
79
|
-
onSubmit: e(
|
79
|
+
onSubmit: e(k)
|
80
80
|
}, {
|
81
|
-
default:
|
82
|
-
l(
|
81
|
+
default: t(() => [
|
82
|
+
l(C, {
|
83
83
|
ref_key: "form",
|
84
|
-
ref:
|
85
|
-
model: e(
|
84
|
+
ref: p,
|
85
|
+
model: e(m),
|
86
86
|
"label-width": "auto",
|
87
|
-
rules:
|
88
|
-
disabled: e(n) || e(
|
87
|
+
rules: U,
|
88
|
+
disabled: e(n) || e(V)
|
89
89
|
}, {
|
90
|
-
default:
|
91
|
-
l(
|
90
|
+
default: t(() => [
|
91
|
+
l(_, {
|
92
92
|
label: e(a)("base.username"),
|
93
93
|
prop: "username"
|
94
94
|
}, {
|
95
|
-
default:
|
96
|
-
l(
|
97
|
-
modelValue: e(
|
98
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
95
|
+
default: t(() => [
|
96
|
+
l(R, {
|
97
|
+
modelValue: e(m).username,
|
98
|
+
"onUpdate:modelValue": r[0] || (r[0] = (E) => e(m).username = E),
|
99
99
|
placeholder: e(a)("base.placeholder.input"),
|
100
100
|
autocomplete: "off"
|
101
101
|
}, null, 8, ["modelValue", "placeholder"])
|
102
102
|
]),
|
103
103
|
_: 1
|
104
104
|
}, 8, ["label"]),
|
105
|
-
l(
|
105
|
+
l(_, {
|
106
106
|
label: e(a)("base.phone"),
|
107
107
|
prop: "phone"
|
108
108
|
}, {
|
109
|
-
default:
|
110
|
-
l(
|
111
|
-
modelValue: e(
|
112
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
109
|
+
default: t(() => [
|
110
|
+
l(R, {
|
111
|
+
modelValue: e(m).phone,
|
112
|
+
"onUpdate:modelValue": r[1] || (r[1] = (E) => e(m).phone = E),
|
113
113
|
placeholder: e(a)("base.placeholder.input"),
|
114
114
|
autocomplete: "off"
|
115
115
|
}, null, 8, ["modelValue", "placeholder"])
|
116
116
|
]),
|
117
117
|
_: 1
|
118
118
|
}, 8, ["label"]),
|
119
|
-
l(
|
119
|
+
l(_, {
|
120
120
|
label: e(a)("base.password"),
|
121
121
|
prop: "password",
|
122
|
-
required: !e(
|
122
|
+
required: !e(m).key
|
123
123
|
}, {
|
124
|
-
default:
|
125
|
-
l(
|
126
|
-
modelValue: e(
|
127
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
124
|
+
default: t(() => [
|
125
|
+
l(R, {
|
126
|
+
modelValue: e(m).password,
|
127
|
+
"onUpdate:modelValue": r[2] || (r[2] = (E) => e(m).password = E),
|
128
128
|
placeholder: e(a)("base.placeholder.input"),
|
129
129
|
autocomplete: "off"
|
130
130
|
}, null, 8, ["modelValue", "placeholder"])
|
131
131
|
]),
|
132
132
|
_: 1
|
133
133
|
}, 8, ["label", "required"]),
|
134
|
-
l(
|
134
|
+
l(_, {
|
135
135
|
label: e(a)("base.email"),
|
136
136
|
prop: "email"
|
137
137
|
}, {
|
138
|
-
default:
|
139
|
-
l(
|
140
|
-
modelValue: e(
|
141
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
138
|
+
default: t(() => [
|
139
|
+
l(R, {
|
140
|
+
modelValue: e(m).email,
|
141
|
+
"onUpdate:modelValue": r[3] || (r[3] = (E) => e(m).email = E),
|
142
142
|
placeholder: e(a)("base.placeholder.input"),
|
143
143
|
autocomplete: "off"
|
144
144
|
}, null, 8, ["modelValue", "placeholder"])
|
145
145
|
]),
|
146
146
|
_: 1
|
147
147
|
}, 8, ["label"]),
|
148
|
-
l(
|
148
|
+
l(_, {
|
149
149
|
label: e(a)("base.language"),
|
150
150
|
prop: "language"
|
151
151
|
}, {
|
152
|
-
default:
|
153
|
-
l(
|
154
|
-
modelValue: e(
|
155
|
-
"onUpdate:modelValue": r[4] || (r[4] = (
|
152
|
+
default: t(() => [
|
153
|
+
l(M, {
|
154
|
+
modelValue: e(m).language,
|
155
|
+
"onUpdate:modelValue": r[4] || (r[4] = (E) => e(m).language = E)
|
156
156
|
}, {
|
157
|
-
default:
|
158
|
-
l(
|
159
|
-
default:
|
160
|
-
|
157
|
+
default: t(() => [
|
158
|
+
l(D, { value: "zh-CN" }, {
|
159
|
+
default: t(() => r[8] || (r[8] = [
|
160
|
+
J("zh-CN")
|
161
161
|
])),
|
162
162
|
_: 1,
|
163
163
|
__: [8]
|
164
164
|
}),
|
165
|
-
l(
|
166
|
-
default:
|
167
|
-
|
165
|
+
l(D, { value: "en-US" }, {
|
166
|
+
default: t(() => r[9] || (r[9] = [
|
167
|
+
J("en-US")
|
168
168
|
])),
|
169
169
|
_: 1,
|
170
170
|
__: [9]
|
@@ -175,22 +175,22 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
175
175
|
]),
|
176
176
|
_: 1
|
177
177
|
}, 8, ["label"]),
|
178
|
-
l(
|
178
|
+
l(_, {
|
179
179
|
label: e(a)("menu.Role"),
|
180
180
|
prop: "roles"
|
181
181
|
}, {
|
182
|
-
default:
|
183
|
-
l(
|
184
|
-
modelValue: e(
|
185
|
-
"onUpdate:modelValue": r[5] || (r[5] = (
|
182
|
+
default: t(() => [
|
183
|
+
l(A, {
|
184
|
+
modelValue: e(m).roles,
|
185
|
+
"onUpdate:modelValue": r[5] || (r[5] = (E) => e(m).roles = E)
|
186
186
|
}, {
|
187
|
-
default:
|
188
|
-
(
|
189
|
-
key:
|
190
|
-
value:
|
187
|
+
default: t(() => [
|
188
|
+
(S(!0), j(W, null, le(b.value, (E) => (S(), T(L, {
|
189
|
+
key: E.key,
|
190
|
+
value: E.key
|
191
191
|
}, {
|
192
|
-
default:
|
193
|
-
|
192
|
+
default: t(() => [
|
193
|
+
J(H(E.translate), 1)
|
194
194
|
]),
|
195
195
|
_: 2
|
196
196
|
}, 1032, ["value"]))), 128))
|
@@ -200,14 +200,14 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
200
200
|
]),
|
201
201
|
_: 1
|
202
202
|
}, 8, ["label"]),
|
203
|
-
l(
|
203
|
+
l(_, {
|
204
204
|
label: e(a)("base.remark"),
|
205
205
|
prop: "remark"
|
206
206
|
}, {
|
207
|
-
default:
|
208
|
-
l(
|
209
|
-
modelValue: e(
|
210
|
-
"onUpdate:modelValue": r[6] || (r[6] = (
|
207
|
+
default: t(() => [
|
208
|
+
l(R, {
|
209
|
+
modelValue: e(m).remark,
|
210
|
+
"onUpdate:modelValue": r[6] || (r[6] = (E) => e(m).remark = E),
|
211
211
|
placeholder: e(a)("base.placeholder.input")
|
212
212
|
}, null, 8, ["modelValue", "placeholder"])
|
213
213
|
]),
|
@@ -221,31 +221,31 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
221
221
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
222
222
|
};
|
223
223
|
}
|
224
|
-
}),
|
224
|
+
}), We = /* @__PURE__ */ q({
|
225
225
|
__name: "index",
|
226
|
-
setup(
|
227
|
-
const
|
226
|
+
setup(w) {
|
227
|
+
const x = {
|
228
228
|
keyword: ""
|
229
|
-
},
|
229
|
+
}, g = [{
|
230
230
|
label: a("base.avatar"),
|
231
231
|
prop: "avatar",
|
232
232
|
width: 60,
|
233
233
|
render: ({
|
234
|
-
row:
|
235
|
-
}) => l(
|
236
|
-
src:
|
234
|
+
row: u
|
235
|
+
}) => l(Fe, {
|
236
|
+
src: u.avatar
|
237
237
|
}, null)
|
238
238
|
}, {
|
239
239
|
label: a("base.user"),
|
240
240
|
width: 200,
|
241
241
|
align: "left",
|
242
242
|
render: ({
|
243
|
-
row:
|
243
|
+
row: u
|
244
244
|
}) => l(s("el-space"), {
|
245
245
|
direction: "vertical",
|
246
246
|
alignment: "start"
|
247
247
|
}, {
|
248
|
-
default: () => [l("div", null, [
|
248
|
+
default: () => [l("div", null, [u.username]), l("div", null, [u.email])]
|
249
249
|
})
|
250
250
|
}, {
|
251
251
|
label: a("base.phone"),
|
@@ -273,89 +273,1378 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
273
273
|
width: 80,
|
274
274
|
align: "center",
|
275
275
|
render: ({
|
276
|
-
row:
|
277
|
-
}) => l(
|
278
|
-
onModify: () =>
|
279
|
-
key:
|
276
|
+
row: u
|
277
|
+
}) => l(X, {
|
278
|
+
onModify: () => V({
|
279
|
+
key: u.key
|
280
280
|
})
|
281
281
|
}, null)
|
282
282
|
}], {
|
283
|
-
requesting:
|
284
|
-
} = F(
|
285
|
-
tableRef:
|
286
|
-
formModalRef:
|
287
|
-
keyword:
|
288
|
-
search:
|
289
|
-
reset:
|
283
|
+
requesting: h
|
284
|
+
} = F(be), {
|
285
|
+
tableRef: y,
|
286
|
+
formModalRef: f,
|
287
|
+
keyword: i,
|
288
|
+
search: p,
|
289
|
+
reset: m,
|
290
290
|
openFormModal: n,
|
291
|
-
editFormModal:
|
292
|
-
} =
|
293
|
-
return (
|
294
|
-
const
|
295
|
-
return
|
291
|
+
editFormModal: V
|
292
|
+
} = $(x);
|
293
|
+
return (u, c) => {
|
294
|
+
const k = s("el-input"), v = s("el-space"), U = s("el-page-header"), b = s("el-card");
|
295
|
+
return S(), T(b, {
|
296
296
|
class: "basic-card flex-full",
|
297
297
|
"body-class": "flex-1"
|
298
298
|
}, {
|
299
|
-
header:
|
299
|
+
header: t(() => [l(U, {
|
300
300
|
class: "basic-header"
|
301
301
|
}, {
|
302
|
-
title:
|
303
|
-
loading: e(
|
304
|
-
onRefresh: e(
|
305
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
302
|
+
title: t(() => [l(e(B), {
|
303
|
+
loading: e(h),
|
304
|
+
onRefresh: e(m)
|
305
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(K), {
|
306
306
|
onOpen: e(n)
|
307
307
|
}, null, 8, ["onOpen"])]),
|
308
|
-
content:
|
308
|
+
content: t(() => [l(v, {
|
309
309
|
class: "search-bar"
|
310
310
|
}, {
|
311
|
-
default:
|
311
|
+
default: t(() => [l(k, {
|
312
312
|
class: "basic-search-input",
|
313
|
-
modelValue: e(
|
314
|
-
"onUpdate:modelValue":
|
313
|
+
modelValue: e(i).keyword,
|
314
|
+
"onUpdate:modelValue": c[0] || (c[0] = (o) => e(i).keyword = o),
|
315
315
|
placeholder: e(a)("base.placeholder.keyword"),
|
316
316
|
clearable: "",
|
317
|
-
onKeyup:
|
318
|
-
onClear:
|
319
|
-
}, null, 8, ["modelValue", "placeholder"]), l(e(
|
320
|
-
disabled: e(
|
321
|
-
onSearch:
|
317
|
+
onKeyup: c[1] || (c[1] = me((o) => e(p)(), ["enter"])),
|
318
|
+
onClear: c[2] || (c[2] = (o) => e(p)())
|
319
|
+
}, null, 8, ["modelValue", "placeholder"]), l(e(Z), {
|
320
|
+
disabled: e(h),
|
321
|
+
onSearch: c[3] || (c[3] = (o) => e(p)())
|
322
322
|
}, null, 8, ["disabled"])]),
|
323
323
|
_: 1
|
324
324
|
})]),
|
325
325
|
_: 1
|
326
326
|
})]),
|
327
|
-
default:
|
327
|
+
default: t(() => [l(e(se), {
|
328
328
|
ref_key: "tableRef",
|
329
|
-
ref:
|
329
|
+
ref: y,
|
330
330
|
size: "small",
|
331
|
-
columns:
|
332
|
-
url: e(
|
333
|
-
"search-param": e(
|
331
|
+
columns: g,
|
332
|
+
url: e(be).urls[e(ce)],
|
333
|
+
"search-param": e(i),
|
334
334
|
autoSearch: ""
|
335
|
-
}, null, 8, ["url", "search-param"]), l(
|
335
|
+
}, null, 8, ["url", "search-param"]), l(Ke, {
|
336
|
+
ref_key: "formModalRef",
|
337
|
+
ref: f,
|
338
|
+
onRefresh: e(m)
|
339
|
+
}, null, 8, ["onRefresh"])]),
|
340
|
+
_: 1
|
341
|
+
});
|
342
|
+
};
|
343
|
+
}
|
344
|
+
}), Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
345
|
+
__proto__: null,
|
346
|
+
default: We
|
347
|
+
}, Symbol.toStringTag, { value: "Module" })), He = Y("config", {}, "key"), ee = Y(
|
348
|
+
"site",
|
349
|
+
{
|
350
|
+
check: "check"
|
351
|
+
},
|
352
|
+
"id",
|
353
|
+
["check"],
|
354
|
+
[]
|
355
|
+
), ae = Y("domain", {}, "id", [], []), Me = /* @__PURE__ */ q({
|
356
|
+
__name: "DomainSelect",
|
357
|
+
props: {
|
358
|
+
modelValue: {
|
359
|
+
type: Number,
|
360
|
+
required: !0
|
361
|
+
},
|
362
|
+
disabled: {
|
363
|
+
type: Boolean,
|
364
|
+
default: !1
|
365
|
+
}
|
366
|
+
},
|
367
|
+
emits: ["update:modelValue", "change"],
|
368
|
+
setup(w, {
|
369
|
+
expose: x,
|
370
|
+
emit: g
|
371
|
+
}) {
|
372
|
+
const h = g, y = w, {
|
373
|
+
requesting: f
|
374
|
+
} = F(ae), {
|
375
|
+
key: i,
|
376
|
+
options: p,
|
377
|
+
refresh: m,
|
378
|
+
change: n
|
379
|
+
} = ne(te(y, "modelValue"), h, {
|
380
|
+
key: "DOMAIN_LIST",
|
381
|
+
api: ae,
|
382
|
+
isArray: !0
|
383
|
+
});
|
384
|
+
return x({
|
385
|
+
refresh: m
|
386
|
+
}), (V, u) => {
|
387
|
+
const c = s("el-select-v2");
|
388
|
+
return S(), T(c, {
|
389
|
+
modelValue: e(i),
|
390
|
+
"onUpdate:modelValue": u[0] || (u[0] = (k) => P(i) ? i.value = k : null),
|
391
|
+
options: e(p),
|
392
|
+
disabled: w.disabled || e(f),
|
393
|
+
placeholder: e(a)("base.select config.domain"),
|
394
|
+
onChange: e(n)
|
395
|
+
}, {
|
396
|
+
prefix: t(() => [l(e(ue), {
|
397
|
+
loading: e(f),
|
398
|
+
onRefresh: e(m)
|
399
|
+
}, null, 8, ["loading", "onRefresh"])]),
|
400
|
+
_: 1
|
401
|
+
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
402
|
+
};
|
403
|
+
}
|
404
|
+
}), Ge = /* @__PURE__ */ q({
|
405
|
+
__name: "SiteFormModal",
|
406
|
+
emits: ["refresh"],
|
407
|
+
setup(w, { expose: x, emit: g }) {
|
408
|
+
const h = g, y = {
|
409
|
+
id: 0,
|
410
|
+
domain_id: 0,
|
411
|
+
prefix: "",
|
412
|
+
name: "",
|
413
|
+
en_name: "",
|
414
|
+
dns: "",
|
415
|
+
git: "",
|
416
|
+
status: 1,
|
417
|
+
remark: ""
|
418
|
+
}, f = {
|
419
|
+
domain_id: [{ required: !0, message: a("base.placeholder.input config.domain"), trigger: "blur" }],
|
420
|
+
prefix: [{ required: !0, message: a("base.placeholder.input base.prefix"), trigger: "blur" }],
|
421
|
+
name: [{ required: !0, message: a("base.placeholder.input base.name"), trigger: "blur" }],
|
422
|
+
en_name: [{ required: !0, message: a("base.placeholder.input base.en_name"), trigger: "blur" }]
|
423
|
+
}, { modal: i, title: p, form: m, formData: n, requesting: V, executing: u, open: c, modify: k, submit: v, closed: U } = G(h, y, ee);
|
424
|
+
return x({
|
425
|
+
open: c,
|
426
|
+
modify: k
|
427
|
+
}), (b, o) => {
|
428
|
+
const d = s("el-form-item"), r = s("el-input"), R = s("el-form");
|
429
|
+
return S(), T(e(Q), {
|
430
|
+
modelValue: e(i),
|
431
|
+
"onUpdate:modelValue": o[7] || (o[7] = (_) => P(i) ? i.value = _ : null),
|
432
|
+
title: e(p)("config.site"),
|
433
|
+
width: "600px",
|
434
|
+
executing: e(u),
|
435
|
+
onClosed: e(U),
|
436
|
+
onSubmit: e(v)
|
437
|
+
}, {
|
438
|
+
default: t(() => [
|
439
|
+
l(R, {
|
440
|
+
ref_key: "form",
|
441
|
+
ref: m,
|
442
|
+
model: e(n),
|
443
|
+
"label-width": "auto",
|
444
|
+
rules: f,
|
445
|
+
disabled: e(V) || e(u)
|
446
|
+
}, {
|
447
|
+
default: t(() => [
|
448
|
+
l(d, {
|
449
|
+
prop: "domain_id",
|
450
|
+
label: e(a)("config.domain")
|
451
|
+
}, {
|
452
|
+
default: t(() => [
|
453
|
+
l(Me, {
|
454
|
+
modelValue: e(n).domain_id,
|
455
|
+
"onUpdate:modelValue": o[0] || (o[0] = (_) => e(n).domain_id = _),
|
456
|
+
disabled: e(u)
|
457
|
+
}, null, 8, ["modelValue", "disabled"])
|
458
|
+
]),
|
459
|
+
_: 1
|
460
|
+
}, 8, ["label"]),
|
461
|
+
l(d, {
|
462
|
+
prop: "prefix",
|
463
|
+
label: e(a)("config.prefix")
|
464
|
+
}, {
|
465
|
+
default: t(() => [
|
466
|
+
l(r, {
|
467
|
+
modelValue: e(n).prefix,
|
468
|
+
"onUpdate:modelValue": o[1] || (o[1] = (_) => e(n).prefix = _),
|
469
|
+
disabled: e(u),
|
470
|
+
placeholder: e(a)("base.placeholder.input")
|
471
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
472
|
+
]),
|
473
|
+
_: 1
|
474
|
+
}, 8, ["label"]),
|
475
|
+
l(d, {
|
476
|
+
prop: "name",
|
477
|
+
label: e(a)("base.name")
|
478
|
+
}, {
|
479
|
+
default: t(() => [
|
480
|
+
l(r, {
|
481
|
+
modelValue: e(n).name,
|
482
|
+
"onUpdate:modelValue": o[2] || (o[2] = (_) => e(n).name = _),
|
483
|
+
disabled: e(u),
|
484
|
+
placeholder: e(a)("base.placeholder.input")
|
485
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
486
|
+
]),
|
487
|
+
_: 1
|
488
|
+
}, 8, ["label"]),
|
489
|
+
l(d, {
|
490
|
+
prop: "en_name",
|
491
|
+
label: e(a)("base.en_name")
|
492
|
+
}, {
|
493
|
+
default: t(() => [
|
494
|
+
l(r, {
|
495
|
+
modelValue: e(n).en_name,
|
496
|
+
"onUpdate:modelValue": o[3] || (o[3] = (_) => e(n).en_name = _),
|
497
|
+
disabled: e(u),
|
498
|
+
placeholder: e(a)("base.placeholder.input")
|
499
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
500
|
+
]),
|
501
|
+
_: 1
|
502
|
+
}, 8, ["label"]),
|
503
|
+
l(d, {
|
504
|
+
prop: "dns",
|
505
|
+
label: e(a)("config.dns")
|
506
|
+
}, {
|
507
|
+
default: t(() => [
|
508
|
+
l(r, {
|
509
|
+
modelValue: e(n).dns,
|
510
|
+
"onUpdate:modelValue": o[4] || (o[4] = (_) => e(n).dns = _),
|
511
|
+
disabled: e(u),
|
512
|
+
placeholder: e(a)("base.placeholder.input")
|
513
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
514
|
+
]),
|
515
|
+
_: 1
|
516
|
+
}, 8, ["label"]),
|
517
|
+
l(d, {
|
518
|
+
prop: "git",
|
519
|
+
label: e(a)("config.git")
|
520
|
+
}, {
|
521
|
+
default: t(() => [
|
522
|
+
l(r, {
|
523
|
+
modelValue: e(n).git,
|
524
|
+
"onUpdate:modelValue": o[5] || (o[5] = (_) => e(n).git = _),
|
525
|
+
disabled: e(u),
|
526
|
+
placeholder: e(a)("base.placeholder.input")
|
527
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
528
|
+
]),
|
529
|
+
_: 1
|
530
|
+
}, 8, ["label"]),
|
531
|
+
l(d, {
|
532
|
+
prop: "remark",
|
533
|
+
label: e(a)("base.remark")
|
534
|
+
}, {
|
535
|
+
default: t(() => [
|
536
|
+
l(r, {
|
537
|
+
modelValue: e(n).remark,
|
538
|
+
"onUpdate:modelValue": o[6] || (o[6] = (_) => e(n).remark = _),
|
539
|
+
disabled: e(u),
|
540
|
+
placeholder: e(a)("base.placeholder.input")
|
541
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
542
|
+
]),
|
543
|
+
_: 1
|
544
|
+
}, 8, ["label"])
|
545
|
+
]),
|
546
|
+
_: 1
|
547
|
+
}, 8, ["model", "disabled"])
|
548
|
+
]),
|
549
|
+
_: 1
|
550
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
551
|
+
};
|
552
|
+
}
|
553
|
+
}), de = Y("domain_provider", {}, "id", [], []), Qe = /* @__PURE__ */ q({
|
554
|
+
__name: "DomainProviderSelect",
|
555
|
+
props: {
|
556
|
+
modelValue: {
|
557
|
+
type: Number,
|
558
|
+
required: !0
|
559
|
+
},
|
560
|
+
disabled: {
|
561
|
+
type: Boolean,
|
562
|
+
default: !1
|
563
|
+
}
|
564
|
+
},
|
565
|
+
emits: ["update:modelValue", "change"],
|
566
|
+
setup(w, {
|
567
|
+
expose: x,
|
568
|
+
emit: g
|
569
|
+
}) {
|
570
|
+
const h = g, y = w, {
|
571
|
+
requesting: f
|
572
|
+
} = F(de), {
|
573
|
+
key: i,
|
574
|
+
options: p,
|
575
|
+
refresh: m,
|
576
|
+
change: n
|
577
|
+
} = ne(te(y, "modelValue"), h, {
|
578
|
+
key: "DOMAIN_PROVIDER_LIST",
|
579
|
+
api: de,
|
580
|
+
isArray: !0
|
581
|
+
});
|
582
|
+
return x({
|
583
|
+
refresh: m
|
584
|
+
}), (V, u) => {
|
585
|
+
const c = s("el-select-v2");
|
586
|
+
return S(), T(c, {
|
587
|
+
modelValue: e(i),
|
588
|
+
"onUpdate:modelValue": u[0] || (u[0] = (k) => P(i) ? i.value = k : null),
|
589
|
+
options: e(p),
|
590
|
+
disabled: w.disabled || e(f),
|
591
|
+
placeholder: e(a)("base.select config.domain config.provider"),
|
592
|
+
onChange: e(n)
|
593
|
+
}, {
|
594
|
+
prefix: t(() => [l(e(ue), {
|
595
|
+
loading: e(f),
|
596
|
+
onRefresh: e(m)
|
597
|
+
}, null, 8, ["loading", "onRefresh"])]),
|
598
|
+
_: 1
|
599
|
+
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
600
|
+
};
|
601
|
+
}
|
602
|
+
}), Je = /* @__PURE__ */ q({
|
603
|
+
__name: "DomainFormModal",
|
604
|
+
emits: ["refresh"],
|
605
|
+
setup(w, { expose: x, emit: g }) {
|
606
|
+
const h = g, y = {
|
607
|
+
id: 0,
|
608
|
+
provider_id: 0,
|
609
|
+
name: "",
|
610
|
+
expired_at: "",
|
611
|
+
status: 1,
|
612
|
+
remark: ""
|
613
|
+
}, f = {
|
614
|
+
provider_id: [{ required: !0, message: a("base.placeholder.input config.domain config.provider"), trigger: "blur" }],
|
615
|
+
name: [{ required: !0, message: a("base.placeholder.input base.name"), trigger: "blur" }]
|
616
|
+
}, { modal: i, title: p, form: m, formData: n, requesting: V, executing: u, open: c, modify: k, submit: v, closed: U } = G(h, y, ae);
|
617
|
+
return x({
|
618
|
+
open: c,
|
619
|
+
modify: k
|
620
|
+
}), (b, o) => {
|
621
|
+
const d = s("el-form-item"), r = s("el-input"), R = s("el-date-picker"), _ = s("el-form");
|
622
|
+
return S(), T(e(Q), {
|
623
|
+
modelValue: e(i),
|
624
|
+
"onUpdate:modelValue": o[4] || (o[4] = (D) => P(i) ? i.value = D : null),
|
625
|
+
title: e(p)("config.domain"),
|
626
|
+
width: "600px",
|
627
|
+
executing: e(u),
|
628
|
+
onClosed: e(U),
|
629
|
+
onSubmit: e(v)
|
630
|
+
}, {
|
631
|
+
default: t(() => [
|
632
|
+
l(_, {
|
633
|
+
ref_key: "form",
|
634
|
+
ref: m,
|
635
|
+
model: e(n),
|
636
|
+
"label-width": "auto",
|
637
|
+
rules: f,
|
638
|
+
disabled: e(V) || e(u)
|
639
|
+
}, {
|
640
|
+
default: t(() => [
|
641
|
+
l(d, {
|
642
|
+
prop: "provider_id",
|
643
|
+
label: e(a)("config.provider")
|
644
|
+
}, {
|
645
|
+
default: t(() => [
|
646
|
+
l(Qe, {
|
647
|
+
modelValue: e(n).provider_id,
|
648
|
+
"onUpdate:modelValue": o[0] || (o[0] = (D) => e(n).provider_id = D),
|
649
|
+
disabled: e(u)
|
650
|
+
}, null, 8, ["modelValue", "disabled"])
|
651
|
+
]),
|
652
|
+
_: 1
|
653
|
+
}, 8, ["label"]),
|
654
|
+
l(d, {
|
655
|
+
prop: "name",
|
656
|
+
label: e(a)("base.name")
|
657
|
+
}, {
|
658
|
+
default: t(() => [
|
659
|
+
l(r, {
|
660
|
+
modelValue: e(n).name,
|
661
|
+
"onUpdate:modelValue": o[1] || (o[1] = (D) => e(n).name = D),
|
662
|
+
disabled: e(u),
|
663
|
+
placeholder: e(a)("base.placeholder.input")
|
664
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
665
|
+
]),
|
666
|
+
_: 1
|
667
|
+
}, 8, ["label"]),
|
668
|
+
l(d, {
|
669
|
+
prop: "expired_at",
|
670
|
+
required: "",
|
671
|
+
label: e(a)("base.expired_at")
|
672
|
+
}, {
|
673
|
+
default: t(() => [
|
674
|
+
l(R, {
|
675
|
+
type: "date",
|
676
|
+
style: { width: "100%" },
|
677
|
+
modelValue: e(n).expired_at,
|
678
|
+
"onUpdate:modelValue": o[2] || (o[2] = (D) => e(n).expired_at = D),
|
679
|
+
disabled: e(u),
|
680
|
+
"value-format": e(O).DATE_VALUE_FORMAT,
|
681
|
+
format: e(O).DATE_FORMAT,
|
682
|
+
placeholder: e(a)("base.placeholder.select")
|
683
|
+
}, null, 8, ["modelValue", "disabled", "value-format", "format", "placeholder"])
|
684
|
+
]),
|
685
|
+
_: 1
|
686
|
+
}, 8, ["label"]),
|
687
|
+
l(d, {
|
688
|
+
prop: "remark",
|
689
|
+
label: e(a)("base.remark")
|
690
|
+
}, {
|
691
|
+
default: t(() => [
|
692
|
+
l(r, {
|
693
|
+
modelValue: e(n).remark,
|
694
|
+
"onUpdate:modelValue": o[3] || (o[3] = (D) => e(n).remark = D),
|
695
|
+
disabled: e(u),
|
696
|
+
placeholder: e(a)("base.placeholder.input")
|
697
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
698
|
+
]),
|
699
|
+
_: 1
|
700
|
+
}, 8, ["label"])
|
701
|
+
]),
|
702
|
+
_: 1
|
703
|
+
}, 8, ["model", "disabled"])
|
704
|
+
]),
|
705
|
+
_: 1
|
706
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
707
|
+
};
|
708
|
+
}
|
709
|
+
}), Xe = /* @__PURE__ */ q({
|
710
|
+
__name: "SiteSelect",
|
711
|
+
props: {
|
712
|
+
modelValue: {
|
713
|
+
type: Number,
|
714
|
+
required: !0
|
715
|
+
},
|
716
|
+
disabled: {
|
717
|
+
type: Boolean,
|
718
|
+
default: !1
|
719
|
+
}
|
720
|
+
},
|
721
|
+
emits: ["update:modelValue", "change"],
|
722
|
+
setup(w, {
|
723
|
+
expose: x,
|
724
|
+
emit: g
|
725
|
+
}) {
|
726
|
+
const h = g, y = w, {
|
727
|
+
requesting: f
|
728
|
+
} = F(ee), {
|
729
|
+
key: i,
|
730
|
+
options: p,
|
731
|
+
refresh: m,
|
732
|
+
change: n
|
733
|
+
} = ne(te(y, "modelValue"), h, {
|
734
|
+
key: "SITE_LIST",
|
735
|
+
api: ee,
|
736
|
+
isArray: !0,
|
737
|
+
formatOptions: (V) => V.map((u) => {
|
738
|
+
var c;
|
739
|
+
return {
|
740
|
+
label: u.prefix + "." + ((c = u.domain) == null ? void 0 : c.name),
|
741
|
+
value: u.id
|
742
|
+
};
|
743
|
+
})
|
744
|
+
});
|
745
|
+
return x({
|
746
|
+
refresh: m
|
747
|
+
}), (V, u) => {
|
748
|
+
const c = s("el-select-v2");
|
749
|
+
return S(), T(c, {
|
750
|
+
modelValue: e(i),
|
751
|
+
"onUpdate:modelValue": u[0] || (u[0] = (k) => P(i) ? i.value = k : null),
|
752
|
+
options: e(p),
|
753
|
+
disabled: w.disabled || e(f),
|
754
|
+
placeholder: e(a)("base.select config.domain"),
|
755
|
+
onChange: e(n)
|
756
|
+
}, {
|
757
|
+
prefix: t(() => [l(e(ue), {
|
758
|
+
loading: e(f),
|
759
|
+
onRefresh: e(m)
|
760
|
+
}, null, 8, ["loading", "onRefresh"])]),
|
761
|
+
_: 1
|
762
|
+
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
763
|
+
};
|
764
|
+
}
|
765
|
+
}), Ze = /* @__PURE__ */ q({
|
766
|
+
__name: "SSLFormModal",
|
767
|
+
emits: ["refresh"],
|
768
|
+
setup(w, { expose: x, emit: g }) {
|
769
|
+
const h = g, y = {
|
770
|
+
id: 0,
|
771
|
+
domain_id: 0,
|
772
|
+
site_id: 0,
|
773
|
+
name: "",
|
774
|
+
path: "",
|
775
|
+
email: "",
|
776
|
+
encryption: "",
|
777
|
+
remark: ""
|
778
|
+
}, f = {
|
779
|
+
domain_id: [{ required: !0, message: a("base.placeholder.select config.domain "), trigger: "blur" }],
|
780
|
+
site_id: [{ required: !0, message: a("base.placeholder.select config.site "), trigger: "blur" }],
|
781
|
+
name: [{ required: !0, message: a("base.placeholder.input base.name"), trigger: "blur" }],
|
782
|
+
path: [{ required: !0, message: a("base.placeholder.input base.path"), trigger: "blur" }],
|
783
|
+
email: [{ required: !0, message: a("base.placeholder.input base.email"), trigger: "blur" }],
|
784
|
+
encryption: [{ required: !0, message: a("base.placeholder.input config.encryption"), trigger: "blur" }]
|
785
|
+
}, { modal: i, title: p, form: m, formData: n, requesting: V, executing: u, open: c, modify: k, submit: v, closed: U } = G(h, y, ae);
|
786
|
+
return x({
|
787
|
+
open: c,
|
788
|
+
modify: k,
|
789
|
+
formData: n
|
790
|
+
}), (b, o) => {
|
791
|
+
const d = s("el-form-item"), r = s("el-input"), R = s("el-form");
|
792
|
+
return S(), T(e(Q), {
|
793
|
+
modelValue: e(i),
|
794
|
+
"onUpdate:modelValue": o[7] || (o[7] = (_) => P(i) ? i.value = _ : null),
|
795
|
+
title: e(p)("config.domain"),
|
796
|
+
width: "600px",
|
797
|
+
executing: e(u),
|
798
|
+
onClosed: e(U),
|
799
|
+
onSubmit: e(v)
|
800
|
+
}, {
|
801
|
+
default: t(() => [
|
802
|
+
l(R, {
|
803
|
+
ref_key: "form",
|
804
|
+
ref: m,
|
805
|
+
model: e(n),
|
806
|
+
"label-width": "auto",
|
807
|
+
rules: f,
|
808
|
+
disabled: e(V) || e(u)
|
809
|
+
}, {
|
810
|
+
default: t(() => [
|
811
|
+
l(d, {
|
812
|
+
prop: "domain_id",
|
813
|
+
label: e(a)("config.domain")
|
814
|
+
}, {
|
815
|
+
default: t(() => [
|
816
|
+
l(Me, {
|
817
|
+
modelValue: e(n).domain_id,
|
818
|
+
"onUpdate:modelValue": o[0] || (o[0] = (_) => e(n).domain_id = _),
|
819
|
+
disabled: e(u)
|
820
|
+
}, null, 8, ["modelValue", "disabled"])
|
821
|
+
]),
|
822
|
+
_: 1
|
823
|
+
}, 8, ["label"]),
|
824
|
+
l(d, {
|
825
|
+
prop: "site_id",
|
826
|
+
label: e(a)("config.site")
|
827
|
+
}, {
|
828
|
+
default: t(() => [
|
829
|
+
l(Xe, {
|
830
|
+
modelValue: e(n).site_id,
|
831
|
+
"onUpdate:modelValue": o[1] || (o[1] = (_) => e(n).site_id = _),
|
832
|
+
disabled: e(u) || e(n).domain_id > 0
|
833
|
+
}, null, 8, ["modelValue", "disabled"])
|
834
|
+
]),
|
835
|
+
_: 1
|
836
|
+
}, 8, ["label"]),
|
837
|
+
l(d, {
|
838
|
+
prop: "name",
|
839
|
+
label: e(a)("base.name")
|
840
|
+
}, {
|
841
|
+
default: t(() => [
|
842
|
+
l(r, {
|
843
|
+
modelValue: e(n).name,
|
844
|
+
"onUpdate:modelValue": o[2] || (o[2] = (_) => e(n).name = _),
|
845
|
+
disabled: e(u),
|
846
|
+
placeholder: e(a)("base.placeholder.input")
|
847
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
848
|
+
]),
|
849
|
+
_: 1
|
850
|
+
}, 8, ["label"]),
|
851
|
+
l(d, {
|
852
|
+
prop: "path",
|
853
|
+
label: e(a)("base.path")
|
854
|
+
}, {
|
855
|
+
default: t(() => [
|
856
|
+
l(r, {
|
857
|
+
modelValue: e(n).path,
|
858
|
+
"onUpdate:modelValue": o[3] || (o[3] = (_) => e(n).path = _),
|
859
|
+
disabled: e(u),
|
860
|
+
placeholder: e(a)("base.placeholder.input")
|
861
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
862
|
+
]),
|
863
|
+
_: 1
|
864
|
+
}, 8, ["label"]),
|
865
|
+
l(d, {
|
866
|
+
prop: "email",
|
867
|
+
label: e(a)("base.email")
|
868
|
+
}, {
|
869
|
+
default: t(() => [
|
870
|
+
l(r, {
|
871
|
+
modelValue: e(n).email,
|
872
|
+
"onUpdate:modelValue": o[4] || (o[4] = (_) => e(n).email = _),
|
873
|
+
disabled: e(u),
|
874
|
+
placeholder: e(a)("base.placeholder.input")
|
875
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
876
|
+
]),
|
877
|
+
_: 1
|
878
|
+
}, 8, ["label"]),
|
879
|
+
l(d, {
|
880
|
+
prop: "encryption",
|
881
|
+
label: e(a)("config.encryption")
|
882
|
+
}, {
|
883
|
+
default: t(() => [
|
884
|
+
l(r, {
|
885
|
+
modelValue: e(n).encryption,
|
886
|
+
"onUpdate:modelValue": o[5] || (o[5] = (_) => e(n).encryption = _),
|
887
|
+
disabled: e(u),
|
888
|
+
placeholder: e(a)("base.placeholder.input")
|
889
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
890
|
+
]),
|
891
|
+
_: 1
|
892
|
+
}, 8, ["label"]),
|
893
|
+
l(d, {
|
894
|
+
prop: "remark",
|
895
|
+
label: e(a)("base.remark")
|
896
|
+
}, {
|
897
|
+
default: t(() => [
|
898
|
+
l(r, {
|
899
|
+
modelValue: e(n).remark,
|
900
|
+
"onUpdate:modelValue": o[6] || (o[6] = (_) => e(n).remark = _),
|
901
|
+
disabled: e(u),
|
902
|
+
placeholder: e(a)("base.placeholder.input")
|
903
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
904
|
+
]),
|
905
|
+
_: 1
|
906
|
+
}, 8, ["label"])
|
907
|
+
]),
|
908
|
+
_: 1
|
909
|
+
}, 8, ["model", "disabled"])
|
910
|
+
]),
|
911
|
+
_: 1
|
912
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
913
|
+
};
|
914
|
+
}
|
915
|
+
}), el = /* @__PURE__ */ q({
|
916
|
+
__name: "DomainProviderFormModal",
|
917
|
+
emits: ["refresh"],
|
918
|
+
setup(w, { expose: x, emit: g }) {
|
919
|
+
const h = g, y = {
|
920
|
+
id: 0,
|
921
|
+
name: "",
|
922
|
+
en_name: "",
|
923
|
+
key: "",
|
924
|
+
secret: "",
|
925
|
+
end_point: "",
|
926
|
+
status: 1,
|
927
|
+
remark: ""
|
928
|
+
}, f = {
|
929
|
+
name: [{ required: !0, message: a("base.placeholder.input base.name"), trigger: "blur" }],
|
930
|
+
en_name: { required: !0, message: a("base.placeholder.input base.en_name"), trigger: "blur" },
|
931
|
+
key: { required: !0, message: a("base.placeholder.input base.key"), trigger: "blur" },
|
932
|
+
secret: { required: !0, message: a("base.placeholder.input config.secret"), trigger: "blur" },
|
933
|
+
end_point: { required: !0, message: a("base.placeholder.input config.endpoint"), trigger: "blur" }
|
934
|
+
}, { modal: i, title: p, form: m, formData: n, requesting: V, executing: u, open: c, modify: k, submit: v, closed: U } = G(h, y, de);
|
935
|
+
return x({
|
936
|
+
open: c,
|
937
|
+
modify: k
|
938
|
+
}), (b, o) => {
|
939
|
+
const d = s("el-input"), r = s("el-form-item"), R = s("el-form");
|
940
|
+
return S(), T(e(Q), {
|
941
|
+
modelValue: e(i),
|
942
|
+
"onUpdate:modelValue": o[6] || (o[6] = (_) => P(i) ? i.value = _ : null),
|
943
|
+
title: e(p)("config.domain"),
|
944
|
+
width: "600px",
|
945
|
+
executing: e(u),
|
946
|
+
onClosed: e(U),
|
947
|
+
onSubmit: e(v)
|
948
|
+
}, {
|
949
|
+
default: t(() => [
|
950
|
+
l(R, {
|
951
|
+
ref_key: "form",
|
952
|
+
ref: m,
|
953
|
+
model: e(n),
|
954
|
+
"label-width": "auto",
|
955
|
+
rules: f,
|
956
|
+
disabled: e(V) || e(u)
|
957
|
+
}, {
|
958
|
+
default: t(() => [
|
959
|
+
l(r, {
|
960
|
+
prop: "name",
|
961
|
+
label: e(a)("base.name")
|
962
|
+
}, {
|
963
|
+
default: t(() => [
|
964
|
+
l(d, {
|
965
|
+
modelValue: e(n).name,
|
966
|
+
"onUpdate:modelValue": o[0] || (o[0] = (_) => e(n).name = _),
|
967
|
+
disabled: e(u),
|
968
|
+
placeholder: e(a)("base.placeholder.input")
|
969
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
970
|
+
]),
|
971
|
+
_: 1
|
972
|
+
}, 8, ["label"]),
|
973
|
+
l(r, {
|
974
|
+
prop: "en_name",
|
975
|
+
label: e(a)("base.en_name")
|
976
|
+
}, {
|
977
|
+
default: t(() => [
|
978
|
+
l(d, {
|
979
|
+
modelValue: e(n).en_name,
|
980
|
+
"onUpdate:modelValue": o[1] || (o[1] = (_) => e(n).en_name = _),
|
981
|
+
disabled: e(u),
|
982
|
+
placeholder: e(a)("base.placeholder.input")
|
983
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
984
|
+
]),
|
985
|
+
_: 1
|
986
|
+
}, 8, ["label"]),
|
987
|
+
l(r, {
|
988
|
+
prop: "key",
|
989
|
+
label: e(a)("base.key")
|
990
|
+
}, {
|
991
|
+
default: t(() => [
|
992
|
+
l(d, {
|
993
|
+
modelValue: e(n).key,
|
994
|
+
"onUpdate:modelValue": o[2] || (o[2] = (_) => e(n).key = _),
|
995
|
+
disabled: e(u),
|
996
|
+
placeholder: e(a)("base.placeholder.input")
|
997
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
998
|
+
]),
|
999
|
+
_: 1
|
1000
|
+
}, 8, ["label"]),
|
1001
|
+
l(r, {
|
1002
|
+
prop: "secret",
|
1003
|
+
label: e(a)("config.secret")
|
1004
|
+
}, {
|
1005
|
+
default: t(() => [
|
1006
|
+
l(d, {
|
1007
|
+
modelValue: e(n).secret,
|
1008
|
+
"onUpdate:modelValue": o[3] || (o[3] = (_) => e(n).secret = _),
|
1009
|
+
disabled: e(u),
|
1010
|
+
placeholder: e(a)("base.placeholder.input")
|
1011
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
1012
|
+
]),
|
1013
|
+
_: 1
|
1014
|
+
}, 8, ["label"]),
|
1015
|
+
l(r, {
|
1016
|
+
prop: "end_point",
|
1017
|
+
label: e(a)("config.end_point")
|
1018
|
+
}, {
|
1019
|
+
default: t(() => [
|
1020
|
+
l(d, {
|
1021
|
+
modelValue: e(n).end_point,
|
1022
|
+
"onUpdate:modelValue": o[4] || (o[4] = (_) => e(n).end_point = _),
|
1023
|
+
disabled: e(u),
|
1024
|
+
placeholder: e(a)("base.placeholder.input")
|
1025
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
1026
|
+
]),
|
1027
|
+
_: 1
|
1028
|
+
}, 8, ["label"]),
|
1029
|
+
l(r, {
|
1030
|
+
prop: "remark",
|
1031
|
+
label: e(a)("base.remark")
|
1032
|
+
}, {
|
1033
|
+
default: t(() => [
|
1034
|
+
l(d, {
|
1035
|
+
modelValue: e(n).remark,
|
1036
|
+
"onUpdate:modelValue": o[5] || (o[5] = (_) => e(n).remark = _),
|
1037
|
+
disabled: e(u),
|
1038
|
+
placeholder: e(a)("base.placeholder.input")
|
1039
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
1040
|
+
]),
|
1041
|
+
_: 1
|
1042
|
+
}, 8, ["label"])
|
1043
|
+
]),
|
1044
|
+
_: 1
|
1045
|
+
}, 8, ["model", "disabled"])
|
1046
|
+
]),
|
1047
|
+
_: 1
|
1048
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
1049
|
+
};
|
1050
|
+
}
|
1051
|
+
}), ll = /* @__PURE__ */ q({
|
1052
|
+
__name: "DomainProviderTableDrawer",
|
1053
|
+
setup(w, {
|
1054
|
+
expose: x
|
1055
|
+
}) {
|
1056
|
+
const {
|
1057
|
+
requesting: g
|
1058
|
+
} = F(de), h = z(!1), {
|
1059
|
+
tableRef: y,
|
1060
|
+
formModalRef: f,
|
1061
|
+
refresh: i,
|
1062
|
+
openFormModal: p,
|
1063
|
+
editFormModal: m
|
1064
|
+
} = $({}), n = [{
|
1065
|
+
prop: "name",
|
1066
|
+
label: a("base.name"),
|
1067
|
+
width: 0,
|
1068
|
+
minWidth: 140
|
1069
|
+
}, {
|
1070
|
+
prop: "en_name",
|
1071
|
+
label: a("base.en_name"),
|
1072
|
+
width: 120
|
1073
|
+
}, {
|
1074
|
+
prop: "actions",
|
1075
|
+
label: a("base.action"),
|
1076
|
+
width: 60,
|
1077
|
+
align: "center",
|
1078
|
+
render: ({
|
1079
|
+
rowData: u
|
1080
|
+
}) => l(s("el-space"), null, {
|
1081
|
+
default: () => [l(X, {
|
1082
|
+
icon: "icon-edit",
|
1083
|
+
t: "",
|
1084
|
+
onModify: () => m({
|
1085
|
+
id: u.id
|
1086
|
+
})
|
1087
|
+
}, null)]
|
1088
|
+
})
|
1089
|
+
}];
|
1090
|
+
return x({
|
1091
|
+
open: () => {
|
1092
|
+
h.value = !0;
|
1093
|
+
}
|
1094
|
+
}), (u, c) => {
|
1095
|
+
const k = s("el-page-header");
|
1096
|
+
return S(), T(e(he), {
|
1097
|
+
modelValue: h.value,
|
1098
|
+
"onUpdate:modelValue": c[0] || (c[0] = (v) => h.value = v),
|
1099
|
+
width: "400px",
|
1100
|
+
"show-close": !1,
|
1101
|
+
class: "basic-drawer"
|
1102
|
+
}, {
|
1103
|
+
title: t(() => [l(k, {
|
1104
|
+
icon: ""
|
1105
|
+
}, {
|
1106
|
+
title: t(() => [N("span", null, H(e(a)("config.domain config.provider")), 1)]),
|
1107
|
+
content: t(() => [l(e(B), {
|
1108
|
+
onRefresh: e(i),
|
1109
|
+
size: "default",
|
1110
|
+
loading: e(g)
|
1111
|
+
}, null, 8, ["onRefresh", "loading"])]),
|
1112
|
+
extra: t(() => [l(e(K), {
|
1113
|
+
onOpen: e(p)
|
1114
|
+
}, null, 8, ["onOpen"])]),
|
1115
|
+
_: 1
|
1116
|
+
})]),
|
1117
|
+
default: t(() => [l(e(re), {
|
1118
|
+
ref_key: "tableRef",
|
1119
|
+
ref: y,
|
1120
|
+
size: "small",
|
1121
|
+
"row-key": "id",
|
1122
|
+
url: e(de).urls.list,
|
1123
|
+
columns: n,
|
1124
|
+
loading: e(g)
|
1125
|
+
}, null, 8, ["url", "loading"]), l(el, {
|
336
1126
|
ref_key: "formModalRef",
|
337
|
-
ref:
|
338
|
-
onRefresh: e(
|
1127
|
+
ref: f,
|
1128
|
+
onRefresh: e(i)
|
339
1129
|
}, null, 8, ["onRefresh"])]),
|
340
1130
|
_: 1
|
1131
|
+
}, 8, ["modelValue"]);
|
1132
|
+
};
|
1133
|
+
}
|
1134
|
+
}), al = /* @__PURE__ */ q({
|
1135
|
+
__name: "DomainTableDrawer",
|
1136
|
+
setup(w, {
|
1137
|
+
expose: x
|
1138
|
+
}) {
|
1139
|
+
const {
|
1140
|
+
requesting: g
|
1141
|
+
} = F(ae), h = z(!1), {
|
1142
|
+
tableRef: y,
|
1143
|
+
formModalRef: f,
|
1144
|
+
refresh: i,
|
1145
|
+
openFormModal: p,
|
1146
|
+
editFormModal: m
|
1147
|
+
} = $(), {
|
1148
|
+
formModalRef: n,
|
1149
|
+
openFormModal: V,
|
1150
|
+
editFormModal: u
|
1151
|
+
} = $(), {
|
1152
|
+
formModalRef: c,
|
1153
|
+
openFormModal: k
|
1154
|
+
} = $(), v = [{
|
1155
|
+
prop: "provider",
|
1156
|
+
label: a("config.domain config.provider"),
|
1157
|
+
width: 120,
|
1158
|
+
cellRenderer: ({
|
1159
|
+
rowData: b
|
1160
|
+
}) => l(s("el-text"), null, {
|
1161
|
+
default: () => {
|
1162
|
+
var o;
|
1163
|
+
return [(o = b.provider) == null ? void 0 : o.name];
|
1164
|
+
}
|
1165
|
+
})
|
1166
|
+
}, {
|
1167
|
+
prop: "name",
|
1168
|
+
label: a("base.name"),
|
1169
|
+
width: 0,
|
1170
|
+
minWidth: 120
|
1171
|
+
}, {
|
1172
|
+
prop: "expired_text",
|
1173
|
+
label: a("base.expired_at"),
|
1174
|
+
width: 160
|
1175
|
+
}, {
|
1176
|
+
prop: "actions",
|
1177
|
+
label: a("base.action"),
|
1178
|
+
width: 100,
|
1179
|
+
align: "center",
|
1180
|
+
render: ({
|
1181
|
+
rowData: b
|
1182
|
+
}) => l(s("el-space"), null, {
|
1183
|
+
default: () => [l(X, {
|
1184
|
+
icon: "icon-edit",
|
1185
|
+
t: "",
|
1186
|
+
onModify: () => m({
|
1187
|
+
id: b.id
|
1188
|
+
})
|
1189
|
+
}, null), l(K, {
|
1190
|
+
icon: "icon-safetycertificate-f",
|
1191
|
+
type: "primary",
|
1192
|
+
size: "small",
|
1193
|
+
link: !0,
|
1194
|
+
onOpen: () => {
|
1195
|
+
var o;
|
1196
|
+
b.ssl && b.ssl.id ? u({
|
1197
|
+
id: (o = b.ssl) == null ? void 0 : o.id
|
1198
|
+
}) : (n.value.formData.domain_id = b.id, n.value.formData.site_id = 0, V());
|
1199
|
+
}
|
1200
|
+
}, null)]
|
1201
|
+
})
|
1202
|
+
}];
|
1203
|
+
return x({
|
1204
|
+
open: () => {
|
1205
|
+
h.value = !0;
|
1206
|
+
}
|
1207
|
+
}), (b, o) => {
|
1208
|
+
const d = s("el-space"), r = s("el-page-header");
|
1209
|
+
return S(), T(e(he), {
|
1210
|
+
modelValue: h.value,
|
1211
|
+
"onUpdate:modelValue": o[0] || (o[0] = (R) => h.value = R),
|
1212
|
+
width: "600px",
|
1213
|
+
"show-close": !1,
|
1214
|
+
class: "basic-drawer"
|
1215
|
+
}, {
|
1216
|
+
title: t(() => [l(r, {
|
1217
|
+
icon: ""
|
1218
|
+
}, {
|
1219
|
+
title: t(() => [N("span", null, H(e(a)("config.domain")), 1)]),
|
1220
|
+
content: t(() => [l(e(B), {
|
1221
|
+
onRefresh: e(i),
|
1222
|
+
size: "default",
|
1223
|
+
loading: e(g)
|
1224
|
+
}, null, 8, ["onRefresh", "loading"]), l(e(K), {
|
1225
|
+
onOpen: e(p)
|
1226
|
+
}, null, 8, ["onOpen"])]),
|
1227
|
+
extra: t(() => [l(d, {
|
1228
|
+
class: "w-full extra-tool",
|
1229
|
+
alignment: "center"
|
1230
|
+
}, {
|
1231
|
+
default: t(() => [l(e(K), {
|
1232
|
+
onOpen: e(k),
|
1233
|
+
type: "danger"
|
1234
|
+
}, null, 8, ["onOpen"])]),
|
1235
|
+
_: 1
|
1236
|
+
})]),
|
1237
|
+
_: 1
|
1238
|
+
})]),
|
1239
|
+
default: t(() => [l(e(re), {
|
1240
|
+
ref_key: "tableRef",
|
1241
|
+
ref: y,
|
1242
|
+
size: "small",
|
1243
|
+
"row-key": "id",
|
1244
|
+
url: e(ae).urls.list,
|
1245
|
+
columns: v,
|
1246
|
+
loading: e(g)
|
1247
|
+
}, null, 8, ["url", "loading"]), l(Je, {
|
1248
|
+
ref_key: "formModalRef",
|
1249
|
+
ref: f,
|
1250
|
+
onRefresh: e(i)
|
1251
|
+
}, null, 8, ["onRefresh"]), l(Ze, {
|
1252
|
+
ref_key: "sslFormModalRef",
|
1253
|
+
ref: n,
|
1254
|
+
onRefresh: e(i)
|
1255
|
+
}, null, 8, ["onRefresh"]), l(ll, {
|
1256
|
+
ref_key: "providerTableDrawerRef",
|
1257
|
+
ref: c
|
1258
|
+
}, null, 512)]),
|
1259
|
+
_: 1
|
1260
|
+
}, 8, ["modelValue"]);
|
1261
|
+
};
|
1262
|
+
}
|
1263
|
+
}), ye = Y("SSLLog", {}, "id", [], []), ke = Y(
|
1264
|
+
"SSL",
|
1265
|
+
{
|
1266
|
+
gen: "gen"
|
1267
|
+
},
|
1268
|
+
"id",
|
1269
|
+
[],
|
1270
|
+
["gen"]
|
1271
|
+
), ol = /* @__PURE__ */ q({
|
1272
|
+
__name: "SSLLogTableDrawer",
|
1273
|
+
props: {
|
1274
|
+
ssl: {
|
1275
|
+
type: Object,
|
1276
|
+
default: () => ({})
|
1277
|
+
}
|
1278
|
+
},
|
1279
|
+
setup(w, {
|
1280
|
+
expose: x
|
1281
|
+
}) {
|
1282
|
+
const g = w, {
|
1283
|
+
requesting: h,
|
1284
|
+
executing: y
|
1285
|
+
} = F([ye, ke]), f = z(!1), {
|
1286
|
+
tableRef: i,
|
1287
|
+
refresh: p
|
1288
|
+
} = $(), m = [{
|
1289
|
+
prop: "status_text",
|
1290
|
+
label: a("base.status"),
|
1291
|
+
width: 100
|
1292
|
+
}, {
|
1293
|
+
prop: "at",
|
1294
|
+
label: a("base.time"),
|
1295
|
+
width: 180
|
1296
|
+
}, {
|
1297
|
+
prop: "type_text",
|
1298
|
+
label: a("base.type"),
|
1299
|
+
width: 80
|
1300
|
+
}, {
|
1301
|
+
prop: "result",
|
1302
|
+
label: a("base.result"),
|
1303
|
+
width: 0
|
1304
|
+
}], n = () => {
|
1305
|
+
f.value = !0;
|
1306
|
+
};
|
1307
|
+
function V() {
|
1308
|
+
ke.gen({
|
1309
|
+
id: g.ssl.id
|
1310
|
+
}).then((c) => {
|
1311
|
+
console.log("Res:", c);
|
341
1312
|
});
|
1313
|
+
}
|
1314
|
+
function u() {
|
1315
|
+
const c = $e.getDownloadUrl(g.ssl.path + ".zip");
|
1316
|
+
fetch(c).then((k) => k.blob()).then((k) => {
|
1317
|
+
let v = URL.createObjectURL(k), U = document.createElement("a");
|
1318
|
+
U.style.display = "none", U.href = v, U.download = g.ssl.name + ".zip", U.click(), URL.revokeObjectURL(k);
|
1319
|
+
});
|
1320
|
+
}
|
1321
|
+
return x({
|
1322
|
+
open: n
|
1323
|
+
}), (c, k) => {
|
1324
|
+
const v = s("el-page-header");
|
1325
|
+
return S(), T(e(he), {
|
1326
|
+
modelValue: f.value,
|
1327
|
+
"onUpdate:modelValue": k[0] || (k[0] = (U) => f.value = U),
|
1328
|
+
width: "600px",
|
1329
|
+
"show-close": !1,
|
1330
|
+
class: "basic-drawer"
|
1331
|
+
}, {
|
1332
|
+
title: t(() => [l(v, {
|
1333
|
+
icon: ""
|
1334
|
+
}, {
|
1335
|
+
title: t(() => [N("span", null, H(e(a)("config.ssl base.log")), 1)]),
|
1336
|
+
content: t(() => [l(e(B), {
|
1337
|
+
onRefresh: e(p),
|
1338
|
+
size: "default",
|
1339
|
+
loading: e(h)
|
1340
|
+
}, null, 8, ["onRefresh", "loading"])]),
|
1341
|
+
extra: t(() => [l(e(fe), {
|
1342
|
+
size: "default",
|
1343
|
+
type: "danger",
|
1344
|
+
icon: "icon-key",
|
1345
|
+
loading: e(y),
|
1346
|
+
onClick: V
|
1347
|
+
}, null, 8, ["loading"]), l(e(fe), {
|
1348
|
+
size: "default",
|
1349
|
+
type: "primary",
|
1350
|
+
icon: "icon-cloud-download",
|
1351
|
+
loading: e(y),
|
1352
|
+
onClick: u
|
1353
|
+
}, null, 8, ["loading"])]),
|
1354
|
+
_: 1
|
1355
|
+
})]),
|
1356
|
+
default: t(() => [l(e(se), {
|
1357
|
+
ref_key: "tableRef",
|
1358
|
+
ref: i,
|
1359
|
+
size: "small",
|
1360
|
+
"row-key": "id",
|
1361
|
+
url: e(ye).urls.search,
|
1362
|
+
columns: m,
|
1363
|
+
loading: e(h)
|
1364
|
+
}, null, 8, ["url", "loading"])]),
|
1365
|
+
_: 1
|
1366
|
+
}, 8, ["modelValue"]);
|
342
1367
|
};
|
343
1368
|
}
|
344
|
-
}),
|
1369
|
+
}), tl = /* @__PURE__ */ q({
|
1370
|
+
__name: "SiteTable",
|
1371
|
+
setup(w) {
|
1372
|
+
const x = z(), {
|
1373
|
+
requesting: g,
|
1374
|
+
executing: h
|
1375
|
+
} = F(ee), {
|
1376
|
+
tableRef: y,
|
1377
|
+
formModalRef: f,
|
1378
|
+
refresh: i,
|
1379
|
+
openFormModal: p,
|
1380
|
+
editFormModal: m
|
1381
|
+
} = $(), {
|
1382
|
+
formModalRef: n,
|
1383
|
+
openFormModal: V
|
1384
|
+
} = $(), {
|
1385
|
+
formModalRef: u,
|
1386
|
+
openFormModal: c
|
1387
|
+
} = $(), k = [{
|
1388
|
+
prop: "domain.name",
|
1389
|
+
label: a("config.domain"),
|
1390
|
+
width: 129,
|
1391
|
+
type: "copy"
|
1392
|
+
}, {
|
1393
|
+
prop: "name",
|
1394
|
+
label: a("base.name"),
|
1395
|
+
width: 100
|
1396
|
+
}, {
|
1397
|
+
prop: "dns",
|
1398
|
+
label: a("config.dns"),
|
1399
|
+
width: 160,
|
1400
|
+
type: "copy"
|
1401
|
+
}, {
|
1402
|
+
prop: "git",
|
1403
|
+
label: a("config.git"),
|
1404
|
+
width: 300,
|
1405
|
+
type: "copy"
|
1406
|
+
}, {
|
1407
|
+
prop: "expired_at",
|
1408
|
+
label: a("config.ssl base.expired_at"),
|
1409
|
+
align: "center",
|
1410
|
+
width: 140,
|
1411
|
+
cellRenderer: ({
|
1412
|
+
rowData: b
|
1413
|
+
}) => l(s("el-space"), null, {
|
1414
|
+
default: () => [l(s("el-text"), null, {
|
1415
|
+
default: () => {
|
1416
|
+
var o;
|
1417
|
+
return [(o = b.ssl) == null ? void 0 : o.renewal_days, J(" 天")];
|
1418
|
+
}
|
1419
|
+
}), l(s("el-button"), {
|
1420
|
+
size: "small",
|
1421
|
+
type: "primary",
|
1422
|
+
text: !0,
|
1423
|
+
onClick: (o) => {
|
1424
|
+
o.stopPropagation(), b.ssl && b.ssl.id && (x.value = b.ssl, c());
|
1425
|
+
}
|
1426
|
+
}, {
|
1427
|
+
default: () => [l("span", {
|
1428
|
+
class: "icon iconfont icon-reloadtime"
|
1429
|
+
}, null)]
|
1430
|
+
})]
|
1431
|
+
})
|
1432
|
+
}, {
|
1433
|
+
prop: "remark",
|
1434
|
+
label: a("base.remark"),
|
1435
|
+
width: 0,
|
1436
|
+
minWidth: 160
|
1437
|
+
}, {
|
1438
|
+
prop: "operation",
|
1439
|
+
label: a("base.action"),
|
1440
|
+
width: 100,
|
1441
|
+
align: "center",
|
1442
|
+
cellRenderer: ({
|
1443
|
+
rowData: b
|
1444
|
+
}) => l(s("el-space"), null, {
|
1445
|
+
default: () => [l(X, {
|
1446
|
+
icon: "icon-edit",
|
1447
|
+
t: "",
|
1448
|
+
onModify: () => m({
|
1449
|
+
id: b.id
|
1450
|
+
})
|
1451
|
+
}, null), l(fe, {
|
1452
|
+
icon: "icon-securityscan",
|
1453
|
+
type: "primary",
|
1454
|
+
size: "small",
|
1455
|
+
link: !0,
|
1456
|
+
disabled: h.value,
|
1457
|
+
loading: v.value == b.id && h.value,
|
1458
|
+
onClick: () => U(b)
|
1459
|
+
}, null)]
|
1460
|
+
})
|
1461
|
+
}], v = z(0), U = (b) => {
|
1462
|
+
v.value = b.id, ee.check({
|
1463
|
+
id: b.id
|
1464
|
+
}).then((o) => {
|
1465
|
+
o.data && (ze(o), i());
|
1466
|
+
}).finally(() => {
|
1467
|
+
v.value = 0;
|
1468
|
+
});
|
1469
|
+
};
|
1470
|
+
return (b, o) => {
|
1471
|
+
const d = s("el-space"), r = s("el-page-header"), R = s("el-card");
|
1472
|
+
return S(), T(R, {
|
1473
|
+
"body-style": {
|
1474
|
+
padding: "12px",
|
1475
|
+
height: "450px"
|
1476
|
+
},
|
1477
|
+
"body-class": "flex-1",
|
1478
|
+
class: "config-card"
|
1479
|
+
}, {
|
1480
|
+
header: t(() => [l(r, {
|
1481
|
+
icon: ""
|
1482
|
+
}, {
|
1483
|
+
title: t(() => [N("span", null, H(e(a)("config.keys.sites")), 1)]),
|
1484
|
+
content: t(() => [l(d, {
|
1485
|
+
alignment: "center",
|
1486
|
+
style: {
|
1487
|
+
height: "32px"
|
1488
|
+
}
|
1489
|
+
}, {
|
1490
|
+
default: t(() => [l(e(B), {
|
1491
|
+
loading: e(g),
|
1492
|
+
onRefresh: e(i)
|
1493
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(K), {
|
1494
|
+
onOpen: e(p)
|
1495
|
+
}, null, 8, ["onOpen"])]),
|
1496
|
+
_: 1
|
1497
|
+
})]),
|
1498
|
+
extra: t(() => [l(e(K), {
|
1499
|
+
onOpen: e(V),
|
1500
|
+
icon: "icon-compass"
|
1501
|
+
}, null, 8, ["onOpen"])]),
|
1502
|
+
_: 1
|
1503
|
+
})]),
|
1504
|
+
default: t(() => [l(e(re), {
|
1505
|
+
ref_key: "tableRef",
|
1506
|
+
ref: y,
|
1507
|
+
size: "small",
|
1508
|
+
"row-key": "id",
|
1509
|
+
url: e(ee).urls[e(Pe)],
|
1510
|
+
"auto-search": "",
|
1511
|
+
columns: k
|
1512
|
+
}, null, 8, ["url"]), l(Ge, {
|
1513
|
+
ref_key: "formModalRef",
|
1514
|
+
ref: f,
|
1515
|
+
onRefresh: e(i)
|
1516
|
+
}, null, 8, ["onRefresh"]), l(al, {
|
1517
|
+
ref_key: "domainTableDrawerRef",
|
1518
|
+
ref: n
|
1519
|
+
}, null, 512), l(ol, {
|
1520
|
+
ref_key: "sslLogTableDrawerRef",
|
1521
|
+
ref: u
|
1522
|
+
}, null, 512)]),
|
1523
|
+
_: 1
|
1524
|
+
});
|
1525
|
+
};
|
1526
|
+
}
|
1527
|
+
}), Ve = (w, x) => {
|
1528
|
+
const g = w.__vccOpts || w;
|
1529
|
+
for (const [h, y] of x)
|
1530
|
+
g[h] = y;
|
1531
|
+
return g;
|
1532
|
+
}, nl = /* @__PURE__ */ Ve(tl, [["__scopeId", "data-v-89181e8b"]]), rl = {
|
1533
|
+
class: "config"
|
1534
|
+
}, dl = /* @__PURE__ */ q({
|
1535
|
+
__name: "index",
|
1536
|
+
setup(w) {
|
1537
|
+
const x = [
|
1538
|
+
{
|
1539
|
+
id: "sites",
|
1540
|
+
icon: "icon-appstore",
|
1541
|
+
title: "sites"
|
1542
|
+
},
|
1543
|
+
{
|
1544
|
+
id: "sign-in",
|
1545
|
+
icon: "icon-login",
|
1546
|
+
title: "sign_in"
|
1547
|
+
}
|
1548
|
+
// { id: 'storage', icon: 'icon-save-fill', title: 'storage' },
|
1549
|
+
// { id: 'excels', icon: 'icon-file-excel-fill', title: 'excels' }
|
1550
|
+
], g = z([]), h = z({}), y = z({}), f = z({}), i = z(null);
|
1551
|
+
_e(() => {
|
1552
|
+
i.value = document.getElementById("form-content");
|
1553
|
+
});
|
1554
|
+
const p = () => {
|
1555
|
+
const n = {
|
1556
|
+
domain: window.location.host
|
1557
|
+
};
|
1558
|
+
He.list(n).then((V) => {
|
1559
|
+
g.value = V.data, m(), _e(() => {
|
1560
|
+
});
|
1561
|
+
});
|
1562
|
+
}, m = () => {
|
1563
|
+
if (g.value.length > 0)
|
1564
|
+
for (const n of g.value)
|
1565
|
+
switch (n.key) {
|
1566
|
+
case "App":
|
1567
|
+
h.value = n;
|
1568
|
+
break;
|
1569
|
+
case "SignIn":
|
1570
|
+
y.value = n;
|
1571
|
+
break;
|
1572
|
+
case "Storage":
|
1573
|
+
f.value = n;
|
1574
|
+
break;
|
1575
|
+
}
|
1576
|
+
};
|
1577
|
+
return Re(() => {
|
1578
|
+
p();
|
1579
|
+
}), (n, V) => {
|
1580
|
+
const u = s("el-text"), c = s("el-space"), k = s("el-anchor-link"), v = s("el-anchor"), U = s("el-card"), b = s("el-col"), o = s("el-row");
|
1581
|
+
return S(), j("div", rl, [l(o, {
|
1582
|
+
gutter: 12
|
1583
|
+
}, {
|
1584
|
+
default: t(() => [l(b, {
|
1585
|
+
span: 6
|
1586
|
+
}, {
|
1587
|
+
default: t(() => [l(U, {
|
1588
|
+
class: "anchor-card"
|
1589
|
+
}, {
|
1590
|
+
default: t(() => [l(v, {
|
1591
|
+
class: "config-anchor",
|
1592
|
+
container: i.value,
|
1593
|
+
offset: 0,
|
1594
|
+
onClick: Le(() => {
|
1595
|
+
}, ["prevent"])
|
1596
|
+
}, {
|
1597
|
+
default: t(() => [(S(), j(W, null, le(x, (d) => l(k, {
|
1598
|
+
key: d.id,
|
1599
|
+
href: `#${d.id}`
|
1600
|
+
}, {
|
1601
|
+
default: t(() => [l(c, null, {
|
1602
|
+
default: t(() => [N("span", {
|
1603
|
+
class: ge(["icon iconfont", d.icon])
|
1604
|
+
}, null, 2), l(u, {
|
1605
|
+
class: "title"
|
1606
|
+
}, {
|
1607
|
+
default: t(() => [J(H(e(a)(`config.keys.${d.title}`)), 1)]),
|
1608
|
+
_: 2
|
1609
|
+
}, 1024)]),
|
1610
|
+
_: 2
|
1611
|
+
}, 1024)]),
|
1612
|
+
_: 2
|
1613
|
+
}, 1032, ["href"])), 64))]),
|
1614
|
+
_: 1
|
1615
|
+
}, 8, ["container"])]),
|
1616
|
+
_: 1
|
1617
|
+
})]),
|
1618
|
+
_: 1
|
1619
|
+
}), l(b, {
|
1620
|
+
span: 18,
|
1621
|
+
class: "form-content",
|
1622
|
+
id: "form-content"
|
1623
|
+
}, {
|
1624
|
+
default: t(() => [l(nl, {
|
1625
|
+
id: "sites"
|
1626
|
+
})]),
|
1627
|
+
_: 1
|
1628
|
+
})]),
|
1629
|
+
_: 1
|
1630
|
+
})]);
|
1631
|
+
};
|
1632
|
+
}
|
1633
|
+
}), sl = /* @__PURE__ */ Ve(dl, [["__scopeId", "data-v-3c1559f5"]]), ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
345
1634
|
__proto__: null,
|
346
|
-
default:
|
347
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1635
|
+
default: sl
|
1636
|
+
}, Symbol.toStringTag, { value: "Module" })), ie = Y("translation", {}, "key"), il = /* @__PURE__ */ q({
|
348
1637
|
__name: "LangFormModal",
|
349
1638
|
emits: ["refresh"],
|
350
|
-
setup(
|
351
|
-
const
|
1639
|
+
setup(w, { expose: x, emit: g }) {
|
1640
|
+
const h = g, y = {
|
352
1641
|
id: 0,
|
353
1642
|
key: "",
|
354
1643
|
module: "",
|
355
1644
|
language: "",
|
356
1645
|
result: "",
|
357
1646
|
remark: ""
|
358
|
-
},
|
1647
|
+
}, f = {
|
359
1648
|
module: [
|
360
1649
|
{
|
361
1650
|
required: !0,
|
@@ -384,40 +1673,40 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
384
1673
|
trigger: "blur"
|
385
1674
|
}
|
386
1675
|
]
|
387
|
-
}, { modal:
|
388
|
-
return
|
389
|
-
open:
|
390
|
-
modify:
|
391
|
-
}), (
|
392
|
-
const
|
393
|
-
return
|
394
|
-
modelValue: e(
|
395
|
-
"onUpdate:modelValue":
|
396
|
-
title: e(
|
1676
|
+
}, { modal: i, title: p, form: m, formData: n, requesting: V, executing: u, open: c, modify: k, submit: v, closed: U } = G(h, y, ie);
|
1677
|
+
return x({
|
1678
|
+
open: c,
|
1679
|
+
modify: k
|
1680
|
+
}), (b, o) => {
|
1681
|
+
const d = s("el-input"), r = s("el-form-item"), R = s("el-radio-button"), _ = s("el-radio-group"), D = s("el-form");
|
1682
|
+
return S(), T(e(Q), {
|
1683
|
+
modelValue: e(i),
|
1684
|
+
"onUpdate:modelValue": o[5] || (o[5] = (M) => P(i) ? i.value = M : null),
|
1685
|
+
title: e(p)(),
|
397
1686
|
width: "600px",
|
398
|
-
executing: e(
|
399
|
-
onClosed: e(
|
1687
|
+
executing: e(u),
|
1688
|
+
onClosed: e(U),
|
400
1689
|
onSubmit: e(v)
|
401
1690
|
}, {
|
402
|
-
default:
|
403
|
-
l(
|
1691
|
+
default: t(() => [
|
1692
|
+
l(D, {
|
404
1693
|
ref_key: "form",
|
405
|
-
ref:
|
1694
|
+
ref: m,
|
406
1695
|
model: e(n),
|
407
1696
|
"label-width": "auto",
|
408
|
-
rules:
|
409
|
-
disabled: e(
|
1697
|
+
rules: f,
|
1698
|
+
disabled: e(V) || e(u)
|
410
1699
|
}, {
|
411
|
-
default:
|
1700
|
+
default: t(() => [
|
412
1701
|
l(r, {
|
413
1702
|
label: e(a)("language.module"),
|
414
1703
|
prop: "module",
|
415
1704
|
required: ""
|
416
1705
|
}, {
|
417
|
-
default:
|
418
|
-
l(
|
1706
|
+
default: t(() => [
|
1707
|
+
l(d, {
|
419
1708
|
modelValue: e(n).module,
|
420
|
-
"onUpdate:modelValue":
|
1709
|
+
"onUpdate:modelValue": o[0] || (o[0] = (M) => e(n).module = M),
|
421
1710
|
placeholder: e(a)("language.placeholder.module")
|
422
1711
|
}, null, 8, ["modelValue", "placeholder"])
|
423
1712
|
]),
|
@@ -428,10 +1717,10 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
428
1717
|
prop: "key",
|
429
1718
|
required: ""
|
430
1719
|
}, {
|
431
|
-
default:
|
432
|
-
l(
|
1720
|
+
default: t(() => [
|
1721
|
+
l(d, {
|
433
1722
|
modelValue: e(n).key,
|
434
|
-
"onUpdate:modelValue":
|
1723
|
+
"onUpdate:modelValue": o[1] || (o[1] = (M) => e(n).key = M),
|
435
1724
|
placeholder: e(a)("language.placeholder.key")
|
436
1725
|
}, null, 8, ["modelValue", "placeholder"])
|
437
1726
|
]),
|
@@ -442,22 +1731,22 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
442
1731
|
prop: "language",
|
443
1732
|
required: ""
|
444
1733
|
}, {
|
445
|
-
default:
|
446
|
-
l(
|
1734
|
+
default: t(() => [
|
1735
|
+
l(_, {
|
447
1736
|
modelValue: e(n).language,
|
448
|
-
"onUpdate:modelValue":
|
1737
|
+
"onUpdate:modelValue": o[2] || (o[2] = (M) => e(n).language = M)
|
449
1738
|
}, {
|
450
|
-
default:
|
451
|
-
l(
|
452
|
-
default:
|
453
|
-
|
1739
|
+
default: t(() => [
|
1740
|
+
l(R, { label: "zh-CN" }, {
|
1741
|
+
default: t(() => o[6] || (o[6] = [
|
1742
|
+
J("zh-CN")
|
454
1743
|
])),
|
455
1744
|
_: 1,
|
456
1745
|
__: [6]
|
457
1746
|
}),
|
458
|
-
l(
|
459
|
-
default:
|
460
|
-
|
1747
|
+
l(R, { label: "en-US" }, {
|
1748
|
+
default: t(() => o[7] || (o[7] = [
|
1749
|
+
J("en-US")
|
461
1750
|
])),
|
462
1751
|
_: 1,
|
463
1752
|
__: [7]
|
@@ -473,10 +1762,10 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
473
1762
|
prop: "result",
|
474
1763
|
required: ""
|
475
1764
|
}, {
|
476
|
-
default:
|
477
|
-
l(
|
1765
|
+
default: t(() => [
|
1766
|
+
l(d, {
|
478
1767
|
modelValue: e(n).result,
|
479
|
-
"onUpdate:modelValue":
|
1768
|
+
"onUpdate:modelValue": o[3] || (o[3] = (M) => e(n).result = M),
|
480
1769
|
placeholder: e(a)("language.placeholder.result")
|
481
1770
|
}, null, 8, ["modelValue", "placeholder"])
|
482
1771
|
]),
|
@@ -486,10 +1775,10 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
486
1775
|
label: e(a)("base.remark"),
|
487
1776
|
prop: "remark"
|
488
1777
|
}, {
|
489
|
-
default:
|
490
|
-
l(
|
1778
|
+
default: t(() => [
|
1779
|
+
l(d, {
|
491
1780
|
modelValue: e(n).remark,
|
492
|
-
"onUpdate:modelValue":
|
1781
|
+
"onUpdate:modelValue": o[4] || (o[4] = (M) => e(n).remark = M),
|
493
1782
|
placeholder: e(a)("base.placeholder.input")
|
494
1783
|
}, null, 8, ["modelValue", "placeholder"])
|
495
1784
|
]),
|
@@ -503,13 +1792,13 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
503
1792
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
504
1793
|
};
|
505
1794
|
}
|
506
|
-
}),
|
1795
|
+
}), pl = /* @__PURE__ */ q({
|
507
1796
|
__name: "index",
|
508
|
-
setup(
|
509
|
-
const
|
1797
|
+
setup(w) {
|
1798
|
+
const x = {
|
510
1799
|
keyword: "",
|
511
1800
|
status: 0
|
512
|
-
},
|
1801
|
+
}, g = [{
|
513
1802
|
label: a("base.module"),
|
514
1803
|
prop: "module",
|
515
1804
|
width: 120
|
@@ -533,7 +1822,7 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
533
1822
|
props: {
|
534
1823
|
activeValue: 1,
|
535
1824
|
inactiveValue: 2,
|
536
|
-
api:
|
1825
|
+
api: ie.urls[Ue],
|
537
1826
|
refresh: !0
|
538
1827
|
}
|
539
1828
|
}, {
|
@@ -554,109 +1843,109 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
554
1843
|
width: 80,
|
555
1844
|
align: "center",
|
556
1845
|
render: ({
|
557
|
-
row:
|
558
|
-
}) => l(
|
559
|
-
onModify: () =>
|
560
|
-
id:
|
1846
|
+
row: u
|
1847
|
+
}) => l(X, {
|
1848
|
+
onModify: () => V({
|
1849
|
+
id: u.id
|
561
1850
|
})
|
562
1851
|
}, null)
|
563
1852
|
}], {
|
564
|
-
requesting:
|
565
|
-
} = F(
|
566
|
-
tableRef:
|
567
|
-
formModalRef:
|
568
|
-
keyword:
|
569
|
-
search:
|
570
|
-
reset:
|
1853
|
+
requesting: h
|
1854
|
+
} = F(ie), {
|
1855
|
+
tableRef: y,
|
1856
|
+
formModalRef: f,
|
1857
|
+
keyword: i,
|
1858
|
+
search: p,
|
1859
|
+
reset: m,
|
571
1860
|
openFormModal: n,
|
572
|
-
editFormModal:
|
573
|
-
} =
|
574
|
-
return (
|
575
|
-
const
|
576
|
-
return
|
1861
|
+
editFormModal: V
|
1862
|
+
} = $(x);
|
1863
|
+
return (u, c) => {
|
1864
|
+
const k = s("el-input"), v = s("el-radio-button"), U = s("el-radio-group"), b = s("el-space"), o = s("el-page-header"), d = s("el-card");
|
1865
|
+
return S(), T(d, {
|
577
1866
|
class: "basic-card flex-full",
|
578
1867
|
"body-class": "flex-1"
|
579
1868
|
}, {
|
580
|
-
header:
|
1869
|
+
header: t(() => [l(o, {
|
581
1870
|
class: "basic-header"
|
582
1871
|
}, {
|
583
|
-
title:
|
584
|
-
loading: e(
|
585
|
-
onRefresh: e(
|
586
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
1872
|
+
title: t(() => [l(e(B), {
|
1873
|
+
loading: e(h),
|
1874
|
+
onRefresh: e(m)
|
1875
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(K), {
|
587
1876
|
onOpen: e(n)
|
588
1877
|
}, null, 8, ["onOpen"])]),
|
589
|
-
content:
|
1878
|
+
content: t(() => [l(b, {
|
590
1879
|
class: "search-bar"
|
591
1880
|
}, {
|
592
|
-
default:
|
1881
|
+
default: t(() => [l(k, {
|
593
1882
|
class: "basic-search-input",
|
594
|
-
modelValue: e(
|
595
|
-
"onUpdate:modelValue":
|
1883
|
+
modelValue: e(i).keyword,
|
1884
|
+
"onUpdate:modelValue": c[0] || (c[0] = (r) => e(i).keyword = r),
|
596
1885
|
placeholder: e(a)("base.placeholder.keyword"),
|
597
1886
|
clearable: "",
|
598
|
-
onKeyup:
|
599
|
-
onClear:
|
600
|
-
}, null, 8, ["modelValue", "placeholder"]), l(
|
601
|
-
modelValue: e(
|
602
|
-
"onUpdate:modelValue":
|
603
|
-
onChange:
|
1887
|
+
onKeyup: c[1] || (c[1] = me((r) => e(p)(), ["enter"])),
|
1888
|
+
onClear: c[2] || (c[2] = (r) => e(p)())
|
1889
|
+
}, null, 8, ["modelValue", "placeholder"]), l(U, {
|
1890
|
+
modelValue: e(i).status,
|
1891
|
+
"onUpdate:modelValue": c[3] || (c[3] = (r) => e(i).status = r),
|
1892
|
+
onChange: c[4] || (c[4] = (r) => e(p)())
|
604
1893
|
}, {
|
605
|
-
default:
|
1894
|
+
default: t(() => [(S(), j(W, null, le([0, 1, 2], (r) => l(v, {
|
606
1895
|
key: r,
|
607
1896
|
label: e(a)(`base.DISABLE_ENABLE.${r}`),
|
608
1897
|
value: r
|
609
1898
|
}, null, 8, ["label", "value"])), 64))]),
|
610
1899
|
_: 1
|
611
|
-
}, 8, ["modelValue"]), l(e(
|
612
|
-
disabled: e(
|
613
|
-
onSearch:
|
1900
|
+
}, 8, ["modelValue"]), l(e(Z), {
|
1901
|
+
disabled: e(h),
|
1902
|
+
onSearch: c[5] || (c[5] = (r) => e(p)())
|
614
1903
|
}, null, 8, ["disabled"])]),
|
615
1904
|
_: 1
|
616
1905
|
})]),
|
617
1906
|
_: 1
|
618
1907
|
})]),
|
619
|
-
default:
|
1908
|
+
default: t(() => [l(e(se), {
|
620
1909
|
ref_key: "tableRef",
|
621
|
-
ref:
|
1910
|
+
ref: y,
|
622
1911
|
size: "small",
|
623
|
-
columns:
|
624
|
-
url: e(
|
625
|
-
"search-param": e(
|
1912
|
+
columns: g,
|
1913
|
+
url: e(ie).urls[e(ce)],
|
1914
|
+
"search-param": e(i),
|
626
1915
|
autoSearch: ""
|
627
|
-
}, null, 8, ["url", "search-param"]), l(
|
1916
|
+
}, null, 8, ["url", "search-param"]), l(il, {
|
628
1917
|
ref_key: "formModalRef",
|
629
|
-
ref:
|
630
|
-
onRefresh: e(
|
1918
|
+
ref: f,
|
1919
|
+
onRefresh: e(m)
|
631
1920
|
}, null, 8, ["onRefresh"])]),
|
632
1921
|
_: 1
|
633
1922
|
});
|
634
1923
|
};
|
635
1924
|
}
|
636
|
-
}),
|
1925
|
+
}), ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
637
1926
|
__proto__: null,
|
638
|
-
default:
|
639
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1927
|
+
default: pl
|
1928
|
+
}, Symbol.toStringTag, { value: "Module" })), ve = {
|
640
1929
|
tops: "tops",
|
641
1930
|
rules: "rules"
|
642
|
-
},
|
1931
|
+
}, I = Ae.createAutoApi("menu", ve, "id", Object.keys(ve), [], ["TOP_MENU_LIST", "MENU_LIST"]), Se = Y("rule", {}, "key");
|
643
1932
|
/*! Element Plus Icons Vue v2.3.1 */
|
644
|
-
var
|
1933
|
+
var cl = /* @__PURE__ */ q({
|
645
1934
|
name: "Key",
|
646
1935
|
__name: "key",
|
647
|
-
setup(
|
648
|
-
return (
|
1936
|
+
setup(w) {
|
1937
|
+
return (x, g) => (S(), j("svg", {
|
649
1938
|
xmlns: "http://www.w3.org/2000/svg",
|
650
1939
|
viewBox: "0 0 1024 1024"
|
651
1940
|
}, [
|
652
|
-
|
1941
|
+
N("path", {
|
653
1942
|
fill: "currentColor",
|
654
1943
|
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"
|
655
1944
|
})
|
656
1945
|
]));
|
657
1946
|
}
|
658
|
-
}),
|
659
|
-
const
|
1947
|
+
}), _l = cl;
|
1948
|
+
const fl = /* @__PURE__ */ q({
|
660
1949
|
__name: "TopMenuSelect",
|
661
1950
|
props: {
|
662
1951
|
modelValue: {
|
@@ -669,50 +1958,50 @@ const Ke = /* @__PURE__ */ D({
|
|
669
1958
|
}
|
670
1959
|
},
|
671
1960
|
emits: ["update:modelValue", "change"],
|
672
|
-
setup(
|
673
|
-
emit:
|
1961
|
+
setup(w, {
|
1962
|
+
emit: x
|
674
1963
|
}) {
|
675
|
-
const
|
676
|
-
requesting:
|
677
|
-
} = F(
|
678
|
-
value:
|
679
|
-
options:
|
680
|
-
change:
|
681
|
-
refresh:
|
1964
|
+
const g = x, h = w, {
|
1965
|
+
requesting: y
|
1966
|
+
} = F(I), {
|
1967
|
+
value: f,
|
1968
|
+
options: i,
|
1969
|
+
change: p,
|
1970
|
+
refresh: m,
|
682
1971
|
filterOptions: n
|
683
|
-
} =
|
1972
|
+
} = ne(te(h, "modelValue"), g, {
|
684
1973
|
key: "TOP_MENU_LIST",
|
685
|
-
api:
|
686
|
-
url:
|
1974
|
+
api: I,
|
1975
|
+
url: I.urls.tops,
|
687
1976
|
isArray: !0
|
688
1977
|
});
|
689
|
-
return (
|
690
|
-
const
|
691
|
-
return
|
1978
|
+
return (V, u) => {
|
1979
|
+
const c = s("el-select-v2");
|
1980
|
+
return S(), T(c, {
|
692
1981
|
class: "w-full",
|
693
|
-
modelValue: e(
|
694
|
-
"onUpdate:modelValue":
|
695
|
-
options: e(
|
696
|
-
multiple:
|
697
|
-
disabled: e(
|
1982
|
+
modelValue: e(f),
|
1983
|
+
"onUpdate:modelValue": u[1] || (u[1] = (k) => P(f) ? f.value = k : null),
|
1984
|
+
options: e(i),
|
1985
|
+
multiple: w.multiple,
|
1986
|
+
disabled: e(y),
|
698
1987
|
placeholder: e(a)("base.placeholder.select"),
|
699
1988
|
filterable: "",
|
700
1989
|
filterOptions: e(n),
|
701
|
-
onChange: e(
|
1990
|
+
onChange: e(p)
|
702
1991
|
}, {
|
703
|
-
prefix:
|
704
|
-
loading: e(
|
705
|
-
onRefresh:
|
1992
|
+
prefix: t(() => [l(e(ue), {
|
1993
|
+
loading: e(y),
|
1994
|
+
onRefresh: u[0] || (u[0] = (k) => e(m)(!0))
|
706
1995
|
}, null, 8, ["loading"])]),
|
707
1996
|
_: 1
|
708
1997
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
709
1998
|
};
|
710
1999
|
}
|
711
|
-
}),
|
2000
|
+
}), bl = /* @__PURE__ */ q({
|
712
2001
|
__name: "MenuFormModal",
|
713
2002
|
emits: ["refresh"],
|
714
|
-
setup(
|
715
|
-
const
|
2003
|
+
setup(w, { expose: x, emit: g }) {
|
2004
|
+
const h = g, y = {
|
716
2005
|
id: 0,
|
717
2006
|
menu_id: 0,
|
718
2007
|
module: "",
|
@@ -733,7 +2022,7 @@ const Ke = /* @__PURE__ */ D({
|
|
733
2022
|
keep_alive: !1,
|
734
2023
|
link: !1
|
735
2024
|
}
|
736
|
-
},
|
2025
|
+
}, f = {
|
737
2026
|
sort: [
|
738
2027
|
{
|
739
2028
|
required: !0,
|
@@ -777,47 +2066,47 @@ const Ke = /* @__PURE__ */ D({
|
|
777
2066
|
trigger: "blur"
|
778
2067
|
}
|
779
2068
|
]
|
780
|
-
}, { modal:
|
781
|
-
return
|
782
|
-
open:
|
783
|
-
modify:
|
784
|
-
}), (
|
785
|
-
const
|
786
|
-
return
|
787
|
-
modelValue: e(
|
788
|
-
"onUpdate:modelValue":
|
789
|
-
title: e(
|
2069
|
+
}, { modal: i, title: p, form: m, formData: n, requesting: V, executing: u, open: c, modify: k, submit: v, closed: U } = G(h, y, I);
|
2070
|
+
return x({
|
2071
|
+
open: c,
|
2072
|
+
modify: k
|
2073
|
+
}), (b, o) => {
|
2074
|
+
const d = s("el-form-item"), r = s("el-col"), R = s("el-input-number"), _ = s("el-row"), D = s("el-input"), M = s("el-switch"), L = s("el-form");
|
2075
|
+
return S(), T(e(Q), {
|
2076
|
+
modelValue: e(i),
|
2077
|
+
"onUpdate:modelValue": o[17] || (o[17] = (A) => P(i) ? i.value = A : null),
|
2078
|
+
title: e(p)(),
|
790
2079
|
width: "1000px",
|
791
|
-
executing: e(
|
792
|
-
onClosed: e(
|
2080
|
+
executing: e(u),
|
2081
|
+
onClosed: e(U),
|
793
2082
|
onSubmit: e(v)
|
794
2083
|
}, {
|
795
|
-
default:
|
796
|
-
l(
|
2084
|
+
default: t(() => [
|
2085
|
+
l(L, {
|
797
2086
|
ref_key: "form",
|
798
|
-
ref:
|
2087
|
+
ref: m,
|
799
2088
|
model: e(n),
|
800
2089
|
"label-width": "auto",
|
801
|
-
rules:
|
802
|
-
disabled: e(
|
2090
|
+
rules: f,
|
2091
|
+
disabled: e(V) || e(u)
|
803
2092
|
}, {
|
804
|
-
default:
|
805
|
-
l(
|
806
|
-
default:
|
2093
|
+
default: t(() => [
|
2094
|
+
l(_, { gutter: 20 }, {
|
2095
|
+
default: t(() => [
|
807
2096
|
l(r, { span: 12 }, {
|
808
|
-
default:
|
809
|
-
l(
|
810
|
-
default:
|
2097
|
+
default: t(() => [
|
2098
|
+
l(_, { gutter: 10 }, {
|
2099
|
+
default: t(() => [
|
811
2100
|
l(r, { span: 12 }, {
|
812
|
-
default:
|
813
|
-
l(
|
2101
|
+
default: t(() => [
|
2102
|
+
l(d, {
|
814
2103
|
label: e(a)("base.parent"),
|
815
2104
|
prop: "menu_id"
|
816
2105
|
}, {
|
817
|
-
default:
|
818
|
-
l(
|
2106
|
+
default: t(() => [
|
2107
|
+
l(fl, {
|
819
2108
|
modelValue: e(n).menu_id,
|
820
|
-
"onUpdate:modelValue":
|
2109
|
+
"onUpdate:modelValue": o[0] || (o[0] = (A) => e(n).menu_id = A)
|
821
2110
|
}, null, 8, ["modelValue"])
|
822
2111
|
]),
|
823
2112
|
_: 1
|
@@ -826,16 +2115,16 @@ const Ke = /* @__PURE__ */ D({
|
|
826
2115
|
_: 1
|
827
2116
|
}),
|
828
2117
|
l(r, { span: 12 }, {
|
829
|
-
default:
|
830
|
-
l(
|
2118
|
+
default: t(() => [
|
2119
|
+
l(d, {
|
831
2120
|
label: e(a)("base.sort"),
|
832
2121
|
prop: "sort"
|
833
2122
|
}, {
|
834
|
-
default:
|
835
|
-
l(
|
2123
|
+
default: t(() => [
|
2124
|
+
l(R, {
|
836
2125
|
class: "w-full",
|
837
2126
|
modelValue: e(n).sort,
|
838
|
-
"onUpdate:modelValue":
|
2127
|
+
"onUpdate:modelValue": o[1] || (o[1] = (A) => e(n).sort = A),
|
839
2128
|
min: 0,
|
840
2129
|
placeholder: e(a)("base.placeholder.input")
|
841
2130
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -848,79 +2137,79 @@ const Ke = /* @__PURE__ */ D({
|
|
848
2137
|
]),
|
849
2138
|
_: 1
|
850
2139
|
}),
|
851
|
-
l(
|
2140
|
+
l(d, {
|
852
2141
|
label: e(a)("menu.module"),
|
853
2142
|
prop: "module"
|
854
2143
|
}, {
|
855
|
-
default:
|
856
|
-
l(
|
2144
|
+
default: t(() => [
|
2145
|
+
l(D, {
|
857
2146
|
modelValue: e(n).module,
|
858
|
-
"onUpdate:modelValue":
|
2147
|
+
"onUpdate:modelValue": o[2] || (o[2] = (A) => e(n).module = A),
|
859
2148
|
placeholder: e(a)("base.placeholder.input")
|
860
2149
|
}, null, 8, ["modelValue", "placeholder"])
|
861
2150
|
]),
|
862
2151
|
_: 1
|
863
2152
|
}, 8, ["label"]),
|
864
|
-
l(
|
2153
|
+
l(d, {
|
865
2154
|
label: e(a)("base.name"),
|
866
2155
|
prop: "name"
|
867
2156
|
}, {
|
868
|
-
default:
|
869
|
-
l(
|
2157
|
+
default: t(() => [
|
2158
|
+
l(D, {
|
870
2159
|
modelValue: e(n).name,
|
871
|
-
"onUpdate:modelValue":
|
2160
|
+
"onUpdate:modelValue": o[3] || (o[3] = (A) => e(n).name = A),
|
872
2161
|
placeholder: e(a)("base.placeholder.input")
|
873
2162
|
}, null, 8, ["modelValue", "placeholder"])
|
874
2163
|
]),
|
875
2164
|
_: 1
|
876
2165
|
}, 8, ["label"]),
|
877
|
-
l(
|
2166
|
+
l(d, {
|
878
2167
|
label: e(a)("base.en_name"),
|
879
2168
|
prop: "en_name"
|
880
2169
|
}, {
|
881
|
-
default:
|
882
|
-
l(
|
2170
|
+
default: t(() => [
|
2171
|
+
l(D, {
|
883
2172
|
modelValue: e(n).en_name,
|
884
|
-
"onUpdate:modelValue":
|
2173
|
+
"onUpdate:modelValue": o[4] || (o[4] = (A) => e(n).en_name = A),
|
885
2174
|
placeholder: e(a)("base.placeholder.input")
|
886
2175
|
}, null, 8, ["modelValue", "placeholder"])
|
887
2176
|
]),
|
888
2177
|
_: 1
|
889
2178
|
}, 8, ["label"]),
|
890
|
-
l(
|
2179
|
+
l(d, {
|
891
2180
|
label: e(a)("menu.component"),
|
892
2181
|
prop: "component"
|
893
2182
|
}, {
|
894
|
-
default:
|
895
|
-
l(
|
2183
|
+
default: t(() => [
|
2184
|
+
l(D, {
|
896
2185
|
modelValue: e(n).component,
|
897
|
-
"onUpdate:modelValue":
|
2186
|
+
"onUpdate:modelValue": o[5] || (o[5] = (A) => e(n).component = A),
|
898
2187
|
placeholder: e(a)("base.placeholder.input")
|
899
2188
|
}, null, 8, ["modelValue", "placeholder"])
|
900
2189
|
]),
|
901
2190
|
_: 1
|
902
2191
|
}, 8, ["label"]),
|
903
|
-
l(
|
2192
|
+
l(d, {
|
904
2193
|
label: e(a)("base.url"),
|
905
2194
|
prop: "url"
|
906
2195
|
}, {
|
907
|
-
default:
|
908
|
-
l(
|
2196
|
+
default: t(() => [
|
2197
|
+
l(D, {
|
909
2198
|
modelValue: e(n).url,
|
910
|
-
"onUpdate:modelValue":
|
2199
|
+
"onUpdate:modelValue": o[6] || (o[6] = (A) => e(n).url = A),
|
911
2200
|
placeholder: e(a)("base.placeholder.input")
|
912
2201
|
}, null, 8, ["modelValue", "placeholder"])
|
913
2202
|
]),
|
914
2203
|
_: 1
|
915
2204
|
}, 8, ["label"]),
|
916
|
-
l(
|
2205
|
+
l(d, {
|
917
2206
|
label: e(a)("base.remark"),
|
918
2207
|
prop: "remark"
|
919
2208
|
}, {
|
920
|
-
default:
|
921
|
-
l(
|
2209
|
+
default: t(() => [
|
2210
|
+
l(D, {
|
922
2211
|
modelValue: e(n).remark,
|
923
|
-
"onUpdate:modelValue":
|
2212
|
+
"onUpdate:modelValue": o[7] || (o[7] = (A) => e(n).remark = A),
|
924
2213
|
placeholder: e(a)("base.placeholder.input")
|
925
2214
|
}, null, 8, ["modelValue", "placeholder"])
|
926
2215
|
]),
|
@@ -930,23 +2219,23 @@ const Ke = /* @__PURE__ */ D({
|
|
930
2219
|
_: 1
|
931
2220
|
}),
|
932
2221
|
l(r, { span: 12 }, {
|
933
|
-
default:
|
934
|
-
l(
|
2222
|
+
default: t(() => [
|
2223
|
+
l(d, {
|
935
2224
|
label: e(a)("base.icon"),
|
936
2225
|
prop: "icon"
|
937
2226
|
}, {
|
938
|
-
default:
|
939
|
-
l(
|
2227
|
+
default: t(() => [
|
2228
|
+
l(D, {
|
940
2229
|
modelValue: e(n).icon,
|
941
|
-
"onUpdate:modelValue":
|
2230
|
+
"onUpdate:modelValue": o[8] || (o[8] = (A) => e(n).icon = A),
|
942
2231
|
placeholder: e(a)("base.placeholder.input"),
|
943
|
-
onInput:
|
944
|
-
e(n).meta.icon =
|
2232
|
+
onInput: o[9] || (o[9] = (A) => {
|
2233
|
+
e(n).meta.icon = A;
|
945
2234
|
})
|
946
2235
|
}, {
|
947
|
-
prepend:
|
948
|
-
|
949
|
-
class:
|
2236
|
+
prepend: t(() => [
|
2237
|
+
N("span", {
|
2238
|
+
class: ge("iconfont " + e(n).icon)
|
950
2239
|
}, null, 2)
|
951
2240
|
]),
|
952
2241
|
_: 1
|
@@ -954,44 +2243,44 @@ const Ke = /* @__PURE__ */ D({
|
|
954
2243
|
]),
|
955
2244
|
_: 1
|
956
2245
|
}, 8, ["label"]),
|
957
|
-
l(
|
2246
|
+
l(d, {
|
958
2247
|
label: e(a)("base.title"),
|
959
2248
|
prop: "meta.title"
|
960
2249
|
}, {
|
961
|
-
default:
|
962
|
-
l(
|
2250
|
+
default: t(() => [
|
2251
|
+
l(D, {
|
963
2252
|
modelValue: e(n).meta.title,
|
964
|
-
"onUpdate:modelValue":
|
2253
|
+
"onUpdate:modelValue": o[10] || (o[10] = (A) => e(n).meta.title = A),
|
965
2254
|
placeholder: e(a)("base.placeholder.input")
|
966
2255
|
}, null, 8, ["modelValue", "placeholder"])
|
967
2256
|
]),
|
968
2257
|
_: 1
|
969
2258
|
}, 8, ["label"]),
|
970
|
-
l(
|
2259
|
+
l(d, {
|
971
2260
|
label: e(a)("menu.active"),
|
972
2261
|
prop: "meta.active"
|
973
2262
|
}, {
|
974
|
-
default:
|
975
|
-
l(
|
2263
|
+
default: t(() => [
|
2264
|
+
l(D, {
|
976
2265
|
modelValue: e(n).meta.active,
|
977
|
-
"onUpdate:modelValue":
|
2266
|
+
"onUpdate:modelValue": o[11] || (o[11] = (A) => e(n).meta.active = A),
|
978
2267
|
placeholder: e(a)("base.placeholder.input")
|
979
2268
|
}, null, 8, ["modelValue", "placeholder"])
|
980
2269
|
]),
|
981
2270
|
_: 1
|
982
2271
|
}, 8, ["label"]),
|
983
|
-
l(
|
984
|
-
default:
|
2272
|
+
l(_, null, {
|
2273
|
+
default: t(() => [
|
985
2274
|
l(r, { span: 12 }, {
|
986
|
-
default:
|
987
|
-
l(
|
2275
|
+
default: t(() => [
|
2276
|
+
l(d, {
|
988
2277
|
label: e(a)("menu.link"),
|
989
2278
|
prop: "meta.link"
|
990
2279
|
}, {
|
991
|
-
default:
|
992
|
-
l(
|
2280
|
+
default: t(() => [
|
2281
|
+
l(M, {
|
993
2282
|
modelValue: e(n).meta.link,
|
994
|
-
"onUpdate:modelValue":
|
2283
|
+
"onUpdate:modelValue": o[12] || (o[12] = (A) => e(n).meta.link = A)
|
995
2284
|
}, null, 8, ["modelValue"])
|
996
2285
|
]),
|
997
2286
|
_: 1
|
@@ -1000,15 +2289,15 @@ const Ke = /* @__PURE__ */ D({
|
|
1000
2289
|
_: 1
|
1001
2290
|
}),
|
1002
2291
|
l(r, { span: 12 }, {
|
1003
|
-
default:
|
1004
|
-
l(
|
2292
|
+
default: t(() => [
|
2293
|
+
l(d, {
|
1005
2294
|
label: e(a)("menu.keep_alive"),
|
1006
2295
|
prop: "meta.keep_alive"
|
1007
2296
|
}, {
|
1008
|
-
default:
|
1009
|
-
l(
|
2297
|
+
default: t(() => [
|
2298
|
+
l(M, {
|
1010
2299
|
modelValue: e(n).meta.keep_alive,
|
1011
|
-
"onUpdate:modelValue":
|
2300
|
+
"onUpdate:modelValue": o[13] || (o[13] = (A) => e(n).meta.keep_alive = A)
|
1012
2301
|
}, null, 8, ["modelValue"])
|
1013
2302
|
]),
|
1014
2303
|
_: 1
|
@@ -1017,15 +2306,15 @@ const Ke = /* @__PURE__ */ D({
|
|
1017
2306
|
_: 1
|
1018
2307
|
}),
|
1019
2308
|
l(r, { span: 12 }, {
|
1020
|
-
default:
|
1021
|
-
l(
|
2309
|
+
default: t(() => [
|
2310
|
+
l(d, {
|
1022
2311
|
label: e(a)("menu.hide"),
|
1023
2312
|
prop: "meta.hide"
|
1024
2313
|
}, {
|
1025
|
-
default:
|
1026
|
-
l(
|
2314
|
+
default: t(() => [
|
2315
|
+
l(M, {
|
1027
2316
|
modelValue: e(n).meta.hide,
|
1028
|
-
"onUpdate:modelValue":
|
2317
|
+
"onUpdate:modelValue": o[14] || (o[14] = (A) => e(n).meta.hide = A)
|
1029
2318
|
}, null, 8, ["modelValue"])
|
1030
2319
|
]),
|
1031
2320
|
_: 1
|
@@ -1034,15 +2323,15 @@ const Ke = /* @__PURE__ */ D({
|
|
1034
2323
|
_: 1
|
1035
2324
|
}),
|
1036
2325
|
l(r, { span: 12 }, {
|
1037
|
-
default:
|
1038
|
-
l(
|
2326
|
+
default: t(() => [
|
2327
|
+
l(d, {
|
1039
2328
|
label: e(a)("menu.full"),
|
1040
2329
|
prop: "meta.full"
|
1041
2330
|
}, {
|
1042
|
-
default:
|
1043
|
-
l(
|
2331
|
+
default: t(() => [
|
2332
|
+
l(M, {
|
1044
2333
|
modelValue: e(n).meta.full,
|
1045
|
-
"onUpdate:modelValue":
|
2334
|
+
"onUpdate:modelValue": o[15] || (o[15] = (A) => e(n).meta.full = A)
|
1046
2335
|
}, null, 8, ["modelValue"])
|
1047
2336
|
]),
|
1048
2337
|
_: 1
|
@@ -1051,15 +2340,15 @@ const Ke = /* @__PURE__ */ D({
|
|
1051
2340
|
_: 1
|
1052
2341
|
}),
|
1053
2342
|
l(r, { span: 12 }, {
|
1054
|
-
default:
|
1055
|
-
l(
|
2343
|
+
default: t(() => [
|
2344
|
+
l(d, {
|
1056
2345
|
label: e(a)("menu.affix"),
|
1057
2346
|
prop: "meta.affix"
|
1058
2347
|
}, {
|
1059
|
-
default:
|
1060
|
-
l(
|
2348
|
+
default: t(() => [
|
2349
|
+
l(M, {
|
1061
2350
|
modelValue: e(n).meta.affix,
|
1062
|
-
"onUpdate:modelValue":
|
2351
|
+
"onUpdate:modelValue": o[16] || (o[16] = (A) => e(n).meta.affix = A)
|
1063
2352
|
}, null, 8, ["modelValue"])
|
1064
2353
|
]),
|
1065
2354
|
_: 1
|
@@ -1084,7 +2373,7 @@ const Ke = /* @__PURE__ */ D({
|
|
1084
2373
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
1085
2374
|
};
|
1086
2375
|
}
|
1087
|
-
}),
|
2376
|
+
}), gl = /* @__PURE__ */ q({
|
1088
2377
|
__name: "MenuSelect",
|
1089
2378
|
props: {
|
1090
2379
|
modelValue: {
|
@@ -1097,57 +2386,57 @@ const Ke = /* @__PURE__ */ D({
|
|
1097
2386
|
}
|
1098
2387
|
},
|
1099
2388
|
emits: ["update:modelValue", "change"],
|
1100
|
-
setup(
|
1101
|
-
emit:
|
2389
|
+
setup(w, {
|
2390
|
+
emit: x
|
1102
2391
|
}) {
|
1103
|
-
const
|
1104
|
-
requesting:
|
1105
|
-
} = F(
|
1106
|
-
value:
|
1107
|
-
options:
|
1108
|
-
change:
|
1109
|
-
refresh:
|
2392
|
+
const g = x, h = w, {
|
2393
|
+
requesting: y
|
2394
|
+
} = F(I), {
|
2395
|
+
value: f,
|
2396
|
+
options: i,
|
2397
|
+
change: p,
|
2398
|
+
refresh: m,
|
1110
2399
|
filterOptions: n
|
1111
|
-
} =
|
2400
|
+
} = ne(te(h, "modelValue"), g, {
|
1112
2401
|
key: "MENU_LIST",
|
1113
|
-
api:
|
2402
|
+
api: I,
|
1114
2403
|
isArray: !0
|
1115
2404
|
});
|
1116
|
-
return (
|
1117
|
-
const
|
1118
|
-
return
|
2405
|
+
return (V, u) => {
|
2406
|
+
const c = s("el-space"), k = s("el-select-v2");
|
2407
|
+
return S(), T(k, {
|
1119
2408
|
class: "w-full",
|
1120
|
-
modelValue: e(
|
1121
|
-
"onUpdate:modelValue":
|
1122
|
-
options: e(
|
1123
|
-
multiple:
|
1124
|
-
disabled: e(
|
2409
|
+
modelValue: e(f),
|
2410
|
+
"onUpdate:modelValue": u[1] || (u[1] = (v) => P(f) ? f.value = v : null),
|
2411
|
+
options: e(i),
|
2412
|
+
multiple: w.multiple,
|
2413
|
+
disabled: e(y),
|
1125
2414
|
placeholder: e(a)("base.placeholder.select"),
|
1126
2415
|
filterable: "",
|
1127
2416
|
filterOptions: e(n),
|
1128
|
-
onChange: e(
|
2417
|
+
onChange: e(p)
|
1129
2418
|
}, {
|
1130
|
-
prefix:
|
1131
|
-
loading: e(
|
1132
|
-
onRefresh:
|
2419
|
+
prefix: t(() => [l(e(ue), {
|
2420
|
+
loading: e(y),
|
2421
|
+
onRefresh: u[0] || (u[0] = (v) => e(m)(!0))
|
1133
2422
|
}, null, 8, ["loading"])]),
|
1134
|
-
default:
|
2423
|
+
default: t(({
|
1135
2424
|
item: v
|
1136
|
-
}) => [l(
|
1137
|
-
default:
|
1138
|
-
class:
|
1139
|
-
}, null, 2),
|
2425
|
+
}) => [l(c, null, {
|
2426
|
+
default: t(() => [N("i", {
|
2427
|
+
class: ge(`icon iconfont ${v.icon}`)
|
2428
|
+
}, null, 2), N("span", null, H(v.translate), 1)]),
|
1140
2429
|
_: 2
|
1141
2430
|
}, 1024)]),
|
1142
2431
|
_: 1
|
1143
2432
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
1144
2433
|
};
|
1145
2434
|
}
|
1146
|
-
}),
|
2435
|
+
}), hl = /* @__PURE__ */ q({
|
1147
2436
|
__name: "MenuRuleFormModal",
|
1148
2437
|
emits: ["refresh"],
|
1149
|
-
setup(
|
1150
|
-
const
|
2438
|
+
setup(w, { expose: x, emit: g }) {
|
2439
|
+
const h = g, y = {
|
1151
2440
|
key: "",
|
1152
2441
|
menu_id: 0,
|
1153
2442
|
sort: 0,
|
@@ -1155,7 +2444,7 @@ const Ke = /* @__PURE__ */ D({
|
|
1155
2444
|
en_name: "",
|
1156
2445
|
urls: "",
|
1157
2446
|
remark: ""
|
1158
|
-
},
|
2447
|
+
}, f = {
|
1159
2448
|
menu_id: [
|
1160
2449
|
{
|
1161
2450
|
required: !0,
|
@@ -1189,100 +2478,100 @@ const Ke = /* @__PURE__ */ D({
|
|
1189
2478
|
urls: [
|
1190
2479
|
{
|
1191
2480
|
required: !0,
|
1192
|
-
message: a("base.placeholder.input
|
2481
|
+
message: a("base.placeholder.input menu.rules"),
|
1193
2482
|
trigger: "blur"
|
1194
2483
|
}
|
1195
2484
|
]
|
1196
|
-
}, { modal:
|
1197
|
-
return
|
1198
|
-
open:
|
1199
|
-
modify:
|
1200
|
-
}), (
|
1201
|
-
const
|
1202
|
-
return
|
1203
|
-
modelValue: e(
|
1204
|
-
"onUpdate:modelValue":
|
1205
|
-
title: e(
|
2485
|
+
}, { modal: i, title: p, form: m, formData: n, requesting: V, executing: u, open: c, modify: k, submit: v, closed: U } = G(h, y, Se);
|
2486
|
+
return x({
|
2487
|
+
open: c,
|
2488
|
+
modify: k
|
2489
|
+
}), (b, o) => {
|
2490
|
+
const d = s("el-form-item"), r = s("el-input-number"), R = s("el-input"), _ = s("el-col"), D = s("el-row"), M = s("el-form");
|
2491
|
+
return S(), T(e(Q), {
|
2492
|
+
modelValue: e(i),
|
2493
|
+
"onUpdate:modelValue": o[6] || (o[6] = (L) => P(i) ? i.value = L : null),
|
2494
|
+
title: e(p)("menu.rules"),
|
1206
2495
|
width: "1000px",
|
1207
|
-
executing: e(
|
1208
|
-
onClosed: e(
|
2496
|
+
executing: e(u),
|
2497
|
+
onClosed: e(U),
|
1209
2498
|
onSubmit: e(v)
|
1210
2499
|
}, {
|
1211
|
-
default:
|
1212
|
-
l(
|
2500
|
+
default: t(() => [
|
2501
|
+
l(M, {
|
1213
2502
|
ref_key: "form",
|
1214
|
-
ref:
|
2503
|
+
ref: m,
|
1215
2504
|
model: e(n),
|
1216
2505
|
"label-width": "auto",
|
1217
|
-
rules:
|
1218
|
-
disabled: e(
|
2506
|
+
rules: f,
|
2507
|
+
disabled: e(V) || e(u)
|
1219
2508
|
}, {
|
1220
|
-
default:
|
1221
|
-
l(
|
1222
|
-
default:
|
1223
|
-
l(
|
1224
|
-
default:
|
1225
|
-
l(
|
2509
|
+
default: t(() => [
|
2510
|
+
l(D, { gutter: 20 }, {
|
2511
|
+
default: t(() => [
|
2512
|
+
l(_, { span: 10 }, {
|
2513
|
+
default: t(() => [
|
2514
|
+
l(d, {
|
1226
2515
|
label: e(a)("menu.Menu"),
|
1227
2516
|
prop: "menu_id"
|
1228
2517
|
}, {
|
1229
|
-
default:
|
1230
|
-
l(
|
2518
|
+
default: t(() => [
|
2519
|
+
l(gl, {
|
1231
2520
|
modelValue: e(n).menu_id,
|
1232
|
-
"onUpdate:modelValue":
|
2521
|
+
"onUpdate:modelValue": o[0] || (o[0] = (L) => e(n).menu_id = L)
|
1233
2522
|
}, null, 8, ["modelValue"])
|
1234
2523
|
]),
|
1235
2524
|
_: 1
|
1236
2525
|
}, 8, ["label"]),
|
1237
|
-
l(
|
2526
|
+
l(d, {
|
1238
2527
|
label: e(a)("base.sort"),
|
1239
2528
|
prop: "sort"
|
1240
2529
|
}, {
|
1241
|
-
default:
|
2530
|
+
default: t(() => [
|
1242
2531
|
l(r, {
|
1243
2532
|
class: "w-full",
|
1244
2533
|
modelValue: e(n).sort,
|
1245
|
-
"onUpdate:modelValue":
|
2534
|
+
"onUpdate:modelValue": o[1] || (o[1] = (L) => e(n).sort = L),
|
1246
2535
|
min: 0,
|
1247
2536
|
placeholder: e(a)("base.placeholder.input")
|
1248
2537
|
}, null, 8, ["modelValue", "placeholder"])
|
1249
2538
|
]),
|
1250
2539
|
_: 1
|
1251
2540
|
}, 8, ["label"]),
|
1252
|
-
l(
|
2541
|
+
l(d, {
|
1253
2542
|
label: e(a)("base.name"),
|
1254
2543
|
prop: "name"
|
1255
2544
|
}, {
|
1256
|
-
default:
|
1257
|
-
l(
|
2545
|
+
default: t(() => [
|
2546
|
+
l(R, {
|
1258
2547
|
modelValue: e(n).name,
|
1259
|
-
"onUpdate:modelValue":
|
2548
|
+
"onUpdate:modelValue": o[2] || (o[2] = (L) => e(n).name = L),
|
1260
2549
|
placeholder: e(a)("base.placeholder.input")
|
1261
2550
|
}, null, 8, ["modelValue", "placeholder"])
|
1262
2551
|
]),
|
1263
2552
|
_: 1
|
1264
2553
|
}, 8, ["label"]),
|
1265
|
-
l(
|
2554
|
+
l(d, {
|
1266
2555
|
label: e(a)("base.en_name"),
|
1267
2556
|
prop: "en_name"
|
1268
2557
|
}, {
|
1269
|
-
default:
|
1270
|
-
l(
|
2558
|
+
default: t(() => [
|
2559
|
+
l(R, {
|
1271
2560
|
modelValue: e(n).en_name,
|
1272
|
-
"onUpdate:modelValue":
|
2561
|
+
"onUpdate:modelValue": o[3] || (o[3] = (L) => e(n).en_name = L),
|
1273
2562
|
placeholder: e(a)("base.placeholder.input")
|
1274
2563
|
}, null, 8, ["modelValue", "placeholder"])
|
1275
2564
|
]),
|
1276
2565
|
_: 1
|
1277
2566
|
}, 8, ["label"]),
|
1278
|
-
l(
|
2567
|
+
l(d, {
|
1279
2568
|
label: e(a)("base.remark"),
|
1280
2569
|
prop: "remark"
|
1281
2570
|
}, {
|
1282
|
-
default:
|
1283
|
-
l(
|
2571
|
+
default: t(() => [
|
2572
|
+
l(R, {
|
1284
2573
|
modelValue: e(n).remark,
|
1285
|
-
"onUpdate:modelValue":
|
2574
|
+
"onUpdate:modelValue": o[4] || (o[4] = (L) => e(n).remark = L),
|
1286
2575
|
placeholder: e(a)("base.placeholder.input")
|
1287
2576
|
}, null, 8, ["modelValue", "placeholder"])
|
1288
2577
|
]),
|
@@ -1291,16 +2580,16 @@ const Ke = /* @__PURE__ */ D({
|
|
1291
2580
|
]),
|
1292
2581
|
_: 1
|
1293
2582
|
}),
|
1294
|
-
l(
|
1295
|
-
default:
|
1296
|
-
l(
|
1297
|
-
label: e(a)("
|
2583
|
+
l(_, { span: 14 }, {
|
2584
|
+
default: t(() => [
|
2585
|
+
l(d, {
|
2586
|
+
label: e(a)("menu.rules"),
|
1298
2587
|
prop: "urls"
|
1299
2588
|
}, {
|
1300
|
-
default:
|
1301
|
-
l(
|
2589
|
+
default: t(() => [
|
2590
|
+
l(R, {
|
1302
2591
|
modelValue: e(n).urls,
|
1303
|
-
"onUpdate:modelValue":
|
2592
|
+
"onUpdate:modelValue": o[5] || (o[5] = (L) => e(n).urls = L),
|
1304
2593
|
type: "textarea",
|
1305
2594
|
rows: 11,
|
1306
2595
|
placeholder: e(a)("base.placeholder.input")
|
@@ -1323,16 +2612,16 @@ const Ke = /* @__PURE__ */ D({
|
|
1323
2612
|
};
|
1324
2613
|
}
|
1325
2614
|
});
|
1326
|
-
function
|
1327
|
-
return typeof
|
2615
|
+
function xe(w) {
|
2616
|
+
return typeof w == "function" || Object.prototype.toString.call(w) === "[object Object]" && !Te(w);
|
1328
2617
|
}
|
1329
|
-
const
|
2618
|
+
const Vl = /* @__PURE__ */ q({
|
1330
2619
|
__name: "index",
|
1331
|
-
setup(
|
1332
|
-
const
|
2620
|
+
setup(w) {
|
2621
|
+
const x = {
|
1333
2622
|
keyword: "",
|
1334
2623
|
status: 0
|
1335
|
-
},
|
2624
|
+
}, g = z(""), h = [
|
1336
2625
|
{
|
1337
2626
|
label: a("base.sort"),
|
1338
2627
|
prop: "sort",
|
@@ -1343,9 +2632,9 @@ const je = /* @__PURE__ */ D({
|
|
1343
2632
|
prop: "icon",
|
1344
2633
|
width: 60,
|
1345
2634
|
render: ({
|
1346
|
-
row:
|
2635
|
+
row: o
|
1347
2636
|
}) => l("span", {
|
1348
|
-
class: "iconfont " +
|
2637
|
+
class: "iconfont " + o.icon,
|
1349
2638
|
style: "font-size: 16px;"
|
1350
2639
|
}, null)
|
1351
2640
|
},
|
@@ -1359,10 +2648,10 @@ const je = /* @__PURE__ */ D({
|
|
1359
2648
|
prop: "parent",
|
1360
2649
|
width: 120,
|
1361
2650
|
render: ({
|
1362
|
-
row:
|
2651
|
+
row: o
|
1363
2652
|
}) => {
|
1364
|
-
var
|
1365
|
-
return l(
|
2653
|
+
var d;
|
2654
|
+
return l(W, null, [(d = o.menu) == null ? void 0 : d.name]);
|
1366
2655
|
}
|
1367
2656
|
},
|
1368
2657
|
{
|
@@ -1389,12 +2678,12 @@ const je = /* @__PURE__ */ D({
|
|
1389
2678
|
width: 0,
|
1390
2679
|
align: "left",
|
1391
2680
|
render: ({
|
1392
|
-
row:
|
2681
|
+
row: o
|
1393
2682
|
}) => l(s("el-space"), null, {
|
1394
2683
|
default: () => {
|
1395
|
-
var
|
1396
|
-
return [(
|
1397
|
-
visible:
|
2684
|
+
var d;
|
2685
|
+
return [(d = o.rules) == null ? void 0 : d.map((r) => l(s("el-popover"), {
|
2686
|
+
visible: g.value === r.key,
|
1398
2687
|
title: a("message.title.warning"),
|
1399
2688
|
placement: "top-end",
|
1400
2689
|
width: 220
|
@@ -1403,29 +2692,29 @@ const je = /* @__PURE__ */ D({
|
|
1403
2692
|
class: "cursor-pointer",
|
1404
2693
|
closable: !0,
|
1405
2694
|
key: r.key,
|
1406
|
-
onClick: () =>
|
2695
|
+
onClick: () => U({
|
1407
2696
|
key: r.key
|
1408
2697
|
}),
|
1409
|
-
onClose: () =>
|
2698
|
+
onClose: () => g.value = r.key
|
1410
2699
|
}, {
|
1411
2700
|
default: () => [r.translate]
|
1412
2701
|
}),
|
1413
2702
|
default: () => {
|
1414
|
-
let
|
1415
|
-
return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.delete menu.rules")}: ${
|
2703
|
+
let R, _;
|
2704
|
+
return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.delete menu.rules")}: ${o.translate}-${r.translate} ?`]), l("div", {
|
1416
2705
|
style: "text-align: right; margin: 0"
|
1417
2706
|
}, [l(s("el-button"), {
|
1418
2707
|
size: "small",
|
1419
2708
|
text: !0,
|
1420
|
-
onClick: () =>
|
1421
|
-
},
|
1422
|
-
default: () => [
|
2709
|
+
onClick: () => g.value = ""
|
2710
|
+
}, xe(R = a("base.cancel")) ? R : {
|
2711
|
+
default: () => [R]
|
1423
2712
|
}), l(s("el-button"), {
|
1424
2713
|
size: "small",
|
1425
2714
|
type: "danger",
|
1426
|
-
onClick: () =>
|
1427
|
-
},
|
1428
|
-
default: () => [
|
2715
|
+
onClick: () => b(r.key)
|
2716
|
+
}, xe(_ = a("base.confirm")) ? _ : {
|
2717
|
+
default: () => [_]
|
1429
2718
|
})])]);
|
1430
2719
|
}
|
1431
2720
|
}))];
|
@@ -1440,7 +2729,7 @@ const je = /* @__PURE__ */ D({
|
|
1440
2729
|
props: {
|
1441
2730
|
activeValue: 1,
|
1442
2731
|
inactiveValue: 2,
|
1443
|
-
api:
|
2732
|
+
api: I.urls[Ue],
|
1444
2733
|
refresh: !0
|
1445
2734
|
}
|
1446
2735
|
},
|
@@ -1450,198 +2739,198 @@ const je = /* @__PURE__ */ D({
|
|
1450
2739
|
width: 60,
|
1451
2740
|
align: "center",
|
1452
2741
|
render: ({
|
1453
|
-
row:
|
1454
|
-
}) => l(
|
1455
|
-
onModify: () =>
|
1456
|
-
id:
|
2742
|
+
row: o
|
2743
|
+
}) => l(X, {
|
2744
|
+
onModify: () => c({
|
2745
|
+
id: o.id
|
1457
2746
|
})
|
1458
2747
|
}, null)
|
1459
2748
|
}
|
1460
2749
|
], {
|
1461
|
-
requesting:
|
1462
|
-
} = F(
|
1463
|
-
tableRef:
|
1464
|
-
formModalRef:
|
1465
|
-
keyword:
|
1466
|
-
search:
|
2750
|
+
requesting: y
|
2751
|
+
} = F(I), {
|
2752
|
+
tableRef: f,
|
2753
|
+
formModalRef: i,
|
2754
|
+
keyword: p,
|
2755
|
+
search: m,
|
1467
2756
|
refresh: n,
|
1468
|
-
reset:
|
1469
|
-
openFormModal:
|
1470
|
-
editFormModal:
|
1471
|
-
} =
|
1472
|
-
formModalRef:
|
2757
|
+
reset: V,
|
2758
|
+
openFormModal: u,
|
2759
|
+
editFormModal: c
|
2760
|
+
} = $(x), {
|
2761
|
+
formModalRef: k,
|
1473
2762
|
openFormModal: v,
|
1474
|
-
editFormModal:
|
1475
|
-
} =
|
1476
|
-
|
1477
|
-
key:
|
2763
|
+
editFormModal: U
|
2764
|
+
} = $(), b = (o) => {
|
2765
|
+
Se[Ie]({
|
2766
|
+
key: o
|
1478
2767
|
}).then(() => {
|
1479
|
-
|
2768
|
+
g.value = "", n();
|
1480
2769
|
});
|
1481
2770
|
};
|
1482
|
-
return (
|
1483
|
-
const r = s("el-button"),
|
1484
|
-
return
|
2771
|
+
return (o, d) => {
|
2772
|
+
const r = s("el-button"), R = s("el-input"), _ = s("el-radio-button"), D = s("el-radio-group"), M = s("el-space"), L = s("el-page-header"), A = s("el-card");
|
2773
|
+
return S(), T(A, {
|
1485
2774
|
class: "basic-card flex-full",
|
1486
2775
|
"body-class": "flex-1",
|
1487
|
-
onClick:
|
2776
|
+
onClick: d[5] || (d[5] = () => g.value = "")
|
1488
2777
|
}, {
|
1489
|
-
header:
|
2778
|
+
header: t(() => [l(L, {
|
1490
2779
|
class: "basic-header"
|
1491
2780
|
}, {
|
1492
|
-
title:
|
1493
|
-
loading: e(
|
1494
|
-
onRefresh: e(
|
1495
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
1496
|
-
onOpen: e(
|
2781
|
+
title: t(() => [l(e(B), {
|
2782
|
+
loading: e(y),
|
2783
|
+
onRefresh: e(V)
|
2784
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(K), {
|
2785
|
+
onOpen: e(u)
|
1497
2786
|
}, null, 8, ["onOpen"]), l(r, {
|
1498
2787
|
circle: "",
|
1499
|
-
icon: e(
|
2788
|
+
icon: e(_l),
|
1500
2789
|
onClick: e(v)
|
1501
2790
|
}, null, 8, ["icon", "onClick"])]),
|
1502
|
-
content:
|
2791
|
+
content: t(() => [l(M, {
|
1503
2792
|
class: "search-bar"
|
1504
2793
|
}, {
|
1505
|
-
default:
|
2794
|
+
default: t(() => [l(R, {
|
1506
2795
|
class: "basic-search-input",
|
1507
|
-
modelValue: e(
|
1508
|
-
"onUpdate:modelValue":
|
2796
|
+
modelValue: e(p).keyword,
|
2797
|
+
"onUpdate:modelValue": d[0] || (d[0] = (C) => e(p).keyword = C),
|
1509
2798
|
placeholder: e(a)("base.placeholder.keyword"),
|
1510
2799
|
clearable: "",
|
1511
|
-
onKeyup:
|
1512
|
-
onClear:
|
1513
|
-
}, null, 8, ["modelValue", "placeholder"]), l(
|
1514
|
-
modelValue: e(
|
1515
|
-
"onUpdate:modelValue":
|
1516
|
-
onChange:
|
2800
|
+
onKeyup: d[1] || (d[1] = me((C) => e(m)(), ["enter"])),
|
2801
|
+
onClear: d[2] || (d[2] = (C) => e(m)())
|
2802
|
+
}, null, 8, ["modelValue", "placeholder"]), l(D, {
|
2803
|
+
modelValue: e(p).status,
|
2804
|
+
"onUpdate:modelValue": d[3] || (d[3] = (C) => e(p).status = C),
|
2805
|
+
onChange: d[4] || (d[4] = (C) => e(m)())
|
1517
2806
|
}, {
|
1518
|
-
default:
|
1519
|
-
key:
|
1520
|
-
label: e(a)(`base.DISABLE_ENABLE.${
|
1521
|
-
value:
|
2807
|
+
default: t(() => [(S(), j(W, null, le([0, 1, 2], (C) => l(_, {
|
2808
|
+
key: C,
|
2809
|
+
label: e(a)(`base.DISABLE_ENABLE.${C}`),
|
2810
|
+
value: C
|
1522
2811
|
}, null, 8, ["label", "value"])), 64))]),
|
1523
2812
|
_: 1
|
1524
|
-
}, 8, ["modelValue"]), l(e(
|
1525
|
-
disabled: e(
|
1526
|
-
onSearch: e(
|
2813
|
+
}, 8, ["modelValue"]), l(e(Z), {
|
2814
|
+
disabled: e(y),
|
2815
|
+
onSearch: e(m)
|
1527
2816
|
}, null, 8, ["disabled", "onSearch"])]),
|
1528
2817
|
_: 1
|
1529
2818
|
})]),
|
1530
2819
|
_: 1
|
1531
2820
|
})]),
|
1532
|
-
default:
|
2821
|
+
default: t(() => [l(e(se), {
|
1533
2822
|
ref_key: "tableRef",
|
1534
|
-
ref:
|
2823
|
+
ref: f,
|
1535
2824
|
size: "small",
|
1536
|
-
columns:
|
1537
|
-
url: e(
|
1538
|
-
"search-param": e(
|
2825
|
+
columns: h,
|
2826
|
+
url: e(I).urls[e(ce)],
|
2827
|
+
"search-param": e(p),
|
1539
2828
|
autoSearch: ""
|
1540
|
-
}, null, 8, ["url", "search-param"]), l(
|
2829
|
+
}, null, 8, ["url", "search-param"]), l(bl, {
|
1541
2830
|
ref_key: "formModalRef",
|
1542
|
-
ref:
|
1543
|
-
onRefresh: e(
|
1544
|
-
}, null, 8, ["onRefresh"]), l(
|
2831
|
+
ref: i,
|
2832
|
+
onRefresh: e(V)
|
2833
|
+
}, null, 8, ["onRefresh"]), l(hl, {
|
1545
2834
|
ref_key: "ruleFormModalRef",
|
1546
|
-
ref:
|
2835
|
+
ref: k,
|
1547
2836
|
onRefresh: e(n)
|
1548
2837
|
}, null, 8, ["onRefresh"])]),
|
1549
2838
|
_: 1
|
1550
2839
|
});
|
1551
2840
|
};
|
1552
2841
|
}
|
1553
|
-
}),
|
2842
|
+
}), yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1554
2843
|
__proto__: null,
|
1555
|
-
default:
|
1556
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
2844
|
+
default: Vl
|
2845
|
+
}, Symbol.toStringTag, { value: "Module" })), kl = { class: "rule-check" }, vl = { style: { width: "80px", "line-height": "36px" } }, xl = /* @__PURE__ */ q({
|
1557
2846
|
__name: "RulesCheck",
|
1558
2847
|
props: {
|
1559
2848
|
modelValue: { type: Array, required: !0 },
|
1560
2849
|
disabled: { type: Boolean, default: !1 }
|
1561
2850
|
},
|
1562
2851
|
emits: ["update:modelValue"],
|
1563
|
-
setup(
|
1564
|
-
const { requesting:
|
2852
|
+
setup(w, { expose: x, emit: g }) {
|
2853
|
+
const { requesting: h } = F(I), y = w, f = g, i = z(!1), p = qe({
|
1565
2854
|
checkAll: !1,
|
1566
2855
|
indeterminate: !1,
|
1567
2856
|
MenuAll: {},
|
1568
2857
|
MenuList: {},
|
1569
2858
|
MenuIndeterminate: {}
|
1570
|
-
}), { options:
|
1571
|
-
function
|
1572
|
-
|
1573
|
-
var
|
1574
|
-
(
|
2859
|
+
}), { options: m, refresh: n } = ne(te(y, "modelValue"), f, { key: "RULE_CHECK", api: I, url: I.urls.rules, isArray: !0 }, !1);
|
2860
|
+
function V() {
|
2861
|
+
m.value.forEach((b) => {
|
2862
|
+
var o;
|
2863
|
+
(o = b.rules) != null && o.length && (p.MenuAll[b.id] = !1, p.MenuIndeterminate[b.id] = !1, p.MenuList[b.id] = []);
|
1575
2864
|
});
|
1576
2865
|
}
|
1577
|
-
function
|
1578
|
-
|
1579
|
-
var
|
1580
|
-
(
|
1581
|
-
}),
|
2866
|
+
function u(b) {
|
2867
|
+
m.value.forEach((o) => {
|
2868
|
+
var d;
|
2869
|
+
(d = o.rules) != null && d.length && (p.MenuList[o.id] = b ? o.rules.map((r) => r.key) : []);
|
2870
|
+
}), k();
|
1582
2871
|
}
|
1583
|
-
function
|
1584
|
-
const
|
1585
|
-
|
2872
|
+
function c(b, o) {
|
2873
|
+
const d = m.value.find((r) => r.id === o);
|
2874
|
+
p.MenuList[o] = b && d ? d.rules.map((r) => r.key) : [], k();
|
1586
2875
|
}
|
1587
|
-
function
|
1588
|
-
|
1589
|
-
var r,
|
1590
|
-
const
|
1591
|
-
|
1592
|
-
}),
|
2876
|
+
function k() {
|
2877
|
+
m.value.forEach((b) => {
|
2878
|
+
var r, R;
|
2879
|
+
const o = ((r = b.rules) == null ? void 0 : r.length) || 0, d = ((R = p.MenuList[b.id]) == null ? void 0 : R.length) || 0;
|
2880
|
+
p.MenuAll[b.id] = d === o && o > 0, p.MenuIndeterminate[b.id] = d > 0 && d < o;
|
2881
|
+
}), p.checkAll = Object.values(p.MenuAll).every(Boolean), p.indeterminate = !p.checkAll && Object.values(p.MenuList).some((b) => b.length > 0), f("update:modelValue", Object.values(p.MenuList).flat());
|
1593
2882
|
}
|
1594
2883
|
function v() {
|
1595
|
-
|
2884
|
+
p.checkAll = !1, p.indeterminate = !1, p.MenuAll = {}, p.MenuList = {}, p.MenuIndeterminate = {}, V(), f("update:modelValue", []), i.value = !1;
|
1596
2885
|
}
|
1597
|
-
function
|
1598
|
-
var
|
1599
|
-
if (Array.isArray(
|
1600
|
-
for (let
|
1601
|
-
if (Array.isArray(
|
1602
|
-
for (let r of
|
1603
|
-
|
1604
|
-
|
2886
|
+
function U(b) {
|
2887
|
+
var o;
|
2888
|
+
if (Array.isArray(m.value) && m.value.length > 0) {
|
2889
|
+
for (let d of m.value)
|
2890
|
+
if (Array.isArray(d.rules) && d.rules.length > 0)
|
2891
|
+
for (let r of d.rules)
|
2892
|
+
b.some((R) => R === r.key) && (p.MenuList[d.id] = (((o = p.MenuList) == null ? void 0 : o[d.id]) || []).concat([r.key]));
|
2893
|
+
k(), i.value = !0;
|
1605
2894
|
}
|
1606
2895
|
}
|
1607
|
-
return
|
1608
|
-
var
|
1609
|
-
(
|
1610
|
-
}),
|
1611
|
-
() =>
|
1612
|
-
(
|
1613
|
-
|
1614
|
-
var
|
1615
|
-
|
2896
|
+
return Re(async () => {
|
2897
|
+
var b;
|
2898
|
+
(b = m.value) != null && b.length || await n(), !i.value && y.modelValue && U(y.modelValue);
|
2899
|
+
}), Ce(
|
2900
|
+
() => y.modelValue,
|
2901
|
+
(b) => {
|
2902
|
+
_e(() => {
|
2903
|
+
var o;
|
2904
|
+
i.value || !((o = m.value) != null && o.length) || b && b.length > 0 && U(b);
|
1616
2905
|
});
|
1617
2906
|
},
|
1618
2907
|
{ deep: !0, immediate: !0 }
|
1619
|
-
),
|
1620
|
-
generateOption:
|
2908
|
+
), x({
|
2909
|
+
generateOption: U,
|
1621
2910
|
cleanChecked: v
|
1622
|
-
}), (
|
1623
|
-
const
|
1624
|
-
return
|
2911
|
+
}), (b, o) => {
|
2912
|
+
const d = s("el-checkbox"), r = s("el-space"), R = s("el-text"), _ = s("el-divider"), D = s("el-checkbox-group");
|
2913
|
+
return S(), j("div", kl, [
|
1625
2914
|
l(r, { style: { "margin-bottom": "6px" } }, {
|
1626
|
-
default:
|
1627
|
-
l(
|
1628
|
-
"model-value":
|
1629
|
-
indeterminate:
|
2915
|
+
default: t(() => [
|
2916
|
+
l(d, {
|
2917
|
+
"model-value": p.checkAll,
|
2918
|
+
indeterminate: p.indeterminate,
|
1630
2919
|
id: "all",
|
1631
|
-
disabled:
|
1632
|
-
onChange:
|
2920
|
+
disabled: w.disabled,
|
2921
|
+
onChange: u
|
1633
2922
|
}, {
|
1634
|
-
default:
|
1635
|
-
|
2923
|
+
default: t(() => o[1] || (o[1] = [
|
2924
|
+
N("span", null, "全选", -1)
|
1636
2925
|
])),
|
1637
2926
|
_: 1,
|
1638
2927
|
__: [1]
|
1639
2928
|
}, 8, ["model-value", "indeterminate", "disabled"]),
|
1640
2929
|
l(e(B), {
|
1641
|
-
loading: e(
|
2930
|
+
loading: e(h),
|
1642
2931
|
text: "",
|
1643
2932
|
size: "small",
|
1644
|
-
onRefresh:
|
2933
|
+
onRefresh: o[0] || (o[0] = (M) => e(n)(!0))
|
1645
2934
|
}, null, 8, ["loading"])
|
1646
2935
|
]),
|
1647
2936
|
_: 1
|
@@ -1651,54 +2940,54 @@ const je = /* @__PURE__ */ D({
|
|
1651
2940
|
alignment: "start",
|
1652
2941
|
class: "rule-check-content"
|
1653
2942
|
}, {
|
1654
|
-
default:
|
1655
|
-
(
|
1656
|
-
key:
|
2943
|
+
default: t(() => [
|
2944
|
+
(S(!0), j(W, null, le(e(m), (M) => (S(), j("div", {
|
2945
|
+
key: M.id
|
1657
2946
|
}, [
|
1658
2947
|
l(r, {
|
1659
2948
|
direction: "horizontal",
|
1660
2949
|
size: 2
|
1661
2950
|
}, {
|
1662
|
-
default:
|
1663
|
-
l(
|
2951
|
+
default: t(() => [
|
2952
|
+
l(d, {
|
1664
2953
|
style: { "min-width": "150px" },
|
1665
|
-
"model-value":
|
1666
|
-
disabled:
|
1667
|
-
indeterminate:
|
1668
|
-
onChange: (
|
2954
|
+
"model-value": p.MenuAll[M.id],
|
2955
|
+
disabled: w.disabled || !M.rules || M.rules.length <= 0,
|
2956
|
+
indeterminate: p.MenuIndeterminate[M.id],
|
2957
|
+
onChange: (L) => c(L, M.id)
|
1669
2958
|
}, {
|
1670
|
-
default:
|
1671
|
-
l(
|
1672
|
-
default:
|
1673
|
-
|
2959
|
+
default: t(() => [
|
2960
|
+
l(R, { style: { "font-size": "15px" } }, {
|
2961
|
+
default: t(() => [
|
2962
|
+
J(H(M.translate), 1)
|
1674
2963
|
]),
|
1675
2964
|
_: 2
|
1676
2965
|
}, 1024)
|
1677
2966
|
]),
|
1678
2967
|
_: 2
|
1679
2968
|
}, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
|
1680
|
-
l(
|
1681
|
-
|
2969
|
+
l(_, { direction: "vertical" }),
|
2970
|
+
M.rules ? (S(), T(D, {
|
1682
2971
|
key: 0,
|
1683
|
-
modelValue:
|
1684
|
-
"onUpdate:modelValue": (
|
1685
|
-
disabled:
|
2972
|
+
modelValue: p.MenuList[M.id],
|
2973
|
+
"onUpdate:modelValue": (L) => p.MenuList[M.id] = L,
|
2974
|
+
disabled: w.disabled,
|
1686
2975
|
style: { margin: "auto" },
|
1687
|
-
onChange:
|
2976
|
+
onChange: k
|
1688
2977
|
}, {
|
1689
|
-
default:
|
1690
|
-
(
|
1691
|
-
key:
|
1692
|
-
value:
|
2978
|
+
default: t(() => [
|
2979
|
+
(S(!0), j(W, null, le(M.rules, (L) => (S(), T(d, {
|
2980
|
+
key: L.key,
|
2981
|
+
value: L.key
|
1693
2982
|
}, {
|
1694
|
-
default:
|
1695
|
-
|
2983
|
+
default: t(() => [
|
2984
|
+
N("div", vl, H(L.translate), 1)
|
1696
2985
|
]),
|
1697
2986
|
_: 2
|
1698
2987
|
}, 1032, ["value"]))), 128))
|
1699
2988
|
]),
|
1700
2989
|
_: 2
|
1701
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
2990
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : Oe("", !0)
|
1702
2991
|
]),
|
1703
2992
|
_: 2
|
1704
2993
|
}, 1024)
|
@@ -1709,16 +2998,11 @@ const je = /* @__PURE__ */ D({
|
|
1709
2998
|
]);
|
1710
2999
|
};
|
1711
3000
|
}
|
1712
|
-
}),
|
1713
|
-
const y = R.__vccOpts || R;
|
1714
|
-
for (const [k, h] of w)
|
1715
|
-
y[k] = h;
|
1716
|
-
return y;
|
1717
|
-
}, Qe = /* @__PURE__ */ Ge(We, [["__scopeId", "data-v-fcb04ec2"]]), Je = /* @__PURE__ */ D({
|
3001
|
+
}), wl = /* @__PURE__ */ Ve(xl, [["__scopeId", "data-v-fcb04ec2"]]), Rl = /* @__PURE__ */ q({
|
1718
3002
|
__name: "RoleFormModal",
|
1719
3003
|
emits: ["refresh"],
|
1720
|
-
setup(
|
1721
|
-
const
|
3004
|
+
setup(w, { expose: x, emit: g }) {
|
3005
|
+
const h = g, y = z(), f = {
|
1722
3006
|
key: "",
|
1723
3007
|
module: "",
|
1724
3008
|
sort: 0,
|
@@ -1726,7 +3010,7 @@ const je = /* @__PURE__ */ D({
|
|
1726
3010
|
en_name: "",
|
1727
3011
|
remark: "",
|
1728
3012
|
rules: []
|
1729
|
-
},
|
3013
|
+
}, i = {
|
1730
3014
|
name: [
|
1731
3015
|
{
|
1732
3016
|
required: !0,
|
@@ -1741,46 +3025,46 @@ const je = /* @__PURE__ */ D({
|
|
1741
3025
|
trigger: "blur"
|
1742
3026
|
}
|
1743
3027
|
]
|
1744
|
-
}, { modal:
|
1745
|
-
var
|
1746
|
-
(
|
3028
|
+
}, { modal: p, title: m, form: n, formData: V, requesting: u, executing: c, open: k, modify: v, submit: U, closed: b } = G(h, f, pe), o = () => {
|
3029
|
+
var d;
|
3030
|
+
(d = y.value) == null || d.cleanChecked(), b();
|
1747
3031
|
};
|
1748
|
-
return
|
1749
|
-
open:
|
3032
|
+
return x({
|
3033
|
+
open: k,
|
1750
3034
|
modify: v
|
1751
|
-
}), (
|
1752
|
-
const
|
1753
|
-
return
|
1754
|
-
modelValue: e(
|
1755
|
-
"onUpdate:modelValue": r[6] || (r[6] = (
|
1756
|
-
title: e(
|
3035
|
+
}), (d, r) => {
|
3036
|
+
const R = s("el-input"), _ = s("el-form-item"), D = s("el-col"), M = s("el-input-number"), L = s("el-row"), A = s("el-form");
|
3037
|
+
return S(), T(e(Q), {
|
3038
|
+
modelValue: e(p),
|
3039
|
+
"onUpdate:modelValue": r[6] || (r[6] = (C) => P(p) ? p.value = C : null),
|
3040
|
+
title: e(m)(),
|
1757
3041
|
width: "1000px",
|
1758
|
-
executing: e(
|
1759
|
-
onClosed:
|
1760
|
-
onSubmit: e(
|
3042
|
+
executing: e(c),
|
3043
|
+
onClosed: o,
|
3044
|
+
onSubmit: e(U)
|
1761
3045
|
}, {
|
1762
|
-
default:
|
1763
|
-
l(
|
3046
|
+
default: t(() => [
|
3047
|
+
l(A, {
|
1764
3048
|
ref_key: "form",
|
1765
3049
|
ref: n,
|
1766
|
-
model: e(
|
3050
|
+
model: e(V),
|
1767
3051
|
"label-width": "auto",
|
1768
|
-
rules:
|
1769
|
-
disabled: e(
|
3052
|
+
rules: i,
|
3053
|
+
disabled: e(u) || e(c)
|
1770
3054
|
}, {
|
1771
|
-
default:
|
1772
|
-
l(
|
1773
|
-
default:
|
1774
|
-
l(
|
1775
|
-
default:
|
1776
|
-
l(
|
3055
|
+
default: t(() => [
|
3056
|
+
l(L, { gutter: 20 }, {
|
3057
|
+
default: t(() => [
|
3058
|
+
l(D, { span: 12 }, {
|
3059
|
+
default: t(() => [
|
3060
|
+
l(_, {
|
1777
3061
|
label: e(a)("base.module"),
|
1778
3062
|
prop: "module"
|
1779
3063
|
}, {
|
1780
|
-
default:
|
1781
|
-
l(
|
1782
|
-
modelValue: e(
|
1783
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
3064
|
+
default: t(() => [
|
3065
|
+
l(R, {
|
3066
|
+
modelValue: e(V).module,
|
3067
|
+
"onUpdate:modelValue": r[0] || (r[0] = (C) => e(V).module = C),
|
1784
3068
|
placeholder: e(a)("base.placeholder.input")
|
1785
3069
|
}, null, 8, ["modelValue", "placeholder"])
|
1786
3070
|
]),
|
@@ -1789,17 +3073,17 @@ const je = /* @__PURE__ */ D({
|
|
1789
3073
|
]),
|
1790
3074
|
_: 1
|
1791
3075
|
}),
|
1792
|
-
l(
|
1793
|
-
default:
|
1794
|
-
l(
|
3076
|
+
l(D, { span: 12 }, {
|
3077
|
+
default: t(() => [
|
3078
|
+
l(_, {
|
1795
3079
|
label: e(a)("base.sort"),
|
1796
3080
|
prop: "sort"
|
1797
3081
|
}, {
|
1798
|
-
default:
|
1799
|
-
l(
|
3082
|
+
default: t(() => [
|
3083
|
+
l(M, {
|
1800
3084
|
class: "w-full",
|
1801
|
-
modelValue: e(
|
1802
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
3085
|
+
modelValue: e(V).sort,
|
3086
|
+
"onUpdate:modelValue": r[1] || (r[1] = (C) => e(V).sort = C),
|
1803
3087
|
min: 0,
|
1804
3088
|
placeholder: e(a)("base.placeholder.input")
|
1805
3089
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -1812,56 +3096,56 @@ const je = /* @__PURE__ */ D({
|
|
1812
3096
|
]),
|
1813
3097
|
_: 1
|
1814
3098
|
}),
|
1815
|
-
l(
|
3099
|
+
l(_, {
|
1816
3100
|
label: e(a)("base.name"),
|
1817
3101
|
prop: "name"
|
1818
3102
|
}, {
|
1819
|
-
default:
|
1820
|
-
l(
|
1821
|
-
modelValue: e(
|
1822
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
3103
|
+
default: t(() => [
|
3104
|
+
l(R, {
|
3105
|
+
modelValue: e(V).name,
|
3106
|
+
"onUpdate:modelValue": r[2] || (r[2] = (C) => e(V).name = C),
|
1823
3107
|
placeholder: e(a)("base.placeholder.input")
|
1824
3108
|
}, null, 8, ["modelValue", "placeholder"])
|
1825
3109
|
]),
|
1826
3110
|
_: 1
|
1827
3111
|
}, 8, ["label"]),
|
1828
|
-
l(
|
3112
|
+
l(_, {
|
1829
3113
|
label: e(a)("base.en_name"),
|
1830
3114
|
prop: "en_name"
|
1831
3115
|
}, {
|
1832
|
-
default:
|
1833
|
-
l(
|
1834
|
-
modelValue: e(
|
1835
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
3116
|
+
default: t(() => [
|
3117
|
+
l(R, {
|
3118
|
+
modelValue: e(V).en_name,
|
3119
|
+
"onUpdate:modelValue": r[3] || (r[3] = (C) => e(V).en_name = C),
|
1836
3120
|
placeholder: e(a)("base.placeholder.input")
|
1837
3121
|
}, null, 8, ["modelValue", "placeholder"])
|
1838
3122
|
]),
|
1839
3123
|
_: 1
|
1840
3124
|
}, 8, ["label"]),
|
1841
|
-
l(
|
3125
|
+
l(_, {
|
1842
3126
|
label: e(a)("base.remark"),
|
1843
3127
|
prop: "remark"
|
1844
3128
|
}, {
|
1845
|
-
default:
|
1846
|
-
l(
|
1847
|
-
modelValue: e(
|
1848
|
-
"onUpdate:modelValue": r[4] || (r[4] = (
|
3129
|
+
default: t(() => [
|
3130
|
+
l(R, {
|
3131
|
+
modelValue: e(V).remark,
|
3132
|
+
"onUpdate:modelValue": r[4] || (r[4] = (C) => e(V).remark = C),
|
1849
3133
|
placeholder: e(a)("base.placeholder.input")
|
1850
3134
|
}, null, 8, ["modelValue", "placeholder"])
|
1851
3135
|
]),
|
1852
3136
|
_: 1
|
1853
3137
|
}, 8, ["label"]),
|
1854
|
-
l(
|
1855
|
-
label: e(a)("
|
3138
|
+
l(_, {
|
3139
|
+
label: e(a)("menu.rules"),
|
1856
3140
|
prop: "rules"
|
1857
3141
|
}, {
|
1858
|
-
default:
|
1859
|
-
l(
|
3142
|
+
default: t(() => [
|
3143
|
+
l(wl, {
|
1860
3144
|
ref_key: "rulesCheck",
|
1861
|
-
ref:
|
1862
|
-
modelValue: e(
|
1863
|
-
"onUpdate:modelValue": r[5] || (r[5] = (
|
1864
|
-
disabled: e(
|
3145
|
+
ref: y,
|
3146
|
+
modelValue: e(V).rules,
|
3147
|
+
"onUpdate:modelValue": r[5] || (r[5] = (C) => e(V).rules = C),
|
3148
|
+
disabled: e(u) || e(c)
|
1865
3149
|
}, null, 8, ["modelValue", "disabled"])
|
1866
3150
|
]),
|
1867
3151
|
_: 1
|
@@ -1874,12 +3158,12 @@ const je = /* @__PURE__ */ D({
|
|
1874
3158
|
}, 8, ["modelValue", "title", "executing", "onSubmit"]);
|
1875
3159
|
};
|
1876
3160
|
}
|
1877
|
-
}),
|
3161
|
+
}), Ul = /* @__PURE__ */ q({
|
1878
3162
|
__name: "index",
|
1879
|
-
setup(
|
1880
|
-
const
|
3163
|
+
setup(w) {
|
3164
|
+
const x = {
|
1881
3165
|
keyword: ""
|
1882
|
-
},
|
3166
|
+
}, g = [
|
1883
3167
|
{
|
1884
3168
|
label: a("base.sort"),
|
1885
3169
|
prop: "sort",
|
@@ -1912,88 +3196,88 @@ const je = /* @__PURE__ */ D({
|
|
1912
3196
|
width: 60,
|
1913
3197
|
align: "center",
|
1914
3198
|
render: ({
|
1915
|
-
row:
|
1916
|
-
}) => l(
|
1917
|
-
onModify: () =>
|
1918
|
-
key:
|
3199
|
+
row: u
|
3200
|
+
}) => l(X, {
|
3201
|
+
onModify: () => V({
|
3202
|
+
key: u.key
|
1919
3203
|
})
|
1920
3204
|
}, null)
|
1921
3205
|
}
|
1922
3206
|
], {
|
1923
|
-
requesting:
|
1924
|
-
} = F(
|
1925
|
-
tableRef:
|
1926
|
-
formModalRef:
|
1927
|
-
keyword:
|
1928
|
-
search:
|
1929
|
-
reset:
|
3207
|
+
requesting: h
|
3208
|
+
} = F(pe), {
|
3209
|
+
tableRef: y,
|
3210
|
+
formModalRef: f,
|
3211
|
+
keyword: i,
|
3212
|
+
search: p,
|
3213
|
+
reset: m,
|
1930
3214
|
openFormModal: n,
|
1931
|
-
editFormModal:
|
1932
|
-
} =
|
1933
|
-
return (
|
1934
|
-
const
|
1935
|
-
return
|
3215
|
+
editFormModal: V
|
3216
|
+
} = $(x);
|
3217
|
+
return (u, c) => {
|
3218
|
+
const k = s("el-input"), v = s("el-space"), U = s("el-page-header"), b = s("el-card");
|
3219
|
+
return S(), T(b, {
|
1936
3220
|
class: "basic-card flex-full",
|
1937
3221
|
"body-class": "flex-1"
|
1938
3222
|
}, {
|
1939
|
-
header:
|
3223
|
+
header: t(() => [l(U, {
|
1940
3224
|
class: "basic-header"
|
1941
3225
|
}, {
|
1942
|
-
title:
|
1943
|
-
loading: e(
|
1944
|
-
onRefresh: e(
|
1945
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
3226
|
+
title: t(() => [l(e(B), {
|
3227
|
+
loading: e(h),
|
3228
|
+
onRefresh: e(m)
|
3229
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(K), {
|
1946
3230
|
onOpen: e(n)
|
1947
3231
|
}, null, 8, ["onOpen"])]),
|
1948
|
-
content:
|
3232
|
+
content: t(() => [l(v, {
|
1949
3233
|
class: "search-bar"
|
1950
3234
|
}, {
|
1951
|
-
default:
|
3235
|
+
default: t(() => [l(k, {
|
1952
3236
|
class: "basic-search-input",
|
1953
|
-
modelValue: e(
|
1954
|
-
"onUpdate:modelValue":
|
3237
|
+
modelValue: e(i).keyword,
|
3238
|
+
"onUpdate:modelValue": c[0] || (c[0] = (o) => e(i).keyword = o),
|
1955
3239
|
placeholder: e(a)("base.placeholder.keyword"),
|
1956
3240
|
clearable: "",
|
1957
|
-
onKeyup:
|
1958
|
-
onClear:
|
1959
|
-
}, null, 8, ["modelValue", "placeholder"]), l(e(
|
1960
|
-
disabled: e(
|
1961
|
-
onSearch:
|
3241
|
+
onKeyup: c[1] || (c[1] = me((o) => e(p)(), ["enter"])),
|
3242
|
+
onClear: c[2] || (c[2] = (o) => e(p)())
|
3243
|
+
}, null, 8, ["modelValue", "placeholder"]), l(e(Z), {
|
3244
|
+
disabled: e(h),
|
3245
|
+
onSearch: c[3] || (c[3] = (o) => e(p)())
|
1962
3246
|
}, null, 8, ["disabled"])]),
|
1963
3247
|
_: 1
|
1964
3248
|
})]),
|
1965
3249
|
_: 1
|
1966
3250
|
})]),
|
1967
|
-
default:
|
3251
|
+
default: t(() => [l(e(se), {
|
1968
3252
|
ref_key: "tableRef",
|
1969
|
-
ref:
|
3253
|
+
ref: y,
|
1970
3254
|
size: "small",
|
1971
|
-
columns:
|
1972
|
-
url: e(
|
1973
|
-
"search-param": e(
|
3255
|
+
columns: g,
|
3256
|
+
url: e(pe).urls[e(ce)],
|
3257
|
+
"search-param": e(i),
|
1974
3258
|
autoSearch: ""
|
1975
|
-
}, null, 8, ["url", "search-param"]), l(
|
3259
|
+
}, null, 8, ["url", "search-param"]), l(Rl, {
|
1976
3260
|
ref_key: "formModalRef",
|
1977
|
-
ref:
|
1978
|
-
onRefresh: e(
|
3261
|
+
ref: f,
|
3262
|
+
onRefresh: e(m)
|
1979
3263
|
}, null, 8, ["onRefresh"])]),
|
1980
3264
|
_: 1
|
1981
3265
|
});
|
1982
3266
|
};
|
1983
3267
|
}
|
1984
|
-
}),
|
3268
|
+
}), Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1985
3269
|
__proto__: null,
|
1986
|
-
default:
|
1987
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
3270
|
+
default: Ul
|
3271
|
+
}, Symbol.toStringTag, { value: "Module" })), we = {
|
1988
3272
|
request: "request",
|
1989
3273
|
error: "error",
|
1990
3274
|
sql: "SQL"
|
1991
|
-
},
|
3275
|
+
}, oe = Ae.createAutoApi("log", we, "id", Object.keys(we), [], []), ql = /* @__PURE__ */ q({
|
1992
3276
|
__name: "index",
|
1993
|
-
setup(
|
1994
|
-
const
|
1995
|
-
dates: [
|
1996
|
-
},
|
3277
|
+
setup(w) {
|
3278
|
+
const x = {
|
3279
|
+
dates: [O.getCurrentHour().format(O.DATE_VALUE_FORMAT), O.getCurrentHour(1).format(O.DATE_VALUE_FORMAT)]
|
3280
|
+
}, g = [{
|
1997
3281
|
label: a("base.sort"),
|
1998
3282
|
type: "index",
|
1999
3283
|
width: 60
|
@@ -2002,76 +3286,76 @@ const je = /* @__PURE__ */ D({
|
|
2002
3286
|
prop: "time",
|
2003
3287
|
width: 180,
|
2004
3288
|
render: ({
|
2005
|
-
rowData:
|
2006
|
-
}) => l(
|
3289
|
+
rowData: m
|
3290
|
+
}) => l(W, null, [O.formatDate(m.time)])
|
2007
3291
|
}, {
|
2008
3292
|
label: a("base.url"),
|
2009
3293
|
prop: "url",
|
2010
3294
|
align: "left",
|
2011
3295
|
width: 200
|
2012
3296
|
}], {
|
2013
|
-
requesting:
|
2014
|
-
} = F(
|
2015
|
-
tableRef:
|
2016
|
-
keyword:
|
2017
|
-
search:
|
2018
|
-
reset:
|
2019
|
-
} =
|
2020
|
-
return (
|
2021
|
-
const
|
2022
|
-
return
|
3297
|
+
requesting: h
|
3298
|
+
} = F(oe), {
|
3299
|
+
tableRef: y,
|
3300
|
+
keyword: f,
|
3301
|
+
search: i,
|
3302
|
+
reset: p
|
3303
|
+
} = $(x);
|
3304
|
+
return (m, n) => {
|
3305
|
+
const V = s("el-date-picker"), u = s("el-space"), c = s("el-page-header"), k = s("el-card");
|
3306
|
+
return S(), T(k, {
|
2023
3307
|
class: "basic-card flex-full",
|
2024
3308
|
"body-class": "flex-1"
|
2025
3309
|
}, {
|
2026
|
-
header:
|
3310
|
+
header: t(() => [l(c, {
|
2027
3311
|
class: "basic-header"
|
2028
3312
|
}, {
|
2029
|
-
title:
|
2030
|
-
loading: e(
|
2031
|
-
onRefresh: e(
|
3313
|
+
title: t(() => [l(e(B), {
|
3314
|
+
loading: e(h),
|
3315
|
+
onRefresh: e(p)
|
2032
3316
|
}, null, 8, ["loading", "onRefresh"])]),
|
2033
|
-
content:
|
3317
|
+
content: t(() => [l(u, {
|
2034
3318
|
class: "search-bar"
|
2035
3319
|
}, {
|
2036
|
-
default:
|
2037
|
-
modelValue: e(
|
2038
|
-
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(
|
3320
|
+
default: t(() => [l(V, {
|
3321
|
+
modelValue: e(f).dates,
|
3322
|
+
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(f).dates = v),
|
2039
3323
|
class: "basic-search-datetimerange",
|
2040
|
-
"value-format": e(
|
2041
|
-
format: e(
|
3324
|
+
"value-format": e(O).DATE_HOUR_FORMAT,
|
3325
|
+
format: e(O).DATE_SHOW_FORMAT,
|
2042
3326
|
type: "datetimerange",
|
2043
3327
|
"range-separator": "-",
|
2044
3328
|
"start-placeholder": e(a)("base.start_at"),
|
2045
3329
|
"end-placeholder": e(a)("base.end_at"),
|
2046
3330
|
clearable: !1,
|
2047
|
-
onChange: n[1] || (n[1] = (v) => e(
|
2048
|
-
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(
|
2049
|
-
disabled: e(
|
2050
|
-
onSearch: n[2] || (n[2] = (v) => e(
|
3331
|
+
onChange: n[1] || (n[1] = (v) => e(i)())
|
3332
|
+
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(Z), {
|
3333
|
+
disabled: e(h),
|
3334
|
+
onSearch: n[2] || (n[2] = (v) => e(i)())
|
2051
3335
|
}, null, 8, ["disabled"])]),
|
2052
3336
|
_: 1
|
2053
3337
|
})]),
|
2054
3338
|
_: 1
|
2055
3339
|
})]),
|
2056
|
-
default:
|
3340
|
+
default: t(() => [l(e(re), {
|
2057
3341
|
ref_key: "tableRef",
|
2058
|
-
ref:
|
3342
|
+
ref: y,
|
2059
3343
|
size: "small",
|
2060
|
-
columns:
|
2061
|
-
url: e(
|
2062
|
-
"search-param": e(
|
3344
|
+
columns: g,
|
3345
|
+
url: e(oe).urls.request,
|
3346
|
+
"search-param": e(f),
|
2063
3347
|
autoSearch: ""
|
2064
3348
|
}, null, 8, ["url", "search-param"])]),
|
2065
3349
|
_: 1
|
2066
3350
|
});
|
2067
3351
|
};
|
2068
3352
|
}
|
2069
|
-
}),
|
3353
|
+
}), Cl = /* @__PURE__ */ q({
|
2070
3354
|
__name: "index",
|
2071
|
-
setup(
|
2072
|
-
const
|
2073
|
-
dates: [
|
2074
|
-
},
|
3355
|
+
setup(w) {
|
3356
|
+
const x = {
|
3357
|
+
dates: [O.getCurrentDate(-7).format(O.DATE_VALUE_FORMAT), O.getCurrentDate(0).format(O.DATE_VALUE_FORMAT)]
|
3358
|
+
}, g = [{
|
2075
3359
|
label: a("base.sort"),
|
2076
3360
|
type: "index",
|
2077
3361
|
width: 60
|
@@ -2080,76 +3364,76 @@ const je = /* @__PURE__ */ D({
|
|
2080
3364
|
prop: "time",
|
2081
3365
|
width: 180,
|
2082
3366
|
render: ({
|
2083
|
-
rowData:
|
2084
|
-
}) => l(
|
3367
|
+
rowData: m
|
3368
|
+
}) => l(W, null, [O.formatDate(m.time)])
|
2085
3369
|
}, {
|
2086
3370
|
label: a("base.url"),
|
2087
3371
|
prop: "url",
|
2088
3372
|
align: "left",
|
2089
3373
|
width: 200
|
2090
3374
|
}], {
|
2091
|
-
requesting:
|
2092
|
-
} = F(
|
2093
|
-
tableRef:
|
2094
|
-
keyword:
|
2095
|
-
search:
|
2096
|
-
reset:
|
2097
|
-
} =
|
2098
|
-
return (
|
2099
|
-
const
|
2100
|
-
return
|
3375
|
+
requesting: h
|
3376
|
+
} = F(oe), {
|
3377
|
+
tableRef: y,
|
3378
|
+
keyword: f,
|
3379
|
+
search: i,
|
3380
|
+
reset: p
|
3381
|
+
} = $(x);
|
3382
|
+
return (m, n) => {
|
3383
|
+
const V = s("el-date-picker"), u = s("el-space"), c = s("el-page-header"), k = s("el-card");
|
3384
|
+
return S(), T(k, {
|
2101
3385
|
class: "basic-card flex-full",
|
2102
3386
|
"body-class": "flex-1"
|
2103
3387
|
}, {
|
2104
|
-
header:
|
3388
|
+
header: t(() => [l(c, {
|
2105
3389
|
class: "basic-header"
|
2106
3390
|
}, {
|
2107
|
-
title:
|
2108
|
-
loading: e(
|
2109
|
-
onRefresh: e(
|
3391
|
+
title: t(() => [l(e(B), {
|
3392
|
+
loading: e(h),
|
3393
|
+
onRefresh: e(p)
|
2110
3394
|
}, null, 8, ["loading", "onRefresh"])]),
|
2111
|
-
content:
|
3395
|
+
content: t(() => [l(u, {
|
2112
3396
|
class: "search-bar"
|
2113
3397
|
}, {
|
2114
|
-
default:
|
2115
|
-
modelValue: e(
|
2116
|
-
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(
|
3398
|
+
default: t(() => [l(V, {
|
3399
|
+
modelValue: e(f).dates,
|
3400
|
+
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(f).dates = v),
|
2117
3401
|
class: "basic-search-daterange",
|
2118
|
-
"value-format": e(
|
2119
|
-
format: e(
|
3402
|
+
"value-format": e(O).DATE_VALUE_FORMAT,
|
3403
|
+
format: e(O).DATE_FORMAT,
|
2120
3404
|
type: "daterange",
|
2121
3405
|
"range-separator": "-",
|
2122
3406
|
"start-placeholder": e(a)("base.start_at"),
|
2123
3407
|
"end-placeholder": e(a)("base.end_at"),
|
2124
3408
|
clearable: !1,
|
2125
|
-
onChange: n[1] || (n[1] = (v) => e(
|
2126
|
-
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(
|
2127
|
-
disabled: e(
|
2128
|
-
onSearch: n[2] || (n[2] = (v) => e(
|
3409
|
+
onChange: n[1] || (n[1] = (v) => e(i)())
|
3410
|
+
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(Z), {
|
3411
|
+
disabled: e(h),
|
3412
|
+
onSearch: n[2] || (n[2] = (v) => e(i)())
|
2129
3413
|
}, null, 8, ["disabled"])]),
|
2130
3414
|
_: 1
|
2131
3415
|
})]),
|
2132
3416
|
_: 1
|
2133
3417
|
})]),
|
2134
|
-
default:
|
3418
|
+
default: t(() => [l(e(re), {
|
2135
3419
|
ref_key: "tableRef",
|
2136
|
-
ref:
|
3420
|
+
ref: y,
|
2137
3421
|
size: "small",
|
2138
|
-
columns:
|
2139
|
-
url: e(
|
2140
|
-
"search-param": e(
|
3422
|
+
columns: g,
|
3423
|
+
url: e(oe).urls.error,
|
3424
|
+
"search-param": e(f),
|
2141
3425
|
autoSearch: ""
|
2142
3426
|
}, null, 8, ["url", "search-param"])]),
|
2143
3427
|
_: 1
|
2144
3428
|
});
|
2145
3429
|
};
|
2146
3430
|
}
|
2147
|
-
}),
|
3431
|
+
}), Ol = /* @__PURE__ */ q({
|
2148
3432
|
__name: "index",
|
2149
|
-
setup(
|
2150
|
-
const
|
2151
|
-
dates: [
|
2152
|
-
},
|
3433
|
+
setup(w) {
|
3434
|
+
const x = {
|
3435
|
+
dates: [O.getCurrentDate(-7).format(O.DATE_VALUE_FORMAT), O.getCurrentDate().format(O.DATE_VALUE_FORMAT)]
|
3436
|
+
}, g = [{
|
2153
3437
|
label: a("base.sort"),
|
2154
3438
|
type: "index",
|
2155
3439
|
width: 60
|
@@ -2158,115 +3442,117 @@ const je = /* @__PURE__ */ D({
|
|
2158
3442
|
prop: "time",
|
2159
3443
|
width: 180,
|
2160
3444
|
render: ({
|
2161
|
-
rowData:
|
2162
|
-
}) => l(
|
3445
|
+
rowData: m
|
3446
|
+
}) => l(W, null, [O.formatDate(m.time)])
|
2163
3447
|
}, {
|
2164
3448
|
label: a("base.url"),
|
2165
3449
|
prop: "url",
|
2166
3450
|
align: "left",
|
2167
3451
|
width: 200
|
2168
3452
|
}], {
|
2169
|
-
requesting:
|
2170
|
-
} = F(
|
2171
|
-
tableRef:
|
2172
|
-
keyword:
|
2173
|
-
search:
|
2174
|
-
reset:
|
2175
|
-
} =
|
2176
|
-
return (
|
2177
|
-
const
|
2178
|
-
return
|
3453
|
+
requesting: h
|
3454
|
+
} = F(oe), {
|
3455
|
+
tableRef: y,
|
3456
|
+
keyword: f,
|
3457
|
+
search: i,
|
3458
|
+
reset: p
|
3459
|
+
} = $(x);
|
3460
|
+
return (m, n) => {
|
3461
|
+
const V = s("el-date-picker"), u = s("el-space"), c = s("el-page-header"), k = s("el-card");
|
3462
|
+
return S(), T(k, {
|
2179
3463
|
class: "basic-card flex-full",
|
2180
3464
|
"body-class": "flex-1"
|
2181
3465
|
}, {
|
2182
|
-
header:
|
3466
|
+
header: t(() => [l(c, {
|
2183
3467
|
class: "basic-header"
|
2184
3468
|
}, {
|
2185
|
-
title:
|
2186
|
-
loading: e(
|
2187
|
-
onRefresh: e(
|
3469
|
+
title: t(() => [l(e(B), {
|
3470
|
+
loading: e(h),
|
3471
|
+
onRefresh: e(p)
|
2188
3472
|
}, null, 8, ["loading", "onRefresh"])]),
|
2189
|
-
content:
|
3473
|
+
content: t(() => [l(u, {
|
2190
3474
|
class: "search-bar"
|
2191
3475
|
}, {
|
2192
|
-
default:
|
2193
|
-
modelValue: e(
|
2194
|
-
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(
|
3476
|
+
default: t(() => [l(V, {
|
3477
|
+
modelValue: e(f).dates,
|
3478
|
+
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(f).dates = v),
|
2195
3479
|
class: "basic-search-daterange",
|
2196
|
-
"value-format": e(
|
2197
|
-
format: e(
|
3480
|
+
"value-format": e(O).DATE_HOUR_FORMAT,
|
3481
|
+
format: e(O).DATE_FORMAT,
|
2198
3482
|
type: "daterange",
|
2199
3483
|
"range-separator": "-",
|
2200
3484
|
"start-placeholder": e(a)("base.start_at"),
|
2201
3485
|
"end-placeholder": e(a)("base.end_at"),
|
2202
3486
|
clearable: !1,
|
2203
|
-
onChange: n[1] || (n[1] = (v) => e(
|
2204
|
-
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(
|
2205
|
-
disabled: e(
|
2206
|
-
onSearch: n[2] || (n[2] = (v) => e(
|
3487
|
+
onChange: n[1] || (n[1] = (v) => e(i)())
|
3488
|
+
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(Z), {
|
3489
|
+
disabled: e(h),
|
3490
|
+
onSearch: n[2] || (n[2] = (v) => e(i)())
|
2207
3491
|
}, null, 8, ["disabled"])]),
|
2208
3492
|
_: 1
|
2209
3493
|
})]),
|
2210
3494
|
_: 1
|
2211
3495
|
})]),
|
2212
|
-
default:
|
3496
|
+
default: t(() => [l(e(re), {
|
2213
3497
|
ref_key: "tableRef",
|
2214
|
-
ref:
|
3498
|
+
ref: y,
|
2215
3499
|
size: "small",
|
2216
|
-
columns:
|
2217
|
-
url: e(
|
2218
|
-
"search-param": e(
|
3500
|
+
columns: g,
|
3501
|
+
url: e(oe).urls.sql,
|
3502
|
+
"search-param": e(f),
|
2219
3503
|
autoSearch: ""
|
2220
3504
|
}, null, 8, ["url", "search-param"])]),
|
2221
3505
|
_: 1
|
2222
3506
|
});
|
2223
3507
|
};
|
2224
3508
|
}
|
2225
|
-
}),
|
3509
|
+
}), Ml = () => import("./index-SHsqnbNG.js"), Sl = () => import("./index-CJMTIvHk.js"), Dl = () => import("./index-BMn8mAns.js"), El = [
|
2226
3510
|
{
|
2227
|
-
path:
|
3511
|
+
path: Be,
|
2228
3512
|
name: "RequestLog",
|
2229
|
-
component:
|
3513
|
+
component: Ml,
|
2230
3514
|
meta: {
|
2231
3515
|
title: a("menu.RequestLog")
|
2232
3516
|
}
|
2233
3517
|
},
|
2234
3518
|
{
|
2235
|
-
path:
|
3519
|
+
path: Ne,
|
2236
3520
|
name: "ErrorLog",
|
2237
|
-
component:
|
3521
|
+
component: Sl,
|
2238
3522
|
meta: {
|
2239
3523
|
title: a("menu.ErrorLog")
|
2240
3524
|
}
|
2241
3525
|
},
|
2242
3526
|
{
|
2243
|
-
path:
|
3527
|
+
path: je,
|
2244
3528
|
name: "SqlLog",
|
2245
|
-
component:
|
3529
|
+
component: Dl,
|
2246
3530
|
meta: {
|
2247
3531
|
title: a("menu.SqlLog")
|
2248
3532
|
}
|
2249
3533
|
}
|
2250
|
-
],
|
2251
|
-
install: (
|
2252
|
-
Reflect.ownKeys(
|
3534
|
+
], Fl = {
|
3535
|
+
install: (w) => {
|
3536
|
+
Reflect.ownKeys(w._context.provides).some((x) => String(x) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app."), console.warn(Reflect.ownKeys(w._context.provides));
|
2253
3537
|
},
|
2254
3538
|
version: "__VERSION__"
|
2255
|
-
},
|
2256
|
-
"./views/admin/index.vue":
|
2257
|
-
"./views/
|
2258
|
-
"./views/
|
2259
|
-
"./views/
|
3539
|
+
}, $l = /* @__PURE__ */ Object.assign({
|
3540
|
+
"./views/admin/index.vue": Ye,
|
3541
|
+
"./views/config/index.vue": ul,
|
3542
|
+
"./views/language/index.vue": ml,
|
3543
|
+
"./views/menu/index.vue": yl,
|
3544
|
+
"./views/role/index.vue": Al
|
2260
3545
|
});
|
2261
3546
|
export {
|
2262
|
-
|
2263
|
-
|
2264
|
-
|
2265
|
-
|
2266
|
-
|
2267
|
-
|
2268
|
-
|
2269
|
-
|
2270
|
-
|
2271
|
-
|
3547
|
+
We as AdminsPage,
|
3548
|
+
sl as ConfigPage,
|
3549
|
+
Cl as ErrorLogsPage,
|
3550
|
+
pl as LanguagesPage,
|
3551
|
+
El as LogRoutes,
|
3552
|
+
Vl as MenusPage,
|
3553
|
+
ql as RequestLogsPage,
|
3554
|
+
Ul as RolesPage,
|
3555
|
+
Ol as SQLLogsPage,
|
3556
|
+
$l as basicModules,
|
3557
|
+
Fl as default
|
2272
3558
|
};
|