auto-vue-basic 0.0.21 → 0.0.23
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 +662 -617
- 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 T, 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 D, ProTable as oe, DEFAULT_PAGE_KEY as te, RefreshButton as K, 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: O, 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 }) : O();
|
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] = (A) => I(w) ? w.value = A : 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] = (A) => t.username = A),
|
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] = (A) => t.phone = A),
|
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] = (A) => t.password = A),
|
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] = (A) => t.email = A),
|
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] = (A) => t.language = A)
|
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] = (A) => t.roles = A)
|
166
166
|
}, {
|
167
167
|
default: n(() => [
|
168
|
-
(
|
169
|
-
key:
|
170
|
-
label:
|
168
|
+
(S(!0), T(P, null, Y(s.value, (A) => (S(), L(m, {
|
169
|
+
key: A.key,
|
170
|
+
label: A.key
|
171
171
|
}, {
|
172
172
|
default: n(() => [
|
173
|
-
|
173
|
+
N(ue(A.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] = (A) => t.remark = A),
|
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
|
-
} =
|
262
|
+
requesting: M
|
263
|
+
} = D(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 O = 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
|
-
default: n(() => [l(e(
|
283
|
-
loading: e(
|
284
|
-
onRefresh: e(
|
285
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
282
|
+
default: n(() => [l(e(K), {
|
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(O, {
|
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: O } = 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(O),
|
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
|
+
}), Oe = /* @__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,89 +520,89 @@ 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:
|
528
|
-
} =
|
527
|
+
requesting: M
|
528
|
+
} = D(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 O = 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
|
}, {
|
544
544
|
header: n(() => [l(o, {
|
545
545
|
class: "search-bar"
|
546
546
|
}, {
|
547
|
-
default: n(() => [l(e(
|
548
|
-
loading: e(
|
549
|
-
onRefresh: e(
|
550
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
547
|
+
default: n(() => [l(e(K), {
|
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(O, {
|
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(), T(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
|
+
}), Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
594
594
|
__proto__: null,
|
595
|
-
default:
|
595
|
+
default: Oe
|
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(), T("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
|
-
} =
|
635
|
-
value:
|
636
|
-
options:
|
637
|
-
change:
|
638
|
-
refresh:
|
639
|
-
filterOptions:
|
640
|
-
} = pe(
|
641
|
-
key: "
|
642
|
-
api:
|
643
|
-
url:
|
634
|
+
} = D(z), {
|
635
|
+
value: c,
|
636
|
+
options: f,
|
637
|
+
change: s,
|
638
|
+
refresh: _,
|
639
|
+
filterOptions: w
|
640
|
+
} = pe(de(M, "modelValue"), y, {
|
641
|
+
key: "TOP_MENU_LIST",
|
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
|
-
prefix: n(() => [l(e(
|
660
|
+
prefix: n(() => [l(e(K), {
|
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,56 @@ 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: O } = H(
|
715
|
+
M,
|
715
716
|
t,
|
716
|
-
|
717
|
+
z,
|
718
|
+
["TOP_MENU_LIST", "MENU_LIST"]
|
717
719
|
);
|
718
|
-
return
|
719
|
-
openOrModify: (
|
720
|
-
|
720
|
+
return C({
|
721
|
+
openOrModify: (i) => {
|
722
|
+
i ? V({ id: i }) : h();
|
721
723
|
}
|
722
|
-
}), (
|
723
|
-
const
|
724
|
-
return
|
725
|
-
modelValue: e(
|
726
|
-
"onUpdate:modelValue": o[17] || (o[17] = (
|
727
|
-
title: e(
|
724
|
+
}), (i, o) => {
|
725
|
+
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");
|
726
|
+
return S(), L(e(G), {
|
727
|
+
modelValue: e(f),
|
728
|
+
"onUpdate:modelValue": o[17] || (o[17] = (m) => I(f) ? f.value = m : null),
|
729
|
+
title: e(s)(),
|
728
730
|
width: "1000px",
|
729
731
|
executing: e(R),
|
730
|
-
onClosed: e(
|
731
|
-
onSubmit: e(
|
732
|
+
onClosed: e(O),
|
733
|
+
onSubmit: e(g)
|
732
734
|
}, {
|
733
735
|
default: n(() => [
|
734
|
-
l(
|
736
|
+
l(v, {
|
735
737
|
ref_key: "form",
|
736
|
-
ref:
|
738
|
+
ref: _,
|
737
739
|
model: t,
|
738
740
|
"label-width": "auto",
|
739
|
-
rules:
|
740
|
-
disabled: e(
|
741
|
+
rules: c,
|
742
|
+
disabled: e(w) || e(R)
|
741
743
|
}, {
|
742
744
|
default: n(() => [
|
743
|
-
|
744
|
-
[
|
745
|
+
j(l(r, { prop: "id" }, null, 512), [
|
746
|
+
[B, !1]
|
745
747
|
]),
|
746
|
-
l(
|
748
|
+
l(k, { gutter: 20 }, {
|
747
749
|
default: n(() => [
|
748
|
-
l(
|
750
|
+
l(u, { span: 12 }, {
|
749
751
|
default: n(() => [
|
750
|
-
l(
|
752
|
+
l(k, { gutter: 10 }, {
|
751
753
|
default: n(() => [
|
752
|
-
l(
|
754
|
+
l(u, { span: 12 }, {
|
753
755
|
default: n(() => [
|
754
|
-
l(
|
756
|
+
l(r, {
|
755
757
|
label: e(a)("base.parent"),
|
756
758
|
prop: "menu_id"
|
757
759
|
}, {
|
758
760
|
default: n(() => [
|
759
|
-
l(
|
761
|
+
l(Le, {
|
760
762
|
modelValue: t.menu_id,
|
761
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
763
|
+
"onUpdate:modelValue": o[0] || (o[0] = (m) => t.menu_id = m)
|
762
764
|
}, null, 8, ["modelValue"])
|
763
765
|
]),
|
764
766
|
_: 1
|
@@ -766,16 +768,17 @@ const Ae = /* @__PURE__ */ z({
|
|
766
768
|
]),
|
767
769
|
_: 1
|
768
770
|
}),
|
769
|
-
l(
|
771
|
+
l(u, { span: 12 }, {
|
770
772
|
default: n(() => [
|
771
|
-
l(
|
773
|
+
l(r, {
|
772
774
|
label: e(a)("base.sort"),
|
773
775
|
prop: "sort"
|
774
776
|
}, {
|
775
777
|
default: n(() => [
|
776
|
-
l(
|
778
|
+
l(p, {
|
779
|
+
class: "w-full",
|
777
780
|
modelValue: t.sort,
|
778
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
781
|
+
"onUpdate:modelValue": o[1] || (o[1] = (m) => t.sort = m),
|
779
782
|
min: 0,
|
780
783
|
placeholder: e(a)("base.placeholder.input")
|
781
784
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -788,79 +791,79 @@ const Ae = /* @__PURE__ */ z({
|
|
788
791
|
]),
|
789
792
|
_: 1
|
790
793
|
}),
|
791
|
-
l(
|
794
|
+
l(r, {
|
792
795
|
label: e(a)("menu.module"),
|
793
796
|
prop: "module"
|
794
797
|
}, {
|
795
798
|
default: n(() => [
|
796
|
-
l(
|
799
|
+
l(U, {
|
797
800
|
modelValue: t.module,
|
798
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
801
|
+
"onUpdate:modelValue": o[2] || (o[2] = (m) => t.module = m),
|
799
802
|
placeholder: e(a)("base.placeholder.input")
|
800
803
|
}, null, 8, ["modelValue", "placeholder"])
|
801
804
|
]),
|
802
805
|
_: 1
|
803
806
|
}, 8, ["label"]),
|
804
|
-
l(
|
807
|
+
l(r, {
|
805
808
|
label: e(a)("base.name"),
|
806
809
|
prop: "name"
|
807
810
|
}, {
|
808
811
|
default: n(() => [
|
809
|
-
l(
|
812
|
+
l(U, {
|
810
813
|
modelValue: t.name,
|
811
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
814
|
+
"onUpdate:modelValue": o[3] || (o[3] = (m) => t.name = m),
|
812
815
|
placeholder: e(a)("base.placeholder.input")
|
813
816
|
}, null, 8, ["modelValue", "placeholder"])
|
814
817
|
]),
|
815
818
|
_: 1
|
816
819
|
}, 8, ["label"]),
|
817
|
-
l(
|
820
|
+
l(r, {
|
818
821
|
label: e(a)("base.en_name"),
|
819
822
|
prop: "en_name"
|
820
823
|
}, {
|
821
824
|
default: n(() => [
|
822
|
-
l(
|
825
|
+
l(U, {
|
823
826
|
modelValue: t.en_name,
|
824
|
-
"onUpdate:modelValue": o[4] || (o[4] = (
|
827
|
+
"onUpdate:modelValue": o[4] || (o[4] = (m) => t.en_name = m),
|
825
828
|
placeholder: e(a)("base.placeholder.input")
|
826
829
|
}, null, 8, ["modelValue", "placeholder"])
|
827
830
|
]),
|
828
831
|
_: 1
|
829
832
|
}, 8, ["label"]),
|
830
|
-
l(
|
833
|
+
l(r, {
|
831
834
|
label: e(a)("menu.component"),
|
832
835
|
prop: "component"
|
833
836
|
}, {
|
834
837
|
default: n(() => [
|
835
|
-
l(
|
838
|
+
l(U, {
|
836
839
|
modelValue: t.component,
|
837
|
-
"onUpdate:modelValue": o[5] || (o[5] = (
|
840
|
+
"onUpdate:modelValue": o[5] || (o[5] = (m) => t.component = m),
|
838
841
|
placeholder: e(a)("base.placeholder.input")
|
839
842
|
}, null, 8, ["modelValue", "placeholder"])
|
840
843
|
]),
|
841
844
|
_: 1
|
842
845
|
}, 8, ["label"]),
|
843
|
-
l(
|
846
|
+
l(r, {
|
844
847
|
label: e(a)("base.url"),
|
845
848
|
prop: "url"
|
846
849
|
}, {
|
847
850
|
default: n(() => [
|
848
|
-
l(
|
851
|
+
l(U, {
|
849
852
|
modelValue: t.url,
|
850
|
-
"onUpdate:modelValue": o[6] || (o[6] = (
|
853
|
+
"onUpdate:modelValue": o[6] || (o[6] = (m) => t.url = m),
|
851
854
|
placeholder: e(a)("base.placeholder.input")
|
852
855
|
}, null, 8, ["modelValue", "placeholder"])
|
853
856
|
]),
|
854
857
|
_: 1
|
855
858
|
}, 8, ["label"]),
|
856
|
-
l(
|
859
|
+
l(r, {
|
857
860
|
label: e(a)("base.remark"),
|
858
861
|
prop: "remark"
|
859
862
|
}, {
|
860
863
|
default: n(() => [
|
861
|
-
l(
|
864
|
+
l(U, {
|
862
865
|
modelValue: t.remark,
|
863
|
-
"onUpdate:modelValue": o[7] || (o[7] = (
|
866
|
+
"onUpdate:modelValue": o[7] || (o[7] = (m) => t.remark = m),
|
864
867
|
placeholder: e(a)("base.placeholder.input")
|
865
868
|
}, null, 8, ["modelValue", "placeholder"])
|
866
869
|
]),
|
@@ -869,27 +872,27 @@ const Ae = /* @__PURE__ */ z({
|
|
869
872
|
]),
|
870
873
|
_: 1
|
871
874
|
}),
|
872
|
-
l(
|
875
|
+
l(u, { span: 12 }, {
|
873
876
|
default: n(() => [
|
874
|
-
|
875
|
-
[
|
877
|
+
j(l(r, { prop: "meta.icon" }, null, 512), [
|
878
|
+
[B, !1]
|
876
879
|
]),
|
877
|
-
l(
|
880
|
+
l(r, {
|
878
881
|
label: e(a)("base.icon"),
|
879
882
|
prop: "icon"
|
880
883
|
}, {
|
881
884
|
default: n(() => [
|
882
|
-
l(
|
885
|
+
l(U, {
|
883
886
|
modelValue: t.icon,
|
884
|
-
"onUpdate:modelValue": o[8] || (o[8] = (
|
887
|
+
"onUpdate:modelValue": o[8] || (o[8] = (m) => t.icon = m),
|
885
888
|
placeholder: e(a)("base.placeholder.input"),
|
886
|
-
onInput: o[9] || (o[9] = (
|
887
|
-
t.meta.icon =
|
889
|
+
onInput: o[9] || (o[9] = (m) => {
|
890
|
+
t.meta.icon = m;
|
888
891
|
})
|
889
892
|
}, {
|
890
893
|
prepend: n(() => [
|
891
894
|
Q("span", {
|
892
|
-
class:
|
895
|
+
class: ge("iconfont " + t.icon)
|
893
896
|
}, null, 2)
|
894
897
|
]),
|
895
898
|
_: 1
|
@@ -897,44 +900,44 @@ const Ae = /* @__PURE__ */ z({
|
|
897
900
|
]),
|
898
901
|
_: 1
|
899
902
|
}, 8, ["label"]),
|
900
|
-
l(
|
903
|
+
l(r, {
|
901
904
|
label: e(a)("base.title"),
|
902
905
|
prop: "meta.title"
|
903
906
|
}, {
|
904
907
|
default: n(() => [
|
905
|
-
l(
|
908
|
+
l(U, {
|
906
909
|
modelValue: t.meta.title,
|
907
|
-
"onUpdate:modelValue": o[10] || (o[10] = (
|
910
|
+
"onUpdate:modelValue": o[10] || (o[10] = (m) => t.meta.title = m),
|
908
911
|
placeholder: e(a)("base.placeholder.input")
|
909
912
|
}, null, 8, ["modelValue", "placeholder"])
|
910
913
|
]),
|
911
914
|
_: 1
|
912
915
|
}, 8, ["label"]),
|
913
|
-
l(
|
916
|
+
l(r, {
|
914
917
|
label: e(a)("menu.active"),
|
915
918
|
prop: "meta.active"
|
916
919
|
}, {
|
917
920
|
default: n(() => [
|
918
|
-
l(
|
921
|
+
l(U, {
|
919
922
|
modelValue: t.meta.active,
|
920
|
-
"onUpdate:modelValue": o[11] || (o[11] = (
|
923
|
+
"onUpdate:modelValue": o[11] || (o[11] = (m) => t.meta.active = m),
|
921
924
|
placeholder: e(a)("base.placeholder.input")
|
922
925
|
}, null, 8, ["modelValue", "placeholder"])
|
923
926
|
]),
|
924
927
|
_: 1
|
925
928
|
}, 8, ["label"]),
|
926
|
-
l(
|
929
|
+
l(k, null, {
|
927
930
|
default: n(() => [
|
928
|
-
l(
|
931
|
+
l(u, { span: 12 }, {
|
929
932
|
default: n(() => [
|
930
|
-
l(
|
933
|
+
l(r, {
|
931
934
|
label: e(a)("menu.link"),
|
932
935
|
prop: "meta.link"
|
933
936
|
}, {
|
934
937
|
default: n(() => [
|
935
|
-
l(
|
938
|
+
l(b, {
|
936
939
|
modelValue: t.meta.link,
|
937
|
-
"onUpdate:modelValue": o[12] || (o[12] = (
|
940
|
+
"onUpdate:modelValue": o[12] || (o[12] = (m) => t.meta.link = m)
|
938
941
|
}, null, 8, ["modelValue"])
|
939
942
|
]),
|
940
943
|
_: 1
|
@@ -942,16 +945,16 @@ const Ae = /* @__PURE__ */ z({
|
|
942
945
|
]),
|
943
946
|
_: 1
|
944
947
|
}),
|
945
|
-
l(
|
948
|
+
l(u, { span: 12 }, {
|
946
949
|
default: n(() => [
|
947
|
-
l(
|
950
|
+
l(r, {
|
948
951
|
label: e(a)("menu.keep_alive"),
|
949
952
|
prop: "meta.keep_alive"
|
950
953
|
}, {
|
951
954
|
default: n(() => [
|
952
|
-
l(
|
955
|
+
l(b, {
|
953
956
|
modelValue: t.meta.keep_alive,
|
954
|
-
"onUpdate:modelValue": o[13] || (o[13] = (
|
957
|
+
"onUpdate:modelValue": o[13] || (o[13] = (m) => t.meta.keep_alive = m)
|
955
958
|
}, null, 8, ["modelValue"])
|
956
959
|
]),
|
957
960
|
_: 1
|
@@ -959,16 +962,16 @@ const Ae = /* @__PURE__ */ z({
|
|
959
962
|
]),
|
960
963
|
_: 1
|
961
964
|
}),
|
962
|
-
l(
|
965
|
+
l(u, { span: 12 }, {
|
963
966
|
default: n(() => [
|
964
|
-
l(
|
967
|
+
l(r, {
|
965
968
|
label: e(a)("menu.hide"),
|
966
969
|
prop: "meta.hide"
|
967
970
|
}, {
|
968
971
|
default: n(() => [
|
969
|
-
l(
|
972
|
+
l(b, {
|
970
973
|
modelValue: t.meta.hide,
|
971
|
-
"onUpdate:modelValue": o[14] || (o[14] = (
|
974
|
+
"onUpdate:modelValue": o[14] || (o[14] = (m) => t.meta.hide = m)
|
972
975
|
}, null, 8, ["modelValue"])
|
973
976
|
]),
|
974
977
|
_: 1
|
@@ -976,16 +979,16 @@ const Ae = /* @__PURE__ */ z({
|
|
976
979
|
]),
|
977
980
|
_: 1
|
978
981
|
}),
|
979
|
-
l(
|
982
|
+
l(u, { span: 12 }, {
|
980
983
|
default: n(() => [
|
981
|
-
l(
|
984
|
+
l(r, {
|
982
985
|
label: e(a)("menu.full"),
|
983
986
|
prop: "meta.full"
|
984
987
|
}, {
|
985
988
|
default: n(() => [
|
986
|
-
l(
|
989
|
+
l(b, {
|
987
990
|
modelValue: t.meta.full,
|
988
|
-
"onUpdate:modelValue": o[15] || (o[15] = (
|
991
|
+
"onUpdate:modelValue": o[15] || (o[15] = (m) => t.meta.full = m)
|
989
992
|
}, null, 8, ["modelValue"])
|
990
993
|
]),
|
991
994
|
_: 1
|
@@ -993,16 +996,16 @@ const Ae = /* @__PURE__ */ z({
|
|
993
996
|
]),
|
994
997
|
_: 1
|
995
998
|
}),
|
996
|
-
l(
|
999
|
+
l(u, { span: 12 }, {
|
997
1000
|
default: n(() => [
|
998
|
-
l(
|
1001
|
+
l(r, {
|
999
1002
|
label: e(a)("menu.affix"),
|
1000
1003
|
prop: "meta.affix"
|
1001
1004
|
}, {
|
1002
1005
|
default: n(() => [
|
1003
|
-
l(
|
1006
|
+
l(b, {
|
1004
1007
|
modelValue: t.meta.affix,
|
1005
|
-
"onUpdate:modelValue": o[16] || (o[16] = (
|
1008
|
+
"onUpdate:modelValue": o[16] || (o[16] = (m) => t.meta.affix = m)
|
1006
1009
|
}, null, 8, ["modelValue"])
|
1007
1010
|
]),
|
1008
1011
|
_: 1
|
@@ -1027,7 +1030,7 @@ const Ae = /* @__PURE__ */ z({
|
|
1027
1030
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
1028
1031
|
};
|
1029
1032
|
}
|
1030
|
-
}),
|
1033
|
+
}), ze = /* @__PURE__ */ $({
|
1031
1034
|
__name: "menuSelect",
|
1032
1035
|
props: {
|
1033
1036
|
modelValue: {
|
@@ -1040,50 +1043,51 @@ const Ae = /* @__PURE__ */ z({
|
|
1040
1043
|
}
|
1041
1044
|
},
|
1042
1045
|
emits: ["update:modelValue", "change"],
|
1043
|
-
setup(
|
1044
|
-
emit:
|
1046
|
+
setup(x, {
|
1047
|
+
emit: C
|
1045
1048
|
}) {
|
1046
|
-
const
|
1049
|
+
const y = C, M = x, {
|
1047
1050
|
requesting: t
|
1048
|
-
} =
|
1049
|
-
value:
|
1050
|
-
options:
|
1051
|
-
change:
|
1052
|
-
refresh:
|
1053
|
-
filterOptions:
|
1054
|
-
} = pe(
|
1051
|
+
} = D(z), {
|
1052
|
+
value: c,
|
1053
|
+
options: f,
|
1054
|
+
change: s,
|
1055
|
+
refresh: _,
|
1056
|
+
filterOptions: w
|
1057
|
+
} = pe(de(M, "modelValue"), y, {
|
1055
1058
|
key: "MENU_LIST",
|
1056
|
-
api:
|
1059
|
+
api: z,
|
1057
1060
|
isArray: !0
|
1058
1061
|
});
|
1059
1062
|
return (R, h) => {
|
1060
|
-
const V =
|
1061
|
-
return
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1063
|
+
const V = d("el-select-v2");
|
1064
|
+
return S(), L(V, {
|
1065
|
+
class: "w-full",
|
1066
|
+
modelValue: e(c),
|
1067
|
+
"onUpdate:modelValue": h[1] || (h[1] = (g) => I(c) ? c.value = g : null),
|
1068
|
+
options: e(f),
|
1069
|
+
multiple: x.multiple,
|
1066
1070
|
disabled: e(t),
|
1067
1071
|
placeholder: e(a)("base.placeholder.select"),
|
1068
1072
|
filterable: "",
|
1069
|
-
filterOptions: e(
|
1070
|
-
onChange: e(
|
1073
|
+
filterOptions: e(w),
|
1074
|
+
onChange: e(s)
|
1071
1075
|
}, {
|
1072
|
-
prefix: n(() => [l(e(
|
1076
|
+
prefix: n(() => [l(e(K), {
|
1073
1077
|
loading: e(t),
|
1074
1078
|
text: "",
|
1075
1079
|
size: "small",
|
1076
|
-
onRefresh: h[0] || (h[0] = (
|
1080
|
+
onRefresh: h[0] || (h[0] = (g) => e(_)(!0))
|
1077
1081
|
}, null, 8, ["loading"])]),
|
1078
1082
|
_: 1
|
1079
1083
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
1080
1084
|
};
|
1081
1085
|
}
|
1082
|
-
}),
|
1086
|
+
}), Te = /* @__PURE__ */ $({
|
1083
1087
|
__name: "rule",
|
1084
1088
|
emits: ["refresh"],
|
1085
|
-
setup(
|
1086
|
-
const
|
1089
|
+
setup(x, { expose: C, emit: y }) {
|
1090
|
+
const M = y, t = F({
|
1087
1091
|
key: "",
|
1088
1092
|
menu_id: 0,
|
1089
1093
|
sort: 0,
|
@@ -1091,7 +1095,7 @@ const Ae = /* @__PURE__ */ z({
|
|
1091
1095
|
en_name: "",
|
1092
1096
|
urls: "",
|
1093
1097
|
remark: ""
|
1094
|
-
}),
|
1098
|
+
}), c = {
|
1095
1099
|
menu_id: [
|
1096
1100
|
{ required: !0, type: "number", message: a("base.placeholder.select menu.Menu"), trigger: "blur" }
|
1097
1101
|
],
|
@@ -1107,103 +1111,104 @@ const Ae = /* @__PURE__ */ z({
|
|
1107
1111
|
urls: [
|
1108
1112
|
{ required: !0, message: a("base.placeholder.input base.rules"), trigger: "blur" }
|
1109
1113
|
]
|
1110
|
-
}, { modal:
|
1111
|
-
|
1114
|
+
}, { modal: f, title: s, form: _, requesting: w, executing: R, open: h, modify: V, submit: g, closed: O } = H(
|
1115
|
+
M,
|
1112
1116
|
t,
|
1113
|
-
|
1117
|
+
fe
|
1114
1118
|
);
|
1115
|
-
return
|
1116
|
-
openOrModify: (
|
1117
|
-
|
1119
|
+
return C({
|
1120
|
+
openOrModify: (i) => {
|
1121
|
+
i ? V({ key: i }) : h();
|
1118
1122
|
}
|
1119
|
-
}), (
|
1120
|
-
const
|
1121
|
-
return
|
1122
|
-
modelValue: e(
|
1123
|
-
"onUpdate:modelValue": o[6] || (o[6] = (
|
1124
|
-
title: e(
|
1123
|
+
}), (i, o) => {
|
1124
|
+
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");
|
1125
|
+
return S(), L(e(G), {
|
1126
|
+
modelValue: e(f),
|
1127
|
+
"onUpdate:modelValue": o[6] || (o[6] = (v) => I(f) ? f.value = v : null),
|
1128
|
+
title: e(s)("base.rules"),
|
1125
1129
|
width: "1000px",
|
1126
1130
|
executing: e(R),
|
1127
|
-
onClosed: e(
|
1128
|
-
onSubmit: e(
|
1131
|
+
onClosed: e(O),
|
1132
|
+
onSubmit: e(g)
|
1129
1133
|
}, {
|
1130
1134
|
default: n(() => [
|
1131
|
-
l(
|
1135
|
+
l(b, {
|
1132
1136
|
ref_key: "form",
|
1133
|
-
ref:
|
1137
|
+
ref: _,
|
1134
1138
|
model: t,
|
1135
1139
|
"label-width": "auto",
|
1136
|
-
rules:
|
1137
|
-
disabled: e(
|
1140
|
+
rules: c,
|
1141
|
+
disabled: e(w) || e(R)
|
1138
1142
|
}, {
|
1139
1143
|
default: n(() => [
|
1140
|
-
|
1141
|
-
[
|
1144
|
+
j(l(r, { prop: "key" }, null, 512), [
|
1145
|
+
[B, !1]
|
1142
1146
|
]),
|
1143
|
-
l(
|
1147
|
+
l(U, { gutter: 20 }, {
|
1144
1148
|
default: n(() => [
|
1145
|
-
l(
|
1149
|
+
l(k, { span: 10 }, {
|
1146
1150
|
default: n(() => [
|
1147
|
-
l(
|
1151
|
+
l(r, {
|
1148
1152
|
label: e(a)("menu.Menu"),
|
1149
1153
|
prop: "menu_id"
|
1150
1154
|
}, {
|
1151
1155
|
default: n(() => [
|
1152
|
-
l(
|
1156
|
+
l(ze, {
|
1153
1157
|
modelValue: t.menu_id,
|
1154
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
1158
|
+
"onUpdate:modelValue": o[0] || (o[0] = (v) => t.menu_id = v)
|
1155
1159
|
}, null, 8, ["modelValue"])
|
1156
1160
|
]),
|
1157
1161
|
_: 1
|
1158
1162
|
}, 8, ["label"]),
|
1159
|
-
l(
|
1163
|
+
l(r, {
|
1160
1164
|
label: e(a)("base.sort"),
|
1161
1165
|
prop: "sort"
|
1162
1166
|
}, {
|
1163
1167
|
default: n(() => [
|
1164
|
-
l(
|
1168
|
+
l(u, {
|
1169
|
+
class: "w-full",
|
1165
1170
|
modelValue: t.sort,
|
1166
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
1171
|
+
"onUpdate:modelValue": o[1] || (o[1] = (v) => t.sort = v),
|
1167
1172
|
min: 0,
|
1168
1173
|
placeholder: e(a)("base.placeholder.input")
|
1169
1174
|
}, null, 8, ["modelValue", "placeholder"])
|
1170
1175
|
]),
|
1171
1176
|
_: 1
|
1172
1177
|
}, 8, ["label"]),
|
1173
|
-
l(
|
1178
|
+
l(r, {
|
1174
1179
|
label: e(a)("base.name"),
|
1175
1180
|
prop: "name"
|
1176
1181
|
}, {
|
1177
1182
|
default: n(() => [
|
1178
|
-
l(
|
1183
|
+
l(p, {
|
1179
1184
|
modelValue: t.name,
|
1180
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
1185
|
+
"onUpdate:modelValue": o[2] || (o[2] = (v) => t.name = v),
|
1181
1186
|
placeholder: e(a)("base.placeholder.input")
|
1182
1187
|
}, null, 8, ["modelValue", "placeholder"])
|
1183
1188
|
]),
|
1184
1189
|
_: 1
|
1185
1190
|
}, 8, ["label"]),
|
1186
|
-
l(
|
1191
|
+
l(r, {
|
1187
1192
|
label: e(a)("base.en_name"),
|
1188
1193
|
prop: "en_name"
|
1189
1194
|
}, {
|
1190
1195
|
default: n(() => [
|
1191
|
-
l(
|
1196
|
+
l(p, {
|
1192
1197
|
modelValue: t.en_name,
|
1193
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
1198
|
+
"onUpdate:modelValue": o[3] || (o[3] = (v) => t.en_name = v),
|
1194
1199
|
placeholder: e(a)("base.placeholder.input")
|
1195
1200
|
}, null, 8, ["modelValue", "placeholder"])
|
1196
1201
|
]),
|
1197
1202
|
_: 1
|
1198
1203
|
}, 8, ["label"]),
|
1199
|
-
l(
|
1204
|
+
l(r, {
|
1200
1205
|
label: e(a)("base.remark"),
|
1201
1206
|
prop: "remark"
|
1202
1207
|
}, {
|
1203
1208
|
default: n(() => [
|
1204
|
-
l(
|
1209
|
+
l(p, {
|
1205
1210
|
modelValue: t.remark,
|
1206
|
-
"onUpdate:modelValue": o[4] || (o[4] = (
|
1211
|
+
"onUpdate:modelValue": o[4] || (o[4] = (v) => t.remark = v),
|
1207
1212
|
placeholder: e(a)("base.placeholder.input")
|
1208
1213
|
}, null, 8, ["modelValue", "placeholder"])
|
1209
1214
|
]),
|
@@ -1212,16 +1217,16 @@ const Ae = /* @__PURE__ */ z({
|
|
1212
1217
|
]),
|
1213
1218
|
_: 1
|
1214
1219
|
}),
|
1215
|
-
l(
|
1220
|
+
l(k, { span: 14 }, {
|
1216
1221
|
default: n(() => [
|
1217
|
-
l(
|
1222
|
+
l(r, {
|
1218
1223
|
label: e(a)("base.rules"),
|
1219
1224
|
prop: "urls"
|
1220
1225
|
}, {
|
1221
1226
|
default: n(() => [
|
1222
|
-
l(
|
1227
|
+
l(p, {
|
1223
1228
|
modelValue: t.urls,
|
1224
|
-
"onUpdate:modelValue": o[5] || (o[5] = (
|
1229
|
+
"onUpdate:modelValue": o[5] || (o[5] = (v) => t.urls = v),
|
1225
1230
|
type: "textarea",
|
1226
1231
|
rows: 11,
|
1227
1232
|
placeholder: e(a)("base.placeholder.input")
|
@@ -1243,13 +1248,17 @@ const Ae = /* @__PURE__ */ z({
|
|
1243
1248
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
1244
1249
|
};
|
1245
1250
|
}
|
1246
|
-
})
|
1251
|
+
});
|
1252
|
+
function me(x) {
|
1253
|
+
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !he(x);
|
1254
|
+
}
|
1255
|
+
const Ie = /* @__PURE__ */ $({
|
1247
1256
|
__name: "index",
|
1248
|
-
setup(
|
1249
|
-
const
|
1257
|
+
setup(x) {
|
1258
|
+
const C = {
|
1250
1259
|
keyword: "",
|
1251
1260
|
status: 0
|
1252
|
-
},
|
1261
|
+
}, y = Z(""), M = [
|
1253
1262
|
{
|
1254
1263
|
label: a("base.sort"),
|
1255
1264
|
prop: "sort",
|
@@ -1260,9 +1269,9 @@ const Ae = /* @__PURE__ */ z({
|
|
1260
1269
|
prop: "icon",
|
1261
1270
|
width: 60,
|
1262
1271
|
render: ({
|
1263
|
-
row:
|
1272
|
+
row: o
|
1264
1273
|
}) => l("span", {
|
1265
|
-
class: "iconfont " +
|
1274
|
+
class: "iconfont " + o.icon,
|
1266
1275
|
style: "font-size: 16px;"
|
1267
1276
|
}, null)
|
1268
1277
|
},
|
@@ -1276,10 +1285,10 @@ const Ae = /* @__PURE__ */ z({
|
|
1276
1285
|
prop: "parent",
|
1277
1286
|
width: 120,
|
1278
1287
|
render: ({
|
1279
|
-
row:
|
1288
|
+
row: o
|
1280
1289
|
}) => {
|
1281
|
-
var
|
1282
|
-
return l(P, null, [(
|
1290
|
+
var r;
|
1291
|
+
return l(P, null, [(r = o.menu) == null ? void 0 : r.name]);
|
1283
1292
|
}
|
1284
1293
|
},
|
1285
1294
|
{
|
@@ -1304,15 +1313,43 @@ const Ae = /* @__PURE__ */ z({
|
|
1304
1313
|
width: 0,
|
1305
1314
|
align: "left",
|
1306
1315
|
render: ({
|
1307
|
-
row:
|
1308
|
-
}) => l(
|
1316
|
+
row: o
|
1317
|
+
}) => l(d("el-space"), null, {
|
1309
1318
|
default: () => {
|
1310
|
-
var
|
1311
|
-
return [(
|
1312
|
-
|
1313
|
-
|
1319
|
+
var r;
|
1320
|
+
return [(r = o.rules) == null ? void 0 : r.map((u) => l(d("el-popover"), {
|
1321
|
+
visible: y.value === u.key,
|
1322
|
+
title: a("message.title.warning"),
|
1323
|
+
placement: "top-end",
|
1324
|
+
width: 220
|
1314
1325
|
}, {
|
1315
|
-
|
1326
|
+
reference: () => l(d("el-tag"), {
|
1327
|
+
class: "cursor-pointer",
|
1328
|
+
closable: !0,
|
1329
|
+
key: u.key,
|
1330
|
+
onClick: () => q(u.key),
|
1331
|
+
onClose: () => y.value = u.key
|
1332
|
+
}, {
|
1333
|
+
default: () => [u.translate]
|
1334
|
+
}),
|
1335
|
+
default: () => {
|
1336
|
+
let p, k;
|
1337
|
+
return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.delete base.rules")}: ${o.translate}-${u.translate} ?`]), l("div", {
|
1338
|
+
style: "text-align: right; margin: 0"
|
1339
|
+
}, [l(d("el-button"), {
|
1340
|
+
size: "small",
|
1341
|
+
text: !0,
|
1342
|
+
onClick: () => y.value = ""
|
1343
|
+
}, me(p = a("base.cancel")) ? p : {
|
1344
|
+
default: () => [p]
|
1345
|
+
}), l(d("el-button"), {
|
1346
|
+
size: "small",
|
1347
|
+
type: "danger",
|
1348
|
+
onClick: () => i(u.key)
|
1349
|
+
}, me(k = a("base.confirm")) ? k : {
|
1350
|
+
default: () => [k]
|
1351
|
+
})])]);
|
1352
|
+
}
|
1316
1353
|
}))];
|
1317
1354
|
}
|
1318
1355
|
})
|
@@ -1325,7 +1362,7 @@ const Ae = /* @__PURE__ */ z({
|
|
1325
1362
|
props: {
|
1326
1363
|
activeValue: 1,
|
1327
1364
|
inactiveValue: 2,
|
1328
|
-
api:
|
1365
|
+
api: z.urls[ce],
|
1329
1366
|
refresh: !0
|
1330
1367
|
}
|
1331
1368
|
},
|
@@ -1335,174 +1372,181 @@ const Ae = /* @__PURE__ */ z({
|
|
1335
1372
|
width: 60,
|
1336
1373
|
align: "center",
|
1337
1374
|
render: ({
|
1338
|
-
row:
|
1339
|
-
}) => l(
|
1340
|
-
onModify: () =>
|
1375
|
+
row: o
|
1376
|
+
}) => l(ae, {
|
1377
|
+
onModify: () => V(o.id)
|
1341
1378
|
}, null)
|
1342
1379
|
}
|
1343
1380
|
], {
|
1344
|
-
requesting:
|
1345
|
-
} =
|
1346
|
-
tableRef:
|
1381
|
+
requesting: t
|
1382
|
+
} = D(z), {
|
1383
|
+
tableRef: c,
|
1347
1384
|
infoRef: f,
|
1348
|
-
keyword:
|
1349
|
-
search:
|
1350
|
-
refresh:
|
1351
|
-
reset:
|
1352
|
-
openInfo:
|
1353
|
-
modifyInfo:
|
1354
|
-
} = W(
|
1355
|
-
infoRef:
|
1356
|
-
openInfo:
|
1385
|
+
keyword: s,
|
1386
|
+
search: _,
|
1387
|
+
refresh: w,
|
1388
|
+
reset: R,
|
1389
|
+
openInfo: h,
|
1390
|
+
modifyInfo: V
|
1391
|
+
} = W(C), {
|
1392
|
+
infoRef: g,
|
1393
|
+
openInfo: O,
|
1357
1394
|
modifyInfo: q
|
1358
|
-
} = W()
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1395
|
+
} = W(), i = (o) => {
|
1396
|
+
fe[Ue]({
|
1397
|
+
key: o
|
1398
|
+
}).then(() => {
|
1399
|
+
y.value = "", w();
|
1400
|
+
});
|
1401
|
+
};
|
1402
|
+
return (o, r) => {
|
1403
|
+
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");
|
1404
|
+
return S(), L(v, {
|
1362
1405
|
class: "basic-card flex-full",
|
1363
|
-
"body-class": "flex-1"
|
1406
|
+
"body-class": "flex-1",
|
1407
|
+
onClick: r[2] || (r[2] = () => y.value = "")
|
1364
1408
|
}, {
|
1365
|
-
header: n(() => [l(
|
1409
|
+
header: n(() => [l(b, {
|
1366
1410
|
class: "search-bar"
|
1367
1411
|
}, {
|
1368
|
-
default: n(() => [l(e(
|
1369
|
-
loading: e(
|
1370
|
-
onRefresh: e(
|
1371
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
1372
|
-
onOpen: e(
|
1373
|
-
}, null, 8, ["onOpen"]), l(
|
1412
|
+
default: n(() => [l(e(K), {
|
1413
|
+
loading: e(t),
|
1414
|
+
onRefresh: e(w)
|
1415
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(ne), {
|
1416
|
+
onOpen: e(h)
|
1417
|
+
}, null, 8, ["onOpen"]), l(u, {
|
1374
1418
|
circle: "",
|
1375
|
-
onClick: e(
|
1376
|
-
icon: e(
|
1377
|
-
}, null, 8, ["onClick", "icon"]), l(
|
1419
|
+
onClick: e(O),
|
1420
|
+
icon: e(Ee)
|
1421
|
+
}, null, 8, ["onClick", "icon"]), l(p, {
|
1378
1422
|
class: "basic-search-input",
|
1379
|
-
modelValue: e(
|
1380
|
-
"onUpdate:modelValue":
|
1423
|
+
modelValue: e(s).keyword,
|
1424
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => e(s).keyword = m),
|
1381
1425
|
placeholder: e(a)("base.placeholder.keyword"),
|
1382
1426
|
clearable: "",
|
1383
|
-
onKeyup:
|
1384
|
-
onClear: e(
|
1385
|
-
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(
|
1386
|
-
modelValue: e(
|
1387
|
-
"onUpdate:modelValue":
|
1388
|
-
onChange: e(
|
1427
|
+
onKeyup: ee(e(_), ["enter"]),
|
1428
|
+
onClear: e(_)
|
1429
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(U, {
|
1430
|
+
modelValue: e(s).status,
|
1431
|
+
"onUpdate:modelValue": r[1] || (r[1] = (m) => e(s).status = m),
|
1432
|
+
onChange: e(_)
|
1389
1433
|
}, {
|
1390
|
-
default: n(() => [(
|
1434
|
+
default: n(() => [(S(), T(P, null, Y([0, 1, 2], (m) => l(k, {
|
1391
1435
|
key: m,
|
1392
1436
|
label: e(a)(`base.DISABLE_ENABLE.${m}`),
|
1393
1437
|
value: m
|
1394
1438
|
}, null, 8, ["label", "value"])), 64))]),
|
1395
1439
|
_: 1
|
1396
|
-
}, 8, ["modelValue", "onChange"]), l(e(
|
1397
|
-
onSearch: e(
|
1440
|
+
}, 8, ["modelValue", "onChange"]), l(e(re), {
|
1441
|
+
onSearch: e(_)
|
1398
1442
|
}, null, 8, ["onSearch"])]),
|
1399
1443
|
_: 1
|
1400
1444
|
})]),
|
1401
|
-
default: n(() => [l(e(
|
1445
|
+
default: n(() => [l(e(oe), {
|
1402
1446
|
ref_key: "tableRef",
|
1403
|
-
ref:
|
1447
|
+
ref: c,
|
1404
1448
|
size: "small",
|
1405
|
-
columns:
|
1406
|
-
url: e(
|
1407
|
-
"search-param": e(
|
1449
|
+
columns: M,
|
1450
|
+
url: e(z).urls[e(te)],
|
1451
|
+
"search-param": e(s),
|
1408
1452
|
autoSearch: ""
|
1409
|
-
}, null, 8, ["url", "search-param"]), l(
|
1453
|
+
}, null, 8, ["url", "search-param"]), l($e, {
|
1410
1454
|
ref_key: "infoRef",
|
1411
1455
|
ref: f,
|
1412
|
-
onRefresh: e(
|
1413
|
-
}, null, 8, ["onRefresh"]), l(
|
1456
|
+
onRefresh: e(R)
|
1457
|
+
}, null, 8, ["onRefresh"]), l(Te, {
|
1414
1458
|
ref_key: "ruleRef",
|
1415
|
-
ref:
|
1416
|
-
onRefresh: e(
|
1459
|
+
ref: g,
|
1460
|
+
onRefresh: e(w)
|
1417
1461
|
}, null, 8, ["onRefresh"])]),
|
1418
1462
|
_: 1
|
1419
1463
|
});
|
1420
1464
|
};
|
1421
1465
|
}
|
1422
|
-
}),
|
1466
|
+
}), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1423
1467
|
__proto__: null,
|
1424
|
-
default:
|
1425
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1468
|
+
default: Ie
|
1469
|
+
}, Symbol.toStringTag, { value: "Module" })), Ke = { class: "rule-check" }, Ne = { style: { width: "80px", "line-height": "36px" } }, je = /* @__PURE__ */ $({
|
1426
1470
|
__name: "rulesCheck",
|
1427
1471
|
props: {
|
1428
1472
|
modelValue: { type: Array, required: !0 },
|
1429
1473
|
disabled: { type: Boolean, default: !1 }
|
1430
1474
|
},
|
1431
1475
|
emits: ["update:modelValue"],
|
1432
|
-
setup(
|
1433
|
-
const { requesting:
|
1476
|
+
setup(x, { expose: C, emit: y }) {
|
1477
|
+
const { requesting: M } = D(z), t = x, c = y, f = Z(!1), s = F({
|
1434
1478
|
checkAll: !1,
|
1435
1479
|
indeterminate: !1,
|
1436
1480
|
MenuAll: {},
|
1437
1481
|
MenuList: {},
|
1438
1482
|
MenuIndeterminate: {}
|
1439
|
-
}), { options:
|
1440
|
-
|
1441
|
-
|
1442
|
-
{ key: "RULE_CHECK", api:
|
1483
|
+
}), { options: _, refresh: w } = pe(
|
1484
|
+
de(t, "modelValue"),
|
1485
|
+
c,
|
1486
|
+
{ key: "RULE_CHECK", api: z, url: z.urls.rules, isArray: !0 },
|
1443
1487
|
!1
|
1444
1488
|
);
|
1445
1489
|
function R() {
|
1446
|
-
|
1490
|
+
_.value.forEach((i) => {
|
1447
1491
|
var o;
|
1448
|
-
(o =
|
1492
|
+
(o = i.rules) != null && o.length && (s.MenuAll[i.id] = !1, s.MenuIndeterminate[i.id] = !1, s.MenuList[i.id] = []);
|
1449
1493
|
});
|
1450
1494
|
}
|
1451
|
-
function h(
|
1452
|
-
|
1453
|
-
var
|
1454
|
-
(
|
1455
|
-
}),
|
1495
|
+
function h(i) {
|
1496
|
+
_.value.forEach((o) => {
|
1497
|
+
var r;
|
1498
|
+
(r = o.rules) != null && r.length && (s.MenuList[o.id] = i ? o.rules.map((u) => u.key) : []);
|
1499
|
+
}), g();
|
1456
1500
|
}
|
1457
|
-
function V(
|
1458
|
-
const
|
1459
|
-
|
1501
|
+
function V(i, o) {
|
1502
|
+
const r = _.value.find((u) => u.id === o);
|
1503
|
+
s.MenuList[o] = i && r ? r.rules.map((u) => u.key) : [], g();
|
1460
1504
|
}
|
1461
|
-
function
|
1462
|
-
|
1463
|
-
var
|
1464
|
-
const o = ((
|
1465
|
-
|
1466
|
-
}),
|
1505
|
+
function g() {
|
1506
|
+
_.value.forEach((i) => {
|
1507
|
+
var u, p;
|
1508
|
+
const o = ((u = i.rules) == null ? void 0 : u.length) || 0, r = ((p = s.MenuList[i.id]) == null ? void 0 : p.length) || 0;
|
1509
|
+
s.MenuAll[i.id] = r === o && o > 0, s.MenuIndeterminate[i.id] = r > 0 && r < o;
|
1510
|
+
}), 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
1511
|
}
|
1468
|
-
function
|
1469
|
-
|
1512
|
+
function O() {
|
1513
|
+
s.checkAll = !1, s.indeterminate = !1, s.MenuAll = {}, s.MenuList = {}, s.MenuIndeterminate = {}, R(), c("update:modelValue", []), f.value = !1;
|
1470
1514
|
}
|
1471
|
-
function
|
1515
|
+
function q(i) {
|
1472
1516
|
var o;
|
1473
|
-
if (Array.isArray(
|
1474
|
-
for (let
|
1475
|
-
if (Array.isArray(
|
1476
|
-
for (let
|
1477
|
-
|
1478
|
-
|
1517
|
+
if (Array.isArray(_.value) && _.value.length > 0) {
|
1518
|
+
for (let r of _.value)
|
1519
|
+
if (Array.isArray(r.rules) && r.rules.length > 0)
|
1520
|
+
for (let u of r.rules)
|
1521
|
+
i.some((p) => p === u.key) && (s.MenuList[r.id] = (((o = s.MenuList) == null ? void 0 : o[r.id]) || []).concat([u.key]));
|
1522
|
+
g(), f.value = !0;
|
1479
1523
|
}
|
1480
1524
|
}
|
1481
|
-
return
|
1482
|
-
var
|
1483
|
-
(
|
1484
|
-
}),
|
1525
|
+
return Ve(async () => {
|
1526
|
+
var i;
|
1527
|
+
(i = _.value) != null && i.length || await w(), !f.value && t.modelValue && q(t.modelValue);
|
1528
|
+
}), ye(
|
1485
1529
|
() => t.modelValue,
|
1486
|
-
(
|
1487
|
-
|
1530
|
+
(i) => {
|
1531
|
+
ke(() => {
|
1488
1532
|
var o;
|
1489
|
-
|
1533
|
+
f.value || !((o = _.value) != null && o.length) || i && i.length > 0 && q(i);
|
1490
1534
|
});
|
1491
1535
|
},
|
1492
1536
|
{ deep: !0, immediate: !0 }
|
1493
|
-
),
|
1494
|
-
generateOption:
|
1495
|
-
cleanChecked:
|
1496
|
-
}), (
|
1497
|
-
const
|
1498
|
-
return
|
1499
|
-
l(
|
1537
|
+
), C({
|
1538
|
+
generateOption: q,
|
1539
|
+
cleanChecked: O
|
1540
|
+
}), (i, o) => {
|
1541
|
+
const r = d("el-checkbox"), u = d("el-space"), p = d("el-text"), k = d("el-divider"), U = d("el-checkbox-group");
|
1542
|
+
return S(), T("div", Ke, [
|
1543
|
+
l(u, { style: { "margin-bottom": "6px" } }, {
|
1500
1544
|
default: n(() => [
|
1501
|
-
l(
|
1502
|
-
"model-value":
|
1503
|
-
indeterminate:
|
1545
|
+
l(r, {
|
1546
|
+
"model-value": s.checkAll,
|
1547
|
+
indeterminate: s.indeterminate,
|
1504
1548
|
id: "all",
|
1505
|
-
disabled:
|
1549
|
+
disabled: x.disabled,
|
1506
1550
|
onChange: h
|
1507
1551
|
}, {
|
1508
1552
|
default: n(() => o[1] || (o[1] = [
|
@@ -1511,67 +1555,67 @@ const Ae = /* @__PURE__ */ z({
|
|
1511
1555
|
_: 1,
|
1512
1556
|
__: [1]
|
1513
1557
|
}, 8, ["model-value", "indeterminate", "disabled"]),
|
1514
|
-
l(e(
|
1515
|
-
loading: e(
|
1558
|
+
l(e(K), {
|
1559
|
+
loading: e(M),
|
1516
1560
|
text: "",
|
1517
1561
|
size: "small",
|
1518
|
-
onRefresh: o[0] || (o[0] = (
|
1562
|
+
onRefresh: o[0] || (o[0] = (b) => e(w)(!0))
|
1519
1563
|
}, null, 8, ["loading"])
|
1520
1564
|
]),
|
1521
1565
|
_: 1
|
1522
1566
|
}),
|
1523
|
-
l(
|
1567
|
+
l(u, {
|
1524
1568
|
direction: "vertical",
|
1525
1569
|
alignment: "start"
|
1526
1570
|
}, {
|
1527
1571
|
default: n(() => [
|
1528
|
-
(
|
1529
|
-
key:
|
1572
|
+
(S(!0), T(P, null, Y(e(_), (b) => (S(), T("div", {
|
1573
|
+
key: b.id
|
1530
1574
|
}, [
|
1531
|
-
l(
|
1575
|
+
l(u, {
|
1532
1576
|
direction: "horizontal",
|
1533
1577
|
size: 2
|
1534
1578
|
}, {
|
1535
1579
|
default: n(() => [
|
1536
|
-
l(
|
1580
|
+
l(r, {
|
1537
1581
|
style: { "min-width": "150px" },
|
1538
|
-
"model-value":
|
1539
|
-
disabled:
|
1540
|
-
indeterminate:
|
1541
|
-
onChange: (
|
1582
|
+
"model-value": s.MenuAll[b.id],
|
1583
|
+
disabled: x.disabled || !b.rules || b.rules.length <= 0,
|
1584
|
+
indeterminate: s.MenuIndeterminate[b.id],
|
1585
|
+
onChange: (v) => V(v, b.id)
|
1542
1586
|
}, {
|
1543
1587
|
default: n(() => [
|
1544
|
-
l(
|
1588
|
+
l(p, { style: { "font-size": "15px" } }, {
|
1545
1589
|
default: n(() => [
|
1546
|
-
|
1590
|
+
N(ue(b.translate), 1)
|
1547
1591
|
]),
|
1548
1592
|
_: 2
|
1549
1593
|
}, 1024)
|
1550
1594
|
]),
|
1551
1595
|
_: 2
|
1552
1596
|
}, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
|
1553
|
-
l(
|
1554
|
-
|
1597
|
+
l(k, { direction: "vertical" }),
|
1598
|
+
b.rules ? (S(), L(U, {
|
1555
1599
|
key: 0,
|
1556
|
-
modelValue:
|
1557
|
-
"onUpdate:modelValue": (
|
1558
|
-
disabled:
|
1600
|
+
modelValue: s.MenuList[b.id],
|
1601
|
+
"onUpdate:modelValue": (v) => s.MenuList[b.id] = v,
|
1602
|
+
disabled: x.disabled,
|
1559
1603
|
style: { margin: "auto" },
|
1560
|
-
onChange:
|
1604
|
+
onChange: g
|
1561
1605
|
}, {
|
1562
1606
|
default: n(() => [
|
1563
|
-
(
|
1564
|
-
key:
|
1565
|
-
value:
|
1607
|
+
(S(!0), T(P, null, Y(b.rules, (v) => (S(), L(r, {
|
1608
|
+
key: v.key,
|
1609
|
+
value: v.key
|
1566
1610
|
}, {
|
1567
1611
|
default: n(() => [
|
1568
|
-
Q("div",
|
1612
|
+
Q("div", Ne, ue(v.translate), 1)
|
1569
1613
|
]),
|
1570
1614
|
_: 2
|
1571
1615
|
}, 1032, ["value"]))), 128))
|
1572
1616
|
]),
|
1573
1617
|
_: 2
|
1574
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
1618
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : ve("", !0)
|
1575
1619
|
]),
|
1576
1620
|
_: 2
|
1577
1621
|
}, 1024)
|
@@ -1582,11 +1626,11 @@ const Ae = /* @__PURE__ */ z({
|
|
1582
1626
|
]);
|
1583
1627
|
};
|
1584
1628
|
}
|
1585
|
-
}),
|
1629
|
+
}), Be = /* @__PURE__ */ $({
|
1586
1630
|
__name: "info",
|
1587
1631
|
emits: ["refresh"],
|
1588
|
-
setup(
|
1589
|
-
const
|
1632
|
+
setup(x, { expose: C, emit: y }) {
|
1633
|
+
const M = y, t = Z(), c = F({
|
1590
1634
|
key: "",
|
1591
1635
|
module: "",
|
1592
1636
|
sort: 0,
|
@@ -1594,61 +1638,61 @@ const Ae = /* @__PURE__ */ z({
|
|
1594
1638
|
en_name: "",
|
1595
1639
|
remark: "",
|
1596
1640
|
rules: []
|
1597
|
-
}),
|
1641
|
+
}), f = {
|
1598
1642
|
name: [
|
1599
1643
|
{ required: !0, message: a("base.placeholder.input base.name"), trigger: "blur" }
|
1600
1644
|
],
|
1601
1645
|
en_name: [
|
1602
1646
|
{ required: !0, message: a("base.placeholder.input base.en_name"), trigger: "blur" }
|
1603
1647
|
]
|
1604
|
-
}, { modal:
|
1605
|
-
|
1606
|
-
|
1648
|
+
}, { modal: s, title: _, form: w, requesting: R, executing: h, open: V, modify: g, submit: O, closed: q } = H(
|
1649
|
+
M,
|
1650
|
+
c,
|
1607
1651
|
X
|
1608
|
-
),
|
1609
|
-
|
1652
|
+
), i = (r) => {
|
1653
|
+
r ? g({ key: r }) : V();
|
1610
1654
|
}, o = () => {
|
1611
|
-
var
|
1612
|
-
(
|
1655
|
+
var r;
|
1656
|
+
(r = t.value) == null || r.cleanChecked(), q();
|
1613
1657
|
};
|
1614
|
-
return
|
1615
|
-
openOrModify:
|
1616
|
-
}), (
|
1617
|
-
const
|
1618
|
-
return
|
1619
|
-
modelValue: e(
|
1620
|
-
"onUpdate:modelValue":
|
1621
|
-
title: e(
|
1658
|
+
return C({
|
1659
|
+
openOrModify: i
|
1660
|
+
}), (r, u) => {
|
1661
|
+
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");
|
1662
|
+
return S(), L(e(G), {
|
1663
|
+
modelValue: e(s),
|
1664
|
+
"onUpdate:modelValue": u[6] || (u[6] = (E) => I(s) ? s.value = E : null),
|
1665
|
+
title: e(_)(),
|
1622
1666
|
width: "1000px",
|
1623
1667
|
executing: e(h),
|
1624
1668
|
onClosed: o,
|
1625
|
-
onSubmit: e(
|
1669
|
+
onSubmit: e(O)
|
1626
1670
|
}, {
|
1627
1671
|
default: n(() => [
|
1628
|
-
l(
|
1672
|
+
l(m, {
|
1629
1673
|
ref_key: "form",
|
1630
|
-
ref:
|
1631
|
-
model:
|
1674
|
+
ref: w,
|
1675
|
+
model: c,
|
1632
1676
|
"label-width": "auto",
|
1633
|
-
rules:
|
1677
|
+
rules: f,
|
1634
1678
|
disabled: e(R) || e(h)
|
1635
1679
|
}, {
|
1636
1680
|
default: n(() => [
|
1637
|
-
|
1638
|
-
[
|
1681
|
+
j(l(p, { prop: "key" }, null, 512), [
|
1682
|
+
[B, !1]
|
1639
1683
|
]),
|
1640
|
-
l(
|
1684
|
+
l(v, { gutter: 20 }, {
|
1641
1685
|
default: n(() => [
|
1642
|
-
l(
|
1686
|
+
l(U, { span: 12 }, {
|
1643
1687
|
default: n(() => [
|
1644
|
-
l(
|
1688
|
+
l(p, {
|
1645
1689
|
label: e(a)("base.module"),
|
1646
1690
|
prop: "module"
|
1647
1691
|
}, {
|
1648
1692
|
default: n(() => [
|
1649
|
-
l(
|
1650
|
-
modelValue:
|
1651
|
-
"onUpdate:modelValue":
|
1693
|
+
l(k, {
|
1694
|
+
modelValue: c.module,
|
1695
|
+
"onUpdate:modelValue": u[0] || (u[0] = (E) => c.module = E),
|
1652
1696
|
placeholder: e(a)("base.placeholder.input")
|
1653
1697
|
}, null, 8, ["modelValue", "placeholder"])
|
1654
1698
|
]),
|
@@ -1657,16 +1701,17 @@ const Ae = /* @__PURE__ */ z({
|
|
1657
1701
|
]),
|
1658
1702
|
_: 1
|
1659
1703
|
}),
|
1660
|
-
l(
|
1704
|
+
l(U, { span: 12 }, {
|
1661
1705
|
default: n(() => [
|
1662
|
-
l(
|
1706
|
+
l(p, {
|
1663
1707
|
label: e(a)("base.sort"),
|
1664
1708
|
prop: "sort"
|
1665
1709
|
}, {
|
1666
1710
|
default: n(() => [
|
1667
|
-
l(
|
1668
|
-
|
1669
|
-
|
1711
|
+
l(b, {
|
1712
|
+
class: "w-full",
|
1713
|
+
modelValue: c.sort,
|
1714
|
+
"onUpdate:modelValue": u[1] || (u[1] = (E) => c.sort = E),
|
1670
1715
|
min: 0,
|
1671
1716
|
placeholder: e(a)("base.placeholder.input")
|
1672
1717
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -1679,55 +1724,55 @@ const Ae = /* @__PURE__ */ z({
|
|
1679
1724
|
]),
|
1680
1725
|
_: 1
|
1681
1726
|
}),
|
1682
|
-
l(
|
1727
|
+
l(p, {
|
1683
1728
|
label: e(a)("base.name"),
|
1684
1729
|
prop: "name"
|
1685
1730
|
}, {
|
1686
1731
|
default: n(() => [
|
1687
|
-
l(
|
1688
|
-
modelValue:
|
1689
|
-
"onUpdate:modelValue":
|
1732
|
+
l(k, {
|
1733
|
+
modelValue: c.name,
|
1734
|
+
"onUpdate:modelValue": u[2] || (u[2] = (E) => c.name = E),
|
1690
1735
|
placeholder: e(a)("base.placeholder.input")
|
1691
1736
|
}, null, 8, ["modelValue", "placeholder"])
|
1692
1737
|
]),
|
1693
1738
|
_: 1
|
1694
1739
|
}, 8, ["label"]),
|
1695
|
-
l(
|
1740
|
+
l(p, {
|
1696
1741
|
label: e(a)("base.en_name"),
|
1697
1742
|
prop: "en_name"
|
1698
1743
|
}, {
|
1699
1744
|
default: n(() => [
|
1700
|
-
l(
|
1701
|
-
modelValue:
|
1702
|
-
"onUpdate:modelValue":
|
1745
|
+
l(k, {
|
1746
|
+
modelValue: c.en_name,
|
1747
|
+
"onUpdate:modelValue": u[3] || (u[3] = (E) => c.en_name = E),
|
1703
1748
|
placeholder: e(a)("base.placeholder.input")
|
1704
1749
|
}, null, 8, ["modelValue", "placeholder"])
|
1705
1750
|
]),
|
1706
1751
|
_: 1
|
1707
1752
|
}, 8, ["label"]),
|
1708
|
-
l(
|
1753
|
+
l(p, {
|
1709
1754
|
label: e(a)("base.remark"),
|
1710
1755
|
prop: "remark"
|
1711
1756
|
}, {
|
1712
1757
|
default: n(() => [
|
1713
|
-
l(
|
1714
|
-
modelValue:
|
1715
|
-
"onUpdate:modelValue":
|
1758
|
+
l(k, {
|
1759
|
+
modelValue: c.remark,
|
1760
|
+
"onUpdate:modelValue": u[4] || (u[4] = (E) => c.remark = E),
|
1716
1761
|
placeholder: e(a)("base.placeholder.input")
|
1717
1762
|
}, null, 8, ["modelValue", "placeholder"])
|
1718
1763
|
]),
|
1719
1764
|
_: 1
|
1720
1765
|
}, 8, ["label"]),
|
1721
|
-
l(
|
1766
|
+
l(p, {
|
1722
1767
|
label: e(a)("base.rules"),
|
1723
1768
|
prop: "rules"
|
1724
1769
|
}, {
|
1725
1770
|
default: n(() => [
|
1726
|
-
l(
|
1771
|
+
l(je, {
|
1727
1772
|
ref_key: "rulesCheck",
|
1728
1773
|
ref: t,
|
1729
|
-
modelValue:
|
1730
|
-
"onUpdate:modelValue":
|
1774
|
+
modelValue: c.rules,
|
1775
|
+
"onUpdate:modelValue": u[5] || (u[5] = (E) => c.rules = E),
|
1731
1776
|
disabled: e(R) || e(h)
|
1732
1777
|
}, null, 8, ["modelValue", "disabled"])
|
1733
1778
|
]),
|
@@ -1741,12 +1786,12 @@ const Ae = /* @__PURE__ */ z({
|
|
1741
1786
|
}, 8, ["modelValue", "title", "executing", "onSubmit"]);
|
1742
1787
|
};
|
1743
1788
|
}
|
1744
|
-
}),
|
1789
|
+
}), Pe = /* @__PURE__ */ $({
|
1745
1790
|
__name: "index",
|
1746
|
-
setup(
|
1747
|
-
const
|
1791
|
+
setup(x) {
|
1792
|
+
const C = {
|
1748
1793
|
keyword: ""
|
1749
|
-
},
|
1794
|
+
}, y = [
|
1750
1795
|
{
|
1751
1796
|
label: a("base.sort"),
|
1752
1797
|
prop: "sort",
|
@@ -1780,78 +1825,78 @@ const Ae = /* @__PURE__ */ z({
|
|
1780
1825
|
align: "center",
|
1781
1826
|
render: ({
|
1782
1827
|
row: V
|
1783
|
-
}) => l(
|
1828
|
+
}) => l(ae, {
|
1784
1829
|
onModify: () => h(V.key)
|
1785
1830
|
}, null)
|
1786
1831
|
}
|
1787
1832
|
], {
|
1788
|
-
requesting:
|
1789
|
-
} =
|
1833
|
+
requesting: M
|
1834
|
+
} = D(X), {
|
1790
1835
|
tableRef: t,
|
1791
|
-
infoRef:
|
1792
|
-
keyword:
|
1793
|
-
search:
|
1794
|
-
refresh:
|
1795
|
-
reset:
|
1836
|
+
infoRef: c,
|
1837
|
+
keyword: f,
|
1838
|
+
search: s,
|
1839
|
+
refresh: _,
|
1840
|
+
reset: w,
|
1796
1841
|
openInfo: R,
|
1797
1842
|
modifyInfo: h
|
1798
|
-
} = W(
|
1799
|
-
return (V,
|
1800
|
-
const
|
1801
|
-
return
|
1843
|
+
} = W(C);
|
1844
|
+
return (V, g) => {
|
1845
|
+
const O = d("el-input"), q = d("el-space"), i = d("el-card");
|
1846
|
+
return S(), L(i, {
|
1802
1847
|
class: "basic-card flex-full",
|
1803
1848
|
"body-class": "flex-1"
|
1804
1849
|
}, {
|
1805
|
-
header: n(() => [l(
|
1850
|
+
header: n(() => [l(q, {
|
1806
1851
|
class: "search-bar"
|
1807
1852
|
}, {
|
1808
|
-
default: n(() => [l(e(
|
1809
|
-
loading: e(
|
1810
|
-
onRefresh: e(
|
1811
|
-
}, null, 8, ["loading", "onRefresh"]), l(e(
|
1853
|
+
default: n(() => [l(e(K), {
|
1854
|
+
loading: e(M),
|
1855
|
+
onRefresh: e(_)
|
1856
|
+
}, null, 8, ["loading", "onRefresh"]), l(e(ne), {
|
1812
1857
|
onOpen: e(R)
|
1813
|
-
}, null, 8, ["onOpen"]), l(
|
1858
|
+
}, null, 8, ["onOpen"]), l(O, {
|
1814
1859
|
class: "basic-search-input",
|
1815
|
-
modelValue: e(
|
1816
|
-
"onUpdate:modelValue":
|
1860
|
+
modelValue: e(f).keyword,
|
1861
|
+
"onUpdate:modelValue": g[0] || (g[0] = (o) => e(f).keyword = o),
|
1817
1862
|
placeholder: e(a)("base.placeholder.keyword"),
|
1818
1863
|
clearable: "",
|
1819
|
-
onKeyup:
|
1820
|
-
onClear: e(
|
1821
|
-
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(e(
|
1822
|
-
onSearch: e(
|
1864
|
+
onKeyup: ee(e(s), ["enter"]),
|
1865
|
+
onClear: e(s)
|
1866
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(e(re), {
|
1867
|
+
onSearch: e(s)
|
1823
1868
|
}, null, 8, ["onSearch"])]),
|
1824
1869
|
_: 1
|
1825
1870
|
})]),
|
1826
|
-
default: n(() => [l(e(
|
1871
|
+
default: n(() => [l(e(oe), {
|
1827
1872
|
ref_key: "tableRef",
|
1828
1873
|
ref: t,
|
1829
1874
|
size: "small",
|
1830
|
-
columns:
|
1831
|
-
url: e(X).urls[e(
|
1832
|
-
"search-param": e(
|
1875
|
+
columns: y,
|
1876
|
+
url: e(X).urls[e(te)],
|
1877
|
+
"search-param": e(f),
|
1833
1878
|
autoSearch: ""
|
1834
|
-
}, null, 8, ["url", "search-param"]), l(
|
1879
|
+
}, null, 8, ["url", "search-param"]), l(Be, {
|
1835
1880
|
ref_key: "infoRef",
|
1836
|
-
ref:
|
1837
|
-
onRefresh: e(
|
1881
|
+
ref: c,
|
1882
|
+
onRefresh: e(w)
|
1838
1883
|
}, null, 8, ["onRefresh"])]),
|
1839
1884
|
_: 1
|
1840
1885
|
});
|
1841
1886
|
};
|
1842
1887
|
}
|
1843
|
-
}),
|
1888
|
+
}), Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1844
1889
|
__proto__: null,
|
1845
|
-
default:
|
1846
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1847
|
-
install: (
|
1848
|
-
Reflect.ownKeys(
|
1890
|
+
default: Pe
|
1891
|
+
}, Symbol.toStringTag, { value: "Module" })), He = {
|
1892
|
+
install: (x, C) => {
|
1893
|
+
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
1894
|
},
|
1850
1895
|
version: "__VERSION__"
|
1851
|
-
},
|
1896
|
+
}, Ge = /* @__PURE__ */ Object.assign({ "./views/admin/index.vue": Me, "./views/language/index.vue": Ae, "./views/menu/index.vue": De, "./views/role/index.vue": Fe });
|
1852
1897
|
export {
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1898
|
+
Ie as MenusPage,
|
1899
|
+
Pe as RolesPage,
|
1900
|
+
Ge as basicModules,
|
1901
|
+
He as default
|
1857
1902
|
};
|