auto-vue-basic 0.0.21 → 0.0.22
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 +649 -605
- package/dist/auto-vue-basic.umd.js +1 -1
- package/dist/index.css +1 -1
- package/dist/version.js +1 -1
- package/package.json +56 -56
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { createAutoApi as
|
3
|
-
const
|
1
|
+
import { defineComponent as $, reactive as F, computed as _e, ref as Z, resolveComponent as d, createBlock as L, openBlock as S, unref as e, isRef as I, withCtx as n, createVNode as l, withDirectives as j, vShow as B, createTextVNode as N, createElementBlock as D, Fragment as P, renderList as Y, toDisplayString as ue, withKeys as ee, createElementVNode as Q, toRef as de, normalizeClass as ge, isVNode as he, onMounted as Ve, watch as ye, nextTick as ke, createCommentVNode as ve } from "vue";
|
2
|
+
import { createAutoApi as le, Translate as a, RulesUtils as we, useForm as H, FormDialog as G, ModifyButton as ae, useTablePage as W, useLoading as K, ProTable as oe, DEFAULT_PAGE_KEY as te, RefreshButton as T, OpenButton as ne, SearchButton as re, DEFAULT_STATUS_KEY as ce, AutoApiUtils as xe, useSelect as pe, DEFAULT_REMOVE_KEY as Ue } from "auto-vue-manual";
|
3
|
+
const se = le("admin", {}, "key"), X = le("role", {}, "key"), Ce = /* @__PURE__ */ $({
|
4
4
|
__name: "info",
|
5
5
|
emits: ["refresh"],
|
6
|
-
setup(
|
7
|
-
const
|
6
|
+
setup(x, { expose: C, emit: y }) {
|
7
|
+
const M = y, t = F({
|
8
8
|
key: "",
|
9
9
|
username: "",
|
10
10
|
password: "",
|
@@ -13,15 +13,15 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
|
|
13
13
|
language: "zh-CN",
|
14
14
|
remark: "",
|
15
15
|
roles: []
|
16
|
-
}),
|
16
|
+
}), c = _e(() => !t.key), f = {
|
17
17
|
username: [
|
18
18
|
{ required: !0, message: a("base.placeholder.input base.username"), trigger: "blur" }
|
19
19
|
],
|
20
20
|
phone: [
|
21
|
-
{ required: !0, validator:
|
21
|
+
{ required: !0, validator: we.phoneRule, message: a("base.placeholder.input base.phone"), trigger: "blur" }
|
22
22
|
],
|
23
23
|
password: [
|
24
|
-
{ required:
|
24
|
+
{ required: c, message: a("base.placeholder.input base.password"), trigger: "blur" }
|
25
25
|
],
|
26
26
|
email: [
|
27
27
|
{ required: !0, message: a("base.placeholder.input base.email"), trigger: "blur" }
|
@@ -32,119 +32,119 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
|
|
32
32
|
roles: [
|
33
33
|
{ required: !0, type: "array", message: a("base.placeholder.select base.roles"), trigger: "change" }
|
34
34
|
]
|
35
|
-
},
|
36
|
-
const
|
37
|
-
|
38
|
-
}, { modal:
|
39
|
-
|
35
|
+
}, s = Z([]), _ = async () => {
|
36
|
+
const u = await X.list();
|
37
|
+
s.value = Array.isArray(u == null ? void 0 : u.data) ? u.data : [];
|
38
|
+
}, { modal: w, title: R, form: h, requesting: V, executing: g, open: A, modify: q, submit: i, closed: o } = H(
|
39
|
+
M,
|
40
40
|
t,
|
41
|
-
|
41
|
+
se
|
42
42
|
);
|
43
|
-
return
|
44
|
-
openOrModify: async (
|
45
|
-
|
43
|
+
return C({
|
44
|
+
openOrModify: async (u) => {
|
45
|
+
s.value.length || await _(), u ? q({ key: u }) : A();
|
46
46
|
}
|
47
|
-
}), (
|
48
|
-
const
|
49
|
-
return
|
50
|
-
modelValue: e(
|
51
|
-
"onUpdate:modelValue":
|
47
|
+
}), (u, p) => {
|
48
|
+
const k = d("el-form-item"), U = d("el-input"), b = d("el-radio-button"), v = d("el-radio-group"), m = d("el-checkbox"), E = d("el-checkbox-group"), be = d("el-form");
|
49
|
+
return S(), L(e(G), {
|
50
|
+
modelValue: e(w),
|
51
|
+
"onUpdate:modelValue": p[7] || (p[7] = (O) => I(w) ? w.value = O : null),
|
52
52
|
title: e(R)(),
|
53
53
|
width: "600px",
|
54
|
-
executing: e(
|
54
|
+
executing: e(g),
|
55
55
|
onClosed: e(o),
|
56
|
-
onSubmit: e(
|
56
|
+
onSubmit: e(i)
|
57
57
|
}, {
|
58
58
|
default: n(() => [
|
59
|
-
l(
|
59
|
+
l(be, {
|
60
60
|
ref_key: "form",
|
61
61
|
ref: h,
|
62
62
|
model: t,
|
63
63
|
"label-width": "auto",
|
64
|
-
rules:
|
65
|
-
disabled: e(V) || e(
|
64
|
+
rules: f,
|
65
|
+
disabled: e(V) || e(g)
|
66
66
|
}, {
|
67
67
|
default: n(() => [
|
68
|
-
|
69
|
-
[
|
68
|
+
j(l(k, { prop: "key" }, null, 512), [
|
69
|
+
[B, !1]
|
70
70
|
]),
|
71
|
-
l(
|
71
|
+
l(k, {
|
72
72
|
label: e(a)("base.username"),
|
73
73
|
prop: "username"
|
74
74
|
}, {
|
75
75
|
default: n(() => [
|
76
|
-
l(
|
76
|
+
l(U, {
|
77
77
|
modelValue: t.username,
|
78
|
-
"onUpdate:modelValue":
|
78
|
+
"onUpdate:modelValue": p[0] || (p[0] = (O) => t.username = O),
|
79
79
|
placeholder: e(a)("base.placeholder.input"),
|
80
80
|
autocomplete: "off"
|
81
81
|
}, null, 8, ["modelValue", "placeholder"])
|
82
82
|
]),
|
83
83
|
_: 1
|
84
84
|
}, 8, ["label"]),
|
85
|
-
l(
|
85
|
+
l(k, {
|
86
86
|
label: e(a)("base.phone"),
|
87
87
|
prop: "phone"
|
88
88
|
}, {
|
89
89
|
default: n(() => [
|
90
|
-
l(
|
90
|
+
l(U, {
|
91
91
|
modelValue: t.phone,
|
92
|
-
"onUpdate:modelValue":
|
92
|
+
"onUpdate:modelValue": p[1] || (p[1] = (O) => t.phone = O),
|
93
93
|
placeholder: e(a)("base.placeholder.input"),
|
94
94
|
autocomplete: "off"
|
95
95
|
}, null, 8, ["modelValue", "placeholder"])
|
96
96
|
]),
|
97
97
|
_: 1
|
98
98
|
}, 8, ["label"]),
|
99
|
-
l(
|
99
|
+
l(k, {
|
100
100
|
label: e(a)("base.password"),
|
101
101
|
prop: "password",
|
102
|
-
required:
|
102
|
+
required: c.value
|
103
103
|
}, {
|
104
104
|
default: n(() => [
|
105
|
-
l(
|
105
|
+
l(U, {
|
106
106
|
modelValue: t.password,
|
107
|
-
"onUpdate:modelValue":
|
107
|
+
"onUpdate:modelValue": p[2] || (p[2] = (O) => t.password = O),
|
108
108
|
placeholder: e(a)("base.placeholder.input"),
|
109
|
-
"show-password": "",
|
110
109
|
autocomplete: "off"
|
111
110
|
}, null, 8, ["modelValue", "placeholder"])
|
112
111
|
]),
|
113
112
|
_: 1
|
114
113
|
}, 8, ["label", "required"]),
|
115
|
-
l(
|
114
|
+
l(k, {
|
116
115
|
label: e(a)("base.email"),
|
117
116
|
prop: "email"
|
118
117
|
}, {
|
119
118
|
default: n(() => [
|
120
|
-
l(
|
119
|
+
l(U, {
|
121
120
|
modelValue: t.email,
|
122
|
-
"onUpdate:modelValue":
|
123
|
-
placeholder: e(a)("base.placeholder.input")
|
121
|
+
"onUpdate:modelValue": p[3] || (p[3] = (O) => t.email = O),
|
122
|
+
placeholder: e(a)("base.placeholder.input"),
|
123
|
+
autocomplete: "off"
|
124
124
|
}, null, 8, ["modelValue", "placeholder"])
|
125
125
|
]),
|
126
126
|
_: 1
|
127
127
|
}, 8, ["label"]),
|
128
|
-
l(
|
128
|
+
l(k, {
|
129
129
|
label: e(a)("base.language"),
|
130
130
|
prop: "language"
|
131
131
|
}, {
|
132
132
|
default: n(() => [
|
133
|
-
l(
|
133
|
+
l(v, {
|
134
134
|
modelValue: t.language,
|
135
|
-
"onUpdate:modelValue":
|
135
|
+
"onUpdate:modelValue": p[4] || (p[4] = (O) => t.language = O)
|
136
136
|
}, {
|
137
137
|
default: n(() => [
|
138
|
-
l(
|
139
|
-
default: n(() =>
|
140
|
-
|
138
|
+
l(b, { label: "zh-CN" }, {
|
139
|
+
default: n(() => p[8] || (p[8] = [
|
140
|
+
N("zh-CN")
|
141
141
|
])),
|
142
142
|
_: 1,
|
143
143
|
__: [8]
|
144
144
|
}),
|
145
|
-
l(
|
146
|
-
default: n(() =>
|
147
|
-
|
145
|
+
l(b, { label: "en-US" }, {
|
146
|
+
default: n(() => p[9] || (p[9] = [
|
147
|
+
N("en-US")
|
148
148
|
])),
|
149
149
|
_: 1,
|
150
150
|
__: [9]
|
@@ -155,22 +155,22 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
|
|
155
155
|
]),
|
156
156
|
_: 1
|
157
157
|
}, 8, ["label"]),
|
158
|
-
l(
|
158
|
+
l(k, {
|
159
159
|
label: e(a)("base.roles"),
|
160
160
|
prop: "roles"
|
161
161
|
}, {
|
162
162
|
default: n(() => [
|
163
|
-
l(
|
163
|
+
l(E, {
|
164
164
|
modelValue: t.roles,
|
165
|
-
"onUpdate:modelValue":
|
165
|
+
"onUpdate:modelValue": p[5] || (p[5] = (O) => t.roles = O)
|
166
166
|
}, {
|
167
167
|
default: n(() => [
|
168
|
-
(
|
168
|
+
(S(!0), D(P, null, Y(s.value, (O) => (S(), L(m, {
|
169
169
|
key: O.key,
|
170
170
|
label: O.key
|
171
171
|
}, {
|
172
172
|
default: n(() => [
|
173
|
-
|
173
|
+
N(ue(O.translate), 1)
|
174
174
|
]),
|
175
175
|
_: 2
|
176
176
|
}, 1032, ["label"]))), 128))
|
@@ -180,14 +180,14 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
|
|
180
180
|
]),
|
181
181
|
_: 1
|
182
182
|
}, 8, ["label"]),
|
183
|
-
l(
|
183
|
+
l(k, {
|
184
184
|
label: e(a)("base.remark"),
|
185
185
|
prop: "remark"
|
186
186
|
}, {
|
187
187
|
default: n(() => [
|
188
|
-
l(
|
188
|
+
l(U, {
|
189
189
|
modelValue: t.remark,
|
190
|
-
"onUpdate:modelValue":
|
190
|
+
"onUpdate:modelValue": p[6] || (p[6] = (O) => t.remark = O),
|
191
191
|
placeholder: e(a)("base.placeholder.input")
|
192
192
|
}, null, 8, ["modelValue", "placeholder"])
|
193
193
|
]),
|
@@ -201,18 +201,18 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
|
|
201
201
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
202
202
|
};
|
203
203
|
}
|
204
|
-
}),
|
204
|
+
}), Re = /* @__PURE__ */ $({
|
205
205
|
__name: "index",
|
206
|
-
setup(
|
207
|
-
const
|
206
|
+
setup(x) {
|
207
|
+
const C = {
|
208
208
|
keyword: ""
|
209
|
-
},
|
209
|
+
}, y = [{
|
210
210
|
label: a("base.avatar"),
|
211
211
|
prop: "avatar",
|
212
212
|
width: 60,
|
213
213
|
render: ({
|
214
214
|
row: V
|
215
|
-
}) => l(
|
215
|
+
}) => l(d("el-avatar"), {
|
216
216
|
size: "default",
|
217
217
|
src: V.avatar
|
218
218
|
}, null)
|
@@ -222,7 +222,7 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
|
|
222
222
|
align: "left",
|
223
223
|
render: ({
|
224
224
|
row: V
|
225
|
-
}) => l(
|
225
|
+
}) => l(d("el-space"), {
|
226
226
|
direction: "vertical",
|
227
227
|
alignment: "start"
|
228
228
|
}, {
|
@@ -255,80 +255,80 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
|
|
255
255
|
align: "center",
|
256
256
|
render: ({
|
257
257
|
row: V
|
258
|
-
}) => l(
|
258
|
+
}) => l(ae, {
|
259
259
|
onModify: () => h(V.key)
|
260
260
|
}, null)
|
261
261
|
}], {
|
262
|
-
requesting:
|
263
|
-
} = K(
|
262
|
+
requesting: M
|
263
|
+
} = K(se), {
|
264
264
|
tableRef: t,
|
265
|
-
infoRef:
|
266
|
-
keyword:
|
267
|
-
search:
|
268
|
-
refresh:
|
269
|
-
reset:
|
265
|
+
infoRef: c,
|
266
|
+
keyword: f,
|
267
|
+
search: s,
|
268
|
+
refresh: _,
|
269
|
+
reset: w,
|
270
270
|
openInfo: R,
|
271
271
|
modifyInfo: h
|
272
|
-
} = W(
|
273
|
-
return (V,
|
274
|
-
const
|
275
|
-
return
|
272
|
+
} = W(C);
|
273
|
+
return (V, g) => {
|
274
|
+
const A = d("el-input"), q = d("el-space"), i = d("el-card");
|
275
|
+
return S(), L(i, {
|
276
276
|
class: "basic-card flex-full",
|
277
277
|
"body-class": "flex-1"
|
278
278
|
}, {
|
279
|
-
header: n(() => [l(
|
279
|
+
header: n(() => [l(q, {
|
280
280
|
class: "search-bar"
|
281
281
|
}, {
|
282
282
|
default: n(() => [l(e(T), {
|
283
|
-
loading: e(
|
284
|
-
onRefresh: e(
|
285
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
283
|
+
loading: e(M),
|
284
|
+
onRefresh: e(_)
|
285
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(ne), {
|
286
286
|
onOpen: e(R)
|
287
|
-
}, null, 8, ["onOpen"]), l(
|
287
|
+
}, null, 8, ["onOpen"]), l(A, {
|
288
288
|
class: "basic-search-input",
|
289
|
-
modelValue: e(
|
290
|
-
"onUpdate:modelValue":
|
289
|
+
modelValue: e(f).keyword,
|
290
|
+
"onUpdate:modelValue": g[0] || (g[0] = (o) => e(f).keyword = o),
|
291
291
|
placeholder: e(a)("base.placeholder.keyword"),
|
292
292
|
clearable: "",
|
293
|
-
onKeyup:
|
294
|
-
onClear: e(
|
295
|
-
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(e(
|
296
|
-
onSearch: e(
|
293
|
+
onKeyup: ee(e(s), ["enter"]),
|
294
|
+
onClear: e(s)
|
295
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(e(re), {
|
296
|
+
onSearch: e(s)
|
297
297
|
}, null, 8, ["onSearch"])]),
|
298
298
|
_: 1
|
299
299
|
})]),
|
300
|
-
default: n(() => [l(e(
|
300
|
+
default: n(() => [l(e(oe), {
|
301
301
|
ref_key: "tableRef",
|
302
302
|
ref: t,
|
303
303
|
size: "small",
|
304
|
-
columns:
|
305
|
-
url: e(
|
306
|
-
"search-param": e(
|
304
|
+
columns: y,
|
305
|
+
url: e(se).urls[e(te)],
|
306
|
+
"search-param": e(f),
|
307
307
|
autoSearch: ""
|
308
|
-
}, null, 8, ["url", "search-param"]), l(
|
308
|
+
}, null, 8, ["url", "search-param"]), l(Ce, {
|
309
309
|
ref_key: "infoRef",
|
310
|
-
ref:
|
311
|
-
onRefresh: e(
|
310
|
+
ref: c,
|
311
|
+
onRefresh: e(w)
|
312
312
|
}, null, 8, ["onRefresh"])]),
|
313
313
|
_: 1
|
314
314
|
});
|
315
315
|
};
|
316
316
|
}
|
317
|
-
}),
|
317
|
+
}), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
318
318
|
__proto__: null,
|
319
|
-
default:
|
320
|
-
}, Symbol.toStringTag, { value: "Module" })), J =
|
319
|
+
default: Re
|
320
|
+
}, Symbol.toStringTag, { value: "Module" })), J = le("translate", {}, "key"), Se = /* @__PURE__ */ $({
|
321
321
|
__name: "info",
|
322
322
|
emits: ["refresh"],
|
323
|
-
setup(
|
324
|
-
const
|
323
|
+
setup(x, { expose: C, emit: y }) {
|
324
|
+
const M = y, t = F({
|
325
325
|
id: 0,
|
326
326
|
key: "",
|
327
327
|
module: "",
|
328
328
|
language: "",
|
329
329
|
result: "",
|
330
330
|
remark: ""
|
331
|
-
}),
|
331
|
+
}), c = {
|
332
332
|
module: [
|
333
333
|
{ required: !0, message: a("language.placeholder.module"), trigger: "blur" }
|
334
334
|
],
|
@@ -341,88 +341,88 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
|
|
341
341
|
result: [
|
342
342
|
{ required: !0, message: a("language.placeholder.result"), trigger: "blur" }
|
343
343
|
]
|
344
|
-
}, { modal:
|
345
|
-
|
344
|
+
}, { modal: f, title: s, form: _, requesting: w, executing: R, open: h, modify: V, submit: g, closed: A } = H(
|
345
|
+
M,
|
346
346
|
t,
|
347
347
|
J
|
348
348
|
);
|
349
|
-
return
|
350
|
-
openOrModify: (
|
351
|
-
|
349
|
+
return C({
|
350
|
+
openOrModify: (i) => {
|
351
|
+
i ? V({ id: i }) : h();
|
352
352
|
}
|
353
|
-
}), (
|
354
|
-
const
|
355
|
-
return
|
356
|
-
modelValue: e(
|
357
|
-
"onUpdate:modelValue": o[5] || (o[5] = (
|
358
|
-
title: e(
|
353
|
+
}), (i, o) => {
|
354
|
+
const r = d("el-form-item"), u = d("el-input"), p = d("el-radio-button"), k = d("el-radio-group"), U = d("el-form");
|
355
|
+
return S(), L(e(G), {
|
356
|
+
modelValue: e(f),
|
357
|
+
"onUpdate:modelValue": o[5] || (o[5] = (b) => I(f) ? f.value = b : null),
|
358
|
+
title: e(s)(),
|
359
359
|
width: "600px",
|
360
360
|
executing: e(R),
|
361
|
-
onClosed: e(
|
362
|
-
onSubmit: e(
|
361
|
+
onClosed: e(A),
|
362
|
+
onSubmit: e(g)
|
363
363
|
}, {
|
364
364
|
default: n(() => [
|
365
|
-
l(
|
365
|
+
l(U, {
|
366
366
|
ref_key: "form",
|
367
|
-
ref:
|
367
|
+
ref: _,
|
368
368
|
model: t,
|
369
369
|
"label-width": "auto",
|
370
|
-
rules:
|
371
|
-
disabled: e(
|
370
|
+
rules: c,
|
371
|
+
disabled: e(w) || e(R)
|
372
372
|
}, {
|
373
373
|
default: n(() => [
|
374
|
-
|
375
|
-
[
|
374
|
+
j(l(r, { prop: "id" }, null, 512), [
|
375
|
+
[B, !1]
|
376
376
|
]),
|
377
|
-
l(
|
377
|
+
l(r, {
|
378
378
|
label: e(a)("language.module"),
|
379
379
|
prop: "module",
|
380
380
|
required: ""
|
381
381
|
}, {
|
382
382
|
default: n(() => [
|
383
|
-
l(
|
383
|
+
l(u, {
|
384
384
|
modelValue: t.module,
|
385
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
385
|
+
"onUpdate:modelValue": o[0] || (o[0] = (b) => t.module = b),
|
386
386
|
placeholder: e(a)("language.placeholder.module")
|
387
387
|
}, null, 8, ["modelValue", "placeholder"])
|
388
388
|
]),
|
389
389
|
_: 1
|
390
390
|
}, 8, ["label"]),
|
391
|
-
l(
|
391
|
+
l(r, {
|
392
392
|
label: e(a)("language.key"),
|
393
393
|
prop: "key",
|
394
394
|
required: ""
|
395
395
|
}, {
|
396
396
|
default: n(() => [
|
397
|
-
l(
|
397
|
+
l(u, {
|
398
398
|
modelValue: t.key,
|
399
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
399
|
+
"onUpdate:modelValue": o[1] || (o[1] = (b) => t.key = b),
|
400
400
|
placeholder: e(a)("language.placeholder.key")
|
401
401
|
}, null, 8, ["modelValue", "placeholder"])
|
402
402
|
]),
|
403
403
|
_: 1
|
404
404
|
}, 8, ["label"]),
|
405
|
-
l(
|
405
|
+
l(r, {
|
406
406
|
label: e(a)("language.language"),
|
407
407
|
prop: "language",
|
408
408
|
required: ""
|
409
409
|
}, {
|
410
410
|
default: n(() => [
|
411
|
-
l(
|
411
|
+
l(k, {
|
412
412
|
modelValue: t.language,
|
413
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
413
|
+
"onUpdate:modelValue": o[2] || (o[2] = (b) => t.language = b)
|
414
414
|
}, {
|
415
415
|
default: n(() => [
|
416
|
-
l(
|
416
|
+
l(p, { label: "zh-CN" }, {
|
417
417
|
default: n(() => o[6] || (o[6] = [
|
418
|
-
|
418
|
+
N("zh-CN")
|
419
419
|
])),
|
420
420
|
_: 1,
|
421
421
|
__: [6]
|
422
422
|
}),
|
423
|
-
l(
|
423
|
+
l(p, { label: "en-US" }, {
|
424
424
|
default: n(() => o[7] || (o[7] = [
|
425
|
-
|
425
|
+
N("en-US")
|
426
426
|
])),
|
427
427
|
_: 1,
|
428
428
|
__: [7]
|
@@ -433,28 +433,28 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
|
|
433
433
|
]),
|
434
434
|
_: 1
|
435
435
|
}, 8, ["label"]),
|
436
|
-
l(
|
436
|
+
l(r, {
|
437
437
|
label: e(a)("language.result"),
|
438
438
|
prop: "result",
|
439
439
|
required: ""
|
440
440
|
}, {
|
441
441
|
default: n(() => [
|
442
|
-
l(
|
442
|
+
l(u, {
|
443
443
|
modelValue: t.result,
|
444
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
444
|
+
"onUpdate:modelValue": o[3] || (o[3] = (b) => t.result = b),
|
445
445
|
placeholder: e(a)("language.placeholder.result")
|
446
446
|
}, null, 8, ["modelValue", "placeholder"])
|
447
447
|
]),
|
448
448
|
_: 1
|
449
449
|
}, 8, ["label"]),
|
450
|
-
l(
|
450
|
+
l(r, {
|
451
451
|
label: e(a)("base.remark"),
|
452
452
|
prop: "remark"
|
453
453
|
}, {
|
454
454
|
default: n(() => [
|
455
|
-
l(
|
455
|
+
l(u, {
|
456
456
|
modelValue: t.remark,
|
457
|
-
"onUpdate:modelValue": o[4] || (o[4] = (
|
457
|
+
"onUpdate:modelValue": o[4] || (o[4] = (b) => t.remark = b),
|
458
458
|
placeholder: e(a)("base.placeholder.input")
|
459
459
|
}, null, 8, ["modelValue", "placeholder"])
|
460
460
|
]),
|
@@ -468,13 +468,13 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
|
|
468
468
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
469
469
|
};
|
470
470
|
}
|
471
|
-
}),
|
471
|
+
}), Ae = /* @__PURE__ */ $({
|
472
472
|
__name: "index",
|
473
|
-
setup(
|
474
|
-
const
|
473
|
+
setup(x) {
|
474
|
+
const C = {
|
475
475
|
keyword: "",
|
476
476
|
status: 0
|
477
|
-
},
|
477
|
+
}, y = [{
|
478
478
|
label: a("base.module"),
|
479
479
|
prop: "module",
|
480
480
|
width: 120
|
@@ -498,7 +498,7 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
|
|
498
498
|
props: {
|
499
499
|
activeValue: 1,
|
500
500
|
inactiveValue: 2,
|
501
|
-
api: J.urls[
|
501
|
+
api: J.urls[ce],
|
502
502
|
refresh: !0
|
503
503
|
}
|
504
504
|
}, {
|
@@ -520,24 +520,24 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
|
|
520
520
|
align: "center",
|
521
521
|
render: ({
|
522
522
|
row: V
|
523
|
-
}) => l(
|
523
|
+
}) => l(ae, {
|
524
524
|
onModify: () => h(V.id)
|
525
525
|
}, null)
|
526
526
|
}], {
|
527
|
-
requesting:
|
527
|
+
requesting: M
|
528
528
|
} = K(J), {
|
529
529
|
tableRef: t,
|
530
|
-
infoRef:
|
531
|
-
keyword:
|
532
|
-
search:
|
533
|
-
refresh:
|
534
|
-
reset:
|
530
|
+
infoRef: c,
|
531
|
+
keyword: f,
|
532
|
+
search: s,
|
533
|
+
refresh: _,
|
534
|
+
reset: w,
|
535
535
|
openInfo: R,
|
536
536
|
modifyInfo: h
|
537
|
-
} = W(
|
538
|
-
return (V,
|
539
|
-
const
|
540
|
-
return
|
537
|
+
} = W(C);
|
538
|
+
return (V, g) => {
|
539
|
+
const A = d("el-input"), q = d("el-radio-button"), i = d("el-radio-group"), o = d("el-space"), r = d("el-card");
|
540
|
+
return S(), L(r, {
|
541
541
|
class: "basic-card flex-full",
|
542
542
|
"body-class": "flex-1"
|
543
543
|
}, {
|
@@ -545,64 +545,64 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
|
|
545
545
|
class: "search-bar"
|
546
546
|
}, {
|
547
547
|
default: n(() => [l(e(T), {
|
548
|
-
loading: e(
|
549
|
-
onRefresh: e(
|
550
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
548
|
+
loading: e(M),
|
549
|
+
onRefresh: e(_)
|
550
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(ne), {
|
551
551
|
onOpen: e(R)
|
552
|
-
}, null, 8, ["onOpen"]), l(
|
552
|
+
}, null, 8, ["onOpen"]), l(A, {
|
553
553
|
class: "basic-search-input",
|
554
|
-
modelValue: e(
|
555
|
-
"onUpdate:modelValue":
|
554
|
+
modelValue: e(f).keyword,
|
555
|
+
"onUpdate:modelValue": g[0] || (g[0] = (u) => e(f).keyword = u),
|
556
556
|
placeholder: e(a)("base.placeholder.keyword"),
|
557
557
|
clearable: "",
|
558
|
-
onKeyup:
|
559
|
-
onClear: e(
|
560
|
-
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(
|
561
|
-
modelValue: e(
|
562
|
-
"onUpdate:modelValue":
|
563
|
-
onChange: e(
|
558
|
+
onKeyup: ee(e(s), ["enter"]),
|
559
|
+
onClear: e(s)
|
560
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(i, {
|
561
|
+
modelValue: e(f).status,
|
562
|
+
"onUpdate:modelValue": g[1] || (g[1] = (u) => e(f).status = u),
|
563
|
+
onChange: e(s)
|
564
564
|
}, {
|
565
|
-
default: n(() => [(
|
566
|
-
key:
|
567
|
-
label: e(a)(`base.DISABLE_ENABLE.${
|
568
|
-
value:
|
565
|
+
default: n(() => [(S(), D(P, null, Y([0, 1, 2], (u) => l(q, {
|
566
|
+
key: u,
|
567
|
+
label: e(a)(`base.DISABLE_ENABLE.${u}`),
|
568
|
+
value: u
|
569
569
|
}, null, 8, ["label", "value"])), 64))]),
|
570
570
|
_: 1
|
571
|
-
}, 8, ["modelValue", "onChange"]), l(e(
|
572
|
-
onSearch: e(
|
571
|
+
}, 8, ["modelValue", "onChange"]), l(e(re), {
|
572
|
+
onSearch: e(s)
|
573
573
|
}, null, 8, ["onSearch"])]),
|
574
574
|
_: 1
|
575
575
|
})]),
|
576
|
-
default: n(() => [l(e(
|
576
|
+
default: n(() => [l(e(oe), {
|
577
577
|
ref_key: "tableRef",
|
578
578
|
ref: t,
|
579
579
|
size: "small",
|
580
|
-
columns:
|
581
|
-
url: e(J).urls[e(
|
582
|
-
"search-param": e(
|
580
|
+
columns: y,
|
581
|
+
url: e(J).urls[e(te)],
|
582
|
+
"search-param": e(f),
|
583
583
|
autoSearch: ""
|
584
|
-
}, null, 8, ["url", "search-param"]), l(
|
584
|
+
}, null, 8, ["url", "search-param"]), l(Se, {
|
585
585
|
ref_key: "infoRef",
|
586
|
-
ref:
|
587
|
-
onRefresh: e(
|
586
|
+
ref: c,
|
587
|
+
onRefresh: e(w)
|
588
588
|
}, null, 8, ["onRefresh"])]),
|
589
589
|
_: 1
|
590
590
|
});
|
591
591
|
};
|
592
592
|
}
|
593
|
-
}),
|
593
|
+
}), Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
594
594
|
__proto__: null,
|
595
|
-
default:
|
595
|
+
default: Ae
|
596
596
|
}, Symbol.toStringTag, { value: "Module" })), ie = {
|
597
597
|
tops: "tops",
|
598
598
|
rules: "rules"
|
599
|
-
},
|
599
|
+
}, z = xe.createAutoApi("menu", ie, "id", Object.keys(ie)), fe = le("rule", {}, "key");
|
600
600
|
/*! Element Plus Icons Vue v2.3.1 */
|
601
|
-
var
|
601
|
+
var qe = /* @__PURE__ */ $({
|
602
602
|
name: "Key",
|
603
603
|
__name: "key",
|
604
|
-
setup(
|
605
|
-
return (
|
604
|
+
setup(x) {
|
605
|
+
return (C, y) => (S(), D("svg", {
|
606
606
|
xmlns: "http://www.w3.org/2000/svg",
|
607
607
|
viewBox: "0 0 1024 1024"
|
608
608
|
}, [
|
@@ -612,8 +612,8 @@ var Me = /* @__PURE__ */ z({
|
|
612
612
|
})
|
613
613
|
]));
|
614
614
|
}
|
615
|
-
}),
|
616
|
-
const
|
615
|
+
}), Ee = qe;
|
616
|
+
const Le = /* @__PURE__ */ $({
|
617
617
|
__name: "topMenuSelect",
|
618
618
|
props: {
|
619
619
|
modelValue: {
|
@@ -626,51 +626,52 @@ const Ae = /* @__PURE__ */ z({
|
|
626
626
|
}
|
627
627
|
},
|
628
628
|
emits: ["update:modelValue", "change"],
|
629
|
-
setup(
|
630
|
-
emit:
|
629
|
+
setup(x, {
|
630
|
+
emit: C
|
631
631
|
}) {
|
632
|
-
const
|
632
|
+
const y = C, M = x, {
|
633
633
|
requesting: t
|
634
|
-
} = K(
|
635
|
-
value:
|
636
|
-
options:
|
637
|
-
change:
|
638
|
-
refresh:
|
639
|
-
filterOptions:
|
640
|
-
} = pe(
|
634
|
+
} = K(z), {
|
635
|
+
value: c,
|
636
|
+
options: f,
|
637
|
+
change: s,
|
638
|
+
refresh: _,
|
639
|
+
filterOptions: w
|
640
|
+
} = pe(de(M, "modelValue"), y, {
|
641
641
|
key: "MENU_LIST",
|
642
|
-
api:
|
643
|
-
url:
|
642
|
+
api: z,
|
643
|
+
url: z.urls.tops,
|
644
644
|
isArray: !0
|
645
645
|
});
|
646
646
|
return (R, h) => {
|
647
|
-
const V =
|
648
|
-
return
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
647
|
+
const V = d("el-select-v2");
|
648
|
+
return S(), L(V, {
|
649
|
+
class: "w-full",
|
650
|
+
modelValue: e(c),
|
651
|
+
"onUpdate:modelValue": h[1] || (h[1] = (g) => I(c) ? c.value = g : null),
|
652
|
+
options: e(f),
|
653
|
+
multiple: x.multiple,
|
653
654
|
disabled: e(t),
|
654
655
|
placeholder: e(a)("base.placeholder.select"),
|
655
656
|
filterable: "",
|
656
|
-
filterOptions: e(
|
657
|
-
onChange: e(
|
657
|
+
filterOptions: e(w),
|
658
|
+
onChange: e(s)
|
658
659
|
}, {
|
659
660
|
prefix: n(() => [l(e(T), {
|
660
661
|
loading: e(t),
|
661
662
|
text: "",
|
662
663
|
size: "small",
|
663
|
-
onRefresh: h[0] || (h[0] = (
|
664
|
+
onRefresh: h[0] || (h[0] = (g) => e(_)(!0))
|
664
665
|
}, null, 8, ["loading"])]),
|
665
666
|
_: 1
|
666
667
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
667
668
|
};
|
668
669
|
}
|
669
|
-
}),
|
670
|
+
}), $e = /* @__PURE__ */ $({
|
670
671
|
__name: "info",
|
671
672
|
emits: ["refresh"],
|
672
|
-
setup(
|
673
|
-
const
|
673
|
+
setup(x, { expose: C, emit: y }) {
|
674
|
+
const M = y, t = F({
|
674
675
|
id: 0,
|
675
676
|
menu_id: 0,
|
676
677
|
module: "",
|
@@ -691,7 +692,7 @@ const Ae = /* @__PURE__ */ z({
|
|
691
692
|
keep_alive: !1,
|
692
693
|
link: !1
|
693
694
|
}
|
694
|
-
}),
|
695
|
+
}), c = {
|
695
696
|
sort: [
|
696
697
|
{ required: !0, type: "number", message: a("base.placeholder.input base.sort"), trigger: "blur" }
|
697
698
|
],
|
@@ -710,55 +711,55 @@ const Ae = /* @__PURE__ */ z({
|
|
710
711
|
component: [
|
711
712
|
{ required: !0, message: a("base.placeholder.input menu.component"), trigger: "blur" }
|
712
713
|
]
|
713
|
-
}, { modal:
|
714
|
-
|
714
|
+
}, { modal: f, title: s, form: _, requesting: w, executing: R, open: h, modify: V, submit: g, closed: A } = H(
|
715
|
+
M,
|
715
716
|
t,
|
716
|
-
|
717
|
+
z
|
717
718
|
);
|
718
|
-
return
|
719
|
-
openOrModify: (
|
720
|
-
|
719
|
+
return C({
|
720
|
+
openOrModify: (i) => {
|
721
|
+
i ? V({ id: i }) : h();
|
721
722
|
}
|
722
|
-
}), (
|
723
|
-
const
|
724
|
-
return
|
725
|
-
modelValue: e(
|
726
|
-
"onUpdate:modelValue": o[17] || (o[17] = (
|
727
|
-
title: e(
|
723
|
+
}), (i, o) => {
|
724
|
+
const r = d("el-form-item"), u = d("el-col"), p = d("el-input-number"), k = d("el-row"), U = d("el-input"), b = d("el-switch"), v = d("el-form");
|
725
|
+
return S(), L(e(G), {
|
726
|
+
modelValue: e(f),
|
727
|
+
"onUpdate:modelValue": o[17] || (o[17] = (m) => I(f) ? f.value = m : null),
|
728
|
+
title: e(s)(),
|
728
729
|
width: "1000px",
|
729
730
|
executing: e(R),
|
730
|
-
onClosed: e(
|
731
|
-
onSubmit: e(
|
731
|
+
onClosed: e(A),
|
732
|
+
onSubmit: e(g)
|
732
733
|
}, {
|
733
734
|
default: n(() => [
|
734
|
-
l(
|
735
|
+
l(v, {
|
735
736
|
ref_key: "form",
|
736
|
-
ref:
|
737
|
+
ref: _,
|
737
738
|
model: t,
|
738
739
|
"label-width": "auto",
|
739
|
-
rules:
|
740
|
-
disabled: e(
|
740
|
+
rules: c,
|
741
|
+
disabled: e(w) || e(R)
|
741
742
|
}, {
|
742
743
|
default: n(() => [
|
743
|
-
|
744
|
-
[
|
744
|
+
j(l(r, { prop: "id" }, null, 512), [
|
745
|
+
[B, !1]
|
745
746
|
]),
|
746
|
-
l(
|
747
|
+
l(k, { gutter: 20 }, {
|
747
748
|
default: n(() => [
|
748
|
-
l(
|
749
|
+
l(u, { span: 12 }, {
|
749
750
|
default: n(() => [
|
750
|
-
l(
|
751
|
+
l(k, { gutter: 10 }, {
|
751
752
|
default: n(() => [
|
752
|
-
l(
|
753
|
+
l(u, { span: 12 }, {
|
753
754
|
default: n(() => [
|
754
|
-
l(
|
755
|
+
l(r, {
|
755
756
|
label: e(a)("base.parent"),
|
756
757
|
prop: "menu_id"
|
757
758
|
}, {
|
758
759
|
default: n(() => [
|
759
|
-
l(
|
760
|
+
l(Le, {
|
760
761
|
modelValue: t.menu_id,
|
761
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
762
|
+
"onUpdate:modelValue": o[0] || (o[0] = (m) => t.menu_id = m)
|
762
763
|
}, null, 8, ["modelValue"])
|
763
764
|
]),
|
764
765
|
_: 1
|
@@ -766,16 +767,17 @@ const Ae = /* @__PURE__ */ z({
|
|
766
767
|
]),
|
767
768
|
_: 1
|
768
769
|
}),
|
769
|
-
l(
|
770
|
+
l(u, { span: 12 }, {
|
770
771
|
default: n(() => [
|
771
|
-
l(
|
772
|
+
l(r, {
|
772
773
|
label: e(a)("base.sort"),
|
773
774
|
prop: "sort"
|
774
775
|
}, {
|
775
776
|
default: n(() => [
|
776
|
-
l(
|
777
|
+
l(p, {
|
778
|
+
class: "w-full",
|
777
779
|
modelValue: t.sort,
|
778
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
780
|
+
"onUpdate:modelValue": o[1] || (o[1] = (m) => t.sort = m),
|
779
781
|
min: 0,
|
780
782
|
placeholder: e(a)("base.placeholder.input")
|
781
783
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -788,79 +790,79 @@ const Ae = /* @__PURE__ */ z({
|
|
788
790
|
]),
|
789
791
|
_: 1
|
790
792
|
}),
|
791
|
-
l(
|
793
|
+
l(r, {
|
792
794
|
label: e(a)("menu.module"),
|
793
795
|
prop: "module"
|
794
796
|
}, {
|
795
797
|
default: n(() => [
|
796
|
-
l(
|
798
|
+
l(U, {
|
797
799
|
modelValue: t.module,
|
798
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
800
|
+
"onUpdate:modelValue": o[2] || (o[2] = (m) => t.module = m),
|
799
801
|
placeholder: e(a)("base.placeholder.input")
|
800
802
|
}, null, 8, ["modelValue", "placeholder"])
|
801
803
|
]),
|
802
804
|
_: 1
|
803
805
|
}, 8, ["label"]),
|
804
|
-
l(
|
806
|
+
l(r, {
|
805
807
|
label: e(a)("base.name"),
|
806
808
|
prop: "name"
|
807
809
|
}, {
|
808
810
|
default: n(() => [
|
809
|
-
l(
|
811
|
+
l(U, {
|
810
812
|
modelValue: t.name,
|
811
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
813
|
+
"onUpdate:modelValue": o[3] || (o[3] = (m) => t.name = m),
|
812
814
|
placeholder: e(a)("base.placeholder.input")
|
813
815
|
}, null, 8, ["modelValue", "placeholder"])
|
814
816
|
]),
|
815
817
|
_: 1
|
816
818
|
}, 8, ["label"]),
|
817
|
-
l(
|
819
|
+
l(r, {
|
818
820
|
label: e(a)("base.en_name"),
|
819
821
|
prop: "en_name"
|
820
822
|
}, {
|
821
823
|
default: n(() => [
|
822
|
-
l(
|
824
|
+
l(U, {
|
823
825
|
modelValue: t.en_name,
|
824
|
-
"onUpdate:modelValue": o[4] || (o[4] = (
|
826
|
+
"onUpdate:modelValue": o[4] || (o[4] = (m) => t.en_name = m),
|
825
827
|
placeholder: e(a)("base.placeholder.input")
|
826
828
|
}, null, 8, ["modelValue", "placeholder"])
|
827
829
|
]),
|
828
830
|
_: 1
|
829
831
|
}, 8, ["label"]),
|
830
|
-
l(
|
832
|
+
l(r, {
|
831
833
|
label: e(a)("menu.component"),
|
832
834
|
prop: "component"
|
833
835
|
}, {
|
834
836
|
default: n(() => [
|
835
|
-
l(
|
837
|
+
l(U, {
|
836
838
|
modelValue: t.component,
|
837
|
-
"onUpdate:modelValue": o[5] || (o[5] = (
|
839
|
+
"onUpdate:modelValue": o[5] || (o[5] = (m) => t.component = m),
|
838
840
|
placeholder: e(a)("base.placeholder.input")
|
839
841
|
}, null, 8, ["modelValue", "placeholder"])
|
840
842
|
]),
|
841
843
|
_: 1
|
842
844
|
}, 8, ["label"]),
|
843
|
-
l(
|
845
|
+
l(r, {
|
844
846
|
label: e(a)("base.url"),
|
845
847
|
prop: "url"
|
846
848
|
}, {
|
847
849
|
default: n(() => [
|
848
|
-
l(
|
850
|
+
l(U, {
|
849
851
|
modelValue: t.url,
|
850
|
-
"onUpdate:modelValue": o[6] || (o[6] = (
|
852
|
+
"onUpdate:modelValue": o[6] || (o[6] = (m) => t.url = m),
|
851
853
|
placeholder: e(a)("base.placeholder.input")
|
852
854
|
}, null, 8, ["modelValue", "placeholder"])
|
853
855
|
]),
|
854
856
|
_: 1
|
855
857
|
}, 8, ["label"]),
|
856
|
-
l(
|
858
|
+
l(r, {
|
857
859
|
label: e(a)("base.remark"),
|
858
860
|
prop: "remark"
|
859
861
|
}, {
|
860
862
|
default: n(() => [
|
861
|
-
l(
|
863
|
+
l(U, {
|
862
864
|
modelValue: t.remark,
|
863
|
-
"onUpdate:modelValue": o[7] || (o[7] = (
|
865
|
+
"onUpdate:modelValue": o[7] || (o[7] = (m) => t.remark = m),
|
864
866
|
placeholder: e(a)("base.placeholder.input")
|
865
867
|
}, null, 8, ["modelValue", "placeholder"])
|
866
868
|
]),
|
@@ -869,27 +871,27 @@ const Ae = /* @__PURE__ */ z({
|
|
869
871
|
]),
|
870
872
|
_: 1
|
871
873
|
}),
|
872
|
-
l(
|
874
|
+
l(u, { span: 12 }, {
|
873
875
|
default: n(() => [
|
874
|
-
|
875
|
-
[
|
876
|
+
j(l(r, { prop: "meta.icon" }, null, 512), [
|
877
|
+
[B, !1]
|
876
878
|
]),
|
877
|
-
l(
|
879
|
+
l(r, {
|
878
880
|
label: e(a)("base.icon"),
|
879
881
|
prop: "icon"
|
880
882
|
}, {
|
881
883
|
default: n(() => [
|
882
|
-
l(
|
884
|
+
l(U, {
|
883
885
|
modelValue: t.icon,
|
884
|
-
"onUpdate:modelValue": o[8] || (o[8] = (
|
886
|
+
"onUpdate:modelValue": o[8] || (o[8] = (m) => t.icon = m),
|
885
887
|
placeholder: e(a)("base.placeholder.input"),
|
886
|
-
onInput: o[9] || (o[9] = (
|
887
|
-
t.meta.icon =
|
888
|
+
onInput: o[9] || (o[9] = (m) => {
|
889
|
+
t.meta.icon = m;
|
888
890
|
})
|
889
891
|
}, {
|
890
892
|
prepend: n(() => [
|
891
893
|
Q("span", {
|
892
|
-
class:
|
894
|
+
class: ge("iconfont " + t.icon)
|
893
895
|
}, null, 2)
|
894
896
|
]),
|
895
897
|
_: 1
|
@@ -897,44 +899,44 @@ const Ae = /* @__PURE__ */ z({
|
|
897
899
|
]),
|
898
900
|
_: 1
|
899
901
|
}, 8, ["label"]),
|
900
|
-
l(
|
902
|
+
l(r, {
|
901
903
|
label: e(a)("base.title"),
|
902
904
|
prop: "meta.title"
|
903
905
|
}, {
|
904
906
|
default: n(() => [
|
905
|
-
l(
|
907
|
+
l(U, {
|
906
908
|
modelValue: t.meta.title,
|
907
|
-
"onUpdate:modelValue": o[10] || (o[10] = (
|
909
|
+
"onUpdate:modelValue": o[10] || (o[10] = (m) => t.meta.title = m),
|
908
910
|
placeholder: e(a)("base.placeholder.input")
|
909
911
|
}, null, 8, ["modelValue", "placeholder"])
|
910
912
|
]),
|
911
913
|
_: 1
|
912
914
|
}, 8, ["label"]),
|
913
|
-
l(
|
915
|
+
l(r, {
|
914
916
|
label: e(a)("menu.active"),
|
915
917
|
prop: "meta.active"
|
916
918
|
}, {
|
917
919
|
default: n(() => [
|
918
|
-
l(
|
920
|
+
l(U, {
|
919
921
|
modelValue: t.meta.active,
|
920
|
-
"onUpdate:modelValue": o[11] || (o[11] = (
|
922
|
+
"onUpdate:modelValue": o[11] || (o[11] = (m) => t.meta.active = m),
|
921
923
|
placeholder: e(a)("base.placeholder.input")
|
922
924
|
}, null, 8, ["modelValue", "placeholder"])
|
923
925
|
]),
|
924
926
|
_: 1
|
925
927
|
}, 8, ["label"]),
|
926
|
-
l(
|
928
|
+
l(k, null, {
|
927
929
|
default: n(() => [
|
928
|
-
l(
|
930
|
+
l(u, { span: 12 }, {
|
929
931
|
default: n(() => [
|
930
|
-
l(
|
932
|
+
l(r, {
|
931
933
|
label: e(a)("menu.link"),
|
932
934
|
prop: "meta.link"
|
933
935
|
}, {
|
934
936
|
default: n(() => [
|
935
|
-
l(
|
937
|
+
l(b, {
|
936
938
|
modelValue: t.meta.link,
|
937
|
-
"onUpdate:modelValue": o[12] || (o[12] = (
|
939
|
+
"onUpdate:modelValue": o[12] || (o[12] = (m) => t.meta.link = m)
|
938
940
|
}, null, 8, ["modelValue"])
|
939
941
|
]),
|
940
942
|
_: 1
|
@@ -942,16 +944,16 @@ const Ae = /* @__PURE__ */ z({
|
|
942
944
|
]),
|
943
945
|
_: 1
|
944
946
|
}),
|
945
|
-
l(
|
947
|
+
l(u, { span: 12 }, {
|
946
948
|
default: n(() => [
|
947
|
-
l(
|
949
|
+
l(r, {
|
948
950
|
label: e(a)("menu.keep_alive"),
|
949
951
|
prop: "meta.keep_alive"
|
950
952
|
}, {
|
951
953
|
default: n(() => [
|
952
|
-
l(
|
954
|
+
l(b, {
|
953
955
|
modelValue: t.meta.keep_alive,
|
954
|
-
"onUpdate:modelValue": o[13] || (o[13] = (
|
956
|
+
"onUpdate:modelValue": o[13] || (o[13] = (m) => t.meta.keep_alive = m)
|
955
957
|
}, null, 8, ["modelValue"])
|
956
958
|
]),
|
957
959
|
_: 1
|
@@ -959,16 +961,16 @@ const Ae = /* @__PURE__ */ z({
|
|
959
961
|
]),
|
960
962
|
_: 1
|
961
963
|
}),
|
962
|
-
l(
|
964
|
+
l(u, { span: 12 }, {
|
963
965
|
default: n(() => [
|
964
|
-
l(
|
966
|
+
l(r, {
|
965
967
|
label: e(a)("menu.hide"),
|
966
968
|
prop: "meta.hide"
|
967
969
|
}, {
|
968
970
|
default: n(() => [
|
969
|
-
l(
|
971
|
+
l(b, {
|
970
972
|
modelValue: t.meta.hide,
|
971
|
-
"onUpdate:modelValue": o[14] || (o[14] = (
|
973
|
+
"onUpdate:modelValue": o[14] || (o[14] = (m) => t.meta.hide = m)
|
972
974
|
}, null, 8, ["modelValue"])
|
973
975
|
]),
|
974
976
|
_: 1
|
@@ -976,16 +978,16 @@ const Ae = /* @__PURE__ */ z({
|
|
976
978
|
]),
|
977
979
|
_: 1
|
978
980
|
}),
|
979
|
-
l(
|
981
|
+
l(u, { span: 12 }, {
|
980
982
|
default: n(() => [
|
981
|
-
l(
|
983
|
+
l(r, {
|
982
984
|
label: e(a)("menu.full"),
|
983
985
|
prop: "meta.full"
|
984
986
|
}, {
|
985
987
|
default: n(() => [
|
986
|
-
l(
|
988
|
+
l(b, {
|
987
989
|
modelValue: t.meta.full,
|
988
|
-
"onUpdate:modelValue": o[15] || (o[15] = (
|
990
|
+
"onUpdate:modelValue": o[15] || (o[15] = (m) => t.meta.full = m)
|
989
991
|
}, null, 8, ["modelValue"])
|
990
992
|
]),
|
991
993
|
_: 1
|
@@ -993,16 +995,16 @@ const Ae = /* @__PURE__ */ z({
|
|
993
995
|
]),
|
994
996
|
_: 1
|
995
997
|
}),
|
996
|
-
l(
|
998
|
+
l(u, { span: 12 }, {
|
997
999
|
default: n(() => [
|
998
|
-
l(
|
1000
|
+
l(r, {
|
999
1001
|
label: e(a)("menu.affix"),
|
1000
1002
|
prop: "meta.affix"
|
1001
1003
|
}, {
|
1002
1004
|
default: n(() => [
|
1003
|
-
l(
|
1005
|
+
l(b, {
|
1004
1006
|
modelValue: t.meta.affix,
|
1005
|
-
"onUpdate:modelValue": o[16] || (o[16] = (
|
1007
|
+
"onUpdate:modelValue": o[16] || (o[16] = (m) => t.meta.affix = m)
|
1006
1008
|
}, null, 8, ["modelValue"])
|
1007
1009
|
]),
|
1008
1010
|
_: 1
|
@@ -1027,7 +1029,7 @@ const Ae = /* @__PURE__ */ z({
|
|
1027
1029
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
1028
1030
|
};
|
1029
1031
|
}
|
1030
|
-
}),
|
1032
|
+
}), ze = /* @__PURE__ */ $({
|
1031
1033
|
__name: "menuSelect",
|
1032
1034
|
props: {
|
1033
1035
|
modelValue: {
|
@@ -1040,50 +1042,51 @@ const Ae = /* @__PURE__ */ z({
|
|
1040
1042
|
}
|
1041
1043
|
},
|
1042
1044
|
emits: ["update:modelValue", "change"],
|
1043
|
-
setup(
|
1044
|
-
emit:
|
1045
|
+
setup(x, {
|
1046
|
+
emit: C
|
1045
1047
|
}) {
|
1046
|
-
const
|
1048
|
+
const y = C, M = x, {
|
1047
1049
|
requesting: t
|
1048
|
-
} = K(
|
1049
|
-
value:
|
1050
|
-
options:
|
1051
|
-
change:
|
1052
|
-
refresh:
|
1053
|
-
filterOptions:
|
1054
|
-
} = pe(
|
1050
|
+
} = K(z), {
|
1051
|
+
value: c,
|
1052
|
+
options: f,
|
1053
|
+
change: s,
|
1054
|
+
refresh: _,
|
1055
|
+
filterOptions: w
|
1056
|
+
} = pe(de(M, "modelValue"), y, {
|
1055
1057
|
key: "MENU_LIST",
|
1056
|
-
api:
|
1058
|
+
api: z,
|
1057
1059
|
isArray: !0
|
1058
1060
|
});
|
1059
1061
|
return (R, h) => {
|
1060
|
-
const V =
|
1061
|
-
return
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1062
|
+
const V = d("el-select-v2");
|
1063
|
+
return S(), L(V, {
|
1064
|
+
class: "w-full",
|
1065
|
+
modelValue: e(c),
|
1066
|
+
"onUpdate:modelValue": h[1] || (h[1] = (g) => I(c) ? c.value = g : null),
|
1067
|
+
options: e(f),
|
1068
|
+
multiple: x.multiple,
|
1066
1069
|
disabled: e(t),
|
1067
1070
|
placeholder: e(a)("base.placeholder.select"),
|
1068
1071
|
filterable: "",
|
1069
|
-
filterOptions: e(
|
1070
|
-
onChange: e(
|
1072
|
+
filterOptions: e(w),
|
1073
|
+
onChange: e(s)
|
1071
1074
|
}, {
|
1072
1075
|
prefix: n(() => [l(e(T), {
|
1073
1076
|
loading: e(t),
|
1074
1077
|
text: "",
|
1075
1078
|
size: "small",
|
1076
|
-
onRefresh: h[0] || (h[0] = (
|
1079
|
+
onRefresh: h[0] || (h[0] = (g) => e(_)(!0))
|
1077
1080
|
}, null, 8, ["loading"])]),
|
1078
1081
|
_: 1
|
1079
1082
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
1080
1083
|
};
|
1081
1084
|
}
|
1082
|
-
}),
|
1085
|
+
}), De = /* @__PURE__ */ $({
|
1083
1086
|
__name: "rule",
|
1084
1087
|
emits: ["refresh"],
|
1085
|
-
setup(
|
1086
|
-
const
|
1088
|
+
setup(x, { expose: C, emit: y }) {
|
1089
|
+
const M = y, t = F({
|
1087
1090
|
key: "",
|
1088
1091
|
menu_id: 0,
|
1089
1092
|
sort: 0,
|
@@ -1091,7 +1094,7 @@ const Ae = /* @__PURE__ */ z({
|
|
1091
1094
|
en_name: "",
|
1092
1095
|
urls: "",
|
1093
1096
|
remark: ""
|
1094
|
-
}),
|
1097
|
+
}), c = {
|
1095
1098
|
menu_id: [
|
1096
1099
|
{ required: !0, type: "number", message: a("base.placeholder.select menu.Menu"), trigger: "blur" }
|
1097
1100
|
],
|
@@ -1107,103 +1110,104 @@ const Ae = /* @__PURE__ */ z({
|
|
1107
1110
|
urls: [
|
1108
1111
|
{ required: !0, message: a("base.placeholder.input base.rules"), trigger: "blur" }
|
1109
1112
|
]
|
1110
|
-
}, { modal:
|
1111
|
-
|
1113
|
+
}, { modal: f, title: s, form: _, requesting: w, executing: R, open: h, modify: V, submit: g, closed: A } = H(
|
1114
|
+
M,
|
1112
1115
|
t,
|
1113
|
-
|
1116
|
+
fe
|
1114
1117
|
);
|
1115
|
-
return
|
1116
|
-
openOrModify: (
|
1117
|
-
|
1118
|
+
return C({
|
1119
|
+
openOrModify: (i) => {
|
1120
|
+
i ? V({ key: i }) : h();
|
1118
1121
|
}
|
1119
|
-
}), (
|
1120
|
-
const
|
1121
|
-
return
|
1122
|
-
modelValue: e(
|
1123
|
-
"onUpdate:modelValue": o[6] || (o[6] = (
|
1124
|
-
title: e(
|
1122
|
+
}), (i, o) => {
|
1123
|
+
const r = d("el-form-item"), u = d("el-input-number"), p = d("el-input"), k = d("el-col"), U = d("el-row"), b = d("el-form");
|
1124
|
+
return S(), L(e(G), {
|
1125
|
+
modelValue: e(f),
|
1126
|
+
"onUpdate:modelValue": o[6] || (o[6] = (v) => I(f) ? f.value = v : null),
|
1127
|
+
title: e(s)("base.rules"),
|
1125
1128
|
width: "1000px",
|
1126
1129
|
executing: e(R),
|
1127
|
-
onClosed: e(
|
1128
|
-
onSubmit: e(
|
1130
|
+
onClosed: e(A),
|
1131
|
+
onSubmit: e(g)
|
1129
1132
|
}, {
|
1130
1133
|
default: n(() => [
|
1131
|
-
l(
|
1134
|
+
l(b, {
|
1132
1135
|
ref_key: "form",
|
1133
|
-
ref:
|
1136
|
+
ref: _,
|
1134
1137
|
model: t,
|
1135
1138
|
"label-width": "auto",
|
1136
|
-
rules:
|
1137
|
-
disabled: e(
|
1139
|
+
rules: c,
|
1140
|
+
disabled: e(w) || e(R)
|
1138
1141
|
}, {
|
1139
1142
|
default: n(() => [
|
1140
|
-
|
1141
|
-
[
|
1143
|
+
j(l(r, { prop: "key" }, null, 512), [
|
1144
|
+
[B, !1]
|
1142
1145
|
]),
|
1143
|
-
l(
|
1146
|
+
l(U, { gutter: 20 }, {
|
1144
1147
|
default: n(() => [
|
1145
|
-
l(
|
1148
|
+
l(k, { span: 10 }, {
|
1146
1149
|
default: n(() => [
|
1147
|
-
l(
|
1150
|
+
l(r, {
|
1148
1151
|
label: e(a)("menu.Menu"),
|
1149
1152
|
prop: "menu_id"
|
1150
1153
|
}, {
|
1151
1154
|
default: n(() => [
|
1152
|
-
l(
|
1155
|
+
l(ze, {
|
1153
1156
|
modelValue: t.menu_id,
|
1154
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
1157
|
+
"onUpdate:modelValue": o[0] || (o[0] = (v) => t.menu_id = v)
|
1155
1158
|
}, null, 8, ["modelValue"])
|
1156
1159
|
]),
|
1157
1160
|
_: 1
|
1158
1161
|
}, 8, ["label"]),
|
1159
|
-
l(
|
1162
|
+
l(r, {
|
1160
1163
|
label: e(a)("base.sort"),
|
1161
1164
|
prop: "sort"
|
1162
1165
|
}, {
|
1163
1166
|
default: n(() => [
|
1164
|
-
l(
|
1167
|
+
l(u, {
|
1168
|
+
class: "w-full",
|
1165
1169
|
modelValue: t.sort,
|
1166
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
1170
|
+
"onUpdate:modelValue": o[1] || (o[1] = (v) => t.sort = v),
|
1167
1171
|
min: 0,
|
1168
1172
|
placeholder: e(a)("base.placeholder.input")
|
1169
1173
|
}, null, 8, ["modelValue", "placeholder"])
|
1170
1174
|
]),
|
1171
1175
|
_: 1
|
1172
1176
|
}, 8, ["label"]),
|
1173
|
-
l(
|
1177
|
+
l(r, {
|
1174
1178
|
label: e(a)("base.name"),
|
1175
1179
|
prop: "name"
|
1176
1180
|
}, {
|
1177
1181
|
default: n(() => [
|
1178
|
-
l(
|
1182
|
+
l(p, {
|
1179
1183
|
modelValue: t.name,
|
1180
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
1184
|
+
"onUpdate:modelValue": o[2] || (o[2] = (v) => t.name = v),
|
1181
1185
|
placeholder: e(a)("base.placeholder.input")
|
1182
1186
|
}, null, 8, ["modelValue", "placeholder"])
|
1183
1187
|
]),
|
1184
1188
|
_: 1
|
1185
1189
|
}, 8, ["label"]),
|
1186
|
-
l(
|
1190
|
+
l(r, {
|
1187
1191
|
label: e(a)("base.en_name"),
|
1188
1192
|
prop: "en_name"
|
1189
1193
|
}, {
|
1190
1194
|
default: n(() => [
|
1191
|
-
l(
|
1195
|
+
l(p, {
|
1192
1196
|
modelValue: t.en_name,
|
1193
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
1197
|
+
"onUpdate:modelValue": o[3] || (o[3] = (v) => t.en_name = v),
|
1194
1198
|
placeholder: e(a)("base.placeholder.input")
|
1195
1199
|
}, null, 8, ["modelValue", "placeholder"])
|
1196
1200
|
]),
|
1197
1201
|
_: 1
|
1198
1202
|
}, 8, ["label"]),
|
1199
|
-
l(
|
1203
|
+
l(r, {
|
1200
1204
|
label: e(a)("base.remark"),
|
1201
1205
|
prop: "remark"
|
1202
1206
|
}, {
|
1203
1207
|
default: n(() => [
|
1204
|
-
l(
|
1208
|
+
l(p, {
|
1205
1209
|
modelValue: t.remark,
|
1206
|
-
"onUpdate:modelValue": o[4] || (o[4] = (
|
1210
|
+
"onUpdate:modelValue": o[4] || (o[4] = (v) => t.remark = v),
|
1207
1211
|
placeholder: e(a)("base.placeholder.input")
|
1208
1212
|
}, null, 8, ["modelValue", "placeholder"])
|
1209
1213
|
]),
|
@@ -1212,16 +1216,16 @@ const Ae = /* @__PURE__ */ z({
|
|
1212
1216
|
]),
|
1213
1217
|
_: 1
|
1214
1218
|
}),
|
1215
|
-
l(
|
1219
|
+
l(k, { span: 14 }, {
|
1216
1220
|
default: n(() => [
|
1217
|
-
l(
|
1221
|
+
l(r, {
|
1218
1222
|
label: e(a)("base.rules"),
|
1219
1223
|
prop: "urls"
|
1220
1224
|
}, {
|
1221
1225
|
default: n(() => [
|
1222
|
-
l(
|
1226
|
+
l(p, {
|
1223
1227
|
modelValue: t.urls,
|
1224
|
-
"onUpdate:modelValue": o[5] || (o[5] = (
|
1228
|
+
"onUpdate:modelValue": o[5] || (o[5] = (v) => t.urls = v),
|
1225
1229
|
type: "textarea",
|
1226
1230
|
rows: 11,
|
1227
1231
|
placeholder: e(a)("base.placeholder.input")
|
@@ -1243,13 +1247,17 @@ const Ae = /* @__PURE__ */ z({
|
|
1243
1247
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
1244
1248
|
};
|
1245
1249
|
}
|
1246
|
-
})
|
1250
|
+
});
|
1251
|
+
function me(x) {
|
1252
|
+
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !he(x);
|
1253
|
+
}
|
1254
|
+
const Ie = /* @__PURE__ */ $({
|
1247
1255
|
__name: "index",
|
1248
|
-
setup(
|
1249
|
-
const
|
1256
|
+
setup(x) {
|
1257
|
+
const C = {
|
1250
1258
|
keyword: "",
|
1251
1259
|
status: 0
|
1252
|
-
},
|
1260
|
+
}, y = Z(""), M = [
|
1253
1261
|
{
|
1254
1262
|
label: a("base.sort"),
|
1255
1263
|
prop: "sort",
|
@@ -1260,9 +1268,9 @@ const Ae = /* @__PURE__ */ z({
|
|
1260
1268
|
prop: "icon",
|
1261
1269
|
width: 60,
|
1262
1270
|
render: ({
|
1263
|
-
row:
|
1271
|
+
row: o
|
1264
1272
|
}) => l("span", {
|
1265
|
-
class: "iconfont " +
|
1273
|
+
class: "iconfont " + o.icon,
|
1266
1274
|
style: "font-size: 16px;"
|
1267
1275
|
}, null)
|
1268
1276
|
},
|
@@ -1276,10 +1284,10 @@ const Ae = /* @__PURE__ */ z({
|
|
1276
1284
|
prop: "parent",
|
1277
1285
|
width: 120,
|
1278
1286
|
render: ({
|
1279
|
-
row:
|
1287
|
+
row: o
|
1280
1288
|
}) => {
|
1281
|
-
var
|
1282
|
-
return l(P, null, [(
|
1289
|
+
var r;
|
1290
|
+
return l(P, null, [(r = o.menu) == null ? void 0 : r.name]);
|
1283
1291
|
}
|
1284
1292
|
},
|
1285
1293
|
{
|
@@ -1304,15 +1312,43 @@ const Ae = /* @__PURE__ */ z({
|
|
1304
1312
|
width: 0,
|
1305
1313
|
align: "left",
|
1306
1314
|
render: ({
|
1307
|
-
row:
|
1308
|
-
}) => l(
|
1315
|
+
row: o
|
1316
|
+
}) => l(d("el-space"), null, {
|
1309
1317
|
default: () => {
|
1310
|
-
var
|
1311
|
-
return [(
|
1312
|
-
|
1313
|
-
|
1318
|
+
var r;
|
1319
|
+
return [(r = o.rules) == null ? void 0 : r.map((u) => l(d("el-popover"), {
|
1320
|
+
visible: y.value === u.key,
|
1321
|
+
title: a("message.title.warning"),
|
1322
|
+
placement: "top-end",
|
1323
|
+
width: 220
|
1314
1324
|
}, {
|
1315
|
-
|
1325
|
+
reference: () => l(d("el-tag"), {
|
1326
|
+
class: "cursor-pointer",
|
1327
|
+
closable: !0,
|
1328
|
+
key: u.key,
|
1329
|
+
onClick: () => q(u.key),
|
1330
|
+
onClose: () => y.value = u.key
|
1331
|
+
}, {
|
1332
|
+
default: () => [u.translate]
|
1333
|
+
}),
|
1334
|
+
default: () => {
|
1335
|
+
let p, k;
|
1336
|
+
return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.delete base.rules")}: ${o.translate}-${u.translate} ?`]), l("div", {
|
1337
|
+
style: "text-align: right; margin: 0"
|
1338
|
+
}, [l(d("el-button"), {
|
1339
|
+
size: "small",
|
1340
|
+
text: !0,
|
1341
|
+
onClick: () => y.value = ""
|
1342
|
+
}, me(p = a("base.cancel")) ? p : {
|
1343
|
+
default: () => [p]
|
1344
|
+
}), l(d("el-button"), {
|
1345
|
+
size: "small",
|
1346
|
+
type: "danger",
|
1347
|
+
onClick: () => i(u.key)
|
1348
|
+
}, me(k = a("base.confirm")) ? k : {
|
1349
|
+
default: () => [k]
|
1350
|
+
})])]);
|
1351
|
+
}
|
1316
1352
|
}))];
|
1317
1353
|
}
|
1318
1354
|
})
|
@@ -1325,7 +1361,7 @@ const Ae = /* @__PURE__ */ z({
|
|
1325
1361
|
props: {
|
1326
1362
|
activeValue: 1,
|
1327
1363
|
inactiveValue: 2,
|
1328
|
-
api:
|
1364
|
+
api: z.urls[ce],
|
1329
1365
|
refresh: !0
|
1330
1366
|
}
|
1331
1367
|
},
|
@@ -1335,174 +1371,181 @@ const Ae = /* @__PURE__ */ z({
|
|
1335
1371
|
width: 60,
|
1336
1372
|
align: "center",
|
1337
1373
|
render: ({
|
1338
|
-
row:
|
1339
|
-
}) => l(
|
1340
|
-
onModify: () =>
|
1374
|
+
row: o
|
1375
|
+
}) => l(ae, {
|
1376
|
+
onModify: () => V(o.id)
|
1341
1377
|
}, null)
|
1342
1378
|
}
|
1343
1379
|
], {
|
1344
|
-
requesting:
|
1345
|
-
} = K(
|
1346
|
-
tableRef:
|
1380
|
+
requesting: t
|
1381
|
+
} = K(z), {
|
1382
|
+
tableRef: c,
|
1347
1383
|
infoRef: f,
|
1348
|
-
keyword:
|
1349
|
-
search:
|
1350
|
-
refresh:
|
1351
|
-
reset:
|
1352
|
-
openInfo:
|
1353
|
-
modifyInfo:
|
1354
|
-
} = W(
|
1355
|
-
infoRef:
|
1356
|
-
openInfo:
|
1384
|
+
keyword: s,
|
1385
|
+
search: _,
|
1386
|
+
refresh: w,
|
1387
|
+
reset: R,
|
1388
|
+
openInfo: h,
|
1389
|
+
modifyInfo: V
|
1390
|
+
} = W(C), {
|
1391
|
+
infoRef: g,
|
1392
|
+
openInfo: A,
|
1357
1393
|
modifyInfo: q
|
1358
|
-
} = W()
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1394
|
+
} = W(), i = (o) => {
|
1395
|
+
fe[Ue]({
|
1396
|
+
key: o
|
1397
|
+
}).then(() => {
|
1398
|
+
y.value = "", w();
|
1399
|
+
});
|
1400
|
+
};
|
1401
|
+
return (o, r) => {
|
1402
|
+
const u = d("el-button"), p = d("el-input"), k = d("el-radio-button"), U = d("el-radio-group"), b = d("el-space"), v = d("el-card");
|
1403
|
+
return S(), L(v, {
|
1362
1404
|
class: "basic-card flex-full",
|
1363
|
-
"body-class": "flex-1"
|
1405
|
+
"body-class": "flex-1",
|
1406
|
+
onClick: r[2] || (r[2] = () => y.value = "")
|
1364
1407
|
}, {
|
1365
|
-
header: n(() => [l(
|
1408
|
+
header: n(() => [l(b, {
|
1366
1409
|
class: "search-bar"
|
1367
1410
|
}, {
|
1368
1411
|
default: n(() => [l(e(T), {
|
1369
|
-
loading: e(
|
1370
|
-
onRefresh: e(
|
1371
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
1372
|
-
onOpen: e(
|
1373
|
-
}, null, 8, ["onOpen"]), l(
|
1412
|
+
loading: e(t),
|
1413
|
+
onRefresh: e(w)
|
1414
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(ne), {
|
1415
|
+
onOpen: e(h)
|
1416
|
+
}, null, 8, ["onOpen"]), l(u, {
|
1374
1417
|
circle: "",
|
1375
|
-
onClick: e(
|
1376
|
-
icon: e(
|
1377
|
-
}, null, 8, ["onClick", "icon"]), l(
|
1418
|
+
onClick: e(A),
|
1419
|
+
icon: e(Ee)
|
1420
|
+
}, null, 8, ["onClick", "icon"]), l(p, {
|
1378
1421
|
class: "basic-search-input",
|
1379
|
-
modelValue: e(
|
1380
|
-
"onUpdate:modelValue":
|
1422
|
+
modelValue: e(s).keyword,
|
1423
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => e(s).keyword = m),
|
1381
1424
|
placeholder: e(a)("base.placeholder.keyword"),
|
1382
1425
|
clearable: "",
|
1383
|
-
onKeyup:
|
1384
|
-
onClear: e(
|
1385
|
-
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(
|
1386
|
-
modelValue: e(
|
1387
|
-
"onUpdate:modelValue":
|
1388
|
-
onChange: e(
|
1426
|
+
onKeyup: ee(e(_), ["enter"]),
|
1427
|
+
onClear: e(_)
|
1428
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(U, {
|
1429
|
+
modelValue: e(s).status,
|
1430
|
+
"onUpdate:modelValue": r[1] || (r[1] = (m) => e(s).status = m),
|
1431
|
+
onChange: e(_)
|
1389
1432
|
}, {
|
1390
|
-
default: n(() => [(
|
1433
|
+
default: n(() => [(S(), D(P, null, Y([0, 1, 2], (m) => l(k, {
|
1391
1434
|
key: m,
|
1392
1435
|
label: e(a)(`base.DISABLE_ENABLE.${m}`),
|
1393
1436
|
value: m
|
1394
1437
|
}, null, 8, ["label", "value"])), 64))]),
|
1395
1438
|
_: 1
|
1396
|
-
}, 8, ["modelValue", "onChange"]), l(e(
|
1397
|
-
onSearch: e(
|
1439
|
+
}, 8, ["modelValue", "onChange"]), l(e(re), {
|
1440
|
+
onSearch: e(_)
|
1398
1441
|
}, null, 8, ["onSearch"])]),
|
1399
1442
|
_: 1
|
1400
1443
|
})]),
|
1401
|
-
default: n(() => [l(e(
|
1444
|
+
default: n(() => [l(e(oe), {
|
1402
1445
|
ref_key: "tableRef",
|
1403
|
-
ref:
|
1446
|
+
ref: c,
|
1404
1447
|
size: "small",
|
1405
|
-
columns:
|
1406
|
-
url: e(
|
1407
|
-
"search-param": e(
|
1448
|
+
columns: M,
|
1449
|
+
url: e(z).urls[e(te)],
|
1450
|
+
"search-param": e(s),
|
1408
1451
|
autoSearch: ""
|
1409
|
-
}, null, 8, ["url", "search-param"]), l(
|
1452
|
+
}, null, 8, ["url", "search-param"]), l($e, {
|
1410
1453
|
ref_key: "infoRef",
|
1411
1454
|
ref: f,
|
1412
|
-
onRefresh: e(
|
1413
|
-
}, null, 8, ["onRefresh"]), l(
|
1455
|
+
onRefresh: e(R)
|
1456
|
+
}, null, 8, ["onRefresh"]), l(De, {
|
1414
1457
|
ref_key: "ruleRef",
|
1415
|
-
ref:
|
1416
|
-
onRefresh: e(
|
1458
|
+
ref: g,
|
1459
|
+
onRefresh: e(w)
|
1417
1460
|
}, null, 8, ["onRefresh"])]),
|
1418
1461
|
_: 1
|
1419
1462
|
});
|
1420
1463
|
};
|
1421
1464
|
}
|
1422
|
-
}),
|
1465
|
+
}), Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1423
1466
|
__proto__: null,
|
1424
|
-
default:
|
1425
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1467
|
+
default: Ie
|
1468
|
+
}, Symbol.toStringTag, { value: "Module" })), Te = { class: "rule-check" }, Ne = { style: { width: "80px", "line-height": "36px" } }, je = /* @__PURE__ */ $({
|
1426
1469
|
__name: "rulesCheck",
|
1427
1470
|
props: {
|
1428
1471
|
modelValue: { type: Array, required: !0 },
|
1429
1472
|
disabled: { type: Boolean, default: !1 }
|
1430
1473
|
},
|
1431
1474
|
emits: ["update:modelValue"],
|
1432
|
-
setup(
|
1433
|
-
const { requesting:
|
1475
|
+
setup(x, { expose: C, emit: y }) {
|
1476
|
+
const { requesting: M } = K(z), t = x, c = y, f = Z(!1), s = F({
|
1434
1477
|
checkAll: !1,
|
1435
1478
|
indeterminate: !1,
|
1436
1479
|
MenuAll: {},
|
1437
1480
|
MenuList: {},
|
1438
1481
|
MenuIndeterminate: {}
|
1439
|
-
}), { options:
|
1440
|
-
|
1441
|
-
|
1442
|
-
{ key: "RULE_CHECK", api:
|
1482
|
+
}), { options: _, refresh: w } = pe(
|
1483
|
+
de(t, "modelValue"),
|
1484
|
+
c,
|
1485
|
+
{ key: "RULE_CHECK", api: z, url: z.urls.rules, isArray: !0 },
|
1443
1486
|
!1
|
1444
1487
|
);
|
1445
1488
|
function R() {
|
1446
|
-
|
1489
|
+
_.value.forEach((i) => {
|
1447
1490
|
var o;
|
1448
|
-
(o =
|
1491
|
+
(o = i.rules) != null && o.length && (s.MenuAll[i.id] = !1, s.MenuIndeterminate[i.id] = !1, s.MenuList[i.id] = []);
|
1449
1492
|
});
|
1450
1493
|
}
|
1451
|
-
function h(
|
1452
|
-
|
1453
|
-
var
|
1454
|
-
(
|
1455
|
-
}),
|
1494
|
+
function h(i) {
|
1495
|
+
_.value.forEach((o) => {
|
1496
|
+
var r;
|
1497
|
+
(r = o.rules) != null && r.length && (s.MenuList[o.id] = i ? o.rules.map((u) => u.key) : []);
|
1498
|
+
}), g();
|
1456
1499
|
}
|
1457
|
-
function V(
|
1458
|
-
const
|
1459
|
-
|
1500
|
+
function V(i, o) {
|
1501
|
+
const r = _.value.find((u) => u.id === o);
|
1502
|
+
s.MenuList[o] = i && r ? r.rules.map((u) => u.key) : [], g();
|
1460
1503
|
}
|
1461
|
-
function
|
1462
|
-
|
1463
|
-
var
|
1464
|
-
const o = ((
|
1465
|
-
|
1466
|
-
}),
|
1504
|
+
function g() {
|
1505
|
+
_.value.forEach((i) => {
|
1506
|
+
var u, p;
|
1507
|
+
const o = ((u = i.rules) == null ? void 0 : u.length) || 0, r = ((p = s.MenuList[i.id]) == null ? void 0 : p.length) || 0;
|
1508
|
+
s.MenuAll[i.id] = r === o && o > 0, s.MenuIndeterminate[i.id] = r > 0 && r < o;
|
1509
|
+
}), s.checkAll = Object.values(s.MenuAll).every(Boolean), s.indeterminate = !s.checkAll && Object.values(s.MenuList).some((i) => i.length > 0), c("update:modelValue", Object.values(s.MenuList).flat());
|
1467
1510
|
}
|
1468
|
-
function
|
1469
|
-
|
1511
|
+
function A() {
|
1512
|
+
s.checkAll = !1, s.indeterminate = !1, s.MenuAll = {}, s.MenuList = {}, s.MenuIndeterminate = {}, R(), c("update:modelValue", []), f.value = !1;
|
1470
1513
|
}
|
1471
|
-
function
|
1514
|
+
function q(i) {
|
1472
1515
|
var o;
|
1473
|
-
if (Array.isArray(
|
1474
|
-
for (let
|
1475
|
-
if (Array.isArray(
|
1476
|
-
for (let
|
1477
|
-
|
1478
|
-
|
1516
|
+
if (Array.isArray(_.value) && _.value.length > 0) {
|
1517
|
+
for (let r of _.value)
|
1518
|
+
if (Array.isArray(r.rules) && r.rules.length > 0)
|
1519
|
+
for (let u of r.rules)
|
1520
|
+
i.some((p) => p === u.key) && (s.MenuList[r.id] = (((o = s.MenuList) == null ? void 0 : o[r.id]) || []).concat([u.key]));
|
1521
|
+
g(), f.value = !0;
|
1479
1522
|
}
|
1480
1523
|
}
|
1481
|
-
return
|
1482
|
-
var
|
1483
|
-
(
|
1484
|
-
}),
|
1524
|
+
return Ve(async () => {
|
1525
|
+
var i;
|
1526
|
+
(i = _.value) != null && i.length || await w(), !f.value && t.modelValue && q(t.modelValue);
|
1527
|
+
}), ye(
|
1485
1528
|
() => t.modelValue,
|
1486
|
-
(
|
1487
|
-
|
1529
|
+
(i) => {
|
1530
|
+
ke(() => {
|
1488
1531
|
var o;
|
1489
|
-
|
1532
|
+
f.value || !((o = _.value) != null && o.length) || i && i.length > 0 && q(i);
|
1490
1533
|
});
|
1491
1534
|
},
|
1492
1535
|
{ deep: !0, immediate: !0 }
|
1493
|
-
),
|
1494
|
-
generateOption:
|
1495
|
-
cleanChecked:
|
1496
|
-
}), (
|
1497
|
-
const
|
1498
|
-
return
|
1499
|
-
l(
|
1536
|
+
), C({
|
1537
|
+
generateOption: q,
|
1538
|
+
cleanChecked: A
|
1539
|
+
}), (i, o) => {
|
1540
|
+
const r = d("el-checkbox"), u = d("el-space"), p = d("el-text"), k = d("el-divider"), U = d("el-checkbox-group");
|
1541
|
+
return S(), D("div", Te, [
|
1542
|
+
l(u, { style: { "margin-bottom": "6px" } }, {
|
1500
1543
|
default: n(() => [
|
1501
|
-
l(
|
1502
|
-
"model-value":
|
1503
|
-
indeterminate:
|
1544
|
+
l(r, {
|
1545
|
+
"model-value": s.checkAll,
|
1546
|
+
indeterminate: s.indeterminate,
|
1504
1547
|
id: "all",
|
1505
|
-
disabled:
|
1548
|
+
disabled: x.disabled,
|
1506
1549
|
onChange: h
|
1507
1550
|
}, {
|
1508
1551
|
default: n(() => o[1] || (o[1] = [
|
@@ -1512,66 +1555,66 @@ const Ae = /* @__PURE__ */ z({
|
|
1512
1555
|
__: [1]
|
1513
1556
|
}, 8, ["model-value", "indeterminate", "disabled"]),
|
1514
1557
|
l(e(T), {
|
1515
|
-
loading: e(
|
1558
|
+
loading: e(M),
|
1516
1559
|
text: "",
|
1517
1560
|
size: "small",
|
1518
|
-
onRefresh: o[0] || (o[0] = (
|
1561
|
+
onRefresh: o[0] || (o[0] = (b) => e(w)(!0))
|
1519
1562
|
}, null, 8, ["loading"])
|
1520
1563
|
]),
|
1521
1564
|
_: 1
|
1522
1565
|
}),
|
1523
|
-
l(
|
1566
|
+
l(u, {
|
1524
1567
|
direction: "vertical",
|
1525
1568
|
alignment: "start"
|
1526
1569
|
}, {
|
1527
1570
|
default: n(() => [
|
1528
|
-
(
|
1529
|
-
key:
|
1571
|
+
(S(!0), D(P, null, Y(e(_), (b) => (S(), D("div", {
|
1572
|
+
key: b.id
|
1530
1573
|
}, [
|
1531
|
-
l(
|
1574
|
+
l(u, {
|
1532
1575
|
direction: "horizontal",
|
1533
1576
|
size: 2
|
1534
1577
|
}, {
|
1535
1578
|
default: n(() => [
|
1536
|
-
l(
|
1579
|
+
l(r, {
|
1537
1580
|
style: { "min-width": "150px" },
|
1538
|
-
"model-value":
|
1539
|
-
disabled:
|
1540
|
-
indeterminate:
|
1541
|
-
onChange: (
|
1581
|
+
"model-value": s.MenuAll[b.id],
|
1582
|
+
disabled: x.disabled || !b.rules || b.rules.length <= 0,
|
1583
|
+
indeterminate: s.MenuIndeterminate[b.id],
|
1584
|
+
onChange: (v) => V(v, b.id)
|
1542
1585
|
}, {
|
1543
1586
|
default: n(() => [
|
1544
|
-
l(
|
1587
|
+
l(p, { style: { "font-size": "15px" } }, {
|
1545
1588
|
default: n(() => [
|
1546
|
-
|
1589
|
+
N(ue(b.translate), 1)
|
1547
1590
|
]),
|
1548
1591
|
_: 2
|
1549
1592
|
}, 1024)
|
1550
1593
|
]),
|
1551
1594
|
_: 2
|
1552
1595
|
}, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
|
1553
|
-
l(
|
1554
|
-
|
1596
|
+
l(k, { direction: "vertical" }),
|
1597
|
+
b.rules ? (S(), L(U, {
|
1555
1598
|
key: 0,
|
1556
|
-
modelValue:
|
1557
|
-
"onUpdate:modelValue": (
|
1558
|
-
disabled:
|
1599
|
+
modelValue: s.MenuList[b.id],
|
1600
|
+
"onUpdate:modelValue": (v) => s.MenuList[b.id] = v,
|
1601
|
+
disabled: x.disabled,
|
1559
1602
|
style: { margin: "auto" },
|
1560
|
-
onChange:
|
1603
|
+
onChange: g
|
1561
1604
|
}, {
|
1562
1605
|
default: n(() => [
|
1563
|
-
(
|
1564
|
-
key:
|
1565
|
-
value:
|
1606
|
+
(S(!0), D(P, null, Y(b.rules, (v) => (S(), L(r, {
|
1607
|
+
key: v.key,
|
1608
|
+
value: v.key
|
1566
1609
|
}, {
|
1567
1610
|
default: n(() => [
|
1568
|
-
Q("div",
|
1611
|
+
Q("div", Ne, ue(v.translate), 1)
|
1569
1612
|
]),
|
1570
1613
|
_: 2
|
1571
1614
|
}, 1032, ["value"]))), 128))
|
1572
1615
|
]),
|
1573
1616
|
_: 2
|
1574
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
1617
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : ve("", !0)
|
1575
1618
|
]),
|
1576
1619
|
_: 2
|
1577
1620
|
}, 1024)
|
@@ -1582,11 +1625,11 @@ const Ae = /* @__PURE__ */ z({
|
|
1582
1625
|
]);
|
1583
1626
|
};
|
1584
1627
|
}
|
1585
|
-
}),
|
1628
|
+
}), Be = /* @__PURE__ */ $({
|
1586
1629
|
__name: "info",
|
1587
1630
|
emits: ["refresh"],
|
1588
|
-
setup(
|
1589
|
-
const
|
1631
|
+
setup(x, { expose: C, emit: y }) {
|
1632
|
+
const M = y, t = Z(), c = F({
|
1590
1633
|
key: "",
|
1591
1634
|
module: "",
|
1592
1635
|
sort: 0,
|
@@ -1594,61 +1637,61 @@ const Ae = /* @__PURE__ */ z({
|
|
1594
1637
|
en_name: "",
|
1595
1638
|
remark: "",
|
1596
1639
|
rules: []
|
1597
|
-
}),
|
1640
|
+
}), f = {
|
1598
1641
|
name: [
|
1599
1642
|
{ required: !0, message: a("base.placeholder.input base.name"), trigger: "blur" }
|
1600
1643
|
],
|
1601
1644
|
en_name: [
|
1602
1645
|
{ required: !0, message: a("base.placeholder.input base.en_name"), trigger: "blur" }
|
1603
1646
|
]
|
1604
|
-
}, { modal:
|
1605
|
-
|
1606
|
-
|
1647
|
+
}, { modal: s, title: _, form: w, requesting: R, executing: h, open: V, modify: g, submit: A, closed: q } = H(
|
1648
|
+
M,
|
1649
|
+
c,
|
1607
1650
|
X
|
1608
|
-
),
|
1609
|
-
|
1651
|
+
), i = (r) => {
|
1652
|
+
r ? g({ key: r }) : V();
|
1610
1653
|
}, o = () => {
|
1611
|
-
var
|
1612
|
-
(
|
1654
|
+
var r;
|
1655
|
+
(r = t.value) == null || r.cleanChecked(), q();
|
1613
1656
|
};
|
1614
|
-
return
|
1615
|
-
openOrModify:
|
1616
|
-
}), (
|
1617
|
-
const
|
1618
|
-
return
|
1619
|
-
modelValue: e(
|
1620
|
-
"onUpdate:modelValue":
|
1621
|
-
title: e(
|
1657
|
+
return C({
|
1658
|
+
openOrModify: i
|
1659
|
+
}), (r, u) => {
|
1660
|
+
const p = d("el-form-item"), k = d("el-input"), U = d("el-col"), b = d("el-input-number"), v = d("el-row"), m = d("el-form");
|
1661
|
+
return S(), L(e(G), {
|
1662
|
+
modelValue: e(s),
|
1663
|
+
"onUpdate:modelValue": u[6] || (u[6] = (E) => I(s) ? s.value = E : null),
|
1664
|
+
title: e(_)(),
|
1622
1665
|
width: "1000px",
|
1623
1666
|
executing: e(h),
|
1624
1667
|
onClosed: o,
|
1625
|
-
onSubmit: e(
|
1668
|
+
onSubmit: e(A)
|
1626
1669
|
}, {
|
1627
1670
|
default: n(() => [
|
1628
|
-
l(
|
1671
|
+
l(m, {
|
1629
1672
|
ref_key: "form",
|
1630
|
-
ref:
|
1631
|
-
model:
|
1673
|
+
ref: w,
|
1674
|
+
model: c,
|
1632
1675
|
"label-width": "auto",
|
1633
|
-
rules:
|
1676
|
+
rules: f,
|
1634
1677
|
disabled: e(R) || e(h)
|
1635
1678
|
}, {
|
1636
1679
|
default: n(() => [
|
1637
|
-
|
1638
|
-
[
|
1680
|
+
j(l(p, { prop: "key" }, null, 512), [
|
1681
|
+
[B, !1]
|
1639
1682
|
]),
|
1640
|
-
l(
|
1683
|
+
l(v, { gutter: 20 }, {
|
1641
1684
|
default: n(() => [
|
1642
|
-
l(
|
1685
|
+
l(U, { span: 12 }, {
|
1643
1686
|
default: n(() => [
|
1644
|
-
l(
|
1687
|
+
l(p, {
|
1645
1688
|
label: e(a)("base.module"),
|
1646
1689
|
prop: "module"
|
1647
1690
|
}, {
|
1648
1691
|
default: n(() => [
|
1649
|
-
l(
|
1650
|
-
modelValue:
|
1651
|
-
"onUpdate:modelValue":
|
1692
|
+
l(k, {
|
1693
|
+
modelValue: c.module,
|
1694
|
+
"onUpdate:modelValue": u[0] || (u[0] = (E) => c.module = E),
|
1652
1695
|
placeholder: e(a)("base.placeholder.input")
|
1653
1696
|
}, null, 8, ["modelValue", "placeholder"])
|
1654
1697
|
]),
|
@@ -1657,16 +1700,17 @@ const Ae = /* @__PURE__ */ z({
|
|
1657
1700
|
]),
|
1658
1701
|
_: 1
|
1659
1702
|
}),
|
1660
|
-
l(
|
1703
|
+
l(U, { span: 12 }, {
|
1661
1704
|
default: n(() => [
|
1662
|
-
l(
|
1705
|
+
l(p, {
|
1663
1706
|
label: e(a)("base.sort"),
|
1664
1707
|
prop: "sort"
|
1665
1708
|
}, {
|
1666
1709
|
default: n(() => [
|
1667
|
-
l(
|
1668
|
-
|
1669
|
-
|
1710
|
+
l(b, {
|
1711
|
+
class: "w-full",
|
1712
|
+
modelValue: c.sort,
|
1713
|
+
"onUpdate:modelValue": u[1] || (u[1] = (E) => c.sort = E),
|
1670
1714
|
min: 0,
|
1671
1715
|
placeholder: e(a)("base.placeholder.input")
|
1672
1716
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -1679,55 +1723,55 @@ const Ae = /* @__PURE__ */ z({
|
|
1679
1723
|
]),
|
1680
1724
|
_: 1
|
1681
1725
|
}),
|
1682
|
-
l(
|
1726
|
+
l(p, {
|
1683
1727
|
label: e(a)("base.name"),
|
1684
1728
|
prop: "name"
|
1685
1729
|
}, {
|
1686
1730
|
default: n(() => [
|
1687
|
-
l(
|
1688
|
-
modelValue:
|
1689
|
-
"onUpdate:modelValue":
|
1731
|
+
l(k, {
|
1732
|
+
modelValue: c.name,
|
1733
|
+
"onUpdate:modelValue": u[2] || (u[2] = (E) => c.name = E),
|
1690
1734
|
placeholder: e(a)("base.placeholder.input")
|
1691
1735
|
}, null, 8, ["modelValue", "placeholder"])
|
1692
1736
|
]),
|
1693
1737
|
_: 1
|
1694
1738
|
}, 8, ["label"]),
|
1695
|
-
l(
|
1739
|
+
l(p, {
|
1696
1740
|
label: e(a)("base.en_name"),
|
1697
1741
|
prop: "en_name"
|
1698
1742
|
}, {
|
1699
1743
|
default: n(() => [
|
1700
|
-
l(
|
1701
|
-
modelValue:
|
1702
|
-
"onUpdate:modelValue":
|
1744
|
+
l(k, {
|
1745
|
+
modelValue: c.en_name,
|
1746
|
+
"onUpdate:modelValue": u[3] || (u[3] = (E) => c.en_name = E),
|
1703
1747
|
placeholder: e(a)("base.placeholder.input")
|
1704
1748
|
}, null, 8, ["modelValue", "placeholder"])
|
1705
1749
|
]),
|
1706
1750
|
_: 1
|
1707
1751
|
}, 8, ["label"]),
|
1708
|
-
l(
|
1752
|
+
l(p, {
|
1709
1753
|
label: e(a)("base.remark"),
|
1710
1754
|
prop: "remark"
|
1711
1755
|
}, {
|
1712
1756
|
default: n(() => [
|
1713
|
-
l(
|
1714
|
-
modelValue:
|
1715
|
-
"onUpdate:modelValue":
|
1757
|
+
l(k, {
|
1758
|
+
modelValue: c.remark,
|
1759
|
+
"onUpdate:modelValue": u[4] || (u[4] = (E) => c.remark = E),
|
1716
1760
|
placeholder: e(a)("base.placeholder.input")
|
1717
1761
|
}, null, 8, ["modelValue", "placeholder"])
|
1718
1762
|
]),
|
1719
1763
|
_: 1
|
1720
1764
|
}, 8, ["label"]),
|
1721
|
-
l(
|
1765
|
+
l(p, {
|
1722
1766
|
label: e(a)("base.rules"),
|
1723
1767
|
prop: "rules"
|
1724
1768
|
}, {
|
1725
1769
|
default: n(() => [
|
1726
|
-
l(
|
1770
|
+
l(je, {
|
1727
1771
|
ref_key: "rulesCheck",
|
1728
1772
|
ref: t,
|
1729
|
-
modelValue:
|
1730
|
-
"onUpdate:modelValue":
|
1773
|
+
modelValue: c.rules,
|
1774
|
+
"onUpdate:modelValue": u[5] || (u[5] = (E) => c.rules = E),
|
1731
1775
|
disabled: e(R) || e(h)
|
1732
1776
|
}, null, 8, ["modelValue", "disabled"])
|
1733
1777
|
]),
|
@@ -1741,12 +1785,12 @@ const Ae = /* @__PURE__ */ z({
|
|
1741
1785
|
}, 8, ["modelValue", "title", "executing", "onSubmit"]);
|
1742
1786
|
};
|
1743
1787
|
}
|
1744
|
-
}),
|
1788
|
+
}), Pe = /* @__PURE__ */ $({
|
1745
1789
|
__name: "index",
|
1746
|
-
setup(
|
1747
|
-
const
|
1790
|
+
setup(x) {
|
1791
|
+
const C = {
|
1748
1792
|
keyword: ""
|
1749
|
-
},
|
1793
|
+
}, y = [
|
1750
1794
|
{
|
1751
1795
|
label: a("base.sort"),
|
1752
1796
|
prop: "sort",
|
@@ -1780,78 +1824,78 @@ const Ae = /* @__PURE__ */ z({
|
|
1780
1824
|
align: "center",
|
1781
1825
|
render: ({
|
1782
1826
|
row: V
|
1783
|
-
}) => l(
|
1827
|
+
}) => l(ae, {
|
1784
1828
|
onModify: () => h(V.key)
|
1785
1829
|
}, null)
|
1786
1830
|
}
|
1787
1831
|
], {
|
1788
|
-
requesting:
|
1832
|
+
requesting: M
|
1789
1833
|
} = K(X), {
|
1790
1834
|
tableRef: t,
|
1791
|
-
infoRef:
|
1792
|
-
keyword:
|
1793
|
-
search:
|
1794
|
-
refresh:
|
1795
|
-
reset:
|
1835
|
+
infoRef: c,
|
1836
|
+
keyword: f,
|
1837
|
+
search: s,
|
1838
|
+
refresh: _,
|
1839
|
+
reset: w,
|
1796
1840
|
openInfo: R,
|
1797
1841
|
modifyInfo: h
|
1798
|
-
} = W(
|
1799
|
-
return (V,
|
1800
|
-
const
|
1801
|
-
return
|
1842
|
+
} = W(C);
|
1843
|
+
return (V, g) => {
|
1844
|
+
const A = d("el-input"), q = d("el-space"), i = d("el-card");
|
1845
|
+
return S(), L(i, {
|
1802
1846
|
class: "basic-card flex-full",
|
1803
1847
|
"body-class": "flex-1"
|
1804
1848
|
}, {
|
1805
|
-
header: n(() => [l(
|
1849
|
+
header: n(() => [l(q, {
|
1806
1850
|
class: "search-bar"
|
1807
1851
|
}, {
|
1808
1852
|
default: n(() => [l(e(T), {
|
1809
|
-
loading: e(
|
1810
|
-
onRefresh: e(
|
1811
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
1853
|
+
loading: e(M),
|
1854
|
+
onRefresh: e(_)
|
1855
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(ne), {
|
1812
1856
|
onOpen: e(R)
|
1813
|
-
}, null, 8, ["onOpen"]), l(
|
1857
|
+
}, null, 8, ["onOpen"]), l(A, {
|
1814
1858
|
class: "basic-search-input",
|
1815
|
-
modelValue: e(
|
1816
|
-
"onUpdate:modelValue":
|
1859
|
+
modelValue: e(f).keyword,
|
1860
|
+
"onUpdate:modelValue": g[0] || (g[0] = (o) => e(f).keyword = o),
|
1817
1861
|
placeholder: e(a)("base.placeholder.keyword"),
|
1818
1862
|
clearable: "",
|
1819
|
-
onKeyup:
|
1820
|
-
onClear: e(
|
1821
|
-
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(e(
|
1822
|
-
onSearch: e(
|
1863
|
+
onKeyup: ee(e(s), ["enter"]),
|
1864
|
+
onClear: e(s)
|
1865
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(e(re), {
|
1866
|
+
onSearch: e(s)
|
1823
1867
|
}, null, 8, ["onSearch"])]),
|
1824
1868
|
_: 1
|
1825
1869
|
})]),
|
1826
|
-
default: n(() => [l(e(
|
1870
|
+
default: n(() => [l(e(oe), {
|
1827
1871
|
ref_key: "tableRef",
|
1828
1872
|
ref: t,
|
1829
1873
|
size: "small",
|
1830
|
-
columns:
|
1831
|
-
url: e(X).urls[e(
|
1832
|
-
"search-param": e(
|
1874
|
+
columns: y,
|
1875
|
+
url: e(X).urls[e(te)],
|
1876
|
+
"search-param": e(f),
|
1833
1877
|
autoSearch: ""
|
1834
|
-
}, null, 8, ["url", "search-param"]), l(
|
1878
|
+
}, null, 8, ["url", "search-param"]), l(Be, {
|
1835
1879
|
ref_key: "infoRef",
|
1836
|
-
ref:
|
1837
|
-
onRefresh: e(
|
1880
|
+
ref: c,
|
1881
|
+
onRefresh: e(w)
|
1838
1882
|
}, null, 8, ["onRefresh"])]),
|
1839
1883
|
_: 1
|
1840
1884
|
});
|
1841
1885
|
};
|
1842
1886
|
}
|
1843
|
-
}),
|
1887
|
+
}), Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1844
1888
|
__proto__: null,
|
1845
|
-
default:
|
1846
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1847
|
-
install: (
|
1848
|
-
Reflect.ownKeys(
|
1889
|
+
default: Pe
|
1890
|
+
}, Symbol.toStringTag, { value: "Module" })), He = {
|
1891
|
+
install: (x, C) => {
|
1892
|
+
Reflect.ownKeys(x._context.provides).some((y) => String(y) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app."), console.log(Reflect.ownKeys(x._context.provides));
|
1849
1893
|
},
|
1850
1894
|
version: "__VERSION__"
|
1851
|
-
},
|
1895
|
+
}, Ge = /* @__PURE__ */ Object.assign({ "./views/admin/index.vue": Me, "./views/language/index.vue": Oe, "./views/menu/index.vue": Ke, "./views/role/index.vue": Fe });
|
1852
1896
|
export {
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1897
|
+
Ie as MenusPage,
|
1898
|
+
Pe as RolesPage,
|
1899
|
+
Ge as basicModules,
|
1900
|
+
He as default
|
1857
1901
|
};
|