import { type RouteRecordName } from 'vue-router' export interface Paging { currentPage: number pageSize: number records: T[] total: number } export interface LogInfo { bizService: string curMenuName: string errorMsg: string menuId: number menuName: string needDiff: number // 0-不需要 1-需要 opTime: number opUser: string userName: string operation: string operationBody: string operationType: string originSys: string preOperationBody: string successFlg: number uniValue: string } /* 页面请求参数 */ export interface ParamsPage extends Pick, 'currentPage' | 'pageSize'> { opTime?: string[] opStartTime: number | null opEndTime: number | null } export interface NewParamsPage { currentPage: number | string pageSize: number | string opStartTime: number | null opEndTime: number | null menuId: number | null menuName: string | null selectMenuId: number | null uniValue: string | null userName: string | null opTime?: string[] } export interface Menu { icon: string // 是否缓存 ignoreCache: 0 | 1 // 是否需要授权 isAuth: 0 | 1 // 是否隐藏 菜单 isHidden: 0 | 1 // 0: 不隐藏 1: 隐藏 name: string id: number code: string // 菜单编码 pid?: number productionShow: 0 | 1 serviceCode: string status: 0 | 1 /** 接口返回的url,生成路由component使用,对应views文件夹下页面的地址 */ url: string /** 路由地址,包括顶层模块 */ path: string childs?: Menu[] children?: Menu[] // 搜索接口返回 // 属于哪个模块 module: string routeName: RouteRecordName key?: string // 菜单搜索使用,全部置空,否则会报ts错误 disabled?: boolean // 菜单搜索使用 tagName?: string // 菜单搜索使用,顶部模块名称 } export interface ISearchForm { menuId?: string menuName?: string selectMenuId?: string uniValue?: string userName?: string opTime?: [] opStartTime?: string opEndTime?: string pageNum: number pageSize: number }