feat: 添加甘特图示例

This commit is contained in:
xiaoxian521
2024-03-20 19:35:07 +08:00
parent 2367eedc5d
commit 206df3828e
9 changed files with 237 additions and 20 deletions

View File

@@ -2,30 +2,32 @@
const home = 0, // 平台规定只有 home 路由的 rank 才能为 0 ,所以后端在返回 rank 的时候需要从非 0 开始
vueflow = 1,
components = 2,
able = 3,
table = 4,
list = 5,
result = 6,
error = 7,
frame = 8,
nested = 9,
permission = 10,
system = 11,
monitor = 12,
tabs = 13,
about = 14,
editor = 15,
flowchart = 16,
formdesign = 17,
board = 18,
ppt = 19,
guide = 20,
menuoverflow = 21;
ganttastic = 2,
components = 3,
able = 4,
table = 5,
list = 6,
result = 7,
error = 8,
frame = 9,
nested = 10,
permission = 11,
system = 12,
monitor = 13,
tabs = 14,
about = 15,
editor = 16,
flowchart = 17,
formdesign = 18,
board = 19,
ppt = 20,
guide = 21,
menuoverflow = 22;
export {
home,
vueflow,
ganttastic,
components,
able,
table,

View File

@@ -0,0 +1,23 @@
import { $t } from "@/plugins/i18n";
import { ganttastic } from "@/router/enums";
export default {
path: "/ganttastic",
redirect: "/ganttastic/index",
meta: {
icon: "ri:bar-chart-horizontal-line",
title: $t("menus.hsGanttastic"),
rank: ganttastic
},
children: [
{
path: "/ganttastic/index",
name: "Ganttastic",
component: () => import("@/views/ganttastic/index.vue"),
meta: {
title: $t("menus.hsGanttastic"),
extraIcon: "IF-pure-iconfont-new svg"
}
}
]
} satisfies RouteConfigsTable;