auto-vue-basic 0.0.46 → 0.0.48
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 +2021 -836
- 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/index.d.ts +1 -0
- package/dist/types/views/site/components/DomainFormModal.vue.d.ts +12 -0
- package/dist/types/views/site/components/DomainProviderFormModal.vue.d.ts +12 -0
- package/dist/types/views/site/components/DomainProviderSelect.vue.d.ts +31 -0
- package/dist/types/views/site/components/DomainProviderTableDrawer.vue.d.ts +29 -0
- package/dist/types/views/site/components/DomainSelect.vue.d.ts +31 -0
- package/dist/types/views/site/components/DomainTableDrawer.vue.d.ts +327 -0
- package/dist/types/views/site/components/SSLFormModal.vue.d.ts +132 -0
- package/dist/types/views/site/components/SSLLogTableDrawer.vue.d.ts +20 -0
- package/dist/types/views/site/components/SiteFormModal.vue.d.ts +12 -0
- package/dist/types/views/site/components/SiteSelect.vue.d.ts +31 -0
- package/dist/types/views/site/index.vue.d.ts +390 -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 j, onBeforeMount as Me, resolveComponent as s, createBlock as T, openBlock as D, unref as e, isRef as z, withCtx as t, createVNode as l, createTextVNode as J, createElementBlock as G, Fragment as K, renderList as re, toDisplayString as Q, withKeys as me, createElementVNode as N, toRef as oe, normalizeClass as ve, isVNode as De, reactive as Se, onMounted as Le, watch as Te, nextTick as qe, createCommentVNode as Oe } from "vue";
|
2
|
+
import { createAutoApi as W, useForm as Y, Translate as a, RulesUtils as Ce, FormDialog as H, BasicAvatar as Ee, ModifyButton as X, useCrudPage as $, useLoading as F, ProTable as se, DEFAULT_PAGE_KEY as ce, SearchButton as Z, RefreshButton as B, OpenButton as I, DEFAULT_STATUS_KEY as xe, AutoApiUtils as we, useSelect as te, InlineRefreshButton as ue, DEFAULT_REMOVE_KEY as Fe, TimeUtils as C, BasicDrawer as _e, ProTableList as ne, RequestButton as be, AssetsUtils as $e, notification as ze, DEFAULT_LIST_URL as Pe, REQUEST_LOG_URL as Be, ERROR_LOG_URL as Ie, SQL_LOG_URL as Ne } from "auto-vue-manual";
|
3
|
+
const fe = W("admin", {}, "key"), pe = W("role", {}, "key"), je = /* @__PURE__ */ q({
|
4
4
|
__name: "AdminFormModal",
|
5
5
|
emits: ["refresh"],
|
6
|
-
setup(
|
7
|
-
const
|
6
|
+
setup(w, { expose: x, emit: h }) {
|
7
|
+
const g = h, V = {
|
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: y, open: u, modify: c, submit: k, closed: v } = Y(g, V, fe), A = {
|
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: Ce.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
|
+
}, _ = j([]), o = async () => {
|
62
|
+
const d = await pe.list();
|
63
|
+
_.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 Me(async () => {
|
66
|
+
await o();
|
67
|
+
}), x({
|
68
|
+
open: u,
|
69
|
+
modify: c
|
70
|
+
}), (d, r) => {
|
71
|
+
const R = s("el-input"), b = s("el-form-item"), S = s("el-radio-button"), M = s("el-radio-group"), L = s("el-checkbox"), U = s("el-checkbox-group"), O = s("el-form");
|
72
|
+
return D(), T(e(H), {
|
73
|
+
modelValue: e(f),
|
74
|
+
"onUpdate:modelValue": r[7] || (r[7] = (E) => z(f) ? f.value = E : null),
|
75
|
+
title: e(i)(),
|
76
76
|
width: "600px",
|
77
|
-
executing: e(
|
77
|
+
executing: e(y),
|
78
78
|
onClosed: e(v),
|
79
|
-
onSubmit: e(
|
79
|
+
onSubmit: e(k)
|
80
80
|
}, {
|
81
|
-
default:
|
82
|
-
l(
|
81
|
+
default: t(() => [
|
82
|
+
l(O, {
|
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: A,
|
88
|
+
disabled: e(n) || e(y)
|
89
89
|
}, {
|
90
|
-
default:
|
91
|
-
l(
|
90
|
+
default: t(() => [
|
91
|
+
l(b, {
|
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(b, {
|
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(b, {
|
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(b, {
|
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(b, {
|
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:
|
157
|
+
default: t(() => [
|
158
158
|
l(S, { value: "zh-CN" }, {
|
159
|
-
default:
|
160
|
-
|
159
|
+
default: t(() => r[8] || (r[8] = [
|
160
|
+
J("zh-CN")
|
161
161
|
])),
|
162
162
|
_: 1,
|
163
163
|
__: [8]
|
164
164
|
}),
|
165
165
|
l(S, { value: "en-US" }, {
|
166
|
-
default:
|
167
|
-
|
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(b, {
|
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(U, {
|
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
|
+
(D(!0), G(K, null, re(_.value, (E) => (D(), T(L, {
|
189
|
+
key: E.key,
|
190
|
+
value: E.key
|
191
191
|
}, {
|
192
|
-
default:
|
193
|
-
|
192
|
+
default: t(() => [
|
193
|
+
J(Q(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(b, {
|
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
|
+
}), Ke = /* @__PURE__ */ q({
|
225
225
|
__name: "index",
|
226
|
-
setup(
|
227
|
-
const
|
226
|
+
setup(w) {
|
227
|
+
const x = {
|
228
228
|
keyword: ""
|
229
|
-
},
|
229
|
+
}, h = [{
|
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(Ee, {
|
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,89 @@ 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: () => y({
|
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: g
|
284
|
+
} = F(fe), {
|
285
|
+
tableRef: V,
|
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: y
|
292
|
+
} = $(x);
|
293
|
+
return (u, c) => {
|
294
|
+
const k = s("el-input"), v = s("el-space"), A = s("el-page-header"), _ = s("el-card");
|
295
|
+
return D(), T(_, {
|
296
296
|
class: "basic-card flex-full",
|
297
297
|
"body-class": "flex-1"
|
298
298
|
}, {
|
299
|
-
header:
|
299
|
+
header: t(() => [l(A, {
|
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(g),
|
304
|
+
onRefresh: e(m)
|
305
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(I), {
|
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(g),
|
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: V,
|
330
330
|
size: "small",
|
331
|
-
columns:
|
332
|
-
url: e(
|
333
|
-
"search-param": e(
|
331
|
+
columns: h,
|
332
|
+
url: e(fe).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(je, {
|
336
336
|
ref_key: "formModalRef",
|
337
|
-
ref:
|
338
|
-
onRefresh: e(
|
337
|
+
ref: f,
|
338
|
+
onRefresh: e(m)
|
339
339
|
}, null, 8, ["onRefresh"])]),
|
340
340
|
_: 1
|
341
341
|
});
|
342
342
|
};
|
343
343
|
}
|
344
|
-
}),
|
344
|
+
}), We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
345
345
|
__proto__: null,
|
346
|
-
default:
|
347
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
346
|
+
default: Ke
|
347
|
+
}, Symbol.toStringTag, { value: "Module" })), ie = W("translation", {}, "key"), Ye = /* @__PURE__ */ q({
|
348
348
|
__name: "LangFormModal",
|
349
349
|
emits: ["refresh"],
|
350
|
-
setup(
|
351
|
-
const
|
350
|
+
setup(w, { expose: x, emit: h }) {
|
351
|
+
const g = h, V = {
|
352
352
|
id: 0,
|
353
353
|
key: "",
|
354
354
|
module: "",
|
355
355
|
language: "",
|
356
356
|
result: "",
|
357
357
|
remark: ""
|
358
|
-
},
|
358
|
+
}, f = {
|
359
359
|
module: [
|
360
360
|
{
|
361
361
|
required: !0,
|
@@ -384,40 +384,40 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
384
384
|
trigger: "blur"
|
385
385
|
}
|
386
386
|
]
|
387
|
-
}, { modal:
|
388
|
-
return
|
389
|
-
open:
|
390
|
-
modify:
|
391
|
-
}), (
|
392
|
-
const
|
393
|
-
return
|
394
|
-
modelValue: e(
|
395
|
-
"onUpdate:modelValue":
|
396
|
-
title: e(
|
387
|
+
}, { modal: i, title: p, form: m, formData: n, requesting: y, executing: u, open: c, modify: k, submit: v, closed: A } = Y(g, V, ie);
|
388
|
+
return x({
|
389
|
+
open: c,
|
390
|
+
modify: k
|
391
|
+
}), (_, o) => {
|
392
|
+
const d = s("el-input"), r = s("el-form-item"), R = s("el-radio-button"), b = s("el-radio-group"), S = s("el-form");
|
393
|
+
return D(), T(e(H), {
|
394
|
+
modelValue: e(i),
|
395
|
+
"onUpdate:modelValue": o[5] || (o[5] = (M) => z(i) ? i.value = M : null),
|
396
|
+
title: e(p)(),
|
397
397
|
width: "600px",
|
398
|
-
executing: e(
|
399
|
-
onClosed: e(
|
398
|
+
executing: e(u),
|
399
|
+
onClosed: e(A),
|
400
400
|
onSubmit: e(v)
|
401
401
|
}, {
|
402
|
-
default:
|
402
|
+
default: t(() => [
|
403
403
|
l(S, {
|
404
404
|
ref_key: "form",
|
405
|
-
ref:
|
405
|
+
ref: m,
|
406
406
|
model: e(n),
|
407
407
|
"label-width": "auto",
|
408
|
-
rules:
|
409
|
-
disabled: e(
|
408
|
+
rules: f,
|
409
|
+
disabled: e(y) || e(u)
|
410
410
|
}, {
|
411
|
-
default:
|
411
|
+
default: t(() => [
|
412
412
|
l(r, {
|
413
413
|
label: e(a)("language.module"),
|
414
414
|
prop: "module",
|
415
415
|
required: ""
|
416
416
|
}, {
|
417
|
-
default:
|
418
|
-
l(
|
417
|
+
default: t(() => [
|
418
|
+
l(d, {
|
419
419
|
modelValue: e(n).module,
|
420
|
-
"onUpdate:modelValue":
|
420
|
+
"onUpdate:modelValue": o[0] || (o[0] = (M) => e(n).module = M),
|
421
421
|
placeholder: e(a)("language.placeholder.module")
|
422
422
|
}, null, 8, ["modelValue", "placeholder"])
|
423
423
|
]),
|
@@ -428,10 +428,10 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
428
428
|
prop: "key",
|
429
429
|
required: ""
|
430
430
|
}, {
|
431
|
-
default:
|
432
|
-
l(
|
431
|
+
default: t(() => [
|
432
|
+
l(d, {
|
433
433
|
modelValue: e(n).key,
|
434
|
-
"onUpdate:modelValue":
|
434
|
+
"onUpdate:modelValue": o[1] || (o[1] = (M) => e(n).key = M),
|
435
435
|
placeholder: e(a)("language.placeholder.key")
|
436
436
|
}, null, 8, ["modelValue", "placeholder"])
|
437
437
|
]),
|
@@ -442,22 +442,22 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
442
442
|
prop: "language",
|
443
443
|
required: ""
|
444
444
|
}, {
|
445
|
-
default:
|
446
|
-
l(
|
445
|
+
default: t(() => [
|
446
|
+
l(b, {
|
447
447
|
modelValue: e(n).language,
|
448
|
-
"onUpdate:modelValue":
|
448
|
+
"onUpdate:modelValue": o[2] || (o[2] = (M) => e(n).language = M)
|
449
449
|
}, {
|
450
|
-
default:
|
451
|
-
l(
|
452
|
-
default:
|
453
|
-
|
450
|
+
default: t(() => [
|
451
|
+
l(R, { label: "zh-CN" }, {
|
452
|
+
default: t(() => o[6] || (o[6] = [
|
453
|
+
J("zh-CN")
|
454
454
|
])),
|
455
455
|
_: 1,
|
456
456
|
__: [6]
|
457
457
|
}),
|
458
|
-
l(
|
459
|
-
default:
|
460
|
-
|
458
|
+
l(R, { label: "en-US" }, {
|
459
|
+
default: t(() => o[7] || (o[7] = [
|
460
|
+
J("en-US")
|
461
461
|
])),
|
462
462
|
_: 1,
|
463
463
|
__: [7]
|
@@ -473,10 +473,10 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
473
473
|
prop: "result",
|
474
474
|
required: ""
|
475
475
|
}, {
|
476
|
-
default:
|
477
|
-
l(
|
476
|
+
default: t(() => [
|
477
|
+
l(d, {
|
478
478
|
modelValue: e(n).result,
|
479
|
-
"onUpdate:modelValue":
|
479
|
+
"onUpdate:modelValue": o[3] || (o[3] = (M) => e(n).result = M),
|
480
480
|
placeholder: e(a)("language.placeholder.result")
|
481
481
|
}, null, 8, ["modelValue", "placeholder"])
|
482
482
|
]),
|
@@ -486,10 +486,10 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
486
486
|
label: e(a)("base.remark"),
|
487
487
|
prop: "remark"
|
488
488
|
}, {
|
489
|
-
default:
|
490
|
-
l(
|
489
|
+
default: t(() => [
|
490
|
+
l(d, {
|
491
491
|
modelValue: e(n).remark,
|
492
|
-
"onUpdate:modelValue":
|
492
|
+
"onUpdate:modelValue": o[4] || (o[4] = (M) => e(n).remark = M),
|
493
493
|
placeholder: e(a)("base.placeholder.input")
|
494
494
|
}, null, 8, ["modelValue", "placeholder"])
|
495
495
|
]),
|
@@ -503,13 +503,13 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
503
503
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
504
504
|
};
|
505
505
|
}
|
506
|
-
}),
|
506
|
+
}), He = /* @__PURE__ */ q({
|
507
507
|
__name: "index",
|
508
|
-
setup(
|
509
|
-
const
|
508
|
+
setup(w) {
|
509
|
+
const x = {
|
510
510
|
keyword: "",
|
511
511
|
status: 0
|
512
|
-
},
|
512
|
+
}, h = [{
|
513
513
|
label: a("base.module"),
|
514
514
|
prop: "module",
|
515
515
|
width: 120
|
@@ -533,7 +533,7 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
533
533
|
props: {
|
534
534
|
activeValue: 1,
|
535
535
|
inactiveValue: 2,
|
536
|
-
api:
|
536
|
+
api: ie.urls[xe],
|
537
537
|
refresh: !0
|
538
538
|
}
|
539
539
|
}, {
|
@@ -554,109 +554,109 @@ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__
|
|
554
554
|
width: 80,
|
555
555
|
align: "center",
|
556
556
|
render: ({
|
557
|
-
row:
|
558
|
-
}) => l(
|
559
|
-
onModify: () =>
|
560
|
-
id:
|
557
|
+
row: u
|
558
|
+
}) => l(X, {
|
559
|
+
onModify: () => y({
|
560
|
+
id: u.id
|
561
561
|
})
|
562
562
|
}, null)
|
563
563
|
}], {
|
564
|
-
requesting:
|
565
|
-
} = F(
|
566
|
-
tableRef:
|
567
|
-
formModalRef:
|
568
|
-
keyword:
|
569
|
-
search:
|
570
|
-
reset:
|
564
|
+
requesting: g
|
565
|
+
} = F(ie), {
|
566
|
+
tableRef: V,
|
567
|
+
formModalRef: f,
|
568
|
+
keyword: i,
|
569
|
+
search: p,
|
570
|
+
reset: m,
|
571
571
|
openFormModal: n,
|
572
|
-
editFormModal:
|
573
|
-
} =
|
574
|
-
return (
|
575
|
-
const
|
576
|
-
return
|
572
|
+
editFormModal: y
|
573
|
+
} = $(x);
|
574
|
+
return (u, c) => {
|
575
|
+
const k = s("el-input"), v = s("el-radio-button"), A = s("el-radio-group"), _ = s("el-space"), o = s("el-page-header"), d = s("el-card");
|
576
|
+
return D(), T(d, {
|
577
577
|
class: "basic-card flex-full",
|
578
578
|
"body-class": "flex-1"
|
579
579
|
}, {
|
580
|
-
header:
|
580
|
+
header: t(() => [l(o, {
|
581
581
|
class: "basic-header"
|
582
582
|
}, {
|
583
|
-
title:
|
584
|
-
loading: e(
|
585
|
-
onRefresh: e(
|
586
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
583
|
+
title: t(() => [l(e(B), {
|
584
|
+
loading: e(g),
|
585
|
+
onRefresh: e(m)
|
586
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(I), {
|
587
587
|
onOpen: e(n)
|
588
588
|
}, null, 8, ["onOpen"])]),
|
589
|
-
content:
|
589
|
+
content: t(() => [l(_, {
|
590
590
|
class: "search-bar"
|
591
591
|
}, {
|
592
|
-
default:
|
592
|
+
default: t(() => [l(k, {
|
593
593
|
class: "basic-search-input",
|
594
|
-
modelValue: e(
|
595
|
-
"onUpdate:modelValue":
|
594
|
+
modelValue: e(i).keyword,
|
595
|
+
"onUpdate:modelValue": c[0] || (c[0] = (r) => e(i).keyword = r),
|
596
596
|
placeholder: e(a)("base.placeholder.keyword"),
|
597
597
|
clearable: "",
|
598
|
-
onKeyup:
|
599
|
-
onClear:
|
600
|
-
}, null, 8, ["modelValue", "placeholder"]), l(
|
601
|
-
modelValue: e(
|
602
|
-
"onUpdate:modelValue":
|
603
|
-
onChange:
|
598
|
+
onKeyup: c[1] || (c[1] = me((r) => e(p)(), ["enter"])),
|
599
|
+
onClear: c[2] || (c[2] = (r) => e(p)())
|
600
|
+
}, null, 8, ["modelValue", "placeholder"]), l(A, {
|
601
|
+
modelValue: e(i).status,
|
602
|
+
"onUpdate:modelValue": c[3] || (c[3] = (r) => e(i).status = r),
|
603
|
+
onChange: c[4] || (c[4] = (r) => e(p)())
|
604
604
|
}, {
|
605
|
-
default:
|
605
|
+
default: t(() => [(D(), G(K, null, re([0, 1, 2], (r) => l(v, {
|
606
606
|
key: r,
|
607
607
|
label: e(a)(`base.DISABLE_ENABLE.${r}`),
|
608
608
|
value: r
|
609
609
|
}, null, 8, ["label", "value"])), 64))]),
|
610
610
|
_: 1
|
611
|
-
}, 8, ["modelValue"]), l(e(
|
612
|
-
disabled: e(
|
613
|
-
onSearch:
|
611
|
+
}, 8, ["modelValue"]), l(e(Z), {
|
612
|
+
disabled: e(g),
|
613
|
+
onSearch: c[5] || (c[5] = (r) => e(p)())
|
614
614
|
}, null, 8, ["disabled"])]),
|
615
615
|
_: 1
|
616
616
|
})]),
|
617
617
|
_: 1
|
618
618
|
})]),
|
619
|
-
default:
|
619
|
+
default: t(() => [l(e(se), {
|
620
620
|
ref_key: "tableRef",
|
621
|
-
ref:
|
621
|
+
ref: V,
|
622
622
|
size: "small",
|
623
|
-
columns:
|
624
|
-
url: e(
|
625
|
-
"search-param": e(
|
623
|
+
columns: h,
|
624
|
+
url: e(ie).urls[e(ce)],
|
625
|
+
"search-param": e(i),
|
626
626
|
autoSearch: ""
|
627
|
-
}, null, 8, ["url", "search-param"]), l(
|
627
|
+
}, null, 8, ["url", "search-param"]), l(Ye, {
|
628
628
|
ref_key: "formModalRef",
|
629
|
-
ref:
|
630
|
-
onRefresh: e(
|
629
|
+
ref: f,
|
630
|
+
onRefresh: e(m)
|
631
631
|
}, null, 8, ["onRefresh"])]),
|
632
632
|
_: 1
|
633
633
|
});
|
634
634
|
};
|
635
635
|
}
|
636
|
-
}),
|
636
|
+
}), Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
637
637
|
__proto__: null,
|
638
|
-
default:
|
639
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
638
|
+
default: He
|
639
|
+
}, Symbol.toStringTag, { value: "Module" })), ge = {
|
640
640
|
tops: "tops",
|
641
641
|
rules: "rules"
|
642
|
-
},
|
642
|
+
}, P = we.createAutoApi("menu", ge, "id", Object.keys(ge), [], ["TOP_MENU_LIST", "MENU_LIST"]), Re = W("rule", {}, "key");
|
643
643
|
/*! Element Plus Icons Vue v2.3.1 */
|
644
|
-
var
|
644
|
+
var Qe = /* @__PURE__ */ q({
|
645
645
|
name: "Key",
|
646
646
|
__name: "key",
|
647
|
-
setup(
|
648
|
-
return (
|
647
|
+
setup(w) {
|
648
|
+
return (x, h) => (D(), G("svg", {
|
649
649
|
xmlns: "http://www.w3.org/2000/svg",
|
650
650
|
viewBox: "0 0 1024 1024"
|
651
651
|
}, [
|
652
|
-
|
652
|
+
N("path", {
|
653
653
|
fill: "currentColor",
|
654
654
|
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
655
|
})
|
656
656
|
]));
|
657
657
|
}
|
658
|
-
}),
|
659
|
-
const
|
658
|
+
}), Je = Qe;
|
659
|
+
const Xe = /* @__PURE__ */ q({
|
660
660
|
__name: "TopMenuSelect",
|
661
661
|
props: {
|
662
662
|
modelValue: {
|
@@ -669,50 +669,50 @@ const Ke = /* @__PURE__ */ D({
|
|
669
669
|
}
|
670
670
|
},
|
671
671
|
emits: ["update:modelValue", "change"],
|
672
|
-
setup(
|
673
|
-
emit:
|
672
|
+
setup(w, {
|
673
|
+
emit: x
|
674
674
|
}) {
|
675
|
-
const
|
676
|
-
requesting:
|
677
|
-
} = F(
|
678
|
-
value:
|
679
|
-
options:
|
680
|
-
change:
|
681
|
-
refresh:
|
675
|
+
const h = x, g = w, {
|
676
|
+
requesting: V
|
677
|
+
} = F(P), {
|
678
|
+
value: f,
|
679
|
+
options: i,
|
680
|
+
change: p,
|
681
|
+
refresh: m,
|
682
682
|
filterOptions: n
|
683
|
-
} =
|
683
|
+
} = te(oe(g, "modelValue"), h, {
|
684
684
|
key: "TOP_MENU_LIST",
|
685
|
-
api:
|
686
|
-
url:
|
685
|
+
api: P,
|
686
|
+
url: P.urls.tops,
|
687
687
|
isArray: !0
|
688
688
|
});
|
689
|
-
return (
|
690
|
-
const
|
691
|
-
return
|
689
|
+
return (y, u) => {
|
690
|
+
const c = s("el-select-v2");
|
691
|
+
return D(), T(c, {
|
692
692
|
class: "w-full",
|
693
|
-
modelValue: e(
|
694
|
-
"onUpdate:modelValue":
|
695
|
-
options: e(
|
696
|
-
multiple:
|
697
|
-
disabled: e(
|
693
|
+
modelValue: e(f),
|
694
|
+
"onUpdate:modelValue": u[1] || (u[1] = (k) => z(f) ? f.value = k : null),
|
695
|
+
options: e(i),
|
696
|
+
multiple: w.multiple,
|
697
|
+
disabled: e(V),
|
698
698
|
placeholder: e(a)("base.placeholder.select"),
|
699
699
|
filterable: "",
|
700
700
|
filterOptions: e(n),
|
701
|
-
onChange: e(
|
701
|
+
onChange: e(p)
|
702
702
|
}, {
|
703
|
-
prefix:
|
704
|
-
loading: e(
|
705
|
-
onRefresh:
|
703
|
+
prefix: t(() => [l(e(ue), {
|
704
|
+
loading: e(V),
|
705
|
+
onRefresh: u[0] || (u[0] = (k) => e(m)(!0))
|
706
706
|
}, null, 8, ["loading"])]),
|
707
707
|
_: 1
|
708
708
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
709
709
|
};
|
710
710
|
}
|
711
|
-
}),
|
711
|
+
}), Ze = /* @__PURE__ */ q({
|
712
712
|
__name: "MenuFormModal",
|
713
713
|
emits: ["refresh"],
|
714
|
-
setup(
|
715
|
-
const
|
714
|
+
setup(w, { expose: x, emit: h }) {
|
715
|
+
const g = h, V = {
|
716
716
|
id: 0,
|
717
717
|
menu_id: 0,
|
718
718
|
module: "",
|
@@ -733,7 +733,7 @@ const Ke = /* @__PURE__ */ D({
|
|
733
733
|
keep_alive: !1,
|
734
734
|
link: !1
|
735
735
|
}
|
736
|
-
},
|
736
|
+
}, f = {
|
737
737
|
sort: [
|
738
738
|
{
|
739
739
|
required: !0,
|
@@ -777,47 +777,47 @@ const Ke = /* @__PURE__ */ D({
|
|
777
777
|
trigger: "blur"
|
778
778
|
}
|
779
779
|
]
|
780
|
-
}, { modal:
|
781
|
-
return
|
782
|
-
open:
|
783
|
-
modify:
|
784
|
-
}), (
|
785
|
-
const
|
786
|
-
return
|
787
|
-
modelValue: e(
|
788
|
-
"onUpdate:modelValue":
|
789
|
-
title: e(
|
780
|
+
}, { modal: i, title: p, form: m, formData: n, requesting: y, executing: u, open: c, modify: k, submit: v, closed: A } = Y(g, V, P);
|
781
|
+
return x({
|
782
|
+
open: c,
|
783
|
+
modify: k
|
784
|
+
}), (_, o) => {
|
785
|
+
const d = s("el-form-item"), r = s("el-col"), R = s("el-input-number"), b = s("el-row"), S = s("el-input"), M = s("el-switch"), L = s("el-form");
|
786
|
+
return D(), T(e(H), {
|
787
|
+
modelValue: e(i),
|
788
|
+
"onUpdate:modelValue": o[17] || (o[17] = (U) => z(i) ? i.value = U : null),
|
789
|
+
title: e(p)(),
|
790
790
|
width: "1000px",
|
791
|
-
executing: e(
|
792
|
-
onClosed: e(
|
791
|
+
executing: e(u),
|
792
|
+
onClosed: e(A),
|
793
793
|
onSubmit: e(v)
|
794
794
|
}, {
|
795
|
-
default:
|
796
|
-
l(
|
795
|
+
default: t(() => [
|
796
|
+
l(L, {
|
797
797
|
ref_key: "form",
|
798
|
-
ref:
|
798
|
+
ref: m,
|
799
799
|
model: e(n),
|
800
800
|
"label-width": "auto",
|
801
|
-
rules:
|
802
|
-
disabled: e(
|
801
|
+
rules: f,
|
802
|
+
disabled: e(y) || e(u)
|
803
803
|
}, {
|
804
|
-
default:
|
805
|
-
l(
|
806
|
-
default:
|
804
|
+
default: t(() => [
|
805
|
+
l(b, { gutter: 20 }, {
|
806
|
+
default: t(() => [
|
807
807
|
l(r, { span: 12 }, {
|
808
|
-
default:
|
809
|
-
l(
|
810
|
-
default:
|
808
|
+
default: t(() => [
|
809
|
+
l(b, { gutter: 10 }, {
|
810
|
+
default: t(() => [
|
811
811
|
l(r, { span: 12 }, {
|
812
|
-
default:
|
813
|
-
l(
|
812
|
+
default: t(() => [
|
813
|
+
l(d, {
|
814
814
|
label: e(a)("base.parent"),
|
815
815
|
prop: "menu_id"
|
816
816
|
}, {
|
817
|
-
default:
|
818
|
-
l(
|
817
|
+
default: t(() => [
|
818
|
+
l(Xe, {
|
819
819
|
modelValue: e(n).menu_id,
|
820
|
-
"onUpdate:modelValue":
|
820
|
+
"onUpdate:modelValue": o[0] || (o[0] = (U) => e(n).menu_id = U)
|
821
821
|
}, null, 8, ["modelValue"])
|
822
822
|
]),
|
823
823
|
_: 1
|
@@ -826,16 +826,16 @@ const Ke = /* @__PURE__ */ D({
|
|
826
826
|
_: 1
|
827
827
|
}),
|
828
828
|
l(r, { span: 12 }, {
|
829
|
-
default:
|
830
|
-
l(
|
829
|
+
default: t(() => [
|
830
|
+
l(d, {
|
831
831
|
label: e(a)("base.sort"),
|
832
832
|
prop: "sort"
|
833
833
|
}, {
|
834
|
-
default:
|
835
|
-
l(
|
834
|
+
default: t(() => [
|
835
|
+
l(R, {
|
836
836
|
class: "w-full",
|
837
837
|
modelValue: e(n).sort,
|
838
|
-
"onUpdate:modelValue":
|
838
|
+
"onUpdate:modelValue": o[1] || (o[1] = (U) => e(n).sort = U),
|
839
839
|
min: 0,
|
840
840
|
placeholder: e(a)("base.placeholder.input")
|
841
841
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -848,79 +848,79 @@ const Ke = /* @__PURE__ */ D({
|
|
848
848
|
]),
|
849
849
|
_: 1
|
850
850
|
}),
|
851
|
-
l(
|
851
|
+
l(d, {
|
852
852
|
label: e(a)("menu.module"),
|
853
853
|
prop: "module"
|
854
854
|
}, {
|
855
|
-
default:
|
855
|
+
default: t(() => [
|
856
856
|
l(S, {
|
857
857
|
modelValue: e(n).module,
|
858
|
-
"onUpdate:modelValue":
|
858
|
+
"onUpdate:modelValue": o[2] || (o[2] = (U) => e(n).module = U),
|
859
859
|
placeholder: e(a)("base.placeholder.input")
|
860
860
|
}, null, 8, ["modelValue", "placeholder"])
|
861
861
|
]),
|
862
862
|
_: 1
|
863
863
|
}, 8, ["label"]),
|
864
|
-
l(
|
864
|
+
l(d, {
|
865
865
|
label: e(a)("base.name"),
|
866
866
|
prop: "name"
|
867
867
|
}, {
|
868
|
-
default:
|
868
|
+
default: t(() => [
|
869
869
|
l(S, {
|
870
870
|
modelValue: e(n).name,
|
871
|
-
"onUpdate:modelValue":
|
871
|
+
"onUpdate:modelValue": o[3] || (o[3] = (U) => e(n).name = U),
|
872
872
|
placeholder: e(a)("base.placeholder.input")
|
873
873
|
}, null, 8, ["modelValue", "placeholder"])
|
874
874
|
]),
|
875
875
|
_: 1
|
876
876
|
}, 8, ["label"]),
|
877
|
-
l(
|
877
|
+
l(d, {
|
878
878
|
label: e(a)("base.en_name"),
|
879
879
|
prop: "en_name"
|
880
880
|
}, {
|
881
|
-
default:
|
881
|
+
default: t(() => [
|
882
882
|
l(S, {
|
883
883
|
modelValue: e(n).en_name,
|
884
|
-
"onUpdate:modelValue":
|
884
|
+
"onUpdate:modelValue": o[4] || (o[4] = (U) => e(n).en_name = U),
|
885
885
|
placeholder: e(a)("base.placeholder.input")
|
886
886
|
}, null, 8, ["modelValue", "placeholder"])
|
887
887
|
]),
|
888
888
|
_: 1
|
889
889
|
}, 8, ["label"]),
|
890
|
-
l(
|
890
|
+
l(d, {
|
891
891
|
label: e(a)("menu.component"),
|
892
892
|
prop: "component"
|
893
893
|
}, {
|
894
|
-
default:
|
894
|
+
default: t(() => [
|
895
895
|
l(S, {
|
896
896
|
modelValue: e(n).component,
|
897
|
-
"onUpdate:modelValue":
|
897
|
+
"onUpdate:modelValue": o[5] || (o[5] = (U) => e(n).component = U),
|
898
898
|
placeholder: e(a)("base.placeholder.input")
|
899
899
|
}, null, 8, ["modelValue", "placeholder"])
|
900
900
|
]),
|
901
901
|
_: 1
|
902
902
|
}, 8, ["label"]),
|
903
|
-
l(
|
903
|
+
l(d, {
|
904
904
|
label: e(a)("base.url"),
|
905
905
|
prop: "url"
|
906
906
|
}, {
|
907
|
-
default:
|
907
|
+
default: t(() => [
|
908
908
|
l(S, {
|
909
909
|
modelValue: e(n).url,
|
910
|
-
"onUpdate:modelValue":
|
910
|
+
"onUpdate:modelValue": o[6] || (o[6] = (U) => e(n).url = U),
|
911
911
|
placeholder: e(a)("base.placeholder.input")
|
912
912
|
}, null, 8, ["modelValue", "placeholder"])
|
913
913
|
]),
|
914
914
|
_: 1
|
915
915
|
}, 8, ["label"]),
|
916
|
-
l(
|
916
|
+
l(d, {
|
917
917
|
label: e(a)("base.remark"),
|
918
918
|
prop: "remark"
|
919
919
|
}, {
|
920
|
-
default:
|
920
|
+
default: t(() => [
|
921
921
|
l(S, {
|
922
922
|
modelValue: e(n).remark,
|
923
|
-
"onUpdate:modelValue":
|
923
|
+
"onUpdate:modelValue": o[7] || (o[7] = (U) => e(n).remark = U),
|
924
924
|
placeholder: e(a)("base.placeholder.input")
|
925
925
|
}, null, 8, ["modelValue", "placeholder"])
|
926
926
|
]),
|
@@ -930,23 +930,23 @@ const Ke = /* @__PURE__ */ D({
|
|
930
930
|
_: 1
|
931
931
|
}),
|
932
932
|
l(r, { span: 12 }, {
|
933
|
-
default:
|
934
|
-
l(
|
933
|
+
default: t(() => [
|
934
|
+
l(d, {
|
935
935
|
label: e(a)("base.icon"),
|
936
936
|
prop: "icon"
|
937
937
|
}, {
|
938
|
-
default:
|
938
|
+
default: t(() => [
|
939
939
|
l(S, {
|
940
940
|
modelValue: e(n).icon,
|
941
|
-
"onUpdate:modelValue":
|
941
|
+
"onUpdate:modelValue": o[8] || (o[8] = (U) => e(n).icon = U),
|
942
942
|
placeholder: e(a)("base.placeholder.input"),
|
943
|
-
onInput:
|
944
|
-
e(n).meta.icon =
|
943
|
+
onInput: o[9] || (o[9] = (U) => {
|
944
|
+
e(n).meta.icon = U;
|
945
945
|
})
|
946
946
|
}, {
|
947
|
-
prepend:
|
948
|
-
|
949
|
-
class:
|
947
|
+
prepend: t(() => [
|
948
|
+
N("span", {
|
949
|
+
class: ve("iconfont " + e(n).icon)
|
950
950
|
}, null, 2)
|
951
951
|
]),
|
952
952
|
_: 1
|
@@ -954,44 +954,44 @@ const Ke = /* @__PURE__ */ D({
|
|
954
954
|
]),
|
955
955
|
_: 1
|
956
956
|
}, 8, ["label"]),
|
957
|
-
l(
|
957
|
+
l(d, {
|
958
958
|
label: e(a)("base.title"),
|
959
959
|
prop: "meta.title"
|
960
960
|
}, {
|
961
|
-
default:
|
961
|
+
default: t(() => [
|
962
962
|
l(S, {
|
963
963
|
modelValue: e(n).meta.title,
|
964
|
-
"onUpdate:modelValue":
|
964
|
+
"onUpdate:modelValue": o[10] || (o[10] = (U) => e(n).meta.title = U),
|
965
965
|
placeholder: e(a)("base.placeholder.input")
|
966
966
|
}, null, 8, ["modelValue", "placeholder"])
|
967
967
|
]),
|
968
968
|
_: 1
|
969
969
|
}, 8, ["label"]),
|
970
|
-
l(
|
970
|
+
l(d, {
|
971
971
|
label: e(a)("menu.active"),
|
972
972
|
prop: "meta.active"
|
973
973
|
}, {
|
974
|
-
default:
|
974
|
+
default: t(() => [
|
975
975
|
l(S, {
|
976
976
|
modelValue: e(n).meta.active,
|
977
|
-
"onUpdate:modelValue":
|
977
|
+
"onUpdate:modelValue": o[11] || (o[11] = (U) => e(n).meta.active = U),
|
978
978
|
placeholder: e(a)("base.placeholder.input")
|
979
979
|
}, null, 8, ["modelValue", "placeholder"])
|
980
980
|
]),
|
981
981
|
_: 1
|
982
982
|
}, 8, ["label"]),
|
983
|
-
l(
|
984
|
-
default:
|
983
|
+
l(b, null, {
|
984
|
+
default: t(() => [
|
985
985
|
l(r, { span: 12 }, {
|
986
|
-
default:
|
987
|
-
l(
|
986
|
+
default: t(() => [
|
987
|
+
l(d, {
|
988
988
|
label: e(a)("menu.link"),
|
989
989
|
prop: "meta.link"
|
990
990
|
}, {
|
991
|
-
default:
|
992
|
-
l(
|
991
|
+
default: t(() => [
|
992
|
+
l(M, {
|
993
993
|
modelValue: e(n).meta.link,
|
994
|
-
"onUpdate:modelValue":
|
994
|
+
"onUpdate:modelValue": o[12] || (o[12] = (U) => e(n).meta.link = U)
|
995
995
|
}, null, 8, ["modelValue"])
|
996
996
|
]),
|
997
997
|
_: 1
|
@@ -1000,15 +1000,15 @@ const Ke = /* @__PURE__ */ D({
|
|
1000
1000
|
_: 1
|
1001
1001
|
}),
|
1002
1002
|
l(r, { span: 12 }, {
|
1003
|
-
default:
|
1004
|
-
l(
|
1003
|
+
default: t(() => [
|
1004
|
+
l(d, {
|
1005
1005
|
label: e(a)("menu.keep_alive"),
|
1006
1006
|
prop: "meta.keep_alive"
|
1007
1007
|
}, {
|
1008
|
-
default:
|
1009
|
-
l(
|
1008
|
+
default: t(() => [
|
1009
|
+
l(M, {
|
1010
1010
|
modelValue: e(n).meta.keep_alive,
|
1011
|
-
"onUpdate:modelValue":
|
1011
|
+
"onUpdate:modelValue": o[13] || (o[13] = (U) => e(n).meta.keep_alive = U)
|
1012
1012
|
}, null, 8, ["modelValue"])
|
1013
1013
|
]),
|
1014
1014
|
_: 1
|
@@ -1017,15 +1017,15 @@ const Ke = /* @__PURE__ */ D({
|
|
1017
1017
|
_: 1
|
1018
1018
|
}),
|
1019
1019
|
l(r, { span: 12 }, {
|
1020
|
-
default:
|
1021
|
-
l(
|
1020
|
+
default: t(() => [
|
1021
|
+
l(d, {
|
1022
1022
|
label: e(a)("menu.hide"),
|
1023
1023
|
prop: "meta.hide"
|
1024
1024
|
}, {
|
1025
|
-
default:
|
1026
|
-
l(
|
1025
|
+
default: t(() => [
|
1026
|
+
l(M, {
|
1027
1027
|
modelValue: e(n).meta.hide,
|
1028
|
-
"onUpdate:modelValue":
|
1028
|
+
"onUpdate:modelValue": o[14] || (o[14] = (U) => e(n).meta.hide = U)
|
1029
1029
|
}, null, 8, ["modelValue"])
|
1030
1030
|
]),
|
1031
1031
|
_: 1
|
@@ -1034,15 +1034,15 @@ const Ke = /* @__PURE__ */ D({
|
|
1034
1034
|
_: 1
|
1035
1035
|
}),
|
1036
1036
|
l(r, { span: 12 }, {
|
1037
|
-
default:
|
1038
|
-
l(
|
1037
|
+
default: t(() => [
|
1038
|
+
l(d, {
|
1039
1039
|
label: e(a)("menu.full"),
|
1040
1040
|
prop: "meta.full"
|
1041
1041
|
}, {
|
1042
|
-
default:
|
1043
|
-
l(
|
1042
|
+
default: t(() => [
|
1043
|
+
l(M, {
|
1044
1044
|
modelValue: e(n).meta.full,
|
1045
|
-
"onUpdate:modelValue":
|
1045
|
+
"onUpdate:modelValue": o[15] || (o[15] = (U) => e(n).meta.full = U)
|
1046
1046
|
}, null, 8, ["modelValue"])
|
1047
1047
|
]),
|
1048
1048
|
_: 1
|
@@ -1051,15 +1051,15 @@ const Ke = /* @__PURE__ */ D({
|
|
1051
1051
|
_: 1
|
1052
1052
|
}),
|
1053
1053
|
l(r, { span: 12 }, {
|
1054
|
-
default:
|
1055
|
-
l(
|
1054
|
+
default: t(() => [
|
1055
|
+
l(d, {
|
1056
1056
|
label: e(a)("menu.affix"),
|
1057
1057
|
prop: "meta.affix"
|
1058
1058
|
}, {
|
1059
|
-
default:
|
1060
|
-
l(
|
1059
|
+
default: t(() => [
|
1060
|
+
l(M, {
|
1061
1061
|
modelValue: e(n).meta.affix,
|
1062
|
-
"onUpdate:modelValue":
|
1062
|
+
"onUpdate:modelValue": o[16] || (o[16] = (U) => e(n).meta.affix = U)
|
1063
1063
|
}, null, 8, ["modelValue"])
|
1064
1064
|
]),
|
1065
1065
|
_: 1
|
@@ -1084,7 +1084,7 @@ const Ke = /* @__PURE__ */ D({
|
|
1084
1084
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
1085
1085
|
};
|
1086
1086
|
}
|
1087
|
-
}),
|
1087
|
+
}), el = /* @__PURE__ */ q({
|
1088
1088
|
__name: "MenuSelect",
|
1089
1089
|
props: {
|
1090
1090
|
modelValue: {
|
@@ -1097,57 +1097,57 @@ const Ke = /* @__PURE__ */ D({
|
|
1097
1097
|
}
|
1098
1098
|
},
|
1099
1099
|
emits: ["update:modelValue", "change"],
|
1100
|
-
setup(
|
1101
|
-
emit:
|
1100
|
+
setup(w, {
|
1101
|
+
emit: x
|
1102
1102
|
}) {
|
1103
|
-
const
|
1104
|
-
requesting:
|
1105
|
-
} = F(
|
1106
|
-
value:
|
1107
|
-
options:
|
1108
|
-
change:
|
1109
|
-
refresh:
|
1103
|
+
const h = x, g = w, {
|
1104
|
+
requesting: V
|
1105
|
+
} = F(P), {
|
1106
|
+
value: f,
|
1107
|
+
options: i,
|
1108
|
+
change: p,
|
1109
|
+
refresh: m,
|
1110
1110
|
filterOptions: n
|
1111
|
-
} =
|
1111
|
+
} = te(oe(g, "modelValue"), h, {
|
1112
1112
|
key: "MENU_LIST",
|
1113
|
-
api:
|
1113
|
+
api: P,
|
1114
1114
|
isArray: !0
|
1115
1115
|
});
|
1116
|
-
return (
|
1117
|
-
const
|
1118
|
-
return
|
1116
|
+
return (y, u) => {
|
1117
|
+
const c = s("el-space"), k = s("el-select-v2");
|
1118
|
+
return D(), T(k, {
|
1119
1119
|
class: "w-full",
|
1120
|
-
modelValue: e(
|
1121
|
-
"onUpdate:modelValue":
|
1122
|
-
options: e(
|
1123
|
-
multiple:
|
1124
|
-
disabled: e(
|
1120
|
+
modelValue: e(f),
|
1121
|
+
"onUpdate:modelValue": u[1] || (u[1] = (v) => z(f) ? f.value = v : null),
|
1122
|
+
options: e(i),
|
1123
|
+
multiple: w.multiple,
|
1124
|
+
disabled: e(V),
|
1125
1125
|
placeholder: e(a)("base.placeholder.select"),
|
1126
1126
|
filterable: "",
|
1127
1127
|
filterOptions: e(n),
|
1128
|
-
onChange: e(
|
1128
|
+
onChange: e(p)
|
1129
1129
|
}, {
|
1130
|
-
prefix:
|
1131
|
-
loading: e(
|
1132
|
-
onRefresh:
|
1130
|
+
prefix: t(() => [l(e(ue), {
|
1131
|
+
loading: e(V),
|
1132
|
+
onRefresh: u[0] || (u[0] = (v) => e(m)(!0))
|
1133
1133
|
}, null, 8, ["loading"])]),
|
1134
|
-
default:
|
1134
|
+
default: t(({
|
1135
1135
|
item: v
|
1136
|
-
}) => [l(
|
1137
|
-
default:
|
1138
|
-
class:
|
1139
|
-
}, null, 2),
|
1136
|
+
}) => [l(c, null, {
|
1137
|
+
default: t(() => [N("i", {
|
1138
|
+
class: ve(`icon iconfont ${v.icon}`)
|
1139
|
+
}, null, 2), N("span", null, Q(v.translate), 1)]),
|
1140
1140
|
_: 2
|
1141
1141
|
}, 1024)]),
|
1142
1142
|
_: 1
|
1143
1143
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
1144
1144
|
};
|
1145
1145
|
}
|
1146
|
-
}),
|
1146
|
+
}), ll = /* @__PURE__ */ q({
|
1147
1147
|
__name: "MenuRuleFormModal",
|
1148
1148
|
emits: ["refresh"],
|
1149
|
-
setup(
|
1150
|
-
const
|
1149
|
+
setup(w, { expose: x, emit: h }) {
|
1150
|
+
const g = h, V = {
|
1151
1151
|
key: "",
|
1152
1152
|
menu_id: 0,
|
1153
1153
|
sort: 0,
|
@@ -1155,7 +1155,7 @@ const Ke = /* @__PURE__ */ D({
|
|
1155
1155
|
en_name: "",
|
1156
1156
|
urls: "",
|
1157
1157
|
remark: ""
|
1158
|
-
},
|
1158
|
+
}, f = {
|
1159
1159
|
menu_id: [
|
1160
1160
|
{
|
1161
1161
|
required: !0,
|
@@ -1193,96 +1193,96 @@ const Ke = /* @__PURE__ */ D({
|
|
1193
1193
|
trigger: "blur"
|
1194
1194
|
}
|
1195
1195
|
]
|
1196
|
-
}, { modal:
|
1197
|
-
return
|
1198
|
-
open:
|
1199
|
-
modify:
|
1200
|
-
}), (
|
1201
|
-
const
|
1202
|
-
return
|
1203
|
-
modelValue: e(
|
1204
|
-
"onUpdate:modelValue":
|
1205
|
-
title: e(
|
1196
|
+
}, { modal: i, title: p, form: m, formData: n, requesting: y, executing: u, open: c, modify: k, submit: v, closed: A } = Y(g, V, Re);
|
1197
|
+
return x({
|
1198
|
+
open: c,
|
1199
|
+
modify: k
|
1200
|
+
}), (_, o) => {
|
1201
|
+
const d = s("el-form-item"), r = s("el-input-number"), R = s("el-input"), b = s("el-col"), S = s("el-row"), M = s("el-form");
|
1202
|
+
return D(), T(e(H), {
|
1203
|
+
modelValue: e(i),
|
1204
|
+
"onUpdate:modelValue": o[6] || (o[6] = (L) => z(i) ? i.value = L : null),
|
1205
|
+
title: e(p)("menu.rules"),
|
1206
1206
|
width: "1000px",
|
1207
|
-
executing: e(
|
1208
|
-
onClosed: e(
|
1207
|
+
executing: e(u),
|
1208
|
+
onClosed: e(A),
|
1209
1209
|
onSubmit: e(v)
|
1210
1210
|
}, {
|
1211
|
-
default:
|
1212
|
-
l(
|
1211
|
+
default: t(() => [
|
1212
|
+
l(M, {
|
1213
1213
|
ref_key: "form",
|
1214
|
-
ref:
|
1214
|
+
ref: m,
|
1215
1215
|
model: e(n),
|
1216
1216
|
"label-width": "auto",
|
1217
|
-
rules:
|
1218
|
-
disabled: e(
|
1217
|
+
rules: f,
|
1218
|
+
disabled: e(y) || e(u)
|
1219
1219
|
}, {
|
1220
|
-
default:
|
1220
|
+
default: t(() => [
|
1221
1221
|
l(S, { gutter: 20 }, {
|
1222
|
-
default:
|
1223
|
-
l(
|
1224
|
-
default:
|
1225
|
-
l(
|
1222
|
+
default: t(() => [
|
1223
|
+
l(b, { span: 10 }, {
|
1224
|
+
default: t(() => [
|
1225
|
+
l(d, {
|
1226
1226
|
label: e(a)("menu.Menu"),
|
1227
1227
|
prop: "menu_id"
|
1228
1228
|
}, {
|
1229
|
-
default:
|
1230
|
-
l(
|
1229
|
+
default: t(() => [
|
1230
|
+
l(el, {
|
1231
1231
|
modelValue: e(n).menu_id,
|
1232
|
-
"onUpdate:modelValue":
|
1232
|
+
"onUpdate:modelValue": o[0] || (o[0] = (L) => e(n).menu_id = L)
|
1233
1233
|
}, null, 8, ["modelValue"])
|
1234
1234
|
]),
|
1235
1235
|
_: 1
|
1236
1236
|
}, 8, ["label"]),
|
1237
|
-
l(
|
1237
|
+
l(d, {
|
1238
1238
|
label: e(a)("base.sort"),
|
1239
1239
|
prop: "sort"
|
1240
1240
|
}, {
|
1241
|
-
default:
|
1241
|
+
default: t(() => [
|
1242
1242
|
l(r, {
|
1243
1243
|
class: "w-full",
|
1244
1244
|
modelValue: e(n).sort,
|
1245
|
-
"onUpdate:modelValue":
|
1245
|
+
"onUpdate:modelValue": o[1] || (o[1] = (L) => e(n).sort = L),
|
1246
1246
|
min: 0,
|
1247
1247
|
placeholder: e(a)("base.placeholder.input")
|
1248
1248
|
}, null, 8, ["modelValue", "placeholder"])
|
1249
1249
|
]),
|
1250
1250
|
_: 1
|
1251
1251
|
}, 8, ["label"]),
|
1252
|
-
l(
|
1252
|
+
l(d, {
|
1253
1253
|
label: e(a)("base.name"),
|
1254
1254
|
prop: "name"
|
1255
1255
|
}, {
|
1256
|
-
default:
|
1257
|
-
l(
|
1256
|
+
default: t(() => [
|
1257
|
+
l(R, {
|
1258
1258
|
modelValue: e(n).name,
|
1259
|
-
"onUpdate:modelValue":
|
1259
|
+
"onUpdate:modelValue": o[2] || (o[2] = (L) => e(n).name = L),
|
1260
1260
|
placeholder: e(a)("base.placeholder.input")
|
1261
1261
|
}, null, 8, ["modelValue", "placeholder"])
|
1262
1262
|
]),
|
1263
1263
|
_: 1
|
1264
1264
|
}, 8, ["label"]),
|
1265
|
-
l(
|
1265
|
+
l(d, {
|
1266
1266
|
label: e(a)("base.en_name"),
|
1267
1267
|
prop: "en_name"
|
1268
1268
|
}, {
|
1269
|
-
default:
|
1270
|
-
l(
|
1269
|
+
default: t(() => [
|
1270
|
+
l(R, {
|
1271
1271
|
modelValue: e(n).en_name,
|
1272
|
-
"onUpdate:modelValue":
|
1272
|
+
"onUpdate:modelValue": o[3] || (o[3] = (L) => e(n).en_name = L),
|
1273
1273
|
placeholder: e(a)("base.placeholder.input")
|
1274
1274
|
}, null, 8, ["modelValue", "placeholder"])
|
1275
1275
|
]),
|
1276
1276
|
_: 1
|
1277
1277
|
}, 8, ["label"]),
|
1278
|
-
l(
|
1278
|
+
l(d, {
|
1279
1279
|
label: e(a)("base.remark"),
|
1280
1280
|
prop: "remark"
|
1281
1281
|
}, {
|
1282
|
-
default:
|
1283
|
-
l(
|
1282
|
+
default: t(() => [
|
1283
|
+
l(R, {
|
1284
1284
|
modelValue: e(n).remark,
|
1285
|
-
"onUpdate:modelValue":
|
1285
|
+
"onUpdate:modelValue": o[4] || (o[4] = (L) => e(n).remark = L),
|
1286
1286
|
placeholder: e(a)("base.placeholder.input")
|
1287
1287
|
}, null, 8, ["modelValue", "placeholder"])
|
1288
1288
|
]),
|
@@ -1291,16 +1291,16 @@ const Ke = /* @__PURE__ */ D({
|
|
1291
1291
|
]),
|
1292
1292
|
_: 1
|
1293
1293
|
}),
|
1294
|
-
l(
|
1295
|
-
default:
|
1296
|
-
l(
|
1294
|
+
l(b, { span: 14 }, {
|
1295
|
+
default: t(() => [
|
1296
|
+
l(d, {
|
1297
1297
|
label: e(a)("menu.rules"),
|
1298
1298
|
prop: "urls"
|
1299
1299
|
}, {
|
1300
|
-
default:
|
1301
|
-
l(
|
1300
|
+
default: t(() => [
|
1301
|
+
l(R, {
|
1302
1302
|
modelValue: e(n).urls,
|
1303
|
-
"onUpdate:modelValue":
|
1303
|
+
"onUpdate:modelValue": o[5] || (o[5] = (L) => e(n).urls = L),
|
1304
1304
|
type: "textarea",
|
1305
1305
|
rows: 11,
|
1306
1306
|
placeholder: e(a)("base.placeholder.input")
|
@@ -1323,16 +1323,16 @@ const Ke = /* @__PURE__ */ D({
|
|
1323
1323
|
};
|
1324
1324
|
}
|
1325
1325
|
});
|
1326
|
-
function
|
1327
|
-
return typeof
|
1326
|
+
function he(w) {
|
1327
|
+
return typeof w == "function" || Object.prototype.toString.call(w) === "[object Object]" && !De(w);
|
1328
1328
|
}
|
1329
|
-
const
|
1329
|
+
const al = /* @__PURE__ */ q({
|
1330
1330
|
__name: "index",
|
1331
|
-
setup(
|
1332
|
-
const
|
1331
|
+
setup(w) {
|
1332
|
+
const x = {
|
1333
1333
|
keyword: "",
|
1334
1334
|
status: 0
|
1335
|
-
},
|
1335
|
+
}, h = j(""), g = [
|
1336
1336
|
{
|
1337
1337
|
label: a("base.sort"),
|
1338
1338
|
prop: "sort",
|
@@ -1343,9 +1343,9 @@ const je = /* @__PURE__ */ D({
|
|
1343
1343
|
prop: "icon",
|
1344
1344
|
width: 60,
|
1345
1345
|
render: ({
|
1346
|
-
row:
|
1346
|
+
row: o
|
1347
1347
|
}) => l("span", {
|
1348
|
-
class: "iconfont " +
|
1348
|
+
class: "iconfont " + o.icon,
|
1349
1349
|
style: "font-size: 16px;"
|
1350
1350
|
}, null)
|
1351
1351
|
},
|
@@ -1359,10 +1359,10 @@ const je = /* @__PURE__ */ D({
|
|
1359
1359
|
prop: "parent",
|
1360
1360
|
width: 120,
|
1361
1361
|
render: ({
|
1362
|
-
row:
|
1362
|
+
row: o
|
1363
1363
|
}) => {
|
1364
|
-
var
|
1365
|
-
return l(
|
1364
|
+
var d;
|
1365
|
+
return l(K, null, [(d = o.menu) == null ? void 0 : d.name]);
|
1366
1366
|
}
|
1367
1367
|
},
|
1368
1368
|
{
|
@@ -1389,12 +1389,12 @@ const je = /* @__PURE__ */ D({
|
|
1389
1389
|
width: 0,
|
1390
1390
|
align: "left",
|
1391
1391
|
render: ({
|
1392
|
-
row:
|
1392
|
+
row: o
|
1393
1393
|
}) => l(s("el-space"), null, {
|
1394
1394
|
default: () => {
|
1395
|
-
var
|
1396
|
-
return [(
|
1397
|
-
visible:
|
1395
|
+
var d;
|
1396
|
+
return [(d = o.rules) == null ? void 0 : d.map((r) => l(s("el-popover"), {
|
1397
|
+
visible: h.value === r.key,
|
1398
1398
|
title: a("message.title.warning"),
|
1399
1399
|
placement: "top-end",
|
1400
1400
|
width: 220
|
@@ -1403,29 +1403,29 @@ const je = /* @__PURE__ */ D({
|
|
1403
1403
|
class: "cursor-pointer",
|
1404
1404
|
closable: !0,
|
1405
1405
|
key: r.key,
|
1406
|
-
onClick: () =>
|
1406
|
+
onClick: () => A({
|
1407
1407
|
key: r.key
|
1408
1408
|
}),
|
1409
|
-
onClose: () =>
|
1409
|
+
onClose: () => h.value = r.key
|
1410
1410
|
}, {
|
1411
1411
|
default: () => [r.translate]
|
1412
1412
|
}),
|
1413
1413
|
default: () => {
|
1414
|
-
let
|
1415
|
-
return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.delete menu.rules")}: ${
|
1414
|
+
let R, b;
|
1415
|
+
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
1416
|
style: "text-align: right; margin: 0"
|
1417
1417
|
}, [l(s("el-button"), {
|
1418
1418
|
size: "small",
|
1419
1419
|
text: !0,
|
1420
|
-
onClick: () =>
|
1421
|
-
},
|
1422
|
-
default: () => [
|
1420
|
+
onClick: () => h.value = ""
|
1421
|
+
}, he(R = a("base.cancel")) ? R : {
|
1422
|
+
default: () => [R]
|
1423
1423
|
}), l(s("el-button"), {
|
1424
1424
|
size: "small",
|
1425
1425
|
type: "danger",
|
1426
|
-
onClick: () =>
|
1427
|
-
},
|
1428
|
-
default: () => [
|
1426
|
+
onClick: () => _(r.key)
|
1427
|
+
}, he(b = a("base.confirm")) ? b : {
|
1428
|
+
default: () => [b]
|
1429
1429
|
})])]);
|
1430
1430
|
}
|
1431
1431
|
}))];
|
@@ -1440,7 +1440,7 @@ const je = /* @__PURE__ */ D({
|
|
1440
1440
|
props: {
|
1441
1441
|
activeValue: 1,
|
1442
1442
|
inactiveValue: 2,
|
1443
|
-
api:
|
1443
|
+
api: P.urls[xe],
|
1444
1444
|
refresh: !0
|
1445
1445
|
}
|
1446
1446
|
},
|
@@ -1450,198 +1450,198 @@ const je = /* @__PURE__ */ D({
|
|
1450
1450
|
width: 60,
|
1451
1451
|
align: "center",
|
1452
1452
|
render: ({
|
1453
|
-
row:
|
1454
|
-
}) => l(
|
1455
|
-
onModify: () =>
|
1456
|
-
id:
|
1453
|
+
row: o
|
1454
|
+
}) => l(X, {
|
1455
|
+
onModify: () => c({
|
1456
|
+
id: o.id
|
1457
1457
|
})
|
1458
1458
|
}, null)
|
1459
1459
|
}
|
1460
1460
|
], {
|
1461
|
-
requesting:
|
1462
|
-
} = F(
|
1463
|
-
tableRef:
|
1464
|
-
formModalRef:
|
1465
|
-
keyword:
|
1466
|
-
search:
|
1461
|
+
requesting: V
|
1462
|
+
} = F(P), {
|
1463
|
+
tableRef: f,
|
1464
|
+
formModalRef: i,
|
1465
|
+
keyword: p,
|
1466
|
+
search: m,
|
1467
1467
|
refresh: n,
|
1468
|
-
reset:
|
1469
|
-
openFormModal:
|
1470
|
-
editFormModal:
|
1471
|
-
} =
|
1472
|
-
formModalRef:
|
1468
|
+
reset: y,
|
1469
|
+
openFormModal: u,
|
1470
|
+
editFormModal: c
|
1471
|
+
} = $(x), {
|
1472
|
+
formModalRef: k,
|
1473
1473
|
openFormModal: v,
|
1474
|
-
editFormModal:
|
1475
|
-
} =
|
1476
|
-
|
1477
|
-
key:
|
1474
|
+
editFormModal: A
|
1475
|
+
} = $(), _ = (o) => {
|
1476
|
+
Re[Fe]({
|
1477
|
+
key: o
|
1478
1478
|
}).then(() => {
|
1479
|
-
|
1479
|
+
h.value = "", n();
|
1480
1480
|
});
|
1481
1481
|
};
|
1482
|
-
return (
|
1483
|
-
const r = s("el-button"),
|
1484
|
-
return
|
1482
|
+
return (o, d) => {
|
1483
|
+
const r = s("el-button"), R = s("el-input"), b = s("el-radio-button"), S = s("el-radio-group"), M = s("el-space"), L = s("el-page-header"), U = s("el-card");
|
1484
|
+
return D(), T(U, {
|
1485
1485
|
class: "basic-card flex-full",
|
1486
1486
|
"body-class": "flex-1",
|
1487
|
-
onClick:
|
1487
|
+
onClick: d[5] || (d[5] = () => h.value = "")
|
1488
1488
|
}, {
|
1489
|
-
header:
|
1489
|
+
header: t(() => [l(L, {
|
1490
1490
|
class: "basic-header"
|
1491
1491
|
}, {
|
1492
|
-
title:
|
1493
|
-
loading: e(
|
1494
|
-
onRefresh: e(
|
1495
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
1496
|
-
onOpen: e(
|
1492
|
+
title: t(() => [l(e(B), {
|
1493
|
+
loading: e(V),
|
1494
|
+
onRefresh: e(y)
|
1495
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(I), {
|
1496
|
+
onOpen: e(u)
|
1497
1497
|
}, null, 8, ["onOpen"]), l(r, {
|
1498
1498
|
circle: "",
|
1499
|
-
icon: e(
|
1499
|
+
icon: e(Je),
|
1500
1500
|
onClick: e(v)
|
1501
1501
|
}, null, 8, ["icon", "onClick"])]),
|
1502
|
-
content:
|
1502
|
+
content: t(() => [l(M, {
|
1503
1503
|
class: "search-bar"
|
1504
1504
|
}, {
|
1505
|
-
default:
|
1505
|
+
default: t(() => [l(R, {
|
1506
1506
|
class: "basic-search-input",
|
1507
|
-
modelValue: e(
|
1508
|
-
"onUpdate:modelValue":
|
1507
|
+
modelValue: e(p).keyword,
|
1508
|
+
"onUpdate:modelValue": d[0] || (d[0] = (O) => e(p).keyword = O),
|
1509
1509
|
placeholder: e(a)("base.placeholder.keyword"),
|
1510
1510
|
clearable: "",
|
1511
|
-
onKeyup:
|
1512
|
-
onClear:
|
1511
|
+
onKeyup: d[1] || (d[1] = me((O) => e(m)(), ["enter"])),
|
1512
|
+
onClear: d[2] || (d[2] = (O) => e(m)())
|
1513
1513
|
}, null, 8, ["modelValue", "placeholder"]), l(S, {
|
1514
|
-
modelValue: e(
|
1515
|
-
"onUpdate:modelValue":
|
1516
|
-
onChange:
|
1514
|
+
modelValue: e(p).status,
|
1515
|
+
"onUpdate:modelValue": d[3] || (d[3] = (O) => e(p).status = O),
|
1516
|
+
onChange: d[4] || (d[4] = (O) => e(m)())
|
1517
1517
|
}, {
|
1518
|
-
default:
|
1519
|
-
key:
|
1520
|
-
label: e(a)(`base.DISABLE_ENABLE.${
|
1521
|
-
value:
|
1518
|
+
default: t(() => [(D(), G(K, null, re([0, 1, 2], (O) => l(b, {
|
1519
|
+
key: O,
|
1520
|
+
label: e(a)(`base.DISABLE_ENABLE.${O}`),
|
1521
|
+
value: O
|
1522
1522
|
}, null, 8, ["label", "value"])), 64))]),
|
1523
1523
|
_: 1
|
1524
|
-
}, 8, ["modelValue"]), l(e(
|
1525
|
-
disabled: e(
|
1526
|
-
onSearch: e(
|
1524
|
+
}, 8, ["modelValue"]), l(e(Z), {
|
1525
|
+
disabled: e(V),
|
1526
|
+
onSearch: e(m)
|
1527
1527
|
}, null, 8, ["disabled", "onSearch"])]),
|
1528
1528
|
_: 1
|
1529
1529
|
})]),
|
1530
1530
|
_: 1
|
1531
1531
|
})]),
|
1532
|
-
default:
|
1532
|
+
default: t(() => [l(e(se), {
|
1533
1533
|
ref_key: "tableRef",
|
1534
|
-
ref:
|
1534
|
+
ref: f,
|
1535
1535
|
size: "small",
|
1536
|
-
columns:
|
1537
|
-
url: e(
|
1538
|
-
"search-param": e(
|
1536
|
+
columns: g,
|
1537
|
+
url: e(P).urls[e(ce)],
|
1538
|
+
"search-param": e(p),
|
1539
1539
|
autoSearch: ""
|
1540
|
-
}, null, 8, ["url", "search-param"]), l(
|
1540
|
+
}, null, 8, ["url", "search-param"]), l(Ze, {
|
1541
1541
|
ref_key: "formModalRef",
|
1542
|
-
ref:
|
1543
|
-
onRefresh: e(
|
1544
|
-
}, null, 8, ["onRefresh"]), l(
|
1542
|
+
ref: i,
|
1543
|
+
onRefresh: e(y)
|
1544
|
+
}, null, 8, ["onRefresh"]), l(ll, {
|
1545
1545
|
ref_key: "ruleFormModalRef",
|
1546
|
-
ref:
|
1546
|
+
ref: k,
|
1547
1547
|
onRefresh: e(n)
|
1548
1548
|
}, null, 8, ["onRefresh"])]),
|
1549
1549
|
_: 1
|
1550
1550
|
});
|
1551
1551
|
};
|
1552
1552
|
}
|
1553
|
-
}),
|
1553
|
+
}), ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1554
1554
|
__proto__: null,
|
1555
|
-
default:
|
1556
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1555
|
+
default: al
|
1556
|
+
}, Symbol.toStringTag, { value: "Module" })), tl = { class: "rule-check" }, nl = { style: { width: "80px", "line-height": "36px" } }, rl = /* @__PURE__ */ q({
|
1557
1557
|
__name: "RulesCheck",
|
1558
1558
|
props: {
|
1559
1559
|
modelValue: { type: Array, required: !0 },
|
1560
1560
|
disabled: { type: Boolean, default: !1 }
|
1561
1561
|
},
|
1562
1562
|
emits: ["update:modelValue"],
|
1563
|
-
setup(
|
1564
|
-
const { requesting:
|
1563
|
+
setup(w, { expose: x, emit: h }) {
|
1564
|
+
const { requesting: g } = F(P), V = w, f = h, i = j(!1), p = Se({
|
1565
1565
|
checkAll: !1,
|
1566
1566
|
indeterminate: !1,
|
1567
1567
|
MenuAll: {},
|
1568
1568
|
MenuList: {},
|
1569
1569
|
MenuIndeterminate: {}
|
1570
|
-
}), { options:
|
1571
|
-
function
|
1572
|
-
|
1573
|
-
var
|
1574
|
-
(
|
1570
|
+
}), { options: m, refresh: n } = te(oe(V, "modelValue"), f, { key: "RULE_CHECK", api: P, url: P.urls.rules, isArray: !0 }, !1);
|
1571
|
+
function y() {
|
1572
|
+
m.value.forEach((_) => {
|
1573
|
+
var o;
|
1574
|
+
(o = _.rules) != null && o.length && (p.MenuAll[_.id] = !1, p.MenuIndeterminate[_.id] = !1, p.MenuList[_.id] = []);
|
1575
1575
|
});
|
1576
1576
|
}
|
1577
|
-
function
|
1578
|
-
|
1579
|
-
var
|
1580
|
-
(
|
1581
|
-
}),
|
1577
|
+
function u(_) {
|
1578
|
+
m.value.forEach((o) => {
|
1579
|
+
var d;
|
1580
|
+
(d = o.rules) != null && d.length && (p.MenuList[o.id] = _ ? o.rules.map((r) => r.key) : []);
|
1581
|
+
}), k();
|
1582
1582
|
}
|
1583
|
-
function
|
1584
|
-
const
|
1585
|
-
|
1583
|
+
function c(_, o) {
|
1584
|
+
const d = m.value.find((r) => r.id === o);
|
1585
|
+
p.MenuList[o] = _ && d ? d.rules.map((r) => r.key) : [], k();
|
1586
1586
|
}
|
1587
|
-
function
|
1588
|
-
|
1589
|
-
var r,
|
1590
|
-
const
|
1591
|
-
|
1592
|
-
}),
|
1587
|
+
function k() {
|
1588
|
+
m.value.forEach((_) => {
|
1589
|
+
var r, R;
|
1590
|
+
const o = ((r = _.rules) == null ? void 0 : r.length) || 0, d = ((R = p.MenuList[_.id]) == null ? void 0 : R.length) || 0;
|
1591
|
+
p.MenuAll[_.id] = d === o && o > 0, p.MenuIndeterminate[_.id] = d > 0 && d < o;
|
1592
|
+
}), p.checkAll = Object.values(p.MenuAll).every(Boolean), p.indeterminate = !p.checkAll && Object.values(p.MenuList).some((_) => _.length > 0), f("update:modelValue", Object.values(p.MenuList).flat());
|
1593
1593
|
}
|
1594
1594
|
function v() {
|
1595
|
-
|
1595
|
+
p.checkAll = !1, p.indeterminate = !1, p.MenuAll = {}, p.MenuList = {}, p.MenuIndeterminate = {}, y(), f("update:modelValue", []), i.value = !1;
|
1596
1596
|
}
|
1597
|
-
function
|
1598
|
-
var
|
1599
|
-
if (Array.isArray(
|
1600
|
-
for (let
|
1601
|
-
if (Array.isArray(
|
1602
|
-
for (let r of
|
1603
|
-
|
1604
|
-
|
1597
|
+
function A(_) {
|
1598
|
+
var o;
|
1599
|
+
if (Array.isArray(m.value) && m.value.length > 0) {
|
1600
|
+
for (let d of m.value)
|
1601
|
+
if (Array.isArray(d.rules) && d.rules.length > 0)
|
1602
|
+
for (let r of d.rules)
|
1603
|
+
_.some((R) => R === r.key) && (p.MenuList[d.id] = (((o = p.MenuList) == null ? void 0 : o[d.id]) || []).concat([r.key]));
|
1604
|
+
k(), i.value = !0;
|
1605
1605
|
}
|
1606
1606
|
}
|
1607
|
-
return
|
1608
|
-
var
|
1609
|
-
(
|
1610
|
-
}),
|
1611
|
-
() =>
|
1612
|
-
(
|
1613
|
-
|
1614
|
-
var
|
1615
|
-
|
1607
|
+
return Le(async () => {
|
1608
|
+
var _;
|
1609
|
+
(_ = m.value) != null && _.length || await n(), !i.value && V.modelValue && A(V.modelValue);
|
1610
|
+
}), Te(
|
1611
|
+
() => V.modelValue,
|
1612
|
+
(_) => {
|
1613
|
+
qe(() => {
|
1614
|
+
var o;
|
1615
|
+
i.value || !((o = m.value) != null && o.length) || _ && _.length > 0 && A(_);
|
1616
1616
|
});
|
1617
1617
|
},
|
1618
1618
|
{ deep: !0, immediate: !0 }
|
1619
|
-
),
|
1620
|
-
generateOption:
|
1619
|
+
), x({
|
1620
|
+
generateOption: A,
|
1621
1621
|
cleanChecked: v
|
1622
|
-
}), (
|
1623
|
-
const
|
1624
|
-
return
|
1622
|
+
}), (_, o) => {
|
1623
|
+
const d = s("el-checkbox"), r = s("el-space"), R = s("el-text"), b = s("el-divider"), S = s("el-checkbox-group");
|
1624
|
+
return D(), G("div", tl, [
|
1625
1625
|
l(r, { style: { "margin-bottom": "6px" } }, {
|
1626
|
-
default:
|
1627
|
-
l(
|
1628
|
-
"model-value":
|
1629
|
-
indeterminate:
|
1626
|
+
default: t(() => [
|
1627
|
+
l(d, {
|
1628
|
+
"model-value": p.checkAll,
|
1629
|
+
indeterminate: p.indeterminate,
|
1630
1630
|
id: "all",
|
1631
|
-
disabled:
|
1632
|
-
onChange:
|
1631
|
+
disabled: w.disabled,
|
1632
|
+
onChange: u
|
1633
1633
|
}, {
|
1634
|
-
default:
|
1635
|
-
|
1634
|
+
default: t(() => o[1] || (o[1] = [
|
1635
|
+
N("span", null, "全选", -1)
|
1636
1636
|
])),
|
1637
1637
|
_: 1,
|
1638
1638
|
__: [1]
|
1639
1639
|
}, 8, ["model-value", "indeterminate", "disabled"]),
|
1640
1640
|
l(e(B), {
|
1641
|
-
loading: e(
|
1641
|
+
loading: e(g),
|
1642
1642
|
text: "",
|
1643
1643
|
size: "small",
|
1644
|
-
onRefresh:
|
1644
|
+
onRefresh: o[0] || (o[0] = (M) => e(n)(!0))
|
1645
1645
|
}, null, 8, ["loading"])
|
1646
1646
|
]),
|
1647
1647
|
_: 1
|
@@ -1651,54 +1651,54 @@ const je = /* @__PURE__ */ D({
|
|
1651
1651
|
alignment: "start",
|
1652
1652
|
class: "rule-check-content"
|
1653
1653
|
}, {
|
1654
|
-
default:
|
1655
|
-
(
|
1656
|
-
key:
|
1654
|
+
default: t(() => [
|
1655
|
+
(D(!0), G(K, null, re(e(m), (M) => (D(), G("div", {
|
1656
|
+
key: M.id
|
1657
1657
|
}, [
|
1658
1658
|
l(r, {
|
1659
1659
|
direction: "horizontal",
|
1660
1660
|
size: 2
|
1661
1661
|
}, {
|
1662
|
-
default:
|
1663
|
-
l(
|
1662
|
+
default: t(() => [
|
1663
|
+
l(d, {
|
1664
1664
|
style: { "min-width": "150px" },
|
1665
|
-
"model-value":
|
1666
|
-
disabled:
|
1667
|
-
indeterminate:
|
1668
|
-
onChange: (
|
1665
|
+
"model-value": p.MenuAll[M.id],
|
1666
|
+
disabled: w.disabled || !M.rules || M.rules.length <= 0,
|
1667
|
+
indeterminate: p.MenuIndeterminate[M.id],
|
1668
|
+
onChange: (L) => c(L, M.id)
|
1669
1669
|
}, {
|
1670
|
-
default:
|
1671
|
-
l(
|
1672
|
-
default:
|
1673
|
-
|
1670
|
+
default: t(() => [
|
1671
|
+
l(R, { style: { "font-size": "15px" } }, {
|
1672
|
+
default: t(() => [
|
1673
|
+
J(Q(M.translate), 1)
|
1674
1674
|
]),
|
1675
1675
|
_: 2
|
1676
1676
|
}, 1024)
|
1677
1677
|
]),
|
1678
1678
|
_: 2
|
1679
1679
|
}, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
|
1680
|
-
l(
|
1681
|
-
|
1680
|
+
l(b, { direction: "vertical" }),
|
1681
|
+
M.rules ? (D(), T(S, {
|
1682
1682
|
key: 0,
|
1683
|
-
modelValue:
|
1684
|
-
"onUpdate:modelValue": (
|
1685
|
-
disabled:
|
1683
|
+
modelValue: p.MenuList[M.id],
|
1684
|
+
"onUpdate:modelValue": (L) => p.MenuList[M.id] = L,
|
1685
|
+
disabled: w.disabled,
|
1686
1686
|
style: { margin: "auto" },
|
1687
|
-
onChange:
|
1687
|
+
onChange: k
|
1688
1688
|
}, {
|
1689
|
-
default:
|
1690
|
-
(
|
1691
|
-
key:
|
1692
|
-
value:
|
1689
|
+
default: t(() => [
|
1690
|
+
(D(!0), G(K, null, re(M.rules, (L) => (D(), T(d, {
|
1691
|
+
key: L.key,
|
1692
|
+
value: L.key
|
1693
1693
|
}, {
|
1694
|
-
default:
|
1695
|
-
|
1694
|
+
default: t(() => [
|
1695
|
+
N("div", nl, Q(L.translate), 1)
|
1696
1696
|
]),
|
1697
1697
|
_: 2
|
1698
1698
|
}, 1032, ["value"]))), 128))
|
1699
1699
|
]),
|
1700
1700
|
_: 2
|
1701
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
1701
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : Oe("", !0)
|
1702
1702
|
]),
|
1703
1703
|
_: 2
|
1704
1704
|
}, 1024)
|
@@ -1709,16 +1709,16 @@ const je = /* @__PURE__ */ D({
|
|
1709
1709
|
]);
|
1710
1710
|
};
|
1711
1711
|
}
|
1712
|
-
}),
|
1713
|
-
const
|
1714
|
-
for (const [
|
1715
|
-
|
1716
|
-
return
|
1717
|
-
},
|
1712
|
+
}), Ue = (w, x) => {
|
1713
|
+
const h = w.__vccOpts || w;
|
1714
|
+
for (const [g, V] of x)
|
1715
|
+
h[g] = V;
|
1716
|
+
return h;
|
1717
|
+
}, dl = /* @__PURE__ */ Ue(rl, [["__scopeId", "data-v-fcb04ec2"]]), sl = /* @__PURE__ */ q({
|
1718
1718
|
__name: "RoleFormModal",
|
1719
1719
|
emits: ["refresh"],
|
1720
|
-
setup(
|
1721
|
-
const
|
1720
|
+
setup(w, { expose: x, emit: h }) {
|
1721
|
+
const g = h, V = j(), f = {
|
1722
1722
|
key: "",
|
1723
1723
|
module: "",
|
1724
1724
|
sort: 0,
|
@@ -1726,7 +1726,7 @@ const je = /* @__PURE__ */ D({
|
|
1726
1726
|
en_name: "",
|
1727
1727
|
remark: "",
|
1728
1728
|
rules: []
|
1729
|
-
},
|
1729
|
+
}, i = {
|
1730
1730
|
name: [
|
1731
1731
|
{
|
1732
1732
|
required: !0,
|
@@ -1741,46 +1741,46 @@ const je = /* @__PURE__ */ D({
|
|
1741
1741
|
trigger: "blur"
|
1742
1742
|
}
|
1743
1743
|
]
|
1744
|
-
}, { modal:
|
1745
|
-
var
|
1746
|
-
(
|
1744
|
+
}, { modal: p, title: m, form: n, formData: y, requesting: u, executing: c, open: k, modify: v, submit: A, closed: _ } = Y(g, f, pe), o = () => {
|
1745
|
+
var d;
|
1746
|
+
(d = V.value) == null || d.cleanChecked(), _();
|
1747
1747
|
};
|
1748
|
-
return
|
1749
|
-
open:
|
1748
|
+
return x({
|
1749
|
+
open: k,
|
1750
1750
|
modify: v
|
1751
|
-
}), (
|
1752
|
-
const
|
1753
|
-
return
|
1754
|
-
modelValue: e(
|
1755
|
-
"onUpdate:modelValue": r[6] || (r[6] = (
|
1756
|
-
title: e(
|
1751
|
+
}), (d, r) => {
|
1752
|
+
const R = s("el-input"), b = s("el-form-item"), S = s("el-col"), M = s("el-input-number"), L = s("el-row"), U = s("el-form");
|
1753
|
+
return D(), T(e(H), {
|
1754
|
+
modelValue: e(p),
|
1755
|
+
"onUpdate:modelValue": r[6] || (r[6] = (O) => z(p) ? p.value = O : null),
|
1756
|
+
title: e(m)(),
|
1757
1757
|
width: "1000px",
|
1758
|
-
executing: e(
|
1759
|
-
onClosed:
|
1760
|
-
onSubmit: e(
|
1758
|
+
executing: e(c),
|
1759
|
+
onClosed: o,
|
1760
|
+
onSubmit: e(A)
|
1761
1761
|
}, {
|
1762
|
-
default:
|
1763
|
-
l(
|
1762
|
+
default: t(() => [
|
1763
|
+
l(U, {
|
1764
1764
|
ref_key: "form",
|
1765
1765
|
ref: n,
|
1766
|
-
model: e(
|
1766
|
+
model: e(y),
|
1767
1767
|
"label-width": "auto",
|
1768
|
-
rules:
|
1769
|
-
disabled: e(
|
1768
|
+
rules: i,
|
1769
|
+
disabled: e(u) || e(c)
|
1770
1770
|
}, {
|
1771
|
-
default:
|
1772
|
-
l(
|
1773
|
-
default:
|
1771
|
+
default: t(() => [
|
1772
|
+
l(L, { gutter: 20 }, {
|
1773
|
+
default: t(() => [
|
1774
1774
|
l(S, { span: 12 }, {
|
1775
|
-
default:
|
1776
|
-
l(
|
1775
|
+
default: t(() => [
|
1776
|
+
l(b, {
|
1777
1777
|
label: e(a)("base.module"),
|
1778
1778
|
prop: "module"
|
1779
1779
|
}, {
|
1780
|
-
default:
|
1781
|
-
l(
|
1782
|
-
modelValue: e(
|
1783
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
1780
|
+
default: t(() => [
|
1781
|
+
l(R, {
|
1782
|
+
modelValue: e(y).module,
|
1783
|
+
"onUpdate:modelValue": r[0] || (r[0] = (O) => e(y).module = O),
|
1784
1784
|
placeholder: e(a)("base.placeholder.input")
|
1785
1785
|
}, null, 8, ["modelValue", "placeholder"])
|
1786
1786
|
]),
|
@@ -1790,16 +1790,16 @@ const je = /* @__PURE__ */ D({
|
|
1790
1790
|
_: 1
|
1791
1791
|
}),
|
1792
1792
|
l(S, { span: 12 }, {
|
1793
|
-
default:
|
1794
|
-
l(
|
1793
|
+
default: t(() => [
|
1794
|
+
l(b, {
|
1795
1795
|
label: e(a)("base.sort"),
|
1796
1796
|
prop: "sort"
|
1797
1797
|
}, {
|
1798
|
-
default:
|
1799
|
-
l(
|
1798
|
+
default: t(() => [
|
1799
|
+
l(M, {
|
1800
1800
|
class: "w-full",
|
1801
|
-
modelValue: e(
|
1802
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
1801
|
+
modelValue: e(y).sort,
|
1802
|
+
"onUpdate:modelValue": r[1] || (r[1] = (O) => e(y).sort = O),
|
1803
1803
|
min: 0,
|
1804
1804
|
placeholder: e(a)("base.placeholder.input")
|
1805
1805
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -1812,56 +1812,56 @@ const je = /* @__PURE__ */ D({
|
|
1812
1812
|
]),
|
1813
1813
|
_: 1
|
1814
1814
|
}),
|
1815
|
-
l(
|
1815
|
+
l(b, {
|
1816
1816
|
label: e(a)("base.name"),
|
1817
1817
|
prop: "name"
|
1818
1818
|
}, {
|
1819
|
-
default:
|
1820
|
-
l(
|
1821
|
-
modelValue: e(
|
1822
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
1819
|
+
default: t(() => [
|
1820
|
+
l(R, {
|
1821
|
+
modelValue: e(y).name,
|
1822
|
+
"onUpdate:modelValue": r[2] || (r[2] = (O) => e(y).name = O),
|
1823
1823
|
placeholder: e(a)("base.placeholder.input")
|
1824
1824
|
}, null, 8, ["modelValue", "placeholder"])
|
1825
1825
|
]),
|
1826
1826
|
_: 1
|
1827
1827
|
}, 8, ["label"]),
|
1828
|
-
l(
|
1828
|
+
l(b, {
|
1829
1829
|
label: e(a)("base.en_name"),
|
1830
1830
|
prop: "en_name"
|
1831
1831
|
}, {
|
1832
|
-
default:
|
1833
|
-
l(
|
1834
|
-
modelValue: e(
|
1835
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
1832
|
+
default: t(() => [
|
1833
|
+
l(R, {
|
1834
|
+
modelValue: e(y).en_name,
|
1835
|
+
"onUpdate:modelValue": r[3] || (r[3] = (O) => e(y).en_name = O),
|
1836
1836
|
placeholder: e(a)("base.placeholder.input")
|
1837
1837
|
}, null, 8, ["modelValue", "placeholder"])
|
1838
1838
|
]),
|
1839
1839
|
_: 1
|
1840
1840
|
}, 8, ["label"]),
|
1841
|
-
l(
|
1841
|
+
l(b, {
|
1842
1842
|
label: e(a)("base.remark"),
|
1843
1843
|
prop: "remark"
|
1844
1844
|
}, {
|
1845
|
-
default:
|
1846
|
-
l(
|
1847
|
-
modelValue: e(
|
1848
|
-
"onUpdate:modelValue": r[4] || (r[4] = (
|
1845
|
+
default: t(() => [
|
1846
|
+
l(R, {
|
1847
|
+
modelValue: e(y).remark,
|
1848
|
+
"onUpdate:modelValue": r[4] || (r[4] = (O) => e(y).remark = O),
|
1849
1849
|
placeholder: e(a)("base.placeholder.input")
|
1850
1850
|
}, null, 8, ["modelValue", "placeholder"])
|
1851
1851
|
]),
|
1852
1852
|
_: 1
|
1853
1853
|
}, 8, ["label"]),
|
1854
|
-
l(
|
1854
|
+
l(b, {
|
1855
1855
|
label: e(a)("menu.rules"),
|
1856
1856
|
prop: "rules"
|
1857
1857
|
}, {
|
1858
|
-
default:
|
1859
|
-
l(
|
1858
|
+
default: t(() => [
|
1859
|
+
l(dl, {
|
1860
1860
|
ref_key: "rulesCheck",
|
1861
|
-
ref:
|
1862
|
-
modelValue: e(
|
1863
|
-
"onUpdate:modelValue": r[5] || (r[5] = (
|
1864
|
-
disabled: e(
|
1861
|
+
ref: V,
|
1862
|
+
modelValue: e(y).rules,
|
1863
|
+
"onUpdate:modelValue": r[5] || (r[5] = (O) => e(y).rules = O),
|
1864
|
+
disabled: e(u) || e(c)
|
1865
1865
|
}, null, 8, ["modelValue", "disabled"])
|
1866
1866
|
]),
|
1867
1867
|
_: 1
|
@@ -1874,12 +1874,12 @@ const je = /* @__PURE__ */ D({
|
|
1874
1874
|
}, 8, ["modelValue", "title", "executing", "onSubmit"]);
|
1875
1875
|
};
|
1876
1876
|
}
|
1877
|
-
}),
|
1877
|
+
}), ul = /* @__PURE__ */ q({
|
1878
1878
|
__name: "index",
|
1879
|
-
setup(
|
1880
|
-
const
|
1879
|
+
setup(w) {
|
1880
|
+
const x = {
|
1881
1881
|
keyword: ""
|
1882
|
-
},
|
1882
|
+
}, h = [
|
1883
1883
|
{
|
1884
1884
|
label: a("base.sort"),
|
1885
1885
|
prop: "sort",
|
@@ -1912,88 +1912,1271 @@ const je = /* @__PURE__ */ D({
|
|
1912
1912
|
width: 60,
|
1913
1913
|
align: "center",
|
1914
1914
|
render: ({
|
1915
|
-
row:
|
1916
|
-
}) => l(
|
1917
|
-
onModify: () =>
|
1918
|
-
key:
|
1915
|
+
row: u
|
1916
|
+
}) => l(X, {
|
1917
|
+
onModify: () => y({
|
1918
|
+
key: u.key
|
1919
1919
|
})
|
1920
1920
|
}, null)
|
1921
1921
|
}
|
1922
1922
|
], {
|
1923
|
-
requesting:
|
1924
|
-
} = F(
|
1925
|
-
tableRef:
|
1926
|
-
formModalRef:
|
1927
|
-
keyword:
|
1928
|
-
search:
|
1929
|
-
reset:
|
1923
|
+
requesting: g
|
1924
|
+
} = F(pe), {
|
1925
|
+
tableRef: V,
|
1926
|
+
formModalRef: f,
|
1927
|
+
keyword: i,
|
1928
|
+
search: p,
|
1929
|
+
reset: m,
|
1930
1930
|
openFormModal: n,
|
1931
|
-
editFormModal:
|
1932
|
-
} =
|
1933
|
-
return (
|
1934
|
-
const
|
1935
|
-
return
|
1931
|
+
editFormModal: y
|
1932
|
+
} = $(x);
|
1933
|
+
return (u, c) => {
|
1934
|
+
const k = s("el-input"), v = s("el-space"), A = s("el-page-header"), _ = s("el-card");
|
1935
|
+
return D(), T(_, {
|
1936
1936
|
class: "basic-card flex-full",
|
1937
1937
|
"body-class": "flex-1"
|
1938
1938
|
}, {
|
1939
|
-
header:
|
1939
|
+
header: t(() => [l(A, {
|
1940
1940
|
class: "basic-header"
|
1941
1941
|
}, {
|
1942
|
-
title:
|
1943
|
-
loading: e(
|
1944
|
-
onRefresh: e(
|
1945
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
1942
|
+
title: t(() => [l(e(B), {
|
1943
|
+
loading: e(g),
|
1944
|
+
onRefresh: e(m)
|
1945
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(I), {
|
1946
1946
|
onOpen: e(n)
|
1947
1947
|
}, null, 8, ["onOpen"])]),
|
1948
|
-
content:
|
1948
|
+
content: t(() => [l(v, {
|
1949
1949
|
class: "search-bar"
|
1950
1950
|
}, {
|
1951
|
-
default:
|
1951
|
+
default: t(() => [l(k, {
|
1952
1952
|
class: "basic-search-input",
|
1953
|
-
modelValue: e(
|
1954
|
-
"onUpdate:modelValue":
|
1953
|
+
modelValue: e(i).keyword,
|
1954
|
+
"onUpdate:modelValue": c[0] || (c[0] = (o) => e(i).keyword = o),
|
1955
1955
|
placeholder: e(a)("base.placeholder.keyword"),
|
1956
1956
|
clearable: "",
|
1957
|
-
onKeyup:
|
1958
|
-
onClear:
|
1959
|
-
}, null, 8, ["modelValue", "placeholder"]), l(e(
|
1960
|
-
disabled: e(
|
1961
|
-
onSearch:
|
1957
|
+
onKeyup: c[1] || (c[1] = me((o) => e(p)(), ["enter"])),
|
1958
|
+
onClear: c[2] || (c[2] = (o) => e(p)())
|
1959
|
+
}, null, 8, ["modelValue", "placeholder"]), l(e(Z), {
|
1960
|
+
disabled: e(g),
|
1961
|
+
onSearch: c[3] || (c[3] = (o) => e(p)())
|
1962
1962
|
}, null, 8, ["disabled"])]),
|
1963
1963
|
_: 1
|
1964
1964
|
})]),
|
1965
1965
|
_: 1
|
1966
1966
|
})]),
|
1967
|
-
default:
|
1967
|
+
default: t(() => [l(e(se), {
|
1968
1968
|
ref_key: "tableRef",
|
1969
|
-
ref:
|
1969
|
+
ref: V,
|
1970
1970
|
size: "small",
|
1971
|
-
columns:
|
1972
|
-
url: e(
|
1973
|
-
"search-param": e(
|
1971
|
+
columns: h,
|
1972
|
+
url: e(pe).urls[e(ce)],
|
1973
|
+
"search-param": e(i),
|
1974
1974
|
autoSearch: ""
|
1975
|
-
}, null, 8, ["url", "search-param"]), l(
|
1975
|
+
}, null, 8, ["url", "search-param"]), l(sl, {
|
1976
1976
|
ref_key: "formModalRef",
|
1977
|
-
ref:
|
1978
|
-
onRefresh: e(
|
1977
|
+
ref: f,
|
1978
|
+
onRefresh: e(m)
|
1979
1979
|
}, null, 8, ["onRefresh"])]),
|
1980
1980
|
_: 1
|
1981
1981
|
});
|
1982
1982
|
};
|
1983
1983
|
}
|
1984
|
-
}),
|
1984
|
+
}), il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1985
1985
|
__proto__: null,
|
1986
|
-
default:
|
1987
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1986
|
+
default: ul
|
1987
|
+
}, Symbol.toStringTag, { value: "Module" })), ee = W(
|
1988
|
+
"site",
|
1989
|
+
{
|
1990
|
+
check: "check"
|
1991
|
+
},
|
1992
|
+
"id",
|
1993
|
+
["check"],
|
1994
|
+
[]
|
1995
|
+
), le = W("domain", {}, "id", [], []), Ae = /* @__PURE__ */ q({
|
1996
|
+
__name: "DomainSelect",
|
1997
|
+
props: {
|
1998
|
+
modelValue: {
|
1999
|
+
type: Number,
|
2000
|
+
required: !0
|
2001
|
+
},
|
2002
|
+
disabled: {
|
2003
|
+
type: Boolean,
|
2004
|
+
default: !1
|
2005
|
+
}
|
2006
|
+
},
|
2007
|
+
emits: ["update:modelValue", "change"],
|
2008
|
+
setup(w, {
|
2009
|
+
expose: x,
|
2010
|
+
emit: h
|
2011
|
+
}) {
|
2012
|
+
const g = h, V = w, {
|
2013
|
+
requesting: f
|
2014
|
+
} = F(le), {
|
2015
|
+
key: i,
|
2016
|
+
options: p,
|
2017
|
+
refresh: m,
|
2018
|
+
change: n
|
2019
|
+
} = te(oe(V, "modelValue"), g, {
|
2020
|
+
key: "DOMAIN_LIST",
|
2021
|
+
api: le,
|
2022
|
+
isArray: !0
|
2023
|
+
});
|
2024
|
+
return x({
|
2025
|
+
refresh: m
|
2026
|
+
}), (y, u) => {
|
2027
|
+
const c = s("el-select-v2");
|
2028
|
+
return D(), T(c, {
|
2029
|
+
modelValue: e(i),
|
2030
|
+
"onUpdate:modelValue": u[0] || (u[0] = (k) => z(i) ? i.value = k : null),
|
2031
|
+
options: e(p),
|
2032
|
+
disabled: w.disabled || e(f),
|
2033
|
+
placeholder: e(a)("base.select config.domain"),
|
2034
|
+
onChange: e(n)
|
2035
|
+
}, {
|
2036
|
+
prefix: t(() => [l(e(ue), {
|
2037
|
+
loading: e(f),
|
2038
|
+
onRefresh: e(m)
|
2039
|
+
}, null, 8, ["loading", "onRefresh"])]),
|
2040
|
+
_: 1
|
2041
|
+
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
2042
|
+
};
|
2043
|
+
}
|
2044
|
+
}), pl = /* @__PURE__ */ q({
|
2045
|
+
__name: "SiteFormModal",
|
2046
|
+
emits: ["refresh"],
|
2047
|
+
setup(w, { expose: x, emit: h }) {
|
2048
|
+
const g = h, V = {
|
2049
|
+
id: 0,
|
2050
|
+
domain_id: 0,
|
2051
|
+
prefix: "",
|
2052
|
+
name: "",
|
2053
|
+
en_name: "",
|
2054
|
+
dns: "",
|
2055
|
+
git: "",
|
2056
|
+
status: 1,
|
2057
|
+
remark: ""
|
2058
|
+
}, f = {
|
2059
|
+
domain_id: [{ required: !0, message: a("base.placeholder.input config.domain"), trigger: "blur" }],
|
2060
|
+
prefix: [{ required: !0, message: a("base.placeholder.input base.prefix"), trigger: "blur" }],
|
2061
|
+
name: [{ required: !0, message: a("base.placeholder.input base.name"), trigger: "blur" }],
|
2062
|
+
en_name: [{ required: !0, message: a("base.placeholder.input base.en_name"), trigger: "blur" }]
|
2063
|
+
}, { modal: i, title: p, form: m, formData: n, requesting: y, executing: u, open: c, modify: k, submit: v, closed: A } = Y(g, V, ee);
|
2064
|
+
return x({
|
2065
|
+
open: c,
|
2066
|
+
modify: k
|
2067
|
+
}), (_, o) => {
|
2068
|
+
const d = s("el-form-item"), r = s("el-input"), R = s("el-form");
|
2069
|
+
return D(), T(e(H), {
|
2070
|
+
modelValue: e(i),
|
2071
|
+
"onUpdate:modelValue": o[7] || (o[7] = (b) => z(i) ? i.value = b : null),
|
2072
|
+
title: e(p)("config.site"),
|
2073
|
+
width: "600px",
|
2074
|
+
executing: e(u),
|
2075
|
+
onClosed: e(A),
|
2076
|
+
onSubmit: e(v)
|
2077
|
+
}, {
|
2078
|
+
default: t(() => [
|
2079
|
+
l(R, {
|
2080
|
+
ref_key: "form",
|
2081
|
+
ref: m,
|
2082
|
+
model: e(n),
|
2083
|
+
"label-width": "auto",
|
2084
|
+
rules: f,
|
2085
|
+
disabled: e(y) || e(u)
|
2086
|
+
}, {
|
2087
|
+
default: t(() => [
|
2088
|
+
l(d, {
|
2089
|
+
prop: "domain_id",
|
2090
|
+
label: e(a)("config.domain")
|
2091
|
+
}, {
|
2092
|
+
default: t(() => [
|
2093
|
+
l(Ae, {
|
2094
|
+
modelValue: e(n).domain_id,
|
2095
|
+
"onUpdate:modelValue": o[0] || (o[0] = (b) => e(n).domain_id = b),
|
2096
|
+
disabled: e(u)
|
2097
|
+
}, null, 8, ["modelValue", "disabled"])
|
2098
|
+
]),
|
2099
|
+
_: 1
|
2100
|
+
}, 8, ["label"]),
|
2101
|
+
l(d, {
|
2102
|
+
prop: "prefix",
|
2103
|
+
label: e(a)("config.prefix")
|
2104
|
+
}, {
|
2105
|
+
default: t(() => [
|
2106
|
+
l(r, {
|
2107
|
+
modelValue: e(n).prefix,
|
2108
|
+
"onUpdate:modelValue": o[1] || (o[1] = (b) => e(n).prefix = b),
|
2109
|
+
disabled: e(u),
|
2110
|
+
placeholder: e(a)("base.placeholder.input")
|
2111
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2112
|
+
]),
|
2113
|
+
_: 1
|
2114
|
+
}, 8, ["label"]),
|
2115
|
+
l(d, {
|
2116
|
+
prop: "name",
|
2117
|
+
label: e(a)("base.name")
|
2118
|
+
}, {
|
2119
|
+
default: t(() => [
|
2120
|
+
l(r, {
|
2121
|
+
modelValue: e(n).name,
|
2122
|
+
"onUpdate:modelValue": o[2] || (o[2] = (b) => e(n).name = b),
|
2123
|
+
disabled: e(u),
|
2124
|
+
placeholder: e(a)("base.placeholder.input")
|
2125
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2126
|
+
]),
|
2127
|
+
_: 1
|
2128
|
+
}, 8, ["label"]),
|
2129
|
+
l(d, {
|
2130
|
+
prop: "en_name",
|
2131
|
+
label: e(a)("base.en_name")
|
2132
|
+
}, {
|
2133
|
+
default: t(() => [
|
2134
|
+
l(r, {
|
2135
|
+
modelValue: e(n).en_name,
|
2136
|
+
"onUpdate:modelValue": o[3] || (o[3] = (b) => e(n).en_name = b),
|
2137
|
+
disabled: e(u),
|
2138
|
+
placeholder: e(a)("base.placeholder.input")
|
2139
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2140
|
+
]),
|
2141
|
+
_: 1
|
2142
|
+
}, 8, ["label"]),
|
2143
|
+
l(d, {
|
2144
|
+
prop: "dns",
|
2145
|
+
label: e(a)("config.dns")
|
2146
|
+
}, {
|
2147
|
+
default: t(() => [
|
2148
|
+
l(r, {
|
2149
|
+
modelValue: e(n).dns,
|
2150
|
+
"onUpdate:modelValue": o[4] || (o[4] = (b) => e(n).dns = b),
|
2151
|
+
disabled: e(u),
|
2152
|
+
placeholder: e(a)("base.placeholder.input")
|
2153
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2154
|
+
]),
|
2155
|
+
_: 1
|
2156
|
+
}, 8, ["label"]),
|
2157
|
+
l(d, {
|
2158
|
+
prop: "git",
|
2159
|
+
label: e(a)("config.git")
|
2160
|
+
}, {
|
2161
|
+
default: t(() => [
|
2162
|
+
l(r, {
|
2163
|
+
modelValue: e(n).git,
|
2164
|
+
"onUpdate:modelValue": o[5] || (o[5] = (b) => e(n).git = b),
|
2165
|
+
disabled: e(u),
|
2166
|
+
placeholder: e(a)("base.placeholder.input")
|
2167
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2168
|
+
]),
|
2169
|
+
_: 1
|
2170
|
+
}, 8, ["label"]),
|
2171
|
+
l(d, {
|
2172
|
+
prop: "remark",
|
2173
|
+
label: e(a)("base.remark")
|
2174
|
+
}, {
|
2175
|
+
default: t(() => [
|
2176
|
+
l(r, {
|
2177
|
+
modelValue: e(n).remark,
|
2178
|
+
"onUpdate:modelValue": o[6] || (o[6] = (b) => e(n).remark = b),
|
2179
|
+
disabled: e(u),
|
2180
|
+
placeholder: e(a)("base.placeholder.input")
|
2181
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2182
|
+
]),
|
2183
|
+
_: 1
|
2184
|
+
}, 8, ["label"])
|
2185
|
+
]),
|
2186
|
+
_: 1
|
2187
|
+
}, 8, ["model", "disabled"])
|
2188
|
+
]),
|
2189
|
+
_: 1
|
2190
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
2191
|
+
};
|
2192
|
+
}
|
2193
|
+
}), de = W("domain_provider", {}, "id", [], []), ml = /* @__PURE__ */ q({
|
2194
|
+
__name: "DomainProviderSelect",
|
2195
|
+
props: {
|
2196
|
+
modelValue: {
|
2197
|
+
type: Number,
|
2198
|
+
required: !0
|
2199
|
+
},
|
2200
|
+
disabled: {
|
2201
|
+
type: Boolean,
|
2202
|
+
default: !1
|
2203
|
+
}
|
2204
|
+
},
|
2205
|
+
emits: ["update:modelValue", "change"],
|
2206
|
+
setup(w, {
|
2207
|
+
expose: x,
|
2208
|
+
emit: h
|
2209
|
+
}) {
|
2210
|
+
const g = h, V = w, {
|
2211
|
+
requesting: f
|
2212
|
+
} = F(de), {
|
2213
|
+
key: i,
|
2214
|
+
options: p,
|
2215
|
+
refresh: m,
|
2216
|
+
change: n
|
2217
|
+
} = te(oe(V, "modelValue"), g, {
|
2218
|
+
key: "DOMAIN_PROVIDER_LIST",
|
2219
|
+
api: de,
|
2220
|
+
isArray: !0
|
2221
|
+
});
|
2222
|
+
return x({
|
2223
|
+
refresh: m
|
2224
|
+
}), (y, u) => {
|
2225
|
+
const c = s("el-select-v2");
|
2226
|
+
return D(), T(c, {
|
2227
|
+
modelValue: e(i),
|
2228
|
+
"onUpdate:modelValue": u[0] || (u[0] = (k) => z(i) ? i.value = k : null),
|
2229
|
+
options: e(p),
|
2230
|
+
disabled: w.disabled || e(f),
|
2231
|
+
placeholder: e(a)("base.select config.domain config.provider"),
|
2232
|
+
onChange: e(n)
|
2233
|
+
}, {
|
2234
|
+
prefix: t(() => [l(e(ue), {
|
2235
|
+
loading: e(f),
|
2236
|
+
onRefresh: e(m)
|
2237
|
+
}, null, 8, ["loading", "onRefresh"])]),
|
2238
|
+
_: 1
|
2239
|
+
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
2240
|
+
};
|
2241
|
+
}
|
2242
|
+
}), cl = /* @__PURE__ */ q({
|
2243
|
+
__name: "DomainFormModal",
|
2244
|
+
emits: ["refresh"],
|
2245
|
+
setup(w, { expose: x, emit: h }) {
|
2246
|
+
const g = h, V = {
|
2247
|
+
id: 0,
|
2248
|
+
provider_id: 0,
|
2249
|
+
name: "",
|
2250
|
+
expired_at: "",
|
2251
|
+
status: 1,
|
2252
|
+
remark: ""
|
2253
|
+
}, f = {
|
2254
|
+
provider_id: [{ required: !0, message: a("base.placeholder.input config.domain config.provider"), trigger: "blur" }],
|
2255
|
+
name: [{ required: !0, message: a("base.placeholder.input base.name"), trigger: "blur" }]
|
2256
|
+
}, { modal: i, title: p, form: m, formData: n, requesting: y, executing: u, open: c, modify: k, submit: v, closed: A } = Y(g, V, le);
|
2257
|
+
return x({
|
2258
|
+
open: c,
|
2259
|
+
modify: k
|
2260
|
+
}), (_, o) => {
|
2261
|
+
const d = s("el-form-item"), r = s("el-input"), R = s("el-date-picker"), b = s("el-form");
|
2262
|
+
return D(), T(e(H), {
|
2263
|
+
modelValue: e(i),
|
2264
|
+
"onUpdate:modelValue": o[4] || (o[4] = (S) => z(i) ? i.value = S : null),
|
2265
|
+
title: e(p)("config.domain"),
|
2266
|
+
width: "600px",
|
2267
|
+
executing: e(u),
|
2268
|
+
onClosed: e(A),
|
2269
|
+
onSubmit: e(v)
|
2270
|
+
}, {
|
2271
|
+
default: t(() => [
|
2272
|
+
l(b, {
|
2273
|
+
ref_key: "form",
|
2274
|
+
ref: m,
|
2275
|
+
model: e(n),
|
2276
|
+
"label-width": "auto",
|
2277
|
+
rules: f,
|
2278
|
+
disabled: e(y) || e(u)
|
2279
|
+
}, {
|
2280
|
+
default: t(() => [
|
2281
|
+
l(d, {
|
2282
|
+
prop: "provider_id",
|
2283
|
+
label: e(a)("config.provider")
|
2284
|
+
}, {
|
2285
|
+
default: t(() => [
|
2286
|
+
l(ml, {
|
2287
|
+
modelValue: e(n).provider_id,
|
2288
|
+
"onUpdate:modelValue": o[0] || (o[0] = (S) => e(n).provider_id = S),
|
2289
|
+
disabled: e(u)
|
2290
|
+
}, null, 8, ["modelValue", "disabled"])
|
2291
|
+
]),
|
2292
|
+
_: 1
|
2293
|
+
}, 8, ["label"]),
|
2294
|
+
l(d, {
|
2295
|
+
prop: "name",
|
2296
|
+
label: e(a)("base.name")
|
2297
|
+
}, {
|
2298
|
+
default: t(() => [
|
2299
|
+
l(r, {
|
2300
|
+
modelValue: e(n).name,
|
2301
|
+
"onUpdate:modelValue": o[1] || (o[1] = (S) => e(n).name = S),
|
2302
|
+
disabled: e(u),
|
2303
|
+
placeholder: e(a)("base.placeholder.input")
|
2304
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2305
|
+
]),
|
2306
|
+
_: 1
|
2307
|
+
}, 8, ["label"]),
|
2308
|
+
l(d, {
|
2309
|
+
prop: "expired_at",
|
2310
|
+
required: "",
|
2311
|
+
label: e(a)("base.expired_at")
|
2312
|
+
}, {
|
2313
|
+
default: t(() => [
|
2314
|
+
l(R, {
|
2315
|
+
type: "date",
|
2316
|
+
style: { width: "100%" },
|
2317
|
+
modelValue: e(n).expired_at,
|
2318
|
+
"onUpdate:modelValue": o[2] || (o[2] = (S) => e(n).expired_at = S),
|
2319
|
+
disabled: e(u),
|
2320
|
+
"value-format": e(C).DATE_VALUE_FORMAT,
|
2321
|
+
format: e(C).DATE_FORMAT,
|
2322
|
+
placeholder: e(a)("base.placeholder.select")
|
2323
|
+
}, null, 8, ["modelValue", "disabled", "value-format", "format", "placeholder"])
|
2324
|
+
]),
|
2325
|
+
_: 1
|
2326
|
+
}, 8, ["label"]),
|
2327
|
+
l(d, {
|
2328
|
+
prop: "remark",
|
2329
|
+
label: e(a)("base.remark")
|
2330
|
+
}, {
|
2331
|
+
default: t(() => [
|
2332
|
+
l(r, {
|
2333
|
+
modelValue: e(n).remark,
|
2334
|
+
"onUpdate:modelValue": o[3] || (o[3] = (S) => e(n).remark = S),
|
2335
|
+
disabled: e(u),
|
2336
|
+
placeholder: e(a)("base.placeholder.input")
|
2337
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2338
|
+
]),
|
2339
|
+
_: 1
|
2340
|
+
}, 8, ["label"])
|
2341
|
+
]),
|
2342
|
+
_: 1
|
2343
|
+
}, 8, ["model", "disabled"])
|
2344
|
+
]),
|
2345
|
+
_: 1
|
2346
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
2347
|
+
};
|
2348
|
+
}
|
2349
|
+
}), bl = /* @__PURE__ */ q({
|
2350
|
+
__name: "SiteSelect",
|
2351
|
+
props: {
|
2352
|
+
modelValue: {
|
2353
|
+
type: Number,
|
2354
|
+
required: !0
|
2355
|
+
},
|
2356
|
+
disabled: {
|
2357
|
+
type: Boolean,
|
2358
|
+
default: !1
|
2359
|
+
}
|
2360
|
+
},
|
2361
|
+
emits: ["update:modelValue", "change"],
|
2362
|
+
setup(w, {
|
2363
|
+
expose: x,
|
2364
|
+
emit: h
|
2365
|
+
}) {
|
2366
|
+
const g = h, V = w, {
|
2367
|
+
requesting: f
|
2368
|
+
} = F(ee), {
|
2369
|
+
key: i,
|
2370
|
+
options: p,
|
2371
|
+
refresh: m,
|
2372
|
+
change: n
|
2373
|
+
} = te(oe(V, "modelValue"), g, {
|
2374
|
+
key: "SITE_LIST",
|
2375
|
+
api: ee,
|
2376
|
+
isArray: !0,
|
2377
|
+
formatOptions: (y) => y.map((u) => {
|
2378
|
+
var c;
|
2379
|
+
return {
|
2380
|
+
label: u.prefix + "." + ((c = u.domain) == null ? void 0 : c.name),
|
2381
|
+
value: u.id
|
2382
|
+
};
|
2383
|
+
})
|
2384
|
+
});
|
2385
|
+
return x({
|
2386
|
+
refresh: m
|
2387
|
+
}), (y, u) => {
|
2388
|
+
const c = s("el-select-v2");
|
2389
|
+
return D(), T(c, {
|
2390
|
+
modelValue: e(i),
|
2391
|
+
"onUpdate:modelValue": u[0] || (u[0] = (k) => z(i) ? i.value = k : null),
|
2392
|
+
options: e(p),
|
2393
|
+
disabled: w.disabled || e(f),
|
2394
|
+
placeholder: e(a)("base.select config.domain"),
|
2395
|
+
onChange: e(n)
|
2396
|
+
}, {
|
2397
|
+
prefix: t(() => [l(e(ue), {
|
2398
|
+
loading: e(f),
|
2399
|
+
onRefresh: e(m)
|
2400
|
+
}, null, 8, ["loading", "onRefresh"])]),
|
2401
|
+
_: 1
|
2402
|
+
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
2403
|
+
};
|
2404
|
+
}
|
2405
|
+
}), fl = /* @__PURE__ */ q({
|
2406
|
+
__name: "SSLFormModal",
|
2407
|
+
emits: ["refresh"],
|
2408
|
+
setup(w, { expose: x, emit: h }) {
|
2409
|
+
const g = h, V = {
|
2410
|
+
id: 0,
|
2411
|
+
domain_id: 0,
|
2412
|
+
site_id: 0,
|
2413
|
+
name: "",
|
2414
|
+
path: "",
|
2415
|
+
email: "",
|
2416
|
+
encryption: "",
|
2417
|
+
remark: ""
|
2418
|
+
}, f = {
|
2419
|
+
domain_id: [{ required: !0, message: a("base.placeholder.select config.domain "), trigger: "blur" }],
|
2420
|
+
site_id: [{ required: !0, message: a("base.placeholder.select config.site "), trigger: "blur" }],
|
2421
|
+
name: [{ required: !0, message: a("base.placeholder.input base.name"), trigger: "blur" }],
|
2422
|
+
path: [{ required: !0, message: a("base.placeholder.input base.path"), trigger: "blur" }],
|
2423
|
+
email: [{ required: !0, message: a("base.placeholder.input base.email"), trigger: "blur" }],
|
2424
|
+
encryption: [{ required: !0, message: a("base.placeholder.input config.encryption"), trigger: "blur" }]
|
2425
|
+
}, { modal: i, title: p, form: m, formData: n, requesting: y, executing: u, open: c, modify: k, submit: v, closed: A } = Y(g, V, le);
|
2426
|
+
return x({
|
2427
|
+
open: c,
|
2428
|
+
modify: k,
|
2429
|
+
formData: n
|
2430
|
+
}), (_, o) => {
|
2431
|
+
const d = s("el-form-item"), r = s("el-input"), R = s("el-form");
|
2432
|
+
return D(), T(e(H), {
|
2433
|
+
modelValue: e(i),
|
2434
|
+
"onUpdate:modelValue": o[7] || (o[7] = (b) => z(i) ? i.value = b : null),
|
2435
|
+
title: e(p)("config.domain"),
|
2436
|
+
width: "600px",
|
2437
|
+
executing: e(u),
|
2438
|
+
onClosed: e(A),
|
2439
|
+
onSubmit: e(v)
|
2440
|
+
}, {
|
2441
|
+
default: t(() => [
|
2442
|
+
l(R, {
|
2443
|
+
ref_key: "form",
|
2444
|
+
ref: m,
|
2445
|
+
model: e(n),
|
2446
|
+
"label-width": "auto",
|
2447
|
+
rules: f,
|
2448
|
+
disabled: e(y) || e(u)
|
2449
|
+
}, {
|
2450
|
+
default: t(() => [
|
2451
|
+
l(d, {
|
2452
|
+
prop: "domain_id",
|
2453
|
+
label: e(a)("config.domain")
|
2454
|
+
}, {
|
2455
|
+
default: t(() => [
|
2456
|
+
l(Ae, {
|
2457
|
+
modelValue: e(n).domain_id,
|
2458
|
+
"onUpdate:modelValue": o[0] || (o[0] = (b) => e(n).domain_id = b),
|
2459
|
+
disabled: e(u)
|
2460
|
+
}, null, 8, ["modelValue", "disabled"])
|
2461
|
+
]),
|
2462
|
+
_: 1
|
2463
|
+
}, 8, ["label"]),
|
2464
|
+
l(d, {
|
2465
|
+
prop: "site_id",
|
2466
|
+
label: e(a)("config.site")
|
2467
|
+
}, {
|
2468
|
+
default: t(() => [
|
2469
|
+
l(bl, {
|
2470
|
+
modelValue: e(n).site_id,
|
2471
|
+
"onUpdate:modelValue": o[1] || (o[1] = (b) => e(n).site_id = b),
|
2472
|
+
disabled: e(u) || e(n).domain_id > 0
|
2473
|
+
}, null, 8, ["modelValue", "disabled"])
|
2474
|
+
]),
|
2475
|
+
_: 1
|
2476
|
+
}, 8, ["label"]),
|
2477
|
+
l(d, {
|
2478
|
+
prop: "name",
|
2479
|
+
label: e(a)("base.name")
|
2480
|
+
}, {
|
2481
|
+
default: t(() => [
|
2482
|
+
l(r, {
|
2483
|
+
modelValue: e(n).name,
|
2484
|
+
"onUpdate:modelValue": o[2] || (o[2] = (b) => e(n).name = b),
|
2485
|
+
disabled: e(u),
|
2486
|
+
placeholder: e(a)("base.placeholder.input")
|
2487
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2488
|
+
]),
|
2489
|
+
_: 1
|
2490
|
+
}, 8, ["label"]),
|
2491
|
+
l(d, {
|
2492
|
+
prop: "path",
|
2493
|
+
label: e(a)("base.path")
|
2494
|
+
}, {
|
2495
|
+
default: t(() => [
|
2496
|
+
l(r, {
|
2497
|
+
modelValue: e(n).path,
|
2498
|
+
"onUpdate:modelValue": o[3] || (o[3] = (b) => e(n).path = b),
|
2499
|
+
disabled: e(u),
|
2500
|
+
placeholder: e(a)("base.placeholder.input")
|
2501
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2502
|
+
]),
|
2503
|
+
_: 1
|
2504
|
+
}, 8, ["label"]),
|
2505
|
+
l(d, {
|
2506
|
+
prop: "email",
|
2507
|
+
label: e(a)("base.email")
|
2508
|
+
}, {
|
2509
|
+
default: t(() => [
|
2510
|
+
l(r, {
|
2511
|
+
modelValue: e(n).email,
|
2512
|
+
"onUpdate:modelValue": o[4] || (o[4] = (b) => e(n).email = b),
|
2513
|
+
disabled: e(u),
|
2514
|
+
placeholder: e(a)("base.placeholder.input")
|
2515
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2516
|
+
]),
|
2517
|
+
_: 1
|
2518
|
+
}, 8, ["label"]),
|
2519
|
+
l(d, {
|
2520
|
+
prop: "encryption",
|
2521
|
+
label: e(a)("config.encryption")
|
2522
|
+
}, {
|
2523
|
+
default: t(() => [
|
2524
|
+
l(r, {
|
2525
|
+
modelValue: e(n).encryption,
|
2526
|
+
"onUpdate:modelValue": o[5] || (o[5] = (b) => e(n).encryption = b),
|
2527
|
+
disabled: e(u),
|
2528
|
+
placeholder: e(a)("base.placeholder.input")
|
2529
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2530
|
+
]),
|
2531
|
+
_: 1
|
2532
|
+
}, 8, ["label"]),
|
2533
|
+
l(d, {
|
2534
|
+
prop: "remark",
|
2535
|
+
label: e(a)("base.remark")
|
2536
|
+
}, {
|
2537
|
+
default: t(() => [
|
2538
|
+
l(r, {
|
2539
|
+
modelValue: e(n).remark,
|
2540
|
+
"onUpdate:modelValue": o[6] || (o[6] = (b) => e(n).remark = b),
|
2541
|
+
disabled: e(u),
|
2542
|
+
placeholder: e(a)("base.placeholder.input")
|
2543
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2544
|
+
]),
|
2545
|
+
_: 1
|
2546
|
+
}, 8, ["label"])
|
2547
|
+
]),
|
2548
|
+
_: 1
|
2549
|
+
}, 8, ["model", "disabled"])
|
2550
|
+
]),
|
2551
|
+
_: 1
|
2552
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
2553
|
+
};
|
2554
|
+
}
|
2555
|
+
}), _l = /* @__PURE__ */ q({
|
2556
|
+
__name: "DomainProviderFormModal",
|
2557
|
+
emits: ["refresh"],
|
2558
|
+
setup(w, { expose: x, emit: h }) {
|
2559
|
+
const g = h, V = {
|
2560
|
+
id: 0,
|
2561
|
+
name: "",
|
2562
|
+
en_name: "",
|
2563
|
+
key: "",
|
2564
|
+
secret: "",
|
2565
|
+
end_point: "",
|
2566
|
+
status: 1,
|
2567
|
+
remark: ""
|
2568
|
+
}, f = {
|
2569
|
+
name: [{ required: !0, message: a("base.placeholder.input base.name"), trigger: "blur" }],
|
2570
|
+
en_name: { required: !0, message: a("base.placeholder.input base.en_name"), trigger: "blur" },
|
2571
|
+
key: { required: !0, message: a("base.placeholder.input base.key"), trigger: "blur" },
|
2572
|
+
secret: { required: !0, message: a("base.placeholder.input config.secret"), trigger: "blur" },
|
2573
|
+
end_point: { required: !0, message: a("base.placeholder.input config.endpoint"), trigger: "blur" }
|
2574
|
+
}, { modal: i, title: p, form: m, formData: n, requesting: y, executing: u, open: c, modify: k, submit: v, closed: A } = Y(g, V, de);
|
2575
|
+
return x({
|
2576
|
+
open: c,
|
2577
|
+
modify: k
|
2578
|
+
}), (_, o) => {
|
2579
|
+
const d = s("el-input"), r = s("el-form-item"), R = s("el-form");
|
2580
|
+
return D(), T(e(H), {
|
2581
|
+
modelValue: e(i),
|
2582
|
+
"onUpdate:modelValue": o[6] || (o[6] = (b) => z(i) ? i.value = b : null),
|
2583
|
+
title: e(p)("config.domain"),
|
2584
|
+
width: "600px",
|
2585
|
+
executing: e(u),
|
2586
|
+
onClosed: e(A),
|
2587
|
+
onSubmit: e(v)
|
2588
|
+
}, {
|
2589
|
+
default: t(() => [
|
2590
|
+
l(R, {
|
2591
|
+
ref_key: "form",
|
2592
|
+
ref: m,
|
2593
|
+
model: e(n),
|
2594
|
+
"label-width": "auto",
|
2595
|
+
rules: f,
|
2596
|
+
disabled: e(y) || e(u)
|
2597
|
+
}, {
|
2598
|
+
default: t(() => [
|
2599
|
+
l(r, {
|
2600
|
+
prop: "name",
|
2601
|
+
label: e(a)("base.name")
|
2602
|
+
}, {
|
2603
|
+
default: t(() => [
|
2604
|
+
l(d, {
|
2605
|
+
modelValue: e(n).name,
|
2606
|
+
"onUpdate:modelValue": o[0] || (o[0] = (b) => e(n).name = b),
|
2607
|
+
disabled: e(u),
|
2608
|
+
placeholder: e(a)("base.placeholder.input")
|
2609
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2610
|
+
]),
|
2611
|
+
_: 1
|
2612
|
+
}, 8, ["label"]),
|
2613
|
+
l(r, {
|
2614
|
+
prop: "en_name",
|
2615
|
+
label: e(a)("base.en_name")
|
2616
|
+
}, {
|
2617
|
+
default: t(() => [
|
2618
|
+
l(d, {
|
2619
|
+
modelValue: e(n).en_name,
|
2620
|
+
"onUpdate:modelValue": o[1] || (o[1] = (b) => e(n).en_name = b),
|
2621
|
+
disabled: e(u),
|
2622
|
+
placeholder: e(a)("base.placeholder.input")
|
2623
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2624
|
+
]),
|
2625
|
+
_: 1
|
2626
|
+
}, 8, ["label"]),
|
2627
|
+
l(r, {
|
2628
|
+
prop: "key",
|
2629
|
+
label: e(a)("base.key")
|
2630
|
+
}, {
|
2631
|
+
default: t(() => [
|
2632
|
+
l(d, {
|
2633
|
+
modelValue: e(n).key,
|
2634
|
+
"onUpdate:modelValue": o[2] || (o[2] = (b) => e(n).key = b),
|
2635
|
+
disabled: e(u),
|
2636
|
+
placeholder: e(a)("base.placeholder.input")
|
2637
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2638
|
+
]),
|
2639
|
+
_: 1
|
2640
|
+
}, 8, ["label"]),
|
2641
|
+
l(r, {
|
2642
|
+
prop: "secret",
|
2643
|
+
label: e(a)("config.secret")
|
2644
|
+
}, {
|
2645
|
+
default: t(() => [
|
2646
|
+
l(d, {
|
2647
|
+
modelValue: e(n).secret,
|
2648
|
+
"onUpdate:modelValue": o[3] || (o[3] = (b) => e(n).secret = b),
|
2649
|
+
disabled: e(u),
|
2650
|
+
placeholder: e(a)("base.placeholder.input")
|
2651
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2652
|
+
]),
|
2653
|
+
_: 1
|
2654
|
+
}, 8, ["label"]),
|
2655
|
+
l(r, {
|
2656
|
+
prop: "end_point",
|
2657
|
+
label: e(a)("config.end_point")
|
2658
|
+
}, {
|
2659
|
+
default: t(() => [
|
2660
|
+
l(d, {
|
2661
|
+
modelValue: e(n).end_point,
|
2662
|
+
"onUpdate:modelValue": o[4] || (o[4] = (b) => e(n).end_point = b),
|
2663
|
+
disabled: e(u),
|
2664
|
+
placeholder: e(a)("base.placeholder.input")
|
2665
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2666
|
+
]),
|
2667
|
+
_: 1
|
2668
|
+
}, 8, ["label"]),
|
2669
|
+
l(r, {
|
2670
|
+
prop: "remark",
|
2671
|
+
label: e(a)("base.remark")
|
2672
|
+
}, {
|
2673
|
+
default: t(() => [
|
2674
|
+
l(d, {
|
2675
|
+
modelValue: e(n).remark,
|
2676
|
+
"onUpdate:modelValue": o[5] || (o[5] = (b) => e(n).remark = b),
|
2677
|
+
disabled: e(u),
|
2678
|
+
placeholder: e(a)("base.placeholder.input")
|
2679
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
2680
|
+
]),
|
2681
|
+
_: 1
|
2682
|
+
}, 8, ["label"])
|
2683
|
+
]),
|
2684
|
+
_: 1
|
2685
|
+
}, 8, ["model", "disabled"])
|
2686
|
+
]),
|
2687
|
+
_: 1
|
2688
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
2689
|
+
};
|
2690
|
+
}
|
2691
|
+
}), gl = /* @__PURE__ */ q({
|
2692
|
+
__name: "DomainProviderTableDrawer",
|
2693
|
+
setup(w, {
|
2694
|
+
expose: x
|
2695
|
+
}) {
|
2696
|
+
const {
|
2697
|
+
requesting: h
|
2698
|
+
} = F(de), g = j(!1), {
|
2699
|
+
tableRef: V,
|
2700
|
+
formModalRef: f,
|
2701
|
+
refresh: i,
|
2702
|
+
openFormModal: p,
|
2703
|
+
editFormModal: m
|
2704
|
+
} = $({}), n = [{
|
2705
|
+
prop: "name",
|
2706
|
+
label: a("base.name"),
|
2707
|
+
width: 0,
|
2708
|
+
minWidth: 140
|
2709
|
+
}, {
|
2710
|
+
prop: "en_name",
|
2711
|
+
label: a("base.en_name"),
|
2712
|
+
width: 120
|
2713
|
+
}, {
|
2714
|
+
prop: "actions",
|
2715
|
+
label: a("base.action"),
|
2716
|
+
width: 60,
|
2717
|
+
align: "center",
|
2718
|
+
render: ({
|
2719
|
+
rowData: u
|
2720
|
+
}) => l(s("el-space"), null, {
|
2721
|
+
default: () => [l(X, {
|
2722
|
+
icon: "icon-edit",
|
2723
|
+
t: "",
|
2724
|
+
onModify: () => m({
|
2725
|
+
id: u.id
|
2726
|
+
})
|
2727
|
+
}, null)]
|
2728
|
+
})
|
2729
|
+
}];
|
2730
|
+
return x({
|
2731
|
+
open: () => {
|
2732
|
+
g.value = !0;
|
2733
|
+
}
|
2734
|
+
}), (u, c) => {
|
2735
|
+
const k = s("el-page-header");
|
2736
|
+
return D(), T(e(_e), {
|
2737
|
+
modelValue: g.value,
|
2738
|
+
"onUpdate:modelValue": c[0] || (c[0] = (v) => g.value = v),
|
2739
|
+
width: "400px",
|
2740
|
+
"show-close": !1,
|
2741
|
+
class: "basic-drawer"
|
2742
|
+
}, {
|
2743
|
+
title: t(() => [l(k, {
|
2744
|
+
icon: ""
|
2745
|
+
}, {
|
2746
|
+
title: t(() => [N("span", null, Q(e(a)("config.domain config.provider")), 1)]),
|
2747
|
+
content: t(() => [l(e(B), {
|
2748
|
+
onRefresh: e(i),
|
2749
|
+
size: "default",
|
2750
|
+
loading: e(h)
|
2751
|
+
}, null, 8, ["onRefresh", "loading"])]),
|
2752
|
+
extra: t(() => [l(e(I), {
|
2753
|
+
onOpen: e(p)
|
2754
|
+
}, null, 8, ["onOpen"])]),
|
2755
|
+
_: 1
|
2756
|
+
})]),
|
2757
|
+
default: t(() => [l(e(ne), {
|
2758
|
+
ref_key: "tableRef",
|
2759
|
+
ref: V,
|
2760
|
+
size: "small",
|
2761
|
+
"row-key": "id",
|
2762
|
+
url: e(de).urls.list,
|
2763
|
+
columns: n,
|
2764
|
+
loading: e(h)
|
2765
|
+
}, null, 8, ["url", "loading"]), l(_l, {
|
2766
|
+
ref_key: "formModalRef",
|
2767
|
+
ref: f,
|
2768
|
+
onRefresh: e(i)
|
2769
|
+
}, null, 8, ["onRefresh"])]),
|
2770
|
+
_: 1
|
2771
|
+
}, 8, ["modelValue"]);
|
2772
|
+
};
|
2773
|
+
}
|
2774
|
+
}), hl = /* @__PURE__ */ q({
|
2775
|
+
__name: "DomainTableDrawer",
|
2776
|
+
setup(w, {
|
2777
|
+
expose: x
|
2778
|
+
}) {
|
2779
|
+
const {
|
2780
|
+
requesting: h
|
2781
|
+
} = F(le), g = j(!1), {
|
2782
|
+
tableRef: V,
|
2783
|
+
formModalRef: f,
|
2784
|
+
refresh: i,
|
2785
|
+
openFormModal: p,
|
2786
|
+
editFormModal: m
|
2787
|
+
} = $(), {
|
2788
|
+
formModalRef: n,
|
2789
|
+
openFormModal: y,
|
2790
|
+
editFormModal: u
|
2791
|
+
} = $(), {
|
2792
|
+
formModalRef: c,
|
2793
|
+
openFormModal: k
|
2794
|
+
} = $(), v = [{
|
2795
|
+
prop: "provider",
|
2796
|
+
label: a("config.domain config.provider"),
|
2797
|
+
width: 120,
|
2798
|
+
cellRenderer: ({
|
2799
|
+
rowData: _
|
2800
|
+
}) => l(s("el-text"), null, {
|
2801
|
+
default: () => {
|
2802
|
+
var o;
|
2803
|
+
return [(o = _.provider) == null ? void 0 : o.name];
|
2804
|
+
}
|
2805
|
+
})
|
2806
|
+
}, {
|
2807
|
+
prop: "name",
|
2808
|
+
label: a("base.name"),
|
2809
|
+
width: 0,
|
2810
|
+
minWidth: 120
|
2811
|
+
}, {
|
2812
|
+
prop: "expired_text",
|
2813
|
+
label: a("base.expired_at"),
|
2814
|
+
width: 160
|
2815
|
+
}, {
|
2816
|
+
prop: "actions",
|
2817
|
+
label: a("base.action"),
|
2818
|
+
width: 100,
|
2819
|
+
align: "center",
|
2820
|
+
render: ({
|
2821
|
+
rowData: _
|
2822
|
+
}) => l(s("el-space"), null, {
|
2823
|
+
default: () => [l(X, {
|
2824
|
+
icon: "icon-edit",
|
2825
|
+
t: "",
|
2826
|
+
onModify: () => m({
|
2827
|
+
id: _.id
|
2828
|
+
})
|
2829
|
+
}, null), l(I, {
|
2830
|
+
icon: "icon-safetycertificate-f",
|
2831
|
+
type: "primary",
|
2832
|
+
size: "small",
|
2833
|
+
link: !0,
|
2834
|
+
onOpen: () => {
|
2835
|
+
var o;
|
2836
|
+
_.ssl && _.ssl.id ? u({
|
2837
|
+
id: (o = _.ssl) == null ? void 0 : o.id
|
2838
|
+
}) : (n.value.formData.domain_id = _.id, n.value.formData.site_id = 0, y());
|
2839
|
+
}
|
2840
|
+
}, null)]
|
2841
|
+
})
|
2842
|
+
}];
|
2843
|
+
return x({
|
2844
|
+
open: () => {
|
2845
|
+
g.value = !0;
|
2846
|
+
}
|
2847
|
+
}), (_, o) => {
|
2848
|
+
const d = s("el-space"), r = s("el-page-header");
|
2849
|
+
return D(), T(e(_e), {
|
2850
|
+
modelValue: g.value,
|
2851
|
+
"onUpdate:modelValue": o[0] || (o[0] = (R) => g.value = R),
|
2852
|
+
width: "600px",
|
2853
|
+
"show-close": !1,
|
2854
|
+
class: "basic-drawer"
|
2855
|
+
}, {
|
2856
|
+
title: t(() => [l(r, {
|
2857
|
+
icon: ""
|
2858
|
+
}, {
|
2859
|
+
title: t(() => [N("span", null, Q(e(a)("config.domain")), 1)]),
|
2860
|
+
content: t(() => [l(e(B), {
|
2861
|
+
onRefresh: e(i),
|
2862
|
+
size: "default",
|
2863
|
+
loading: e(h)
|
2864
|
+
}, null, 8, ["onRefresh", "loading"]), l(e(I), {
|
2865
|
+
onOpen: e(p)
|
2866
|
+
}, null, 8, ["onOpen"])]),
|
2867
|
+
extra: t(() => [l(d, {
|
2868
|
+
class: "w-full extra-tool",
|
2869
|
+
alignment: "center"
|
2870
|
+
}, {
|
2871
|
+
default: t(() => [l(e(I), {
|
2872
|
+
onOpen: e(k),
|
2873
|
+
type: "danger"
|
2874
|
+
}, null, 8, ["onOpen"])]),
|
2875
|
+
_: 1
|
2876
|
+
})]),
|
2877
|
+
_: 1
|
2878
|
+
})]),
|
2879
|
+
default: t(() => [l(e(ne), {
|
2880
|
+
ref_key: "tableRef",
|
2881
|
+
ref: V,
|
2882
|
+
size: "small",
|
2883
|
+
"row-key": "id",
|
2884
|
+
url: e(le).urls.list,
|
2885
|
+
columns: v,
|
2886
|
+
loading: e(h)
|
2887
|
+
}, null, 8, ["url", "loading"]), l(cl, {
|
2888
|
+
ref_key: "formModalRef",
|
2889
|
+
ref: f,
|
2890
|
+
onRefresh: e(i)
|
2891
|
+
}, null, 8, ["onRefresh"]), l(fl, {
|
2892
|
+
ref_key: "sslFormModalRef",
|
2893
|
+
ref: n,
|
2894
|
+
onRefresh: e(i)
|
2895
|
+
}, null, 8, ["onRefresh"]), l(gl, {
|
2896
|
+
ref_key: "providerTableDrawerRef",
|
2897
|
+
ref: c
|
2898
|
+
}, null, 512)]),
|
2899
|
+
_: 1
|
2900
|
+
}, 8, ["modelValue"]);
|
2901
|
+
};
|
2902
|
+
}
|
2903
|
+
}), Ve = W("SSLLog", {}, "id", [], []), ye = W(
|
2904
|
+
"SSL",
|
2905
|
+
{
|
2906
|
+
gen: "gen"
|
2907
|
+
},
|
2908
|
+
"id",
|
2909
|
+
[],
|
2910
|
+
["gen"]
|
2911
|
+
), Vl = /* @__PURE__ */ q({
|
2912
|
+
__name: "SSLLogTableDrawer",
|
2913
|
+
props: {
|
2914
|
+
ssl: {
|
2915
|
+
type: Object,
|
2916
|
+
default: () => ({})
|
2917
|
+
}
|
2918
|
+
},
|
2919
|
+
setup(w, {
|
2920
|
+
expose: x
|
2921
|
+
}) {
|
2922
|
+
const h = w, {
|
2923
|
+
requesting: g,
|
2924
|
+
executing: V
|
2925
|
+
} = F([Ve, ye]), f = j(!1), {
|
2926
|
+
tableRef: i,
|
2927
|
+
refresh: p
|
2928
|
+
} = $(), m = [{
|
2929
|
+
prop: "status_text",
|
2930
|
+
label: a("base.status"),
|
2931
|
+
width: 100
|
2932
|
+
}, {
|
2933
|
+
prop: "at",
|
2934
|
+
label: a("base.time"),
|
2935
|
+
width: 180
|
2936
|
+
}, {
|
2937
|
+
prop: "type_text",
|
2938
|
+
label: a("base.type"),
|
2939
|
+
width: 80
|
2940
|
+
}, {
|
2941
|
+
prop: "result",
|
2942
|
+
label: a("base.result"),
|
2943
|
+
width: 0
|
2944
|
+
}], n = () => {
|
2945
|
+
f.value = !0;
|
2946
|
+
};
|
2947
|
+
function y() {
|
2948
|
+
ye.gen({
|
2949
|
+
id: h.ssl.id
|
2950
|
+
}).then((c) => {
|
2951
|
+
console.log("Res:", c);
|
2952
|
+
});
|
2953
|
+
}
|
2954
|
+
function u() {
|
2955
|
+
const c = $e.getDownloadUrl(h.ssl.path + ".zip");
|
2956
|
+
fetch(c).then((k) => k.blob()).then((k) => {
|
2957
|
+
let v = URL.createObjectURL(k), A = document.createElement("a");
|
2958
|
+
A.style.display = "none", A.href = v, A.download = h.ssl.name + ".zip", A.click(), URL.revokeObjectURL(k);
|
2959
|
+
});
|
2960
|
+
}
|
2961
|
+
return x({
|
2962
|
+
open: n
|
2963
|
+
}), (c, k) => {
|
2964
|
+
const v = s("el-page-header");
|
2965
|
+
return D(), T(e(_e), {
|
2966
|
+
modelValue: f.value,
|
2967
|
+
"onUpdate:modelValue": k[0] || (k[0] = (A) => f.value = A),
|
2968
|
+
width: "600px",
|
2969
|
+
"show-close": !1,
|
2970
|
+
class: "basic-drawer"
|
2971
|
+
}, {
|
2972
|
+
title: t(() => [l(v, {
|
2973
|
+
icon: ""
|
2974
|
+
}, {
|
2975
|
+
title: t(() => [N("span", null, Q(e(a)("config.ssl base.log")), 1)]),
|
2976
|
+
content: t(() => [l(e(B), {
|
2977
|
+
onRefresh: e(p),
|
2978
|
+
size: "default",
|
2979
|
+
loading: e(g)
|
2980
|
+
}, null, 8, ["onRefresh", "loading"])]),
|
2981
|
+
extra: t(() => [l(e(be), {
|
2982
|
+
size: "default",
|
2983
|
+
type: "danger",
|
2984
|
+
icon: "icon-key",
|
2985
|
+
loading: e(V),
|
2986
|
+
onClick: y
|
2987
|
+
}, null, 8, ["loading"]), l(e(be), {
|
2988
|
+
size: "default",
|
2989
|
+
type: "primary",
|
2990
|
+
icon: "icon-cloud-download",
|
2991
|
+
loading: e(V),
|
2992
|
+
onClick: u
|
2993
|
+
}, null, 8, ["loading"])]),
|
2994
|
+
_: 1
|
2995
|
+
})]),
|
2996
|
+
default: t(() => [l(e(se), {
|
2997
|
+
ref_key: "tableRef",
|
2998
|
+
ref: i,
|
2999
|
+
size: "small",
|
3000
|
+
"row-key": "id",
|
3001
|
+
url: e(Ve).urls.search,
|
3002
|
+
columns: m,
|
3003
|
+
loading: e(g)
|
3004
|
+
}, null, 8, ["url", "loading"])]),
|
3005
|
+
_: 1
|
3006
|
+
}, 8, ["modelValue"]);
|
3007
|
+
};
|
3008
|
+
}
|
3009
|
+
}), yl = /* @__PURE__ */ q({
|
3010
|
+
__name: "index",
|
3011
|
+
setup(w) {
|
3012
|
+
const x = j(), {
|
3013
|
+
requesting: h,
|
3014
|
+
executing: g
|
3015
|
+
} = F(ee), {
|
3016
|
+
tableRef: V,
|
3017
|
+
formModalRef: f,
|
3018
|
+
refresh: i,
|
3019
|
+
openFormModal: p,
|
3020
|
+
editFormModal: m
|
3021
|
+
} = $(), {
|
3022
|
+
formModalRef: n,
|
3023
|
+
openFormModal: y
|
3024
|
+
} = $(), {
|
3025
|
+
formModalRef: u,
|
3026
|
+
openFormModal: c
|
3027
|
+
} = $(), k = [{
|
3028
|
+
prop: "domain.name",
|
3029
|
+
label: a("config.domain"),
|
3030
|
+
width: 129,
|
3031
|
+
type: "copy"
|
3032
|
+
}, {
|
3033
|
+
prop: "name",
|
3034
|
+
label: a("base.name"),
|
3035
|
+
width: 100
|
3036
|
+
}, {
|
3037
|
+
prop: "dns",
|
3038
|
+
label: a("config.dns"),
|
3039
|
+
width: 160,
|
3040
|
+
type: "copy"
|
3041
|
+
}, {
|
3042
|
+
prop: "git",
|
3043
|
+
label: a("config.git"),
|
3044
|
+
width: 300,
|
3045
|
+
type: "copy"
|
3046
|
+
}, {
|
3047
|
+
prop: "expired_at",
|
3048
|
+
label: a("config.ssl base.expired_at"),
|
3049
|
+
align: "center",
|
3050
|
+
width: 140,
|
3051
|
+
cellRenderer: ({
|
3052
|
+
rowData: _
|
3053
|
+
}) => l(s("el-space"), null, {
|
3054
|
+
default: () => [l(s("el-text"), null, {
|
3055
|
+
default: () => {
|
3056
|
+
var o;
|
3057
|
+
return [(o = _.ssl) == null ? void 0 : o.renewal_days, J(" 天")];
|
3058
|
+
}
|
3059
|
+
}), l(s("el-button"), {
|
3060
|
+
size: "small",
|
3061
|
+
type: "primary",
|
3062
|
+
text: !0,
|
3063
|
+
onClick: (o) => {
|
3064
|
+
o.stopPropagation(), _.ssl && _.ssl.id && (x.value = _.ssl, c());
|
3065
|
+
}
|
3066
|
+
}, {
|
3067
|
+
default: () => [l("span", {
|
3068
|
+
class: "icon iconfont icon-reloadtime"
|
3069
|
+
}, null)]
|
3070
|
+
})]
|
3071
|
+
})
|
3072
|
+
}, {
|
3073
|
+
prop: "remark",
|
3074
|
+
label: a("base.remark"),
|
3075
|
+
width: 0,
|
3076
|
+
minWidth: 160
|
3077
|
+
}, {
|
3078
|
+
prop: "operation",
|
3079
|
+
label: a("base.action"),
|
3080
|
+
width: 100,
|
3081
|
+
align: "center",
|
3082
|
+
cellRenderer: ({
|
3083
|
+
rowData: _
|
3084
|
+
}) => l(s("el-space"), null, {
|
3085
|
+
default: () => [l(X, {
|
3086
|
+
icon: "icon-edit",
|
3087
|
+
t: "",
|
3088
|
+
onModify: () => m({
|
3089
|
+
id: _.id
|
3090
|
+
})
|
3091
|
+
}, null), l(be, {
|
3092
|
+
icon: "icon-securityscan",
|
3093
|
+
type: "primary",
|
3094
|
+
size: "small",
|
3095
|
+
link: !0,
|
3096
|
+
disabled: g.value,
|
3097
|
+
loading: v.value == _.id && g.value,
|
3098
|
+
onClick: () => A(_)
|
3099
|
+
}, null)]
|
3100
|
+
})
|
3101
|
+
}], v = j(0), A = (_) => {
|
3102
|
+
v.value = _.id, ee.check({
|
3103
|
+
id: _.id
|
3104
|
+
}).then((o) => {
|
3105
|
+
o.data && (ze(o), i());
|
3106
|
+
}).finally(() => {
|
3107
|
+
v.value = 0;
|
3108
|
+
});
|
3109
|
+
};
|
3110
|
+
return (_, o) => {
|
3111
|
+
const d = s("el-space"), r = s("el-page-header"), R = s("el-card");
|
3112
|
+
return D(), T(R, {
|
3113
|
+
"body-style": {
|
3114
|
+
padding: "12px",
|
3115
|
+
height: "450px"
|
3116
|
+
},
|
3117
|
+
"body-class": "flex-1",
|
3118
|
+
class: "config-card"
|
3119
|
+
}, {
|
3120
|
+
header: t(() => [l(r, {
|
3121
|
+
icon: ""
|
3122
|
+
}, {
|
3123
|
+
title: t(() => [N("span", null, Q(e(a)("config.keys.sites")), 1)]),
|
3124
|
+
content: t(() => [l(d, {
|
3125
|
+
alignment: "center",
|
3126
|
+
style: {
|
3127
|
+
height: "32px"
|
3128
|
+
}
|
3129
|
+
}, {
|
3130
|
+
default: t(() => [l(e(B), {
|
3131
|
+
loading: e(h),
|
3132
|
+
onRefresh: e(i)
|
3133
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(I), {
|
3134
|
+
onOpen: e(p)
|
3135
|
+
}, null, 8, ["onOpen"])]),
|
3136
|
+
_: 1
|
3137
|
+
})]),
|
3138
|
+
extra: t(() => [l(e(I), {
|
3139
|
+
onOpen: e(y),
|
3140
|
+
icon: "icon-compass"
|
3141
|
+
}, null, 8, ["onOpen"])]),
|
3142
|
+
_: 1
|
3143
|
+
})]),
|
3144
|
+
default: t(() => [l(e(ne), {
|
3145
|
+
ref_key: "tableRef",
|
3146
|
+
ref: V,
|
3147
|
+
size: "small",
|
3148
|
+
"row-key": "id",
|
3149
|
+
url: e(ee).urls[e(Pe)],
|
3150
|
+
"auto-search": "",
|
3151
|
+
columns: k
|
3152
|
+
}, null, 8, ["url"]), l(pl, {
|
3153
|
+
ref_key: "formModalRef",
|
3154
|
+
ref: f,
|
3155
|
+
onRefresh: e(i)
|
3156
|
+
}, null, 8, ["onRefresh"]), l(hl, {
|
3157
|
+
ref_key: "domainTableDrawerRef",
|
3158
|
+
ref: n
|
3159
|
+
}, null, 512), l(Vl, {
|
3160
|
+
ref_key: "sslLogTableDrawerRef",
|
3161
|
+
ref: u
|
3162
|
+
}, null, 512)]),
|
3163
|
+
_: 1
|
3164
|
+
});
|
3165
|
+
};
|
3166
|
+
}
|
3167
|
+
}), kl = /* @__PURE__ */ Ue(yl, [["__scopeId", "data-v-6c4480ad"]]), vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
3168
|
+
__proto__: null,
|
3169
|
+
default: kl
|
3170
|
+
}, Symbol.toStringTag, { value: "Module" })), ke = {
|
1988
3171
|
request: "request",
|
1989
3172
|
error: "error",
|
1990
3173
|
sql: "SQL"
|
1991
|
-
},
|
3174
|
+
}, ae = we.createAutoApi("log", ke, "id", Object.keys(ke), [], []), Ml = /* @__PURE__ */ q({
|
1992
3175
|
__name: "index",
|
1993
|
-
setup(
|
1994
|
-
const
|
1995
|
-
dates: [
|
1996
|
-
},
|
3176
|
+
setup(w) {
|
3177
|
+
const x = {
|
3178
|
+
dates: [C.getCurrentHour().format(C.DATE_VALUE_FORMAT), C.getCurrentHour(1).format(C.DATE_VALUE_FORMAT)]
|
3179
|
+
}, h = [{
|
1997
3180
|
label: a("base.sort"),
|
1998
3181
|
type: "index",
|
1999
3182
|
width: 60
|
@@ -2002,76 +3185,76 @@ const je = /* @__PURE__ */ D({
|
|
2002
3185
|
prop: "time",
|
2003
3186
|
width: 180,
|
2004
3187
|
render: ({
|
2005
|
-
rowData:
|
2006
|
-
}) => l(
|
3188
|
+
rowData: m
|
3189
|
+
}) => l(K, null, [C.formatDate(m.time)])
|
2007
3190
|
}, {
|
2008
3191
|
label: a("base.url"),
|
2009
3192
|
prop: "url",
|
2010
3193
|
align: "left",
|
2011
3194
|
width: 200
|
2012
3195
|
}], {
|
2013
|
-
requesting:
|
2014
|
-
} = F(
|
2015
|
-
tableRef:
|
2016
|
-
keyword:
|
2017
|
-
search:
|
2018
|
-
reset:
|
2019
|
-
} =
|
2020
|
-
return (
|
2021
|
-
const
|
2022
|
-
return
|
3196
|
+
requesting: g
|
3197
|
+
} = F(ae), {
|
3198
|
+
tableRef: V,
|
3199
|
+
keyword: f,
|
3200
|
+
search: i,
|
3201
|
+
reset: p
|
3202
|
+
} = $(x);
|
3203
|
+
return (m, n) => {
|
3204
|
+
const y = s("el-date-picker"), u = s("el-space"), c = s("el-page-header"), k = s("el-card");
|
3205
|
+
return D(), T(k, {
|
2023
3206
|
class: "basic-card flex-full",
|
2024
3207
|
"body-class": "flex-1"
|
2025
3208
|
}, {
|
2026
|
-
header:
|
3209
|
+
header: t(() => [l(c, {
|
2027
3210
|
class: "basic-header"
|
2028
3211
|
}, {
|
2029
|
-
title:
|
2030
|
-
loading: e(
|
2031
|
-
onRefresh: e(
|
3212
|
+
title: t(() => [l(e(B), {
|
3213
|
+
loading: e(g),
|
3214
|
+
onRefresh: e(p)
|
2032
3215
|
}, null, 8, ["loading", "onRefresh"])]),
|
2033
|
-
content:
|
3216
|
+
content: t(() => [l(u, {
|
2034
3217
|
class: "search-bar"
|
2035
3218
|
}, {
|
2036
|
-
default:
|
2037
|
-
modelValue: e(
|
2038
|
-
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(
|
3219
|
+
default: t(() => [l(y, {
|
3220
|
+
modelValue: e(f).dates,
|
3221
|
+
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(f).dates = v),
|
2039
3222
|
class: "basic-search-datetimerange",
|
2040
|
-
"value-format": e(
|
2041
|
-
format: e(
|
3223
|
+
"value-format": e(C).DATE_HOUR_FORMAT,
|
3224
|
+
format: e(C).DATE_SHOW_FORMAT,
|
2042
3225
|
type: "datetimerange",
|
2043
3226
|
"range-separator": "-",
|
2044
3227
|
"start-placeholder": e(a)("base.start_at"),
|
2045
3228
|
"end-placeholder": e(a)("base.end_at"),
|
2046
3229
|
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(
|
3230
|
+
onChange: n[1] || (n[1] = (v) => e(i)())
|
3231
|
+
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(Z), {
|
3232
|
+
disabled: e(g),
|
3233
|
+
onSearch: n[2] || (n[2] = (v) => e(i)())
|
2051
3234
|
}, null, 8, ["disabled"])]),
|
2052
3235
|
_: 1
|
2053
3236
|
})]),
|
2054
3237
|
_: 1
|
2055
3238
|
})]),
|
2056
|
-
default:
|
3239
|
+
default: t(() => [l(e(ne), {
|
2057
3240
|
ref_key: "tableRef",
|
2058
|
-
ref:
|
3241
|
+
ref: V,
|
2059
3242
|
size: "small",
|
2060
|
-
columns:
|
2061
|
-
url: e(
|
2062
|
-
"search-param": e(
|
3243
|
+
columns: h,
|
3244
|
+
url: e(ae).urls.request,
|
3245
|
+
"search-param": e(f),
|
2063
3246
|
autoSearch: ""
|
2064
3247
|
}, null, 8, ["url", "search-param"])]),
|
2065
3248
|
_: 1
|
2066
3249
|
});
|
2067
3250
|
};
|
2068
3251
|
}
|
2069
|
-
}),
|
3252
|
+
}), Dl = /* @__PURE__ */ q({
|
2070
3253
|
__name: "index",
|
2071
|
-
setup(
|
2072
|
-
const
|
2073
|
-
dates: [
|
2074
|
-
},
|
3254
|
+
setup(w) {
|
3255
|
+
const x = {
|
3256
|
+
dates: [C.getCurrentDate(-7).format(C.DATE_VALUE_FORMAT), C.getCurrentDate(0).format(C.DATE_VALUE_FORMAT)]
|
3257
|
+
}, h = [{
|
2075
3258
|
label: a("base.sort"),
|
2076
3259
|
type: "index",
|
2077
3260
|
width: 60
|
@@ -2080,76 +3263,76 @@ const je = /* @__PURE__ */ D({
|
|
2080
3263
|
prop: "time",
|
2081
3264
|
width: 180,
|
2082
3265
|
render: ({
|
2083
|
-
rowData:
|
2084
|
-
}) => l(
|
3266
|
+
rowData: m
|
3267
|
+
}) => l(K, null, [C.formatDate(m.time)])
|
2085
3268
|
}, {
|
2086
3269
|
label: a("base.url"),
|
2087
3270
|
prop: "url",
|
2088
3271
|
align: "left",
|
2089
3272
|
width: 200
|
2090
3273
|
}], {
|
2091
|
-
requesting:
|
2092
|
-
} = F(
|
2093
|
-
tableRef:
|
2094
|
-
keyword:
|
2095
|
-
search:
|
2096
|
-
reset:
|
2097
|
-
} =
|
2098
|
-
return (
|
2099
|
-
const
|
2100
|
-
return
|
3274
|
+
requesting: g
|
3275
|
+
} = F(ae), {
|
3276
|
+
tableRef: V,
|
3277
|
+
keyword: f,
|
3278
|
+
search: i,
|
3279
|
+
reset: p
|
3280
|
+
} = $(x);
|
3281
|
+
return (m, n) => {
|
3282
|
+
const y = s("el-date-picker"), u = s("el-space"), c = s("el-page-header"), k = s("el-card");
|
3283
|
+
return D(), T(k, {
|
2101
3284
|
class: "basic-card flex-full",
|
2102
3285
|
"body-class": "flex-1"
|
2103
3286
|
}, {
|
2104
|
-
header:
|
3287
|
+
header: t(() => [l(c, {
|
2105
3288
|
class: "basic-header"
|
2106
3289
|
}, {
|
2107
|
-
title:
|
2108
|
-
loading: e(
|
2109
|
-
onRefresh: e(
|
3290
|
+
title: t(() => [l(e(B), {
|
3291
|
+
loading: e(g),
|
3292
|
+
onRefresh: e(p)
|
2110
3293
|
}, null, 8, ["loading", "onRefresh"])]),
|
2111
|
-
content:
|
3294
|
+
content: t(() => [l(u, {
|
2112
3295
|
class: "search-bar"
|
2113
3296
|
}, {
|
2114
|
-
default:
|
2115
|
-
modelValue: e(
|
2116
|
-
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(
|
3297
|
+
default: t(() => [l(y, {
|
3298
|
+
modelValue: e(f).dates,
|
3299
|
+
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(f).dates = v),
|
2117
3300
|
class: "basic-search-daterange",
|
2118
|
-
"value-format": e(
|
2119
|
-
format: e(
|
3301
|
+
"value-format": e(C).DATE_VALUE_FORMAT,
|
3302
|
+
format: e(C).DATE_FORMAT,
|
2120
3303
|
type: "daterange",
|
2121
3304
|
"range-separator": "-",
|
2122
3305
|
"start-placeholder": e(a)("base.start_at"),
|
2123
3306
|
"end-placeholder": e(a)("base.end_at"),
|
2124
3307
|
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(
|
3308
|
+
onChange: n[1] || (n[1] = (v) => e(i)())
|
3309
|
+
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(Z), {
|
3310
|
+
disabled: e(g),
|
3311
|
+
onSearch: n[2] || (n[2] = (v) => e(i)())
|
2129
3312
|
}, null, 8, ["disabled"])]),
|
2130
3313
|
_: 1
|
2131
3314
|
})]),
|
2132
3315
|
_: 1
|
2133
3316
|
})]),
|
2134
|
-
default:
|
3317
|
+
default: t(() => [l(e(ne), {
|
2135
3318
|
ref_key: "tableRef",
|
2136
|
-
ref:
|
3319
|
+
ref: V,
|
2137
3320
|
size: "small",
|
2138
|
-
columns:
|
2139
|
-
url: e(
|
2140
|
-
"search-param": e(
|
3321
|
+
columns: h,
|
3322
|
+
url: e(ae).urls.error,
|
3323
|
+
"search-param": e(f),
|
2141
3324
|
autoSearch: ""
|
2142
3325
|
}, null, 8, ["url", "search-param"])]),
|
2143
3326
|
_: 1
|
2144
3327
|
});
|
2145
3328
|
};
|
2146
3329
|
}
|
2147
|
-
}),
|
3330
|
+
}), Sl = /* @__PURE__ */ q({
|
2148
3331
|
__name: "index",
|
2149
|
-
setup(
|
2150
|
-
const
|
2151
|
-
dates: [
|
2152
|
-
},
|
3332
|
+
setup(w) {
|
3333
|
+
const x = {
|
3334
|
+
dates: [C.getCurrentDate(-7).format(C.DATE_VALUE_FORMAT), C.getCurrentDate().format(C.DATE_VALUE_FORMAT)]
|
3335
|
+
}, h = [{
|
2153
3336
|
label: a("base.sort"),
|
2154
3337
|
type: "index",
|
2155
3338
|
width: 60
|
@@ -2158,115 +3341,117 @@ const je = /* @__PURE__ */ D({
|
|
2158
3341
|
prop: "time",
|
2159
3342
|
width: 180,
|
2160
3343
|
render: ({
|
2161
|
-
rowData:
|
2162
|
-
}) => l(
|
3344
|
+
rowData: m
|
3345
|
+
}) => l(K, null, [C.formatDate(m.time)])
|
2163
3346
|
}, {
|
2164
3347
|
label: a("base.url"),
|
2165
3348
|
prop: "url",
|
2166
3349
|
align: "left",
|
2167
3350
|
width: 200
|
2168
3351
|
}], {
|
2169
|
-
requesting:
|
2170
|
-
} = F(
|
2171
|
-
tableRef:
|
2172
|
-
keyword:
|
2173
|
-
search:
|
2174
|
-
reset:
|
2175
|
-
} =
|
2176
|
-
return (
|
2177
|
-
const
|
2178
|
-
return
|
3352
|
+
requesting: g
|
3353
|
+
} = F(ae), {
|
3354
|
+
tableRef: V,
|
3355
|
+
keyword: f,
|
3356
|
+
search: i,
|
3357
|
+
reset: p
|
3358
|
+
} = $(x);
|
3359
|
+
return (m, n) => {
|
3360
|
+
const y = s("el-date-picker"), u = s("el-space"), c = s("el-page-header"), k = s("el-card");
|
3361
|
+
return D(), T(k, {
|
2179
3362
|
class: "basic-card flex-full",
|
2180
3363
|
"body-class": "flex-1"
|
2181
3364
|
}, {
|
2182
|
-
header:
|
3365
|
+
header: t(() => [l(c, {
|
2183
3366
|
class: "basic-header"
|
2184
3367
|
}, {
|
2185
|
-
title:
|
2186
|
-
loading: e(
|
2187
|
-
onRefresh: e(
|
3368
|
+
title: t(() => [l(e(B), {
|
3369
|
+
loading: e(g),
|
3370
|
+
onRefresh: e(p)
|
2188
3371
|
}, null, 8, ["loading", "onRefresh"])]),
|
2189
|
-
content:
|
3372
|
+
content: t(() => [l(u, {
|
2190
3373
|
class: "search-bar"
|
2191
3374
|
}, {
|
2192
|
-
default:
|
2193
|
-
modelValue: e(
|
2194
|
-
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(
|
3375
|
+
default: t(() => [l(y, {
|
3376
|
+
modelValue: e(f).dates,
|
3377
|
+
"onUpdate:modelValue": n[0] || (n[0] = (v) => e(f).dates = v),
|
2195
3378
|
class: "basic-search-daterange",
|
2196
|
-
"value-format": e(
|
2197
|
-
format: e(
|
3379
|
+
"value-format": e(C).DATE_HOUR_FORMAT,
|
3380
|
+
format: e(C).DATE_FORMAT,
|
2198
3381
|
type: "daterange",
|
2199
3382
|
"range-separator": "-",
|
2200
3383
|
"start-placeholder": e(a)("base.start_at"),
|
2201
3384
|
"end-placeholder": e(a)("base.end_at"),
|
2202
3385
|
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(
|
3386
|
+
onChange: n[1] || (n[1] = (v) => e(i)())
|
3387
|
+
}, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(Z), {
|
3388
|
+
disabled: e(g),
|
3389
|
+
onSearch: n[2] || (n[2] = (v) => e(i)())
|
2207
3390
|
}, null, 8, ["disabled"])]),
|
2208
3391
|
_: 1
|
2209
3392
|
})]),
|
2210
3393
|
_: 1
|
2211
3394
|
})]),
|
2212
|
-
default:
|
3395
|
+
default: t(() => [l(e(ne), {
|
2213
3396
|
ref_key: "tableRef",
|
2214
|
-
ref:
|
3397
|
+
ref: V,
|
2215
3398
|
size: "small",
|
2216
|
-
columns:
|
2217
|
-
url: e(
|
2218
|
-
"search-param": e(
|
3399
|
+
columns: h,
|
3400
|
+
url: e(ae).urls.sql,
|
3401
|
+
"search-param": e(f),
|
2219
3402
|
autoSearch: ""
|
2220
3403
|
}, null, 8, ["url", "search-param"])]),
|
2221
3404
|
_: 1
|
2222
3405
|
});
|
2223
3406
|
};
|
2224
3407
|
}
|
2225
|
-
}),
|
3408
|
+
}), xl = () => import("./index-SHsqnbNG.js"), wl = () => import("./index-CJMTIvHk.js"), Rl = () => import("./index-BMn8mAns.js"), Ll = [
|
2226
3409
|
{
|
2227
|
-
path:
|
3410
|
+
path: Be,
|
2228
3411
|
name: "RequestLog",
|
2229
|
-
component:
|
3412
|
+
component: xl,
|
2230
3413
|
meta: {
|
2231
3414
|
title: a("menu.RequestLog")
|
2232
3415
|
}
|
2233
3416
|
},
|
2234
3417
|
{
|
2235
|
-
path:
|
3418
|
+
path: Ie,
|
2236
3419
|
name: "ErrorLog",
|
2237
|
-
component:
|
3420
|
+
component: wl,
|
2238
3421
|
meta: {
|
2239
3422
|
title: a("menu.ErrorLog")
|
2240
3423
|
}
|
2241
3424
|
},
|
2242
3425
|
{
|
2243
|
-
path:
|
3426
|
+
path: Ne,
|
2244
3427
|
name: "SqlLog",
|
2245
|
-
component:
|
3428
|
+
component: Rl,
|
2246
3429
|
meta: {
|
2247
3430
|
title: a("menu.SqlLog")
|
2248
3431
|
}
|
2249
3432
|
}
|
2250
|
-
],
|
2251
|
-
install: (
|
2252
|
-
Reflect.ownKeys(
|
3433
|
+
], Tl = {
|
3434
|
+
install: (w) => {
|
3435
|
+
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
3436
|
},
|
2254
3437
|
version: "__VERSION__"
|
2255
|
-
},
|
2256
|
-
"./views/admin/index.vue":
|
2257
|
-
"./views/language/index.vue":
|
2258
|
-
"./views/menu/index.vue":
|
2259
|
-
"./views/role/index.vue":
|
3438
|
+
}, ql = /* @__PURE__ */ Object.assign({
|
3439
|
+
"./views/admin/index.vue": We,
|
3440
|
+
"./views/language/index.vue": Ge,
|
3441
|
+
"./views/menu/index.vue": ol,
|
3442
|
+
"./views/role/index.vue": il,
|
3443
|
+
"./views/site/index.vue": vl
|
2260
3444
|
});
|
2261
3445
|
export {
|
2262
|
-
|
2263
|
-
|
2264
|
-
|
2265
|
-
|
2266
|
-
|
2267
|
-
|
2268
|
-
|
2269
|
-
|
2270
|
-
|
2271
|
-
|
3446
|
+
Ke as AdminsPage,
|
3447
|
+
Dl as ErrorLogsPage,
|
3448
|
+
He as LanguagesPage,
|
3449
|
+
Ll as LogRoutes,
|
3450
|
+
al as MenusPage,
|
3451
|
+
Ml as RequestLogsPage,
|
3452
|
+
ul as RolesPage,
|
3453
|
+
Sl as SQLLogsPage,
|
3454
|
+
kl as SitePage,
|
3455
|
+
ql as basicModules,
|
3456
|
+
Tl as default
|
2272
3457
|
};
|