alarmData.class.ts 379 B

123456789101112131415161718192021
  1. // 需要的数据类型
  2. export const PowerFlowLogTypes: string[] = ["201", "214", "309"];
  3. interface TimeLineDataType {
  4. time: Date;
  5. type: "alarm" | "event" | "info";
  6. title: string;
  7. notes?: string;
  8. }
  9. export class AlarmData {
  10. constructor(refresh: () => void) {
  11. this.refresh = refresh;
  12. }
  13. // 刷新接口
  14. refresh: () => void;
  15. // 数据
  16. // dataList: {};
  17. }