import { createRouter, createWebHashHistory, createWebHistory, } from "vue-router"; export const routes = [ { path: "/", redirect: "HJtable", hidden: true, aaa: "", bbb: "", }, // 登录 { path: "/login", name: "Login", hidden: true, component: () => import("../views/account/Login.vue"), }, // 后台首页 { path: "/GXtable", name: "GXtable", meta: { title: "罐线生产情况报表", icon: "GXtable", }, component: () => import("../layout/Index.vue"), children: [ { path: "/GXtable", name: "GXtable", meta: { title: "罐线生产情况报表", }, component: () => import("../views/GXtable/Index.vue"), }, ], }, // { // path: "/system", // name: "System", // meta: { // title: "(制罐四线)生产停机记录表", // icon: "system", // }, // component: () => import("../layout/Index.vue"), // children: [ // { // path: "/SCTJtable", // name: "SCTJtable", // meta: { // title: "(制罐四线)生产停机记录表", // }, // component: () => import("../views/SCTJtable/Index.vue"), // }, // ], // }, // { // path: "/ZJBGtable", // name: "ZJBGtable", // meta: { // title: "终检报告", // icon: "information", // }, // component: () => import("../layout/Index.vue"), // children: [ // { // path: "/ZJBGtable", // name: "ZJBGtable", // meta: { // title: "终检报告", // }, // component: () => import("../views/ZJBGtable/Index.vue"), // }, // // { // // path: "/newsCategory", // // name: "NewsCategory", // // meta: { // // title: "信息分类", // // }, // // component: () => import("../views/info/Category.vue"), // // }, // // { // // path: "/newsDetailed", // // name: "NewsDetailed", // // hidden: true, // // meta: { // // title: "信息详情", // // }, // // component: () => import("../views/info/Detailed.vue"), // // }, // ], // }, { path: "/JBJtable", name: "JBJtable", meta: { title: "剪板机工序生产报表", icon: "information", }, component: () => import("../layout/Index.vue"), children: [ { path: "/JBJtable", name: "JBJtable", meta: { title: "剪板机工序生产报表", }, component: () => import("../views/JBJtable/Index.vue"), }, ], }, { path: "/HJtable", name: "HJtable", meta: { title: "焊机/后道工序生产报表", icon: "information", }, component: () => import("../layout/Index.vue"), children: [ { path: "/HJtable", name: "HJtable", meta: { title: "焊机/后道工序生产报表", }, component: () => import("../views/HJtable/Index.vue"), }, ], }, { path: "/FBtable", name: "FBtable", meta: { title: "翻边、滚筋/封口工序生产报表", icon: "information", }, component: () => import("../layout/Index.vue"), children: [ { path: "/FBtable", name: "FBtable", meta: { title: "翻边、滚筋/封口工序生产报表", }, component: () => import("../views/FBtable/Index.vue"), }, ], }, { path: "/JGGXtable", name: "JGGXtable", meta: { title: "检罐工序生产报表", icon: "information", }, component: () => import("../layout/Index.vue"), children: [ { path: "/JGGXtable", name: "JGGXtable", meta: { title: "检罐工序生产报表", }, component: () => import("../views/JGGXtable/Index.vue"), }, ], }, { path: "/JGJtable", name: "JGJtable", meta: { title: "集罐机工序生产报表", icon: "information", }, component: () => import("../layout/Index.vue"), children: [ { path: "/JGJtable", name: "JGJtable", meta: { title: "集罐机工序生产报表", }, component: () => import("../views/JGJtable/Index.vue"), }, ], }, { path: "/DBtable", name: "DBtable", meta: { title: "打包工序生产报表", icon: "information", }, component: () => import("../layout/Index.vue"), children: [ { path: "/DBtable", name: "DBtable", meta: { title: "打包工序生产报表", }, component: () => import("../views/DBtable/Index.vue"), }, ], }, ]; const router = createRouter({ history: createWebHashHistory(), routes, }); export default router;