采购计划可编辑表格

This commit is contained in:
weiwei committed 2025-02-13 22:32:36 +08:00
1 parent 84828b8cb2
commit a7a3f80376
7 files changed
+850 -404

No files matched your search

+46 -38
View File
@@ -1,4 +1,4 @@
import { RouteRecordRaw } from 'vue-router';
import { RouteRecordRaw } from "vue-router"
/**
* 建议:路由 path 路径与文件夹名称相同,找文件可浏览器地址找,方便定位文件位置
@@ -18,16 +18,16 @@ import { RouteRecordRaw } from 'vue-router';
*/
// 扩展 RouteMeta 接口
declare module 'vue-router' {
declare module "vue-router" {
interface RouteMeta {
isLink?: string;
isHide?: boolean;
isAuth?: boolean;
isKeepAlive?: boolean;
isAffix?: boolean;
isIframe?: boolean;
roles?: string[];
icon?: string;
isLink?: string
isHide?: boolean
isAuth?: boolean
isKeepAlive?: boolean
isAffix?: boolean
isIframe?: boolean
roles?: string[]
icon?: string
}
}
@@ -37,71 +37,79 @@ declare module 'vue-router' {
*/
export const dynamicRoutes: Array<RouteRecordRaw> = [
{
path: '/home',
name: 'router.home',
component: () => import('/@/views/home/index.vue'),
path: "/home",
name: "router.home",
component: () => import("/@/views/home/index.vue"),
meta: {
isLink: '',
isLink: "",
isHide: false,
isKeepAlive: true,
isAffix: true,
isIframe: false,
icon: 'iconfont icon-shouye',
icon: "iconfont icon-shouye",
},
},
{
path: '/personal',
name: 'router.personal',
component: () => import('/@/views/admin/system/user/personal.vue'),
path: "/personal",
name: "router.personal",
component: () => import("/@/views/admin/system/user/personal.vue"),
meta: {
isHide: true,
},
},
];
{
path: "/createCgPlan",
name: "创建采购计划",
component: () => import("/@/views/supermarketerp/smErpCgPlan/createCgPlan.vue"),
meta: {
isHide: true,
},
},
]
/**
* 定义静态路由(默认路由)
*/
export const staticRoutes: Array<RouteRecordRaw> = [
{
path: '/login',
name: 'staticRoutes.login',
component: () => import('/@/views/login/index.vue'),
path: "/login",
name: "staticRoutes.login",
component: () => import("/@/views/login/index.vue"),
meta: {
isAuth: false,
},
},
{
path: '/authredirect',
name: 'staticRoutes.authredirect',
component: () => import('/@/views/login/component/authredirect.vue'),
path: "/authredirect",
name: "staticRoutes.authredirect",
component: () => import("/@/views/login/component/authredirect.vue"),
meta: {
isAuth: false,
},
},
];
]
/**
* 定义404、401界面
*/
export const notFoundAndNoPower = [
{
path: '/:path(.*)*',
name: 'staticRoutes.notFound',
component: () => import('/@/views/error/404.vue'),
path: "/:path(.*)*",
name: "staticRoutes.notFound",
component: () => import("/@/views/error/404.vue"),
meta: {
isHide: true,
},
},
{
path: '/401',
name: 'staticRoutes.noPower',
component: () => import('/@/views/error/401.vue'),
path: "/401",
name: "staticRoutes.noPower",
component: () => import("/@/views/error/401.vue"),
meta: {
isHide: true,
},
},
];
]
/**
* 基础性路由
@@ -110,13 +118,13 @@ export const notFoundAndNoPower = [
*/
export const baseRoutes: Array<RouteRecordRaw> = [
{
path: '/',
name: '/',
component: () => import('/@/layout/index.vue'),
redirect: '/home',
path: "/",
name: "/",
component: () => import("/@/layout/index.vue"),
redirect: "/home",
meta: {
isKeepAlive: true,
},
children: [],
},
];
]