xto-fronted 0.6.3 → 0.8.0
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/{index-DydABgae.js → index-D73_-C9m.js} +13 -13
- package/dist/index-DBjV4kzh.js +249 -0
- package/dist/{index-IOKG7Gwo.js → index-DJ1oHe08.js} +973 -918
- package/dist/{index-BKO6Hzba.js → index-D_TGEwDg.js} +192 -140
- package/dist/{index-BZSZ3bx2.js → index-DauAWAHG.js} +28 -28
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +9 -9
- package/src/App.vue +4 -4
- package/src/assets/styles/_dark.scss +176 -176
- package/src/assets/styles/_reset.scss +8 -8
- package/src/assets/styles/_root.scss +131 -125
- package/src/assets/styles/_variables.scss +17 -17
- package/src/assets/styles/index.scss +39 -39
- package/src/components/Layout/Footer.vue +1 -1
- package/src/components/Layout/Header.vue +59 -60
- package/src/components/Layout/MixTopMenu.vue +42 -43
- package/src/components/Layout/Sidebar.vue +8 -8
- package/src/components/Layout/SidebarMenuItem.vue +2 -2
- package/src/components/Layout/Tabs.vue +6 -6
- package/src/components/Layout/TopMenu.vue +42 -43
- package/src/components/Layout/index.vue +4 -4
- package/src/stores/app.ts +26 -2
- package/src/style.scss +2 -2
- package/src/views/dashboard/index.vue +125 -104
- package/src/views/error/403.vue +13 -13
- package/src/views/error/404.vue +14 -14
- package/src/views/login/index.vue +21 -54
- package/src/views/system/menu/index.vue +30 -30
- package/src/views/system/role/index.vue +20 -20
- package/src/views/system/user/index.vue +23 -23
- package/vite.config.ts +4 -1
- package/dist/index-BXHwCe22.js +0 -189
|
@@ -1,12 +1,40 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Form as
|
|
1
|
+
import { defineComponent as $, ref as V, computed as j, reactive as F, onMounted as H, openBlock as p, createElementBlock as c, createElementVNode as e, createVNode as o, unref as s, withCtx as a, createTextVNode as v, toDisplayString as i, Fragment as x, renderList as U, createCommentVNode as O } from "vue";
|
|
2
|
+
import { Form as Z, FormItem as m, Input as h, Select as q, InputNumber as Y, Switch as w } from "@xto/form";
|
|
3
3
|
import { Tag as E } from "@xto/data";
|
|
4
|
-
import { Modal as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { S as r, M as
|
|
7
|
-
const
|
|
4
|
+
import { Modal as G, Message as J } from "@xto/feedback";
|
|
5
|
+
import { Button as y, Space as C } from "@xto/base";
|
|
6
|
+
import { S as r, M as f, b as K, _ as P } from "./index-DJ1oHe08.js";
|
|
7
|
+
const Q = { class: "menu-page" }, W = { class: "table-section" }, X = { class: "table-toolbar" }, ee = { class: "toolbar-left" }, te = { class: "toolbar-right" }, se = { class: "table-count" }, le = { class: "table-wrapper" }, oe = { class: "data-table" }, ae = { key: 0 }, ne = { key: 1 }, de = { class: "data-row tree-row--level-0" }, ie = { class: "col-name" }, re = { class: "menu-info" }, ue = { class: "menu-icon-wrapper" }, pe = {
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
fill: "none",
|
|
10
|
+
stroke: "currentColor",
|
|
11
|
+
"stroke-width": "1.8",
|
|
12
|
+
"stroke-linecap": "round",
|
|
13
|
+
"stroke-linejoin": "round"
|
|
14
|
+
}, ce = ["d"], me = ["onClick"], fe = { class: "col-icon" }, ve = { class: "icon-text" }, _e = {
|
|
15
|
+
viewBox: "0 0 24 24",
|
|
16
|
+
fill: "none",
|
|
17
|
+
stroke: "currentColor",
|
|
18
|
+
"stroke-width": "1.8",
|
|
19
|
+
"stroke-linecap": "round",
|
|
20
|
+
"stroke-linejoin": "round"
|
|
21
|
+
}, he = ["d"], ye = { class: "col-path" }, ke = { class: "path-code" }, ge = { class: "col-type" }, be = { class: "col-sort" }, Ve = { class: "sort-badge" }, Ee = { class: "col-status" }, Me = { class: "col-actions" }, xe = { class: "col-name" }, we = { class: "menu-info" }, Ce = { class: "menu-icon-wrapper" }, Ae = {
|
|
22
|
+
viewBox: "0 0 24 24",
|
|
23
|
+
fill: "none",
|
|
24
|
+
stroke: "currentColor",
|
|
25
|
+
"stroke-width": "1.8",
|
|
26
|
+
"stroke-linecap": "round",
|
|
27
|
+
"stroke-linejoin": "round"
|
|
28
|
+
}, Be = ["d"], Ne = ["onClick"], De = { class: "col-icon" }, Le = { class: "icon-text" }, Ue = {
|
|
29
|
+
viewBox: "0 0 24 24",
|
|
30
|
+
fill: "none",
|
|
31
|
+
stroke: "currentColor",
|
|
32
|
+
"stroke-width": "1.8",
|
|
33
|
+
"stroke-linecap": "round",
|
|
34
|
+
"stroke-linejoin": "round"
|
|
35
|
+
}, Ie = ["d"], Te = { class: "col-path" }, ze = { class: "path-code" }, Se = { class: "col-type" }, Re = { class: "col-sort" }, $e = { class: "sort-badge" }, je = { class: "col-status" }, Fe = { class: "col-actions" }, He = { class: "form-grid" }, Oe = { class: "status-field" }, Ze = { class: "status-label" }, qe = { class: "status-field" }, Ye = { class: "status-label" }, Ge = { class: "status-field" }, Je = { class: "status-label" }, Ke = /* @__PURE__ */ $({
|
|
8
36
|
__name: "index",
|
|
9
|
-
setup(
|
|
37
|
+
setup(Pe) {
|
|
10
38
|
const I = [
|
|
11
39
|
{
|
|
12
40
|
id: 1,
|
|
@@ -17,7 +45,7 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
17
45
|
redirect: "",
|
|
18
46
|
icon: "dashboard",
|
|
19
47
|
title: "仪表盘",
|
|
20
|
-
type:
|
|
48
|
+
type: f.MENU,
|
|
21
49
|
sort: 1,
|
|
22
50
|
status: r.ENABLED,
|
|
23
51
|
hidden: !1,
|
|
@@ -32,7 +60,7 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
32
60
|
redirect: "/system/user",
|
|
33
61
|
icon: "setting",
|
|
34
62
|
title: "系统管理",
|
|
35
|
-
type:
|
|
63
|
+
type: f.DIRECTORY,
|
|
36
64
|
sort: 2,
|
|
37
65
|
status: r.ENABLED,
|
|
38
66
|
hidden: !1,
|
|
@@ -47,7 +75,7 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
47
75
|
redirect: "",
|
|
48
76
|
icon: "user",
|
|
49
77
|
title: "用户管理",
|
|
50
|
-
type:
|
|
78
|
+
type: f.MENU,
|
|
51
79
|
sort: 1,
|
|
52
80
|
status: r.ENABLED,
|
|
53
81
|
hidden: !1,
|
|
@@ -62,7 +90,7 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
62
90
|
redirect: "",
|
|
63
91
|
icon: "role",
|
|
64
92
|
title: "角色管理",
|
|
65
|
-
type:
|
|
93
|
+
type: f.MENU,
|
|
66
94
|
sort: 2,
|
|
67
95
|
status: r.ENABLED,
|
|
68
96
|
hidden: !1,
|
|
@@ -77,7 +105,7 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
77
105
|
redirect: "",
|
|
78
106
|
icon: "menu",
|
|
79
107
|
title: "菜单管理",
|
|
80
|
-
type:
|
|
108
|
+
type: f.MENU,
|
|
81
109
|
sort: 3,
|
|
82
110
|
status: r.ENABLED,
|
|
83
111
|
hidden: !1,
|
|
@@ -85,7 +113,7 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
85
113
|
}
|
|
86
114
|
]
|
|
87
115
|
}
|
|
88
|
-
],
|
|
116
|
+
], M = V(!1), k = V([]), _ = V(!1), T = j(() => n.id ? "编辑菜单" : "新增菜单"), n = F({
|
|
89
117
|
id: 0,
|
|
90
118
|
parentId: null,
|
|
91
119
|
name: "",
|
|
@@ -94,12 +122,12 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
94
122
|
redirect: "",
|
|
95
123
|
icon: "",
|
|
96
124
|
title: "",
|
|
97
|
-
type:
|
|
125
|
+
type: f.MENU,
|
|
98
126
|
sort: 0,
|
|
99
127
|
status: r.ENABLED,
|
|
100
128
|
hidden: !1,
|
|
101
129
|
keepAlive: !0
|
|
102
|
-
}),
|
|
130
|
+
}), z = {
|
|
103
131
|
name: [
|
|
104
132
|
{ required: !0, message: "请输入菜单名称", trigger: "blur" }
|
|
105
133
|
],
|
|
@@ -109,11 +137,11 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
109
137
|
title: [
|
|
110
138
|
{ required: !0, message: "请输入菜单标题", trigger: "blur" }
|
|
111
139
|
]
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
k.value = I,
|
|
140
|
+
}, A = V(), B = () => {
|
|
141
|
+
M.value = !0, setTimeout(() => {
|
|
142
|
+
k.value = I, M.value = !1;
|
|
115
143
|
}, 300);
|
|
116
|
-
},
|
|
144
|
+
}, N = (u = null) => {
|
|
117
145
|
Object.assign(n, {
|
|
118
146
|
id: 0,
|
|
119
147
|
parentId: u,
|
|
@@ -123,56 +151,56 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
123
151
|
redirect: "",
|
|
124
152
|
icon: "",
|
|
125
153
|
title: "",
|
|
126
|
-
type:
|
|
154
|
+
type: f.MENU,
|
|
127
155
|
sort: 0,
|
|
128
156
|
status: r.ENABLED,
|
|
129
157
|
hidden: !1,
|
|
130
158
|
keepAlive: !0
|
|
131
|
-
}),
|
|
132
|
-
},
|
|
133
|
-
Object.assign(n, u),
|
|
134
|
-
},
|
|
159
|
+
}), _.value = !0;
|
|
160
|
+
}, g = (u) => {
|
|
161
|
+
Object.assign(n, u), _.value = !0;
|
|
162
|
+
}, S = async () => {
|
|
135
163
|
var u;
|
|
136
164
|
try {
|
|
137
|
-
await ((u =
|
|
165
|
+
await ((u = A.value) == null ? void 0 : u.validate()), J.success(n.id ? "编辑成功" : "新增成功"), _.value = !1, B();
|
|
138
166
|
} catch (t) {
|
|
139
167
|
console.error(t);
|
|
140
168
|
}
|
|
141
|
-
},
|
|
142
|
-
dashboard: "
|
|
143
|
-
system: "
|
|
144
|
-
user: "
|
|
145
|
-
role: "
|
|
146
|
-
menu: "
|
|
147
|
-
setting: "
|
|
148
|
-
})[u || ""] || "
|
|
169
|
+
}, b = (u) => ({
|
|
170
|
+
dashboard: "M4 5h16v11H4zM9 20h6M12 16v4",
|
|
171
|
+
system: "M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3c0-.4 0-.8-.1-1.2l2-1.6-2-3.4-2.4 1a7.6 7.6 0 0 0-2-1.2L14.5 3h-5l-.4 2.6a7.6 7.6 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.6 7.6 0 0 0 2 1.2l.4 2.6h5l.4-2.6a7.6 7.6 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6c.1-.4.1-.8.1-1.2Z",
|
|
172
|
+
user: "M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-7 8a7 7 0 0 1 14 0",
|
|
173
|
+
role: "M8 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm8 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM2 19a6 6 0 0 1 12 0m2-6a6 6 0 0 1 6 6",
|
|
174
|
+
menu: "M4 6h16M4 12h16M4 18h10",
|
|
175
|
+
setting: "M4 6h16M4 12h16M4 18h16"
|
|
176
|
+
})[u || ""] || "M4 6h16M4 12h16M4 18h10", D = (u) => {
|
|
149
177
|
switch (u) {
|
|
150
|
-
case
|
|
178
|
+
case f.DIRECTORY:
|
|
151
179
|
return "primary";
|
|
152
|
-
case
|
|
180
|
+
case f.MENU:
|
|
153
181
|
return "success";
|
|
154
182
|
default:
|
|
155
183
|
return "warning";
|
|
156
184
|
}
|
|
157
185
|
}, L = (u) => {
|
|
158
186
|
switch (u) {
|
|
159
|
-
case
|
|
187
|
+
case f.DIRECTORY:
|
|
160
188
|
return "目录";
|
|
161
|
-
case
|
|
189
|
+
case f.MENU:
|
|
162
190
|
return "菜单";
|
|
163
191
|
default:
|
|
164
192
|
return "按钮";
|
|
165
193
|
}
|
|
166
194
|
};
|
|
167
195
|
return H(() => {
|
|
168
|
-
|
|
169
|
-
}), (u, t) => (
|
|
170
|
-
e("div",
|
|
171
|
-
e("div",
|
|
196
|
+
B();
|
|
197
|
+
}), (u, t) => (p(), c("div", Q, [
|
|
198
|
+
e("div", W, [
|
|
199
|
+
e("div", X, [
|
|
172
200
|
e("div", ee, [
|
|
173
|
-
o(s(
|
|
201
|
+
o(s(y), {
|
|
174
202
|
type: "primary",
|
|
175
|
-
onClick: t[0] || (t[0] = (l) =>
|
|
203
|
+
onClick: t[0] || (t[0] = (l) => N())
|
|
176
204
|
}, {
|
|
177
205
|
icon: a(() => [...t[14] || (t[14] = [
|
|
178
206
|
e("svg", {
|
|
@@ -196,13 +224,13 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
196
224
|
], -1)
|
|
197
225
|
])]),
|
|
198
226
|
default: a(() => [
|
|
199
|
-
t[15] || (t[15] =
|
|
227
|
+
t[15] || (t[15] = v(" 新增菜单 ", -1))
|
|
200
228
|
]),
|
|
201
229
|
_: 1
|
|
202
230
|
})
|
|
203
231
|
]),
|
|
204
232
|
e("div", te, [
|
|
205
|
-
e("span", se, "共 " +
|
|
233
|
+
e("span", se, "共 " + i(k.value.length) + " 个菜单", 1)
|
|
206
234
|
])
|
|
207
235
|
]),
|
|
208
236
|
e("div", le, [
|
|
@@ -219,7 +247,7 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
219
247
|
])
|
|
220
248
|
], -1)),
|
|
221
249
|
e("tbody", null, [
|
|
222
|
-
|
|
250
|
+
M.value ? (p(), c("tr", ae, [...t[16] || (t[16] = [
|
|
223
251
|
e("td", {
|
|
224
252
|
colspan: "7",
|
|
225
253
|
class: "loading-cell"
|
|
@@ -229,7 +257,7 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
229
257
|
e("span", null, "加载中...")
|
|
230
258
|
])
|
|
231
259
|
], -1)
|
|
232
|
-
])])) : k.value.length === 0 ? (
|
|
260
|
+
])])) : k.value.length === 0 ? (p(), c("tr", ne, [...t[17] || (t[17] = [
|
|
233
261
|
e("td", {
|
|
234
262
|
colspan: "7",
|
|
235
263
|
class: "empty-cell"
|
|
@@ -248,13 +276,13 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
248
276
|
ry: "7"
|
|
249
277
|
}),
|
|
250
278
|
e("g", {
|
|
251
|
-
stroke: "var(--xto-color-text-placeholder, #
|
|
279
|
+
stroke: "var(--xto-color-text-placeholder, #A9AEB8)",
|
|
252
280
|
"stroke-width": "2"
|
|
253
281
|
}, [
|
|
254
282
|
e("path", { d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" }),
|
|
255
283
|
e("path", {
|
|
256
284
|
d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35H11.95C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
|
|
257
|
-
fill: "var(--xto-fill-color, #
|
|
285
|
+
fill: "var(--xto-fill-color, #F2F3F5)"
|
|
258
286
|
})
|
|
259
287
|
])
|
|
260
288
|
])
|
|
@@ -262,58 +290,70 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
262
290
|
e("span", null, "暂无数据")
|
|
263
291
|
])
|
|
264
292
|
], -1)
|
|
265
|
-
])])) : (
|
|
293
|
+
])])) : (p(!0), c(x, { key: 2 }, U(k.value, (l) => (p(), c(x, {
|
|
266
294
|
key: l.id
|
|
267
295
|
}, [
|
|
268
296
|
e("tr", de, [
|
|
269
297
|
e("td", ie, [
|
|
270
298
|
e("div", re, [
|
|
271
|
-
e("span", ue,
|
|
299
|
+
e("span", ue, [
|
|
300
|
+
(p(), c("svg", pe, [
|
|
301
|
+
e("path", {
|
|
302
|
+
d: b(l.icon)
|
|
303
|
+
}, null, 8, ce)
|
|
304
|
+
]))
|
|
305
|
+
]),
|
|
272
306
|
e("span", {
|
|
273
307
|
class: "menu-title",
|
|
274
|
-
onClick: (
|
|
275
|
-
},
|
|
308
|
+
onClick: (d) => g(l)
|
|
309
|
+
}, i(l.title), 9, me)
|
|
276
310
|
])
|
|
277
311
|
]),
|
|
278
|
-
e("td", ce, [
|
|
279
|
-
e("span", me, d(g(l.icon)), 1)
|
|
280
|
-
]),
|
|
281
312
|
e("td", fe, [
|
|
282
|
-
e("
|
|
313
|
+
e("span", ve, [
|
|
314
|
+
(p(), c("svg", _e, [
|
|
315
|
+
e("path", {
|
|
316
|
+
d: b(l.icon)
|
|
317
|
+
}, null, 8, he)
|
|
318
|
+
]))
|
|
319
|
+
])
|
|
283
320
|
]),
|
|
284
321
|
e("td", ye, [
|
|
322
|
+
e("code", ke, i(l.path), 1)
|
|
323
|
+
]),
|
|
324
|
+
e("td", ge, [
|
|
285
325
|
o(s(E), {
|
|
286
326
|
type: D(l.type),
|
|
287
327
|
size: "small"
|
|
288
328
|
}, {
|
|
289
329
|
default: a(() => [
|
|
290
|
-
|
|
330
|
+
v(i(L(l.type)), 1)
|
|
291
331
|
]),
|
|
292
332
|
_: 2
|
|
293
333
|
}, 1032, ["type"])
|
|
294
334
|
]),
|
|
295
|
-
e("td",
|
|
296
|
-
e("span",
|
|
335
|
+
e("td", be, [
|
|
336
|
+
e("span", Ve, i(l.sort), 1)
|
|
297
337
|
]),
|
|
298
|
-
e("td",
|
|
338
|
+
e("td", Ee, [
|
|
299
339
|
o(s(E), {
|
|
300
340
|
type: l.status === s(r).ENABLED ? "success" : "danger",
|
|
301
341
|
size: "small"
|
|
302
342
|
}, {
|
|
303
343
|
default: a(() => [
|
|
304
|
-
|
|
344
|
+
v(i(l.status === s(r).ENABLED ? "启用" : "禁用"), 1)
|
|
305
345
|
]),
|
|
306
346
|
_: 2
|
|
307
347
|
}, 1032, ["type"])
|
|
308
348
|
]),
|
|
309
|
-
e("td",
|
|
310
|
-
o(s(
|
|
349
|
+
e("td", Me, [
|
|
350
|
+
o(s(C), { class: "action-buttons" }, {
|
|
311
351
|
default: a(() => [
|
|
312
|
-
o(s(
|
|
352
|
+
o(s(y), {
|
|
313
353
|
type: "primary",
|
|
314
354
|
link: "",
|
|
315
355
|
size: "small",
|
|
316
|
-
onClick: (
|
|
356
|
+
onClick: (d) => N(l.id)
|
|
317
357
|
}, {
|
|
318
358
|
icon: a(() => [...t[18] || (t[18] = [
|
|
319
359
|
e("svg", {
|
|
@@ -337,15 +377,15 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
337
377
|
], -1)
|
|
338
378
|
])]),
|
|
339
379
|
default: a(() => [
|
|
340
|
-
t[19] || (t[19] =
|
|
380
|
+
t[19] || (t[19] = v(" 新增 ", -1))
|
|
341
381
|
]),
|
|
342
382
|
_: 1
|
|
343
383
|
}, 8, ["onClick"]),
|
|
344
|
-
o(s(
|
|
384
|
+
o(s(y), {
|
|
345
385
|
type: "primary",
|
|
346
386
|
link: "",
|
|
347
387
|
size: "small",
|
|
348
|
-
onClick: (
|
|
388
|
+
onClick: (d) => g(l)
|
|
349
389
|
}, {
|
|
350
390
|
icon: a(() => [...t[20] || (t[20] = [
|
|
351
391
|
e("svg", {
|
|
@@ -359,7 +399,7 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
359
399
|
], -1)
|
|
360
400
|
])]),
|
|
361
401
|
default: a(() => [
|
|
362
|
-
t[21] || (t[21] =
|
|
402
|
+
t[21] || (t[21] = v(" 编辑 ", -1))
|
|
363
403
|
]),
|
|
364
404
|
_: 1
|
|
365
405
|
}, 8, ["onClick"])
|
|
@@ -368,60 +408,72 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
368
408
|
}, 1024)
|
|
369
409
|
])
|
|
370
410
|
]),
|
|
371
|
-
l.children ? (
|
|
372
|
-
key:
|
|
411
|
+
l.children ? (p(!0), c(x, { key: 0 }, U(l.children, (d) => (p(), c("tr", {
|
|
412
|
+
key: d.id,
|
|
373
413
|
class: "data-row tree-row--level-1"
|
|
374
414
|
}, [
|
|
375
|
-
e("td",
|
|
376
|
-
e("div",
|
|
415
|
+
e("td", xe, [
|
|
416
|
+
e("div", we, [
|
|
377
417
|
t[22] || (t[22] = e("span", { class: "tree-indent" }, null, -1)),
|
|
378
418
|
t[23] || (t[23] = e("span", { class: "tree-line" }, null, -1)),
|
|
379
|
-
e("span",
|
|
419
|
+
e("span", Ce, [
|
|
420
|
+
(p(), c("svg", Ae, [
|
|
421
|
+
e("path", {
|
|
422
|
+
d: b(d.icon)
|
|
423
|
+
}, null, 8, Be)
|
|
424
|
+
]))
|
|
425
|
+
]),
|
|
380
426
|
e("span", {
|
|
381
427
|
class: "menu-title",
|
|
382
|
-
onClick: (R) =>
|
|
383
|
-
}, d
|
|
428
|
+
onClick: (R) => g(d)
|
|
429
|
+
}, i(d.title), 9, Ne)
|
|
384
430
|
])
|
|
385
431
|
]),
|
|
386
|
-
e("td",
|
|
387
|
-
e("span",
|
|
432
|
+
e("td", De, [
|
|
433
|
+
e("span", Le, [
|
|
434
|
+
(p(), c("svg", Ue, [
|
|
435
|
+
e("path", {
|
|
436
|
+
d: b(d.icon)
|
|
437
|
+
}, null, 8, Ie)
|
|
438
|
+
]))
|
|
439
|
+
])
|
|
388
440
|
]),
|
|
389
|
-
e("td",
|
|
390
|
-
e("code",
|
|
441
|
+
e("td", Te, [
|
|
442
|
+
e("code", ze, i(d.path), 1)
|
|
391
443
|
]),
|
|
392
|
-
e("td",
|
|
444
|
+
e("td", Se, [
|
|
393
445
|
o(s(E), {
|
|
394
|
-
type: D(
|
|
446
|
+
type: D(d.type),
|
|
395
447
|
size: "small"
|
|
396
448
|
}, {
|
|
397
449
|
default: a(() => [
|
|
398
|
-
|
|
450
|
+
v(i(L(d.type)), 1)
|
|
399
451
|
]),
|
|
400
452
|
_: 2
|
|
401
453
|
}, 1032, ["type"])
|
|
402
454
|
]),
|
|
403
|
-
e("td",
|
|
404
|
-
e("span",
|
|
455
|
+
e("td", Re, [
|
|
456
|
+
e("span", $e, i(d.sort), 1)
|
|
405
457
|
]),
|
|
406
|
-
e("td",
|
|
458
|
+
e("td", je, [
|
|
407
459
|
o(s(E), {
|
|
408
|
-
type:
|
|
460
|
+
type: d.status === s(r).ENABLED ? "success" : "danger",
|
|
409
461
|
size: "small"
|
|
410
462
|
}, {
|
|
411
463
|
default: a(() => [
|
|
412
|
-
|
|
464
|
+
v(i(d.status === s(r).ENABLED ? "启用" : "禁用"), 1)
|
|
413
465
|
]),
|
|
414
466
|
_: 2
|
|
415
467
|
}, 1032, ["type"])
|
|
416
468
|
]),
|
|
417
|
-
e("td",
|
|
418
|
-
o(s(
|
|
469
|
+
e("td", Fe, [
|
|
470
|
+
o(s(C), { class: "action-buttons" }, {
|
|
419
471
|
default: a(() => [
|
|
420
|
-
o(s(
|
|
472
|
+
o(s(y), {
|
|
421
473
|
type: "primary",
|
|
422
474
|
link: "",
|
|
423
475
|
size: "small",
|
|
424
|
-
onClick: (R) =>
|
|
476
|
+
onClick: (R) => g(d)
|
|
425
477
|
}, {
|
|
426
478
|
icon: a(() => [...t[24] || (t[24] = [
|
|
427
479
|
e("svg", {
|
|
@@ -435,7 +487,7 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
435
487
|
], -1)
|
|
436
488
|
])]),
|
|
437
489
|
default: a(() => [
|
|
438
|
-
t[25] || (t[25] =
|
|
490
|
+
t[25] || (t[25] = v(" 编辑 ", -1))
|
|
439
491
|
]),
|
|
440
492
|
_: 1
|
|
441
493
|
}, 8, ["onClick"])
|
|
@@ -443,36 +495,36 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
443
495
|
_: 2
|
|
444
496
|
}, 1024)
|
|
445
497
|
])
|
|
446
|
-
]))), 128)) :
|
|
498
|
+
]))), 128)) : O("", !0)
|
|
447
499
|
], 64))), 128))
|
|
448
500
|
])
|
|
449
501
|
])
|
|
450
502
|
])
|
|
451
503
|
]),
|
|
452
|
-
o(s(
|
|
453
|
-
modelValue:
|
|
454
|
-
"onUpdate:modelValue": t[13] || (t[13] = (l) =>
|
|
504
|
+
o(s(G), {
|
|
505
|
+
modelValue: _.value,
|
|
506
|
+
"onUpdate:modelValue": t[13] || (t[13] = (l) => _.value = l),
|
|
455
507
|
title: T.value,
|
|
456
508
|
width: "600px",
|
|
457
509
|
class: "menu-modal"
|
|
458
510
|
}, {
|
|
459
511
|
footer: a(() => [
|
|
460
|
-
o(s(
|
|
512
|
+
o(s(C), null, {
|
|
461
513
|
default: a(() => [
|
|
462
|
-
o(s(
|
|
463
|
-
onClick: t[12] || (t[12] = (l) =>
|
|
514
|
+
o(s(y), {
|
|
515
|
+
onClick: t[12] || (t[12] = (l) => _.value = !1)
|
|
464
516
|
}, {
|
|
465
517
|
default: a(() => [...t[27] || (t[27] = [
|
|
466
|
-
|
|
518
|
+
v("取消", -1)
|
|
467
519
|
])]),
|
|
468
520
|
_: 1
|
|
469
521
|
}),
|
|
470
|
-
o(s(
|
|
522
|
+
o(s(y), {
|
|
471
523
|
type: "primary",
|
|
472
|
-
onClick:
|
|
524
|
+
onClick: S
|
|
473
525
|
}, {
|
|
474
526
|
default: a(() => [...t[28] || (t[28] = [
|
|
475
|
-
|
|
527
|
+
v("确定", -1)
|
|
476
528
|
])]),
|
|
477
529
|
_: 1
|
|
478
530
|
})
|
|
@@ -481,22 +533,22 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
481
533
|
})
|
|
482
534
|
]),
|
|
483
535
|
default: a(() => [
|
|
484
|
-
o(s(
|
|
536
|
+
o(s(Z), {
|
|
485
537
|
ref_key: "formRef",
|
|
486
|
-
ref:
|
|
538
|
+
ref: A,
|
|
487
539
|
model: n,
|
|
488
|
-
rules:
|
|
540
|
+
rules: z,
|
|
489
541
|
"label-width": "80px",
|
|
490
542
|
class: "menu-form"
|
|
491
543
|
}, {
|
|
492
544
|
default: a(() => [
|
|
493
|
-
e("div",
|
|
494
|
-
o(s(
|
|
545
|
+
e("div", He, [
|
|
546
|
+
o(s(m), {
|
|
495
547
|
label: "上级菜单",
|
|
496
548
|
class: "form-item-full"
|
|
497
549
|
}, {
|
|
498
550
|
default: a(() => [
|
|
499
|
-
o(s(
|
|
551
|
+
o(s(h), {
|
|
500
552
|
modelValue: n.parentId,
|
|
501
553
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => n.parentId = l),
|
|
502
554
|
placeholder: "上级菜单ID",
|
|
@@ -505,19 +557,19 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
505
557
|
]),
|
|
506
558
|
_: 1
|
|
507
559
|
}),
|
|
508
|
-
o(s(
|
|
560
|
+
o(s(m), { label: "菜单类型" }, {
|
|
509
561
|
default: a(() => [
|
|
510
|
-
o(s(
|
|
562
|
+
o(s(q), {
|
|
511
563
|
modelValue: n.type,
|
|
512
564
|
"onUpdate:modelValue": t[2] || (t[2] = (l) => n.type = l),
|
|
513
|
-
options: s(
|
|
565
|
+
options: s(K)
|
|
514
566
|
}, null, 8, ["modelValue", "options"])
|
|
515
567
|
]),
|
|
516
568
|
_: 1
|
|
517
569
|
}),
|
|
518
|
-
o(s(
|
|
570
|
+
o(s(m), { label: "排序" }, {
|
|
519
571
|
default: a(() => [
|
|
520
|
-
o(s(
|
|
572
|
+
o(s(Y), {
|
|
521
573
|
modelValue: n.sort,
|
|
522
574
|
"onUpdate:modelValue": t[3] || (t[3] = (l) => n.sort = l),
|
|
523
575
|
min: 0
|
|
@@ -525,12 +577,12 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
525
577
|
]),
|
|
526
578
|
_: 1
|
|
527
579
|
}),
|
|
528
|
-
o(s(
|
|
580
|
+
o(s(m), {
|
|
529
581
|
label: "菜单名称",
|
|
530
582
|
prop: "name"
|
|
531
583
|
}, {
|
|
532
584
|
default: a(() => [
|
|
533
|
-
o(s(
|
|
585
|
+
o(s(h), {
|
|
534
586
|
modelValue: n.name,
|
|
535
587
|
"onUpdate:modelValue": t[4] || (t[4] = (l) => n.name = l),
|
|
536
588
|
placeholder: "请输入菜单名称(路由name)"
|
|
@@ -538,12 +590,12 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
538
590
|
]),
|
|
539
591
|
_: 1
|
|
540
592
|
}),
|
|
541
|
-
o(s(
|
|
593
|
+
o(s(m), {
|
|
542
594
|
label: "菜单标题",
|
|
543
595
|
prop: "title"
|
|
544
596
|
}, {
|
|
545
597
|
default: a(() => [
|
|
546
|
-
o(s(
|
|
598
|
+
o(s(h), {
|
|
547
599
|
modelValue: n.title,
|
|
548
600
|
"onUpdate:modelValue": t[5] || (t[5] = (l) => n.title = l),
|
|
549
601
|
placeholder: "请输入菜单标题"
|
|
@@ -551,13 +603,13 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
551
603
|
]),
|
|
552
604
|
_: 1
|
|
553
605
|
}),
|
|
554
|
-
o(s(
|
|
606
|
+
o(s(m), {
|
|
555
607
|
label: "路由路径",
|
|
556
608
|
prop: "path",
|
|
557
609
|
class: "form-item-full"
|
|
558
610
|
}, {
|
|
559
611
|
default: a(() => [
|
|
560
|
-
o(s(
|
|
612
|
+
o(s(h), {
|
|
561
613
|
modelValue: n.path,
|
|
562
614
|
"onUpdate:modelValue": t[6] || (t[6] = (l) => n.path = l),
|
|
563
615
|
placeholder: "请输入路由路径"
|
|
@@ -565,12 +617,12 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
565
617
|
]),
|
|
566
618
|
_: 1
|
|
567
619
|
}),
|
|
568
|
-
o(s(
|
|
620
|
+
o(s(m), {
|
|
569
621
|
label: "组件路径",
|
|
570
622
|
class: "form-item-full"
|
|
571
623
|
}, {
|
|
572
624
|
default: a(() => [
|
|
573
|
-
o(s(
|
|
625
|
+
o(s(h), {
|
|
574
626
|
modelValue: n.component,
|
|
575
627
|
"onUpdate:modelValue": t[7] || (t[7] = (l) => n.component = l),
|
|
576
628
|
placeholder: "请输入组件路径"
|
|
@@ -578,9 +630,9 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
578
630
|
]),
|
|
579
631
|
_: 1
|
|
580
632
|
}),
|
|
581
|
-
o(s(
|
|
633
|
+
o(s(m), { label: "图标" }, {
|
|
582
634
|
default: a(() => [
|
|
583
|
-
o(s(
|
|
635
|
+
o(s(h), {
|
|
584
636
|
modelValue: n.icon,
|
|
585
637
|
"onUpdate:modelValue": t[8] || (t[8] = (l) => n.icon = l),
|
|
586
638
|
placeholder: "请输入图标名称"
|
|
@@ -588,40 +640,40 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
588
640
|
]),
|
|
589
641
|
_: 1
|
|
590
642
|
}),
|
|
591
|
-
o(s(
|
|
643
|
+
o(s(m), { label: "状态" }, {
|
|
592
644
|
default: a(() => [
|
|
593
|
-
e("div",
|
|
594
|
-
o(s(
|
|
645
|
+
e("div", Oe, [
|
|
646
|
+
o(s(w), {
|
|
595
647
|
modelValue: n.status,
|
|
596
648
|
"onUpdate:modelValue": t[9] || (t[9] = (l) => n.status = l),
|
|
597
649
|
"active-value": s(r).ENABLED,
|
|
598
650
|
"inactive-value": s(r).DISABLED
|
|
599
651
|
}, null, 8, ["modelValue", "active-value", "inactive-value"]),
|
|
600
|
-
e("span",
|
|
652
|
+
e("span", Ze, i(n.status === s(r).ENABLED ? "启用" : "禁用"), 1)
|
|
601
653
|
])
|
|
602
654
|
]),
|
|
603
655
|
_: 1
|
|
604
656
|
}),
|
|
605
|
-
o(s(
|
|
657
|
+
o(s(m), { label: "隐藏" }, {
|
|
606
658
|
default: a(() => [
|
|
607
|
-
e("div",
|
|
608
|
-
o(s(
|
|
659
|
+
e("div", qe, [
|
|
660
|
+
o(s(w), {
|
|
609
661
|
modelValue: n.hidden,
|
|
610
662
|
"onUpdate:modelValue": t[10] || (t[10] = (l) => n.hidden = l)
|
|
611
663
|
}, null, 8, ["modelValue"]),
|
|
612
|
-
e("span",
|
|
664
|
+
e("span", Ye, i(n.hidden ? "隐藏" : "显示"), 1)
|
|
613
665
|
])
|
|
614
666
|
]),
|
|
615
667
|
_: 1
|
|
616
668
|
}),
|
|
617
|
-
o(s(
|
|
669
|
+
o(s(m), { label: "缓存" }, {
|
|
618
670
|
default: a(() => [
|
|
619
|
-
e("div",
|
|
620
|
-
o(s(
|
|
671
|
+
e("div", Ge, [
|
|
672
|
+
o(s(w), {
|
|
621
673
|
modelValue: n.keepAlive,
|
|
622
674
|
"onUpdate:modelValue": t[11] || (t[11] = (l) => n.keepAlive = l)
|
|
623
675
|
}, null, 8, ["modelValue"]),
|
|
624
|
-
e("span",
|
|
676
|
+
e("span", Je, i(n.keepAlive ? "开启" : "关闭"), 1)
|
|
625
677
|
])
|
|
626
678
|
]),
|
|
627
679
|
_: 1
|
|
@@ -635,7 +687,7 @@ const W = { class: "menu-page" }, X = { class: "table-section" }, Z = { class: "
|
|
|
635
687
|
}, 8, ["modelValue", "title"])
|
|
636
688
|
]));
|
|
637
689
|
}
|
|
638
|
-
}),
|
|
690
|
+
}), lt = /* @__PURE__ */ P(Ke, [["__scopeId", "data-v-f29bada8"]]);
|
|
639
691
|
export {
|
|
640
|
-
|
|
692
|
+
lt as default
|
|
641
693
|
};
|