index.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. export type LayoutType = "vertical" | "classic" | "transverse" | "columns";
  2. export type AssemblySizeType = "large" | "default" | "small";
  3. export type LanguageType = "zh" | "en" | null;
  4. /* GlobalState */
  5. export interface GlobalState {
  6. layout: LayoutType;
  7. assemblySize: AssemblySizeType;
  8. language: LanguageType;
  9. maximize: boolean;
  10. primary: string;
  11. isDark: boolean;
  12. isGrey: boolean;
  13. isWeak: boolean;
  14. asideInverted: boolean;
  15. headerInverted: boolean;
  16. isCollapse: boolean;
  17. accordion: boolean;
  18. watermark: boolean;
  19. breadcrumb: boolean;
  20. breadcrumbIcon: boolean;
  21. tabs: boolean;
  22. tabsIcon: boolean;
  23. footer: boolean;
  24. }
  25. /* UserState */
  26. export interface UserState {
  27. token: string;
  28. userInfo: user;
  29. asInfo:Array <asInfos>,
  30. stations: Array<any>
  31. }
  32. export interface user {
  33. name?: string,
  34. user_account?:string,
  35. user_id?:string,
  36. role_id?:string,
  37. user_job?:string,
  38. user_password?:string,
  39. user_name?:string,
  40. user_phone?:string,
  41. user_unit?:string,
  42. role_name?:string,
  43. role_permissions?:string
  44. }
  45. export interface asInfos {
  46. user_id:string,
  47. as_code:string,
  48. as_name:string
  49. }
  50. /* tabsMenuProps */
  51. export interface TabsMenuProps {
  52. icon: string;
  53. title: string;
  54. path: string;
  55. name: string;
  56. close: boolean;
  57. isKeepAlive: boolean;
  58. }
  59. /* TabsState */
  60. export interface TabsState {
  61. tabsMenuList: TabsMenuProps[];
  62. }
  63. /* AuthState */
  64. export interface AuthState {
  65. routeName: string;
  66. authButtonList: {
  67. [key: string]: string[];
  68. };
  69. authMenuList: Menu.MenuOptions[];
  70. }
  71. /* KeepAliveState */
  72. export interface KeepAliveState {
  73. keepAliveName: string[];
  74. }