auto-vue-basic 0.0.60 → 0.0.62
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 +1878 -1883
- package/dist/auto-vue-basic.umd.js +1 -1
- package/dist/index.css +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types/config.d.ts +42 -0
- package/dist/version.js +1 -1
- package/package.json +3 -3
|
@@ -1,93 +1,206 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ApiUtils as E,
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
import { defineComponent as w, createElementBlock as N, openBlock as y, createElementVNode as q, toRef as Z, resolveComponent as m, createBlock as x, withCtx as o, createVNode as a, normalizeClass as fe, toDisplayString as C, ref as B, Fragment as j, isVNode as De, withKeys as ie, renderList as ee, reactive as Ve, onMounted as ye, watch as ke, nextTick as xe, createCommentVNode as we, createTextVNode as G, onBeforeMount as Re } from "vue";
|
|
2
|
+
import { ApiUtils as E, useLoading as L, useSelect as $, InlineRefreshButton as oe, Translate as t, useForm as I, FormDialog as K, useCrudPage as A, DEFAULT_STATUS_KEY as be, ModifyButton as Y, DEFAULT_REMOVE_KEY as Se, ProTable as re, SearchButton as W, RefreshButton as F, OpenButton as z, DEFAULT_PAGE_KEY as se, RulesUtils as Ue, BasicAvatar as Me, TimeUtils as M, ProTableList as H, BasicDrawer as ue, RequestButton as te, AssetsUtils as ge, notification as Ae, DEFAULT_LIST_URL as Le, REQUEST_LOG_URL as qe, ERROR_LOG_URL as Fe, SQL_LOG_URL as Oe } from "auto-vue-manual";
|
|
3
|
+
const Pe = {
|
|
4
|
+
tops: "tops",
|
|
5
|
+
rules: "rules"
|
|
6
|
+
}, O = E.routineApi("menu", "id", Pe, {}, ["TOP_MENU_LIST", "MENU_LIST"]), he = E.routineApi("rule", "key");
|
|
7
|
+
/*! Element Plus Icons Vue v2.3.2 */
|
|
8
|
+
var Be = /* @__PURE__ */ w({
|
|
9
|
+
name: "Key",
|
|
10
|
+
__name: "key",
|
|
11
|
+
setup(g) {
|
|
12
|
+
return (l, _) => (y(), N("svg", {
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
viewBox: "0 0 1024 1024"
|
|
15
|
+
}, [
|
|
16
|
+
q("path", {
|
|
17
|
+
fill: "currentColor",
|
|
18
|
+
d: "M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"
|
|
19
|
+
})
|
|
20
|
+
]));
|
|
21
|
+
}
|
|
22
|
+
}), Ee = Be;
|
|
23
|
+
const Ce = /* @__PURE__ */ w({
|
|
24
|
+
__name: "TopMenuSelect",
|
|
25
|
+
props: {
|
|
26
|
+
modelValue: {
|
|
27
|
+
type: [Number, Array],
|
|
28
|
+
required: !0
|
|
29
|
+
},
|
|
30
|
+
multiple: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
emits: ["update:modelValue", "change"],
|
|
36
|
+
setup(g, {
|
|
37
|
+
expose: l,
|
|
38
|
+
emit: _
|
|
39
|
+
}) {
|
|
40
|
+
l();
|
|
41
|
+
const e = _, p = g, {
|
|
42
|
+
requesting: b
|
|
43
|
+
} = L(O), {
|
|
44
|
+
value: n,
|
|
45
|
+
options: r,
|
|
46
|
+
change: i,
|
|
47
|
+
refresh: d,
|
|
48
|
+
filterOptions: u
|
|
49
|
+
} = $(Z(p, "modelValue"), e, {
|
|
50
|
+
key: "TOP_MENU_LIST",
|
|
51
|
+
api: O,
|
|
52
|
+
url: O.urls.tops,
|
|
53
|
+
isArray: !0
|
|
54
|
+
}), f = {
|
|
55
|
+
emit: e,
|
|
56
|
+
props: p,
|
|
57
|
+
requesting: b,
|
|
58
|
+
value: n,
|
|
59
|
+
options: r,
|
|
60
|
+
change: i,
|
|
61
|
+
refresh: d,
|
|
62
|
+
filterOptions: u,
|
|
63
|
+
get Translate() {
|
|
64
|
+
return t;
|
|
65
|
+
},
|
|
66
|
+
get InlineRefreshButton() {
|
|
67
|
+
return oe;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
return Object.defineProperty(f, "__isScriptSetup", {
|
|
71
|
+
enumerable: !1,
|
|
72
|
+
value: !0
|
|
73
|
+
}), f;
|
|
74
|
+
}
|
|
75
|
+
}), R = (g, l) => {
|
|
76
|
+
const _ = g.__vccOpts || g;
|
|
77
|
+
for (const [e, p] of l)
|
|
78
|
+
_[e] = p;
|
|
79
|
+
return _;
|
|
80
|
+
};
|
|
81
|
+
function je(g, l, _, e, p, b) {
|
|
82
|
+
const n = m("el-space"), r = m("el-select-v2");
|
|
83
|
+
return y(), x(r, {
|
|
84
|
+
class: "w-full",
|
|
85
|
+
modelValue: e.value,
|
|
86
|
+
"onUpdate:modelValue": l[1] || (l[1] = (i) => e.value = i),
|
|
87
|
+
options: e.options,
|
|
88
|
+
multiple: _.multiple,
|
|
89
|
+
disabled: e.requesting,
|
|
90
|
+
placeholder: e.Translate("base.placeholder.select"),
|
|
91
|
+
filterable: "",
|
|
92
|
+
filterOptions: e.filterOptions,
|
|
93
|
+
onChange: e.change
|
|
94
|
+
}, {
|
|
95
|
+
prefix: o(() => [
|
|
96
|
+
a(e.InlineRefreshButton, {
|
|
97
|
+
loading: e.requesting,
|
|
98
|
+
onRefresh: l[0] || (l[0] = (i) => e.refresh(!0))
|
|
99
|
+
}, null, 8, ["loading"])
|
|
100
|
+
]),
|
|
101
|
+
default: o(({ item: i }) => [
|
|
102
|
+
a(n, null, {
|
|
103
|
+
default: o(() => [
|
|
104
|
+
q("i", {
|
|
105
|
+
class: fe(`icon iconfont ${i.icon}`)
|
|
106
|
+
}, null, 2),
|
|
107
|
+
q("span", null, C(i.translate), 1)
|
|
108
|
+
]),
|
|
109
|
+
_: 2
|
|
110
|
+
}, 1024)
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
|
114
|
+
}
|
|
115
|
+
const ze = /* @__PURE__ */ R(Ce, [["render", je], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/menu/components/TopMenuSelect.vue"]]), Ie = /* @__PURE__ */ w({
|
|
116
|
+
__name: "MenuFormModal",
|
|
5
117
|
emits: ["refresh"],
|
|
6
|
-
setup(g, { expose: l, emit:
|
|
7
|
-
const e =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
118
|
+
setup(g, { expose: l, emit: _ }) {
|
|
119
|
+
const e = _, p = {
|
|
120
|
+
id: 0,
|
|
121
|
+
menu_id: 0,
|
|
122
|
+
module: "",
|
|
123
|
+
sort: 0,
|
|
124
|
+
name: "",
|
|
125
|
+
en_name: "",
|
|
126
|
+
url: "",
|
|
127
|
+
component: "",
|
|
128
|
+
icon: "",
|
|
14
129
|
remark: "",
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
130
|
+
meta: {
|
|
131
|
+
active: "",
|
|
132
|
+
icon: "",
|
|
133
|
+
title: "",
|
|
134
|
+
affix: !1,
|
|
135
|
+
full: !1,
|
|
136
|
+
hide: !1,
|
|
137
|
+
keep_alive: !1,
|
|
138
|
+
link: !1
|
|
139
|
+
}
|
|
140
|
+
}, b = {
|
|
141
|
+
sort: [
|
|
18
142
|
{
|
|
19
143
|
required: !0,
|
|
20
|
-
|
|
144
|
+
type: "number",
|
|
145
|
+
message: t("base.placeholder.input base.sort"),
|
|
21
146
|
trigger: "blur"
|
|
22
147
|
}
|
|
23
148
|
],
|
|
24
|
-
|
|
149
|
+
module: [
|
|
25
150
|
{
|
|
26
151
|
required: !0,
|
|
27
|
-
|
|
28
|
-
message: t("base.placeholder.input base.phone"),
|
|
152
|
+
message: t("base.placeholder.input menu.module"),
|
|
29
153
|
trigger: "blur"
|
|
30
154
|
}
|
|
31
155
|
],
|
|
32
|
-
|
|
156
|
+
name: [
|
|
33
157
|
{
|
|
34
|
-
required: !
|
|
35
|
-
message: t("base.placeholder.input base.
|
|
158
|
+
required: !0,
|
|
159
|
+
message: t("base.placeholder.input base.name"),
|
|
36
160
|
trigger: "blur"
|
|
37
161
|
}
|
|
38
162
|
],
|
|
39
|
-
|
|
163
|
+
en_name: [
|
|
40
164
|
{
|
|
41
165
|
required: !0,
|
|
42
|
-
message: t("base.placeholder.input base.
|
|
166
|
+
message: t("base.placeholder.input base.en_name"),
|
|
43
167
|
trigger: "blur"
|
|
44
168
|
}
|
|
45
169
|
],
|
|
46
|
-
|
|
170
|
+
url: [
|
|
47
171
|
{
|
|
48
172
|
required: !0,
|
|
49
|
-
message: t("base.placeholder.
|
|
50
|
-
trigger: "
|
|
173
|
+
message: t("base.placeholder.input base.url"),
|
|
174
|
+
trigger: "blur"
|
|
51
175
|
}
|
|
52
176
|
],
|
|
53
|
-
|
|
177
|
+
component: [
|
|
54
178
|
{
|
|
55
179
|
required: !0,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
trigger: "change"
|
|
180
|
+
message: t("base.placeholder.input menu.component"),
|
|
181
|
+
trigger: "blur"
|
|
59
182
|
}
|
|
60
183
|
]
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
De(async () => {
|
|
66
|
-
await T();
|
|
67
|
-
}), l({
|
|
68
|
-
open: f,
|
|
69
|
-
modify: c
|
|
184
|
+
}, { modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k } = I(e, p, O);
|
|
185
|
+
l({
|
|
186
|
+
open: c,
|
|
187
|
+
modify: s
|
|
70
188
|
});
|
|
71
|
-
const
|
|
189
|
+
const h = { emits: e, DEFAULT_DATA: p, rules: b, modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k, get Translate() {
|
|
72
190
|
return t;
|
|
73
191
|
}, get FormDialog() {
|
|
74
192
|
return K;
|
|
75
|
-
} };
|
|
76
|
-
return Object.defineProperty(
|
|
193
|
+
}, TopMenuSelect: ze };
|
|
194
|
+
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
77
195
|
}
|
|
78
|
-
})
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
return p;
|
|
83
|
-
};
|
|
84
|
-
function Pe(g, l, p, e, _, b) {
|
|
85
|
-
const n = m("el-input"), r = m("el-form-item"), i = m("el-radio-button"), d = m("el-radio-group"), u = m("el-checkbox"), f = m("el-checkbox-group"), c = m("el-form");
|
|
86
|
-
return y(), w(e.FormDialog, {
|
|
196
|
+
});
|
|
197
|
+
function Ke(g, l, _, e, p, b) {
|
|
198
|
+
const n = m("el-form-item"), r = m("el-col"), i = m("el-input-number"), d = m("el-row"), u = m("el-input"), f = m("el-switch"), c = m("el-form");
|
|
199
|
+
return y(), x(e.FormDialog, {
|
|
87
200
|
modelValue: e.modal,
|
|
88
|
-
"onUpdate:modelValue": l[
|
|
201
|
+
"onUpdate:modelValue": l[17] || (l[17] = (s) => e.modal = s),
|
|
89
202
|
title: e.title(),
|
|
90
|
-
width: "
|
|
203
|
+
width: "1000px",
|
|
91
204
|
executing: e.executing,
|
|
92
205
|
onClosed: e.closed,
|
|
93
206
|
onSubmit: e.submit
|
|
@@ -101,131 +214,280 @@ function Pe(g, l, p, e, _, b) {
|
|
|
101
214
|
disabled: e.requesting || e.executing
|
|
102
215
|
}, {
|
|
103
216
|
default: o(() => [
|
|
104
|
-
a(
|
|
105
|
-
label: e.Translate("base.username"),
|
|
106
|
-
prop: "username"
|
|
107
|
-
}, {
|
|
108
|
-
default: o(() => [
|
|
109
|
-
a(n, {
|
|
110
|
-
modelValue: e.formData.username,
|
|
111
|
-
"onUpdate:modelValue": l[0] || (l[0] = (s) => e.formData.username = s),
|
|
112
|
-
placeholder: e.Translate("base.placeholder.input"),
|
|
113
|
-
autocomplete: "off"
|
|
114
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
115
|
-
]),
|
|
116
|
-
_: 1
|
|
117
|
-
}, 8, ["label"]),
|
|
118
|
-
a(r, {
|
|
119
|
-
label: e.Translate("base.phone"),
|
|
120
|
-
prop: "phone"
|
|
121
|
-
}, {
|
|
122
|
-
default: o(() => [
|
|
123
|
-
a(n, {
|
|
124
|
-
modelValue: e.formData.phone,
|
|
125
|
-
"onUpdate:modelValue": l[1] || (l[1] = (s) => e.formData.phone = s),
|
|
126
|
-
placeholder: e.Translate("base.placeholder.input"),
|
|
127
|
-
autocomplete: "off"
|
|
128
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
129
|
-
]),
|
|
130
|
-
_: 1
|
|
131
|
-
}, 8, ["label"]),
|
|
132
|
-
a(r, {
|
|
133
|
-
label: e.Translate("base.password"),
|
|
134
|
-
prop: "password",
|
|
135
|
-
required: !e.formData.key
|
|
136
|
-
}, {
|
|
137
|
-
default: o(() => [
|
|
138
|
-
a(n, {
|
|
139
|
-
modelValue: e.formData.password,
|
|
140
|
-
"onUpdate:modelValue": l[2] || (l[2] = (s) => e.formData.password = s),
|
|
141
|
-
placeholder: e.Translate("base.placeholder.input"),
|
|
142
|
-
autocomplete: "off"
|
|
143
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
144
|
-
]),
|
|
145
|
-
_: 1
|
|
146
|
-
}, 8, ["label", "required"]),
|
|
147
|
-
a(r, {
|
|
148
|
-
label: e.Translate("base.email"),
|
|
149
|
-
prop: "email"
|
|
150
|
-
}, {
|
|
151
|
-
default: o(() => [
|
|
152
|
-
a(n, {
|
|
153
|
-
modelValue: e.formData.email,
|
|
154
|
-
"onUpdate:modelValue": l[3] || (l[3] = (s) => e.formData.email = s),
|
|
155
|
-
placeholder: e.Translate("base.placeholder.input"),
|
|
156
|
-
autocomplete: "off"
|
|
157
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
158
|
-
]),
|
|
159
|
-
_: 1
|
|
160
|
-
}, 8, ["label"]),
|
|
161
|
-
a(r, {
|
|
162
|
-
label: e.Translate("base.language"),
|
|
163
|
-
prop: "language"
|
|
164
|
-
}, {
|
|
217
|
+
a(d, { gutter: 20 }, {
|
|
165
218
|
default: o(() => [
|
|
166
|
-
a(
|
|
167
|
-
modelValue: e.formData.language,
|
|
168
|
-
"onUpdate:modelValue": l[4] || (l[4] = (s) => e.formData.language = s)
|
|
169
|
-
}, {
|
|
219
|
+
a(r, { span: 12 }, {
|
|
170
220
|
default: o(() => [
|
|
171
|
-
a(
|
|
172
|
-
default: o(() =>
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
221
|
+
a(d, { gutter: 10 }, {
|
|
222
|
+
default: o(() => [
|
|
223
|
+
a(r, { span: 12 }, {
|
|
224
|
+
default: o(() => [
|
|
225
|
+
a(n, {
|
|
226
|
+
label: e.Translate("base.parent"),
|
|
227
|
+
prop: "menu_id"
|
|
228
|
+
}, {
|
|
229
|
+
default: o(() => [
|
|
230
|
+
a(e.TopMenuSelect, {
|
|
231
|
+
modelValue: e.formData.menu_id,
|
|
232
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => e.formData.menu_id = s)
|
|
233
|
+
}, null, 8, ["modelValue"])
|
|
234
|
+
]),
|
|
235
|
+
_: 1
|
|
236
|
+
}, 8, ["label"])
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
}),
|
|
240
|
+
a(r, { span: 12 }, {
|
|
241
|
+
default: o(() => [
|
|
242
|
+
a(n, {
|
|
243
|
+
label: e.Translate("base.sort"),
|
|
244
|
+
prop: "sort"
|
|
245
|
+
}, {
|
|
246
|
+
default: o(() => [
|
|
247
|
+
a(i, {
|
|
248
|
+
class: "w-full",
|
|
249
|
+
modelValue: e.formData.sort,
|
|
250
|
+
"onUpdate:modelValue": l[1] || (l[1] = (s) => e.formData.sort = s),
|
|
251
|
+
min: 0,
|
|
252
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
253
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
}, 8, ["label"])
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
})
|
|
260
|
+
]),
|
|
261
|
+
_: 1
|
|
262
|
+
}),
|
|
263
|
+
a(n, {
|
|
264
|
+
label: e.Translate("menu.module"),
|
|
265
|
+
prop: "module"
|
|
266
|
+
}, {
|
|
267
|
+
default: o(() => [
|
|
268
|
+
a(u, {
|
|
269
|
+
modelValue: e.formData.module,
|
|
270
|
+
"onUpdate:modelValue": l[2] || (l[2] = (s) => e.formData.module = s),
|
|
271
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
272
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
273
|
+
]),
|
|
274
|
+
_: 1
|
|
275
|
+
}, 8, ["label"]),
|
|
276
|
+
a(n, {
|
|
277
|
+
label: e.Translate("base.name"),
|
|
278
|
+
prop: "name"
|
|
279
|
+
}, {
|
|
280
|
+
default: o(() => [
|
|
281
|
+
a(u, {
|
|
282
|
+
modelValue: e.formData.name,
|
|
283
|
+
"onUpdate:modelValue": l[3] || (l[3] = (s) => e.formData.name = s),
|
|
284
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
285
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
286
|
+
]),
|
|
287
|
+
_: 1
|
|
288
|
+
}, 8, ["label"]),
|
|
289
|
+
a(n, {
|
|
290
|
+
label: e.Translate("base.en_name"),
|
|
291
|
+
prop: "en_name"
|
|
292
|
+
}, {
|
|
293
|
+
default: o(() => [
|
|
294
|
+
a(u, {
|
|
295
|
+
modelValue: e.formData.en_name,
|
|
296
|
+
"onUpdate:modelValue": l[4] || (l[4] = (s) => e.formData.en_name = s),
|
|
297
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
298
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
299
|
+
]),
|
|
300
|
+
_: 1
|
|
301
|
+
}, 8, ["label"]),
|
|
302
|
+
a(n, {
|
|
303
|
+
label: e.Translate("menu.component"),
|
|
304
|
+
prop: "component"
|
|
305
|
+
}, {
|
|
306
|
+
default: o(() => [
|
|
307
|
+
a(u, {
|
|
308
|
+
modelValue: e.formData.component,
|
|
309
|
+
"onUpdate:modelValue": l[5] || (l[5] = (s) => e.formData.component = s),
|
|
310
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
311
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
312
|
+
]),
|
|
313
|
+
_: 1
|
|
314
|
+
}, 8, ["label"]),
|
|
315
|
+
a(n, {
|
|
316
|
+
label: e.Translate("base.url"),
|
|
317
|
+
prop: "url"
|
|
318
|
+
}, {
|
|
319
|
+
default: o(() => [
|
|
320
|
+
a(u, {
|
|
321
|
+
modelValue: e.formData.url,
|
|
322
|
+
"onUpdate:modelValue": l[6] || (l[6] = (s) => e.formData.url = s),
|
|
323
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
324
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
325
|
+
]),
|
|
326
|
+
_: 1
|
|
327
|
+
}, 8, ["label"]),
|
|
328
|
+
a(n, {
|
|
329
|
+
label: e.Translate("base.remark"),
|
|
330
|
+
prop: "remark"
|
|
331
|
+
}, {
|
|
332
|
+
default: o(() => [
|
|
333
|
+
a(u, {
|
|
334
|
+
modelValue: e.formData.remark,
|
|
335
|
+
"onUpdate:modelValue": l[7] || (l[7] = (s) => e.formData.remark = s),
|
|
336
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
337
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
338
|
+
]),
|
|
339
|
+
_: 1
|
|
340
|
+
}, 8, ["label"])
|
|
341
|
+
]),
|
|
342
|
+
_: 1
|
|
343
|
+
}),
|
|
344
|
+
a(r, { span: 12 }, {
|
|
200
345
|
default: o(() => [
|
|
201
|
-
(
|
|
202
|
-
|
|
203
|
-
|
|
346
|
+
a(n, {
|
|
347
|
+
label: e.Translate("base.icon"),
|
|
348
|
+
prop: "icon"
|
|
204
349
|
}, {
|
|
205
350
|
default: o(() => [
|
|
206
|
-
|
|
351
|
+
a(u, {
|
|
352
|
+
modelValue: e.formData.icon,
|
|
353
|
+
"onUpdate:modelValue": l[8] || (l[8] = (s) => e.formData.icon = s),
|
|
354
|
+
placeholder: e.Translate("base.placeholder.input"),
|
|
355
|
+
onInput: l[9] || (l[9] = (s) => {
|
|
356
|
+
e.formData.meta.icon = s;
|
|
357
|
+
})
|
|
358
|
+
}, {
|
|
359
|
+
prepend: o(() => [
|
|
360
|
+
q("span", {
|
|
361
|
+
class: fe("iconfont " + e.formData.icon)
|
|
362
|
+
}, null, 2)
|
|
363
|
+
]),
|
|
364
|
+
_: 1
|
|
365
|
+
}, 8, ["modelValue", "placeholder"])
|
|
207
366
|
]),
|
|
208
|
-
_:
|
|
209
|
-
},
|
|
367
|
+
_: 1
|
|
368
|
+
}, 8, ["label"]),
|
|
369
|
+
a(n, {
|
|
370
|
+
label: e.Translate("base.title"),
|
|
371
|
+
prop: "meta.title"
|
|
372
|
+
}, {
|
|
373
|
+
default: o(() => [
|
|
374
|
+
a(u, {
|
|
375
|
+
modelValue: e.formData.meta.title,
|
|
376
|
+
"onUpdate:modelValue": l[10] || (l[10] = (s) => e.formData.meta.title = s),
|
|
377
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
378
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
379
|
+
]),
|
|
380
|
+
_: 1
|
|
381
|
+
}, 8, ["label"]),
|
|
382
|
+
a(n, {
|
|
383
|
+
label: e.Translate("menu.active"),
|
|
384
|
+
prop: "meta.active"
|
|
385
|
+
}, {
|
|
386
|
+
default: o(() => [
|
|
387
|
+
a(u, {
|
|
388
|
+
modelValue: e.formData.meta.active,
|
|
389
|
+
"onUpdate:modelValue": l[11] || (l[11] = (s) => e.formData.meta.active = s),
|
|
390
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
391
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
392
|
+
]),
|
|
393
|
+
_: 1
|
|
394
|
+
}, 8, ["label"]),
|
|
395
|
+
a(d, null, {
|
|
396
|
+
default: o(() => [
|
|
397
|
+
a(r, { span: 12 }, {
|
|
398
|
+
default: o(() => [
|
|
399
|
+
a(n, {
|
|
400
|
+
label: e.Translate("menu.link"),
|
|
401
|
+
prop: "meta.link"
|
|
402
|
+
}, {
|
|
403
|
+
default: o(() => [
|
|
404
|
+
a(f, {
|
|
405
|
+
modelValue: e.formData.meta.link,
|
|
406
|
+
"onUpdate:modelValue": l[12] || (l[12] = (s) => e.formData.meta.link = s)
|
|
407
|
+
}, null, 8, ["modelValue"])
|
|
408
|
+
]),
|
|
409
|
+
_: 1
|
|
410
|
+
}, 8, ["label"])
|
|
411
|
+
]),
|
|
412
|
+
_: 1
|
|
413
|
+
}),
|
|
414
|
+
a(r, { span: 12 }, {
|
|
415
|
+
default: o(() => [
|
|
416
|
+
a(n, {
|
|
417
|
+
label: e.Translate("menu.keep_alive"),
|
|
418
|
+
prop: "meta.keep_alive"
|
|
419
|
+
}, {
|
|
420
|
+
default: o(() => [
|
|
421
|
+
a(f, {
|
|
422
|
+
modelValue: e.formData.meta.keep_alive,
|
|
423
|
+
"onUpdate:modelValue": l[13] || (l[13] = (s) => e.formData.meta.keep_alive = s)
|
|
424
|
+
}, null, 8, ["modelValue"])
|
|
425
|
+
]),
|
|
426
|
+
_: 1
|
|
427
|
+
}, 8, ["label"])
|
|
428
|
+
]),
|
|
429
|
+
_: 1
|
|
430
|
+
}),
|
|
431
|
+
a(r, { span: 12 }, {
|
|
432
|
+
default: o(() => [
|
|
433
|
+
a(n, {
|
|
434
|
+
label: e.Translate("menu.hide"),
|
|
435
|
+
prop: "meta.hide"
|
|
436
|
+
}, {
|
|
437
|
+
default: o(() => [
|
|
438
|
+
a(f, {
|
|
439
|
+
modelValue: e.formData.meta.hide,
|
|
440
|
+
"onUpdate:modelValue": l[14] || (l[14] = (s) => e.formData.meta.hide = s)
|
|
441
|
+
}, null, 8, ["modelValue"])
|
|
442
|
+
]),
|
|
443
|
+
_: 1
|
|
444
|
+
}, 8, ["label"])
|
|
445
|
+
]),
|
|
446
|
+
_: 1
|
|
447
|
+
}),
|
|
448
|
+
a(r, { span: 12 }, {
|
|
449
|
+
default: o(() => [
|
|
450
|
+
a(n, {
|
|
451
|
+
label: e.Translate("menu.full"),
|
|
452
|
+
prop: "meta.full"
|
|
453
|
+
}, {
|
|
454
|
+
default: o(() => [
|
|
455
|
+
a(f, {
|
|
456
|
+
modelValue: e.formData.meta.full,
|
|
457
|
+
"onUpdate:modelValue": l[15] || (l[15] = (s) => e.formData.meta.full = s)
|
|
458
|
+
}, null, 8, ["modelValue"])
|
|
459
|
+
]),
|
|
460
|
+
_: 1
|
|
461
|
+
}, 8, ["label"])
|
|
462
|
+
]),
|
|
463
|
+
_: 1
|
|
464
|
+
}),
|
|
465
|
+
a(r, { span: 12 }, {
|
|
466
|
+
default: o(() => [
|
|
467
|
+
a(n, {
|
|
468
|
+
label: e.Translate("menu.affix"),
|
|
469
|
+
prop: "meta.affix"
|
|
470
|
+
}, {
|
|
471
|
+
default: o(() => [
|
|
472
|
+
a(f, {
|
|
473
|
+
modelValue: e.formData.meta.affix,
|
|
474
|
+
"onUpdate:modelValue": l[16] || (l[16] = (s) => e.formData.meta.affix = s)
|
|
475
|
+
}, null, 8, ["modelValue"])
|
|
476
|
+
]),
|
|
477
|
+
_: 1
|
|
478
|
+
}, 8, ["label"])
|
|
479
|
+
]),
|
|
480
|
+
_: 1
|
|
481
|
+
})
|
|
482
|
+
]),
|
|
483
|
+
_: 1
|
|
484
|
+
})
|
|
210
485
|
]),
|
|
211
486
|
_: 1
|
|
212
|
-
}
|
|
213
|
-
]),
|
|
214
|
-
_: 1
|
|
215
|
-
}, 8, ["label"]),
|
|
216
|
-
a(r, {
|
|
217
|
-
label: e.Translate("base.remark"),
|
|
218
|
-
prop: "remark"
|
|
219
|
-
}, {
|
|
220
|
-
default: o(() => [
|
|
221
|
-
a(n, {
|
|
222
|
-
modelValue: e.formData.remark,
|
|
223
|
-
"onUpdate:modelValue": l[6] || (l[6] = (s) => e.formData.remark = s),
|
|
224
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
225
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
487
|
+
})
|
|
226
488
|
]),
|
|
227
489
|
_: 1
|
|
228
|
-
}
|
|
490
|
+
})
|
|
229
491
|
]),
|
|
230
492
|
_: 1
|
|
231
493
|
}, 8, ["model", "disabled"])
|
|
@@ -233,243 +495,168 @@ function Pe(g, l, p, e, _, b) {
|
|
|
233
495
|
_: 1
|
|
234
496
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
235
497
|
}
|
|
236
|
-
const
|
|
237
|
-
__name: "
|
|
498
|
+
const Ne = /* @__PURE__ */ R(Ie, [["render", Ke], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/menu/components/MenuFormModal.vue"]]), Ye = /* @__PURE__ */ w({
|
|
499
|
+
__name: "MenuSelect",
|
|
500
|
+
props: {
|
|
501
|
+
modelValue: {
|
|
502
|
+
type: [Number, Array],
|
|
503
|
+
required: !0
|
|
504
|
+
},
|
|
505
|
+
multiple: {
|
|
506
|
+
type: Boolean,
|
|
507
|
+
default: !1
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
emits: ["update:modelValue", "change"],
|
|
238
511
|
setup(g, {
|
|
239
|
-
expose: l
|
|
512
|
+
expose: l,
|
|
513
|
+
emit: _
|
|
240
514
|
}) {
|
|
241
515
|
l();
|
|
242
|
-
const p = {
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
default: () => [a("div", null, [v.username]), a("div", null, [v.email])]
|
|
264
|
-
})
|
|
265
|
-
}, {
|
|
266
|
-
label: t("base.phone"),
|
|
267
|
-
prop: "phone",
|
|
268
|
-
width: 140
|
|
269
|
-
}, {
|
|
270
|
-
label: t("base.remark"),
|
|
271
|
-
prop: "remark",
|
|
272
|
-
width: 0
|
|
273
|
-
}, {
|
|
274
|
-
label: t("base.login_at"),
|
|
275
|
-
prop: "login_at",
|
|
276
|
-
width: 160
|
|
277
|
-
}, {
|
|
278
|
-
label: t("base.created_at"),
|
|
279
|
-
prop: "created_at",
|
|
280
|
-
width: 160
|
|
281
|
-
}, {
|
|
282
|
-
label: t("base.updated_at"),
|
|
283
|
-
prop: "updated_at",
|
|
284
|
-
width: 160
|
|
285
|
-
}, {
|
|
286
|
-
prop: "action",
|
|
287
|
-
label: t("base.action"),
|
|
288
|
-
width: 80,
|
|
289
|
-
align: "center",
|
|
290
|
-
render: ({
|
|
291
|
-
row: v
|
|
292
|
-
}) => a(Y, {
|
|
293
|
-
onModify: () => c({
|
|
294
|
-
key: v.key
|
|
295
|
-
})
|
|
296
|
-
}, null)
|
|
297
|
-
}], {
|
|
298
|
-
requesting: _
|
|
299
|
-
} = L(ce), {
|
|
300
|
-
tableRef: b,
|
|
301
|
-
formModalRef: n,
|
|
302
|
-
keyword: r,
|
|
303
|
-
search: i,
|
|
304
|
-
reset: d,
|
|
305
|
-
refresh: u,
|
|
306
|
-
openFormModal: f,
|
|
307
|
-
editFormModal: c
|
|
308
|
-
} = A(p), s = {
|
|
309
|
-
DEFAULT_KEYWORD: p,
|
|
310
|
-
columns: e,
|
|
311
|
-
requesting: _,
|
|
312
|
-
tableRef: b,
|
|
313
|
-
formModalRef: n,
|
|
314
|
-
keyword: r,
|
|
315
|
-
search: i,
|
|
316
|
-
reset: d,
|
|
317
|
-
refresh: u,
|
|
318
|
-
openFormModal: f,
|
|
319
|
-
editFormModal: c,
|
|
320
|
-
get DEFAULT_PAGE_KEY() {
|
|
321
|
-
return se;
|
|
322
|
-
},
|
|
516
|
+
const e = _, p = g, {
|
|
517
|
+
requesting: b
|
|
518
|
+
} = L(O), {
|
|
519
|
+
value: n,
|
|
520
|
+
options: r,
|
|
521
|
+
change: i,
|
|
522
|
+
refresh: d,
|
|
523
|
+
filterOptions: u
|
|
524
|
+
} = $(Z(p, "modelValue"), e, {
|
|
525
|
+
key: "MENU_LIST",
|
|
526
|
+
api: O,
|
|
527
|
+
isArray: !0
|
|
528
|
+
}), f = {
|
|
529
|
+
emit: e,
|
|
530
|
+
props: p,
|
|
531
|
+
requesting: b,
|
|
532
|
+
value: n,
|
|
533
|
+
options: r,
|
|
534
|
+
change: i,
|
|
535
|
+
refresh: d,
|
|
536
|
+
filterOptions: u,
|
|
323
537
|
get Translate() {
|
|
324
538
|
return t;
|
|
325
539
|
},
|
|
326
|
-
get
|
|
327
|
-
return z;
|
|
328
|
-
},
|
|
329
|
-
get RefreshButton() {
|
|
330
|
-
return F;
|
|
331
|
-
},
|
|
332
|
-
get SearchButton() {
|
|
333
|
-
return W;
|
|
334
|
-
},
|
|
335
|
-
get ProTable() {
|
|
540
|
+
get InlineRefreshButton() {
|
|
336
541
|
return oe;
|
|
337
|
-
},
|
|
338
|
-
AdminFormModal: Ee,
|
|
339
|
-
get $api() {
|
|
340
|
-
return ce;
|
|
341
542
|
}
|
|
342
543
|
};
|
|
343
|
-
return Object.defineProperty(
|
|
544
|
+
return Object.defineProperty(f, "__isScriptSetup", {
|
|
344
545
|
enumerable: !1,
|
|
345
546
|
value: !0
|
|
346
|
-
}),
|
|
547
|
+
}), f;
|
|
347
548
|
}
|
|
348
549
|
});
|
|
349
|
-
function
|
|
350
|
-
const n = m("el-
|
|
351
|
-
return y(),
|
|
352
|
-
class: "
|
|
353
|
-
|
|
550
|
+
function Ge(g, l, _, e, p, b) {
|
|
551
|
+
const n = m("el-space"), r = m("el-select-v2");
|
|
552
|
+
return y(), x(r, {
|
|
553
|
+
class: "w-full",
|
|
554
|
+
modelValue: e.value,
|
|
555
|
+
"onUpdate:modelValue": l[1] || (l[1] = (i) => e.value = i),
|
|
556
|
+
options: e.options,
|
|
557
|
+
multiple: _.multiple,
|
|
558
|
+
disabled: e.requesting,
|
|
559
|
+
placeholder: e.Translate("base.placeholder.select"),
|
|
560
|
+
filterable: "",
|
|
561
|
+
filterOptions: e.filterOptions,
|
|
562
|
+
onChange: e.change
|
|
354
563
|
}, {
|
|
355
|
-
|
|
356
|
-
a(
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
onRefresh: e.reset
|
|
361
|
-
}, null, 8, ["loading", "onRefresh"]),
|
|
362
|
-
a(e.OpenButton, { onOpen: e.openFormModal }, null, 8, ["onOpen"])
|
|
363
|
-
]),
|
|
364
|
-
content: o(() => [
|
|
365
|
-
a(r, { class: "search-bar" }, {
|
|
366
|
-
default: o(() => [
|
|
367
|
-
a(n, {
|
|
368
|
-
class: "basic-search-input",
|
|
369
|
-
modelValue: e.keyword.keyword,
|
|
370
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => e.keyword.keyword = u),
|
|
371
|
-
placeholder: e.Translate("base.placeholder.keyword"),
|
|
372
|
-
clearable: "",
|
|
373
|
-
onKeyup: l[1] || (l[1] = ie((u) => e.search(), ["enter"])),
|
|
374
|
-
onClear: l[2] || (l[2] = (u) => e.search())
|
|
375
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
376
|
-
a(e.SearchButton, {
|
|
377
|
-
disabled: e.requesting,
|
|
378
|
-
onSearch: l[3] || (l[3] = (u) => e.search())
|
|
379
|
-
}, null, 8, ["disabled"])
|
|
380
|
-
]),
|
|
381
|
-
_: 1
|
|
382
|
-
})
|
|
383
|
-
]),
|
|
384
|
-
_: 1
|
|
385
|
-
})
|
|
564
|
+
prefix: o(() => [
|
|
565
|
+
a(e.InlineRefreshButton, {
|
|
566
|
+
loading: e.requesting,
|
|
567
|
+
onRefresh: l[0] || (l[0] = (i) => e.refresh(!0))
|
|
568
|
+
}, null, 8, ["loading"])
|
|
386
569
|
]),
|
|
387
|
-
default: o(() => [
|
|
388
|
-
a(
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
ref: "formModalRef",
|
|
398
|
-
onRefresh: e.refresh
|
|
399
|
-
}, null, 8, ["onRefresh"])
|
|
570
|
+
default: o(({ item: i }) => [
|
|
571
|
+
a(n, null, {
|
|
572
|
+
default: o(() => [
|
|
573
|
+
q("i", {
|
|
574
|
+
class: fe(`icon iconfont ${i.icon}`)
|
|
575
|
+
}, null, 2),
|
|
576
|
+
q("span", null, C(i.translate), 1)
|
|
577
|
+
]),
|
|
578
|
+
_: 2
|
|
579
|
+
}, 1024)
|
|
400
580
|
]),
|
|
401
581
|
_: 1
|
|
402
|
-
});
|
|
582
|
+
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
|
403
583
|
}
|
|
404
|
-
const
|
|
405
|
-
|
|
406
|
-
default: ze
|
|
407
|
-
}, Symbol.toStringTag, { value: "Module" })), ne = E.routineApi("translation", "key"), Ke = /* @__PURE__ */ x({
|
|
408
|
-
__name: "LangFormModal",
|
|
584
|
+
const We = /* @__PURE__ */ R(Ye, [["render", Ge], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/menu/components/MenuSelect.vue"]]), He = /* @__PURE__ */ w({
|
|
585
|
+
__name: "MenuRuleFormModal",
|
|
409
586
|
emits: ["refresh"],
|
|
410
|
-
setup(g, { expose: l, emit:
|
|
411
|
-
const e =
|
|
412
|
-
id: 0,
|
|
587
|
+
setup(g, { expose: l, emit: _ }) {
|
|
588
|
+
const e = _, p = {
|
|
413
589
|
key: "",
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
590
|
+
menu_id: 0,
|
|
591
|
+
sort: 0,
|
|
592
|
+
name: "",
|
|
593
|
+
en_name: "",
|
|
594
|
+
urls: "",
|
|
417
595
|
remark: ""
|
|
418
596
|
}, b = {
|
|
419
|
-
|
|
597
|
+
menu_id: [
|
|
420
598
|
{
|
|
421
599
|
required: !0,
|
|
422
|
-
|
|
600
|
+
type: "number",
|
|
601
|
+
message: t("base.placeholder.select menu.Menu"),
|
|
423
602
|
trigger: "blur"
|
|
424
603
|
}
|
|
425
604
|
],
|
|
426
|
-
|
|
605
|
+
sort: [
|
|
427
606
|
{
|
|
428
607
|
required: !0,
|
|
429
|
-
|
|
608
|
+
type: "number",
|
|
609
|
+
message: t("base.placeholder.input base.sort"),
|
|
430
610
|
trigger: "blur"
|
|
431
611
|
}
|
|
432
612
|
],
|
|
433
|
-
|
|
613
|
+
name: [
|
|
434
614
|
{
|
|
435
615
|
required: !0,
|
|
436
|
-
message: t("
|
|
437
|
-
trigger: "
|
|
616
|
+
message: t("base.placeholder.input base.name"),
|
|
617
|
+
trigger: "blur"
|
|
438
618
|
}
|
|
439
619
|
],
|
|
440
|
-
|
|
620
|
+
en_name: [
|
|
441
621
|
{
|
|
442
622
|
required: !0,
|
|
443
|
-
message: t("
|
|
623
|
+
message: t("base.placeholder.input base.en_name"),
|
|
624
|
+
trigger: "blur"
|
|
625
|
+
}
|
|
626
|
+
],
|
|
627
|
+
urls: [
|
|
628
|
+
{
|
|
629
|
+
required: !0,
|
|
630
|
+
message: t("base.placeholder.input menu.rules"),
|
|
444
631
|
trigger: "blur"
|
|
445
632
|
}
|
|
446
633
|
]
|
|
447
|
-
}, { modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k } = I(e,
|
|
634
|
+
}, { modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k } = I(e, p, he);
|
|
448
635
|
l({
|
|
449
636
|
open: c,
|
|
450
637
|
modify: s
|
|
451
638
|
});
|
|
452
|
-
const h = { emits: e, DEFAULT_DATA:
|
|
639
|
+
const h = { emits: e, DEFAULT_DATA: p, rules: b, modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k, get Translate() {
|
|
453
640
|
return t;
|
|
454
641
|
}, get FormDialog() {
|
|
455
642
|
return K;
|
|
456
|
-
} };
|
|
643
|
+
}, MenuSelect: We };
|
|
457
644
|
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
458
645
|
}
|
|
459
646
|
});
|
|
460
|
-
function
|
|
461
|
-
const n = m("el-
|
|
462
|
-
return y(),
|
|
647
|
+
function Qe(g, l, _, e, p, b) {
|
|
648
|
+
const n = m("el-form-item"), r = m("el-input-number"), i = m("el-input"), d = m("el-col"), u = m("el-row"), f = m("el-form");
|
|
649
|
+
return y(), x(e.FormDialog, {
|
|
463
650
|
modelValue: e.modal,
|
|
464
|
-
"onUpdate:modelValue": l[
|
|
465
|
-
title: e.title(),
|
|
466
|
-
width: "
|
|
651
|
+
"onUpdate:modelValue": l[6] || (l[6] = (c) => e.modal = c),
|
|
652
|
+
title: e.title("menu.rules"),
|
|
653
|
+
width: "1000px",
|
|
467
654
|
executing: e.executing,
|
|
468
655
|
onClosed: e.closed,
|
|
469
656
|
onSubmit: e.submit
|
|
470
657
|
}, {
|
|
471
658
|
default: o(() => [
|
|
472
|
-
a(
|
|
659
|
+
a(f, {
|
|
473
660
|
ref: "form",
|
|
474
661
|
model: e.formData,
|
|
475
662
|
"label-width": "auto",
|
|
@@ -477,92 +664,102 @@ function Ne(g, l, p, e, _, b) {
|
|
|
477
664
|
disabled: e.requesting || e.executing
|
|
478
665
|
}, {
|
|
479
666
|
default: o(() => [
|
|
480
|
-
a(
|
|
481
|
-
label: e.Translate("language.module"),
|
|
482
|
-
prop: "module",
|
|
483
|
-
required: ""
|
|
484
|
-
}, {
|
|
485
|
-
default: o(() => [
|
|
486
|
-
a(n, {
|
|
487
|
-
modelValue: e.formData.module,
|
|
488
|
-
"onUpdate:modelValue": l[0] || (l[0] = (f) => e.formData.module = f),
|
|
489
|
-
placeholder: e.Translate("language.placeholder.module")
|
|
490
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
491
|
-
]),
|
|
492
|
-
_: 1
|
|
493
|
-
}, 8, ["label"]),
|
|
494
|
-
a(r, {
|
|
495
|
-
label: e.Translate("language.key"),
|
|
496
|
-
prop: "key",
|
|
497
|
-
required: ""
|
|
498
|
-
}, {
|
|
499
|
-
default: o(() => [
|
|
500
|
-
a(n, {
|
|
501
|
-
modelValue: e.formData.key,
|
|
502
|
-
"onUpdate:modelValue": l[1] || (l[1] = (f) => e.formData.key = f),
|
|
503
|
-
placeholder: e.Translate("language.placeholder.key")
|
|
504
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
505
|
-
]),
|
|
506
|
-
_: 1
|
|
507
|
-
}, 8, ["label"]),
|
|
508
|
-
a(r, {
|
|
509
|
-
label: e.Translate("language.language"),
|
|
510
|
-
prop: "language",
|
|
511
|
-
required: ""
|
|
512
|
-
}, {
|
|
667
|
+
a(u, { gutter: 20 }, {
|
|
513
668
|
default: o(() => [
|
|
514
|
-
a(d, {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
669
|
+
a(d, { span: 10 }, {
|
|
670
|
+
default: o(() => [
|
|
671
|
+
a(n, {
|
|
672
|
+
label: e.Translate("menu.Menu"),
|
|
673
|
+
prop: "menu_id"
|
|
674
|
+
}, {
|
|
675
|
+
default: o(() => [
|
|
676
|
+
a(e.MenuSelect, {
|
|
677
|
+
modelValue: e.formData.menu_id,
|
|
678
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => e.formData.menu_id = c)
|
|
679
|
+
}, null, 8, ["modelValue"])
|
|
680
|
+
]),
|
|
681
|
+
_: 1
|
|
682
|
+
}, 8, ["label"]),
|
|
683
|
+
a(n, {
|
|
684
|
+
label: e.Translate("base.sort"),
|
|
685
|
+
prop: "sort"
|
|
686
|
+
}, {
|
|
687
|
+
default: o(() => [
|
|
688
|
+
a(r, {
|
|
689
|
+
class: "w-full",
|
|
690
|
+
modelValue: e.formData.sort,
|
|
691
|
+
"onUpdate:modelValue": l[1] || (l[1] = (c) => e.formData.sort = c),
|
|
692
|
+
min: 0,
|
|
693
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
694
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
695
|
+
]),
|
|
696
|
+
_: 1
|
|
697
|
+
}, 8, ["label"]),
|
|
698
|
+
a(n, {
|
|
699
|
+
label: e.Translate("base.name"),
|
|
700
|
+
prop: "name"
|
|
701
|
+
}, {
|
|
702
|
+
default: o(() => [
|
|
703
|
+
a(i, {
|
|
704
|
+
modelValue: e.formData.name,
|
|
705
|
+
"onUpdate:modelValue": l[2] || (l[2] = (c) => e.formData.name = c),
|
|
706
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
707
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
708
|
+
]),
|
|
709
|
+
_: 1
|
|
710
|
+
}, 8, ["label"]),
|
|
711
|
+
a(n, {
|
|
712
|
+
label: e.Translate("base.en_name"),
|
|
713
|
+
prop: "en_name"
|
|
714
|
+
}, {
|
|
715
|
+
default: o(() => [
|
|
716
|
+
a(i, {
|
|
717
|
+
modelValue: e.formData.en_name,
|
|
718
|
+
"onUpdate:modelValue": l[3] || (l[3] = (c) => e.formData.en_name = c),
|
|
719
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
720
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
721
|
+
]),
|
|
722
|
+
_: 1
|
|
723
|
+
}, 8, ["label"]),
|
|
724
|
+
a(n, {
|
|
725
|
+
label: e.Translate("base.remark"),
|
|
726
|
+
prop: "remark"
|
|
727
|
+
}, {
|
|
728
|
+
default: o(() => [
|
|
729
|
+
a(i, {
|
|
730
|
+
modelValue: e.formData.remark,
|
|
731
|
+
"onUpdate:modelValue": l[4] || (l[4] = (c) => e.formData.remark = c),
|
|
732
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
733
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
734
|
+
]),
|
|
735
|
+
_: 1
|
|
736
|
+
}, 8, ["label"])
|
|
737
|
+
]),
|
|
738
|
+
_: 1
|
|
739
|
+
}),
|
|
740
|
+
a(d, { span: 14 }, {
|
|
518
741
|
default: o(() => [
|
|
519
|
-
a(
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
742
|
+
a(n, {
|
|
743
|
+
label: e.Translate("menu.rules"),
|
|
744
|
+
prop: "urls"
|
|
745
|
+
}, {
|
|
746
|
+
default: o(() => [
|
|
747
|
+
a(i, {
|
|
748
|
+
modelValue: e.formData.urls,
|
|
749
|
+
"onUpdate:modelValue": l[5] || (l[5] = (c) => e.formData.urls = c),
|
|
750
|
+
type: "textarea",
|
|
751
|
+
rows: 11,
|
|
752
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
753
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
754
|
+
]),
|
|
755
|
+
_: 1
|
|
756
|
+
}, 8, ["label"])
|
|
533
757
|
]),
|
|
534
758
|
_: 1
|
|
535
|
-
}
|
|
536
|
-
]),
|
|
537
|
-
_: 1
|
|
538
|
-
}, 8, ["label"]),
|
|
539
|
-
a(r, {
|
|
540
|
-
label: e.Translate("language.result"),
|
|
541
|
-
prop: "result",
|
|
542
|
-
required: ""
|
|
543
|
-
}, {
|
|
544
|
-
default: o(() => [
|
|
545
|
-
a(n, {
|
|
546
|
-
modelValue: e.formData.result,
|
|
547
|
-
"onUpdate:modelValue": l[3] || (l[3] = (f) => e.formData.result = f),
|
|
548
|
-
placeholder: e.Translate("language.placeholder.result")
|
|
549
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
550
|
-
]),
|
|
551
|
-
_: 1
|
|
552
|
-
}, 8, ["label"]),
|
|
553
|
-
a(r, {
|
|
554
|
-
label: e.Translate("base.remark"),
|
|
555
|
-
prop: "remark"
|
|
556
|
-
}, {
|
|
557
|
-
default: o(() => [
|
|
558
|
-
a(n, {
|
|
559
|
-
modelValue: e.formData.remark,
|
|
560
|
-
"onUpdate:modelValue": l[4] || (l[4] = (f) => e.formData.remark = f),
|
|
561
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
562
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
759
|
+
})
|
|
563
760
|
]),
|
|
564
761
|
_: 1
|
|
565
|
-
}
|
|
762
|
+
})
|
|
566
763
|
]),
|
|
567
764
|
_: 1
|
|
568
765
|
}, 8, ["model", "disabled"])
|
|
@@ -570,95 +767,195 @@ function Ne(g, l, p, e, _, b) {
|
|
|
570
767
|
_: 1
|
|
571
768
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
572
769
|
}
|
|
573
|
-
const
|
|
770
|
+
const Je = /* @__PURE__ */ R(He, [["render", Qe], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/menu/components/MenuRuleFormModal.vue"]]);
|
|
771
|
+
function pe(g) {
|
|
772
|
+
return typeof g == "function" || Object.prototype.toString.call(g) === "[object Object]" && !De(g);
|
|
773
|
+
}
|
|
774
|
+
const Xe = /* @__PURE__ */ w({
|
|
574
775
|
__name: "index",
|
|
575
776
|
setup(g, {
|
|
576
777
|
expose: l
|
|
577
778
|
}) {
|
|
578
779
|
l();
|
|
579
|
-
const
|
|
780
|
+
const _ = {
|
|
580
781
|
keyword: "",
|
|
581
782
|
status: 0
|
|
582
|
-
}, e = [
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
783
|
+
}, e = B(""), p = [
|
|
784
|
+
{
|
|
785
|
+
label: t("base.sort"),
|
|
786
|
+
prop: "sort",
|
|
787
|
+
width: 60
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
label: t("base.icon"),
|
|
791
|
+
prop: "icon",
|
|
792
|
+
width: 60,
|
|
793
|
+
render: ({
|
|
794
|
+
row: V
|
|
795
|
+
}) => a("span", {
|
|
796
|
+
class: "iconfont " + V.icon,
|
|
797
|
+
style: "font-size: 16px;"
|
|
798
|
+
}, null)
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
label: t("base.module"),
|
|
802
|
+
prop: "module",
|
|
803
|
+
width: 120
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
label: t("base.parent"),
|
|
807
|
+
prop: "parent",
|
|
808
|
+
width: 120,
|
|
809
|
+
render: ({
|
|
810
|
+
row: V
|
|
811
|
+
}) => {
|
|
812
|
+
var S;
|
|
813
|
+
return a(j, null, [(S = V.menu) == null ? void 0 : S.translate]);
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
label: t("base.name"),
|
|
818
|
+
prop: "translate",
|
|
819
|
+
width: 160
|
|
820
|
+
},
|
|
821
|
+
// name 字段优先查看实体内是否有 translate 无则使用name
|
|
822
|
+
{
|
|
823
|
+
label: t("base.url"),
|
|
824
|
+
prop: "url",
|
|
825
|
+
align: "left",
|
|
826
|
+
width: 200
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
label: t("menu.component"),
|
|
830
|
+
prop: "component",
|
|
831
|
+
align: "left",
|
|
832
|
+
width: 200
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
label: t("menu.rules"),
|
|
836
|
+
prop: "rules",
|
|
837
|
+
width: 0,
|
|
838
|
+
align: "left",
|
|
839
|
+
render: ({
|
|
840
|
+
row: V
|
|
841
|
+
}) => a(m("el-space"), null, {
|
|
842
|
+
default: () => {
|
|
843
|
+
var S;
|
|
844
|
+
return [(S = V.rules) == null ? void 0 : S.map((U) => a(m("el-popover"), {
|
|
845
|
+
visible: e.value === U.key,
|
|
846
|
+
title: t("message.warning"),
|
|
847
|
+
placement: "top-end",
|
|
848
|
+
width: 220
|
|
849
|
+
}, {
|
|
850
|
+
reference: () => a(m("el-tag"), {
|
|
851
|
+
class: "cursor-pointer",
|
|
852
|
+
closable: !0,
|
|
853
|
+
key: U.key,
|
|
854
|
+
onClick: () => h({
|
|
855
|
+
key: U.key
|
|
856
|
+
}),
|
|
857
|
+
onClose: () => e.value = U.key
|
|
858
|
+
}, {
|
|
859
|
+
default: () => [U.translate]
|
|
860
|
+
}),
|
|
861
|
+
default: () => {
|
|
862
|
+
let P, me;
|
|
863
|
+
return a("div", null, [a("p", null, null), a("p", null, [`${t("base.confirm base.space base.delete base.space menu.rules")}: ${V.translate}-${U.translate} ?`]), a("div", {
|
|
864
|
+
style: "text-align: right; margin: 0"
|
|
865
|
+
}, [a(m("el-button"), {
|
|
866
|
+
size: "small",
|
|
867
|
+
text: !0,
|
|
868
|
+
onClick: () => e.value = ""
|
|
869
|
+
}, pe(P = t("base.cancel")) ? P : {
|
|
870
|
+
default: () => [P]
|
|
871
|
+
}), a(m("el-button"), {
|
|
872
|
+
size: "small",
|
|
873
|
+
type: "danger",
|
|
874
|
+
onClick: () => T(U.key)
|
|
875
|
+
}, pe(me = t("base.confirm")) ? me : {
|
|
876
|
+
default: () => [me]
|
|
877
|
+
})])]);
|
|
878
|
+
}
|
|
879
|
+
}))];
|
|
880
|
+
}
|
|
631
881
|
})
|
|
632
|
-
},
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
label: t("base.status"),
|
|
885
|
+
prop: "status",
|
|
886
|
+
width: 80,
|
|
887
|
+
type: "switch",
|
|
888
|
+
props: {
|
|
889
|
+
activeValue: 1,
|
|
890
|
+
inactiveValue: 2,
|
|
891
|
+
api: O.urls[be],
|
|
892
|
+
refresh: !0
|
|
893
|
+
}
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
prop: "action",
|
|
897
|
+
label: t("base.action"),
|
|
898
|
+
width: 60,
|
|
899
|
+
align: "center",
|
|
900
|
+
render: ({
|
|
901
|
+
row: V
|
|
902
|
+
}) => a(Y, {
|
|
903
|
+
size: "default",
|
|
904
|
+
onModify: () => s({
|
|
905
|
+
id: V.id
|
|
906
|
+
})
|
|
907
|
+
}, null)
|
|
908
|
+
}
|
|
909
|
+
], {
|
|
910
|
+
requesting: b
|
|
911
|
+
} = L(O), {
|
|
912
|
+
tableRef: n,
|
|
913
|
+
formModalRef: r,
|
|
914
|
+
keyword: i,
|
|
915
|
+
search: d,
|
|
653
916
|
refresh: u,
|
|
654
|
-
|
|
655
|
-
|
|
917
|
+
reset: f,
|
|
918
|
+
openFormModal: c,
|
|
919
|
+
editFormModal: s
|
|
920
|
+
} = A(_), {
|
|
921
|
+
formModalRef: v,
|
|
922
|
+
openFormModal: k,
|
|
923
|
+
editFormModal: h
|
|
924
|
+
} = A(), T = (V) => {
|
|
925
|
+
he[Se]({
|
|
926
|
+
key: V
|
|
927
|
+
}).then(() => {
|
|
928
|
+
e.value = "", u();
|
|
929
|
+
});
|
|
930
|
+
}, D = {
|
|
931
|
+
DEFAULT_KEYWORD: _,
|
|
932
|
+
deleteKey: e,
|
|
933
|
+
columns: p,
|
|
934
|
+
requesting: b,
|
|
935
|
+
tableRef: n,
|
|
936
|
+
formModalRef: r,
|
|
937
|
+
keyword: i,
|
|
938
|
+
search: d,
|
|
939
|
+
refresh: u,
|
|
940
|
+
reset: f,
|
|
941
|
+
openFormModal: c,
|
|
942
|
+
editFormModal: s,
|
|
943
|
+
ruleFormModalRef: v,
|
|
944
|
+
openRuleFormModal: k,
|
|
945
|
+
editRuleFormModal: h,
|
|
946
|
+
removeRule: T,
|
|
656
947
|
get DEFAULT_PAGE_KEY() {
|
|
657
948
|
return se;
|
|
658
949
|
},
|
|
659
950
|
get Translate() {
|
|
660
951
|
return t;
|
|
661
952
|
},
|
|
953
|
+
get $api() {
|
|
954
|
+
return O;
|
|
955
|
+
},
|
|
956
|
+
get iconKey() {
|
|
957
|
+
return Ee;
|
|
958
|
+
},
|
|
662
959
|
get OpenButton() {
|
|
663
960
|
return z;
|
|
664
961
|
},
|
|
@@ -669,64 +966,68 @@ const Ye = /* @__PURE__ */ R(Ke, [["render", Ne], ["__file", "/Users/Raven/Proje
|
|
|
669
966
|
return W;
|
|
670
967
|
},
|
|
671
968
|
get ProTable() {
|
|
672
|
-
return
|
|
969
|
+
return re;
|
|
673
970
|
},
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
return ne;
|
|
677
|
-
}
|
|
971
|
+
MenuFormModal: Ne,
|
|
972
|
+
MenuRuleFormModal: Je
|
|
678
973
|
};
|
|
679
|
-
return Object.defineProperty(
|
|
974
|
+
return Object.defineProperty(D, "__isScriptSetup", {
|
|
680
975
|
enumerable: !1,
|
|
681
976
|
value: !0
|
|
682
|
-
}),
|
|
977
|
+
}), D;
|
|
683
978
|
}
|
|
684
979
|
});
|
|
685
|
-
function
|
|
686
|
-
const n = m("el-
|
|
687
|
-
return y(),
|
|
980
|
+
function Ze(g, l, _, e, p, b) {
|
|
981
|
+
const n = m("el-button"), r = m("el-input"), i = m("el-radio-button"), d = m("el-radio-group"), u = m("el-space"), f = m("el-page-header"), c = m("el-card");
|
|
982
|
+
return y(), x(c, {
|
|
688
983
|
class: "basic-card flex-full",
|
|
689
|
-
"body-class": "flex-1"
|
|
984
|
+
"body-class": "flex-1",
|
|
985
|
+
onClick: l[5] || (l[5] = () => e.deleteKey = "")
|
|
690
986
|
}, {
|
|
691
987
|
header: o(() => [
|
|
692
|
-
a(
|
|
988
|
+
a(f, { class: "basic-header" }, {
|
|
693
989
|
title: o(() => [
|
|
694
990
|
a(e.RefreshButton, {
|
|
695
991
|
loading: e.requesting,
|
|
696
992
|
onRefresh: e.reset
|
|
697
993
|
}, null, 8, ["loading", "onRefresh"]),
|
|
698
|
-
a(e.OpenButton, { onOpen: e.openFormModal }, null, 8, ["onOpen"])
|
|
994
|
+
a(e.OpenButton, { onOpen: e.openFormModal }, null, 8, ["onOpen"]),
|
|
995
|
+
a(n, {
|
|
996
|
+
circle: "",
|
|
997
|
+
icon: e.iconKey,
|
|
998
|
+
onClick: e.openRuleFormModal
|
|
999
|
+
}, null, 8, ["icon", "onClick"])
|
|
699
1000
|
]),
|
|
700
1001
|
content: o(() => [
|
|
701
|
-
a(
|
|
1002
|
+
a(u, { class: "search-bar" }, {
|
|
702
1003
|
default: o(() => [
|
|
703
|
-
a(
|
|
1004
|
+
a(r, {
|
|
704
1005
|
class: "basic-search-input",
|
|
705
1006
|
modelValue: e.keyword.keyword,
|
|
706
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
1007
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => e.keyword.keyword = s),
|
|
707
1008
|
placeholder: e.Translate("base.placeholder.keyword"),
|
|
708
1009
|
clearable: "",
|
|
709
|
-
onKeyup: l[1] || (l[1] = ie((
|
|
710
|
-
onClear: l[2] || (l[2] = (
|
|
1010
|
+
onKeyup: l[1] || (l[1] = ie((s) => e.search(), ["enter"])),
|
|
1011
|
+
onClear: l[2] || (l[2] = (s) => e.search())
|
|
711
1012
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
712
|
-
a(
|
|
1013
|
+
a(d, {
|
|
713
1014
|
modelValue: e.keyword.status,
|
|
714
|
-
"onUpdate:modelValue": l[3] || (l[3] = (
|
|
715
|
-
onChange: l[4] || (l[4] = (
|
|
1015
|
+
"onUpdate:modelValue": l[3] || (l[3] = (s) => e.keyword.status = s),
|
|
1016
|
+
onChange: l[4] || (l[4] = (s) => e.search())
|
|
716
1017
|
}, {
|
|
717
1018
|
default: o(() => [
|
|
718
|
-
(y(), N(j, null, ee([0, 1, 2], (
|
|
719
|
-
key:
|
|
720
|
-
label: e.Translate(`base.DISABLE_ENABLE.${
|
|
721
|
-
value:
|
|
1019
|
+
(y(), N(j, null, ee([0, 1, 2], (s) => a(i, {
|
|
1020
|
+
key: s,
|
|
1021
|
+
label: e.Translate(`base.DISABLE_ENABLE.${s}`),
|
|
1022
|
+
value: s
|
|
722
1023
|
}, null, 8, ["label", "value"])), 64))
|
|
723
1024
|
]),
|
|
724
1025
|
_: 1
|
|
725
1026
|
}, 8, ["modelValue"]),
|
|
726
1027
|
a(e.SearchButton, {
|
|
727
1028
|
disabled: e.requesting,
|
|
728
|
-
onSearch:
|
|
729
|
-
}, null, 8, ["disabled"])
|
|
1029
|
+
onSearch: e.search
|
|
1030
|
+
}, null, 8, ["disabled", "onSearch"])
|
|
730
1031
|
]),
|
|
731
1032
|
_: 1
|
|
732
1033
|
})
|
|
@@ -743,165 +1044,195 @@ function We(g, l, p, e, _, b) {
|
|
|
743
1044
|
"search-param": e.keyword,
|
|
744
1045
|
"auto-search": ""
|
|
745
1046
|
}, null, 8, ["url", "search-param"]),
|
|
746
|
-
a(e.
|
|
1047
|
+
a(e.MenuFormModal, {
|
|
747
1048
|
ref: "formModalRef",
|
|
748
1049
|
onRefresh: e.refresh
|
|
1050
|
+
}, null, 8, ["onRefresh"]),
|
|
1051
|
+
a(e.MenuRuleFormModal, {
|
|
1052
|
+
ref: "ruleFormModalRef",
|
|
1053
|
+
onRefresh: e.refresh
|
|
749
1054
|
}, null, 8, ["onRefresh"])
|
|
750
1055
|
]),
|
|
751
1056
|
_: 1
|
|
752
1057
|
});
|
|
753
1058
|
}
|
|
754
|
-
const
|
|
1059
|
+
const $e = /* @__PURE__ */ R(Xe, [["render", Ze], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/menu/index.vue"]]), el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
755
1060
|
__proto__: null,
|
|
756
|
-
default:
|
|
757
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
758
|
-
|
|
759
|
-
rules: "rules"
|
|
760
|
-
}, O = E.routineApi("menu", "id", Je, {}, ["TOP_MENU_LIST", "MENU_LIST"]), he = E.routineApi("rule", "key");
|
|
761
|
-
/*! Element Plus Icons Vue v2.3.1 */
|
|
762
|
-
var Xe = /* @__PURE__ */ x({
|
|
763
|
-
name: "Key",
|
|
764
|
-
__name: "key",
|
|
765
|
-
setup(g) {
|
|
766
|
-
return (l, p) => (y(), N("svg", {
|
|
767
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
768
|
-
viewBox: "0 0 1024 1024"
|
|
769
|
-
}, [
|
|
770
|
-
q("path", {
|
|
771
|
-
fill: "currentColor",
|
|
772
|
-
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"
|
|
773
|
-
})
|
|
774
|
-
]));
|
|
775
|
-
}
|
|
776
|
-
}), Ze = Xe;
|
|
777
|
-
const $e = /* @__PURE__ */ x({
|
|
778
|
-
__name: "TopMenuSelect",
|
|
1061
|
+
default: $e
|
|
1062
|
+
}, Symbol.toStringTag, { value: "Module" })), de = E.routineApi("role", "key"), ll = /* @__PURE__ */ w({
|
|
1063
|
+
__name: "RulesCheck",
|
|
779
1064
|
props: {
|
|
780
|
-
modelValue: {
|
|
781
|
-
|
|
782
|
-
required: !0
|
|
783
|
-
},
|
|
784
|
-
multiple: {
|
|
785
|
-
type: Boolean,
|
|
786
|
-
default: !1
|
|
787
|
-
}
|
|
1065
|
+
modelValue: { type: Array, required: !0 },
|
|
1066
|
+
disabled: { type: Boolean, default: !1 }
|
|
788
1067
|
},
|
|
789
|
-
emits: ["update:modelValue"
|
|
790
|
-
setup(g, {
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
} =
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
},
|
|
820
|
-
|
|
821
|
-
|
|
1068
|
+
emits: ["update:modelValue"],
|
|
1069
|
+
setup(g, { expose: l, emit: _ }) {
|
|
1070
|
+
const { requesting: e } = L(O), p = g, b = _, n = B(!1), r = Ve({
|
|
1071
|
+
checkAll: !1,
|
|
1072
|
+
indeterminate: !1,
|
|
1073
|
+
MenuAll: {},
|
|
1074
|
+
MenuList: {},
|
|
1075
|
+
MenuIndeterminate: {}
|
|
1076
|
+
}), { options: i, refresh: d } = $(Z(p, "modelValue"), b, { key: "RULE_CHECK", api: O, url: O.urls.rules, isArray: !0 }, { autoRefresh: !1 });
|
|
1077
|
+
function u() {
|
|
1078
|
+
i.value.forEach((T) => {
|
|
1079
|
+
var D;
|
|
1080
|
+
(D = T.rules) != null && D.length && (r.MenuAll[T.id] = !1, r.MenuIndeterminate[T.id] = !1, r.MenuList[T.id] = []);
|
|
1081
|
+
});
|
|
1082
|
+
}
|
|
1083
|
+
function f(T) {
|
|
1084
|
+
i.value.forEach((D) => {
|
|
1085
|
+
var V;
|
|
1086
|
+
(V = D.rules) != null && V.length && (r.MenuList[D.id] = T ? D.rules.map((S) => S.key) : []);
|
|
1087
|
+
}), s();
|
|
1088
|
+
}
|
|
1089
|
+
function c(T, D) {
|
|
1090
|
+
const V = i.value.find((S) => S.id === D);
|
|
1091
|
+
r.MenuList[D] = T && V ? V.rules.map((S) => S.key) : [], s();
|
|
1092
|
+
}
|
|
1093
|
+
function s() {
|
|
1094
|
+
i.value.forEach((T) => {
|
|
1095
|
+
var S, U;
|
|
1096
|
+
const D = ((S = T.rules) == null ? void 0 : S.length) || 0, V = ((U = r.MenuList[T.id]) == null ? void 0 : U.length) || 0;
|
|
1097
|
+
r.MenuAll[T.id] = V === D && D > 0, r.MenuIndeterminate[T.id] = V > 0 && V < D;
|
|
1098
|
+
}), r.checkAll = Object.values(r.MenuAll).every(Boolean), r.indeterminate = !r.checkAll && Object.values(r.MenuList).some((T) => T.length > 0), b("update:modelValue", Object.values(r.MenuList).flat());
|
|
1099
|
+
}
|
|
1100
|
+
function v() {
|
|
1101
|
+
r.checkAll = !1, r.indeterminate = !1, r.MenuAll = {}, r.MenuList = {}, r.MenuIndeterminate = {}, u(), b("update:modelValue", []), n.value = !1;
|
|
1102
|
+
}
|
|
1103
|
+
function k(T) {
|
|
1104
|
+
var D;
|
|
1105
|
+
if (Array.isArray(i.value) && i.value.length > 0) {
|
|
1106
|
+
for (let V of i.value)
|
|
1107
|
+
if (Array.isArray(V.rules) && V.rules.length > 0)
|
|
1108
|
+
for (let S of V.rules)
|
|
1109
|
+
T.some((U) => U === S.key) && (r.MenuList[V.id] = (((D = r.MenuList) == null ? void 0 : D[V.id]) || []).concat([S.key]));
|
|
1110
|
+
s(), n.value = !0;
|
|
822
1111
|
}
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
value
|
|
827
|
-
}),
|
|
1112
|
+
}
|
|
1113
|
+
ye(async () => {
|
|
1114
|
+
var T;
|
|
1115
|
+
(T = i.value) != null && T.length || await d(), !n.value && p.modelValue && k(p.modelValue);
|
|
1116
|
+
}), ke(
|
|
1117
|
+
() => p.modelValue,
|
|
1118
|
+
(T) => {
|
|
1119
|
+
xe(() => {
|
|
1120
|
+
var D;
|
|
1121
|
+
n.value || !((D = i.value) != null && D.length) || T && T.length > 0 && k(T);
|
|
1122
|
+
});
|
|
1123
|
+
},
|
|
1124
|
+
{ deep: !0, immediate: !0 }
|
|
1125
|
+
), l({
|
|
1126
|
+
generateOption: k,
|
|
1127
|
+
cleanChecked: v
|
|
1128
|
+
});
|
|
1129
|
+
const h = { requesting: e, props: p, emit: b, initialized: n, state: r, options: i, refresh: d, initState: u, onCheckAllChange: f, onCheckMenuAllChange: c, updateState: s, cleanChecked: v, generateOption: k, get RefreshButton() {
|
|
1130
|
+
return F;
|
|
1131
|
+
} };
|
|
1132
|
+
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
828
1133
|
}
|
|
829
|
-
});
|
|
830
|
-
function
|
|
831
|
-
const n = m("el-
|
|
832
|
-
return y(),
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
1134
|
+
}), al = { class: "rule-check" }, ol = { style: { width: "80px", "line-height": "36px" } };
|
|
1135
|
+
function rl(g, l, _, e, p, b) {
|
|
1136
|
+
const n = m("el-checkbox"), r = m("el-space"), i = m("el-text"), d = m("el-divider"), u = m("el-checkbox-group");
|
|
1137
|
+
return y(), N("div", al, [
|
|
1138
|
+
a(r, { style: { "margin-bottom": "6px" } }, {
|
|
1139
|
+
default: o(() => [
|
|
1140
|
+
a(n, {
|
|
1141
|
+
"model-value": e.state.checkAll,
|
|
1142
|
+
indeterminate: e.state.indeterminate,
|
|
1143
|
+
id: "all",
|
|
1144
|
+
disabled: _.disabled,
|
|
1145
|
+
onChange: e.onCheckAllChange
|
|
1146
|
+
}, {
|
|
1147
|
+
default: o(() => [...l[1] || (l[1] = [
|
|
1148
|
+
q("span", null, "全选", -1)
|
|
1149
|
+
])]),
|
|
1150
|
+
_: 1
|
|
1151
|
+
}, 8, ["model-value", "indeterminate", "disabled"]),
|
|
1152
|
+
a(e.RefreshButton, {
|
|
1153
|
+
loading: e.requesting,
|
|
1154
|
+
text: "",
|
|
1155
|
+
size: "small",
|
|
1156
|
+
onRefresh: l[0] || (l[0] = (f) => e.refresh(!0))
|
|
1157
|
+
}, null, 8, ["loading"])
|
|
1158
|
+
]),
|
|
1159
|
+
_: 1
|
|
1160
|
+
}),
|
|
1161
|
+
a(r, {
|
|
1162
|
+
direction: "vertical",
|
|
1163
|
+
alignment: "start",
|
|
1164
|
+
class: "rule-check-content"
|
|
1165
|
+
}, {
|
|
1166
|
+
default: o(() => [
|
|
1167
|
+
(y(!0), N(j, null, ee(e.options, (f) => (y(), N("div", {
|
|
1168
|
+
key: f.id
|
|
1169
|
+
}, [
|
|
1170
|
+
a(r, {
|
|
1171
|
+
direction: "horizontal",
|
|
1172
|
+
size: 2
|
|
1173
|
+
}, {
|
|
1174
|
+
default: o(() => [
|
|
1175
|
+
a(n, {
|
|
1176
|
+
style: { "min-width": "150px" },
|
|
1177
|
+
"model-value": e.state.MenuAll[f.id],
|
|
1178
|
+
disabled: _.disabled || !f.rules || f.rules.length <= 0,
|
|
1179
|
+
indeterminate: e.state.MenuIndeterminate[f.id],
|
|
1180
|
+
onChange: (c) => e.onCheckMenuAllChange(c, f.id)
|
|
1181
|
+
}, {
|
|
1182
|
+
default: o(() => [
|
|
1183
|
+
a(i, { style: { "font-size": "15px" } }, {
|
|
1184
|
+
default: o(() => [
|
|
1185
|
+
G(C(f.translate), 1)
|
|
1186
|
+
]),
|
|
1187
|
+
_: 2
|
|
1188
|
+
}, 1024)
|
|
1189
|
+
]),
|
|
1190
|
+
_: 2
|
|
1191
|
+
}, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
|
|
1192
|
+
a(d, { direction: "vertical" }),
|
|
1193
|
+
f.rules ? (y(), x(u, {
|
|
1194
|
+
key: 0,
|
|
1195
|
+
modelValue: e.state.MenuList[f.id],
|
|
1196
|
+
"onUpdate:modelValue": (c) => e.state.MenuList[f.id] = c,
|
|
1197
|
+
disabled: _.disabled,
|
|
1198
|
+
style: { margin: "auto" },
|
|
1199
|
+
onChange: e.updateState
|
|
1200
|
+
}, {
|
|
1201
|
+
default: o(() => [
|
|
1202
|
+
(y(!0), N(j, null, ee(f.rules, (c) => (y(), x(n, {
|
|
1203
|
+
key: c.key,
|
|
1204
|
+
value: c.key
|
|
1205
|
+
}, {
|
|
1206
|
+
default: o(() => [
|
|
1207
|
+
q("div", ol, C(c.translate), 1)
|
|
1208
|
+
]),
|
|
1209
|
+
_: 2
|
|
1210
|
+
}, 1032, ["value"]))), 128))
|
|
1211
|
+
]),
|
|
1212
|
+
_: 2
|
|
1213
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : we("", !0)
|
|
1214
|
+
]),
|
|
1215
|
+
_: 2
|
|
1216
|
+
}, 1024)
|
|
1217
|
+
]))), 128))
|
|
1218
|
+
]),
|
|
1219
|
+
_: 1
|
|
1220
|
+
})
|
|
1221
|
+
]);
|
|
863
1222
|
}
|
|
864
|
-
const
|
|
865
|
-
__name: "
|
|
1223
|
+
const nl = /* @__PURE__ */ R(ll, [["render", rl], ["__scopeId", "data-v-670264db"], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/role/components/RulesCheck.vue"]]), tl = /* @__PURE__ */ w({
|
|
1224
|
+
__name: "RoleFormModal",
|
|
866
1225
|
emits: ["refresh"],
|
|
867
|
-
setup(g, { expose: l, emit:
|
|
868
|
-
const e = p,
|
|
869
|
-
|
|
870
|
-
menu_id: 0,
|
|
1226
|
+
setup(g, { expose: l, emit: _ }) {
|
|
1227
|
+
const e = _, p = B(), b = {
|
|
1228
|
+
key: "",
|
|
871
1229
|
module: "",
|
|
872
1230
|
sort: 0,
|
|
873
1231
|
name: "",
|
|
874
1232
|
en_name: "",
|
|
875
|
-
url: "",
|
|
876
|
-
component: "",
|
|
877
|
-
icon: "",
|
|
878
1233
|
remark: "",
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
icon: "",
|
|
882
|
-
title: "",
|
|
883
|
-
affix: !1,
|
|
884
|
-
full: !1,
|
|
885
|
-
hide: !1,
|
|
886
|
-
keep_alive: !1,
|
|
887
|
-
link: !1
|
|
888
|
-
}
|
|
889
|
-
}, b = {
|
|
890
|
-
sort: [
|
|
891
|
-
{
|
|
892
|
-
required: !0,
|
|
893
|
-
type: "number",
|
|
894
|
-
message: t("base.placeholder.input base.sort"),
|
|
895
|
-
trigger: "blur"
|
|
896
|
-
}
|
|
897
|
-
],
|
|
898
|
-
module: [
|
|
899
|
-
{
|
|
900
|
-
required: !0,
|
|
901
|
-
message: t("base.placeholder.input menu.module"),
|
|
902
|
-
trigger: "blur"
|
|
903
|
-
}
|
|
904
|
-
],
|
|
1234
|
+
rules: []
|
|
1235
|
+
}, n = {
|
|
905
1236
|
name: [
|
|
906
1237
|
{
|
|
907
1238
|
required: !0,
|
|
@@ -915,173 +1246,55 @@ const ll = /* @__PURE__ */ R($e, [["render", el], ["__file", "/Users/Raven/Proje
|
|
|
915
1246
|
message: t("base.placeholder.input base.en_name"),
|
|
916
1247
|
trigger: "blur"
|
|
917
1248
|
}
|
|
918
|
-
],
|
|
919
|
-
url: [
|
|
920
|
-
{
|
|
921
|
-
required: !0,
|
|
922
|
-
message: t("base.placeholder.input base.url"),
|
|
923
|
-
trigger: "blur"
|
|
924
|
-
}
|
|
925
|
-
],
|
|
926
|
-
component: [
|
|
927
|
-
{
|
|
928
|
-
required: !0,
|
|
929
|
-
message: t("base.placeholder.input menu.component"),
|
|
930
|
-
trigger: "blur"
|
|
931
|
-
}
|
|
932
1249
|
]
|
|
933
|
-
}, { modal:
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
prop: "menu_id"
|
|
977
|
-
}, {
|
|
978
|
-
default: o(() => [
|
|
979
|
-
a(e.TopMenuSelect, {
|
|
980
|
-
modelValue: e.formData.menu_id,
|
|
981
|
-
"onUpdate:modelValue": l[0] || (l[0] = (s) => e.formData.menu_id = s)
|
|
982
|
-
}, null, 8, ["modelValue"])
|
|
983
|
-
]),
|
|
984
|
-
_: 1
|
|
985
|
-
}, 8, ["label"])
|
|
986
|
-
]),
|
|
987
|
-
_: 1
|
|
988
|
-
}),
|
|
989
|
-
a(r, { span: 12 }, {
|
|
990
|
-
default: o(() => [
|
|
991
|
-
a(n, {
|
|
992
|
-
label: e.Translate("base.sort"),
|
|
993
|
-
prop: "sort"
|
|
994
|
-
}, {
|
|
995
|
-
default: o(() => [
|
|
996
|
-
a(i, {
|
|
997
|
-
class: "w-full",
|
|
998
|
-
modelValue: e.formData.sort,
|
|
999
|
-
"onUpdate:modelValue": l[1] || (l[1] = (s) => e.formData.sort = s),
|
|
1000
|
-
min: 0,
|
|
1001
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
1002
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
1003
|
-
]),
|
|
1004
|
-
_: 1
|
|
1005
|
-
}, 8, ["label"])
|
|
1006
|
-
]),
|
|
1007
|
-
_: 1
|
|
1008
|
-
})
|
|
1009
|
-
]),
|
|
1010
|
-
_: 1
|
|
1011
|
-
}),
|
|
1012
|
-
a(n, {
|
|
1013
|
-
label: e.Translate("menu.module"),
|
|
1014
|
-
prop: "module"
|
|
1015
|
-
}, {
|
|
1016
|
-
default: o(() => [
|
|
1017
|
-
a(u, {
|
|
1018
|
-
modelValue: e.formData.module,
|
|
1019
|
-
"onUpdate:modelValue": l[2] || (l[2] = (s) => e.formData.module = s),
|
|
1020
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
1021
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
1022
|
-
]),
|
|
1023
|
-
_: 1
|
|
1024
|
-
}, 8, ["label"]),
|
|
1025
|
-
a(n, {
|
|
1026
|
-
label: e.Translate("base.name"),
|
|
1027
|
-
prop: "name"
|
|
1028
|
-
}, {
|
|
1029
|
-
default: o(() => [
|
|
1030
|
-
a(u, {
|
|
1031
|
-
modelValue: e.formData.name,
|
|
1032
|
-
"onUpdate:modelValue": l[3] || (l[3] = (s) => e.formData.name = s),
|
|
1033
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
1034
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
1035
|
-
]),
|
|
1036
|
-
_: 1
|
|
1037
|
-
}, 8, ["label"]),
|
|
1038
|
-
a(n, {
|
|
1039
|
-
label: e.Translate("base.en_name"),
|
|
1040
|
-
prop: "en_name"
|
|
1041
|
-
}, {
|
|
1042
|
-
default: o(() => [
|
|
1043
|
-
a(u, {
|
|
1044
|
-
modelValue: e.formData.en_name,
|
|
1045
|
-
"onUpdate:modelValue": l[4] || (l[4] = (s) => e.formData.en_name = s),
|
|
1046
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
1047
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
1048
|
-
]),
|
|
1049
|
-
_: 1
|
|
1050
|
-
}, 8, ["label"]),
|
|
1051
|
-
a(n, {
|
|
1052
|
-
label: e.Translate("menu.component"),
|
|
1053
|
-
prop: "component"
|
|
1054
|
-
}, {
|
|
1055
|
-
default: o(() => [
|
|
1056
|
-
a(u, {
|
|
1057
|
-
modelValue: e.formData.component,
|
|
1058
|
-
"onUpdate:modelValue": l[5] || (l[5] = (s) => e.formData.component = s),
|
|
1059
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
1060
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
1061
|
-
]),
|
|
1062
|
-
_: 1
|
|
1063
|
-
}, 8, ["label"]),
|
|
1064
|
-
a(n, {
|
|
1065
|
-
label: e.Translate("base.url"),
|
|
1066
|
-
prop: "url"
|
|
1067
|
-
}, {
|
|
1068
|
-
default: o(() => [
|
|
1069
|
-
a(u, {
|
|
1070
|
-
modelValue: e.formData.url,
|
|
1071
|
-
"onUpdate:modelValue": l[6] || (l[6] = (s) => e.formData.url = s),
|
|
1072
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
1073
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
1074
|
-
]),
|
|
1075
|
-
_: 1
|
|
1076
|
-
}, 8, ["label"]),
|
|
1077
|
-
a(n, {
|
|
1078
|
-
label: e.Translate("base.remark"),
|
|
1079
|
-
prop: "remark"
|
|
1250
|
+
}, { modal: r, title: i, form: d, formData: u, requesting: f, executing: c, open: s, modify: v, submit: k, closed: h } = I(e, b, de), T = () => {
|
|
1251
|
+
var V;
|
|
1252
|
+
(V = p.value) == null || V.cleanChecked(), h();
|
|
1253
|
+
};
|
|
1254
|
+
l({
|
|
1255
|
+
open: s,
|
|
1256
|
+
modify: v
|
|
1257
|
+
});
|
|
1258
|
+
const D = { emits: e, rulesCheck: p, DEFAULT_DATA: b, rules: n, modal: r, title: i, form: d, formData: u, requesting: f, executing: c, open: s, modify: v, submit: k, closed: h, onClose: T, get Translate() {
|
|
1259
|
+
return t;
|
|
1260
|
+
}, get FormDialog() {
|
|
1261
|
+
return K;
|
|
1262
|
+
}, RulesCheck: nl };
|
|
1263
|
+
return Object.defineProperty(D, "__isScriptSetup", { enumerable: !1, value: !0 }), D;
|
|
1264
|
+
}
|
|
1265
|
+
});
|
|
1266
|
+
function dl(g, l, _, e, p, b) {
|
|
1267
|
+
const n = m("el-input"), r = m("el-form-item"), i = m("el-col"), d = m("el-input-number"), u = m("el-row"), f = m("el-form");
|
|
1268
|
+
return y(), x(e.FormDialog, {
|
|
1269
|
+
modelValue: e.modal,
|
|
1270
|
+
"onUpdate:modelValue": l[6] || (l[6] = (c) => e.modal = c),
|
|
1271
|
+
title: e.title(),
|
|
1272
|
+
width: "1000px",
|
|
1273
|
+
executing: e.executing,
|
|
1274
|
+
onClosed: e.onClose,
|
|
1275
|
+
onSubmit: e.submit
|
|
1276
|
+
}, {
|
|
1277
|
+
default: o(() => [
|
|
1278
|
+
a(f, {
|
|
1279
|
+
ref: "form",
|
|
1280
|
+
model: e.formData,
|
|
1281
|
+
"label-width": "auto",
|
|
1282
|
+
rules: e.rules,
|
|
1283
|
+
disabled: e.requesting || e.executing
|
|
1284
|
+
}, {
|
|
1285
|
+
default: o(() => [
|
|
1286
|
+
a(u, { gutter: 20 }, {
|
|
1287
|
+
default: o(() => [
|
|
1288
|
+
a(i, { span: 12 }, {
|
|
1289
|
+
default: o(() => [
|
|
1290
|
+
a(r, {
|
|
1291
|
+
label: e.Translate("base.module"),
|
|
1292
|
+
prop: "module"
|
|
1080
1293
|
}, {
|
|
1081
1294
|
default: o(() => [
|
|
1082
|
-
a(
|
|
1083
|
-
modelValue: e.formData.
|
|
1084
|
-
"onUpdate:modelValue": l[
|
|
1295
|
+
a(n, {
|
|
1296
|
+
modelValue: e.formData.module,
|
|
1297
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => e.formData.module = c),
|
|
1085
1298
|
placeholder: e.Translate("base.placeholder.input")
|
|
1086
1299
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1087
1300
|
]),
|
|
@@ -1090,322 +1303,313 @@ function ol(g, l, p, e, _, b) {
|
|
|
1090
1303
|
]),
|
|
1091
1304
|
_: 1
|
|
1092
1305
|
}),
|
|
1093
|
-
a(
|
|
1306
|
+
a(i, { span: 12 }, {
|
|
1094
1307
|
default: o(() => [
|
|
1095
|
-
a(
|
|
1096
|
-
label: e.Translate("base.
|
|
1097
|
-
prop: "
|
|
1098
|
-
}, {
|
|
1099
|
-
default: o(() => [
|
|
1100
|
-
a(u, {
|
|
1101
|
-
modelValue: e.formData.icon,
|
|
1102
|
-
"onUpdate:modelValue": l[8] || (l[8] = (s) => e.formData.icon = s),
|
|
1103
|
-
placeholder: e.Translate("base.placeholder.input"),
|
|
1104
|
-
onInput: l[9] || (l[9] = (s) => {
|
|
1105
|
-
e.formData.meta.icon = s;
|
|
1106
|
-
})
|
|
1107
|
-
}, {
|
|
1108
|
-
prepend: o(() => [
|
|
1109
|
-
q("span", {
|
|
1110
|
-
class: fe("iconfont " + e.formData.icon)
|
|
1111
|
-
}, null, 2)
|
|
1112
|
-
]),
|
|
1113
|
-
_: 1
|
|
1114
|
-
}, 8, ["modelValue", "placeholder"])
|
|
1115
|
-
]),
|
|
1116
|
-
_: 1
|
|
1117
|
-
}, 8, ["label"]),
|
|
1118
|
-
a(n, {
|
|
1119
|
-
label: e.Translate("base.title"),
|
|
1120
|
-
prop: "meta.title"
|
|
1121
|
-
}, {
|
|
1122
|
-
default: o(() => [
|
|
1123
|
-
a(u, {
|
|
1124
|
-
modelValue: e.formData.meta.title,
|
|
1125
|
-
"onUpdate:modelValue": l[10] || (l[10] = (s) => e.formData.meta.title = s),
|
|
1126
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
1127
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
1128
|
-
]),
|
|
1129
|
-
_: 1
|
|
1130
|
-
}, 8, ["label"]),
|
|
1131
|
-
a(n, {
|
|
1132
|
-
label: e.Translate("menu.active"),
|
|
1133
|
-
prop: "meta.active"
|
|
1308
|
+
a(r, {
|
|
1309
|
+
label: e.Translate("base.sort"),
|
|
1310
|
+
prop: "sort"
|
|
1134
1311
|
}, {
|
|
1135
1312
|
default: o(() => [
|
|
1136
|
-
a(
|
|
1137
|
-
|
|
1138
|
-
|
|
1313
|
+
a(d, {
|
|
1314
|
+
class: "w-full",
|
|
1315
|
+
modelValue: e.formData.sort,
|
|
1316
|
+
"onUpdate:modelValue": l[1] || (l[1] = (c) => e.formData.sort = c),
|
|
1317
|
+
min: 0,
|
|
1139
1318
|
placeholder: e.Translate("base.placeholder.input")
|
|
1140
1319
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1141
1320
|
]),
|
|
1142
1321
|
_: 1
|
|
1143
|
-
}, 8, ["label"])
|
|
1144
|
-
a(d, null, {
|
|
1145
|
-
default: o(() => [
|
|
1146
|
-
a(r, { span: 12 }, {
|
|
1147
|
-
default: o(() => [
|
|
1148
|
-
a(n, {
|
|
1149
|
-
label: e.Translate("menu.link"),
|
|
1150
|
-
prop: "meta.link"
|
|
1151
|
-
}, {
|
|
1152
|
-
default: o(() => [
|
|
1153
|
-
a(f, {
|
|
1154
|
-
modelValue: e.formData.meta.link,
|
|
1155
|
-
"onUpdate:modelValue": l[12] || (l[12] = (s) => e.formData.meta.link = s)
|
|
1156
|
-
}, null, 8, ["modelValue"])
|
|
1157
|
-
]),
|
|
1158
|
-
_: 1
|
|
1159
|
-
}, 8, ["label"])
|
|
1160
|
-
]),
|
|
1161
|
-
_: 1
|
|
1162
|
-
}),
|
|
1163
|
-
a(r, { span: 12 }, {
|
|
1164
|
-
default: o(() => [
|
|
1165
|
-
a(n, {
|
|
1166
|
-
label: e.Translate("menu.keep_alive"),
|
|
1167
|
-
prop: "meta.keep_alive"
|
|
1168
|
-
}, {
|
|
1169
|
-
default: o(() => [
|
|
1170
|
-
a(f, {
|
|
1171
|
-
modelValue: e.formData.meta.keep_alive,
|
|
1172
|
-
"onUpdate:modelValue": l[13] || (l[13] = (s) => e.formData.meta.keep_alive = s)
|
|
1173
|
-
}, null, 8, ["modelValue"])
|
|
1174
|
-
]),
|
|
1175
|
-
_: 1
|
|
1176
|
-
}, 8, ["label"])
|
|
1177
|
-
]),
|
|
1178
|
-
_: 1
|
|
1179
|
-
}),
|
|
1180
|
-
a(r, { span: 12 }, {
|
|
1181
|
-
default: o(() => [
|
|
1182
|
-
a(n, {
|
|
1183
|
-
label: e.Translate("menu.hide"),
|
|
1184
|
-
prop: "meta.hide"
|
|
1185
|
-
}, {
|
|
1186
|
-
default: o(() => [
|
|
1187
|
-
a(f, {
|
|
1188
|
-
modelValue: e.formData.meta.hide,
|
|
1189
|
-
"onUpdate:modelValue": l[14] || (l[14] = (s) => e.formData.meta.hide = s)
|
|
1190
|
-
}, null, 8, ["modelValue"])
|
|
1191
|
-
]),
|
|
1192
|
-
_: 1
|
|
1193
|
-
}, 8, ["label"])
|
|
1194
|
-
]),
|
|
1195
|
-
_: 1
|
|
1196
|
-
}),
|
|
1197
|
-
a(r, { span: 12 }, {
|
|
1198
|
-
default: o(() => [
|
|
1199
|
-
a(n, {
|
|
1200
|
-
label: e.Translate("menu.full"),
|
|
1201
|
-
prop: "meta.full"
|
|
1202
|
-
}, {
|
|
1203
|
-
default: o(() => [
|
|
1204
|
-
a(f, {
|
|
1205
|
-
modelValue: e.formData.meta.full,
|
|
1206
|
-
"onUpdate:modelValue": l[15] || (l[15] = (s) => e.formData.meta.full = s)
|
|
1207
|
-
}, null, 8, ["modelValue"])
|
|
1208
|
-
]),
|
|
1209
|
-
_: 1
|
|
1210
|
-
}, 8, ["label"])
|
|
1211
|
-
]),
|
|
1212
|
-
_: 1
|
|
1213
|
-
}),
|
|
1214
|
-
a(r, { span: 12 }, {
|
|
1215
|
-
default: o(() => [
|
|
1216
|
-
a(n, {
|
|
1217
|
-
label: e.Translate("menu.affix"),
|
|
1218
|
-
prop: "meta.affix"
|
|
1219
|
-
}, {
|
|
1220
|
-
default: o(() => [
|
|
1221
|
-
a(f, {
|
|
1222
|
-
modelValue: e.formData.meta.affix,
|
|
1223
|
-
"onUpdate:modelValue": l[16] || (l[16] = (s) => e.formData.meta.affix = s)
|
|
1224
|
-
}, null, 8, ["modelValue"])
|
|
1225
|
-
]),
|
|
1226
|
-
_: 1
|
|
1227
|
-
}, 8, ["label"])
|
|
1228
|
-
]),
|
|
1229
|
-
_: 1
|
|
1230
|
-
})
|
|
1231
|
-
]),
|
|
1232
|
-
_: 1
|
|
1233
|
-
})
|
|
1322
|
+
}, 8, ["label"])
|
|
1234
1323
|
]),
|
|
1235
1324
|
_: 1
|
|
1236
1325
|
})
|
|
1237
1326
|
]),
|
|
1238
1327
|
_: 1
|
|
1239
|
-
})
|
|
1328
|
+
}),
|
|
1329
|
+
a(r, {
|
|
1330
|
+
label: e.Translate("base.name"),
|
|
1331
|
+
prop: "name"
|
|
1332
|
+
}, {
|
|
1333
|
+
default: o(() => [
|
|
1334
|
+
a(n, {
|
|
1335
|
+
modelValue: e.formData.name,
|
|
1336
|
+
"onUpdate:modelValue": l[2] || (l[2] = (c) => e.formData.name = c),
|
|
1337
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
1338
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1339
|
+
]),
|
|
1340
|
+
_: 1
|
|
1341
|
+
}, 8, ["label"]),
|
|
1342
|
+
a(r, {
|
|
1343
|
+
label: e.Translate("base.en_name"),
|
|
1344
|
+
prop: "en_name"
|
|
1345
|
+
}, {
|
|
1346
|
+
default: o(() => [
|
|
1347
|
+
a(n, {
|
|
1348
|
+
modelValue: e.formData.en_name,
|
|
1349
|
+
"onUpdate:modelValue": l[3] || (l[3] = (c) => e.formData.en_name = c),
|
|
1350
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
1351
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1352
|
+
]),
|
|
1353
|
+
_: 1
|
|
1354
|
+
}, 8, ["label"]),
|
|
1355
|
+
a(r, {
|
|
1356
|
+
label: e.Translate("base.remark"),
|
|
1357
|
+
prop: "remark"
|
|
1358
|
+
}, {
|
|
1359
|
+
default: o(() => [
|
|
1360
|
+
a(n, {
|
|
1361
|
+
modelValue: e.formData.remark,
|
|
1362
|
+
"onUpdate:modelValue": l[4] || (l[4] = (c) => e.formData.remark = c),
|
|
1363
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
1364
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1365
|
+
]),
|
|
1366
|
+
_: 1
|
|
1367
|
+
}, 8, ["label"]),
|
|
1368
|
+
a(r, {
|
|
1369
|
+
label: e.Translate("menu.rules"),
|
|
1370
|
+
prop: "rules"
|
|
1371
|
+
}, {
|
|
1372
|
+
default: o(() => [
|
|
1373
|
+
a(e.RulesCheck, {
|
|
1374
|
+
ref: "rulesCheck",
|
|
1375
|
+
modelValue: e.formData.rules,
|
|
1376
|
+
"onUpdate:modelValue": l[5] || (l[5] = (c) => e.formData.rules = c),
|
|
1377
|
+
disabled: e.requesting || e.executing
|
|
1378
|
+
}, null, 8, ["modelValue", "disabled"])
|
|
1379
|
+
]),
|
|
1380
|
+
_: 1
|
|
1381
|
+
}, 8, ["label"])
|
|
1240
1382
|
]),
|
|
1241
1383
|
_: 1
|
|
1242
1384
|
}, 8, ["model", "disabled"])
|
|
1243
1385
|
]),
|
|
1244
1386
|
_: 1
|
|
1245
|
-
}, 8, ["modelValue", "title", "executing", "
|
|
1246
|
-
}
|
|
1247
|
-
const
|
|
1248
|
-
__name: "
|
|
1249
|
-
props: {
|
|
1250
|
-
modelValue: {
|
|
1251
|
-
type: [Number, Array],
|
|
1252
|
-
required: !0
|
|
1253
|
-
},
|
|
1254
|
-
multiple: {
|
|
1255
|
-
type: Boolean,
|
|
1256
|
-
default: !1
|
|
1257
|
-
}
|
|
1258
|
-
},
|
|
1259
|
-
emits: ["update:modelValue", "change"],
|
|
1387
|
+
}, 8, ["modelValue", "title", "executing", "onSubmit"]);
|
|
1388
|
+
}
|
|
1389
|
+
const il = /* @__PURE__ */ R(tl, [["render", dl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/role/components/RoleFormModal.vue"]]), sl = /* @__PURE__ */ w({
|
|
1390
|
+
__name: "index",
|
|
1260
1391
|
setup(g, {
|
|
1261
|
-
expose: l
|
|
1262
|
-
emit: p
|
|
1392
|
+
expose: l
|
|
1263
1393
|
}) {
|
|
1264
1394
|
l();
|
|
1265
|
-
const
|
|
1266
|
-
|
|
1267
|
-
} =
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1395
|
+
const _ = {
|
|
1396
|
+
keyword: ""
|
|
1397
|
+
}, e = [
|
|
1398
|
+
{
|
|
1399
|
+
label: t("base.sort"),
|
|
1400
|
+
prop: "sort",
|
|
1401
|
+
width: 80
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
label: t("base.module"),
|
|
1405
|
+
prop: "module",
|
|
1406
|
+
width: 120
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
label: t("base.name"),
|
|
1410
|
+
prop: "translate",
|
|
1411
|
+
width: 120
|
|
1412
|
+
},
|
|
1413
|
+
// name 字段优先查看实体内是否有 translate 无则使用name
|
|
1414
|
+
{
|
|
1415
|
+
label: t("base.remark"),
|
|
1416
|
+
prop: "remark",
|
|
1417
|
+
width: 0
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
label: t("base.created_at"),
|
|
1421
|
+
prop: "created_at",
|
|
1422
|
+
width: 180
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
prop: "action",
|
|
1426
|
+
label: t("base.action"),
|
|
1427
|
+
width: 65,
|
|
1428
|
+
align: "center",
|
|
1429
|
+
render: ({
|
|
1430
|
+
row: v
|
|
1431
|
+
}) => a(Y, {
|
|
1432
|
+
size: "default",
|
|
1433
|
+
onModify: () => c({
|
|
1434
|
+
key: v.key
|
|
1435
|
+
})
|
|
1436
|
+
}, null)
|
|
1437
|
+
}
|
|
1438
|
+
], {
|
|
1439
|
+
requesting: p
|
|
1440
|
+
} = L(de), {
|
|
1441
|
+
tableRef: b,
|
|
1442
|
+
formModalRef: n,
|
|
1443
|
+
keyword: r,
|
|
1444
|
+
search: i,
|
|
1445
|
+
reset: d,
|
|
1446
|
+
refresh: u,
|
|
1447
|
+
openFormModal: f,
|
|
1448
|
+
editFormModal: c
|
|
1449
|
+
} = A(_), s = {
|
|
1450
|
+
DEFAULT_KEYWORD: _,
|
|
1451
|
+
columns: e,
|
|
1452
|
+
requesting: p,
|
|
1453
|
+
tableRef: b,
|
|
1454
|
+
formModalRef: n,
|
|
1455
|
+
keyword: r,
|
|
1456
|
+
search: i,
|
|
1457
|
+
reset: d,
|
|
1458
|
+
refresh: u,
|
|
1459
|
+
openFormModal: f,
|
|
1460
|
+
editFormModal: c,
|
|
1461
|
+
get DEFAULT_PAGE_KEY() {
|
|
1462
|
+
return se;
|
|
1463
|
+
},
|
|
1286
1464
|
get Translate() {
|
|
1287
1465
|
return t;
|
|
1288
1466
|
},
|
|
1289
|
-
get
|
|
1467
|
+
get OpenButton() {
|
|
1468
|
+
return z;
|
|
1469
|
+
},
|
|
1470
|
+
get RefreshButton() {
|
|
1471
|
+
return F;
|
|
1472
|
+
},
|
|
1473
|
+
get SearchButton() {
|
|
1474
|
+
return W;
|
|
1475
|
+
},
|
|
1476
|
+
get ProTable() {
|
|
1290
1477
|
return re;
|
|
1478
|
+
},
|
|
1479
|
+
RoleFormModal: il,
|
|
1480
|
+
get $api() {
|
|
1481
|
+
return de;
|
|
1291
1482
|
}
|
|
1292
1483
|
};
|
|
1293
|
-
return Object.defineProperty(
|
|
1484
|
+
return Object.defineProperty(s, "__isScriptSetup", {
|
|
1294
1485
|
enumerable: !1,
|
|
1295
1486
|
value: !0
|
|
1296
|
-
}),
|
|
1487
|
+
}), s;
|
|
1297
1488
|
}
|
|
1298
1489
|
});
|
|
1299
|
-
function
|
|
1300
|
-
const n = m("el-
|
|
1301
|
-
return y(),
|
|
1302
|
-
class: "
|
|
1303
|
-
|
|
1304
|
-
"onUpdate:modelValue": l[1] || (l[1] = (i) => e.value = i),
|
|
1305
|
-
options: e.options,
|
|
1306
|
-
multiple: p.multiple,
|
|
1307
|
-
disabled: e.requesting,
|
|
1308
|
-
placeholder: e.Translate("base.placeholder.select"),
|
|
1309
|
-
filterable: "",
|
|
1310
|
-
filterOptions: e.filterOptions,
|
|
1311
|
-
onChange: e.change
|
|
1490
|
+
function ul(g, l, _, e, p, b) {
|
|
1491
|
+
const n = m("el-input"), r = m("el-space"), i = m("el-page-header"), d = m("el-card");
|
|
1492
|
+
return y(), x(d, {
|
|
1493
|
+
class: "basic-card flex-full",
|
|
1494
|
+
"body-class": "flex-1"
|
|
1312
1495
|
}, {
|
|
1313
|
-
|
|
1314
|
-
a(
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
default: o(() => [
|
|
1322
|
-
q("i", {
|
|
1323
|
-
class: fe(`icon iconfont ${i.icon}`)
|
|
1324
|
-
}, null, 2),
|
|
1325
|
-
q("span", null, C(i.translate), 1)
|
|
1496
|
+
header: o(() => [
|
|
1497
|
+
a(i, { class: "basic-header" }, {
|
|
1498
|
+
title: o(() => [
|
|
1499
|
+
a(e.RefreshButton, {
|
|
1500
|
+
loading: e.requesting,
|
|
1501
|
+
onRefresh: e.reset
|
|
1502
|
+
}, null, 8, ["loading", "onRefresh"]),
|
|
1503
|
+
a(e.OpenButton, { onOpen: e.openFormModal }, null, 8, ["onOpen"])
|
|
1326
1504
|
]),
|
|
1327
|
-
|
|
1328
|
-
|
|
1505
|
+
content: o(() => [
|
|
1506
|
+
a(r, { class: "search-bar" }, {
|
|
1507
|
+
default: o(() => [
|
|
1508
|
+
a(n, {
|
|
1509
|
+
class: "basic-search-input",
|
|
1510
|
+
modelValue: e.keyword.keyword,
|
|
1511
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => e.keyword.keyword = u),
|
|
1512
|
+
placeholder: e.Translate("base.placeholder.keyword"),
|
|
1513
|
+
clearable: "",
|
|
1514
|
+
onKeyup: l[1] || (l[1] = ie((u) => e.search(), ["enter"])),
|
|
1515
|
+
onClear: l[2] || (l[2] = (u) => e.search())
|
|
1516
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
1517
|
+
a(e.SearchButton, {
|
|
1518
|
+
disabled: e.requesting,
|
|
1519
|
+
onSearch: l[3] || (l[3] = (u) => e.search())
|
|
1520
|
+
}, null, 8, ["disabled"])
|
|
1521
|
+
]),
|
|
1522
|
+
_: 1
|
|
1523
|
+
})
|
|
1524
|
+
]),
|
|
1525
|
+
_: 1
|
|
1526
|
+
})
|
|
1527
|
+
]),
|
|
1528
|
+
default: o(() => [
|
|
1529
|
+
a(e.ProTable, {
|
|
1530
|
+
ref: "tableRef",
|
|
1531
|
+
columns: e.columns,
|
|
1532
|
+
url: e.$api.urls[e.DEFAULT_PAGE_KEY],
|
|
1533
|
+
"search-param": e.keyword,
|
|
1534
|
+
"auto-search": ""
|
|
1535
|
+
}, null, 8, ["url", "search-param"]),
|
|
1536
|
+
a(e.RoleFormModal, {
|
|
1537
|
+
ref: "formModalRef",
|
|
1538
|
+
onRefresh: e.refresh
|
|
1539
|
+
}, null, 8, ["onRefresh"])
|
|
1329
1540
|
]),
|
|
1330
1541
|
_: 1
|
|
1331
|
-
}
|
|
1542
|
+
});
|
|
1332
1543
|
}
|
|
1333
|
-
const
|
|
1334
|
-
|
|
1544
|
+
const ml = /* @__PURE__ */ R(sl, [["render", ul], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/role/index.vue"]]), cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1545
|
+
__proto__: null,
|
|
1546
|
+
default: ml
|
|
1547
|
+
}, Symbol.toStringTag, { value: "Module" })), ne = E.routineApi("translation", "key"), fl = /* @__PURE__ */ w({
|
|
1548
|
+
__name: "LangFormModal",
|
|
1335
1549
|
emits: ["refresh"],
|
|
1336
|
-
setup(g, { expose: l, emit:
|
|
1337
|
-
const e =
|
|
1550
|
+
setup(g, { expose: l, emit: _ }) {
|
|
1551
|
+
const e = _, p = {
|
|
1552
|
+
id: 0,
|
|
1338
1553
|
key: "",
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
en_name: "",
|
|
1343
|
-
urls: "",
|
|
1554
|
+
module: "",
|
|
1555
|
+
language: "",
|
|
1556
|
+
result: "",
|
|
1344
1557
|
remark: ""
|
|
1345
1558
|
}, b = {
|
|
1346
|
-
|
|
1347
|
-
{
|
|
1348
|
-
required: !0,
|
|
1349
|
-
type: "number",
|
|
1350
|
-
message: t("base.placeholder.select menu.Menu"),
|
|
1351
|
-
trigger: "blur"
|
|
1352
|
-
}
|
|
1353
|
-
],
|
|
1354
|
-
sort: [
|
|
1559
|
+
module: [
|
|
1355
1560
|
{
|
|
1356
1561
|
required: !0,
|
|
1357
|
-
|
|
1358
|
-
message: t("base.placeholder.input base.sort"),
|
|
1562
|
+
message: t("language.placeholder.module"),
|
|
1359
1563
|
trigger: "blur"
|
|
1360
1564
|
}
|
|
1361
1565
|
],
|
|
1362
|
-
|
|
1566
|
+
key: [
|
|
1363
1567
|
{
|
|
1364
1568
|
required: !0,
|
|
1365
|
-
message: t("
|
|
1569
|
+
message: t("language.placeholder.key"),
|
|
1366
1570
|
trigger: "blur"
|
|
1367
1571
|
}
|
|
1368
1572
|
],
|
|
1369
|
-
|
|
1573
|
+
language: [
|
|
1370
1574
|
{
|
|
1371
1575
|
required: !0,
|
|
1372
|
-
message: t("
|
|
1373
|
-
trigger: "
|
|
1576
|
+
message: t("language.placeholder.language"),
|
|
1577
|
+
trigger: "change"
|
|
1374
1578
|
}
|
|
1375
1579
|
],
|
|
1376
|
-
|
|
1580
|
+
result: [
|
|
1377
1581
|
{
|
|
1378
1582
|
required: !0,
|
|
1379
|
-
message: t("
|
|
1583
|
+
message: t("language.placeholder.result"),
|
|
1380
1584
|
trigger: "blur"
|
|
1381
1585
|
}
|
|
1382
1586
|
]
|
|
1383
|
-
}, { modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k } = I(e,
|
|
1587
|
+
}, { modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k } = I(e, p, ne);
|
|
1384
1588
|
l({
|
|
1385
1589
|
open: c,
|
|
1386
1590
|
modify: s
|
|
1387
1591
|
});
|
|
1388
|
-
const h = { emits: e, DEFAULT_DATA:
|
|
1592
|
+
const h = { emits: e, DEFAULT_DATA: p, rules: b, modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k, get Translate() {
|
|
1389
1593
|
return t;
|
|
1390
1594
|
}, get FormDialog() {
|
|
1391
1595
|
return K;
|
|
1392
|
-
}
|
|
1596
|
+
} };
|
|
1393
1597
|
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
1394
1598
|
}
|
|
1395
1599
|
});
|
|
1396
|
-
function
|
|
1397
|
-
const n = m("el-
|
|
1398
|
-
return y(),
|
|
1600
|
+
function pl(g, l, _, e, p, b) {
|
|
1601
|
+
const n = m("el-input"), r = m("el-form-item"), i = m("el-radio-button"), d = m("el-radio-group"), u = m("el-form");
|
|
1602
|
+
return y(), x(e.FormDialog, {
|
|
1399
1603
|
modelValue: e.modal,
|
|
1400
|
-
"onUpdate:modelValue": l[
|
|
1401
|
-
title: e.title(
|
|
1402
|
-
width: "
|
|
1604
|
+
"onUpdate:modelValue": l[5] || (l[5] = (f) => e.modal = f),
|
|
1605
|
+
title: e.title(),
|
|
1606
|
+
width: "600px",
|
|
1403
1607
|
executing: e.executing,
|
|
1404
1608
|
onClosed: e.closed,
|
|
1405
1609
|
onSubmit: e.submit
|
|
1406
1610
|
}, {
|
|
1407
1611
|
default: o(() => [
|
|
1408
|
-
a(
|
|
1612
|
+
a(u, {
|
|
1409
1613
|
ref: "form",
|
|
1410
1614
|
model: e.formData,
|
|
1411
1615
|
"label-width": "auto",
|
|
@@ -1413,102 +1617,90 @@ function sl(g, l, p, e, _, b) {
|
|
|
1413
1617
|
disabled: e.requesting || e.executing
|
|
1414
1618
|
}, {
|
|
1415
1619
|
default: o(() => [
|
|
1416
|
-
a(
|
|
1620
|
+
a(r, {
|
|
1621
|
+
label: e.Translate("language.module"),
|
|
1622
|
+
prop: "module",
|
|
1623
|
+
required: ""
|
|
1624
|
+
}, {
|
|
1625
|
+
default: o(() => [
|
|
1626
|
+
a(n, {
|
|
1627
|
+
modelValue: e.formData.module,
|
|
1628
|
+
"onUpdate:modelValue": l[0] || (l[0] = (f) => e.formData.module = f),
|
|
1629
|
+
placeholder: e.Translate("language.placeholder.module")
|
|
1630
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1631
|
+
]),
|
|
1632
|
+
_: 1
|
|
1633
|
+
}, 8, ["label"]),
|
|
1634
|
+
a(r, {
|
|
1635
|
+
label: e.Translate("language.key"),
|
|
1636
|
+
prop: "key",
|
|
1637
|
+
required: ""
|
|
1638
|
+
}, {
|
|
1639
|
+
default: o(() => [
|
|
1640
|
+
a(n, {
|
|
1641
|
+
modelValue: e.formData.key,
|
|
1642
|
+
"onUpdate:modelValue": l[1] || (l[1] = (f) => e.formData.key = f),
|
|
1643
|
+
placeholder: e.Translate("language.placeholder.key")
|
|
1644
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1645
|
+
]),
|
|
1646
|
+
_: 1
|
|
1647
|
+
}, 8, ["label"]),
|
|
1648
|
+
a(r, {
|
|
1649
|
+
label: e.Translate("language.language"),
|
|
1650
|
+
prop: "language",
|
|
1651
|
+
required: ""
|
|
1652
|
+
}, {
|
|
1417
1653
|
default: o(() => [
|
|
1418
|
-
a(d, {
|
|
1654
|
+
a(d, {
|
|
1655
|
+
modelValue: e.formData.language,
|
|
1656
|
+
"onUpdate:modelValue": l[2] || (l[2] = (f) => e.formData.language = f)
|
|
1657
|
+
}, {
|
|
1419
1658
|
default: o(() => [
|
|
1420
|
-
a(
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
default: o(() => [
|
|
1425
|
-
a(e.MenuSelect, {
|
|
1426
|
-
modelValue: e.formData.menu_id,
|
|
1427
|
-
"onUpdate:modelValue": l[0] || (l[0] = (c) => e.formData.menu_id = c)
|
|
1428
|
-
}, null, 8, ["modelValue"])
|
|
1429
|
-
]),
|
|
1430
|
-
_: 1
|
|
1431
|
-
}, 8, ["label"]),
|
|
1432
|
-
a(n, {
|
|
1433
|
-
label: e.Translate("base.sort"),
|
|
1434
|
-
prop: "sort"
|
|
1435
|
-
}, {
|
|
1436
|
-
default: o(() => [
|
|
1437
|
-
a(r, {
|
|
1438
|
-
class: "w-full",
|
|
1439
|
-
modelValue: e.formData.sort,
|
|
1440
|
-
"onUpdate:modelValue": l[1] || (l[1] = (c) => e.formData.sort = c),
|
|
1441
|
-
min: 0,
|
|
1442
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
1443
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
1444
|
-
]),
|
|
1445
|
-
_: 1
|
|
1446
|
-
}, 8, ["label"]),
|
|
1447
|
-
a(n, {
|
|
1448
|
-
label: e.Translate("base.name"),
|
|
1449
|
-
prop: "name"
|
|
1450
|
-
}, {
|
|
1451
|
-
default: o(() => [
|
|
1452
|
-
a(i, {
|
|
1453
|
-
modelValue: e.formData.name,
|
|
1454
|
-
"onUpdate:modelValue": l[2] || (l[2] = (c) => e.formData.name = c),
|
|
1455
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
1456
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
1457
|
-
]),
|
|
1458
|
-
_: 1
|
|
1459
|
-
}, 8, ["label"]),
|
|
1460
|
-
a(n, {
|
|
1461
|
-
label: e.Translate("base.en_name"),
|
|
1462
|
-
prop: "en_name"
|
|
1463
|
-
}, {
|
|
1464
|
-
default: o(() => [
|
|
1465
|
-
a(i, {
|
|
1466
|
-
modelValue: e.formData.en_name,
|
|
1467
|
-
"onUpdate:modelValue": l[3] || (l[3] = (c) => e.formData.en_name = c),
|
|
1468
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
1469
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
1470
|
-
]),
|
|
1471
|
-
_: 1
|
|
1472
|
-
}, 8, ["label"]),
|
|
1473
|
-
a(n, {
|
|
1474
|
-
label: e.Translate("base.remark"),
|
|
1475
|
-
prop: "remark"
|
|
1476
|
-
}, {
|
|
1477
|
-
default: o(() => [
|
|
1478
|
-
a(i, {
|
|
1479
|
-
modelValue: e.formData.remark,
|
|
1480
|
-
"onUpdate:modelValue": l[4] || (l[4] = (c) => e.formData.remark = c),
|
|
1481
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
1482
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
1483
|
-
]),
|
|
1659
|
+
a(i, { label: "zh-CN" }, {
|
|
1660
|
+
default: o(() => [...l[6] || (l[6] = [
|
|
1661
|
+
G("zh-CN", -1)
|
|
1662
|
+
])]),
|
|
1484
1663
|
_: 1
|
|
1485
|
-
},
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
default: o(() => [
|
|
1491
|
-
a(n, {
|
|
1492
|
-
label: e.Translate("menu.rules"),
|
|
1493
|
-
prop: "urls"
|
|
1494
|
-
}, {
|
|
1495
|
-
default: o(() => [
|
|
1496
|
-
a(i, {
|
|
1497
|
-
modelValue: e.formData.urls,
|
|
1498
|
-
"onUpdate:modelValue": l[5] || (l[5] = (c) => e.formData.urls = c),
|
|
1499
|
-
type: "textarea",
|
|
1500
|
-
rows: 11,
|
|
1501
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
1502
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
1503
|
-
]),
|
|
1664
|
+
}),
|
|
1665
|
+
a(i, { label: "en-US" }, {
|
|
1666
|
+
default: o(() => [...l[7] || (l[7] = [
|
|
1667
|
+
G("en-US", -1)
|
|
1668
|
+
])]),
|
|
1504
1669
|
_: 1
|
|
1505
|
-
}
|
|
1670
|
+
})
|
|
1506
1671
|
]),
|
|
1507
1672
|
_: 1
|
|
1508
|
-
})
|
|
1673
|
+
}, 8, ["modelValue"])
|
|
1509
1674
|
]),
|
|
1510
1675
|
_: 1
|
|
1511
|
-
})
|
|
1676
|
+
}, 8, ["label"]),
|
|
1677
|
+
a(r, {
|
|
1678
|
+
label: e.Translate("language.result"),
|
|
1679
|
+
prop: "result",
|
|
1680
|
+
required: ""
|
|
1681
|
+
}, {
|
|
1682
|
+
default: o(() => [
|
|
1683
|
+
a(n, {
|
|
1684
|
+
modelValue: e.formData.result,
|
|
1685
|
+
"onUpdate:modelValue": l[3] || (l[3] = (f) => e.formData.result = f),
|
|
1686
|
+
placeholder: e.Translate("language.placeholder.result")
|
|
1687
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1688
|
+
]),
|
|
1689
|
+
_: 1
|
|
1690
|
+
}, 8, ["label"]),
|
|
1691
|
+
a(r, {
|
|
1692
|
+
label: e.Translate("base.remark"),
|
|
1693
|
+
prop: "remark"
|
|
1694
|
+
}, {
|
|
1695
|
+
default: o(() => [
|
|
1696
|
+
a(n, {
|
|
1697
|
+
modelValue: e.formData.remark,
|
|
1698
|
+
"onUpdate:modelValue": l[4] || (l[4] = (f) => e.formData.remark = f),
|
|
1699
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
1700
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1701
|
+
]),
|
|
1702
|
+
_: 1
|
|
1703
|
+
}, 8, ["label"])
|
|
1512
1704
|
]),
|
|
1513
1705
|
_: 1
|
|
1514
1706
|
}, 8, ["model", "disabled"])
|
|
@@ -1516,195 +1708,95 @@ function sl(g, l, p, e, _, b) {
|
|
|
1516
1708
|
_: 1
|
|
1517
1709
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
1518
1710
|
}
|
|
1519
|
-
const
|
|
1520
|
-
function _e(g) {
|
|
1521
|
-
return typeof g == "function" || Object.prototype.toString.call(g) === "[object Object]" && !Ve(g);
|
|
1522
|
-
}
|
|
1523
|
-
const ml = /* @__PURE__ */ x({
|
|
1711
|
+
const _l = /* @__PURE__ */ R(fl, [["render", pl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/language/components/LangFormModal.vue"]]), bl = /* @__PURE__ */ w({
|
|
1524
1712
|
__name: "index",
|
|
1525
1713
|
setup(g, {
|
|
1526
1714
|
expose: l
|
|
1527
1715
|
}) {
|
|
1528
1716
|
l();
|
|
1529
|
-
const
|
|
1717
|
+
const _ = {
|
|
1530
1718
|
keyword: "",
|
|
1531
|
-
status: 0
|
|
1532
|
-
}, e =
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
render: ({
|
|
1559
|
-
row: V
|
|
1560
|
-
}) => {
|
|
1561
|
-
var S;
|
|
1562
|
-
return a(j, null, [(S = V.menu) == null ? void 0 : S.translate]);
|
|
1563
|
-
}
|
|
1564
|
-
},
|
|
1565
|
-
{
|
|
1566
|
-
label: t("base.name"),
|
|
1567
|
-
prop: "translate",
|
|
1568
|
-
width: 120
|
|
1569
|
-
},
|
|
1570
|
-
// name 字段优先查看实体内是否有 translate 无则使用name
|
|
1571
|
-
{
|
|
1572
|
-
label: t("base.url"),
|
|
1573
|
-
prop: "url",
|
|
1574
|
-
align: "left",
|
|
1575
|
-
width: 200
|
|
1576
|
-
},
|
|
1577
|
-
{
|
|
1578
|
-
label: t("menu.component"),
|
|
1579
|
-
prop: "component",
|
|
1580
|
-
align: "left",
|
|
1581
|
-
width: 200
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
label: t("menu.rules"),
|
|
1585
|
-
prop: "rules",
|
|
1586
|
-
width: 0,
|
|
1587
|
-
align: "left",
|
|
1588
|
-
render: ({
|
|
1589
|
-
row: V
|
|
1590
|
-
}) => a(m("el-space"), null, {
|
|
1591
|
-
default: () => {
|
|
1592
|
-
var S;
|
|
1593
|
-
return [(S = V.rules) == null ? void 0 : S.map((U) => a(m("el-popover"), {
|
|
1594
|
-
visible: e.value === U.key,
|
|
1595
|
-
title: t("message.warning"),
|
|
1596
|
-
placement: "top-end",
|
|
1597
|
-
width: 220
|
|
1598
|
-
}, {
|
|
1599
|
-
reference: () => a(m("el-tag"), {
|
|
1600
|
-
class: "cursor-pointer",
|
|
1601
|
-
closable: !0,
|
|
1602
|
-
key: U.key,
|
|
1603
|
-
onClick: () => h({
|
|
1604
|
-
key: U.key
|
|
1605
|
-
}),
|
|
1606
|
-
onClose: () => e.value = U.key
|
|
1607
|
-
}, {
|
|
1608
|
-
default: () => [U.translate]
|
|
1609
|
-
}),
|
|
1610
|
-
default: () => {
|
|
1611
|
-
let B, me;
|
|
1612
|
-
return a("div", null, [a("p", null, null), a("p", null, [`${t("base.confirm base.space base.delete base.space menu.rules")}: ${V.translate}-${U.translate} ?`]), a("div", {
|
|
1613
|
-
style: "text-align: right; margin: 0"
|
|
1614
|
-
}, [a(m("el-button"), {
|
|
1615
|
-
size: "small",
|
|
1616
|
-
text: !0,
|
|
1617
|
-
onClick: () => e.value = ""
|
|
1618
|
-
}, _e(B = t("base.cancel")) ? B : {
|
|
1619
|
-
default: () => [B]
|
|
1620
|
-
}), a(m("el-button"), {
|
|
1621
|
-
size: "small",
|
|
1622
|
-
type: "danger",
|
|
1623
|
-
onClick: () => T(U.key)
|
|
1624
|
-
}, _e(me = t("base.confirm")) ? me : {
|
|
1625
|
-
default: () => [me]
|
|
1626
|
-
})])]);
|
|
1627
|
-
}
|
|
1628
|
-
}))];
|
|
1629
|
-
}
|
|
1630
|
-
})
|
|
1631
|
-
},
|
|
1632
|
-
{
|
|
1633
|
-
label: t("base.status"),
|
|
1634
|
-
prop: "status",
|
|
1635
|
-
width: 80,
|
|
1636
|
-
type: "switch",
|
|
1637
|
-
props: {
|
|
1638
|
-
activeValue: 1,
|
|
1639
|
-
inactiveValue: 2,
|
|
1640
|
-
api: O.urls[be],
|
|
1641
|
-
refresh: !0
|
|
1642
|
-
}
|
|
1643
|
-
},
|
|
1644
|
-
{
|
|
1645
|
-
prop: "action",
|
|
1646
|
-
label: t("base.action"),
|
|
1647
|
-
width: 60,
|
|
1648
|
-
align: "center",
|
|
1649
|
-
render: ({
|
|
1650
|
-
row: V
|
|
1651
|
-
}) => a(Y, {
|
|
1652
|
-
size: "default",
|
|
1653
|
-
onModify: () => s({
|
|
1654
|
-
id: V.id
|
|
1655
|
-
})
|
|
1656
|
-
}, null)
|
|
1719
|
+
status: 0
|
|
1720
|
+
}, e = [{
|
|
1721
|
+
label: t("base.module"),
|
|
1722
|
+
prop: "module",
|
|
1723
|
+
width: 120
|
|
1724
|
+
}, {
|
|
1725
|
+
label: t("base.language"),
|
|
1726
|
+
prop: "language",
|
|
1727
|
+
width: 100
|
|
1728
|
+
}, {
|
|
1729
|
+
label: t("base.key"),
|
|
1730
|
+
prop: "key",
|
|
1731
|
+
width: 200
|
|
1732
|
+
}, {
|
|
1733
|
+
label: t("base.result"),
|
|
1734
|
+
prop: "result",
|
|
1735
|
+
width: 200
|
|
1736
|
+
}, {
|
|
1737
|
+
label: t("base.status"),
|
|
1738
|
+
prop: "status",
|
|
1739
|
+
width: 80,
|
|
1740
|
+
type: "switch",
|
|
1741
|
+
props: {
|
|
1742
|
+
activeValue: 1,
|
|
1743
|
+
inactiveValue: 2,
|
|
1744
|
+
api: ne.urls[be],
|
|
1745
|
+
refresh: !0
|
|
1657
1746
|
}
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1747
|
+
}, {
|
|
1748
|
+
label: t("base.remark"),
|
|
1749
|
+
prop: "remark",
|
|
1750
|
+
width: 0
|
|
1751
|
+
}, {
|
|
1752
|
+
label: t("base.created_at"),
|
|
1753
|
+
prop: "created_at",
|
|
1754
|
+
width: 160
|
|
1755
|
+
}, {
|
|
1756
|
+
label: t("base.updated_at"),
|
|
1757
|
+
prop: "updated_at",
|
|
1758
|
+
width: 160
|
|
1759
|
+
}, {
|
|
1760
|
+
prop: "action",
|
|
1761
|
+
label: t("base.action"),
|
|
1762
|
+
width: 80,
|
|
1763
|
+
align: "center",
|
|
1764
|
+
render: ({
|
|
1765
|
+
row: v
|
|
1766
|
+
}) => a(Y, {
|
|
1767
|
+
onModify: () => c({
|
|
1768
|
+
id: v.id
|
|
1769
|
+
})
|
|
1770
|
+
}, null)
|
|
1771
|
+
}], {
|
|
1772
|
+
requesting: p
|
|
1773
|
+
} = L(ne), {
|
|
1774
|
+
tableRef: b,
|
|
1775
|
+
formModalRef: n,
|
|
1776
|
+
keyword: r,
|
|
1777
|
+
search: i,
|
|
1778
|
+
reset: d,
|
|
1665
1779
|
refresh: u,
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
e.value = "", u();
|
|
1678
|
-
});
|
|
1679
|
-
}, D = {
|
|
1680
|
-
DEFAULT_KEYWORD: p,
|
|
1681
|
-
deleteKey: e,
|
|
1682
|
-
columns: _,
|
|
1683
|
-
requesting: b,
|
|
1684
|
-
tableRef: n,
|
|
1685
|
-
formModalRef: r,
|
|
1686
|
-
keyword: i,
|
|
1687
|
-
search: d,
|
|
1780
|
+
openFormModal: f,
|
|
1781
|
+
editFormModal: c
|
|
1782
|
+
} = A(_), s = {
|
|
1783
|
+
DEFAULT_KEYWORD: _,
|
|
1784
|
+
columns: e,
|
|
1785
|
+
requesting: p,
|
|
1786
|
+
tableRef: b,
|
|
1787
|
+
formModalRef: n,
|
|
1788
|
+
keyword: r,
|
|
1789
|
+
search: i,
|
|
1790
|
+
reset: d,
|
|
1688
1791
|
refresh: u,
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
editFormModal: s,
|
|
1692
|
-
ruleFormModalRef: v,
|
|
1693
|
-
openRuleFormModal: k,
|
|
1694
|
-
editRuleFormModal: h,
|
|
1695
|
-
removeRule: T,
|
|
1792
|
+
openFormModal: f,
|
|
1793
|
+
editFormModal: c,
|
|
1696
1794
|
get DEFAULT_PAGE_KEY() {
|
|
1697
1795
|
return se;
|
|
1698
1796
|
},
|
|
1699
1797
|
get Translate() {
|
|
1700
1798
|
return t;
|
|
1701
1799
|
},
|
|
1702
|
-
get $api() {
|
|
1703
|
-
return O;
|
|
1704
|
-
},
|
|
1705
|
-
get iconKey() {
|
|
1706
|
-
return Ze;
|
|
1707
|
-
},
|
|
1708
1800
|
get OpenButton() {
|
|
1709
1801
|
return z;
|
|
1710
1802
|
},
|
|
@@ -1715,317 +1807,180 @@ const ml = /* @__PURE__ */ x({
|
|
|
1715
1807
|
return W;
|
|
1716
1808
|
},
|
|
1717
1809
|
get ProTable() {
|
|
1718
|
-
return
|
|
1719
|
-
},
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
});
|
|
1729
|
-
function cl(g, l, p, e, _, b) {
|
|
1730
|
-
const n = m("el-button"), r = m("el-input"), i = m("el-radio-button"), d = m("el-radio-group"), u = m("el-space"), f = m("el-page-header"), c = m("el-card");
|
|
1731
|
-
return y(), w(c, {
|
|
1732
|
-
class: "basic-card flex-full",
|
|
1733
|
-
"body-class": "flex-1",
|
|
1734
|
-
onClick: l[5] || (l[5] = () => e.deleteKey = "")
|
|
1735
|
-
}, {
|
|
1736
|
-
header: o(() => [
|
|
1737
|
-
a(f, { class: "basic-header" }, {
|
|
1738
|
-
title: o(() => [
|
|
1739
|
-
a(e.RefreshButton, {
|
|
1740
|
-
loading: e.requesting,
|
|
1741
|
-
onRefresh: e.reset
|
|
1742
|
-
}, null, 8, ["loading", "onRefresh"]),
|
|
1743
|
-
a(e.OpenButton, { onOpen: e.openFormModal }, null, 8, ["onOpen"]),
|
|
1744
|
-
a(n, {
|
|
1745
|
-
circle: "",
|
|
1746
|
-
icon: e.iconKey,
|
|
1747
|
-
onClick: e.openRuleFormModal
|
|
1748
|
-
}, null, 8, ["icon", "onClick"])
|
|
1749
|
-
]),
|
|
1750
|
-
content: o(() => [
|
|
1751
|
-
a(u, { class: "search-bar" }, {
|
|
1752
|
-
default: o(() => [
|
|
1753
|
-
a(r, {
|
|
1754
|
-
class: "basic-search-input",
|
|
1755
|
-
modelValue: e.keyword.keyword,
|
|
1756
|
-
"onUpdate:modelValue": l[0] || (l[0] = (s) => e.keyword.keyword = s),
|
|
1757
|
-
placeholder: e.Translate("base.placeholder.keyword"),
|
|
1758
|
-
clearable: "",
|
|
1759
|
-
onKeyup: l[1] || (l[1] = ie((s) => e.search(), ["enter"])),
|
|
1760
|
-
onClear: l[2] || (l[2] = (s) => e.search())
|
|
1761
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
1762
|
-
a(d, {
|
|
1763
|
-
modelValue: e.keyword.status,
|
|
1764
|
-
"onUpdate:modelValue": l[3] || (l[3] = (s) => e.keyword.status = s),
|
|
1765
|
-
onChange: l[4] || (l[4] = (s) => e.search())
|
|
1766
|
-
}, {
|
|
1767
|
-
default: o(() => [
|
|
1768
|
-
(y(), N(j, null, ee([0, 1, 2], (s) => a(i, {
|
|
1769
|
-
key: s,
|
|
1770
|
-
label: e.Translate(`base.DISABLE_ENABLE.${s}`),
|
|
1771
|
-
value: s
|
|
1772
|
-
}, null, 8, ["label", "value"])), 64))
|
|
1773
|
-
]),
|
|
1774
|
-
_: 1
|
|
1775
|
-
}, 8, ["modelValue"]),
|
|
1776
|
-
a(e.SearchButton, {
|
|
1777
|
-
disabled: e.requesting,
|
|
1778
|
-
onSearch: e.search
|
|
1779
|
-
}, null, 8, ["disabled", "onSearch"])
|
|
1780
|
-
]),
|
|
1781
|
-
_: 1
|
|
1782
|
-
})
|
|
1783
|
-
]),
|
|
1784
|
-
_: 1
|
|
1785
|
-
})
|
|
1786
|
-
]),
|
|
1787
|
-
default: o(() => [
|
|
1788
|
-
a(e.ProTable, {
|
|
1789
|
-
ref: "tableRef",
|
|
1790
|
-
size: "small",
|
|
1791
|
-
columns: e.columns,
|
|
1792
|
-
url: e.$api.urls[e.DEFAULT_PAGE_KEY],
|
|
1793
|
-
"search-param": e.keyword,
|
|
1794
|
-
"auto-search": ""
|
|
1795
|
-
}, null, 8, ["url", "search-param"]),
|
|
1796
|
-
a(e.MenuFormModal, {
|
|
1797
|
-
ref: "formModalRef",
|
|
1798
|
-
onRefresh: e.refresh
|
|
1799
|
-
}, null, 8, ["onRefresh"]),
|
|
1800
|
-
a(e.MenuRuleFormModal, {
|
|
1801
|
-
ref: "ruleFormModalRef",
|
|
1802
|
-
onRefresh: e.refresh
|
|
1803
|
-
}, null, 8, ["onRefresh"])
|
|
1804
|
-
]),
|
|
1805
|
-
_: 1
|
|
1806
|
-
});
|
|
1807
|
-
}
|
|
1808
|
-
const fl = /* @__PURE__ */ R(ml, [["render", cl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/menu/index.vue"]]), _l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1809
|
-
__proto__: null,
|
|
1810
|
-
default: fl
|
|
1811
|
-
}, Symbol.toStringTag, { value: "Module" })), pl = /* @__PURE__ */ x({
|
|
1812
|
-
__name: "rulesCheck",
|
|
1813
|
-
props: {
|
|
1814
|
-
modelValue: { type: Array, required: !0 },
|
|
1815
|
-
disabled: { type: Boolean, default: !1 }
|
|
1816
|
-
},
|
|
1817
|
-
emits: ["update:modelValue"],
|
|
1818
|
-
setup(g, { expose: l, emit: p }) {
|
|
1819
|
-
const { requesting: e } = L(O), _ = g, b = p, n = P(!1), r = ye({
|
|
1820
|
-
checkAll: !1,
|
|
1821
|
-
indeterminate: !1,
|
|
1822
|
-
MenuAll: {},
|
|
1823
|
-
MenuList: {},
|
|
1824
|
-
MenuIndeterminate: {}
|
|
1825
|
-
}), { options: i, refresh: d } = $(Z(_, "modelValue"), b, { key: "RULE_CHECK", api: O, url: O.urls.rules, isArray: !0 }, { autoRefresh: !1 });
|
|
1826
|
-
function u() {
|
|
1827
|
-
i.value.forEach((T) => {
|
|
1828
|
-
var D;
|
|
1829
|
-
(D = T.rules) != null && D.length && (r.MenuAll[T.id] = !1, r.MenuIndeterminate[T.id] = !1, r.MenuList[T.id] = []);
|
|
1830
|
-
});
|
|
1831
|
-
}
|
|
1832
|
-
function f(T) {
|
|
1833
|
-
i.value.forEach((D) => {
|
|
1834
|
-
var V;
|
|
1835
|
-
(V = D.rules) != null && V.length && (r.MenuList[D.id] = T ? D.rules.map((S) => S.key) : []);
|
|
1836
|
-
}), s();
|
|
1837
|
-
}
|
|
1838
|
-
function c(T, D) {
|
|
1839
|
-
const V = i.value.find((S) => S.id === D);
|
|
1840
|
-
r.MenuList[D] = T && V ? V.rules.map((S) => S.key) : [], s();
|
|
1841
|
-
}
|
|
1842
|
-
function s() {
|
|
1843
|
-
i.value.forEach((T) => {
|
|
1844
|
-
var S, U;
|
|
1845
|
-
const D = ((S = T.rules) == null ? void 0 : S.length) || 0, V = ((U = r.MenuList[T.id]) == null ? void 0 : U.length) || 0;
|
|
1846
|
-
r.MenuAll[T.id] = V === D && D > 0, r.MenuIndeterminate[T.id] = V > 0 && V < D;
|
|
1847
|
-
}), r.checkAll = Object.values(r.MenuAll).every(Boolean), r.indeterminate = !r.checkAll && Object.values(r.MenuList).some((T) => T.length > 0), b("update:modelValue", Object.values(r.MenuList).flat());
|
|
1848
|
-
}
|
|
1849
|
-
function v() {
|
|
1850
|
-
r.checkAll = !1, r.indeterminate = !1, r.MenuAll = {}, r.MenuList = {}, r.MenuIndeterminate = {}, u(), b("update:modelValue", []), n.value = !1;
|
|
1851
|
-
}
|
|
1852
|
-
function k(T) {
|
|
1853
|
-
var D;
|
|
1854
|
-
if (Array.isArray(i.value) && i.value.length > 0) {
|
|
1855
|
-
for (let V of i.value)
|
|
1856
|
-
if (Array.isArray(V.rules) && V.rules.length > 0)
|
|
1857
|
-
for (let S of V.rules)
|
|
1858
|
-
T.some((U) => U === S.key) && (r.MenuList[V.id] = (((D = r.MenuList) == null ? void 0 : D[V.id]) || []).concat([S.key]));
|
|
1859
|
-
s(), n.value = !0;
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
ke(async () => {
|
|
1863
|
-
var T;
|
|
1864
|
-
(T = i.value) != null && T.length || await d(), !n.value && _.modelValue && k(_.modelValue);
|
|
1865
|
-
}), we(
|
|
1866
|
-
() => _.modelValue,
|
|
1867
|
-
(T) => {
|
|
1868
|
-
xe(() => {
|
|
1869
|
-
var D;
|
|
1870
|
-
n.value || !((D = i.value) != null && D.length) || T && T.length > 0 && k(T);
|
|
1871
|
-
});
|
|
1872
|
-
},
|
|
1873
|
-
{ deep: !0, immediate: !0 }
|
|
1874
|
-
), l({
|
|
1875
|
-
generateOption: k,
|
|
1876
|
-
cleanChecked: v
|
|
1877
|
-
});
|
|
1878
|
-
const h = { requesting: e, props: _, emit: b, initialized: n, state: r, options: i, refresh: d, initState: u, onCheckAllChange: f, onCheckMenuAllChange: c, updateState: s, cleanChecked: v, generateOption: k, get RefreshButton() {
|
|
1879
|
-
return F;
|
|
1880
|
-
} };
|
|
1881
|
-
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
1810
|
+
return re;
|
|
1811
|
+
},
|
|
1812
|
+
LangFormModal: _l,
|
|
1813
|
+
get $api() {
|
|
1814
|
+
return ne;
|
|
1815
|
+
}
|
|
1816
|
+
};
|
|
1817
|
+
return Object.defineProperty(s, "__isScriptSetup", {
|
|
1818
|
+
enumerable: !1,
|
|
1819
|
+
value: !0
|
|
1820
|
+
}), s;
|
|
1882
1821
|
}
|
|
1883
|
-
})
|
|
1884
|
-
function
|
|
1885
|
-
const n = m("el-
|
|
1886
|
-
return y(),
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
}, 8, ["model-value", "indeterminate", "disabled"]),
|
|
1902
|
-
a(e.RefreshButton, {
|
|
1903
|
-
loading: e.requesting,
|
|
1904
|
-
text: "",
|
|
1905
|
-
size: "small",
|
|
1906
|
-
onRefresh: l[0] || (l[0] = (f) => e.refresh(!0))
|
|
1907
|
-
}, null, 8, ["loading"])
|
|
1908
|
-
]),
|
|
1909
|
-
_: 1
|
|
1910
|
-
}),
|
|
1911
|
-
a(r, {
|
|
1912
|
-
direction: "vertical",
|
|
1913
|
-
alignment: "start",
|
|
1914
|
-
class: "rule-check-content"
|
|
1915
|
-
}, {
|
|
1916
|
-
default: o(() => [
|
|
1917
|
-
(y(!0), N(j, null, ee(e.options, (f) => (y(), N("div", {
|
|
1918
|
-
key: f.id
|
|
1919
|
-
}, [
|
|
1920
|
-
a(r, {
|
|
1921
|
-
direction: "horizontal",
|
|
1922
|
-
size: 2
|
|
1923
|
-
}, {
|
|
1822
|
+
});
|
|
1823
|
+
function gl(g, l, _, e, p, b) {
|
|
1824
|
+
const n = m("el-input"), r = m("el-radio-button"), i = m("el-radio-group"), d = m("el-space"), u = m("el-page-header"), f = m("el-card");
|
|
1825
|
+
return y(), x(f, {
|
|
1826
|
+
class: "basic-card flex-full",
|
|
1827
|
+
"body-class": "flex-1"
|
|
1828
|
+
}, {
|
|
1829
|
+
header: o(() => [
|
|
1830
|
+
a(u, { class: "basic-header" }, {
|
|
1831
|
+
title: o(() => [
|
|
1832
|
+
a(e.RefreshButton, {
|
|
1833
|
+
loading: e.requesting,
|
|
1834
|
+
onRefresh: e.reset
|
|
1835
|
+
}, null, 8, ["loading", "onRefresh"]),
|
|
1836
|
+
a(e.OpenButton, { onOpen: e.openFormModal }, null, 8, ["onOpen"])
|
|
1837
|
+
]),
|
|
1838
|
+
content: o(() => [
|
|
1839
|
+
a(d, { class: "search-bar" }, {
|
|
1924
1840
|
default: o(() => [
|
|
1925
1841
|
a(n, {
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
}, 1024)
|
|
1939
|
-
]),
|
|
1940
|
-
_: 2
|
|
1941
|
-
}, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
|
|
1942
|
-
a(d, { direction: "vertical" }),
|
|
1943
|
-
f.rules ? (y(), w(u, {
|
|
1944
|
-
key: 0,
|
|
1945
|
-
modelValue: e.state.MenuList[f.id],
|
|
1946
|
-
"onUpdate:modelValue": (c) => e.state.MenuList[f.id] = c,
|
|
1947
|
-
disabled: p.disabled,
|
|
1948
|
-
style: { margin: "auto" },
|
|
1949
|
-
onChange: e.updateState
|
|
1842
|
+
class: "basic-search-input",
|
|
1843
|
+
modelValue: e.keyword.keyword,
|
|
1844
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => e.keyword.keyword = c),
|
|
1845
|
+
placeholder: e.Translate("base.placeholder.keyword"),
|
|
1846
|
+
clearable: "",
|
|
1847
|
+
onKeyup: l[1] || (l[1] = ie((c) => e.search(), ["enter"])),
|
|
1848
|
+
onClear: l[2] || (l[2] = (c) => e.search())
|
|
1849
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
1850
|
+
a(i, {
|
|
1851
|
+
modelValue: e.keyword.status,
|
|
1852
|
+
"onUpdate:modelValue": l[3] || (l[3] = (c) => e.keyword.status = c),
|
|
1853
|
+
onChange: l[4] || (l[4] = (c) => e.search())
|
|
1950
1854
|
}, {
|
|
1951
1855
|
default: o(() => [
|
|
1952
|
-
(y(
|
|
1953
|
-
key: c
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
q("div", gl, C(c.translate), 1)
|
|
1958
|
-
]),
|
|
1959
|
-
_: 2
|
|
1960
|
-
}, 1032, ["value"]))), 128))
|
|
1856
|
+
(y(), N(j, null, ee([0, 1, 2], (c) => a(r, {
|
|
1857
|
+
key: c,
|
|
1858
|
+
label: e.Translate(`base.DISABLE_ENABLE.${c}`),
|
|
1859
|
+
value: c
|
|
1860
|
+
}, null, 8, ["label", "value"])), 64))
|
|
1961
1861
|
]),
|
|
1962
|
-
_:
|
|
1963
|
-
},
|
|
1862
|
+
_: 1
|
|
1863
|
+
}, 8, ["modelValue"]),
|
|
1864
|
+
a(e.SearchButton, {
|
|
1865
|
+
disabled: e.requesting,
|
|
1866
|
+
onSearch: l[5] || (l[5] = (c) => e.search())
|
|
1867
|
+
}, null, 8, ["disabled"])
|
|
1964
1868
|
]),
|
|
1965
|
-
_:
|
|
1966
|
-
}
|
|
1967
|
-
])
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1869
|
+
_: 1
|
|
1870
|
+
})
|
|
1871
|
+
]),
|
|
1872
|
+
_: 1
|
|
1873
|
+
})
|
|
1874
|
+
]),
|
|
1875
|
+
default: o(() => [
|
|
1876
|
+
a(e.ProTable, {
|
|
1877
|
+
ref: "tableRef",
|
|
1878
|
+
size: "small",
|
|
1879
|
+
columns: e.columns,
|
|
1880
|
+
url: e.$api.urls[e.DEFAULT_PAGE_KEY],
|
|
1881
|
+
"search-param": e.keyword,
|
|
1882
|
+
"auto-search": ""
|
|
1883
|
+
}, null, 8, ["url", "search-param"]),
|
|
1884
|
+
a(e.LangFormModal, {
|
|
1885
|
+
ref: "formModalRef",
|
|
1886
|
+
onRefresh: e.refresh
|
|
1887
|
+
}, null, 8, ["onRefresh"])
|
|
1888
|
+
]),
|
|
1889
|
+
_: 1
|
|
1890
|
+
});
|
|
1972
1891
|
}
|
|
1973
|
-
const
|
|
1974
|
-
|
|
1892
|
+
const hl = /* @__PURE__ */ R(bl, [["render", gl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/language/index.vue"]]), vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1893
|
+
__proto__: null,
|
|
1894
|
+
default: hl
|
|
1895
|
+
}, Symbol.toStringTag, { value: "Module" })), ce = E.routineApi("admin", "key"), Tl = /* @__PURE__ */ w({
|
|
1896
|
+
__name: "AdminFormModal",
|
|
1975
1897
|
emits: ["refresh"],
|
|
1976
|
-
setup(g, { expose: l, emit:
|
|
1977
|
-
const e =
|
|
1898
|
+
setup(g, { expose: l, emit: _ }) {
|
|
1899
|
+
const e = _, p = {
|
|
1978
1900
|
key: "",
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1901
|
+
username: "",
|
|
1902
|
+
password: "",
|
|
1903
|
+
phone: "",
|
|
1904
|
+
email: "",
|
|
1905
|
+
language: "zh-CN",
|
|
1983
1906
|
remark: "",
|
|
1984
|
-
|
|
1985
|
-
}, n = {
|
|
1986
|
-
|
|
1907
|
+
roles: []
|
|
1908
|
+
}, { modal: b, title: n, form: r, formData: i, requesting: d, executing: u, open: f, modify: c, submit: s, closed: v } = I(e, p, ce), k = {
|
|
1909
|
+
username: [
|
|
1987
1910
|
{
|
|
1988
1911
|
required: !0,
|
|
1989
|
-
message: t("base.placeholder.input base.
|
|
1912
|
+
message: t("base.placeholder.input base.username"),
|
|
1990
1913
|
trigger: "blur"
|
|
1991
1914
|
}
|
|
1992
1915
|
],
|
|
1993
|
-
|
|
1916
|
+
phone: [
|
|
1994
1917
|
{
|
|
1995
1918
|
required: !0,
|
|
1996
|
-
|
|
1919
|
+
validator: Ue.phoneRule,
|
|
1920
|
+
message: t("base.placeholder.input base.phone"),
|
|
1921
|
+
trigger: "blur"
|
|
1922
|
+
}
|
|
1923
|
+
],
|
|
1924
|
+
password: [
|
|
1925
|
+
{
|
|
1926
|
+
required: !1,
|
|
1927
|
+
message: t("base.placeholder.input base.password"),
|
|
1928
|
+
trigger: "blur"
|
|
1929
|
+
}
|
|
1930
|
+
],
|
|
1931
|
+
email: [
|
|
1932
|
+
{
|
|
1933
|
+
required: !0,
|
|
1934
|
+
message: t("base.placeholder.input base.email"),
|
|
1997
1935
|
trigger: "blur"
|
|
1998
1936
|
}
|
|
1937
|
+
],
|
|
1938
|
+
language: [
|
|
1939
|
+
{
|
|
1940
|
+
required: !0,
|
|
1941
|
+
message: t("base.placeholder.select base.language"),
|
|
1942
|
+
trigger: "change"
|
|
1943
|
+
}
|
|
1944
|
+
],
|
|
1945
|
+
roles: [
|
|
1946
|
+
{
|
|
1947
|
+
required: !0,
|
|
1948
|
+
type: "Array",
|
|
1949
|
+
message: t("base.placeholder.select menu.Role"),
|
|
1950
|
+
trigger: "change"
|
|
1951
|
+
}
|
|
1999
1952
|
]
|
|
2000
|
-
},
|
|
2001
|
-
|
|
2002
|
-
|
|
1953
|
+
}, h = B([]), T = async () => {
|
|
1954
|
+
const V = await de.list();
|
|
1955
|
+
h.value = Array.isArray(V == null ? void 0 : V.data) ? V.data : [];
|
|
2003
1956
|
};
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
1957
|
+
Re(async () => {
|
|
1958
|
+
await T();
|
|
1959
|
+
}), l({
|
|
1960
|
+
open: f,
|
|
1961
|
+
modify: c
|
|
2007
1962
|
});
|
|
2008
|
-
const D = { emits: e,
|
|
1963
|
+
const D = { emits: e, DEFAULT_DATA: p, modal: b, title: n, form: r, formData: i, requesting: d, executing: u, open: f, modify: c, submit: s, closed: v, rules: k, rolesList: h, getRolesList: T, get Translate() {
|
|
2009
1964
|
return t;
|
|
2010
1965
|
}, get FormDialog() {
|
|
2011
1966
|
return K;
|
|
2012
|
-
}
|
|
1967
|
+
} };
|
|
2013
1968
|
return Object.defineProperty(D, "__isScriptSetup", { enumerable: !1, value: !0 }), D;
|
|
2014
1969
|
}
|
|
2015
1970
|
});
|
|
2016
|
-
function Dl(g, l,
|
|
2017
|
-
const n = m("el-input"), r = m("el-form-item"), i = m("el-
|
|
2018
|
-
return y(),
|
|
1971
|
+
function Dl(g, l, _, e, p, b) {
|
|
1972
|
+
const n = m("el-input"), r = m("el-form-item"), i = m("el-radio-button"), d = m("el-radio-group"), u = m("el-checkbox"), f = m("el-checkbox-group"), c = m("el-form");
|
|
1973
|
+
return y(), x(e.FormDialog, {
|
|
2019
1974
|
modelValue: e.modal,
|
|
2020
|
-
"onUpdate:modelValue": l[
|
|
1975
|
+
"onUpdate:modelValue": l[7] || (l[7] = (s) => e.modal = s),
|
|
2021
1976
|
title: e.title(),
|
|
2022
|
-
width: "
|
|
1977
|
+
width: "600px",
|
|
2023
1978
|
executing: e.executing,
|
|
2024
|
-
onClosed: e.
|
|
1979
|
+
onClosed: e.closed,
|
|
2025
1980
|
onSubmit: e.submit
|
|
2026
1981
|
}, {
|
|
2027
1982
|
default: o(() => [
|
|
2028
|
-
a(
|
|
1983
|
+
a(c, {
|
|
2029
1984
|
ref: "form",
|
|
2030
1985
|
model: e.formData,
|
|
2031
1986
|
"label-width": "auto",
|
|
@@ -2033,99 +1988,126 @@ function Dl(g, l, p, e, _, b) {
|
|
|
2033
1988
|
disabled: e.requesting || e.executing
|
|
2034
1989
|
}, {
|
|
2035
1990
|
default: o(() => [
|
|
2036
|
-
a(
|
|
1991
|
+
a(r, {
|
|
1992
|
+
label: e.Translate("base.username"),
|
|
1993
|
+
prop: "username"
|
|
1994
|
+
}, {
|
|
2037
1995
|
default: o(() => [
|
|
2038
|
-
a(
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
default: o(() => [
|
|
2045
|
-
a(n, {
|
|
2046
|
-
modelValue: e.formData.module,
|
|
2047
|
-
"onUpdate:modelValue": l[0] || (l[0] = (c) => e.formData.module = c),
|
|
2048
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
2049
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
2050
|
-
]),
|
|
2051
|
-
_: 1
|
|
2052
|
-
}, 8, ["label"])
|
|
2053
|
-
]),
|
|
2054
|
-
_: 1
|
|
2055
|
-
}),
|
|
2056
|
-
a(i, { span: 12 }, {
|
|
2057
|
-
default: o(() => [
|
|
2058
|
-
a(r, {
|
|
2059
|
-
label: e.Translate("base.sort"),
|
|
2060
|
-
prop: "sort"
|
|
2061
|
-
}, {
|
|
2062
|
-
default: o(() => [
|
|
2063
|
-
a(d, {
|
|
2064
|
-
class: "w-full",
|
|
2065
|
-
modelValue: e.formData.sort,
|
|
2066
|
-
"onUpdate:modelValue": l[1] || (l[1] = (c) => e.formData.sort = c),
|
|
2067
|
-
min: 0,
|
|
2068
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
2069
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
2070
|
-
]),
|
|
2071
|
-
_: 1
|
|
2072
|
-
}, 8, ["label"])
|
|
2073
|
-
]),
|
|
2074
|
-
_: 1
|
|
2075
|
-
})
|
|
1996
|
+
a(n, {
|
|
1997
|
+
modelValue: e.formData.username,
|
|
1998
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => e.formData.username = s),
|
|
1999
|
+
placeholder: e.Translate("base.placeholder.input"),
|
|
2000
|
+
autocomplete: "off"
|
|
2001
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
2076
2002
|
]),
|
|
2077
2003
|
_: 1
|
|
2078
|
-
}),
|
|
2004
|
+
}, 8, ["label"]),
|
|
2079
2005
|
a(r, {
|
|
2080
|
-
label: e.Translate("base.
|
|
2081
|
-
prop: "
|
|
2006
|
+
label: e.Translate("base.phone"),
|
|
2007
|
+
prop: "phone"
|
|
2082
2008
|
}, {
|
|
2083
2009
|
default: o(() => [
|
|
2084
2010
|
a(n, {
|
|
2085
|
-
modelValue: e.formData.
|
|
2086
|
-
"onUpdate:modelValue": l[
|
|
2087
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
2011
|
+
modelValue: e.formData.phone,
|
|
2012
|
+
"onUpdate:modelValue": l[1] || (l[1] = (s) => e.formData.phone = s),
|
|
2013
|
+
placeholder: e.Translate("base.placeholder.input"),
|
|
2014
|
+
autocomplete: "off"
|
|
2088
2015
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2089
2016
|
]),
|
|
2090
2017
|
_: 1
|
|
2091
2018
|
}, 8, ["label"]),
|
|
2092
2019
|
a(r, {
|
|
2093
|
-
label: e.Translate("base.
|
|
2094
|
-
prop: "
|
|
2020
|
+
label: e.Translate("base.password"),
|
|
2021
|
+
prop: "password",
|
|
2022
|
+
required: !e.formData.key
|
|
2095
2023
|
}, {
|
|
2096
2024
|
default: o(() => [
|
|
2097
2025
|
a(n, {
|
|
2098
|
-
modelValue: e.formData.
|
|
2099
|
-
"onUpdate:modelValue": l[
|
|
2100
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
2026
|
+
modelValue: e.formData.password,
|
|
2027
|
+
"onUpdate:modelValue": l[2] || (l[2] = (s) => e.formData.password = s),
|
|
2028
|
+
placeholder: e.Translate("base.placeholder.input"),
|
|
2029
|
+
autocomplete: "off"
|
|
2101
2030
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2102
2031
|
]),
|
|
2103
2032
|
_: 1
|
|
2104
|
-
}, 8, ["label"]),
|
|
2033
|
+
}, 8, ["label", "required"]),
|
|
2105
2034
|
a(r, {
|
|
2106
|
-
label: e.Translate("base.
|
|
2107
|
-
prop: "
|
|
2035
|
+
label: e.Translate("base.email"),
|
|
2036
|
+
prop: "email"
|
|
2108
2037
|
}, {
|
|
2109
2038
|
default: o(() => [
|
|
2110
2039
|
a(n, {
|
|
2111
|
-
modelValue: e.formData.
|
|
2112
|
-
"onUpdate:modelValue": l[
|
|
2113
|
-
placeholder: e.Translate("base.placeholder.input")
|
|
2040
|
+
modelValue: e.formData.email,
|
|
2041
|
+
"onUpdate:modelValue": l[3] || (l[3] = (s) => e.formData.email = s),
|
|
2042
|
+
placeholder: e.Translate("base.placeholder.input"),
|
|
2043
|
+
autocomplete: "off"
|
|
2114
2044
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2115
2045
|
]),
|
|
2116
2046
|
_: 1
|
|
2117
2047
|
}, 8, ["label"]),
|
|
2118
2048
|
a(r, {
|
|
2119
|
-
label: e.Translate("
|
|
2120
|
-
prop: "
|
|
2049
|
+
label: e.Translate("base.language"),
|
|
2050
|
+
prop: "language"
|
|
2121
2051
|
}, {
|
|
2122
2052
|
default: o(() => [
|
|
2123
|
-
a(
|
|
2124
|
-
|
|
2125
|
-
modelValue: e.formData.
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2053
|
+
a(d, {
|
|
2054
|
+
modelValue: e.formData.language,
|
|
2055
|
+
"onUpdate:modelValue": l[4] || (l[4] = (s) => e.formData.language = s)
|
|
2056
|
+
}, {
|
|
2057
|
+
default: o(() => [
|
|
2058
|
+
a(i, { value: "zh-CN" }, {
|
|
2059
|
+
default: o(() => [...l[8] || (l[8] = [
|
|
2060
|
+
G("zh-CN", -1)
|
|
2061
|
+
])]),
|
|
2062
|
+
_: 1
|
|
2063
|
+
}),
|
|
2064
|
+
a(i, { value: "en-US" }, {
|
|
2065
|
+
default: o(() => [...l[9] || (l[9] = [
|
|
2066
|
+
G("en-US", -1)
|
|
2067
|
+
])]),
|
|
2068
|
+
_: 1
|
|
2069
|
+
})
|
|
2070
|
+
]),
|
|
2071
|
+
_: 1
|
|
2072
|
+
}, 8, ["modelValue"])
|
|
2073
|
+
]),
|
|
2074
|
+
_: 1
|
|
2075
|
+
}, 8, ["label"]),
|
|
2076
|
+
a(r, {
|
|
2077
|
+
label: e.Translate("menu.Role"),
|
|
2078
|
+
prop: "roles"
|
|
2079
|
+
}, {
|
|
2080
|
+
default: o(() => [
|
|
2081
|
+
a(f, {
|
|
2082
|
+
modelValue: e.formData.roles,
|
|
2083
|
+
"onUpdate:modelValue": l[5] || (l[5] = (s) => e.formData.roles = s)
|
|
2084
|
+
}, {
|
|
2085
|
+
default: o(() => [
|
|
2086
|
+
(y(!0), N(j, null, ee(e.rolesList, (s) => (y(), x(u, {
|
|
2087
|
+
key: s.key,
|
|
2088
|
+
value: s.key
|
|
2089
|
+
}, {
|
|
2090
|
+
default: o(() => [
|
|
2091
|
+
G(C(s.translate), 1)
|
|
2092
|
+
]),
|
|
2093
|
+
_: 2
|
|
2094
|
+
}, 1032, ["value"]))), 128))
|
|
2095
|
+
]),
|
|
2096
|
+
_: 1
|
|
2097
|
+
}, 8, ["modelValue"])
|
|
2098
|
+
]),
|
|
2099
|
+
_: 1
|
|
2100
|
+
}, 8, ["label"]),
|
|
2101
|
+
a(r, {
|
|
2102
|
+
label: e.Translate("base.remark"),
|
|
2103
|
+
prop: "remark"
|
|
2104
|
+
}, {
|
|
2105
|
+
default: o(() => [
|
|
2106
|
+
a(n, {
|
|
2107
|
+
modelValue: e.formData.remark,
|
|
2108
|
+
"onUpdate:modelValue": l[6] || (l[6] = (s) => e.formData.remark = s),
|
|
2109
|
+
placeholder: e.Translate("base.placeholder.input")
|
|
2110
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
2129
2111
|
]),
|
|
2130
2112
|
_: 1
|
|
2131
2113
|
}, 8, ["label"])
|
|
@@ -2134,59 +2116,72 @@ function Dl(g, l, p, e, _, b) {
|
|
|
2134
2116
|
}, 8, ["model", "disabled"])
|
|
2135
2117
|
]),
|
|
2136
2118
|
_: 1
|
|
2137
|
-
}, 8, ["modelValue", "title", "executing", "onSubmit"]);
|
|
2119
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2138
2120
|
}
|
|
2139
|
-
const Vl = /* @__PURE__ */ R(Tl, [["render", Dl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/
|
|
2121
|
+
const Vl = /* @__PURE__ */ R(Tl, [["render", Dl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/admin/components/AdminFormModal.vue"]]), yl = /* @__PURE__ */ w({
|
|
2140
2122
|
__name: "index",
|
|
2141
2123
|
setup(g, {
|
|
2142
2124
|
expose: l
|
|
2143
2125
|
}) {
|
|
2144
2126
|
l();
|
|
2145
|
-
const
|
|
2127
|
+
const _ = {
|
|
2146
2128
|
keyword: ""
|
|
2147
|
-
}, e = [
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
{
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
},
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2129
|
+
}, e = [{
|
|
2130
|
+
label: t("base.avatar"),
|
|
2131
|
+
prop: "avatar",
|
|
2132
|
+
width: 60,
|
|
2133
|
+
render: ({
|
|
2134
|
+
row: v
|
|
2135
|
+
}) => a(Me, {
|
|
2136
|
+
src: v.avatar
|
|
2137
|
+
}, null)
|
|
2138
|
+
}, {
|
|
2139
|
+
label: t("base.user"),
|
|
2140
|
+
width: 200,
|
|
2141
|
+
align: "left",
|
|
2142
|
+
render: ({
|
|
2143
|
+
row: v
|
|
2144
|
+
}) => a(m("el-space"), {
|
|
2145
|
+
direction: "vertical",
|
|
2146
|
+
alignment: "start"
|
|
2147
|
+
}, {
|
|
2148
|
+
default: () => [a("div", null, [v.username]), a("div", null, [v.email])]
|
|
2149
|
+
})
|
|
2150
|
+
}, {
|
|
2151
|
+
label: t("base.phone"),
|
|
2152
|
+
prop: "phone",
|
|
2153
|
+
width: 140
|
|
2154
|
+
}, {
|
|
2155
|
+
label: t("base.remark"),
|
|
2156
|
+
prop: "remark",
|
|
2157
|
+
width: 0
|
|
2158
|
+
}, {
|
|
2159
|
+
label: t("base.login_at"),
|
|
2160
|
+
prop: "login_at",
|
|
2161
|
+
width: 160
|
|
2162
|
+
}, {
|
|
2163
|
+
label: t("base.created_at"),
|
|
2164
|
+
prop: "created_at",
|
|
2165
|
+
width: 160
|
|
2166
|
+
}, {
|
|
2167
|
+
label: t("base.updated_at"),
|
|
2168
|
+
prop: "updated_at",
|
|
2169
|
+
width: 160
|
|
2170
|
+
}, {
|
|
2171
|
+
prop: "action",
|
|
2172
|
+
label: t("base.action"),
|
|
2173
|
+
width: 80,
|
|
2174
|
+
align: "center",
|
|
2175
|
+
render: ({
|
|
2176
|
+
row: v
|
|
2177
|
+
}) => a(Y, {
|
|
2178
|
+
onModify: () => c({
|
|
2179
|
+
key: v.key
|
|
2180
|
+
})
|
|
2181
|
+
}, null)
|
|
2182
|
+
}], {
|
|
2183
|
+
requesting: p
|
|
2184
|
+
} = L(ce), {
|
|
2190
2185
|
tableRef: b,
|
|
2191
2186
|
formModalRef: n,
|
|
2192
2187
|
keyword: r,
|
|
@@ -2195,10 +2190,10 @@ const Vl = /* @__PURE__ */ R(Tl, [["render", Dl], ["__file", "/Users/Raven/Proje
|
|
|
2195
2190
|
refresh: u,
|
|
2196
2191
|
openFormModal: f,
|
|
2197
2192
|
editFormModal: c
|
|
2198
|
-
} = A(
|
|
2199
|
-
DEFAULT_KEYWORD:
|
|
2193
|
+
} = A(_), s = {
|
|
2194
|
+
DEFAULT_KEYWORD: _,
|
|
2200
2195
|
columns: e,
|
|
2201
|
-
requesting:
|
|
2196
|
+
requesting: p,
|
|
2202
2197
|
tableRef: b,
|
|
2203
2198
|
formModalRef: n,
|
|
2204
2199
|
keyword: r,
|
|
@@ -2223,11 +2218,11 @@ const Vl = /* @__PURE__ */ R(Tl, [["render", Dl], ["__file", "/Users/Raven/Proje
|
|
|
2223
2218
|
return W;
|
|
2224
2219
|
},
|
|
2225
2220
|
get ProTable() {
|
|
2226
|
-
return
|
|
2221
|
+
return re;
|
|
2227
2222
|
},
|
|
2228
|
-
|
|
2223
|
+
AdminFormModal: Vl,
|
|
2229
2224
|
get $api() {
|
|
2230
|
-
return
|
|
2225
|
+
return ce;
|
|
2231
2226
|
}
|
|
2232
2227
|
};
|
|
2233
2228
|
return Object.defineProperty(s, "__isScriptSetup", {
|
|
@@ -2236,9 +2231,9 @@ const Vl = /* @__PURE__ */ R(Tl, [["render", Dl], ["__file", "/Users/Raven/Proje
|
|
|
2236
2231
|
}), s;
|
|
2237
2232
|
}
|
|
2238
2233
|
});
|
|
2239
|
-
function kl(g, l,
|
|
2234
|
+
function kl(g, l, _, e, p, b) {
|
|
2240
2235
|
const n = m("el-input"), r = m("el-space"), i = m("el-page-header"), d = m("el-card");
|
|
2241
|
-
return y(),
|
|
2236
|
+
return y(), x(d, {
|
|
2242
2237
|
class: "basic-card flex-full",
|
|
2243
2238
|
"body-class": "flex-1"
|
|
2244
2239
|
}, {
|
|
@@ -2283,7 +2278,7 @@ function kl(g, l, p, e, _, b) {
|
|
|
2283
2278
|
"search-param": e.keyword,
|
|
2284
2279
|
"auto-search": ""
|
|
2285
2280
|
}, null, 8, ["url", "search-param"]),
|
|
2286
|
-
a(e.
|
|
2281
|
+
a(e.AdminFormModal, {
|
|
2287
2282
|
ref: "formModalRef",
|
|
2288
2283
|
onRefresh: e.refresh
|
|
2289
2284
|
}, null, 8, ["onRefresh"])
|
|
@@ -2291,12 +2286,12 @@ function kl(g, l, p, e, _, b) {
|
|
|
2291
2286
|
_: 1
|
|
2292
2287
|
});
|
|
2293
2288
|
}
|
|
2294
|
-
const
|
|
2289
|
+
const xl = /* @__PURE__ */ R(yl, [["render", kl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/admin/index.vue"]]), wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2295
2290
|
__proto__: null,
|
|
2296
|
-
default:
|
|
2291
|
+
default: xl
|
|
2297
2292
|
}, Symbol.toStringTag, { value: "Module" })), Rl = {
|
|
2298
2293
|
check: "check"
|
|
2299
|
-
}, Q = E.routineApi("site", "id", Rl), le = E.routineApi("domain"), Sl = /* @__PURE__ */
|
|
2294
|
+
}, Q = E.routineApi("site", "id", Rl), le = E.routineApi("domain"), Sl = /* @__PURE__ */ w({
|
|
2300
2295
|
__name: "DomainSelect",
|
|
2301
2296
|
props: {
|
|
2302
2297
|
modelValue: {
|
|
@@ -2311,16 +2306,16 @@ const wl = /* @__PURE__ */ R(yl, [["render", kl], ["__file", "/Users/Raven/Proje
|
|
|
2311
2306
|
emits: ["update:modelValue", "change"],
|
|
2312
2307
|
setup(g, {
|
|
2313
2308
|
expose: l,
|
|
2314
|
-
emit:
|
|
2309
|
+
emit: _
|
|
2315
2310
|
}) {
|
|
2316
|
-
const e =
|
|
2311
|
+
const e = _, p = g, {
|
|
2317
2312
|
requesting: b
|
|
2318
2313
|
} = L(le), {
|
|
2319
2314
|
key: n,
|
|
2320
2315
|
options: r,
|
|
2321
2316
|
refresh: i,
|
|
2322
2317
|
change: d
|
|
2323
|
-
} = $(Z(
|
|
2318
|
+
} = $(Z(p, "modelValue"), e, {
|
|
2324
2319
|
key: "DOMAIN_LIST",
|
|
2325
2320
|
api: le,
|
|
2326
2321
|
isArray: !0
|
|
@@ -2330,7 +2325,7 @@ const wl = /* @__PURE__ */ R(yl, [["render", kl], ["__file", "/Users/Raven/Proje
|
|
|
2330
2325
|
});
|
|
2331
2326
|
const u = {
|
|
2332
2327
|
emit: e,
|
|
2333
|
-
props:
|
|
2328
|
+
props: p,
|
|
2334
2329
|
requesting: b,
|
|
2335
2330
|
key: n,
|
|
2336
2331
|
options: r,
|
|
@@ -2340,7 +2335,7 @@ const wl = /* @__PURE__ */ R(yl, [["render", kl], ["__file", "/Users/Raven/Proje
|
|
|
2340
2335
|
return t;
|
|
2341
2336
|
},
|
|
2342
2337
|
get InlineRefreshButton() {
|
|
2343
|
-
return
|
|
2338
|
+
return oe;
|
|
2344
2339
|
}
|
|
2345
2340
|
};
|
|
2346
2341
|
return Object.defineProperty(u, "__isScriptSetup", {
|
|
@@ -2349,13 +2344,13 @@ const wl = /* @__PURE__ */ R(yl, [["render", kl], ["__file", "/Users/Raven/Proje
|
|
|
2349
2344
|
}), u;
|
|
2350
2345
|
}
|
|
2351
2346
|
});
|
|
2352
|
-
function Ul(g, l,
|
|
2347
|
+
function Ul(g, l, _, e, p, b) {
|
|
2353
2348
|
const n = m("el-select-v2");
|
|
2354
|
-
return y(),
|
|
2349
|
+
return y(), x(n, {
|
|
2355
2350
|
modelValue: e.key,
|
|
2356
2351
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => e.key = r),
|
|
2357
2352
|
options: e.options,
|
|
2358
|
-
disabled:
|
|
2353
|
+
disabled: _.disabled || e.requesting,
|
|
2359
2354
|
placeholder: e.Translate("base.select config.domain"),
|
|
2360
2355
|
onChange: e.change
|
|
2361
2356
|
}, {
|
|
@@ -2368,11 +2363,11 @@ function Ul(g, l, p, e, _, b) {
|
|
|
2368
2363
|
_: 1
|
|
2369
2364
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2370
2365
|
}
|
|
2371
|
-
const ve = /* @__PURE__ */ R(Sl, [["render", Ul], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/DomainSelect.vue"]]), Ml = /* @__PURE__ */
|
|
2366
|
+
const ve = /* @__PURE__ */ R(Sl, [["render", Ul], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/DomainSelect.vue"]]), Ml = /* @__PURE__ */ w({
|
|
2372
2367
|
__name: "SiteFormModal",
|
|
2373
2368
|
emits: ["refresh"],
|
|
2374
|
-
setup(g, { expose: l, emit:
|
|
2375
|
-
const e =
|
|
2369
|
+
setup(g, { expose: l, emit: _ }) {
|
|
2370
|
+
const e = _, p = {
|
|
2376
2371
|
id: 0,
|
|
2377
2372
|
domain_id: 0,
|
|
2378
2373
|
prefix: "",
|
|
@@ -2387,12 +2382,12 @@ const ve = /* @__PURE__ */ R(Sl, [["render", Ul], ["__file", "/Users/Raven/Proje
|
|
|
2387
2382
|
prefix: [{ required: !0, message: t("base.placeholder.input base.prefix"), trigger: "blur" }],
|
|
2388
2383
|
name: [{ required: !0, message: t("base.placeholder.input base.name"), trigger: "blur" }],
|
|
2389
2384
|
en_name: [{ required: !0, message: t("base.placeholder.input base.en_name"), trigger: "blur" }]
|
|
2390
|
-
}, { modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k } = I(e,
|
|
2385
|
+
}, { modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k } = I(e, p, Q);
|
|
2391
2386
|
l({
|
|
2392
2387
|
open: c,
|
|
2393
2388
|
modify: s
|
|
2394
2389
|
});
|
|
2395
|
-
const h = { emits: e, DEFAULT_DATA:
|
|
2390
|
+
const h = { emits: e, DEFAULT_DATA: p, rules: b, modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k, get Translate() {
|
|
2396
2391
|
return t;
|
|
2397
2392
|
}, get FormDialog() {
|
|
2398
2393
|
return K;
|
|
@@ -2400,9 +2395,9 @@ const ve = /* @__PURE__ */ R(Sl, [["render", Ul], ["__file", "/Users/Raven/Proje
|
|
|
2400
2395
|
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
2401
2396
|
}
|
|
2402
2397
|
});
|
|
2403
|
-
function Al(g, l,
|
|
2398
|
+
function Al(g, l, _, e, p, b) {
|
|
2404
2399
|
const n = m("el-form-item"), r = m("el-input"), i = m("el-form");
|
|
2405
|
-
return y(),
|
|
2400
|
+
return y(), x(e.FormDialog, {
|
|
2406
2401
|
modelValue: e.modal,
|
|
2407
2402
|
"onUpdate:modelValue": l[7] || (l[7] = (d) => e.modal = d),
|
|
2408
2403
|
title: e.title("config.site"),
|
|
@@ -2524,7 +2519,7 @@ function Al(g, l, p, e, _, b) {
|
|
|
2524
2519
|
_: 1
|
|
2525
2520
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2526
2521
|
}
|
|
2527
|
-
const Ll = /* @__PURE__ */ R(Ml, [["render", Al], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/SiteFormModal.vue"]]), ae = E.routineApi("domain_provider"), ql = /* @__PURE__ */
|
|
2522
|
+
const Ll = /* @__PURE__ */ R(Ml, [["render", Al], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/SiteFormModal.vue"]]), ae = E.routineApi("domain_provider"), ql = /* @__PURE__ */ w({
|
|
2528
2523
|
__name: "DomainProviderSelect",
|
|
2529
2524
|
props: {
|
|
2530
2525
|
modelValue: {
|
|
@@ -2539,16 +2534,16 @@ const Ll = /* @__PURE__ */ R(Ml, [["render", Al], ["__file", "/Users/Raven/Proje
|
|
|
2539
2534
|
emits: ["update:modelValue", "change"],
|
|
2540
2535
|
setup(g, {
|
|
2541
2536
|
expose: l,
|
|
2542
|
-
emit:
|
|
2537
|
+
emit: _
|
|
2543
2538
|
}) {
|
|
2544
|
-
const e =
|
|
2539
|
+
const e = _, p = g, {
|
|
2545
2540
|
requesting: b
|
|
2546
2541
|
} = L(ae), {
|
|
2547
2542
|
key: n,
|
|
2548
2543
|
options: r,
|
|
2549
2544
|
refresh: i,
|
|
2550
2545
|
change: d
|
|
2551
|
-
} = $(Z(
|
|
2546
|
+
} = $(Z(p, "modelValue"), e, {
|
|
2552
2547
|
key: "DOMAIN_PROVIDER_LIST",
|
|
2553
2548
|
api: ae,
|
|
2554
2549
|
isArray: !0
|
|
@@ -2558,7 +2553,7 @@ const Ll = /* @__PURE__ */ R(Ml, [["render", Al], ["__file", "/Users/Raven/Proje
|
|
|
2558
2553
|
});
|
|
2559
2554
|
const u = {
|
|
2560
2555
|
emit: e,
|
|
2561
|
-
props:
|
|
2556
|
+
props: p,
|
|
2562
2557
|
requesting: b,
|
|
2563
2558
|
key: n,
|
|
2564
2559
|
options: r,
|
|
@@ -2568,7 +2563,7 @@ const Ll = /* @__PURE__ */ R(Ml, [["render", Al], ["__file", "/Users/Raven/Proje
|
|
|
2568
2563
|
return t;
|
|
2569
2564
|
},
|
|
2570
2565
|
get InlineRefreshButton() {
|
|
2571
|
-
return
|
|
2566
|
+
return oe;
|
|
2572
2567
|
}
|
|
2573
2568
|
};
|
|
2574
2569
|
return Object.defineProperty(u, "__isScriptSetup", {
|
|
@@ -2577,13 +2572,13 @@ const Ll = /* @__PURE__ */ R(Ml, [["render", Al], ["__file", "/Users/Raven/Proje
|
|
|
2577
2572
|
}), u;
|
|
2578
2573
|
}
|
|
2579
2574
|
});
|
|
2580
|
-
function Fl(g, l,
|
|
2575
|
+
function Fl(g, l, _, e, p, b) {
|
|
2581
2576
|
const n = m("el-select-v2");
|
|
2582
|
-
return y(),
|
|
2577
|
+
return y(), x(n, {
|
|
2583
2578
|
modelValue: e.key,
|
|
2584
2579
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => e.key = r),
|
|
2585
2580
|
options: e.options,
|
|
2586
|
-
disabled:
|
|
2581
|
+
disabled: _.disabled || e.requesting,
|
|
2587
2582
|
placeholder: e.Translate("base.select config.domain config.provider"),
|
|
2588
2583
|
onChange: e.change
|
|
2589
2584
|
}, {
|
|
@@ -2596,11 +2591,11 @@ function Fl(g, l, p, e, _, b) {
|
|
|
2596
2591
|
_: 1
|
|
2597
2592
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2598
2593
|
}
|
|
2599
|
-
const Ol = /* @__PURE__ */ R(ql, [["render", Fl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/DomainProviderSelect.vue"]]),
|
|
2594
|
+
const Ol = /* @__PURE__ */ R(ql, [["render", Fl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/DomainProviderSelect.vue"]]), Pl = /* @__PURE__ */ w({
|
|
2600
2595
|
__name: "DomainFormModal",
|
|
2601
2596
|
emits: ["refresh"],
|
|
2602
|
-
setup(g, { expose: l, emit:
|
|
2603
|
-
const e =
|
|
2597
|
+
setup(g, { expose: l, emit: _ }) {
|
|
2598
|
+
const e = _, p = {
|
|
2604
2599
|
id: 0,
|
|
2605
2600
|
provider_id: 0,
|
|
2606
2601
|
name: "",
|
|
@@ -2610,12 +2605,12 @@ const Ol = /* @__PURE__ */ R(ql, [["render", Fl], ["__file", "/Users/Raven/Proje
|
|
|
2610
2605
|
}, b = {
|
|
2611
2606
|
provider_id: [{ required: !0, message: t("base.placeholder.input config.domain config.provider"), trigger: "blur" }],
|
|
2612
2607
|
name: [{ required: !0, message: t("base.placeholder.input base.name"), trigger: "blur" }]
|
|
2613
|
-
}, { modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k } = I(e,
|
|
2608
|
+
}, { modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k } = I(e, p, le);
|
|
2614
2609
|
l({
|
|
2615
2610
|
open: c,
|
|
2616
2611
|
modify: s
|
|
2617
2612
|
});
|
|
2618
|
-
const h = { emits: e, DEFAULT_DATA:
|
|
2613
|
+
const h = { emits: e, DEFAULT_DATA: p, rules: b, modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k, get Translate() {
|
|
2619
2614
|
return t;
|
|
2620
2615
|
}, get TimeUtils() {
|
|
2621
2616
|
return M;
|
|
@@ -2625,9 +2620,9 @@ const Ol = /* @__PURE__ */ R(ql, [["render", Fl], ["__file", "/Users/Raven/Proje
|
|
|
2625
2620
|
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
2626
2621
|
}
|
|
2627
2622
|
});
|
|
2628
|
-
function
|
|
2623
|
+
function Bl(g, l, _, e, p, b) {
|
|
2629
2624
|
const n = m("el-form-item"), r = m("el-input"), i = m("el-date-picker"), d = m("el-form");
|
|
2630
|
-
return y(),
|
|
2625
|
+
return y(), x(e.FormDialog, {
|
|
2631
2626
|
modelValue: e.modal,
|
|
2632
2627
|
"onUpdate:modelValue": l[4] || (l[4] = (u) => e.modal = u),
|
|
2633
2628
|
title: e.title("config.domain"),
|
|
@@ -2712,9 +2707,9 @@ function Pl(g, l, p, e, _, b) {
|
|
|
2712
2707
|
_: 1
|
|
2713
2708
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2714
2709
|
}
|
|
2715
|
-
const El = /* @__PURE__ */ R(
|
|
2710
|
+
const El = /* @__PURE__ */ R(Pl, [["render", Bl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/DomainFormModal.vue"]]), Cl = {
|
|
2716
2711
|
gen: "gen"
|
|
2717
|
-
}, J = E.routineApi("SSL", "id", Cl), jl = /* @__PURE__ */
|
|
2712
|
+
}, J = E.routineApi("SSL", "id", Cl), jl = /* @__PURE__ */ w({
|
|
2718
2713
|
__name: "SiteSelect",
|
|
2719
2714
|
props: {
|
|
2720
2715
|
modelValue: {
|
|
@@ -2729,16 +2724,16 @@ const El = /* @__PURE__ */ R(Bl, [["render", Pl], ["__file", "/Users/Raven/Proje
|
|
|
2729
2724
|
emits: ["update:modelValue", "change"],
|
|
2730
2725
|
setup(g, {
|
|
2731
2726
|
expose: l,
|
|
2732
|
-
emit:
|
|
2727
|
+
emit: _
|
|
2733
2728
|
}) {
|
|
2734
|
-
const e =
|
|
2729
|
+
const e = _, p = g, {
|
|
2735
2730
|
requesting: b
|
|
2736
2731
|
} = L(Q), {
|
|
2737
2732
|
key: n,
|
|
2738
2733
|
options: r,
|
|
2739
2734
|
refresh: i,
|
|
2740
2735
|
change: d
|
|
2741
|
-
} = $(Z(
|
|
2736
|
+
} = $(Z(p, "modelValue"), e, {
|
|
2742
2737
|
key: "SITE_LIST",
|
|
2743
2738
|
api: Q,
|
|
2744
2739
|
isArray: !0
|
|
@@ -2757,7 +2752,7 @@ const El = /* @__PURE__ */ R(Bl, [["render", Pl], ["__file", "/Users/Raven/Proje
|
|
|
2757
2752
|
});
|
|
2758
2753
|
const u = {
|
|
2759
2754
|
emit: e,
|
|
2760
|
-
props:
|
|
2755
|
+
props: p,
|
|
2761
2756
|
requesting: b,
|
|
2762
2757
|
key: n,
|
|
2763
2758
|
options: r,
|
|
@@ -2767,7 +2762,7 @@ const El = /* @__PURE__ */ R(Bl, [["render", Pl], ["__file", "/Users/Raven/Proje
|
|
|
2767
2762
|
return t;
|
|
2768
2763
|
},
|
|
2769
2764
|
get InlineRefreshButton() {
|
|
2770
|
-
return
|
|
2765
|
+
return oe;
|
|
2771
2766
|
}
|
|
2772
2767
|
};
|
|
2773
2768
|
return Object.defineProperty(u, "__isScriptSetup", {
|
|
@@ -2776,13 +2771,13 @@ const El = /* @__PURE__ */ R(Bl, [["render", Pl], ["__file", "/Users/Raven/Proje
|
|
|
2776
2771
|
}), u;
|
|
2777
2772
|
}
|
|
2778
2773
|
});
|
|
2779
|
-
function zl(g, l,
|
|
2774
|
+
function zl(g, l, _, e, p, b) {
|
|
2780
2775
|
const n = m("el-select-v2");
|
|
2781
|
-
return y(),
|
|
2776
|
+
return y(), x(n, {
|
|
2782
2777
|
modelValue: e.key,
|
|
2783
2778
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => e.key = r),
|
|
2784
2779
|
options: e.options,
|
|
2785
|
-
disabled:
|
|
2780
|
+
disabled: _.disabled || e.requesting,
|
|
2786
2781
|
placeholder: e.Translate("base.select config.domain"),
|
|
2787
2782
|
onChange: e.change
|
|
2788
2783
|
}, {
|
|
@@ -2795,11 +2790,11 @@ function zl(g, l, p, e, _, b) {
|
|
|
2795
2790
|
_: 1
|
|
2796
2791
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2797
2792
|
}
|
|
2798
|
-
const Il = /* @__PURE__ */ R(jl, [["render", zl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/SiteSelect.vue"]]), Kl = /* @__PURE__ */
|
|
2793
|
+
const Il = /* @__PURE__ */ R(jl, [["render", zl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/SiteSelect.vue"]]), Kl = /* @__PURE__ */ w({
|
|
2799
2794
|
__name: "SSLFormModal",
|
|
2800
2795
|
emits: ["refresh"],
|
|
2801
|
-
setup(g, { expose: l, emit:
|
|
2802
|
-
const e =
|
|
2796
|
+
setup(g, { expose: l, emit: _ }) {
|
|
2797
|
+
const e = _, p = {
|
|
2803
2798
|
id: 0,
|
|
2804
2799
|
domain_id: void 0,
|
|
2805
2800
|
client: "Lego",
|
|
@@ -2816,13 +2811,13 @@ const Il = /* @__PURE__ */ R(jl, [["render", zl], ["__file", "/Users/Raven/Proje
|
|
|
2816
2811
|
path: [{ required: !0, message: t("base.placeholder.input base.path"), trigger: "blur" }],
|
|
2817
2812
|
email: [{ required: !0, message: t("base.placeholder.input base.email"), trigger: "blur" }],
|
|
2818
2813
|
encryption: [{ required: !0, message: t("base.placeholder.input config.encryption"), trigger: "blur" }]
|
|
2819
|
-
}, { modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k } = I(e,
|
|
2814
|
+
}, { modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k } = I(e, p, J);
|
|
2820
2815
|
l({
|
|
2821
2816
|
open: c,
|
|
2822
2817
|
modify: s,
|
|
2823
2818
|
formData: d
|
|
2824
2819
|
});
|
|
2825
|
-
const h = { emits: e, DEFAULT_DATA:
|
|
2820
|
+
const h = { emits: e, DEFAULT_DATA: p, rules: b, modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k, get T() {
|
|
2826
2821
|
return t;
|
|
2827
2822
|
}, get FormDialog() {
|
|
2828
2823
|
return K;
|
|
@@ -2830,9 +2825,9 @@ const Il = /* @__PURE__ */ R(jl, [["render", zl], ["__file", "/Users/Raven/Proje
|
|
|
2830
2825
|
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
2831
2826
|
}
|
|
2832
2827
|
});
|
|
2833
|
-
function Nl(g, l,
|
|
2828
|
+
function Nl(g, l, _, e, p, b) {
|
|
2834
2829
|
const n = m("el-form-item"), r = m("el-radio-button"), i = m("el-radio-group"), d = m("el-input"), u = m("el-form");
|
|
2835
|
-
return y(),
|
|
2830
|
+
return y(), x(e.FormDialog, {
|
|
2836
2831
|
modelValue: e.modal,
|
|
2837
2832
|
"onUpdate:modelValue": l[8] || (l[8] = (f) => e.modal = f),
|
|
2838
2833
|
title: e.title("ssl.ssl"),
|
|
@@ -2979,11 +2974,11 @@ function Nl(g, l, p, e, _, b) {
|
|
|
2979
2974
|
_: 1
|
|
2980
2975
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2981
2976
|
}
|
|
2982
|
-
const Te = /* @__PURE__ */ R(Kl, [["render", Nl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/SSLFormModal.vue"]]), Yl = /* @__PURE__ */
|
|
2977
|
+
const Te = /* @__PURE__ */ R(Kl, [["render", Nl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/SSLFormModal.vue"]]), Yl = /* @__PURE__ */ w({
|
|
2983
2978
|
__name: "DomainProviderFormModal",
|
|
2984
2979
|
emits: ["refresh"],
|
|
2985
|
-
setup(g, { expose: l, emit:
|
|
2986
|
-
const e =
|
|
2980
|
+
setup(g, { expose: l, emit: _ }) {
|
|
2981
|
+
const e = _, p = {
|
|
2987
2982
|
id: 0,
|
|
2988
2983
|
name: "",
|
|
2989
2984
|
en_name: "",
|
|
@@ -2998,12 +2993,12 @@ const Te = /* @__PURE__ */ R(Kl, [["render", Nl], ["__file", "/Users/Raven/Proje
|
|
|
2998
2993
|
key: { required: !0, message: t("base.placeholder.input base.key"), trigger: "blur" },
|
|
2999
2994
|
secret: { required: !0, message: t("base.placeholder.input config.secret"), trigger: "blur" },
|
|
3000
2995
|
end_point: { required: !0, message: t("base.placeholder.input config.endpoint"), trigger: "blur" }
|
|
3001
|
-
}, { modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k } = I(e,
|
|
2996
|
+
}, { modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k } = I(e, p, ae);
|
|
3002
2997
|
l({
|
|
3003
2998
|
open: c,
|
|
3004
2999
|
modify: s
|
|
3005
3000
|
});
|
|
3006
|
-
const h = { emits: e, DEFAULT_DATA:
|
|
3001
|
+
const h = { emits: e, DEFAULT_DATA: p, rules: b, modal: n, title: r, form: i, formData: d, requesting: u, executing: f, open: c, modify: s, submit: v, closed: k, get Translate() {
|
|
3007
3002
|
return t;
|
|
3008
3003
|
}, get FormDialog() {
|
|
3009
3004
|
return K;
|
|
@@ -3011,9 +3006,9 @@ const Te = /* @__PURE__ */ R(Kl, [["render", Nl], ["__file", "/Users/Raven/Proje
|
|
|
3011
3006
|
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
3012
3007
|
}
|
|
3013
3008
|
});
|
|
3014
|
-
function Gl(g, l,
|
|
3009
|
+
function Gl(g, l, _, e, p, b) {
|
|
3015
3010
|
const n = m("el-input"), r = m("el-form-item"), i = m("el-form");
|
|
3016
|
-
return y(),
|
|
3011
|
+
return y(), x(e.FormDialog, {
|
|
3017
3012
|
modelValue: e.modal,
|
|
3018
3013
|
"onUpdate:modelValue": l[6] || (l[6] = (d) => e.modal = d),
|
|
3019
3014
|
title: e.title("config.domain"),
|
|
@@ -3122,15 +3117,15 @@ function Gl(g, l, p, e, _, b) {
|
|
|
3122
3117
|
_: 1
|
|
3123
3118
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
3124
3119
|
}
|
|
3125
|
-
const Wl = /* @__PURE__ */ R(Yl, [["render", Gl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/DomainProviderFormModal.vue"]]), Hl = /* @__PURE__ */
|
|
3120
|
+
const Wl = /* @__PURE__ */ R(Yl, [["render", Gl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/DomainProviderFormModal.vue"]]), Hl = /* @__PURE__ */ w({
|
|
3126
3121
|
__name: "DomainProviderTableDrawer",
|
|
3127
3122
|
setup(g, {
|
|
3128
3123
|
expose: l
|
|
3129
3124
|
}) {
|
|
3130
3125
|
const {
|
|
3131
|
-
requesting:
|
|
3132
|
-
} = L(ae), e =
|
|
3133
|
-
tableRef:
|
|
3126
|
+
requesting: _
|
|
3127
|
+
} = L(ae), e = B(!1), {
|
|
3128
|
+
tableRef: p,
|
|
3134
3129
|
formModalRef: b,
|
|
3135
3130
|
refresh: n,
|
|
3136
3131
|
openFormModal: r,
|
|
@@ -3167,9 +3162,9 @@ const Wl = /* @__PURE__ */ R(Yl, [["render", Gl], ["__file", "/Users/Raven/Proje
|
|
|
3167
3162
|
open: u
|
|
3168
3163
|
});
|
|
3169
3164
|
const f = {
|
|
3170
|
-
requesting:
|
|
3165
|
+
requesting: _,
|
|
3171
3166
|
visible: e,
|
|
3172
|
-
tableRef:
|
|
3167
|
+
tableRef: p,
|
|
3173
3168
|
formModalRef: b,
|
|
3174
3169
|
refresh: n,
|
|
3175
3170
|
openFormModal: r,
|
|
@@ -3202,9 +3197,9 @@ const Wl = /* @__PURE__ */ R(Yl, [["render", Gl], ["__file", "/Users/Raven/Proje
|
|
|
3202
3197
|
}), f;
|
|
3203
3198
|
}
|
|
3204
3199
|
});
|
|
3205
|
-
function Ql(g, l,
|
|
3200
|
+
function Ql(g, l, _, e, p, b) {
|
|
3206
3201
|
const n = m("el-page-header");
|
|
3207
|
-
return y(),
|
|
3202
|
+
return y(), x(e.BasicDrawer, {
|
|
3208
3203
|
modelValue: e.visible,
|
|
3209
3204
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => e.visible = r),
|
|
3210
3205
|
width: "400px",
|
|
@@ -3246,15 +3241,15 @@ function Ql(g, l, p, e, _, b) {
|
|
|
3246
3241
|
_: 1
|
|
3247
3242
|
}, 8, ["modelValue"]);
|
|
3248
3243
|
}
|
|
3249
|
-
const Jl = /* @__PURE__ */ R(Hl, [["render", Ql], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/DomainProviderTableDrawer.vue"]]), Xl = /* @__PURE__ */
|
|
3244
|
+
const Jl = /* @__PURE__ */ R(Hl, [["render", Ql], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/DomainProviderTableDrawer.vue"]]), Xl = /* @__PURE__ */ w({
|
|
3250
3245
|
__name: "DomainTableDrawer",
|
|
3251
3246
|
setup(g, {
|
|
3252
3247
|
expose: l
|
|
3253
3248
|
}) {
|
|
3254
3249
|
const {
|
|
3255
|
-
requesting:
|
|
3256
|
-
} = L(le), e =
|
|
3257
|
-
tableRef:
|
|
3250
|
+
requesting: _
|
|
3251
|
+
} = L(le), e = B(!1), {
|
|
3252
|
+
tableRef: p,
|
|
3258
3253
|
formModalRef: b,
|
|
3259
3254
|
refresh: n,
|
|
3260
3255
|
openFormModal: r,
|
|
@@ -3321,9 +3316,9 @@ const Jl = /* @__PURE__ */ R(Hl, [["render", Ql], ["__file", "/Users/Raven/Proje
|
|
|
3321
3316
|
open: k
|
|
3322
3317
|
});
|
|
3323
3318
|
const h = {
|
|
3324
|
-
requesting:
|
|
3319
|
+
requesting: _,
|
|
3325
3320
|
visible: e,
|
|
3326
|
-
tableRef:
|
|
3321
|
+
tableRef: p,
|
|
3327
3322
|
formModalRef: b,
|
|
3328
3323
|
refresh: n,
|
|
3329
3324
|
openFormModal: r,
|
|
@@ -3363,9 +3358,9 @@ const Jl = /* @__PURE__ */ R(Hl, [["render", Ql], ["__file", "/Users/Raven/Proje
|
|
|
3363
3358
|
}), h;
|
|
3364
3359
|
}
|
|
3365
3360
|
});
|
|
3366
|
-
function Zl(g, l,
|
|
3361
|
+
function Zl(g, l, _, e, p, b) {
|
|
3367
3362
|
const n = m("el-space"), r = m("el-page-header");
|
|
3368
|
-
return y(),
|
|
3363
|
+
return y(), x(e.BasicDrawer, {
|
|
3369
3364
|
modelValue: e.visible,
|
|
3370
3365
|
"onUpdate:modelValue": l[0] || (l[0] = (i) => e.visible = i),
|
|
3371
3366
|
width: "600px",
|
|
@@ -3424,15 +3419,15 @@ function Zl(g, l, p, e, _, b) {
|
|
|
3424
3419
|
_: 1
|
|
3425
3420
|
}, 8, ["modelValue"]);
|
|
3426
3421
|
}
|
|
3427
|
-
const $l = /* @__PURE__ */ R(Xl, [["render", Zl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/DomainTableDrawer.vue"]]), ea = /* @__PURE__ */
|
|
3422
|
+
const $l = /* @__PURE__ */ R(Xl, [["render", Zl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/DomainTableDrawer.vue"]]), ea = /* @__PURE__ */ w({
|
|
3428
3423
|
__name: "SSLTableDrawer",
|
|
3429
3424
|
setup(g, {
|
|
3430
3425
|
expose: l
|
|
3431
3426
|
}) {
|
|
3432
3427
|
const {
|
|
3433
|
-
requesting:
|
|
3428
|
+
requesting: _,
|
|
3434
3429
|
executing: e
|
|
3435
|
-
} = L(J),
|
|
3430
|
+
} = L(J), p = B(0), b = B(!1), {
|
|
3436
3431
|
tableRef: n,
|
|
3437
3432
|
formModalRef: r,
|
|
3438
3433
|
refresh: i,
|
|
@@ -3492,16 +3487,16 @@ const $l = /* @__PURE__ */ R(Xl, [["render", Zl], ["__file", "/Users/Raven/Proje
|
|
|
3492
3487
|
icon: "icon-key",
|
|
3493
3488
|
t: "",
|
|
3494
3489
|
text: !0,
|
|
3495
|
-
disabled: e.value &&
|
|
3496
|
-
loading:
|
|
3490
|
+
disabled: e.value && p.value !== h.id,
|
|
3491
|
+
loading: p.value == h.id,
|
|
3497
3492
|
onClick: () => s(h.id)
|
|
3498
3493
|
}, null), a(te, {
|
|
3499
3494
|
size: "default",
|
|
3500
3495
|
icon: "icon-cloud-download",
|
|
3501
3496
|
t: "",
|
|
3502
3497
|
text: !0,
|
|
3503
|
-
disabled: e.value &&
|
|
3504
|
-
loading:
|
|
3498
|
+
disabled: e.value && p.value !== h.id,
|
|
3499
|
+
loading: p.value == h.id,
|
|
3505
3500
|
onClick: () => v(h)
|
|
3506
3501
|
}, null)]
|
|
3507
3502
|
})
|
|
@@ -3526,9 +3521,9 @@ const $l = /* @__PURE__ */ R(Xl, [["render", Zl], ["__file", "/Users/Raven/Proje
|
|
|
3526
3521
|
open: c
|
|
3527
3522
|
});
|
|
3528
3523
|
const k = {
|
|
3529
|
-
requesting:
|
|
3524
|
+
requesting: _,
|
|
3530
3525
|
executing: e,
|
|
3531
|
-
generating:
|
|
3526
|
+
generating: p,
|
|
3532
3527
|
visible: b,
|
|
3533
3528
|
tableRef: n,
|
|
3534
3529
|
formModalRef: r,
|
|
@@ -3565,9 +3560,9 @@ const $l = /* @__PURE__ */ R(Xl, [["render", Zl], ["__file", "/Users/Raven/Proje
|
|
|
3565
3560
|
}), k;
|
|
3566
3561
|
}
|
|
3567
3562
|
});
|
|
3568
|
-
function la(g, l,
|
|
3563
|
+
function la(g, l, _, e, p, b) {
|
|
3569
3564
|
const n = m("el-page-header");
|
|
3570
|
-
return y(),
|
|
3565
|
+
return y(), x(e.BasicDrawer, {
|
|
3571
3566
|
modelValue: e.visible,
|
|
3572
3567
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => e.visible = r),
|
|
3573
3568
|
width: "1000px",
|
|
@@ -3607,7 +3602,7 @@ function la(g, l, p, e, _, b) {
|
|
|
3607
3602
|
_: 1
|
|
3608
3603
|
}, 8, ["modelValue"]);
|
|
3609
3604
|
}
|
|
3610
|
-
const aa = /* @__PURE__ */ R(ea, [["render", la], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/SSLTableDrawer.vue"]]),
|
|
3605
|
+
const aa = /* @__PURE__ */ R(ea, [["render", la], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/SSLTableDrawer.vue"]]), _e = E.routineApi("SSLLog", "id"), oa = /* @__PURE__ */ w({
|
|
3611
3606
|
__name: "SSLLogTableDrawer",
|
|
3612
3607
|
props: {
|
|
3613
3608
|
ssl: {
|
|
@@ -3618,10 +3613,10 @@ const aa = /* @__PURE__ */ R(ea, [["render", la], ["__file", "/Users/Raven/Proje
|
|
|
3618
3613
|
setup(g, {
|
|
3619
3614
|
expose: l
|
|
3620
3615
|
}) {
|
|
3621
|
-
const
|
|
3616
|
+
const _ = g, {
|
|
3622
3617
|
requesting: e,
|
|
3623
|
-
executing:
|
|
3624
|
-
} = L([
|
|
3618
|
+
executing: p
|
|
3619
|
+
} = L([_e, J]), b = B(!1), {
|
|
3625
3620
|
tableRef: n,
|
|
3626
3621
|
refresh: r
|
|
3627
3622
|
} = A(), i = [{
|
|
@@ -3645,25 +3640,25 @@ const aa = /* @__PURE__ */ R(ea, [["render", la], ["__file", "/Users/Raven/Proje
|
|
|
3645
3640
|
};
|
|
3646
3641
|
function u() {
|
|
3647
3642
|
J.gen({
|
|
3648
|
-
id:
|
|
3643
|
+
id: _.ssl.id
|
|
3649
3644
|
}).then((s) => {
|
|
3650
3645
|
console.warn("Res:", s);
|
|
3651
3646
|
});
|
|
3652
3647
|
}
|
|
3653
3648
|
function f() {
|
|
3654
|
-
const s = ge.getDownloadUrl(
|
|
3649
|
+
const s = ge.getDownloadUrl(_.ssl.path + ".zip");
|
|
3655
3650
|
fetch(s).then((v) => v.blob()).then((v) => {
|
|
3656
3651
|
let k = URL.createObjectURL(v), h = document.createElement("a");
|
|
3657
|
-
h.style.display = "none", h.href = k, h.download =
|
|
3652
|
+
h.style.display = "none", h.href = k, h.download = _.ssl.name + ".zip", h.click(), URL.revokeObjectURL(v);
|
|
3658
3653
|
});
|
|
3659
3654
|
}
|
|
3660
3655
|
l({
|
|
3661
3656
|
open: d
|
|
3662
3657
|
});
|
|
3663
3658
|
const c = {
|
|
3664
|
-
props:
|
|
3659
|
+
props: _,
|
|
3665
3660
|
requesting: e,
|
|
3666
|
-
executing:
|
|
3661
|
+
executing: p,
|
|
3667
3662
|
visible: b,
|
|
3668
3663
|
tableRef: n,
|
|
3669
3664
|
refresh: r,
|
|
@@ -3678,7 +3673,7 @@ const aa = /* @__PURE__ */ R(ea, [["render", la], ["__file", "/Users/Raven/Proje
|
|
|
3678
3673
|
return t;
|
|
3679
3674
|
},
|
|
3680
3675
|
get $api() {
|
|
3681
|
-
return
|
|
3676
|
+
return _e;
|
|
3682
3677
|
},
|
|
3683
3678
|
get BasicDrawer() {
|
|
3684
3679
|
return ue;
|
|
@@ -3687,7 +3682,7 @@ const aa = /* @__PURE__ */ R(ea, [["render", la], ["__file", "/Users/Raven/Proje
|
|
|
3687
3682
|
return F;
|
|
3688
3683
|
},
|
|
3689
3684
|
get ProTable() {
|
|
3690
|
-
return
|
|
3685
|
+
return re;
|
|
3691
3686
|
}
|
|
3692
3687
|
};
|
|
3693
3688
|
return Object.defineProperty(c, "__isScriptSetup", {
|
|
@@ -3696,9 +3691,9 @@ const aa = /* @__PURE__ */ R(ea, [["render", la], ["__file", "/Users/Raven/Proje
|
|
|
3696
3691
|
}), c;
|
|
3697
3692
|
}
|
|
3698
3693
|
});
|
|
3699
|
-
function ra(g, l,
|
|
3694
|
+
function ra(g, l, _, e, p, b) {
|
|
3700
3695
|
const n = m("el-page-header");
|
|
3701
|
-
return y(),
|
|
3696
|
+
return y(), x(e.BasicDrawer, {
|
|
3702
3697
|
modelValue: e.visible,
|
|
3703
3698
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => e.visible = r),
|
|
3704
3699
|
width: "600px",
|
|
@@ -3751,15 +3746,15 @@ function ra(g, l, p, e, _, b) {
|
|
|
3751
3746
|
_: 1
|
|
3752
3747
|
}, 8, ["modelValue"]);
|
|
3753
3748
|
}
|
|
3754
|
-
const na = /* @__PURE__ */ R(oa, [["render", ra], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/SSLLogTableDrawer.vue"]]), ta = /* @__PURE__ */
|
|
3749
|
+
const na = /* @__PURE__ */ R(oa, [["render", ra], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/site/components/SSLLogTableDrawer.vue"]]), ta = /* @__PURE__ */ w({
|
|
3755
3750
|
__name: "index",
|
|
3756
3751
|
setup(g, {
|
|
3757
3752
|
expose: l
|
|
3758
3753
|
}) {
|
|
3759
3754
|
l();
|
|
3760
|
-
const
|
|
3755
|
+
const _ = B(), {
|
|
3761
3756
|
requesting: e,
|
|
3762
|
-
executing:
|
|
3757
|
+
executing: p
|
|
3763
3758
|
} = L(Q), {
|
|
3764
3759
|
tableRef: b,
|
|
3765
3760
|
formModalRef: n,
|
|
@@ -3797,7 +3792,7 @@ const na = /* @__PURE__ */ R(oa, [["render", ra], ["__file", "/Users/Raven/Proje
|
|
|
3797
3792
|
type: "copy"
|
|
3798
3793
|
}, {
|
|
3799
3794
|
prop: "expired_at",
|
|
3800
|
-
label: t("
|
|
3795
|
+
label: t("base.expired_at"),
|
|
3801
3796
|
align: "center",
|
|
3802
3797
|
width: 140,
|
|
3803
3798
|
cellRenderer: ({
|
|
@@ -3805,15 +3800,15 @@ const na = /* @__PURE__ */ R(oa, [["render", ra], ["__file", "/Users/Raven/Proje
|
|
|
3805
3800
|
}) => a(m("el-space"), null, {
|
|
3806
3801
|
default: () => [a(m("el-text"), null, {
|
|
3807
3802
|
default: () => {
|
|
3808
|
-
var
|
|
3809
|
-
return [(
|
|
3803
|
+
var P;
|
|
3804
|
+
return [(P = U.ssl) == null ? void 0 : P.renewal_days, G(" 天")];
|
|
3810
3805
|
}
|
|
3811
3806
|
}), a(m("el-button"), {
|
|
3812
3807
|
size: "small",
|
|
3813
3808
|
type: "primary",
|
|
3814
3809
|
text: !0,
|
|
3815
|
-
onClick: (
|
|
3816
|
-
|
|
3810
|
+
onClick: (P) => {
|
|
3811
|
+
P.stopPropagation(), U.ssl && U.ssl.id && (_.value = U.ssl, h());
|
|
3817
3812
|
}
|
|
3818
3813
|
}, {
|
|
3819
3814
|
default: () => [a("span", {
|
|
@@ -3845,23 +3840,23 @@ const na = /* @__PURE__ */ R(oa, [["render", ra], ["__file", "/Users/Raven/Proje
|
|
|
3845
3840
|
type: "primary",
|
|
3846
3841
|
size: "small",
|
|
3847
3842
|
link: !0,
|
|
3848
|
-
disabled:
|
|
3849
|
-
loading: D.value == U.id &&
|
|
3843
|
+
disabled: p.value,
|
|
3844
|
+
loading: D.value == U.id && p.value,
|
|
3850
3845
|
onClick: () => V(U)
|
|
3851
3846
|
}, null)]
|
|
3852
3847
|
})
|
|
3853
|
-
}], D =
|
|
3848
|
+
}], D = B(0), V = (U) => {
|
|
3854
3849
|
D.value = U.id, Q.check({
|
|
3855
3850
|
id: U.id
|
|
3856
|
-
}).then((
|
|
3857
|
-
|
|
3851
|
+
}).then((P) => {
|
|
3852
|
+
P.data && (Ae(P), i());
|
|
3858
3853
|
}).finally(() => {
|
|
3859
3854
|
D.value = 0;
|
|
3860
3855
|
});
|
|
3861
3856
|
}, S = {
|
|
3862
|
-
selectedSSL:
|
|
3857
|
+
selectedSSL: _,
|
|
3863
3858
|
requesting: e,
|
|
3864
|
-
executing:
|
|
3859
|
+
executing: p,
|
|
3865
3860
|
tableRef: b,
|
|
3866
3861
|
formModalRef: n,
|
|
3867
3862
|
reset: r,
|
|
@@ -3906,9 +3901,9 @@ const na = /* @__PURE__ */ R(oa, [["render", ra], ["__file", "/Users/Raven/Proje
|
|
|
3906
3901
|
}), S;
|
|
3907
3902
|
}
|
|
3908
3903
|
});
|
|
3909
|
-
function da(g, l,
|
|
3904
|
+
function da(g, l, _, e, p, b) {
|
|
3910
3905
|
const n = m("el-space"), r = m("el-page-header"), i = m("el-card");
|
|
3911
|
-
return y(),
|
|
3906
|
+
return y(), x(i, {
|
|
3912
3907
|
"body-style": { padding: "12px", height: "450px" },
|
|
3913
3908
|
"body-class": "flex-1",
|
|
3914
3909
|
class: "config-card"
|
|
@@ -3973,13 +3968,13 @@ const ia = /* @__PURE__ */ R(ta, [["render", da], ["__scopeId", "data-v-e469b4f1
|
|
|
3973
3968
|
request: "request",
|
|
3974
3969
|
error: "error",
|
|
3975
3970
|
sql: "SQL"
|
|
3976
|
-
}, X = E.routineApi("log", "id", ua), ma = /* @__PURE__ */
|
|
3971
|
+
}, X = E.routineApi("log", "id", ua), ma = /* @__PURE__ */ w({
|
|
3977
3972
|
__name: "index",
|
|
3978
3973
|
setup(g, {
|
|
3979
3974
|
expose: l
|
|
3980
3975
|
}) {
|
|
3981
3976
|
l();
|
|
3982
|
-
const
|
|
3977
|
+
const _ = {
|
|
3983
3978
|
dates: [M.getCurrentHour().format(M.DATE_VALUE_FORMAT), M.getCurrentHour(1).format(M.DATE_VALUE_FORMAT)]
|
|
3984
3979
|
}, e = [{
|
|
3985
3980
|
label: t("base.sort"),
|
|
@@ -3998,16 +3993,16 @@ const ia = /* @__PURE__ */ R(ta, [["render", da], ["__scopeId", "data-v-e469b4f1
|
|
|
3998
3993
|
align: "left",
|
|
3999
3994
|
width: 200
|
|
4000
3995
|
}], {
|
|
4001
|
-
requesting:
|
|
3996
|
+
requesting: p
|
|
4002
3997
|
} = L(X), {
|
|
4003
3998
|
tableRef: b,
|
|
4004
3999
|
keyword: n,
|
|
4005
4000
|
search: r,
|
|
4006
4001
|
reset: i
|
|
4007
|
-
} = A(
|
|
4008
|
-
DEFAULT_KEYWORD:
|
|
4002
|
+
} = A(_), d = {
|
|
4003
|
+
DEFAULT_KEYWORD: _,
|
|
4009
4004
|
columns: e,
|
|
4010
|
-
requesting:
|
|
4005
|
+
requesting: p,
|
|
4011
4006
|
tableRef: b,
|
|
4012
4007
|
keyword: n,
|
|
4013
4008
|
search: r,
|
|
@@ -4037,9 +4032,9 @@ const ia = /* @__PURE__ */ R(ta, [["render", da], ["__scopeId", "data-v-e469b4f1
|
|
|
4037
4032
|
}), d;
|
|
4038
4033
|
}
|
|
4039
4034
|
});
|
|
4040
|
-
function ca(g, l,
|
|
4035
|
+
function ca(g, l, _, e, p, b) {
|
|
4041
4036
|
const n = m("el-date-picker"), r = m("el-space"), i = m("el-page-header"), d = m("el-card");
|
|
4042
|
-
return y(),
|
|
4037
|
+
return y(), x(d, {
|
|
4043
4038
|
class: "basic-card flex-full",
|
|
4044
4039
|
"body-class": "flex-1"
|
|
4045
4040
|
}, {
|
|
@@ -4091,16 +4086,16 @@ function ca(g, l, p, e, _, b) {
|
|
|
4091
4086
|
_: 1
|
|
4092
4087
|
});
|
|
4093
4088
|
}
|
|
4094
|
-
const fa = /* @__PURE__ */ R(ma, [["render", ca], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/log/request/index.vue"]]),
|
|
4089
|
+
const fa = /* @__PURE__ */ R(ma, [["render", ca], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/log/request/index.vue"]]), pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4095
4090
|
__proto__: null,
|
|
4096
4091
|
default: fa
|
|
4097
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4092
|
+
}, Symbol.toStringTag, { value: "Module" })), _a = /* @__PURE__ */ w({
|
|
4098
4093
|
__name: "index",
|
|
4099
4094
|
setup(g, {
|
|
4100
4095
|
expose: l
|
|
4101
4096
|
}) {
|
|
4102
4097
|
l();
|
|
4103
|
-
const
|
|
4098
|
+
const _ = {
|
|
4104
4099
|
dates: [M.getCurrentDate(-7).format(M.DATE_FORMAT), M.getCurrentDate(0).format(M.DATE_FORMAT)]
|
|
4105
4100
|
}, e = [{
|
|
4106
4101
|
label: t("base.sort"),
|
|
@@ -4119,16 +4114,16 @@ const fa = /* @__PURE__ */ R(ma, [["render", ca], ["__file", "/Users/Raven/Proje
|
|
|
4119
4114
|
align: "left",
|
|
4120
4115
|
width: 200
|
|
4121
4116
|
}], {
|
|
4122
|
-
requesting:
|
|
4117
|
+
requesting: p
|
|
4123
4118
|
} = L(X), {
|
|
4124
4119
|
tableRef: b,
|
|
4125
4120
|
keyword: n,
|
|
4126
4121
|
search: r,
|
|
4127
4122
|
reset: i
|
|
4128
|
-
} = A(
|
|
4129
|
-
DEFAULT_KEYWORD:
|
|
4123
|
+
} = A(_), d = {
|
|
4124
|
+
DEFAULT_KEYWORD: _,
|
|
4130
4125
|
columns: e,
|
|
4131
|
-
requesting:
|
|
4126
|
+
requesting: p,
|
|
4132
4127
|
tableRef: b,
|
|
4133
4128
|
keyword: n,
|
|
4134
4129
|
search: r,
|
|
@@ -4158,9 +4153,9 @@ const fa = /* @__PURE__ */ R(ma, [["render", ca], ["__file", "/Users/Raven/Proje
|
|
|
4158
4153
|
}), d;
|
|
4159
4154
|
}
|
|
4160
4155
|
});
|
|
4161
|
-
function ba(g, l,
|
|
4156
|
+
function ba(g, l, _, e, p, b) {
|
|
4162
4157
|
const n = m("el-date-picker"), r = m("el-space"), i = m("el-page-header"), d = m("el-card");
|
|
4163
|
-
return y(),
|
|
4158
|
+
return y(), x(d, {
|
|
4164
4159
|
class: "basic-card flex-full",
|
|
4165
4160
|
"body-class": "flex-1"
|
|
4166
4161
|
}, {
|
|
@@ -4212,16 +4207,16 @@ function ba(g, l, p, e, _, b) {
|
|
|
4212
4207
|
_: 1
|
|
4213
4208
|
});
|
|
4214
4209
|
}
|
|
4215
|
-
const ga = /* @__PURE__ */ R(
|
|
4210
|
+
const ga = /* @__PURE__ */ R(_a, [["render", ba], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/log/error/index.vue"]]), ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4216
4211
|
__proto__: null,
|
|
4217
4212
|
default: ga
|
|
4218
|
-
}, Symbol.toStringTag, { value: "Module" })), va = /* @__PURE__ */
|
|
4213
|
+
}, Symbol.toStringTag, { value: "Module" })), va = /* @__PURE__ */ w({
|
|
4219
4214
|
__name: "index",
|
|
4220
4215
|
setup(g, {
|
|
4221
4216
|
expose: l
|
|
4222
4217
|
}) {
|
|
4223
4218
|
l();
|
|
4224
|
-
const
|
|
4219
|
+
const _ = {
|
|
4225
4220
|
dates: [M.getCurrentDate(-7).format(M.DATE_FORMAT), M.getCurrentDate().format(M.DATE_FORMAT)]
|
|
4226
4221
|
}, e = [{
|
|
4227
4222
|
label: t("base.sort"),
|
|
@@ -4240,16 +4235,16 @@ const ga = /* @__PURE__ */ R(pa, [["render", ba], ["__file", "/Users/Raven/Proje
|
|
|
4240
4235
|
align: "left",
|
|
4241
4236
|
width: 200
|
|
4242
4237
|
}], {
|
|
4243
|
-
requesting:
|
|
4238
|
+
requesting: p
|
|
4244
4239
|
} = L(X), {
|
|
4245
4240
|
tableRef: b,
|
|
4246
4241
|
keyword: n,
|
|
4247
4242
|
search: r,
|
|
4248
4243
|
reset: i
|
|
4249
|
-
} = A(
|
|
4250
|
-
DEFAULT_KEYWORD:
|
|
4244
|
+
} = A(_), d = {
|
|
4245
|
+
DEFAULT_KEYWORD: _,
|
|
4251
4246
|
columns: e,
|
|
4252
|
-
requesting:
|
|
4247
|
+
requesting: p,
|
|
4253
4248
|
tableRef: b,
|
|
4254
4249
|
keyword: n,
|
|
4255
4250
|
search: r,
|
|
@@ -4279,9 +4274,9 @@ const ga = /* @__PURE__ */ R(pa, [["render", ba], ["__file", "/Users/Raven/Proje
|
|
|
4279
4274
|
}), d;
|
|
4280
4275
|
}
|
|
4281
4276
|
});
|
|
4282
|
-
function Ta(g, l,
|
|
4277
|
+
function Ta(g, l, _, e, p, b) {
|
|
4283
4278
|
const n = m("el-date-picker"), r = m("el-space"), i = m("el-page-header"), d = m("el-card");
|
|
4284
|
-
return y(),
|
|
4279
|
+
return y(), x(d, {
|
|
4285
4280
|
class: "basic-card flex-full",
|
|
4286
4281
|
"body-class": "flex-1"
|
|
4287
4282
|
}, {
|
|
@@ -4336,7 +4331,7 @@ function Ta(g, l, p, e, _, b) {
|
|
|
4336
4331
|
const Da = /* @__PURE__ */ R(va, [["render", Ta], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/log/sql/index.vue"]]), Va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4337
4332
|
__proto__: null,
|
|
4338
4333
|
default: Da
|
|
4339
|
-
}, Symbol.toStringTag, { value: "Module" })), ya = () => Promise.resolve().then(() =>
|
|
4334
|
+
}, Symbol.toStringTag, { value: "Module" })), ya = () => Promise.resolve().then(() => pa), ka = () => Promise.resolve().then(() => ha), xa = () => Promise.resolve().then(() => Va), Sa = [
|
|
4340
4335
|
{
|
|
4341
4336
|
path: qe,
|
|
4342
4337
|
name: "RequestLog",
|
|
@@ -4356,7 +4351,7 @@ const Da = /* @__PURE__ */ R(va, [["render", Ta], ["__file", "/Users/Raven/Proje
|
|
|
4356
4351
|
{
|
|
4357
4352
|
path: Oe,
|
|
4358
4353
|
name: "SqlLog",
|
|
4359
|
-
component:
|
|
4354
|
+
component: xa,
|
|
4360
4355
|
meta: {
|
|
4361
4356
|
title: t("menu.SqlLog")
|
|
4362
4357
|
}
|
|
@@ -4366,22 +4361,22 @@ const Da = /* @__PURE__ */ R(va, [["render", Ta], ["__file", "/Users/Raven/Proje
|
|
|
4366
4361
|
Reflect.ownKeys(g._context.provides).some((l) => String(l) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app.", Reflect.ownKeys(g._context.provides));
|
|
4367
4362
|
},
|
|
4368
4363
|
version: "__VERSION__"
|
|
4369
|
-
}, Ma = /* @__PURE__ */ Object.assign({ "./views/admin/index.vue":
|
|
4364
|
+
}, Ma = /* @__PURE__ */ Object.assign({ "./views/admin/index.vue": () => Promise.resolve().then(() => wl), "./views/language/index.vue": () => Promise.resolve().then(() => vl), "./views/menu/index.vue": () => Promise.resolve().then(() => el), "./views/role/index.vue": () => Promise.resolve().then(() => cl), "./views/site/index.vue": () => Promise.resolve().then(() => sa) });
|
|
4370
4365
|
export {
|
|
4371
|
-
|
|
4366
|
+
xl as AdminsPage,
|
|
4372
4367
|
Ol as DomainProviderSelect,
|
|
4373
4368
|
ve as DomainSelect,
|
|
4374
4369
|
ga as ErrorLogsPage,
|
|
4375
|
-
|
|
4370
|
+
hl as LanguagesPage,
|
|
4376
4371
|
Sa as LogRoutes,
|
|
4377
|
-
|
|
4378
|
-
|
|
4372
|
+
We as MenuSelect,
|
|
4373
|
+
$e as MenusPage,
|
|
4379
4374
|
fa as RequestLogsPage,
|
|
4380
|
-
|
|
4375
|
+
ml as RolesPage,
|
|
4381
4376
|
Da as SQLLogsPage,
|
|
4382
4377
|
ia as SitePage,
|
|
4383
4378
|
Il as SiteSelect,
|
|
4384
|
-
|
|
4379
|
+
ze as TopMenuSelect,
|
|
4385
4380
|
Ma as basicModules,
|
|
4386
4381
|
Ua as default
|
|
4387
4382
|
};
|