auto-vue-basic 0.0.38 → 0.0.40
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 +1729 -1421
- package/dist/auto-vue-basic.umd.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { createAutoApi as
|
3
|
-
const
|
1
|
+
import { defineComponent as U, ref as N, resolveComponent as i, createBlock as x, openBlock as T, withCtx as o, createVNode as l, createTextVNode as E, createElementBlock as C, Fragment as q, renderList as M, toDisplayString as K, withKeys as Y, createElementVNode as B, toRef as le, normalizeClass as ne, isVNode as ue, reactive as ie, onMounted as me, watch as ce, nextTick as fe, createCommentVNode as pe } from "vue";
|
2
|
+
import { createAutoApi as G, useForm as L, Translate as s, RulesUtils as _e, FormDialog as I, ModifyButton as W, useTablePage as P, useLoading as O, ProTable as H, SearchButton as J, RefreshButton as j, OpenButton as Q, DEFAULT_PAGE_KEY as X, DEFAULT_STATUS_KEY as te, AutoApiUtils as be, useSelect as ae, InlineRefreshButton as de, DEFAULT_REMOVE_KEY as ge } from "auto-vue-manual";
|
3
|
+
const ee = G("admin", {}, "key"), z = G("role", {}, "key"), he = /* @__PURE__ */ U({
|
4
4
|
__name: "info",
|
5
5
|
emits: ["refresh"],
|
6
|
-
setup(
|
7
|
-
const
|
6
|
+
setup(h, { expose: a, emit: f }) {
|
7
|
+
const e = f, p = {
|
8
8
|
key: "",
|
9
9
|
username: "",
|
10
10
|
password: "",
|
@@ -13,615 +13,731 @@ const re = Z("admin", {}, "key"), J = Z("role", {}, "key"), xe = /* @__PURE__ */
|
|
13
13
|
language: "zh-CN",
|
14
14
|
remark: "",
|
15
15
|
roles: []
|
16
|
-
}, { modal:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
),
|
16
|
+
}, { modal: g, title: t, form: r, formData: m, requesting: _, executing: c, open: u, modify: d, submit: n, closed: v } = L(
|
17
|
+
e,
|
18
|
+
p,
|
19
|
+
ee
|
20
|
+
), w = {
|
21
21
|
username: [
|
22
|
-
{ required: !0, message:
|
22
|
+
{ required: !0, message: s("base.placeholder.input base.username"), trigger: "blur" }
|
23
23
|
],
|
24
24
|
phone: [
|
25
|
-
{ required: !0, validator:
|
25
|
+
{ required: !0, validator: _e.phoneRule, message: s("base.placeholder.input base.phone"), trigger: "blur" }
|
26
26
|
],
|
27
27
|
password: [
|
28
|
-
{ required: !1, message:
|
28
|
+
{ required: !1, message: s("base.placeholder.input base.password"), trigger: "blur" }
|
29
29
|
],
|
30
30
|
email: [
|
31
|
-
{ required: !0, message:
|
31
|
+
{ required: !0, message: s("base.placeholder.input base.email"), trigger: "blur" }
|
32
32
|
],
|
33
33
|
language: [
|
34
|
-
{ required: !0, message:
|
34
|
+
{ required: !0, message: s("base.placeholder.select base.language"), trigger: "change" }
|
35
35
|
],
|
36
36
|
roles: [
|
37
|
-
{ required: !0, type: "Array", message:
|
37
|
+
{ required: !0, type: "Array", message: s("base.placeholder.select base.roles"), trigger: "change" }
|
38
38
|
]
|
39
|
-
},
|
40
|
-
const
|
41
|
-
|
39
|
+
}, D = N([]), b = async () => {
|
40
|
+
const k = await z.list();
|
41
|
+
D.value = Array.isArray(k == null ? void 0 : k.data) ? k.data : [];
|
42
|
+
}, V = async (k) => {
|
43
|
+
D.value.length || await b(), k ? d({ key: k }) : u();
|
42
44
|
};
|
43
|
-
|
44
|
-
openOrModify:
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
return
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
45
|
+
a({
|
46
|
+
openOrModify: V
|
47
|
+
});
|
48
|
+
const y = { emits: e, DEFAULT_DATA: p, modal: g, title: t, form: r, formData: m, requesting: _, executing: c, open: u, modify: d, submit: n, closed: v, rules: w, rolesList: D, getRolesList: b, openOrModify: V, get Translate() {
|
49
|
+
return s;
|
50
|
+
}, get FormDialog() {
|
51
|
+
return I;
|
52
|
+
} };
|
53
|
+
return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
|
54
|
+
}
|
55
|
+
}), R = (h, a) => {
|
56
|
+
const f = h.__vccOpts || h;
|
57
|
+
for (const [e, p] of a)
|
58
|
+
f[e] = p;
|
59
|
+
return f;
|
60
|
+
};
|
61
|
+
function Ve(h, a, f, e, p, g) {
|
62
|
+
const t = i("el-input"), r = i("el-form-item"), m = i("el-radio-button"), _ = i("el-radio-group"), c = i("el-checkbox"), u = i("el-checkbox-group"), d = i("el-form");
|
63
|
+
return T(), x(e.FormDialog, {
|
64
|
+
modelValue: e.modal,
|
65
|
+
"onUpdate:modelValue": a[7] || (a[7] = (n) => e.modal = n),
|
66
|
+
title: e.title(),
|
67
|
+
width: "600px",
|
68
|
+
executing: e.executing,
|
69
|
+
onClosed: e.closed,
|
70
|
+
onSubmit: e.submit
|
71
|
+
}, {
|
72
|
+
default: o(() => [
|
73
|
+
l(d, {
|
74
|
+
ref: "form",
|
75
|
+
model: e.formData,
|
76
|
+
"label-width": "auto",
|
77
|
+
rules: e.rules,
|
78
|
+
disabled: e.requesting || e.executing
|
57
79
|
}, {
|
58
|
-
default:
|
59
|
-
l(
|
60
|
-
|
61
|
-
|
62
|
-
model: e(i),
|
63
|
-
"label-width": "auto",
|
64
|
-
rules: S,
|
65
|
-
disabled: e(n) || e(f)
|
80
|
+
default: o(() => [
|
81
|
+
l(r, {
|
82
|
+
label: e.Translate("base.username"),
|
83
|
+
prop: "username"
|
66
84
|
}, {
|
67
|
-
default:
|
68
|
-
l(
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
l(
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
l(
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
l(
|
126
|
-
|
127
|
-
|
85
|
+
default: o(() => [
|
86
|
+
l(t, {
|
87
|
+
modelValue: e.formData.username,
|
88
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => e.formData.username = n),
|
89
|
+
placeholder: e.Translate("base.placeholder.input"),
|
90
|
+
autocomplete: "off"
|
91
|
+
}, null, 8, ["modelValue", "placeholder"])
|
92
|
+
]),
|
93
|
+
_: 1
|
94
|
+
}, 8, ["label"]),
|
95
|
+
l(r, {
|
96
|
+
label: e.Translate("base.phone"),
|
97
|
+
prop: "phone"
|
98
|
+
}, {
|
99
|
+
default: o(() => [
|
100
|
+
l(t, {
|
101
|
+
modelValue: e.formData.phone,
|
102
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => e.formData.phone = n),
|
103
|
+
placeholder: e.Translate("base.placeholder.input"),
|
104
|
+
autocomplete: "off"
|
105
|
+
}, null, 8, ["modelValue", "placeholder"])
|
106
|
+
]),
|
107
|
+
_: 1
|
108
|
+
}, 8, ["label"]),
|
109
|
+
l(r, {
|
110
|
+
label: e.Translate("base.password"),
|
111
|
+
prop: "password",
|
112
|
+
required: !e.formData.key
|
113
|
+
}, {
|
114
|
+
default: o(() => [
|
115
|
+
l(t, {
|
116
|
+
modelValue: e.formData.password,
|
117
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => e.formData.password = n),
|
118
|
+
placeholder: e.Translate("base.placeholder.input"),
|
119
|
+
autocomplete: "off"
|
120
|
+
}, null, 8, ["modelValue", "placeholder"])
|
121
|
+
]),
|
122
|
+
_: 1
|
123
|
+
}, 8, ["label", "required"]),
|
124
|
+
l(r, {
|
125
|
+
label: e.Translate("base.email"),
|
126
|
+
prop: "email"
|
127
|
+
}, {
|
128
|
+
default: o(() => [
|
129
|
+
l(t, {
|
130
|
+
modelValue: e.formData.email,
|
131
|
+
"onUpdate:modelValue": a[3] || (a[3] = (n) => e.formData.email = n),
|
132
|
+
placeholder: e.Translate("base.placeholder.input"),
|
133
|
+
autocomplete: "off"
|
134
|
+
}, null, 8, ["modelValue", "placeholder"])
|
135
|
+
]),
|
136
|
+
_: 1
|
137
|
+
}, 8, ["label"]),
|
138
|
+
l(r, {
|
139
|
+
label: e.Translate("base.language"),
|
140
|
+
prop: "language"
|
141
|
+
}, {
|
142
|
+
default: o(() => [
|
143
|
+
l(_, {
|
144
|
+
modelValue: e.formData.language,
|
145
|
+
"onUpdate:modelValue": a[4] || (a[4] = (n) => e.formData.language = n)
|
128
146
|
}, {
|
129
|
-
default:
|
130
|
-
l(
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
N("en-US")
|
145
|
-
])),
|
146
|
-
_: 1,
|
147
|
-
__: [9]
|
148
|
-
})
|
149
|
-
]),
|
150
|
-
_: 1
|
151
|
-
}, 8, ["modelValue"])
|
147
|
+
default: o(() => [
|
148
|
+
l(m, { value: "zh-CN" }, {
|
149
|
+
default: o(() => a[8] || (a[8] = [
|
150
|
+
E("zh-CN")
|
151
|
+
])),
|
152
|
+
_: 1,
|
153
|
+
__: [8]
|
154
|
+
}),
|
155
|
+
l(m, { value: "en-US" }, {
|
156
|
+
default: o(() => a[9] || (a[9] = [
|
157
|
+
E("en-US")
|
158
|
+
])),
|
159
|
+
_: 1,
|
160
|
+
__: [9]
|
161
|
+
})
|
152
162
|
]),
|
153
163
|
_: 1
|
154
|
-
}, 8, ["
|
155
|
-
|
156
|
-
|
157
|
-
|
164
|
+
}, 8, ["modelValue"])
|
165
|
+
]),
|
166
|
+
_: 1
|
167
|
+
}, 8, ["label"]),
|
168
|
+
l(r, {
|
169
|
+
label: e.Translate("base.roles"),
|
170
|
+
prop: "roles"
|
171
|
+
}, {
|
172
|
+
default: o(() => [
|
173
|
+
l(u, {
|
174
|
+
modelValue: e.formData.roles,
|
175
|
+
"onUpdate:modelValue": a[5] || (a[5] = (n) => e.formData.roles = n)
|
158
176
|
}, {
|
159
|
-
default:
|
160
|
-
|
161
|
-
|
162
|
-
|
177
|
+
default: o(() => [
|
178
|
+
(T(!0), C(q, null, M(e.rolesList, (n) => (T(), x(c, {
|
179
|
+
key: n.key,
|
180
|
+
value: n.key
|
163
181
|
}, {
|
164
|
-
default:
|
165
|
-
(
|
166
|
-
key: E.key,
|
167
|
-
value: E.key
|
168
|
-
}, {
|
169
|
-
default: t(() => [
|
170
|
-
N(ne(E.translate), 1)
|
171
|
-
]),
|
172
|
-
_: 2
|
173
|
-
}, 1032, ["value"]))), 128))
|
182
|
+
default: o(() => [
|
183
|
+
E(K(n.translate), 1)
|
174
184
|
]),
|
175
|
-
_:
|
176
|
-
},
|
177
|
-
]),
|
178
|
-
_: 1
|
179
|
-
}, 8, ["label"]),
|
180
|
-
l(A, {
|
181
|
-
label: e(a)("base.remark"),
|
182
|
-
prop: "remark"
|
183
|
-
}, {
|
184
|
-
default: t(() => [
|
185
|
-
l(x, {
|
186
|
-
modelValue: e(i).remark,
|
187
|
-
"onUpdate:modelValue": r[6] || (r[6] = (E) => e(i).remark = E),
|
188
|
-
placeholder: e(a)("base.placeholder.input")
|
189
|
-
}, null, 8, ["modelValue", "placeholder"])
|
185
|
+
_: 2
|
186
|
+
}, 1032, ["value"]))), 128))
|
190
187
|
]),
|
191
188
|
_: 1
|
192
|
-
}, 8, ["
|
189
|
+
}, 8, ["modelValue"])
|
193
190
|
]),
|
194
191
|
_: 1
|
195
|
-
}, 8, ["
|
192
|
+
}, 8, ["label"]),
|
193
|
+
l(r, {
|
194
|
+
label: e.Translate("base.remark"),
|
195
|
+
prop: "remark"
|
196
|
+
}, {
|
197
|
+
default: o(() => [
|
198
|
+
l(t, {
|
199
|
+
modelValue: e.formData.remark,
|
200
|
+
"onUpdate:modelValue": a[6] || (a[6] = (n) => e.formData.remark = n),
|
201
|
+
placeholder: e.Translate("base.placeholder.input")
|
202
|
+
}, null, 8, ["modelValue", "placeholder"])
|
203
|
+
]),
|
204
|
+
_: 1
|
205
|
+
}, 8, ["label"])
|
196
206
|
]),
|
197
207
|
_: 1
|
198
|
-
}, 8, ["
|
199
|
-
|
200
|
-
|
201
|
-
}
|
208
|
+
}, 8, ["model", "disabled"])
|
209
|
+
]),
|
210
|
+
_: 1
|
211
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
212
|
+
}
|
213
|
+
const ye = /* @__PURE__ */ R(he, [["render", Ve], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/admin/components/info.vue"]]), ke = /* @__PURE__ */ U({
|
202
214
|
__name: "index",
|
203
|
-
setup(
|
204
|
-
|
215
|
+
setup(h, {
|
216
|
+
expose: a
|
217
|
+
}) {
|
218
|
+
a();
|
219
|
+
const f = {
|
205
220
|
keyword: ""
|
206
|
-
},
|
207
|
-
label:
|
221
|
+
}, e = [{
|
222
|
+
label: s("base.avatar"),
|
208
223
|
prop: "avatar",
|
209
224
|
width: 60,
|
210
225
|
render: ({
|
211
|
-
row:
|
212
|
-
}) => l(
|
226
|
+
row: v
|
227
|
+
}) => l(i("el-avatar"), {
|
213
228
|
size: "default",
|
214
|
-
src:
|
229
|
+
src: v.avatar
|
215
230
|
}, null)
|
216
231
|
}, {
|
217
|
-
label:
|
232
|
+
label: s("base.user"),
|
218
233
|
width: 200,
|
219
234
|
align: "left",
|
220
235
|
render: ({
|
221
|
-
row:
|
222
|
-
}) => l(
|
236
|
+
row: v
|
237
|
+
}) => l(i("el-space"), {
|
223
238
|
direction: "vertical",
|
224
239
|
alignment: "start"
|
225
240
|
}, {
|
226
|
-
default: () => [l("div", null, [
|
241
|
+
default: () => [l("div", null, [v.username]), l("div", null, [v.email])]
|
227
242
|
})
|
228
243
|
}, {
|
229
|
-
label:
|
244
|
+
label: s("base.phone"),
|
230
245
|
prop: "phone",
|
231
246
|
width: 140
|
232
247
|
}, {
|
233
|
-
label:
|
248
|
+
label: s("base.remark"),
|
234
249
|
prop: "remark",
|
235
250
|
width: 0
|
236
251
|
}, {
|
237
|
-
label:
|
252
|
+
label: s("base.login_at"),
|
238
253
|
prop: "login_at",
|
239
254
|
width: 160
|
240
255
|
}, {
|
241
|
-
label:
|
256
|
+
label: s("base.created_at"),
|
242
257
|
prop: "created_at",
|
243
258
|
width: 160
|
244
259
|
}, {
|
245
|
-
label:
|
260
|
+
label: s("base.updated_at"),
|
246
261
|
prop: "updated_at",
|
247
262
|
width: 160
|
248
263
|
}, {
|
249
264
|
prop: "action",
|
250
|
-
label:
|
265
|
+
label: s("base.action"),
|
251
266
|
width: 80,
|
252
267
|
align: "center",
|
253
268
|
render: ({
|
254
|
-
row:
|
255
|
-
}) => l(
|
256
|
-
onModify: () =>
|
269
|
+
row: v
|
270
|
+
}) => l(W, {
|
271
|
+
onModify: () => d(v.key)
|
257
272
|
}, null)
|
258
273
|
}], {
|
259
|
-
requesting:
|
260
|
-
} =
|
261
|
-
tableRef:
|
262
|
-
infoRef:
|
263
|
-
keyword:
|
264
|
-
search:
|
265
|
-
refresh:
|
266
|
-
reset:
|
267
|
-
openInfo:
|
268
|
-
modifyInfo:
|
269
|
-
} =
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
})]),
|
304
|
-
default: t(() => [l(e(le), {
|
305
|
-
ref_key: "tableRef",
|
306
|
-
ref: w,
|
307
|
-
size: "small",
|
308
|
-
columns: v,
|
309
|
-
url: e(re).urls[e(ae)],
|
310
|
-
"search-param": e(b),
|
311
|
-
autoSearch: ""
|
312
|
-
}, null, 8, ["url", "search-param"]), l(xe, {
|
313
|
-
ref_key: "infoRef",
|
314
|
-
ref: k,
|
315
|
-
onRefresh: e(n)
|
316
|
-
}, null, 8, ["onRefresh"])]),
|
317
|
-
_: 1
|
318
|
-
});
|
274
|
+
requesting: p
|
275
|
+
} = O(ee), {
|
276
|
+
tableRef: g,
|
277
|
+
infoRef: t,
|
278
|
+
keyword: r,
|
279
|
+
search: m,
|
280
|
+
refresh: _,
|
281
|
+
reset: c,
|
282
|
+
openInfo: u,
|
283
|
+
modifyInfo: d
|
284
|
+
} = P(f), n = {
|
285
|
+
DEFAULT_KEYWORD: f,
|
286
|
+
columns: e,
|
287
|
+
requesting: p,
|
288
|
+
tableRef: g,
|
289
|
+
infoRef: t,
|
290
|
+
keyword: r,
|
291
|
+
search: m,
|
292
|
+
refresh: _,
|
293
|
+
reset: c,
|
294
|
+
openInfo: u,
|
295
|
+
modifyInfo: d,
|
296
|
+
get DEFAULT_PAGE_KEY() {
|
297
|
+
return X;
|
298
|
+
},
|
299
|
+
get Translate() {
|
300
|
+
return s;
|
301
|
+
},
|
302
|
+
get OpenButton() {
|
303
|
+
return Q;
|
304
|
+
},
|
305
|
+
get RefreshButton() {
|
306
|
+
return j;
|
307
|
+
},
|
308
|
+
get SearchButton() {
|
309
|
+
return J;
|
310
|
+
},
|
311
|
+
get ProTable() {
|
312
|
+
return H;
|
313
|
+
},
|
314
|
+
Info: ye,
|
315
|
+
get $api() {
|
316
|
+
return ee;
|
317
|
+
}
|
319
318
|
};
|
319
|
+
return Object.defineProperty(n, "__isScriptSetup", {
|
320
|
+
enumerable: !1,
|
321
|
+
value: !0
|
322
|
+
}), n;
|
320
323
|
}
|
321
|
-
})
|
324
|
+
});
|
325
|
+
function ve(h, a, f, e, p, g) {
|
326
|
+
const t = i("el-input"), r = i("el-space"), m = i("el-page-header"), _ = i("el-card");
|
327
|
+
return T(), x(_, {
|
328
|
+
class: "basic-card flex-full",
|
329
|
+
"body-class": "flex-1"
|
330
|
+
}, {
|
331
|
+
header: o(() => [
|
332
|
+
l(m, { class: "basic-header" }, {
|
333
|
+
title: o(() => [
|
334
|
+
l(e.RefreshButton, {
|
335
|
+
loading: e.requesting,
|
336
|
+
onRefresh: e.refresh
|
337
|
+
}, null, 8, ["loading", "onRefresh"]),
|
338
|
+
l(e.OpenButton, { onOpen: e.openInfo }, null, 8, ["onOpen"])
|
339
|
+
]),
|
340
|
+
content: o(() => [
|
341
|
+
l(r, { class: "search-bar" }, {
|
342
|
+
default: o(() => [
|
343
|
+
l(t, {
|
344
|
+
class: "basic-search-input",
|
345
|
+
modelValue: e.keyword.keyword,
|
346
|
+
"onUpdate:modelValue": a[0] || (a[0] = (c) => e.keyword.keyword = c),
|
347
|
+
placeholder: e.Translate("base.placeholder.keyword"),
|
348
|
+
clearable: "",
|
349
|
+
onKeyup: Y(e.search, ["enter"]),
|
350
|
+
onClear: e.search
|
351
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]),
|
352
|
+
l(e.SearchButton, {
|
353
|
+
disabled: e.requesting,
|
354
|
+
onSearch: e.search
|
355
|
+
}, null, 8, ["disabled", "onSearch"])
|
356
|
+
]),
|
357
|
+
_: 1
|
358
|
+
})
|
359
|
+
]),
|
360
|
+
_: 1
|
361
|
+
})
|
362
|
+
]),
|
363
|
+
default: o(() => [
|
364
|
+
l(e.ProTable, {
|
365
|
+
ref: "tableRef",
|
366
|
+
size: "small",
|
367
|
+
columns: e.columns,
|
368
|
+
url: e.$api.urls[e.DEFAULT_PAGE_KEY],
|
369
|
+
"search-param": e.keyword,
|
370
|
+
autoSearch: ""
|
371
|
+
}, null, 8, ["url", "search-param"]),
|
372
|
+
l(e.Info, {
|
373
|
+
ref: "infoRef",
|
374
|
+
onRefresh: e.reset
|
375
|
+
}, null, 8, ["onRefresh"])
|
376
|
+
]),
|
377
|
+
_: 1
|
378
|
+
});
|
379
|
+
}
|
380
|
+
const Te = /* @__PURE__ */ R(ke, [["render", ve], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/admin/index.vue"]]), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
322
381
|
__proto__: null,
|
323
|
-
default:
|
324
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
382
|
+
default: Te
|
383
|
+
}, Symbol.toStringTag, { value: "Module" })), F = G("translation", {}, "key"), we = /* @__PURE__ */ U({
|
325
384
|
__name: "info",
|
326
385
|
emits: ["refresh"],
|
327
|
-
setup(
|
328
|
-
const
|
386
|
+
setup(h, { expose: a, emit: f }) {
|
387
|
+
const e = f, p = {
|
329
388
|
id: 0,
|
330
389
|
key: "",
|
331
390
|
module: "",
|
332
391
|
language: "",
|
333
392
|
result: "",
|
334
393
|
remark: ""
|
335
|
-
},
|
394
|
+
}, g = {
|
336
395
|
module: [
|
337
|
-
{ required: !0, message:
|
396
|
+
{ required: !0, message: s("language.placeholder.module"), trigger: "blur" }
|
338
397
|
],
|
339
398
|
key: [
|
340
|
-
{ required: !0, message:
|
399
|
+
{ required: !0, message: s("language.placeholder.key"), trigger: "blur" }
|
341
400
|
],
|
342
401
|
language: [
|
343
|
-
{ required: !0, message:
|
402
|
+
{ required: !0, message: s("language.placeholder.language"), trigger: "change" }
|
344
403
|
],
|
345
404
|
result: [
|
346
|
-
{ required: !0, message:
|
405
|
+
{ required: !0, message: s("language.placeholder.result"), trigger: "blur" }
|
347
406
|
]
|
348
|
-
}, { modal:
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
)
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
})
|
358
|
-
|
359
|
-
return
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
407
|
+
}, { modal: t, title: r, form: m, formData: _, requesting: c, executing: u, open: d, modify: n, submit: v, closed: w } = L(
|
408
|
+
e,
|
409
|
+
p,
|
410
|
+
F
|
411
|
+
), D = (V) => {
|
412
|
+
V ? n({ id: V }) : d();
|
413
|
+
};
|
414
|
+
a({
|
415
|
+
openOrModify: D
|
416
|
+
});
|
417
|
+
const b = { emits: e, DEFAULT_DATA: p, rules: g, modal: t, title: r, form: m, formData: _, requesting: c, executing: u, open: d, modify: n, submit: v, closed: w, openOrModify: D, get Translate() {
|
418
|
+
return s;
|
419
|
+
}, get FormDialog() {
|
420
|
+
return I;
|
421
|
+
} };
|
422
|
+
return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
|
423
|
+
}
|
424
|
+
});
|
425
|
+
function xe(h, a, f, e, p, g) {
|
426
|
+
const t = i("el-input"), r = i("el-form-item"), m = i("el-radio-button"), _ = i("el-radio-group"), c = i("el-form");
|
427
|
+
return T(), x(e.FormDialog, {
|
428
|
+
modelValue: e.modal,
|
429
|
+
"onUpdate:modelValue": a[5] || (a[5] = (u) => e.modal = u),
|
430
|
+
title: e.title(),
|
431
|
+
width: "600px",
|
432
|
+
executing: e.executing,
|
433
|
+
onClosed: e.closed,
|
434
|
+
onSubmit: e.submit
|
435
|
+
}, {
|
436
|
+
default: o(() => [
|
437
|
+
l(c, {
|
438
|
+
ref: "form",
|
439
|
+
model: e.formData,
|
440
|
+
"label-width": "auto",
|
441
|
+
rules: e.rules,
|
442
|
+
disabled: e.requesting || e.executing
|
367
443
|
}, {
|
368
|
-
default:
|
369
|
-
l(
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
"label-width": "auto",
|
374
|
-
rules: k,
|
375
|
-
disabled: e(f) || e(g)
|
444
|
+
default: o(() => [
|
445
|
+
l(r, {
|
446
|
+
label: e.Translate("language.module"),
|
447
|
+
prop: "module",
|
448
|
+
required: ""
|
376
449
|
}, {
|
377
|
-
default:
|
378
|
-
l(
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
},
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
l(
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
},
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
l(
|
407
|
-
|
408
|
-
|
409
|
-
required: ""
|
410
|
-
}, {
|
411
|
-
default: t(() => [
|
412
|
-
l(A, {
|
413
|
-
modelValue: e(n).language,
|
414
|
-
"onUpdate:modelValue": o[2] || (o[2] = (y) => e(n).language = y)
|
415
|
-
}, {
|
416
|
-
default: t(() => [
|
417
|
-
l(x, { label: "zh-CN" }, {
|
418
|
-
default: t(() => o[6] || (o[6] = [
|
419
|
-
N("zh-CN")
|
420
|
-
])),
|
421
|
-
_: 1,
|
422
|
-
__: [6]
|
423
|
-
}),
|
424
|
-
l(x, { label: "en-US" }, {
|
425
|
-
default: t(() => o[7] || (o[7] = [
|
426
|
-
N("en-US")
|
427
|
-
])),
|
428
|
-
_: 1,
|
429
|
-
__: [7]
|
430
|
-
})
|
431
|
-
]),
|
432
|
-
_: 1
|
433
|
-
}, 8, ["modelValue"])
|
434
|
-
]),
|
435
|
-
_: 1
|
436
|
-
}, 8, ["label"]),
|
437
|
-
l(r, {
|
438
|
-
label: e(a)("language.result"),
|
439
|
-
prop: "result",
|
440
|
-
required: ""
|
441
|
-
}, {
|
442
|
-
default: t(() => [
|
443
|
-
l(u, {
|
444
|
-
modelValue: e(n).result,
|
445
|
-
"onUpdate:modelValue": o[3] || (o[3] = (y) => e(n).result = y),
|
446
|
-
placeholder: e(a)("language.placeholder.result")
|
447
|
-
}, null, 8, ["modelValue", "placeholder"])
|
448
|
-
]),
|
449
|
-
_: 1
|
450
|
-
}, 8, ["label"]),
|
451
|
-
l(r, {
|
452
|
-
label: e(a)("base.remark"),
|
453
|
-
prop: "remark"
|
450
|
+
default: o(() => [
|
451
|
+
l(t, {
|
452
|
+
modelValue: e.formData.module,
|
453
|
+
"onUpdate:modelValue": a[0] || (a[0] = (u) => e.formData.module = u),
|
454
|
+
placeholder: e.Translate("language.placeholder.module")
|
455
|
+
}, null, 8, ["modelValue", "placeholder"])
|
456
|
+
]),
|
457
|
+
_: 1
|
458
|
+
}, 8, ["label"]),
|
459
|
+
l(r, {
|
460
|
+
label: e.Translate("language.key"),
|
461
|
+
prop: "key",
|
462
|
+
required: ""
|
463
|
+
}, {
|
464
|
+
default: o(() => [
|
465
|
+
l(t, {
|
466
|
+
modelValue: e.formData.key,
|
467
|
+
"onUpdate:modelValue": a[1] || (a[1] = (u) => e.formData.key = u),
|
468
|
+
placeholder: e.Translate("language.placeholder.key")
|
469
|
+
}, null, 8, ["modelValue", "placeholder"])
|
470
|
+
]),
|
471
|
+
_: 1
|
472
|
+
}, 8, ["label"]),
|
473
|
+
l(r, {
|
474
|
+
label: e.Translate("language.language"),
|
475
|
+
prop: "language",
|
476
|
+
required: ""
|
477
|
+
}, {
|
478
|
+
default: o(() => [
|
479
|
+
l(_, {
|
480
|
+
modelValue: e.formData.language,
|
481
|
+
"onUpdate:modelValue": a[2] || (a[2] = (u) => e.formData.language = u)
|
454
482
|
}, {
|
455
|
-
default:
|
456
|
-
l(
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
483
|
+
default: o(() => [
|
484
|
+
l(m, { label: "zh-CN" }, {
|
485
|
+
default: o(() => a[6] || (a[6] = [
|
486
|
+
E("zh-CN")
|
487
|
+
])),
|
488
|
+
_: 1,
|
489
|
+
__: [6]
|
490
|
+
}),
|
491
|
+
l(m, { label: "en-US" }, {
|
492
|
+
default: o(() => a[7] || (a[7] = [
|
493
|
+
E("en-US")
|
494
|
+
])),
|
495
|
+
_: 1,
|
496
|
+
__: [7]
|
497
|
+
})
|
461
498
|
]),
|
462
499
|
_: 1
|
463
|
-
}, 8, ["
|
500
|
+
}, 8, ["modelValue"])
|
501
|
+
]),
|
502
|
+
_: 1
|
503
|
+
}, 8, ["label"]),
|
504
|
+
l(r, {
|
505
|
+
label: e.Translate("language.result"),
|
506
|
+
prop: "result",
|
507
|
+
required: ""
|
508
|
+
}, {
|
509
|
+
default: o(() => [
|
510
|
+
l(t, {
|
511
|
+
modelValue: e.formData.result,
|
512
|
+
"onUpdate:modelValue": a[3] || (a[3] = (u) => e.formData.result = u),
|
513
|
+
placeholder: e.Translate("language.placeholder.result")
|
514
|
+
}, null, 8, ["modelValue", "placeholder"])
|
515
|
+
]),
|
516
|
+
_: 1
|
517
|
+
}, 8, ["label"]),
|
518
|
+
l(r, {
|
519
|
+
label: e.Translate("base.remark"),
|
520
|
+
prop: "remark"
|
521
|
+
}, {
|
522
|
+
default: o(() => [
|
523
|
+
l(t, {
|
524
|
+
modelValue: e.formData.remark,
|
525
|
+
"onUpdate:modelValue": a[4] || (a[4] = (u) => e.formData.remark = u),
|
526
|
+
placeholder: e.Translate("base.placeholder.input")
|
527
|
+
}, null, 8, ["modelValue", "placeholder"])
|
464
528
|
]),
|
465
529
|
_: 1
|
466
|
-
}, 8, ["
|
530
|
+
}, 8, ["label"])
|
467
531
|
]),
|
468
532
|
_: 1
|
469
|
-
}, 8, ["
|
470
|
-
|
471
|
-
|
472
|
-
}
|
533
|
+
}, 8, ["model", "disabled"])
|
534
|
+
]),
|
535
|
+
_: 1
|
536
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
537
|
+
}
|
538
|
+
const Ue = /* @__PURE__ */ R(we, [["render", xe], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/language/components/info.vue"]]), Se = /* @__PURE__ */ U({
|
473
539
|
__name: "index",
|
474
|
-
setup(
|
475
|
-
|
540
|
+
setup(h, {
|
541
|
+
expose: a
|
542
|
+
}) {
|
543
|
+
a();
|
544
|
+
const f = {
|
476
545
|
keyword: "",
|
477
546
|
status: 0
|
478
|
-
},
|
479
|
-
label:
|
547
|
+
}, e = [{
|
548
|
+
label: s("base.module"),
|
480
549
|
prop: "module",
|
481
550
|
width: 120
|
482
551
|
}, {
|
483
|
-
label:
|
552
|
+
label: s("base.language"),
|
484
553
|
prop: "language",
|
485
554
|
width: 100
|
486
555
|
}, {
|
487
|
-
label:
|
556
|
+
label: s("base.key"),
|
488
557
|
prop: "key",
|
489
558
|
width: 200
|
490
559
|
}, {
|
491
|
-
label:
|
560
|
+
label: s("base.result"),
|
492
561
|
prop: "result",
|
493
562
|
width: 200
|
494
563
|
}, {
|
495
|
-
label:
|
564
|
+
label: s("base.status"),
|
496
565
|
prop: "status",
|
497
566
|
width: 80,
|
498
567
|
type: "switch",
|
499
568
|
props: {
|
500
569
|
activeValue: 1,
|
501
570
|
inactiveValue: 2,
|
502
|
-
api:
|
571
|
+
api: F.urls[te],
|
503
572
|
refresh: !0
|
504
573
|
}
|
505
574
|
}, {
|
506
|
-
label:
|
575
|
+
label: s("base.remark"),
|
507
576
|
prop: "remark",
|
508
577
|
width: 0
|
509
578
|
}, {
|
510
|
-
label:
|
579
|
+
label: s("base.created_at"),
|
511
580
|
prop: "created_at",
|
512
581
|
width: 160
|
513
582
|
}, {
|
514
|
-
label:
|
583
|
+
label: s("base.updated_at"),
|
515
584
|
prop: "updated_at",
|
516
585
|
width: 160
|
517
586
|
}, {
|
518
587
|
prop: "action",
|
519
|
-
label:
|
588
|
+
label: s("base.action"),
|
520
589
|
width: 80,
|
521
590
|
align: "center",
|
522
591
|
render: ({
|
523
|
-
row:
|
524
|
-
}) => l(
|
525
|
-
onModify: () =>
|
592
|
+
row: v
|
593
|
+
}) => l(W, {
|
594
|
+
onModify: () => d(v.id)
|
526
595
|
}, null)
|
527
596
|
}], {
|
528
|
-
requesting:
|
529
|
-
} =
|
530
|
-
tableRef:
|
531
|
-
infoRef:
|
532
|
-
keyword:
|
533
|
-
search:
|
534
|
-
refresh:
|
535
|
-
reset:
|
536
|
-
openInfo:
|
537
|
-
modifyInfo:
|
538
|
-
} =
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
label: e(a)(`base.DISABLE_ENABLE.${r}`),
|
573
|
-
value: r
|
574
|
-
}, null, 8, ["label", "value"])), 64))]),
|
575
|
-
_: 1
|
576
|
-
}, 8, ["modelValue", "onChange"]), l(e(oe), {
|
577
|
-
disabled: e(R),
|
578
|
-
onSearch: e(s)
|
579
|
-
}, null, 8, ["disabled", "onSearch"])]),
|
580
|
-
_: 1
|
581
|
-
})]),
|
582
|
-
_: 1
|
583
|
-
})]),
|
584
|
-
default: t(() => [l(e(le), {
|
585
|
-
ref_key: "tableRef",
|
586
|
-
ref: w,
|
587
|
-
size: "small",
|
588
|
-
columns: v,
|
589
|
-
url: e(H).urls[e(ae)],
|
590
|
-
"search-param": e(b),
|
591
|
-
autoSearch: ""
|
592
|
-
}, null, 8, ["url", "search-param"]), l(Re, {
|
593
|
-
ref_key: "infoRef",
|
594
|
-
ref: k,
|
595
|
-
onRefresh: e(n)
|
596
|
-
}, null, 8, ["onRefresh"])]),
|
597
|
-
_: 1
|
598
|
-
});
|
597
|
+
requesting: p
|
598
|
+
} = O(F), {
|
599
|
+
tableRef: g,
|
600
|
+
infoRef: t,
|
601
|
+
keyword: r,
|
602
|
+
search: m,
|
603
|
+
refresh: _,
|
604
|
+
reset: c,
|
605
|
+
openInfo: u,
|
606
|
+
modifyInfo: d
|
607
|
+
} = P(f), n = {
|
608
|
+
DEFAULT_KEYWORD: f,
|
609
|
+
columns: e,
|
610
|
+
requesting: p,
|
611
|
+
tableRef: g,
|
612
|
+
infoRef: t,
|
613
|
+
keyword: r,
|
614
|
+
search: m,
|
615
|
+
refresh: _,
|
616
|
+
reset: c,
|
617
|
+
openInfo: u,
|
618
|
+
modifyInfo: d,
|
619
|
+
get DEFAULT_PAGE_KEY() {
|
620
|
+
return X;
|
621
|
+
},
|
622
|
+
get Translate() {
|
623
|
+
return s;
|
624
|
+
},
|
625
|
+
get OpenButton() {
|
626
|
+
return Q;
|
627
|
+
},
|
628
|
+
get RefreshButton() {
|
629
|
+
return j;
|
630
|
+
},
|
631
|
+
get SearchButton() {
|
632
|
+
return J;
|
633
|
+
},
|
634
|
+
get ProTable() {
|
635
|
+
return H;
|
636
|
+
},
|
637
|
+
Info: Ue,
|
638
|
+
get $api() {
|
639
|
+
return F;
|
640
|
+
}
|
599
641
|
};
|
642
|
+
return Object.defineProperty(n, "__isScriptSetup", {
|
643
|
+
enumerable: !1,
|
644
|
+
value: !0
|
645
|
+
}), n;
|
600
646
|
}
|
601
|
-
})
|
647
|
+
});
|
648
|
+
function Ae(h, a, f, e, p, g) {
|
649
|
+
const t = i("el-input"), r = i("el-radio-button"), m = i("el-radio-group"), _ = i("el-space"), c = i("el-page-header"), u = i("el-card");
|
650
|
+
return T(), x(u, {
|
651
|
+
class: "basic-card flex-full",
|
652
|
+
"body-class": "flex-1"
|
653
|
+
}, {
|
654
|
+
header: o(() => [
|
655
|
+
l(c, { class: "basic-header" }, {
|
656
|
+
title: o(() => [
|
657
|
+
l(e.RefreshButton, {
|
658
|
+
loading: e.requesting,
|
659
|
+
onRefresh: e.refresh
|
660
|
+
}, null, 8, ["loading", "onRefresh"]),
|
661
|
+
l(e.OpenButton, { onOpen: e.openInfo }, null, 8, ["onOpen"])
|
662
|
+
]),
|
663
|
+
content: o(() => [
|
664
|
+
l(_, { class: "search-bar" }, {
|
665
|
+
default: o(() => [
|
666
|
+
l(t, {
|
667
|
+
class: "basic-search-input",
|
668
|
+
modelValue: e.keyword.keyword,
|
669
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => e.keyword.keyword = d),
|
670
|
+
placeholder: e.Translate("base.placeholder.keyword"),
|
671
|
+
clearable: "",
|
672
|
+
onKeyup: Y(e.search, ["enter"]),
|
673
|
+
onClear: e.search
|
674
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]),
|
675
|
+
l(m, {
|
676
|
+
modelValue: e.keyword.status,
|
677
|
+
"onUpdate:modelValue": a[1] || (a[1] = (d) => e.keyword.status = d),
|
678
|
+
onChange: e.search
|
679
|
+
}, {
|
680
|
+
default: o(() => [
|
681
|
+
(T(), C(q, null, M([0, 1, 2], (d) => l(r, {
|
682
|
+
key: d,
|
683
|
+
label: e.Translate(`base.DISABLE_ENABLE.${d}`),
|
684
|
+
value: d
|
685
|
+
}, null, 8, ["label", "value"])), 64))
|
686
|
+
]),
|
687
|
+
_: 1
|
688
|
+
}, 8, ["modelValue", "onChange"]),
|
689
|
+
l(e.SearchButton, {
|
690
|
+
disabled: e.requesting,
|
691
|
+
onSearch: e.search
|
692
|
+
}, null, 8, ["disabled", "onSearch"])
|
693
|
+
]),
|
694
|
+
_: 1
|
695
|
+
})
|
696
|
+
]),
|
697
|
+
_: 1
|
698
|
+
})
|
699
|
+
]),
|
700
|
+
default: o(() => [
|
701
|
+
l(e.ProTable, {
|
702
|
+
ref: "tableRef",
|
703
|
+
size: "small",
|
704
|
+
columns: e.columns,
|
705
|
+
url: e.$api.urls[e.DEFAULT_PAGE_KEY],
|
706
|
+
"search-param": e.keyword,
|
707
|
+
autoSearch: ""
|
708
|
+
}, null, 8, ["url", "search-param"]),
|
709
|
+
l(e.Info, {
|
710
|
+
ref: "infoRef",
|
711
|
+
onRefresh: e.reset
|
712
|
+
}, null, 8, ["onRefresh"])
|
713
|
+
]),
|
714
|
+
_: 1
|
715
|
+
});
|
716
|
+
}
|
717
|
+
const Re = /* @__PURE__ */ R(Se, [["render", Ae], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/language/index.vue"]]), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
602
718
|
__proto__: null,
|
603
|
-
default:
|
604
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
719
|
+
default: Re
|
720
|
+
}, Symbol.toStringTag, { value: "Module" })), oe = {
|
605
721
|
tops: "tops",
|
606
722
|
rules: "rules"
|
607
|
-
},
|
723
|
+
}, A = be.createAutoApi("menu", oe, "id", Object.keys(oe), [], ["TOP_MENU_LIST", "MENU_LIST"]), se = G("rule", {}, "key");
|
608
724
|
/*! Element Plus Icons Vue v2.3.1 */
|
609
|
-
var
|
725
|
+
var Oe = /* @__PURE__ */ U({
|
610
726
|
name: "Key",
|
611
727
|
__name: "key",
|
612
|
-
setup(
|
613
|
-
return (
|
728
|
+
setup(h) {
|
729
|
+
return (a, f) => (T(), C("svg", {
|
614
730
|
xmlns: "http://www.w3.org/2000/svg",
|
615
731
|
viewBox: "0 0 1024 1024"
|
616
732
|
}, [
|
617
|
-
|
733
|
+
B("path", {
|
618
734
|
fill: "currentColor",
|
619
735
|
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"
|
620
736
|
})
|
621
737
|
]));
|
622
738
|
}
|
623
|
-
}),
|
624
|
-
const qe = /* @__PURE__ */
|
739
|
+
}), Ee = Oe;
|
740
|
+
const qe = /* @__PURE__ */ U({
|
625
741
|
__name: "topMenuSelect",
|
626
742
|
props: {
|
627
743
|
modelValue: {
|
@@ -634,50 +750,74 @@ const qe = /* @__PURE__ */ D({
|
|
634
750
|
}
|
635
751
|
},
|
636
752
|
emits: ["update:modelValue", "change"],
|
637
|
-
setup(
|
638
|
-
|
753
|
+
setup(h, {
|
754
|
+
expose: a,
|
755
|
+
emit: f
|
639
756
|
}) {
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
757
|
+
a();
|
758
|
+
const e = f, p = h, {
|
759
|
+
requesting: g
|
760
|
+
} = O(A), {
|
761
|
+
value: t,
|
762
|
+
options: r,
|
763
|
+
change: m,
|
764
|
+
refresh: _,
|
765
|
+
filterOptions: c
|
766
|
+
} = ae(le(p, "modelValue"), e, {
|
649
767
|
key: "TOP_MENU_LIST",
|
650
|
-
api:
|
651
|
-
url:
|
768
|
+
api: A,
|
769
|
+
url: A.urls.tops,
|
652
770
|
isArray: !0
|
653
|
-
})
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
}
|
668
|
-
prefix: t(() => [l(e(me), {
|
669
|
-
loading: e(w),
|
670
|
-
onRefresh: g[0] || (g[0] = (V) => e(i)(!0))
|
671
|
-
}, null, 8, ["loading"])]),
|
672
|
-
_: 1
|
673
|
-
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
771
|
+
}), u = {
|
772
|
+
emit: e,
|
773
|
+
props: p,
|
774
|
+
requesting: g,
|
775
|
+
value: t,
|
776
|
+
options: r,
|
777
|
+
change: m,
|
778
|
+
refresh: _,
|
779
|
+
filterOptions: c,
|
780
|
+
get Translate() {
|
781
|
+
return s;
|
782
|
+
},
|
783
|
+
get InlineRefreshButton() {
|
784
|
+
return de;
|
785
|
+
}
|
674
786
|
};
|
787
|
+
return Object.defineProperty(u, "__isScriptSetup", {
|
788
|
+
enumerable: !1,
|
789
|
+
value: !0
|
790
|
+
}), u;
|
675
791
|
}
|
676
|
-
})
|
792
|
+
});
|
793
|
+
function Be(h, a, f, e, p, g) {
|
794
|
+
const t = i("el-select-v2");
|
795
|
+
return T(), x(t, {
|
796
|
+
class: "w-full",
|
797
|
+
modelValue: e.value,
|
798
|
+
"onUpdate:modelValue": a[1] || (a[1] = (r) => e.value = r),
|
799
|
+
options: e.options,
|
800
|
+
multiple: f.multiple,
|
801
|
+
disabled: e.requesting,
|
802
|
+
placeholder: e.Translate("base.placeholder.select"),
|
803
|
+
filterable: "",
|
804
|
+
filterOptions: e.filterOptions,
|
805
|
+
onChange: e.change
|
806
|
+
}, {
|
807
|
+
prefix: o(() => [
|
808
|
+
l(e.InlineRefreshButton, {
|
809
|
+
loading: e.requesting,
|
810
|
+
onRefresh: a[0] || (a[0] = (r) => e.refresh(!0))
|
811
|
+
}, null, 8, ["loading"])
|
812
|
+
]),
|
813
|
+
_: 1
|
814
|
+
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
815
|
+
}
|
816
|
+
const Me = /* @__PURE__ */ R(qe, [["render", Be], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/menu/components/topMenuSelect.vue"]]), Pe = /* @__PURE__ */ U({
|
677
817
|
__name: "info",
|
678
818
|
emits: ["refresh"],
|
679
|
-
setup(
|
680
|
-
const
|
819
|
+
setup(h, { expose: a, emit: f }) {
|
820
|
+
const e = f, p = {
|
681
821
|
id: 0,
|
682
822
|
menu_id: 0,
|
683
823
|
module: "",
|
@@ -698,320 +838,325 @@ const qe = /* @__PURE__ */ D({
|
|
698
838
|
keep_alive: !1,
|
699
839
|
link: !1
|
700
840
|
}
|
701
|
-
},
|
841
|
+
}, g = {
|
702
842
|
sort: [
|
703
|
-
{ required: !0, type: "number", message:
|
843
|
+
{ required: !0, type: "number", message: s("base.placeholder.input base.sort"), trigger: "blur" }
|
704
844
|
],
|
705
845
|
module: [
|
706
|
-
{ required: !0, message:
|
846
|
+
{ required: !0, message: s("base.placeholder.input menu.module"), trigger: "blur" }
|
707
847
|
],
|
708
848
|
name: [
|
709
|
-
{ required: !0, message:
|
849
|
+
{ required: !0, message: s("base.placeholder.input base.name"), trigger: "blur" }
|
710
850
|
],
|
711
851
|
en_name: [
|
712
|
-
{ required: !0, message:
|
852
|
+
{ required: !0, message: s("base.placeholder.input base.en_name"), trigger: "blur" }
|
713
853
|
],
|
714
854
|
url: [
|
715
|
-
{ required: !0, message:
|
855
|
+
{ required: !0, message: s("base.placeholder.input base.url"), trigger: "blur" }
|
716
856
|
],
|
717
857
|
component: [
|
718
|
-
{ required: !0, message:
|
858
|
+
{ required: !0, message: s("base.placeholder.input menu.component"), trigger: "blur" }
|
719
859
|
]
|
720
|
-
}, { modal:
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
)
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
})
|
730
|
-
|
731
|
-
return
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
860
|
+
}, { modal: t, title: r, form: m, formData: _, requesting: c, executing: u, open: d, modify: n, submit: v, closed: w } = L(
|
861
|
+
e,
|
862
|
+
p,
|
863
|
+
A
|
864
|
+
), D = (V) => {
|
865
|
+
V ? n({ id: V }) : d();
|
866
|
+
};
|
867
|
+
a({
|
868
|
+
openOrModify: D
|
869
|
+
});
|
870
|
+
const b = { emits: e, DEFAULT_DATA: p, rules: g, modal: t, title: r, form: m, formData: _, requesting: c, executing: u, open: d, modify: n, submit: v, closed: w, openOrModify: D, get Translate() {
|
871
|
+
return s;
|
872
|
+
}, get FormDialog() {
|
873
|
+
return I;
|
874
|
+
}, TopMenuSelect: Me };
|
875
|
+
return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
|
876
|
+
}
|
877
|
+
});
|
878
|
+
function Le(h, a, f, e, p, g) {
|
879
|
+
const t = i("el-form-item"), r = i("el-col"), m = i("el-input-number"), _ = i("el-row"), c = i("el-input"), u = i("el-switch"), d = i("el-form");
|
880
|
+
return T(), x(e.FormDialog, {
|
881
|
+
modelValue: e.modal,
|
882
|
+
"onUpdate:modelValue": a[17] || (a[17] = (n) => e.modal = n),
|
883
|
+
title: e.title(),
|
884
|
+
width: "1000px",
|
885
|
+
executing: e.executing,
|
886
|
+
onClosed: e.closed,
|
887
|
+
onSubmit: e.submit
|
888
|
+
}, {
|
889
|
+
default: o(() => [
|
890
|
+
l(d, {
|
891
|
+
ref: "form",
|
892
|
+
model: e.formData,
|
893
|
+
"label-width": "auto",
|
894
|
+
rules: e.rules,
|
895
|
+
disabled: e.requesting || e.executing
|
739
896
|
}, {
|
740
|
-
default:
|
741
|
-
l(
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
l(u, {
|
759
|
-
label: e(a)("base.parent"),
|
760
|
-
prop: "menu_id"
|
761
|
-
}, {
|
762
|
-
default: t(() => [
|
763
|
-
l(qe, {
|
764
|
-
modelValue: e(n).menu_id,
|
765
|
-
"onUpdate:modelValue": o[0] || (o[0] = (m) => e(n).menu_id = m)
|
766
|
-
}, null, 8, ["modelValue"])
|
767
|
-
]),
|
768
|
-
_: 1
|
769
|
-
}, 8, ["label"])
|
770
|
-
]),
|
771
|
-
_: 1
|
772
|
-
}),
|
773
|
-
l(r, { span: 12 }, {
|
774
|
-
default: t(() => [
|
775
|
-
l(u, {
|
776
|
-
label: e(a)("base.sort"),
|
777
|
-
prop: "sort"
|
778
|
-
}, {
|
779
|
-
default: t(() => [
|
780
|
-
l(x, {
|
781
|
-
class: "w-full",
|
782
|
-
modelValue: e(n).sort,
|
783
|
-
"onUpdate:modelValue": o[1] || (o[1] = (m) => e(n).sort = m),
|
784
|
-
min: 0,
|
785
|
-
placeholder: e(a)("base.placeholder.input")
|
786
|
-
}, null, 8, ["modelValue", "placeholder"])
|
787
|
-
]),
|
788
|
-
_: 1
|
789
|
-
}, 8, ["label"])
|
897
|
+
default: o(() => [
|
898
|
+
l(_, { gutter: 20 }, {
|
899
|
+
default: o(() => [
|
900
|
+
l(r, { span: 12 }, {
|
901
|
+
default: o(() => [
|
902
|
+
l(_, { gutter: 10 }, {
|
903
|
+
default: o(() => [
|
904
|
+
l(r, { span: 12 }, {
|
905
|
+
default: o(() => [
|
906
|
+
l(t, {
|
907
|
+
label: e.Translate("base.parent"),
|
908
|
+
prop: "menu_id"
|
909
|
+
}, {
|
910
|
+
default: o(() => [
|
911
|
+
l(e.TopMenuSelect, {
|
912
|
+
modelValue: e.formData.menu_id,
|
913
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => e.formData.menu_id = n)
|
914
|
+
}, null, 8, ["modelValue"])
|
790
915
|
]),
|
791
916
|
_: 1
|
792
|
-
})
|
917
|
+
}, 8, ["label"])
|
793
918
|
]),
|
794
919
|
_: 1
|
795
920
|
}),
|
796
|
-
l(
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
default: t(() => [
|
814
|
-
l(_, {
|
815
|
-
modelValue: e(n).name,
|
816
|
-
"onUpdate:modelValue": o[3] || (o[3] = (m) => e(n).name = m),
|
817
|
-
placeholder: e(a)("base.placeholder.input")
|
818
|
-
}, null, 8, ["modelValue", "placeholder"])
|
819
|
-
]),
|
820
|
-
_: 1
|
821
|
-
}, 8, ["label"]),
|
822
|
-
l(u, {
|
823
|
-
label: e(a)("base.en_name"),
|
824
|
-
prop: "en_name"
|
825
|
-
}, {
|
826
|
-
default: t(() => [
|
827
|
-
l(_, {
|
828
|
-
modelValue: e(n).en_name,
|
829
|
-
"onUpdate:modelValue": o[4] || (o[4] = (m) => e(n).en_name = m),
|
830
|
-
placeholder: e(a)("base.placeholder.input")
|
831
|
-
}, null, 8, ["modelValue", "placeholder"])
|
832
|
-
]),
|
833
|
-
_: 1
|
834
|
-
}, 8, ["label"]),
|
835
|
-
l(u, {
|
836
|
-
label: e(a)("menu.component"),
|
837
|
-
prop: "component"
|
838
|
-
}, {
|
839
|
-
default: t(() => [
|
840
|
-
l(_, {
|
841
|
-
modelValue: e(n).component,
|
842
|
-
"onUpdate:modelValue": o[5] || (o[5] = (m) => e(n).component = m),
|
843
|
-
placeholder: e(a)("base.placeholder.input")
|
844
|
-
}, null, 8, ["modelValue", "placeholder"])
|
845
|
-
]),
|
846
|
-
_: 1
|
847
|
-
}, 8, ["label"]),
|
848
|
-
l(u, {
|
849
|
-
label: e(a)("base.url"),
|
850
|
-
prop: "url"
|
851
|
-
}, {
|
852
|
-
default: t(() => [
|
853
|
-
l(_, {
|
854
|
-
modelValue: e(n).url,
|
855
|
-
"onUpdate:modelValue": o[6] || (o[6] = (m) => e(n).url = m),
|
856
|
-
placeholder: e(a)("base.placeholder.input")
|
857
|
-
}, null, 8, ["modelValue", "placeholder"])
|
921
|
+
l(r, { span: 12 }, {
|
922
|
+
default: o(() => [
|
923
|
+
l(t, {
|
924
|
+
label: e.Translate("base.sort"),
|
925
|
+
prop: "sort"
|
926
|
+
}, {
|
927
|
+
default: o(() => [
|
928
|
+
l(m, {
|
929
|
+
class: "w-full",
|
930
|
+
modelValue: e.formData.sort,
|
931
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => e.formData.sort = n),
|
932
|
+
min: 0,
|
933
|
+
placeholder: e.Translate("base.placeholder.input")
|
934
|
+
}, null, 8, ["modelValue", "placeholder"])
|
935
|
+
]),
|
936
|
+
_: 1
|
937
|
+
}, 8, ["label"])
|
858
938
|
]),
|
859
939
|
_: 1
|
860
|
-
}
|
861
|
-
|
862
|
-
|
863
|
-
|
940
|
+
})
|
941
|
+
]),
|
942
|
+
_: 1
|
943
|
+
}),
|
944
|
+
l(t, {
|
945
|
+
label: e.Translate("menu.module"),
|
946
|
+
prop: "module"
|
947
|
+
}, {
|
948
|
+
default: o(() => [
|
949
|
+
l(c, {
|
950
|
+
modelValue: e.formData.module,
|
951
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => e.formData.module = n),
|
952
|
+
placeholder: e.Translate("base.placeholder.input")
|
953
|
+
}, null, 8, ["modelValue", "placeholder"])
|
954
|
+
]),
|
955
|
+
_: 1
|
956
|
+
}, 8, ["label"]),
|
957
|
+
l(t, {
|
958
|
+
label: e.Translate("base.name"),
|
959
|
+
prop: "name"
|
960
|
+
}, {
|
961
|
+
default: o(() => [
|
962
|
+
l(c, {
|
963
|
+
modelValue: e.formData.name,
|
964
|
+
"onUpdate:modelValue": a[3] || (a[3] = (n) => e.formData.name = n),
|
965
|
+
placeholder: e.Translate("base.placeholder.input")
|
966
|
+
}, null, 8, ["modelValue", "placeholder"])
|
967
|
+
]),
|
968
|
+
_: 1
|
969
|
+
}, 8, ["label"]),
|
970
|
+
l(t, {
|
971
|
+
label: e.Translate("base.en_name"),
|
972
|
+
prop: "en_name"
|
973
|
+
}, {
|
974
|
+
default: o(() => [
|
975
|
+
l(c, {
|
976
|
+
modelValue: e.formData.en_name,
|
977
|
+
"onUpdate:modelValue": a[4] || (a[4] = (n) => e.formData.en_name = n),
|
978
|
+
placeholder: e.Translate("base.placeholder.input")
|
979
|
+
}, null, 8, ["modelValue", "placeholder"])
|
980
|
+
]),
|
981
|
+
_: 1
|
982
|
+
}, 8, ["label"]),
|
983
|
+
l(t, {
|
984
|
+
label: e.Translate("menu.component"),
|
985
|
+
prop: "component"
|
986
|
+
}, {
|
987
|
+
default: o(() => [
|
988
|
+
l(c, {
|
989
|
+
modelValue: e.formData.component,
|
990
|
+
"onUpdate:modelValue": a[5] || (a[5] = (n) => e.formData.component = n),
|
991
|
+
placeholder: e.Translate("base.placeholder.input")
|
992
|
+
}, null, 8, ["modelValue", "placeholder"])
|
993
|
+
]),
|
994
|
+
_: 1
|
995
|
+
}, 8, ["label"]),
|
996
|
+
l(t, {
|
997
|
+
label: e.Translate("base.url"),
|
998
|
+
prop: "url"
|
999
|
+
}, {
|
1000
|
+
default: o(() => [
|
1001
|
+
l(c, {
|
1002
|
+
modelValue: e.formData.url,
|
1003
|
+
"onUpdate:modelValue": a[6] || (a[6] = (n) => e.formData.url = n),
|
1004
|
+
placeholder: e.Translate("base.placeholder.input")
|
1005
|
+
}, null, 8, ["modelValue", "placeholder"])
|
1006
|
+
]),
|
1007
|
+
_: 1
|
1008
|
+
}, 8, ["label"]),
|
1009
|
+
l(t, {
|
1010
|
+
label: e.Translate("base.remark"),
|
1011
|
+
prop: "remark"
|
1012
|
+
}, {
|
1013
|
+
default: o(() => [
|
1014
|
+
l(c, {
|
1015
|
+
modelValue: e.formData.remark,
|
1016
|
+
"onUpdate:modelValue": a[7] || (a[7] = (n) => e.formData.remark = n),
|
1017
|
+
placeholder: e.Translate("base.placeholder.input")
|
1018
|
+
}, null, 8, ["modelValue", "placeholder"])
|
1019
|
+
]),
|
1020
|
+
_: 1
|
1021
|
+
}, 8, ["label"])
|
1022
|
+
]),
|
1023
|
+
_: 1
|
1024
|
+
}),
|
1025
|
+
l(r, { span: 12 }, {
|
1026
|
+
default: o(() => [
|
1027
|
+
l(t, {
|
1028
|
+
label: e.Translate("base.icon"),
|
1029
|
+
prop: "icon"
|
1030
|
+
}, {
|
1031
|
+
default: o(() => [
|
1032
|
+
l(c, {
|
1033
|
+
modelValue: e.formData.icon,
|
1034
|
+
"onUpdate:modelValue": a[8] || (a[8] = (n) => e.formData.icon = n),
|
1035
|
+
placeholder: e.Translate("base.placeholder.input"),
|
1036
|
+
onInput: a[9] || (a[9] = (n) => {
|
1037
|
+
e.formData.meta.icon = n;
|
1038
|
+
})
|
864
1039
|
}, {
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
placeholder: e(a)("base.placeholder.input")
|
870
|
-
}, null, 8, ["modelValue", "placeholder"])
|
1040
|
+
prepend: o(() => [
|
1041
|
+
B("span", {
|
1042
|
+
class: ne("iconfont " + e.formData.icon)
|
1043
|
+
}, null, 2)
|
871
1044
|
]),
|
872
1045
|
_: 1
|
873
|
-
}, 8, ["
|
1046
|
+
}, 8, ["modelValue", "placeholder"])
|
874
1047
|
]),
|
875
1048
|
_: 1
|
876
|
-
}),
|
877
|
-
l(
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
1049
|
+
}, 8, ["label"]),
|
1050
|
+
l(t, {
|
1051
|
+
label: e.Translate("base.title"),
|
1052
|
+
prop: "meta.title"
|
1053
|
+
}, {
|
1054
|
+
default: o(() => [
|
1055
|
+
l(c, {
|
1056
|
+
modelValue: e.formData.meta.title,
|
1057
|
+
"onUpdate:modelValue": a[10] || (a[10] = (n) => e.formData.meta.title = n),
|
1058
|
+
placeholder: e.Translate("base.placeholder.input")
|
1059
|
+
}, null, 8, ["modelValue", "placeholder"])
|
1060
|
+
]),
|
1061
|
+
_: 1
|
1062
|
+
}, 8, ["label"]),
|
1063
|
+
l(t, {
|
1064
|
+
label: e.Translate("menu.active"),
|
1065
|
+
prop: "meta.active"
|
1066
|
+
}, {
|
1067
|
+
default: o(() => [
|
1068
|
+
l(c, {
|
1069
|
+
modelValue: e.formData.meta.active,
|
1070
|
+
"onUpdate:modelValue": a[11] || (a[11] = (n) => e.formData.meta.active = n),
|
1071
|
+
placeholder: e.Translate("base.placeholder.input")
|
1072
|
+
}, null, 8, ["modelValue", "placeholder"])
|
1073
|
+
]),
|
1074
|
+
_: 1
|
1075
|
+
}, 8, ["label"]),
|
1076
|
+
l(_, null, {
|
1077
|
+
default: o(() => [
|
1078
|
+
l(r, { span: 12 }, {
|
1079
|
+
default: o(() => [
|
1080
|
+
l(t, {
|
1081
|
+
label: e.Translate("menu.link"),
|
1082
|
+
prop: "meta.link"
|
891
1083
|
}, {
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
1084
|
+
default: o(() => [
|
1085
|
+
l(u, {
|
1086
|
+
modelValue: e.formData.meta.link,
|
1087
|
+
"onUpdate:modelValue": a[12] || (a[12] = (n) => e.formData.meta.link = n)
|
1088
|
+
}, null, 8, ["modelValue"])
|
896
1089
|
]),
|
897
1090
|
_: 1
|
898
|
-
}, 8, ["
|
899
|
-
]),
|
900
|
-
_: 1
|
901
|
-
}, 8, ["label"]),
|
902
|
-
l(u, {
|
903
|
-
label: e(a)("base.title"),
|
904
|
-
prop: "meta.title"
|
905
|
-
}, {
|
906
|
-
default: t(() => [
|
907
|
-
l(_, {
|
908
|
-
modelValue: e(n).meta.title,
|
909
|
-
"onUpdate:modelValue": o[10] || (o[10] = (m) => e(n).meta.title = m),
|
910
|
-
placeholder: e(a)("base.placeholder.input")
|
911
|
-
}, null, 8, ["modelValue", "placeholder"])
|
1091
|
+
}, 8, ["label"])
|
912
1092
|
]),
|
913
1093
|
_: 1
|
914
|
-
}
|
915
|
-
l(
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
"onUpdate:modelValue": o[11] || (o[11] = (m) => e(n).meta.active = m),
|
923
|
-
placeholder: e(a)("base.placeholder.input")
|
924
|
-
}, null, 8, ["modelValue", "placeholder"])
|
925
|
-
]),
|
926
|
-
_: 1
|
927
|
-
}, 8, ["label"]),
|
928
|
-
l(A, null, {
|
929
|
-
default: t(() => [
|
930
|
-
l(r, { span: 12 }, {
|
931
|
-
default: t(() => [
|
932
|
-
l(u, {
|
933
|
-
label: e(a)("menu.link"),
|
934
|
-
prop: "meta.link"
|
935
|
-
}, {
|
936
|
-
default: t(() => [
|
937
|
-
l(y, {
|
938
|
-
modelValue: e(n).meta.link,
|
939
|
-
"onUpdate:modelValue": o[12] || (o[12] = (m) => e(n).meta.link = m)
|
940
|
-
}, null, 8, ["modelValue"])
|
941
|
-
]),
|
942
|
-
_: 1
|
943
|
-
}, 8, ["label"])
|
944
|
-
]),
|
945
|
-
_: 1
|
946
|
-
}),
|
947
|
-
l(r, { span: 12 }, {
|
948
|
-
default: t(() => [
|
1094
|
+
}),
|
1095
|
+
l(r, { span: 12 }, {
|
1096
|
+
default: o(() => [
|
1097
|
+
l(t, {
|
1098
|
+
label: e.Translate("menu.keep_alive"),
|
1099
|
+
prop: "meta.keep_alive"
|
1100
|
+
}, {
|
1101
|
+
default: o(() => [
|
949
1102
|
l(u, {
|
950
|
-
|
951
|
-
|
952
|
-
},
|
953
|
-
default: t(() => [
|
954
|
-
l(y, {
|
955
|
-
modelValue: e(n).meta.keep_alive,
|
956
|
-
"onUpdate:modelValue": o[13] || (o[13] = (m) => e(n).meta.keep_alive = m)
|
957
|
-
}, null, 8, ["modelValue"])
|
958
|
-
]),
|
959
|
-
_: 1
|
960
|
-
}, 8, ["label"])
|
1103
|
+
modelValue: e.formData.meta.keep_alive,
|
1104
|
+
"onUpdate:modelValue": a[13] || (a[13] = (n) => e.formData.meta.keep_alive = n)
|
1105
|
+
}, null, 8, ["modelValue"])
|
961
1106
|
]),
|
962
1107
|
_: 1
|
963
|
-
})
|
964
|
-
|
965
|
-
|
1108
|
+
}, 8, ["label"])
|
1109
|
+
]),
|
1110
|
+
_: 1
|
1111
|
+
}),
|
1112
|
+
l(r, { span: 12 }, {
|
1113
|
+
default: o(() => [
|
1114
|
+
l(t, {
|
1115
|
+
label: e.Translate("menu.hide"),
|
1116
|
+
prop: "meta.hide"
|
1117
|
+
}, {
|
1118
|
+
default: o(() => [
|
966
1119
|
l(u, {
|
967
|
-
|
968
|
-
|
969
|
-
},
|
970
|
-
default: t(() => [
|
971
|
-
l(y, {
|
972
|
-
modelValue: e(n).meta.hide,
|
973
|
-
"onUpdate:modelValue": o[14] || (o[14] = (m) => e(n).meta.hide = m)
|
974
|
-
}, null, 8, ["modelValue"])
|
975
|
-
]),
|
976
|
-
_: 1
|
977
|
-
}, 8, ["label"])
|
1120
|
+
modelValue: e.formData.meta.hide,
|
1121
|
+
"onUpdate:modelValue": a[14] || (a[14] = (n) => e.formData.meta.hide = n)
|
1122
|
+
}, null, 8, ["modelValue"])
|
978
1123
|
]),
|
979
1124
|
_: 1
|
980
|
-
})
|
981
|
-
|
982
|
-
|
1125
|
+
}, 8, ["label"])
|
1126
|
+
]),
|
1127
|
+
_: 1
|
1128
|
+
}),
|
1129
|
+
l(r, { span: 12 }, {
|
1130
|
+
default: o(() => [
|
1131
|
+
l(t, {
|
1132
|
+
label: e.Translate("menu.full"),
|
1133
|
+
prop: "meta.full"
|
1134
|
+
}, {
|
1135
|
+
default: o(() => [
|
983
1136
|
l(u, {
|
984
|
-
|
985
|
-
|
986
|
-
},
|
987
|
-
default: t(() => [
|
988
|
-
l(y, {
|
989
|
-
modelValue: e(n).meta.full,
|
990
|
-
"onUpdate:modelValue": o[15] || (o[15] = (m) => e(n).meta.full = m)
|
991
|
-
}, null, 8, ["modelValue"])
|
992
|
-
]),
|
993
|
-
_: 1
|
994
|
-
}, 8, ["label"])
|
1137
|
+
modelValue: e.formData.meta.full,
|
1138
|
+
"onUpdate:modelValue": a[15] || (a[15] = (n) => e.formData.meta.full = n)
|
1139
|
+
}, null, 8, ["modelValue"])
|
995
1140
|
]),
|
996
1141
|
_: 1
|
997
|
-
})
|
998
|
-
|
999
|
-
|
1142
|
+
}, 8, ["label"])
|
1143
|
+
]),
|
1144
|
+
_: 1
|
1145
|
+
}),
|
1146
|
+
l(r, { span: 12 }, {
|
1147
|
+
default: o(() => [
|
1148
|
+
l(t, {
|
1149
|
+
label: e.Translate("menu.affix"),
|
1150
|
+
prop: "meta.affix"
|
1151
|
+
}, {
|
1152
|
+
default: o(() => [
|
1000
1153
|
l(u, {
|
1001
|
-
|
1002
|
-
|
1003
|
-
},
|
1004
|
-
default: t(() => [
|
1005
|
-
l(y, {
|
1006
|
-
modelValue: e(n).meta.affix,
|
1007
|
-
"onUpdate:modelValue": o[16] || (o[16] = (m) => e(n).meta.affix = m)
|
1008
|
-
}, null, 8, ["modelValue"])
|
1009
|
-
]),
|
1010
|
-
_: 1
|
1011
|
-
}, 8, ["label"])
|
1154
|
+
modelValue: e.formData.meta.affix,
|
1155
|
+
"onUpdate:modelValue": a[16] || (a[16] = (n) => e.formData.meta.affix = n)
|
1156
|
+
}, null, 8, ["modelValue"])
|
1012
1157
|
]),
|
1013
1158
|
_: 1
|
1014
|
-
})
|
1159
|
+
}, 8, ["label"])
|
1015
1160
|
]),
|
1016
1161
|
_: 1
|
1017
1162
|
})
|
@@ -1023,13 +1168,15 @@ const qe = /* @__PURE__ */ D({
|
|
1023
1168
|
})
|
1024
1169
|
]),
|
1025
1170
|
_: 1
|
1026
|
-
}
|
1171
|
+
})
|
1027
1172
|
]),
|
1028
1173
|
_: 1
|
1029
|
-
}, 8, ["
|
1030
|
-
|
1031
|
-
|
1032
|
-
}
|
1174
|
+
}, 8, ["model", "disabled"])
|
1175
|
+
]),
|
1176
|
+
_: 1
|
1177
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
1178
|
+
}
|
1179
|
+
const Ie = /* @__PURE__ */ R(Pe, [["render", Le], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/menu/components/info.vue"]]), je = /* @__PURE__ */ U({
|
1033
1180
|
__name: "menuSelect",
|
1034
1181
|
props: {
|
1035
1182
|
modelValue: {
|
@@ -1042,49 +1189,84 @@ const qe = /* @__PURE__ */ D({
|
|
1042
1189
|
}
|
1043
1190
|
},
|
1044
1191
|
emits: ["update:modelValue", "change"],
|
1045
|
-
setup(
|
1046
|
-
|
1192
|
+
setup(h, {
|
1193
|
+
expose: a,
|
1194
|
+
emit: f
|
1047
1195
|
}) {
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1196
|
+
a();
|
1197
|
+
const e = f, p = h, {
|
1198
|
+
requesting: g
|
1199
|
+
} = O(A), {
|
1200
|
+
value: t,
|
1201
|
+
options: r,
|
1202
|
+
change: m,
|
1203
|
+
refresh: _,
|
1204
|
+
filterOptions: c
|
1205
|
+
} = ae(le(p, "modelValue"), e, {
|
1057
1206
|
key: "MENU_LIST",
|
1058
|
-
api:
|
1207
|
+
api: A,
|
1059
1208
|
isArray: !0
|
1060
|
-
})
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
}
|
1075
|
-
prefix: t(() => [l(e(me), {
|
1076
|
-
loading: e(w),
|
1077
|
-
onRefresh: g[0] || (g[0] = (V) => e(i)(!0))
|
1078
|
-
}, null, 8, ["loading"])]),
|
1079
|
-
_: 1
|
1080
|
-
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
1209
|
+
}), u = {
|
1210
|
+
emit: e,
|
1211
|
+
props: p,
|
1212
|
+
requesting: g,
|
1213
|
+
value: t,
|
1214
|
+
options: r,
|
1215
|
+
change: m,
|
1216
|
+
refresh: _,
|
1217
|
+
filterOptions: c,
|
1218
|
+
get Translate() {
|
1219
|
+
return s;
|
1220
|
+
},
|
1221
|
+
get InlineRefreshButton() {
|
1222
|
+
return de;
|
1223
|
+
}
|
1081
1224
|
};
|
1225
|
+
return Object.defineProperty(u, "__isScriptSetup", {
|
1226
|
+
enumerable: !1,
|
1227
|
+
value: !0
|
1228
|
+
}), u;
|
1082
1229
|
}
|
1083
|
-
})
|
1230
|
+
});
|
1231
|
+
function Fe(h, a, f, e, p, g) {
|
1232
|
+
const t = i("el-space"), r = i("el-select-v2");
|
1233
|
+
return T(), x(r, {
|
1234
|
+
class: "w-full",
|
1235
|
+
modelValue: e.value,
|
1236
|
+
"onUpdate:modelValue": a[1] || (a[1] = (m) => e.value = m),
|
1237
|
+
options: e.options,
|
1238
|
+
multiple: f.multiple,
|
1239
|
+
disabled: e.requesting,
|
1240
|
+
placeholder: e.Translate("base.placeholder.select"),
|
1241
|
+
filterable: "",
|
1242
|
+
filterOptions: e.filterOptions,
|
1243
|
+
onChange: e.change
|
1244
|
+
}, {
|
1245
|
+
prefix: o(() => [
|
1246
|
+
l(e.InlineRefreshButton, {
|
1247
|
+
loading: e.requesting,
|
1248
|
+
onRefresh: a[0] || (a[0] = (m) => e.refresh(!0))
|
1249
|
+
}, null, 8, ["loading"])
|
1250
|
+
]),
|
1251
|
+
default: o(({ item: m }) => [
|
1252
|
+
l(t, null, {
|
1253
|
+
default: o(() => [
|
1254
|
+
B("i", {
|
1255
|
+
class: ne(`icon iconfont ${m.icon}`)
|
1256
|
+
}, null, 2),
|
1257
|
+
B("span", null, K(m.translate), 1)
|
1258
|
+
]),
|
1259
|
+
_: 2
|
1260
|
+
}, 1024)
|
1261
|
+
]),
|
1262
|
+
_: 1
|
1263
|
+
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
1264
|
+
}
|
1265
|
+
const Ke = /* @__PURE__ */ R(je, [["render", Fe], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/menu/components/menuSelect.vue"]]), ze = /* @__PURE__ */ U({
|
1084
1266
|
__name: "rule",
|
1085
1267
|
emits: ["refresh"],
|
1086
|
-
setup(
|
1087
|
-
const
|
1268
|
+
setup(h, { expose: a, emit: f }) {
|
1269
|
+
const e = f, p = {
|
1088
1270
|
key: "",
|
1089
1271
|
menu_id: 0,
|
1090
1272
|
sort: 0,
|
@@ -1092,258 +1274,268 @@ const qe = /* @__PURE__ */ D({
|
|
1092
1274
|
en_name: "",
|
1093
1275
|
urls: "",
|
1094
1276
|
remark: ""
|
1095
|
-
},
|
1277
|
+
}, g = {
|
1096
1278
|
menu_id: [
|
1097
|
-
{ required: !0, type: "number", message:
|
1279
|
+
{ required: !0, type: "number", message: s("base.placeholder.select menu.Menu"), trigger: "blur" }
|
1098
1280
|
],
|
1099
1281
|
sort: [
|
1100
|
-
{ required: !0, type: "number", message:
|
1282
|
+
{ required: !0, type: "number", message: s("base.placeholder.input base.sort"), trigger: "blur" }
|
1101
1283
|
],
|
1102
1284
|
name: [
|
1103
|
-
{ required: !0, message:
|
1285
|
+
{ required: !0, message: s("base.placeholder.input base.name"), trigger: "blur" }
|
1104
1286
|
],
|
1105
1287
|
en_name: [
|
1106
|
-
{ required: !0, message:
|
1288
|
+
{ required: !0, message: s("base.placeholder.input base.en_name"), trigger: "blur" }
|
1107
1289
|
],
|
1108
1290
|
urls: [
|
1109
|
-
{ required: !0, message:
|
1291
|
+
{ required: !0, message: s("base.placeholder.input base.rules"), trigger: "blur" }
|
1110
1292
|
]
|
1111
|
-
}, { modal:
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
)
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
})
|
1121
|
-
|
1122
|
-
return
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1293
|
+
}, { modal: t, title: r, form: m, formData: _, requesting: c, executing: u, open: d, modify: n, submit: v, closed: w } = L(
|
1294
|
+
e,
|
1295
|
+
p,
|
1296
|
+
se
|
1297
|
+
), D = (V) => {
|
1298
|
+
V ? n({ key: V }) : d();
|
1299
|
+
};
|
1300
|
+
a({
|
1301
|
+
openOrModify: D
|
1302
|
+
});
|
1303
|
+
const b = { emits: e, DEFAULT_DATA: p, rules: g, modal: t, title: r, form: m, formData: _, requesting: c, executing: u, open: d, modify: n, submit: v, closed: w, openOrModify: D, get Translate() {
|
1304
|
+
return s;
|
1305
|
+
}, get FormDialog() {
|
1306
|
+
return I;
|
1307
|
+
}, MenuSelect: Ke };
|
1308
|
+
return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
|
1309
|
+
}
|
1310
|
+
});
|
1311
|
+
function Ne(h, a, f, e, p, g) {
|
1312
|
+
const t = i("el-form-item"), r = i("el-input-number"), m = i("el-input"), _ = i("el-col"), c = i("el-row"), u = i("el-form");
|
1313
|
+
return T(), x(e.FormDialog, {
|
1314
|
+
modelValue: e.modal,
|
1315
|
+
"onUpdate:modelValue": a[6] || (a[6] = (d) => e.modal = d),
|
1316
|
+
title: e.title("base.rules"),
|
1317
|
+
width: "1000px",
|
1318
|
+
executing: e.executing,
|
1319
|
+
onClosed: e.closed,
|
1320
|
+
onSubmit: e.submit
|
1321
|
+
}, {
|
1322
|
+
default: o(() => [
|
1323
|
+
l(u, {
|
1324
|
+
ref: "form",
|
1325
|
+
model: e.formData,
|
1326
|
+
"label-width": "auto",
|
1327
|
+
rules: e.rules,
|
1328
|
+
disabled: e.requesting || e.executing
|
1130
1329
|
}, {
|
1131
|
-
default:
|
1132
|
-
l(
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
l(u, {
|
1146
|
-
label: e(a)("menu.Menu"),
|
1147
|
-
prop: "menu_id"
|
1148
|
-
}, {
|
1149
|
-
default: t(() => [
|
1150
|
-
l(Le, {
|
1151
|
-
modelValue: e(n).menu_id,
|
1152
|
-
"onUpdate:modelValue": o[0] || (o[0] = (O) => e(n).menu_id = O)
|
1153
|
-
}, null, 8, ["modelValue"])
|
1154
|
-
]),
|
1155
|
-
_: 1
|
1156
|
-
}, 8, ["label"]),
|
1157
|
-
l(u, {
|
1158
|
-
label: e(a)("base.sort"),
|
1159
|
-
prop: "sort"
|
1160
|
-
}, {
|
1161
|
-
default: t(() => [
|
1162
|
-
l(r, {
|
1163
|
-
class: "w-full",
|
1164
|
-
modelValue: e(n).sort,
|
1165
|
-
"onUpdate:modelValue": o[1] || (o[1] = (O) => e(n).sort = O),
|
1166
|
-
min: 0,
|
1167
|
-
placeholder: e(a)("base.placeholder.input")
|
1168
|
-
}, null, 8, ["modelValue", "placeholder"])
|
1169
|
-
]),
|
1170
|
-
_: 1
|
1171
|
-
}, 8, ["label"]),
|
1172
|
-
l(u, {
|
1173
|
-
label: e(a)("base.name"),
|
1174
|
-
prop: "name"
|
1175
|
-
}, {
|
1176
|
-
default: t(() => [
|
1177
|
-
l(x, {
|
1178
|
-
modelValue: e(n).name,
|
1179
|
-
"onUpdate:modelValue": o[2] || (o[2] = (O) => e(n).name = O),
|
1180
|
-
placeholder: e(a)("base.placeholder.input")
|
1181
|
-
}, null, 8, ["modelValue", "placeholder"])
|
1182
|
-
]),
|
1183
|
-
_: 1
|
1184
|
-
}, 8, ["label"]),
|
1185
|
-
l(u, {
|
1186
|
-
label: e(a)("base.en_name"),
|
1187
|
-
prop: "en_name"
|
1188
|
-
}, {
|
1189
|
-
default: t(() => [
|
1190
|
-
l(x, {
|
1191
|
-
modelValue: e(n).en_name,
|
1192
|
-
"onUpdate:modelValue": o[3] || (o[3] = (O) => e(n).en_name = O),
|
1193
|
-
placeholder: e(a)("base.placeholder.input")
|
1194
|
-
}, null, 8, ["modelValue", "placeholder"])
|
1195
|
-
]),
|
1196
|
-
_: 1
|
1197
|
-
}, 8, ["label"]),
|
1198
|
-
l(u, {
|
1199
|
-
label: e(a)("base.remark"),
|
1200
|
-
prop: "remark"
|
1201
|
-
}, {
|
1202
|
-
default: t(() => [
|
1203
|
-
l(x, {
|
1204
|
-
modelValue: e(n).remark,
|
1205
|
-
"onUpdate:modelValue": o[4] || (o[4] = (O) => e(n).remark = O),
|
1206
|
-
placeholder: e(a)("base.placeholder.input")
|
1207
|
-
}, null, 8, ["modelValue", "placeholder"])
|
1208
|
-
]),
|
1209
|
-
_: 1
|
1210
|
-
}, 8, ["label"])
|
1330
|
+
default: o(() => [
|
1331
|
+
l(c, { gutter: 20 }, {
|
1332
|
+
default: o(() => [
|
1333
|
+
l(_, { span: 10 }, {
|
1334
|
+
default: o(() => [
|
1335
|
+
l(t, {
|
1336
|
+
label: e.Translate("menu.Menu"),
|
1337
|
+
prop: "menu_id"
|
1338
|
+
}, {
|
1339
|
+
default: o(() => [
|
1340
|
+
l(e.MenuSelect, {
|
1341
|
+
modelValue: e.formData.menu_id,
|
1342
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => e.formData.menu_id = d)
|
1343
|
+
}, null, 8, ["modelValue"])
|
1211
1344
|
]),
|
1212
1345
|
_: 1
|
1213
|
-
}),
|
1214
|
-
l(
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
placeholder: e(a)("base.placeholder.input")
|
1227
|
-
}, null, 8, ["modelValue", "placeholder"])
|
1228
|
-
]),
|
1229
|
-
_: 1
|
1230
|
-
}, 8, ["label"])
|
1346
|
+
}, 8, ["label"]),
|
1347
|
+
l(t, {
|
1348
|
+
label: e.Translate("base.sort"),
|
1349
|
+
prop: "sort"
|
1350
|
+
}, {
|
1351
|
+
default: o(() => [
|
1352
|
+
l(r, {
|
1353
|
+
class: "w-full",
|
1354
|
+
modelValue: e.formData.sort,
|
1355
|
+
"onUpdate:modelValue": a[1] || (a[1] = (d) => e.formData.sort = d),
|
1356
|
+
min: 0,
|
1357
|
+
placeholder: e.Translate("base.placeholder.input")
|
1358
|
+
}, null, 8, ["modelValue", "placeholder"])
|
1231
1359
|
]),
|
1232
1360
|
_: 1
|
1233
|
-
})
|
1361
|
+
}, 8, ["label"]),
|
1362
|
+
l(t, {
|
1363
|
+
label: e.Translate("base.name"),
|
1364
|
+
prop: "name"
|
1365
|
+
}, {
|
1366
|
+
default: o(() => [
|
1367
|
+
l(m, {
|
1368
|
+
modelValue: e.formData.name,
|
1369
|
+
"onUpdate:modelValue": a[2] || (a[2] = (d) => e.formData.name = d),
|
1370
|
+
placeholder: e.Translate("base.placeholder.input")
|
1371
|
+
}, null, 8, ["modelValue", "placeholder"])
|
1372
|
+
]),
|
1373
|
+
_: 1
|
1374
|
+
}, 8, ["label"]),
|
1375
|
+
l(t, {
|
1376
|
+
label: e.Translate("base.en_name"),
|
1377
|
+
prop: "en_name"
|
1378
|
+
}, {
|
1379
|
+
default: o(() => [
|
1380
|
+
l(m, {
|
1381
|
+
modelValue: e.formData.en_name,
|
1382
|
+
"onUpdate:modelValue": a[3] || (a[3] = (d) => e.formData.en_name = d),
|
1383
|
+
placeholder: e.Translate("base.placeholder.input")
|
1384
|
+
}, null, 8, ["modelValue", "placeholder"])
|
1385
|
+
]),
|
1386
|
+
_: 1
|
1387
|
+
}, 8, ["label"]),
|
1388
|
+
l(t, {
|
1389
|
+
label: e.Translate("base.remark"),
|
1390
|
+
prop: "remark"
|
1391
|
+
}, {
|
1392
|
+
default: o(() => [
|
1393
|
+
l(m, {
|
1394
|
+
modelValue: e.formData.remark,
|
1395
|
+
"onUpdate:modelValue": a[4] || (a[4] = (d) => e.formData.remark = d),
|
1396
|
+
placeholder: e.Translate("base.placeholder.input")
|
1397
|
+
}, null, 8, ["modelValue", "placeholder"])
|
1398
|
+
]),
|
1399
|
+
_: 1
|
1400
|
+
}, 8, ["label"])
|
1401
|
+
]),
|
1402
|
+
_: 1
|
1403
|
+
}),
|
1404
|
+
l(_, { span: 14 }, {
|
1405
|
+
default: o(() => [
|
1406
|
+
l(t, {
|
1407
|
+
label: e.Translate("base.rules"),
|
1408
|
+
prop: "urls"
|
1409
|
+
}, {
|
1410
|
+
default: o(() => [
|
1411
|
+
l(m, {
|
1412
|
+
modelValue: e.formData.urls,
|
1413
|
+
"onUpdate:modelValue": a[5] || (a[5] = (d) => e.formData.urls = d),
|
1414
|
+
type: "textarea",
|
1415
|
+
rows: 11,
|
1416
|
+
placeholder: e.Translate("base.placeholder.input")
|
1417
|
+
}, null, 8, ["modelValue", "placeholder"])
|
1418
|
+
]),
|
1419
|
+
_: 1
|
1420
|
+
}, 8, ["label"])
|
1234
1421
|
]),
|
1235
1422
|
_: 1
|
1236
1423
|
})
|
1237
1424
|
]),
|
1238
1425
|
_: 1
|
1239
|
-
}
|
1426
|
+
})
|
1240
1427
|
]),
|
1241
1428
|
_: 1
|
1242
|
-
}, 8, ["
|
1243
|
-
|
1244
|
-
|
1245
|
-
});
|
1246
|
-
function pe(U) {
|
1247
|
-
return typeof U == "function" || Object.prototype.toString.call(U) === "[object Object]" && !fe(U);
|
1429
|
+
}, 8, ["model", "disabled"])
|
1430
|
+
]),
|
1431
|
+
_: 1
|
1432
|
+
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
1248
1433
|
}
|
1249
|
-
const
|
1434
|
+
const Ye = /* @__PURE__ */ R(ze, [["render", Ne], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/menu/components/rule.vue"]]);
|
1435
|
+
function re(h) {
|
1436
|
+
return typeof h == "function" || Object.prototype.toString.call(h) === "[object Object]" && !ue(h);
|
1437
|
+
}
|
1438
|
+
const Ge = /* @__PURE__ */ U({
|
1250
1439
|
__name: "index",
|
1251
|
-
setup(
|
1252
|
-
|
1440
|
+
setup(h, {
|
1441
|
+
expose: a
|
1442
|
+
}) {
|
1443
|
+
a();
|
1444
|
+
const f = {
|
1253
1445
|
keyword: "",
|
1254
1446
|
status: 0
|
1255
|
-
},
|
1447
|
+
}, e = N(""), p = [
|
1256
1448
|
{
|
1257
|
-
label:
|
1449
|
+
label: s("base.sort"),
|
1258
1450
|
prop: "sort",
|
1259
1451
|
width: 60
|
1260
1452
|
},
|
1261
1453
|
{
|
1262
|
-
label:
|
1454
|
+
label: s("base.icon"),
|
1263
1455
|
prop: "icon",
|
1264
1456
|
width: 60,
|
1265
1457
|
render: ({
|
1266
|
-
row:
|
1458
|
+
row: y
|
1267
1459
|
}) => l("span", {
|
1268
|
-
class: "iconfont " +
|
1460
|
+
class: "iconfont " + y.icon,
|
1269
1461
|
style: "font-size: 16px;"
|
1270
1462
|
}, null)
|
1271
1463
|
},
|
1272
1464
|
{
|
1273
|
-
label:
|
1465
|
+
label: s("base.module"),
|
1274
1466
|
prop: "module",
|
1275
1467
|
width: 120
|
1276
1468
|
},
|
1277
1469
|
{
|
1278
|
-
label:
|
1470
|
+
label: s("base.parent"),
|
1279
1471
|
prop: "parent",
|
1280
1472
|
width: 120,
|
1281
1473
|
render: ({
|
1282
|
-
row:
|
1474
|
+
row: y
|
1283
1475
|
}) => {
|
1284
|
-
var
|
1285
|
-
return l(
|
1476
|
+
var k;
|
1477
|
+
return l(q, null, [(k = y.menu) == null ? void 0 : k.name]);
|
1286
1478
|
}
|
1287
1479
|
},
|
1288
1480
|
{
|
1289
|
-
label:
|
1481
|
+
label: s("base.name"),
|
1290
1482
|
prop: "translate",
|
1291
1483
|
width: 120
|
1292
1484
|
},
|
1293
1485
|
// name 字段优先查看实体内是否有 translate 无则使用name
|
1294
1486
|
{
|
1295
|
-
label:
|
1487
|
+
label: s("base.url"),
|
1296
1488
|
prop: "url",
|
1297
1489
|
align: "left",
|
1298
1490
|
width: 200
|
1299
1491
|
},
|
1300
1492
|
{
|
1301
|
-
label:
|
1493
|
+
label: s("menu.component"),
|
1302
1494
|
prop: "component",
|
1303
1495
|
align: "left",
|
1304
1496
|
width: 200
|
1305
1497
|
},
|
1306
1498
|
{
|
1307
|
-
label:
|
1499
|
+
label: s("menu.rules"),
|
1308
1500
|
prop: "rules",
|
1309
1501
|
width: 0,
|
1310
1502
|
align: "left",
|
1311
1503
|
render: ({
|
1312
|
-
row:
|
1313
|
-
}) => l(
|
1504
|
+
row: y
|
1505
|
+
}) => l(i("el-space"), null, {
|
1314
1506
|
default: () => {
|
1315
|
-
var
|
1316
|
-
return [(
|
1317
|
-
visible:
|
1318
|
-
title:
|
1507
|
+
var k;
|
1508
|
+
return [(k = y.rules) == null ? void 0 : k.map((S) => l(i("el-popover"), {
|
1509
|
+
visible: e.value === S.key,
|
1510
|
+
title: s("message.title.warning"),
|
1319
1511
|
placement: "top-end",
|
1320
1512
|
width: 220
|
1321
1513
|
}, {
|
1322
|
-
reference: () => l(
|
1514
|
+
reference: () => l(i("el-tag"), {
|
1323
1515
|
class: "cursor-pointer",
|
1324
1516
|
closable: !0,
|
1325
|
-
key:
|
1326
|
-
onClick: () => S
|
1327
|
-
onClose: () =>
|
1517
|
+
key: S.key,
|
1518
|
+
onClick: () => D(S.key),
|
1519
|
+
onClose: () => e.value = S.key
|
1328
1520
|
}, {
|
1329
|
-
default: () => [
|
1521
|
+
default: () => [S.translate]
|
1330
1522
|
}),
|
1331
1523
|
default: () => {
|
1332
|
-
let
|
1333
|
-
return l("div", null, [l("p", null, null), l("p", null, [`${
|
1524
|
+
let Z, $;
|
1525
|
+
return l("div", null, [l("p", null, null), l("p", null, [`${s("base.confirm base.delete base.rules")}: ${y.translate}-${S.translate} ?`]), l("div", {
|
1334
1526
|
style: "text-align: right; margin: 0"
|
1335
|
-
}, [l(
|
1527
|
+
}, [l(i("el-button"), {
|
1336
1528
|
size: "small",
|
1337
1529
|
text: !0,
|
1338
|
-
onClick: () =>
|
1339
|
-
},
|
1340
|
-
default: () => [
|
1341
|
-
}), l(
|
1530
|
+
onClick: () => e.value = ""
|
1531
|
+
}, re(Z = s("base.cancel")) ? Z : {
|
1532
|
+
default: () => [Z]
|
1533
|
+
}), l(i("el-button"), {
|
1342
1534
|
size: "small",
|
1343
1535
|
type: "danger",
|
1344
|
-
onClick: () =>
|
1345
|
-
},
|
1346
|
-
default: () => [
|
1536
|
+
onClick: () => b(S.key)
|
1537
|
+
}, re($ = s("base.confirm")) ? $ : {
|
1538
|
+
default: () => [$]
|
1347
1539
|
})])]);
|
1348
1540
|
}
|
1349
1541
|
}))];
|
@@ -1351,289 +1543,352 @@ const De = /* @__PURE__ */ D({
|
|
1351
1543
|
})
|
1352
1544
|
},
|
1353
1545
|
{
|
1354
|
-
label:
|
1546
|
+
label: s("base.status"),
|
1355
1547
|
prop: "status",
|
1356
1548
|
width: 80,
|
1357
1549
|
type: "switch",
|
1358
1550
|
props: {
|
1359
1551
|
activeValue: 1,
|
1360
1552
|
inactiveValue: 2,
|
1361
|
-
api:
|
1553
|
+
api: A.urls[te],
|
1362
1554
|
refresh: !0
|
1363
1555
|
}
|
1364
1556
|
},
|
1365
1557
|
{
|
1366
1558
|
prop: "action",
|
1367
|
-
label:
|
1559
|
+
label: s("base.action"),
|
1368
1560
|
width: 60,
|
1369
1561
|
align: "center",
|
1370
1562
|
render: ({
|
1371
|
-
row:
|
1372
|
-
}) => l(
|
1373
|
-
onModify: () =>
|
1563
|
+
row: y
|
1564
|
+
}) => l(W, {
|
1565
|
+
onModify: () => n(y.id)
|
1374
1566
|
}, null)
|
1375
1567
|
}
|
1376
1568
|
], {
|
1377
|
-
requesting:
|
1378
|
-
} =
|
1379
|
-
tableRef:
|
1380
|
-
infoRef:
|
1381
|
-
keyword:
|
1382
|
-
search:
|
1383
|
-
refresh:
|
1384
|
-
reset:
|
1385
|
-
openInfo:
|
1386
|
-
modifyInfo:
|
1387
|
-
} =
|
1388
|
-
infoRef:
|
1389
|
-
openInfo:
|
1390
|
-
modifyInfo:
|
1391
|
-
} =
|
1392
|
-
|
1393
|
-
key:
|
1569
|
+
requesting: g
|
1570
|
+
} = O(A), {
|
1571
|
+
tableRef: t,
|
1572
|
+
infoRef: r,
|
1573
|
+
keyword: m,
|
1574
|
+
search: _,
|
1575
|
+
refresh: c,
|
1576
|
+
reset: u,
|
1577
|
+
openInfo: d,
|
1578
|
+
modifyInfo: n
|
1579
|
+
} = P(f), {
|
1580
|
+
infoRef: v,
|
1581
|
+
openInfo: w,
|
1582
|
+
modifyInfo: D
|
1583
|
+
} = P(), b = (y) => {
|
1584
|
+
se[ge]({
|
1585
|
+
key: y
|
1394
1586
|
}).then(() => {
|
1395
|
-
|
1587
|
+
e.value = "", c();
|
1396
1588
|
});
|
1589
|
+
}, V = {
|
1590
|
+
DEFAULT_KEYWORD: f,
|
1591
|
+
deleteKey: e,
|
1592
|
+
columns: p,
|
1593
|
+
requesting: g,
|
1594
|
+
tableRef: t,
|
1595
|
+
infoRef: r,
|
1596
|
+
keyword: m,
|
1597
|
+
search: _,
|
1598
|
+
refresh: c,
|
1599
|
+
reset: u,
|
1600
|
+
openInfo: d,
|
1601
|
+
modifyInfo: n,
|
1602
|
+
ruleRef: v,
|
1603
|
+
openRule: w,
|
1604
|
+
modifyRule: D,
|
1605
|
+
removeRule: b,
|
1606
|
+
get DEFAULT_PAGE_KEY() {
|
1607
|
+
return X;
|
1608
|
+
},
|
1609
|
+
get Translate() {
|
1610
|
+
return s;
|
1611
|
+
},
|
1612
|
+
get $api() {
|
1613
|
+
return A;
|
1614
|
+
},
|
1615
|
+
get iconKey() {
|
1616
|
+
return Ee;
|
1617
|
+
},
|
1618
|
+
get OpenButton() {
|
1619
|
+
return Q;
|
1620
|
+
},
|
1621
|
+
get RefreshButton() {
|
1622
|
+
return j;
|
1623
|
+
},
|
1624
|
+
get SearchButton() {
|
1625
|
+
return J;
|
1626
|
+
},
|
1627
|
+
get ProTable() {
|
1628
|
+
return H;
|
1629
|
+
},
|
1630
|
+
Info: Ie,
|
1631
|
+
Rule: Ye
|
1397
1632
|
};
|
1398
|
-
return (
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1633
|
+
return Object.defineProperty(V, "__isScriptSetup", {
|
1634
|
+
enumerable: !1,
|
1635
|
+
value: !0
|
1636
|
+
}), V;
|
1637
|
+
}
|
1638
|
+
});
|
1639
|
+
function We(h, a, f, e, p, g) {
|
1640
|
+
const t = i("el-button"), r = i("el-input"), m = i("el-radio-button"), _ = i("el-radio-group"), c = i("el-space"), u = i("el-page-header"), d = i("el-card");
|
1641
|
+
return T(), x(d, {
|
1642
|
+
class: "basic-card flex-full",
|
1643
|
+
"body-class": "flex-1",
|
1644
|
+
onClick: a[2] || (a[2] = () => e.deleteKey = "")
|
1645
|
+
}, {
|
1646
|
+
header: o(() => [
|
1647
|
+
l(u, { class: "basic-header" }, {
|
1648
|
+
title: o(() => [
|
1649
|
+
l(e.RefreshButton, {
|
1650
|
+
loading: e.requesting,
|
1651
|
+
onRefresh: e.refresh
|
1652
|
+
}, null, 8, ["loading", "onRefresh"]),
|
1653
|
+
l(e.OpenButton, { onOpen: e.openInfo }, null, 8, ["onOpen"]),
|
1654
|
+
l(t, {
|
1414
1655
|
circle: "",
|
1415
|
-
onClick: e
|
1416
|
-
icon: e
|
1417
|
-
}, null, 8, ["onClick", "icon"])
|
1418
|
-
|
1419
|
-
|
1420
|
-
}, {
|
1421
|
-
default:
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
modelValue
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1656
|
+
onClick: e.openRule,
|
1657
|
+
icon: e.iconKey
|
1658
|
+
}, null, 8, ["onClick", "icon"])
|
1659
|
+
]),
|
1660
|
+
content: o(() => [
|
1661
|
+
l(c, { class: "search-bar" }, {
|
1662
|
+
default: o(() => [
|
1663
|
+
l(r, {
|
1664
|
+
class: "basic-search-input",
|
1665
|
+
modelValue: e.keyword.keyword,
|
1666
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => e.keyword.keyword = n),
|
1667
|
+
placeholder: e.Translate("base.placeholder.keyword"),
|
1668
|
+
clearable: "",
|
1669
|
+
onKeyup: Y(e.search, ["enter"]),
|
1670
|
+
onClear: e.search
|
1671
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]),
|
1672
|
+
l(_, {
|
1673
|
+
modelValue: e.keyword.status,
|
1674
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => e.keyword.status = n),
|
1675
|
+
onChange: e.search
|
1676
|
+
}, {
|
1677
|
+
default: o(() => [
|
1678
|
+
(T(), C(q, null, M([0, 1, 2], (n) => l(m, {
|
1679
|
+
key: n,
|
1680
|
+
label: e.Translate(`base.DISABLE_ENABLE.${n}`),
|
1681
|
+
value: n
|
1682
|
+
}, null, 8, ["label", "value"])), 64))
|
1683
|
+
]),
|
1684
|
+
_: 1
|
1685
|
+
}, 8, ["modelValue", "onChange"]),
|
1686
|
+
l(e.SearchButton, {
|
1687
|
+
disabled: e.requesting,
|
1688
|
+
onSearch: e.search
|
1689
|
+
}, null, 8, ["disabled", "onSearch"])
|
1690
|
+
]),
|
1444
1691
|
_: 1
|
1445
|
-
})
|
1446
|
-
|
1447
|
-
})]),
|
1448
|
-
default: t(() => [l(e(le), {
|
1449
|
-
ref_key: "tableRef",
|
1450
|
-
ref: k,
|
1451
|
-
size: "small",
|
1452
|
-
columns: R,
|
1453
|
-
url: e($).urls[e(ae)],
|
1454
|
-
"search-param": e(s),
|
1455
|
-
autoSearch: ""
|
1456
|
-
}, null, 8, ["url", "search-param"]), l(Ee, {
|
1457
|
-
ref_key: "infoRef",
|
1458
|
-
ref: b,
|
1459
|
-
onRefresh: e(f)
|
1460
|
-
}, null, 8, ["onRefresh"]), l(Te, {
|
1461
|
-
ref_key: "ruleRef",
|
1462
|
-
ref: V,
|
1463
|
-
onRefresh: e(n)
|
1464
|
-
}, null, 8, ["onRefresh"])]),
|
1692
|
+
})
|
1693
|
+
]),
|
1465
1694
|
_: 1
|
1466
|
-
})
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1695
|
+
})
|
1696
|
+
]),
|
1697
|
+
default: o(() => [
|
1698
|
+
l(e.ProTable, {
|
1699
|
+
ref: "tableRef",
|
1700
|
+
size: "small",
|
1701
|
+
columns: e.columns,
|
1702
|
+
url: e.$api.urls[e.DEFAULT_PAGE_KEY],
|
1703
|
+
"search-param": e.keyword,
|
1704
|
+
autoSearch: ""
|
1705
|
+
}, null, 8, ["url", "search-param"]),
|
1706
|
+
l(e.Info, {
|
1707
|
+
ref: "infoRef",
|
1708
|
+
onRefresh: e.reset
|
1709
|
+
}, null, 8, ["onRefresh"]),
|
1710
|
+
l(e.Rule, {
|
1711
|
+
ref: "ruleRef",
|
1712
|
+
onRefresh: e.refresh
|
1713
|
+
}, null, 8, ["onRefresh"])
|
1714
|
+
]),
|
1715
|
+
_: 1
|
1716
|
+
});
|
1717
|
+
}
|
1718
|
+
const He = /* @__PURE__ */ R(Ge, [["render", We], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/menu/index.vue"]]), Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1470
1719
|
__proto__: null,
|
1471
|
-
default:
|
1472
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1720
|
+
default: He
|
1721
|
+
}, Symbol.toStringTag, { value: "Module" })), Qe = /* @__PURE__ */ U({
|
1473
1722
|
__name: "rulesCheck",
|
1474
1723
|
props: {
|
1475
1724
|
modelValue: { type: Array, required: !0 },
|
1476
1725
|
disabled: { type: Boolean, default: !1 }
|
1477
1726
|
},
|
1478
1727
|
emits: ["update:modelValue"],
|
1479
|
-
setup(
|
1480
|
-
const { requesting:
|
1728
|
+
setup(h, { expose: a, emit: f }) {
|
1729
|
+
const { requesting: e } = O(A), p = h, g = f, t = N(!1), r = ie({
|
1481
1730
|
checkAll: !1,
|
1482
1731
|
indeterminate: !1,
|
1483
1732
|
MenuAll: {},
|
1484
1733
|
MenuList: {},
|
1485
1734
|
MenuIndeterminate: {}
|
1486
|
-
}), { options:
|
1487
|
-
|
1488
|
-
|
1489
|
-
{ key: "RULE_CHECK", api:
|
1735
|
+
}), { options: m, refresh: _ } = ae(
|
1736
|
+
le(p, "modelValue"),
|
1737
|
+
g,
|
1738
|
+
{ key: "RULE_CHECK", api: A, url: A.urls.rules, isArray: !0 },
|
1490
1739
|
!1
|
1491
1740
|
);
|
1492
|
-
function
|
1493
|
-
|
1494
|
-
var
|
1495
|
-
(
|
1741
|
+
function c() {
|
1742
|
+
m.value.forEach((b) => {
|
1743
|
+
var V;
|
1744
|
+
(V = b.rules) != null && V.length && (r.MenuAll[b.id] = !1, r.MenuIndeterminate[b.id] = !1, r.MenuList[b.id] = []);
|
1496
1745
|
});
|
1497
1746
|
}
|
1498
|
-
function
|
1499
|
-
|
1500
|
-
var
|
1501
|
-
(
|
1502
|
-
}),
|
1747
|
+
function u(b) {
|
1748
|
+
m.value.forEach((V) => {
|
1749
|
+
var y;
|
1750
|
+
(y = V.rules) != null && y.length && (r.MenuList[V.id] = b ? V.rules.map((k) => k.key) : []);
|
1751
|
+
}), n();
|
1503
1752
|
}
|
1504
|
-
function
|
1505
|
-
const
|
1506
|
-
|
1753
|
+
function d(b, V) {
|
1754
|
+
const y = m.value.find((k) => k.id === V);
|
1755
|
+
r.MenuList[V] = b && y ? y.rules.map((k) => k.key) : [], n();
|
1507
1756
|
}
|
1508
|
-
function
|
1509
|
-
|
1510
|
-
var
|
1511
|
-
const
|
1512
|
-
|
1513
|
-
}),
|
1757
|
+
function n() {
|
1758
|
+
m.value.forEach((b) => {
|
1759
|
+
var k, S;
|
1760
|
+
const V = ((k = b.rules) == null ? void 0 : k.length) || 0, y = ((S = r.MenuList[b.id]) == null ? void 0 : S.length) || 0;
|
1761
|
+
r.MenuAll[b.id] = y === V && V > 0, r.MenuIndeterminate[b.id] = y > 0 && y < V;
|
1762
|
+
}), r.checkAll = Object.values(r.MenuAll).every(Boolean), r.indeterminate = !r.checkAll && Object.values(r.MenuList).some((b) => b.length > 0), g("update:modelValue", Object.values(r.MenuList).flat());
|
1514
1763
|
}
|
1515
|
-
function
|
1516
|
-
|
1764
|
+
function v() {
|
1765
|
+
r.checkAll = !1, r.indeterminate = !1, r.MenuAll = {}, r.MenuList = {}, r.MenuIndeterminate = {}, c(), g("update:modelValue", []), t.value = !1;
|
1517
1766
|
}
|
1518
|
-
function
|
1519
|
-
var
|
1520
|
-
if (Array.isArray(
|
1521
|
-
for (let
|
1522
|
-
if (Array.isArray(
|
1523
|
-
for (let
|
1524
|
-
|
1525
|
-
|
1767
|
+
function w(b) {
|
1768
|
+
var V;
|
1769
|
+
if (Array.isArray(m.value) && m.value.length > 0) {
|
1770
|
+
for (let y of m.value)
|
1771
|
+
if (Array.isArray(y.rules) && y.rules.length > 0)
|
1772
|
+
for (let k of y.rules)
|
1773
|
+
b.some((S) => S === k.key) && (r.MenuList[y.id] = (((V = r.MenuList) == null ? void 0 : V[y.id]) || []).concat([k.key]));
|
1774
|
+
n(), t.value = !0;
|
1526
1775
|
}
|
1527
1776
|
}
|
1528
|
-
|
1529
|
-
var
|
1530
|
-
(
|
1531
|
-
}),
|
1532
|
-
() =>
|
1533
|
-
(
|
1534
|
-
|
1535
|
-
var
|
1536
|
-
|
1777
|
+
me(async () => {
|
1778
|
+
var b;
|
1779
|
+
(b = m.value) != null && b.length || await _(), !t.value && p.modelValue && w(p.modelValue);
|
1780
|
+
}), ce(
|
1781
|
+
() => p.modelValue,
|
1782
|
+
(b) => {
|
1783
|
+
fe(() => {
|
1784
|
+
var V;
|
1785
|
+
t.value || !((V = m.value) != null && V.length) || b && b.length > 0 && w(b);
|
1537
1786
|
});
|
1538
1787
|
},
|
1539
1788
|
{ deep: !0, immediate: !0 }
|
1540
|
-
),
|
1541
|
-
generateOption:
|
1542
|
-
cleanChecked:
|
1543
|
-
})
|
1544
|
-
|
1545
|
-
return
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
l(e(W), {
|
1562
|
-
loading: e(R),
|
1563
|
-
text: "",
|
1564
|
-
size: "small",
|
1565
|
-
onRefresh: p[0] || (p[0] = (_) => e(n)(!0))
|
1566
|
-
}, null, 8, ["loading"])
|
1567
|
-
]),
|
1568
|
-
_: 1
|
1569
|
-
}),
|
1570
|
-
l(u, {
|
1571
|
-
direction: "vertical",
|
1572
|
-
alignment: "start"
|
1789
|
+
), a({
|
1790
|
+
generateOption: w,
|
1791
|
+
cleanChecked: v
|
1792
|
+
});
|
1793
|
+
const D = { requesting: e, props: p, emit: g, initialized: t, state: r, options: m, refresh: _, initState: c, onCheckAllChange: u, onCheckMenuAllChange: d, updateState: n, cleanChecked: v, generateOption: w, get RefreshButton() {
|
1794
|
+
return j;
|
1795
|
+
} };
|
1796
|
+
return Object.defineProperty(D, "__isScriptSetup", { enumerable: !1, value: !0 }), D;
|
1797
|
+
}
|
1798
|
+
}), Xe = { class: "rule-check" }, Ze = { style: { width: "80px", "line-height": "36px" } };
|
1799
|
+
function $e(h, a, f, e, p, g) {
|
1800
|
+
const t = i("el-checkbox"), r = i("el-space"), m = i("el-text"), _ = i("el-divider"), c = i("el-checkbox-group");
|
1801
|
+
return T(), C("div", Xe, [
|
1802
|
+
l(r, { style: { "margin-bottom": "6px" } }, {
|
1803
|
+
default: o(() => [
|
1804
|
+
l(t, {
|
1805
|
+
"model-value": e.state.checkAll,
|
1806
|
+
indeterminate: e.state.indeterminate,
|
1807
|
+
id: "all",
|
1808
|
+
disabled: f.disabled,
|
1809
|
+
onChange: e.onCheckAllChange
|
1573
1810
|
}, {
|
1574
|
-
default:
|
1575
|
-
(
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1811
|
+
default: o(() => a[1] || (a[1] = [
|
1812
|
+
B("span", null, "全选", -1)
|
1813
|
+
])),
|
1814
|
+
_: 1,
|
1815
|
+
__: [1]
|
1816
|
+
}, 8, ["model-value", "indeterminate", "disabled"]),
|
1817
|
+
l(e.RefreshButton, {
|
1818
|
+
loading: e.requesting,
|
1819
|
+
text: "",
|
1820
|
+
size: "small",
|
1821
|
+
onRefresh: a[0] || (a[0] = (u) => e.refresh(!0))
|
1822
|
+
}, null, 8, ["loading"])
|
1823
|
+
]),
|
1824
|
+
_: 1
|
1825
|
+
}),
|
1826
|
+
l(r, {
|
1827
|
+
direction: "vertical",
|
1828
|
+
alignment: "start"
|
1829
|
+
}, {
|
1830
|
+
default: o(() => [
|
1831
|
+
(T(!0), C(q, null, M(e.options, (u) => (T(), C("div", {
|
1832
|
+
key: u.id
|
1833
|
+
}, [
|
1834
|
+
l(r, {
|
1835
|
+
direction: "horizontal",
|
1836
|
+
size: 2
|
1837
|
+
}, {
|
1838
|
+
default: o(() => [
|
1839
|
+
l(t, {
|
1840
|
+
style: { "min-width": "150px" },
|
1841
|
+
"model-value": e.state.MenuAll[u.id],
|
1842
|
+
disabled: f.disabled || !u.rules || u.rules.length <= 0,
|
1843
|
+
indeterminate: e.state.MenuIndeterminate[u.id],
|
1844
|
+
onChange: (d) => e.onCheckMenuAllChange(d, u.id)
|
1581
1845
|
}, {
|
1582
|
-
default:
|
1583
|
-
l(
|
1584
|
-
|
1585
|
-
|
1586
|
-
disabled: U.disabled || !_.rules || _.rules.length <= 0,
|
1587
|
-
indeterminate: s.MenuIndeterminate[_.id],
|
1588
|
-
onChange: (y) => h(y, _.id)
|
1589
|
-
}, {
|
1590
|
-
default: t(() => [
|
1591
|
-
l(r, { style: { "font-size": "15px" } }, {
|
1592
|
-
default: t(() => [
|
1593
|
-
N(ne(_.translate), 1)
|
1594
|
-
]),
|
1595
|
-
_: 2
|
1596
|
-
}, 1024)
|
1846
|
+
default: o(() => [
|
1847
|
+
l(m, { style: { "font-size": "15px" } }, {
|
1848
|
+
default: o(() => [
|
1849
|
+
E(K(u.translate), 1)
|
1597
1850
|
]),
|
1598
1851
|
_: 2
|
1599
|
-
},
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
1606
|
-
|
1607
|
-
|
1852
|
+
}, 1024)
|
1853
|
+
]),
|
1854
|
+
_: 2
|
1855
|
+
}, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
|
1856
|
+
l(_, { direction: "vertical" }),
|
1857
|
+
u.rules ? (T(), x(c, {
|
1858
|
+
key: 0,
|
1859
|
+
modelValue: e.state.MenuList[u.id],
|
1860
|
+
"onUpdate:modelValue": (d) => e.state.MenuList[u.id] = d,
|
1861
|
+
disabled: f.disabled,
|
1862
|
+
style: { margin: "auto" },
|
1863
|
+
onChange: e.updateState
|
1864
|
+
}, {
|
1865
|
+
default: o(() => [
|
1866
|
+
(T(!0), C(q, null, M(u.rules, (d) => (T(), x(t, {
|
1867
|
+
key: d.key,
|
1868
|
+
value: d.key
|
1608
1869
|
}, {
|
1609
|
-
default:
|
1610
|
-
(
|
1611
|
-
key: y.key,
|
1612
|
-
value: y.key
|
1613
|
-
}, {
|
1614
|
-
default: t(() => [
|
1615
|
-
G("div", ze, ne(y.translate), 1)
|
1616
|
-
]),
|
1617
|
-
_: 2
|
1618
|
-
}, 1032, ["value"]))), 128))
|
1870
|
+
default: o(() => [
|
1871
|
+
B("div", Ze, K(d.translate), 1)
|
1619
1872
|
]),
|
1620
1873
|
_: 2
|
1621
|
-
}, 1032, ["
|
1874
|
+
}, 1032, ["value"]))), 128))
|
1622
1875
|
]),
|
1623
1876
|
_: 2
|
1624
|
-
},
|
1625
|
-
])
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
])
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1877
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : pe("", !0)
|
1878
|
+
]),
|
1879
|
+
_: 2
|
1880
|
+
}, 1024)
|
1881
|
+
]))), 128))
|
1882
|
+
]),
|
1883
|
+
_: 1
|
1884
|
+
})
|
1885
|
+
]);
|
1886
|
+
}
|
1887
|
+
const el = /* @__PURE__ */ R(Qe, [["render", $e], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/role/components/rulesCheck.vue"]]), ll = /* @__PURE__ */ U({
|
1633
1888
|
__name: "info",
|
1634
1889
|
emits: ["refresh"],
|
1635
|
-
setup(
|
1636
|
-
const
|
1890
|
+
setup(h, { expose: a, emit: f }) {
|
1891
|
+
const e = f, p = N(), g = {
|
1637
1892
|
key: "",
|
1638
1893
|
module: "",
|
1639
1894
|
sort: 0,
|
@@ -1641,269 +1896,322 @@ const De = /* @__PURE__ */ D({
|
|
1641
1896
|
en_name: "",
|
1642
1897
|
remark: "",
|
1643
1898
|
rules: []
|
1644
|
-
},
|
1899
|
+
}, t = {
|
1645
1900
|
name: [
|
1646
|
-
{ required: !0, message:
|
1901
|
+
{ required: !0, message: s("base.placeholder.input base.name"), trigger: "blur" }
|
1647
1902
|
],
|
1648
1903
|
en_name: [
|
1649
|
-
{ required: !0, message:
|
1904
|
+
{ required: !0, message: s("base.placeholder.input base.en_name"), trigger: "blur" }
|
1650
1905
|
]
|
1651
|
-
}, { modal:
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
),
|
1656
|
-
|
1657
|
-
},
|
1658
|
-
var
|
1659
|
-
(
|
1906
|
+
}, { modal: r, title: m, form: _, formData: c, requesting: u, executing: d, open: n, modify: v, submit: w, closed: D } = L(
|
1907
|
+
e,
|
1908
|
+
g,
|
1909
|
+
z
|
1910
|
+
), b = (k) => {
|
1911
|
+
k ? v({ key: k }) : n();
|
1912
|
+
}, V = () => {
|
1913
|
+
var k;
|
1914
|
+
(k = p.value) == null || k.cleanChecked(), D();
|
1660
1915
|
};
|
1661
|
-
|
1662
|
-
openOrModify:
|
1663
|
-
})
|
1664
|
-
|
1665
|
-
return
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1916
|
+
a({
|
1917
|
+
openOrModify: b
|
1918
|
+
});
|
1919
|
+
const y = { emits: e, rulesCheck: p, DEFAULT_DATA: g, rules: t, modal: r, title: m, form: _, formData: c, requesting: u, executing: d, open: n, modify: v, submit: w, closed: D, openOrModify: b, onClose: V, get Translate() {
|
1920
|
+
return s;
|
1921
|
+
}, get FormDialog() {
|
1922
|
+
return I;
|
1923
|
+
}, RulesCheck: el };
|
1924
|
+
return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
|
1925
|
+
}
|
1926
|
+
});
|
1927
|
+
function al(h, a, f, e, p, g) {
|
1928
|
+
const t = i("el-input"), r = i("el-form-item"), m = i("el-col"), _ = i("el-input-number"), c = i("el-row"), u = i("el-form");
|
1929
|
+
return T(), x(e.FormDialog, {
|
1930
|
+
modelValue: e.modal,
|
1931
|
+
"onUpdate:modelValue": a[6] || (a[6] = (d) => e.modal = d),
|
1932
|
+
title: e.title(),
|
1933
|
+
width: "1000px",
|
1934
|
+
executing: e.executing,
|
1935
|
+
onClosed: e.onClose,
|
1936
|
+
onSubmit: e.submit
|
1937
|
+
}, {
|
1938
|
+
default: o(() => [
|
1939
|
+
l(u, {
|
1940
|
+
ref: "form",
|
1941
|
+
model: e.formData,
|
1942
|
+
"label-width": "auto",
|
1943
|
+
rules: e.rules,
|
1944
|
+
disabled: e.requesting || e.executing
|
1673
1945
|
}, {
|
1674
|
-
default:
|
1675
|
-
l(
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1687
|
-
|
1688
|
-
|
1689
|
-
label: e(a)("base.module"),
|
1690
|
-
prop: "module"
|
1691
|
-
}, {
|
1692
|
-
default: t(() => [
|
1693
|
-
l(x, {
|
1694
|
-
modelValue: e(f).module,
|
1695
|
-
"onUpdate:modelValue": r[0] || (r[0] = (L) => e(f).module = L),
|
1696
|
-
placeholder: e(a)("base.placeholder.input")
|
1697
|
-
}, null, 8, ["modelValue", "placeholder"])
|
1698
|
-
]),
|
1699
|
-
_: 1
|
1700
|
-
}, 8, ["label"])
|
1701
|
-
]),
|
1702
|
-
_: 1
|
1703
|
-
}),
|
1704
|
-
l(_, { span: 12 }, {
|
1705
|
-
default: t(() => [
|
1706
|
-
l(A, {
|
1707
|
-
label: e(a)("base.sort"),
|
1708
|
-
prop: "sort"
|
1709
|
-
}, {
|
1710
|
-
default: t(() => [
|
1711
|
-
l(y, {
|
1712
|
-
class: "w-full",
|
1713
|
-
modelValue: e(f).sort,
|
1714
|
-
"onUpdate:modelValue": r[1] || (r[1] = (L) => e(f).sort = L),
|
1715
|
-
min: 0,
|
1716
|
-
placeholder: e(a)("base.placeholder.input")
|
1717
|
-
}, null, 8, ["modelValue", "placeholder"])
|
1718
|
-
]),
|
1719
|
-
_: 1
|
1720
|
-
}, 8, ["label"])
|
1946
|
+
default: o(() => [
|
1947
|
+
l(c, { gutter: 20 }, {
|
1948
|
+
default: o(() => [
|
1949
|
+
l(m, { span: 12 }, {
|
1950
|
+
default: o(() => [
|
1951
|
+
l(r, {
|
1952
|
+
label: e.Translate("base.module"),
|
1953
|
+
prop: "module"
|
1954
|
+
}, {
|
1955
|
+
default: o(() => [
|
1956
|
+
l(t, {
|
1957
|
+
modelValue: e.formData.module,
|
1958
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => e.formData.module = d),
|
1959
|
+
placeholder: e.Translate("base.placeholder.input")
|
1960
|
+
}, null, 8, ["modelValue", "placeholder"])
|
1721
1961
|
]),
|
1722
1962
|
_: 1
|
1723
|
-
})
|
1963
|
+
}, 8, ["label"])
|
1724
1964
|
]),
|
1725
1965
|
_: 1
|
1726
1966
|
}),
|
1727
|
-
l(
|
1728
|
-
|
1729
|
-
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
default: t(() => [
|
1745
|
-
l(x, {
|
1746
|
-
modelValue: e(f).en_name,
|
1747
|
-
"onUpdate:modelValue": r[3] || (r[3] = (L) => e(f).en_name = L),
|
1748
|
-
placeholder: e(a)("base.placeholder.input")
|
1749
|
-
}, null, 8, ["modelValue", "placeholder"])
|
1750
|
-
]),
|
1751
|
-
_: 1
|
1752
|
-
}, 8, ["label"]),
|
1753
|
-
l(A, {
|
1754
|
-
label: e(a)("base.remark"),
|
1755
|
-
prop: "remark"
|
1756
|
-
}, {
|
1757
|
-
default: t(() => [
|
1758
|
-
l(x, {
|
1759
|
-
modelValue: e(f).remark,
|
1760
|
-
"onUpdate:modelValue": r[4] || (r[4] = (L) => e(f).remark = L),
|
1761
|
-
placeholder: e(a)("base.placeholder.input")
|
1762
|
-
}, null, 8, ["modelValue", "placeholder"])
|
1763
|
-
]),
|
1764
|
-
_: 1
|
1765
|
-
}, 8, ["label"]),
|
1766
|
-
l(A, {
|
1767
|
-
label: e(a)("base.rules"),
|
1768
|
-
prop: "rules"
|
1769
|
-
}, {
|
1770
|
-
default: t(() => [
|
1771
|
-
l(Ke, {
|
1772
|
-
ref_key: "rulesCheck",
|
1773
|
-
ref: w,
|
1774
|
-
modelValue: e(f).rules,
|
1775
|
-
"onUpdate:modelValue": r[5] || (r[5] = (L) => e(f).rules = L),
|
1776
|
-
disabled: e(g) || e(h)
|
1777
|
-
}, null, 8, ["modelValue", "disabled"])
|
1967
|
+
l(m, { span: 12 }, {
|
1968
|
+
default: o(() => [
|
1969
|
+
l(r, {
|
1970
|
+
label: e.Translate("base.sort"),
|
1971
|
+
prop: "sort"
|
1972
|
+
}, {
|
1973
|
+
default: o(() => [
|
1974
|
+
l(_, {
|
1975
|
+
class: "w-full",
|
1976
|
+
modelValue: e.formData.sort,
|
1977
|
+
"onUpdate:modelValue": a[1] || (a[1] = (d) => e.formData.sort = d),
|
1978
|
+
min: 0,
|
1979
|
+
placeholder: e.Translate("base.placeholder.input")
|
1980
|
+
}, null, 8, ["modelValue", "placeholder"])
|
1981
|
+
]),
|
1982
|
+
_: 1
|
1983
|
+
}, 8, ["label"])
|
1778
1984
|
]),
|
1779
1985
|
_: 1
|
1780
|
-
}
|
1986
|
+
})
|
1781
1987
|
]),
|
1782
1988
|
_: 1
|
1783
|
-
},
|
1989
|
+
}),
|
1990
|
+
l(r, {
|
1991
|
+
label: e.Translate("base.name"),
|
1992
|
+
prop: "name"
|
1993
|
+
}, {
|
1994
|
+
default: o(() => [
|
1995
|
+
l(t, {
|
1996
|
+
modelValue: e.formData.name,
|
1997
|
+
"onUpdate:modelValue": a[2] || (a[2] = (d) => e.formData.name = d),
|
1998
|
+
placeholder: e.Translate("base.placeholder.input")
|
1999
|
+
}, null, 8, ["modelValue", "placeholder"])
|
2000
|
+
]),
|
2001
|
+
_: 1
|
2002
|
+
}, 8, ["label"]),
|
2003
|
+
l(r, {
|
2004
|
+
label: e.Translate("base.en_name"),
|
2005
|
+
prop: "en_name"
|
2006
|
+
}, {
|
2007
|
+
default: o(() => [
|
2008
|
+
l(t, {
|
2009
|
+
modelValue: e.formData.en_name,
|
2010
|
+
"onUpdate:modelValue": a[3] || (a[3] = (d) => e.formData.en_name = d),
|
2011
|
+
placeholder: e.Translate("base.placeholder.input")
|
2012
|
+
}, null, 8, ["modelValue", "placeholder"])
|
2013
|
+
]),
|
2014
|
+
_: 1
|
2015
|
+
}, 8, ["label"]),
|
2016
|
+
l(r, {
|
2017
|
+
label: e.Translate("base.remark"),
|
2018
|
+
prop: "remark"
|
2019
|
+
}, {
|
2020
|
+
default: o(() => [
|
2021
|
+
l(t, {
|
2022
|
+
modelValue: e.formData.remark,
|
2023
|
+
"onUpdate:modelValue": a[4] || (a[4] = (d) => e.formData.remark = d),
|
2024
|
+
placeholder: e.Translate("base.placeholder.input")
|
2025
|
+
}, null, 8, ["modelValue", "placeholder"])
|
2026
|
+
]),
|
2027
|
+
_: 1
|
2028
|
+
}, 8, ["label"]),
|
2029
|
+
l(r, {
|
2030
|
+
label: e.Translate("base.rules"),
|
2031
|
+
prop: "rules"
|
2032
|
+
}, {
|
2033
|
+
default: o(() => [
|
2034
|
+
l(e.RulesCheck, {
|
2035
|
+
ref: "rulesCheck",
|
2036
|
+
modelValue: e.formData.rules,
|
2037
|
+
"onUpdate:modelValue": a[5] || (a[5] = (d) => e.formData.rules = d),
|
2038
|
+
disabled: e.requesting || e.executing
|
2039
|
+
}, null, 8, ["modelValue", "disabled"])
|
2040
|
+
]),
|
2041
|
+
_: 1
|
2042
|
+
}, 8, ["label"])
|
1784
2043
|
]),
|
1785
2044
|
_: 1
|
1786
|
-
}, 8, ["
|
1787
|
-
|
1788
|
-
|
1789
|
-
}
|
2045
|
+
}, 8, ["model", "disabled"])
|
2046
|
+
]),
|
2047
|
+
_: 1
|
2048
|
+
}, 8, ["modelValue", "title", "executing", "onSubmit"]);
|
2049
|
+
}
|
2050
|
+
const ol = /* @__PURE__ */ R(ll, [["render", al], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/role/components/info.vue"]]), rl = /* @__PURE__ */ U({
|
1790
2051
|
__name: "index",
|
1791
|
-
setup(
|
1792
|
-
|
2052
|
+
setup(h, {
|
2053
|
+
expose: a
|
2054
|
+
}) {
|
2055
|
+
a();
|
2056
|
+
const f = {
|
1793
2057
|
keyword: ""
|
1794
|
-
},
|
2058
|
+
}, e = [
|
1795
2059
|
{
|
1796
|
-
label:
|
2060
|
+
label: s("base.sort"),
|
1797
2061
|
prop: "sort",
|
1798
2062
|
width: 80
|
1799
2063
|
},
|
1800
2064
|
{
|
1801
|
-
label:
|
2065
|
+
label: s("base.module"),
|
1802
2066
|
prop: "module",
|
1803
2067
|
width: 120
|
1804
2068
|
},
|
1805
2069
|
{
|
1806
|
-
label:
|
2070
|
+
label: s("base.name"),
|
1807
2071
|
prop: "translate",
|
1808
2072
|
width: 120
|
1809
2073
|
},
|
1810
2074
|
// name 字段优先查看实体内是否有 translate 无则使用name
|
1811
2075
|
{
|
1812
|
-
label:
|
2076
|
+
label: s("base.remark"),
|
1813
2077
|
prop: "remark",
|
1814
2078
|
width: 0
|
1815
2079
|
},
|
1816
2080
|
{
|
1817
|
-
label:
|
2081
|
+
label: s("base.created_at"),
|
1818
2082
|
prop: "created_at",
|
1819
2083
|
width: 180
|
1820
2084
|
},
|
1821
2085
|
{
|
1822
2086
|
prop: "action",
|
1823
|
-
label:
|
2087
|
+
label: s("base.action"),
|
1824
2088
|
width: 60,
|
1825
2089
|
align: "center",
|
1826
2090
|
render: ({
|
1827
|
-
row:
|
1828
|
-
}) => l(
|
1829
|
-
onModify: () =>
|
2091
|
+
row: v
|
2092
|
+
}) => l(W, {
|
2093
|
+
onModify: () => d(v.key)
|
1830
2094
|
}, null)
|
1831
2095
|
}
|
1832
2096
|
], {
|
1833
|
-
requesting:
|
1834
|
-
} =
|
1835
|
-
tableRef:
|
1836
|
-
infoRef:
|
1837
|
-
keyword:
|
1838
|
-
search:
|
1839
|
-
refresh:
|
1840
|
-
reset:
|
1841
|
-
openInfo:
|
1842
|
-
modifyInfo:
|
1843
|
-
} =
|
1844
|
-
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1876
|
-
|
1877
|
-
})]),
|
1878
|
-
default: t(() => [l(e(le), {
|
1879
|
-
ref_key: "tableRef",
|
1880
|
-
ref: w,
|
1881
|
-
size: "small",
|
1882
|
-
columns: v,
|
1883
|
-
url: e(J).urls[e(ae)],
|
1884
|
-
"search-param": e(b),
|
1885
|
-
autoSearch: ""
|
1886
|
-
}, null, 8, ["url", "search-param"]), l(Ne, {
|
1887
|
-
ref_key: "infoRef",
|
1888
|
-
ref: k,
|
1889
|
-
onRefresh: e(n)
|
1890
|
-
}, null, 8, ["onRefresh"])]),
|
1891
|
-
_: 1
|
1892
|
-
});
|
2097
|
+
requesting: p
|
2098
|
+
} = O(z), {
|
2099
|
+
tableRef: g,
|
2100
|
+
infoRef: t,
|
2101
|
+
keyword: r,
|
2102
|
+
search: m,
|
2103
|
+
refresh: _,
|
2104
|
+
reset: c,
|
2105
|
+
openInfo: u,
|
2106
|
+
modifyInfo: d
|
2107
|
+
} = P(f), n = {
|
2108
|
+
DEFAULT_KEYWORD: f,
|
2109
|
+
columns: e,
|
2110
|
+
requesting: p,
|
2111
|
+
tableRef: g,
|
2112
|
+
infoRef: t,
|
2113
|
+
keyword: r,
|
2114
|
+
search: m,
|
2115
|
+
refresh: _,
|
2116
|
+
reset: c,
|
2117
|
+
openInfo: u,
|
2118
|
+
modifyInfo: d,
|
2119
|
+
get DEFAULT_PAGE_KEY() {
|
2120
|
+
return X;
|
2121
|
+
},
|
2122
|
+
get Translate() {
|
2123
|
+
return s;
|
2124
|
+
},
|
2125
|
+
get OpenButton() {
|
2126
|
+
return Q;
|
2127
|
+
},
|
2128
|
+
get RefreshButton() {
|
2129
|
+
return j;
|
2130
|
+
},
|
2131
|
+
get SearchButton() {
|
2132
|
+
return J;
|
2133
|
+
},
|
2134
|
+
get ProTable() {
|
2135
|
+
return H;
|
2136
|
+
},
|
2137
|
+
Info: ol,
|
2138
|
+
get $api() {
|
2139
|
+
return z;
|
2140
|
+
}
|
1893
2141
|
};
|
2142
|
+
return Object.defineProperty(n, "__isScriptSetup", {
|
2143
|
+
enumerable: !1,
|
2144
|
+
value: !0
|
2145
|
+
}), n;
|
1894
2146
|
}
|
1895
|
-
})
|
2147
|
+
});
|
2148
|
+
function nl(h, a, f, e, p, g) {
|
2149
|
+
const t = i("el-input"), r = i("el-space"), m = i("el-page-header"), _ = i("el-card");
|
2150
|
+
return T(), x(_, {
|
2151
|
+
class: "basic-card flex-full",
|
2152
|
+
"body-class": "flex-1"
|
2153
|
+
}, {
|
2154
|
+
header: o(() => [
|
2155
|
+
l(m, { class: "basic-header" }, {
|
2156
|
+
title: o(() => [
|
2157
|
+
l(e.RefreshButton, {
|
2158
|
+
loading: e.requesting,
|
2159
|
+
onRefresh: e.refresh
|
2160
|
+
}, null, 8, ["loading", "onRefresh"]),
|
2161
|
+
l(e.OpenButton, { onOpen: e.openInfo }, null, 8, ["onOpen"])
|
2162
|
+
]),
|
2163
|
+
content: o(() => [
|
2164
|
+
l(r, { class: "search-bar" }, {
|
2165
|
+
default: o(() => [
|
2166
|
+
l(t, {
|
2167
|
+
class: "basic-search-input",
|
2168
|
+
modelValue: e.keyword.keyword,
|
2169
|
+
"onUpdate:modelValue": a[0] || (a[0] = (c) => e.keyword.keyword = c),
|
2170
|
+
placeholder: e.Translate("base.placeholder.keyword"),
|
2171
|
+
clearable: "",
|
2172
|
+
onKeyup: Y(e.search, ["enter"]),
|
2173
|
+
onClear: e.search
|
2174
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]),
|
2175
|
+
l(e.SearchButton, {
|
2176
|
+
disabled: e.requesting,
|
2177
|
+
onSearch: e.search
|
2178
|
+
}, null, 8, ["disabled", "onSearch"])
|
2179
|
+
]),
|
2180
|
+
_: 1
|
2181
|
+
})
|
2182
|
+
]),
|
2183
|
+
_: 1
|
2184
|
+
})
|
2185
|
+
]),
|
2186
|
+
default: o(() => [
|
2187
|
+
l(e.ProTable, {
|
2188
|
+
ref: "tableRef",
|
2189
|
+
size: "small",
|
2190
|
+
columns: e.columns,
|
2191
|
+
url: e.$api.urls[e.DEFAULT_PAGE_KEY],
|
2192
|
+
"search-param": e.keyword,
|
2193
|
+
autoSearch: ""
|
2194
|
+
}, null, 8, ["url", "search-param"]),
|
2195
|
+
l(e.Info, {
|
2196
|
+
ref: "infoRef",
|
2197
|
+
onRefresh: e.reset
|
2198
|
+
}, null, 8, ["onRefresh"])
|
2199
|
+
]),
|
2200
|
+
_: 1
|
2201
|
+
});
|
2202
|
+
}
|
2203
|
+
const tl = /* @__PURE__ */ R(rl, [["render", nl], ["__file", "/Users/Raven/Projects/Auto/Basic/package/views/role/index.vue"]]), dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1896
2204
|
__proto__: null,
|
1897
|
-
default:
|
1898
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1899
|
-
install: (
|
1900
|
-
Reflect.ownKeys(
|
2205
|
+
default: tl
|
2206
|
+
}, Symbol.toStringTag, { value: "Module" })), il = {
|
2207
|
+
install: (h, a) => {
|
2208
|
+
Reflect.ownKeys(h._context.provides).some((f) => String(f) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app."), console.log(Reflect.ownKeys(h._context.provides));
|
1901
2209
|
},
|
1902
2210
|
version: "__VERSION__"
|
1903
|
-
},
|
2211
|
+
}, ml = /* @__PURE__ */ Object.assign({ "./views/admin/index.vue": De, "./views/language/index.vue": Ce, "./views/menu/index.vue": Je, "./views/role/index.vue": dl });
|
1904
2212
|
export {
|
1905
|
-
|
1906
|
-
|
1907
|
-
|
1908
|
-
|
2213
|
+
He as MenusPage,
|
2214
|
+
tl as RolesPage,
|
2215
|
+
ml as basicModules,
|
2216
|
+
il as default
|
1909
2217
|
};
|