|
@@ -1,55 +1,71 @@
|
|
|
-import Layout from "@/layout";
|
|
|
+import Layout from '@/layout'
|
|
|
|
|
|
-const HomeRoutes = {
|
|
|
- path: "/",
|
|
|
- component: Layout,
|
|
|
- redirect: "/dashboard",
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: "dashboard",
|
|
|
- name: "Dashboard",
|
|
|
- redirect: "/homeOut",
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent("router-view")),
|
|
|
+const HomeRoutes = [
|
|
|
+ {
|
|
|
+ path: '/',
|
|
|
+ component: Layout,
|
|
|
+ hidden: true,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '',
|
|
|
+ name: 'HomePage',
|
|
|
+ component: () => import('@/views/HomePage/index.vue'),
|
|
|
},
|
|
|
- //using el svg icon, the elSvgIcon first when at the same time using elSvgIcon and icon
|
|
|
- meta: {
|
|
|
- title: "决策管理驾驶舱",
|
|
|
- elSvgIcon: "Histogram",
|
|
|
- roles: ["decision_management_cockpit_menu"],
|
|
|
- },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: "/homein",
|
|
|
- name: "Homein",
|
|
|
- component: () => import("@/views/dashboard/index.vue"),
|
|
|
- meta: { title: "国内进港", roles: ["domestic_arrival_page"] },
|
|
|
- },
|
|
|
- {
|
|
|
- path: "/homeOut",
|
|
|
- name: "HomeOut",
|
|
|
- component: () => import("@/views/dashboard/indexHomeOut.vue"),
|
|
|
- meta: {
|
|
|
- title: "国内出港",
|
|
|
- roles: ["domestic_departure_page"],
|
|
|
- },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/dashboard',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/dashboard',
|
|
|
+ name: 'Dashboard',
|
|
|
+ redirect: '/dashboard/homeOut',
|
|
|
+ component: {
|
|
|
+ render: () => h(resolveComponent('router-view')),
|
|
|
},
|
|
|
- {
|
|
|
- path: "/indexIn",
|
|
|
- name: "IndexIn",
|
|
|
- component: () => import("@/views/dashboard/indexIn.vue"),
|
|
|
- meta: { title: "国际进港", roles: ["international_arrival_page"] },
|
|
|
+ //using el svg icon, the elSvgIcon first when at the same time using elSvgIcon and icon
|
|
|
+ meta: {
|
|
|
+ title: '决策管理驾驶舱',
|
|
|
+ elSvgIcon: 'Histogram',
|
|
|
+ roles: ['decision_management_cockpit_menu'],
|
|
|
},
|
|
|
- {
|
|
|
- path: "/indexOut",
|
|
|
- name: "IndexOut",
|
|
|
- component: () => import("@/views/dashboard/indexOut.vue"),
|
|
|
- meta: { title: "国际出港", roles: ["international_departure_page"] },
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- ],
|
|
|
-};
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/dashboard/homein',
|
|
|
+ name: 'Homein',
|
|
|
+ component: () => import('@/views/dashboard/index.vue'),
|
|
|
+ meta: { title: '国内进港', roles: ['domestic_arrival_page'] },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/dashboard/homeOut',
|
|
|
+ name: 'HomeOut',
|
|
|
+ component: () => import('@/views/dashboard/indexHomeOut.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '国内出港',
|
|
|
+ roles: ['domestic_departure_page'],
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/dashboard/indexIn',
|
|
|
+ name: 'IndexIn',
|
|
|
+ component: () => import('@/views/dashboard/indexIn.vue'),
|
|
|
+ meta: { title: '国际进港', roles: ['international_arrival_page'] },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/dashboard/indexOut',
|
|
|
+ name: 'IndexOut',
|
|
|
+ component: () => import('@/views/dashboard/indexOut.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '国际出港',
|
|
|
+ roles: ['international_departure_page'],
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+]
|
|
|
|
|
|
// const DemoRoutes = {
|
|
|
// path: '/example',
|
|
@@ -79,4 +95,4 @@ const HomeRoutes = {
|
|
|
// ]
|
|
|
// }
|
|
|
|
|
|
-export default [HomeRoutes];
|
|
|
+export default HomeRoutes
|