/** * 公共类型 */ export declare interface IObj { [key: string]: any; } export declare interface PageParams { page: !number; count: !number; [keys: string]: any; //任意属性 } export declare interface PageData { list: T; total: number; [keys: string]: any; //任意属性 } interface RelayConf { ziyuankuHost: string; //资源库 zhuanxiangHost: string; //专项 } /* 系统配置 */ export interface BaseConf { baseHost: string; ssoHost: string; serviceHost: string; relayConf: RelayConf; isMock: Boolean; isDebug?: Boolean; [keys: string]: any; //任意属性 } /* PC端角色 */ export interface PcDebugUser { DebugUser: string; AppType: string; // yschapirequest: number; } /* webapp端角色 */ export declare interface WappDebugUser { ticket: string; schoolId: Number; userId: Number; roleId: Number; } export declare interface CurrentRole { childId: number | null; roleId: number; schId: number; userId: number; } export interface layoutData { appName: String; appList: string[]; modList: Array; userInfo: Object; ssoHost: String; baseHost: String; isAlone: Boolean; //是否只有一个选项卡 } export interface BaseDict { k: any; v: string | null; [keys: string]: any; //任意属性 } /* 计算表格高度的参数类型 */ export interface UseTableSetting { /** 是否有查询面板 */ isSearch: boolean = true; /** 是否有分页 */ isPage: boolean = true; /** 是否是tabs布局 */ isTabs: boolean = false; /** 是否有按钮操作 */ isOperat: boolean = true; /** 额外的高度 */ otherH: number = 0; } /* 布局组件类型 */ export interface LayoutData { appName: string | null; appList: Array; modList: Array; userInfo: any; ssoHost: string | null; baseHost: string | null; isAlone: boolean; } /* 自定义弹出对话框 */ export interface MyConfirm { title?: string; msg: string; info?: string; isLoading?: boolean; confirmText?: string; closeText?: string; onOk?: Function; onCancel?: Function; } export declare enum NODE_ENV { /** *开发环境 */ development = "development", /** *生产环境 */ production = "production", } export const _: any; export const $: any; declare global { const $: any; const _: any; } import Utils from "@/utils/index"; import MyConfirm from "@/components/MyConfirm"; export interface VueGlobal { $conf: BaseConf; $utils: typeof Utils; [key:string]:any; }