index.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. }
  31. export interface user {
  32. name?: string,
  33. user_account?:string,
  34. user_id?:string,
  35. role_id?:string,
  36. user_job?:string,
  37. user_password?:string,
  38. user_name?:string,
  39. user_phone?:string,
  40. user_unit?:string,
  41. role_name?:string,
  42. role_permissions?:string
  43. }
  44. export interface asInfos {
  45. user_id:string,
  46. as_code:string,
  47. as_name:string
  48. }
  49. /* tabsMenuProps */
  50. export interface TabsMenuProps {
  51. icon: string;
  52. title: string;
  53. path: string;
  54. name: string;
  55. close: boolean;
  56. isKeepAlive: boolean;
  57. }
  58. /* TabsState */
  59. export interface TabsState {
  60. tabsMenuList: TabsMenuProps[];
  61. }
  62. /* AuthState */
  63. export interface AuthState {
  64. routeName: string;
  65. authButtonList: {
  66. [key: string]: string[];
  67. };
  68. authMenuList: Menu.MenuOptions[];
  69. }
  70. /* KeepAliveState */
  71. export interface KeepAliveState {
  72. keepAliveName: string[];
  73. }