|
|
@@ -428,50 +428,54 @@ const Index = (props) => {
|
|
|
style={{
|
|
|
margin: "0px 0px",
|
|
|
width: "calc(100% - 287px)",
|
|
|
- }}
|
|
|
- labelStyle={{ width: 72 }}
|
|
|
- >
|
|
|
- <Descriptions.Item
|
|
|
- span={3}
|
|
|
- label={TranslateText(["告警名称", "Alarm name"])}
|
|
|
- >
|
|
|
- {props.data?.data?.name}
|
|
|
- </Descriptions.Item>
|
|
|
- {props.data?.data?.point_id !== null &&
|
|
|
- props.data?.data?.point_id !== "" &&
|
|
|
- props.data?.data?.point_id !== undefined && (
|
|
|
- <Descriptions.Item label={TranslateText(["点位编号", "Point id"])}>
|
|
|
- {props.data?.data?.point_id}
|
|
|
+ }}
|
|
|
+ labelStyle={{ width: 72 }}
|
|
|
+ >
|
|
|
+ <Descriptions.Item
|
|
|
+ span={3}
|
|
|
+ label={TranslateText(["告警名称", "Alarm name"])}
|
|
|
+ >
|
|
|
+ {props.data?.data?.name}
|
|
|
</Descriptions.Item>
|
|
|
- )}
|
|
|
- <Descriptions.Item label={TranslateText(["告警类型", "Alarm type"])}>
|
|
|
- {alarmTypeMap[props.data?.data?.type]}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label={TranslateText(["告警级别", "Alarm level"])}>
|
|
|
- {levelMap[props.data?.data?.alarm_level]}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label={TranslateText(["告警时间", "Alarm time"])}>
|
|
|
- {props.data?.data?.created_time}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label={TranslateText(["恢复时间", "Recovery at"])}>
|
|
|
- {props.data?.data?.recovery_time || "-"}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label={TranslateText(["持续时间", "Duration"])}>
|
|
|
- {getDur(props?.data?.data?.duration)}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label={TranslateText(["确认人", "Occurred at"])}>
|
|
|
- {props.data?.data?.confirmed_oper_name}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label={TranslateText(["确认时间", "Confirmed at"])}>
|
|
|
- {props.data?.data?.confirmed_time}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label={TranslateText(["备注信息", "Remark"])}>
|
|
|
- {props.data?.data?.remark}
|
|
|
- </Descriptions.Item>
|
|
|
- </Descriptions>
|
|
|
+ {props.data?.data?.point_id !== null &&
|
|
|
+ props.data?.data?.point_id !== "" &&
|
|
|
+ props.data?.data?.point_id !== undefined && (
|
|
|
+ <Descriptions.Item
|
|
|
+ label={TranslateText(["点位编号", "Point id"])}
|
|
|
+ >
|
|
|
+ {props.data?.data?.point_id}
|
|
|
+ </Descriptions.Item>
|
|
|
+ )}
|
|
|
+ <Descriptions.Item label={TranslateText(["告警类型", "Alarm type"])}>
|
|
|
+ {alarmTypeMap[props.data?.data?.type]}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label={TranslateText(["告警级别", "Alarm level"])}>
|
|
|
+ {levelMap[props.data?.data?.alarm_level]}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label={TranslateText(["告警时间", "Alarm time"])}>
|
|
|
+ {props.data?.data?.created_time}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label={TranslateText(["恢复时间", "Recovery at"])}>
|
|
|
+ {props.data?.data?.recovery_time || "-"}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label={TranslateText(["持续时间", "Duration"])}>
|
|
|
+ {getDur(props?.data?.data?.duration)}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label={TranslateText(["确认人", "Confirmed by"])}>
|
|
|
+ {props.data?.data?.confirmed_oper_name}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item
|
|
|
+ label={TranslateText(["确认时间", "Confirmed at"])}
|
|
|
+ >
|
|
|
+ {props.data?.data?.confirmed_time}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label={TranslateText(["备注信息", "Remark"])}>
|
|
|
+ {props.data?.data?.remark}
|
|
|
+ </Descriptions.Item>
|
|
|
+ </Descriptions>
|
|
|
<div className={styles.divide}></div>
|
|
|
<div className={styles.oper}>
|
|
|
- {props.data?.data?.status === 2 ? <Check></Check> : <Alert></Alert>}
|
|
|
+ {props.data?.data?.status === 2 ? <Check /> : <Alert />}
|
|
|
<div className={styles.status}>
|
|
|
{alarmStatusMap[props.data?.data?.status]}
|
|
|
</div>
|
|
|
@@ -509,6 +513,10 @@ const Index = (props) => {
|
|
|
onChange={setRange}
|
|
|
style={{ width: 360, zIndex: 99999 }}
|
|
|
presets={rangePresets}
|
|
|
+ placeholder={[
|
|
|
+ TranslateText(["开始日期", "Start date"]),
|
|
|
+ TranslateText(["结束日期", "End date"]),
|
|
|
+ ]}
|
|
|
/>
|
|
|
</div>
|
|
|
|