// 变量名对应含义请在 /stores/* 里边找
|
import type { Component } from 'vue'
|
import { RouteLocationNormalized } from 'vue-router'
|
|
export interface Layout {
|
showDrawer: boolean
|
shrink: boolean
|
layoutMode: string
|
mainAnimation: string
|
menuWidth: number
|
menuDefaultIcon: string
|
menuCollapse: boolean
|
menuUniqueOpened: boolean
|
menuShowTopBar: boolean
|
menuBackground: string
|
menuColor: string
|
menuActiveBackground: string
|
menuActiveColor: string
|
menuTopBarBackground: string
|
headerBarTabColor: string
|
headerBarBackground: string
|
headerBarHoverBackground: string
|
headerBarTabActiveBackground: string
|
headerBarTabActiveColor: string
|
}
|
|
export interface viewMenu {
|
title: string
|
path: string
|
name?: string
|
type?: string
|
icon?: string
|
keepAlive?: string
|
query?: anyObj
|
params?: anyObj
|
children?: viewMenu[]
|
component?: Component
|
}
|
|
export interface NavTabs {
|
activeIndex: number
|
activeRoute: viewMenu | null
|
tabsView: Array<viewMenu>
|
tabFullScreen: boolean
|
tabsViewRoutes: Array<viewMenu>
|
authNode: Map<string, string[]>
|
}
|
|
export interface MemberCenter {
|
open: boolean
|
layoutMode: string
|
activeRoute: viewMenu | RouteLocationNormalized | null
|
viewRoutes: Array<viewMenu>
|
showHeadline: boolean
|
authNode: Map<string, string[]>
|
shrink: boolean
|
menuExpand: boolean
|
}
|
|
export interface AdminInfo {
|
id: number
|
username: string
|
nickname: string
|
avatar: string
|
lastlogintime: string
|
token: string
|
refreshToken: string
|
super: boolean
|
}
|
|
export interface UserInfo {
|
id?: number | string
|
username?: string
|
name?: string
|
email?: string
|
mobile?: string
|
phone?: string
|
gender?: number
|
birthday?: string
|
money?: number
|
score?: number
|
avatar?: string
|
lastlogintime?: string
|
lastloginip?: string
|
jointime?: string
|
motto?: string
|
adminToken: string
|
screenToken: string
|
empCode:string
|
menuList: Menu[]
|
fullUnitName:string
|
userId?:any
|
unitId?:any
|
roleCodes?:any
|
userInfo?:any
|
departmentId?: string
|
}
|
|
export interface TaskItem {
|
// 任务唯一标识
|
uuid: string
|
// 创建时间
|
createtime: string
|
// 状态
|
status: number
|
// 命令
|
command: string
|
// 命令执行日志
|
message: string[]
|
// 显示命令执行日志
|
showMessage: boolean
|
// 失败阻断后续命令执行
|
blockOnFailure: boolean
|
// 执行结果回调
|
callback: Function
|
}
|
|
export interface Terminal {
|
show: boolean
|
showDot: boolean
|
taskList: TaskItem[]
|
packageManager: string
|
showPackageManagerDialog: boolean
|
showConfig: boolean
|
automaticCleanupTask: string
|
port: string
|
}
|
|
export interface SiteConfig {
|
site_name: string
|
record_number?: string
|
version: string
|
}
|
export interface AreaSource {
|
parentId?: string
|
}
|
export interface CommonInfo {
|
areaSource: AreaSource[],
|
activeMenu: string
|
}
|
|
interface permsType {
|
code: string
|
name: string
|
}
|
export interface Permission {
|
buttonAuth: string[]
|
permsList?: permsType[]
|
}
|
/* MenuState */
|
export interface MenuState {
|
isCollapse: boolean
|
menuList: Menu[]
|
}
|