修复打包失败报错问题,修复菜单管理页面ts类型问题
This commit is contained in:
@@ -18,7 +18,7 @@ const MenuApi = {
|
||||
});
|
||||
},
|
||||
get(id: string) {
|
||||
return request<any, MenuVO>({
|
||||
return request<any, SysMenu>({
|
||||
url: `${baseURL}/detail`,
|
||||
method: "get",
|
||||
params: { id }
|
||||
@@ -103,101 +103,59 @@ export interface addRequest {
|
||||
/**
|
||||
* 是否选中父级菜单
|
||||
*/
|
||||
activeMenu?: string;
|
||||
activeMenu?: null | string;
|
||||
/**
|
||||
* 是否缓存
|
||||
*/
|
||||
cache?: number;
|
||||
cache: number | string;
|
||||
/**
|
||||
* 组件
|
||||
*/
|
||||
component?: string;
|
||||
component: number | string;
|
||||
/**
|
||||
* 是否隐藏
|
||||
*/
|
||||
hidden?: number;
|
||||
hidden: number | string;
|
||||
/**
|
||||
* 图标
|
||||
*/
|
||||
icon?: string;
|
||||
icon: string;
|
||||
/**
|
||||
* 是否外链
|
||||
*/
|
||||
iFrame?: number;
|
||||
iFrame: number | string;
|
||||
/**
|
||||
* 菜单排序
|
||||
*/
|
||||
menuSort?: number;
|
||||
menuSort: number;
|
||||
/**
|
||||
* 组件名称
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* 链接地址
|
||||
*/
|
||||
path?: string;
|
||||
path: number | string;
|
||||
/**
|
||||
* 权限表示
|
||||
*/
|
||||
permission?: string;
|
||||
permission?: null | string;
|
||||
/**
|
||||
* 上级菜单,不传递则为顶级菜单
|
||||
*/
|
||||
pid?: number;
|
||||
title: string;
|
||||
pid?: number | string;
|
||||
title: string | string;
|
||||
/**
|
||||
* 菜单类型 0 菜单 1按钮 2接口
|
||||
*/
|
||||
type: number | null;
|
||||
type: number | string;
|
||||
[property: string]: any;
|
||||
}
|
||||
/**
|
||||
* MenuEditDTO
|
||||
*/
|
||||
export interface editRequest {
|
||||
/**
|
||||
* 菜单类型 0 菜单 1按钮 2接口
|
||||
*/
|
||||
type: number;
|
||||
/**
|
||||
* 是否选中父级菜单
|
||||
*/
|
||||
activeMenu?: string;
|
||||
/**
|
||||
* 是否缓存
|
||||
*/
|
||||
cache?: number;
|
||||
/**
|
||||
* 组件
|
||||
*/
|
||||
component?: string;
|
||||
/**
|
||||
* 是否隐藏
|
||||
*/
|
||||
hidden?: number;
|
||||
/**
|
||||
* 图标
|
||||
*/
|
||||
icon?: string;
|
||||
export interface editRequest extends addRequest {
|
||||
id: number | string;
|
||||
/**
|
||||
* 是否外链
|
||||
*/
|
||||
iFrame?: number;
|
||||
/**
|
||||
* 菜单排序
|
||||
*/
|
||||
menuSort?: number;
|
||||
/**
|
||||
* 链接地址
|
||||
*/
|
||||
path?: string;
|
||||
/**
|
||||
* 权限表示
|
||||
*/
|
||||
permission?: string;
|
||||
/**
|
||||
* 上级菜单,不传递则为顶级菜单
|
||||
*/
|
||||
pid: number | string | null;
|
||||
title: string;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -305,4 +263,94 @@ export interface MenuVO {
|
||||
*/
|
||||
updateTime?: string;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 菜单结构
|
||||
*
|
||||
* CzgResult«SysMenu»
|
||||
*/
|
||||
|
||||
export interface SysMenu {
|
||||
/**
|
||||
* 是否选中父级菜单
|
||||
*/
|
||||
activeMenu?: null | string;
|
||||
/**
|
||||
* 缓存
|
||||
*/
|
||||
cache?: boolean | null;
|
||||
/**
|
||||
* 组件
|
||||
*/
|
||||
component?: null | string;
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
createBy?: null | string;
|
||||
/**
|
||||
* 创建日期
|
||||
*/
|
||||
createTime?: null | string;
|
||||
/**
|
||||
* 隐藏
|
||||
*/
|
||||
hidden?: boolean | null;
|
||||
/**
|
||||
* 图标
|
||||
*/
|
||||
icon?: null | string;
|
||||
/**
|
||||
* 是否外链
|
||||
*/
|
||||
iFrame?: boolean | null;
|
||||
/**
|
||||
* 商户使用 0:否;1:是;
|
||||
*/
|
||||
isShop?: number | null;
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
menuId?: number | null;
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
menuSort?: number | null;
|
||||
/**
|
||||
* 组件名称
|
||||
*/
|
||||
name?: null | string;
|
||||
/**
|
||||
* 链接地址
|
||||
*/
|
||||
path?: null | string;
|
||||
/**
|
||||
* 权限
|
||||
*/
|
||||
permission?: null | string;
|
||||
/**
|
||||
* 上级菜单ID
|
||||
*/
|
||||
pid?: number | null;
|
||||
/**
|
||||
* 子菜单数目
|
||||
*/
|
||||
subCount?: number | null;
|
||||
/**
|
||||
* 菜单标题
|
||||
*/
|
||||
title?: null | string;
|
||||
/**
|
||||
* 菜单类型 0 菜单 1按钮 3接口
|
||||
*/
|
||||
type?: number | null;
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
updateBy?: null | string;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
updateTime?: null | string;
|
||||
[property: string]: any;
|
||||
}
|
||||
Reference in New Issue
Block a user