interface.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import type { ResPage } from '../interface'
  2. export interface BatchDownloadFilter {
  3. sn?: string
  4. type?: string
  5. }
  6. export interface BatchDownloadItemPage extends ResPage<BatchDownloadItem[]> {}
  7. export type BatchDownloadItem = BatchDownloadRealtimeData | BatchDownloadHistoryData
  8. export interface BatchDownloadData {
  9. id: string
  10. snList: string[]
  11. result: string // 任务处理结果
  12. }
  13. export interface BatchDownloadRealtimeData extends BatchDownloadData {
  14. type: 'realtime'
  15. options: BatchDownloadRealtimeOptions
  16. }
  17. export interface BatchDownloadRealtimeOptions {
  18. statusInfo: boolean // 站点当前状态
  19. powerFlow: boolean // 当前状态功率流截图
  20. eventAlarm: boolean // 当前状态事件和告警
  21. configInfo: {
  22. // 站点设置数据
  23. gridProfile: boolean // 并网合规配置
  24. accessories: boolean // 附件配置
  25. systemParam: boolean // 系统参数
  26. devPara: {
  27. // 设备参数VID/PID/CID
  28. emsVid: number[]
  29. emsPid: number[]
  30. peCid: number[]
  31. bmsVid: number[]
  32. bmsPid: number[]
  33. }
  34. }
  35. }
  36. export interface BatchDownloadHistoryData extends BatchDownloadData {
  37. type: 'history'
  38. options: BatchDownloadHistoryOptions
  39. }
  40. export interface BatchDownloadHistoryOptions {
  41. powerFlow: boolean // 功率流截图
  42. energyStatistics: boolean // 能量数据统计
  43. mpttLog: string[] // 运行通讯日志
  44. eventAlarm: boolean // 事件和告警数据
  45. emsLog: string[] // EMS日志
  46. emsModuleLog: string[] // EMS模块日志
  47. faultRecord: boolean // 故障录波
  48. updateRecord: boolean // 升级记录
  49. }