pinia.d.ts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /**
  2. * 定义接口来定义对象的类型
  3. * `stores` 全部类型定义在这里
  4. */
  5. declare interface UserInfosState {
  6. authBtnList: string[];
  7. photo: string;
  8. token?: string;
  9. id: string;
  10. name: string;
  11. phoneNo: string;
  12. staffNo?: string;
  13. defaultTelNo?: string;
  14. deletionTime?: string;
  15. isDeleted?: boolean;
  16. showTelControl: boolean;
  17. orgName: string;
  18. roles: string[];
  19. account: string;
  20. isCenter: boolean;
  21. monitor: boolean;
  22. }
  23. declare interface UserInfosStates {
  24. userInfos: UserInfosState;
  25. }
  26. // 路由缓存列表
  27. declare interface KeepAliveNamesState {
  28. keepAliveNames: string[];
  29. cachedViews: string[];
  30. }
  31. // 后端返回原始路由(未处理时)
  32. declare interface RequestOldRoutesState {
  33. requestOldRoutes: string[];
  34. }
  35. // TagsView 路由列表
  36. declare interface TagsViewRoutesState {
  37. tagsViewRoutes: string[];
  38. isTagsViewCurrenFull: Boolean;
  39. }
  40. // 路由列表
  41. declare interface RoutesListState {
  42. routesList: string[];
  43. isColumnsMenuHover: Boolean;
  44. isColumnsNavHover: Boolean;
  45. }
  46. // 布局配置
  47. declare interface ThemeConfigState {
  48. isDrawer: boolean;
  49. primary: string;
  50. topBar: string;
  51. topBarColor: string;
  52. isTopBarColorGradual: boolean;
  53. menuBar: string;
  54. menuBarColor: string;
  55. isMenuBarColorGradual: boolean;
  56. columnsMenuBar: string;
  57. columnsMenuBarColor: string;
  58. isColumnsMenuBarColorGradual: boolean;
  59. isColumnsMenuHoverPreload: boolean;
  60. isCollapse: boolean;
  61. isUniqueOpened: boolean;
  62. isFixedHeader: boolean;
  63. isFixedHeaderChange: boolean;
  64. isClassicSplitMenu: boolean;
  65. isLockScreen: boolean;
  66. isShowLogo: boolean;
  67. isShowLogoChange: boolean;
  68. isBreadcrumb: boolean;
  69. isTagsview: boolean;
  70. isBreadcrumbIcon: boolean;
  71. isTagsviewIcon: boolean;
  72. isCacheTagsView: boolean;
  73. isSortableTagsView: boolean;
  74. isShareTagsView: boolean;
  75. isFooter: boolean;
  76. isGrayscale: boolean;
  77. isInvert: boolean;
  78. isIsDark: boolean;
  79. isWatermark: boolean;
  80. watermarkText: string|object|string[];
  81. tagsStyle: string;
  82. animation: string;
  83. columnsAsideStyle: string;
  84. columnsAsideLayout: string;
  85. layout: string;
  86. isRequestRoutes: boolean;
  87. globalTitle: string;
  88. globalViceTitle: string;
  89. globalI18n: string;
  90. globalComponentSize: string;
  91. loginImage: string;
  92. isLoginMessageCode: boolean;
  93. }
  94. declare interface ThemeConfigStates {
  95. themeConfig: ThemeConfigState;
  96. }
  97. declare interface AppConfigState {
  98. AppConfigInfo: {
  99. isRestApproval: boolean; // 电话控件小休是否要进行审批
  100. talkingDealTime: number; // 呼叫中心事后处理时间
  101. isNeedTelNo: boolean; // 分机签入是否需要选择号码
  102. isTelNeedVerify: boolean; // 分机签入是否需要输入密码
  103. isCustomEvent: boolean; // 是否开启自定义事件
  104. isTranspondCity: boolean; // 是否开启市州互转
  105. isAverageSendOrder: boolean; // 是否开启平均派单
  106. noSignOrgCode:Array<string>; // 不需要会签的机构
  107. isOpenRepeatedWorkOrders: boolean; // 是否开启重复工单
  108. [x: string]: any
  109. }
  110. }