|
|
@@ -308,46 +308,48 @@ const Index = (props) => {
|
|
|
}, [range, props.data?.data?.rule_id]);
|
|
|
return (
|
|
|
<>
|
|
|
- <Descriptions>
|
|
|
- <Descriptions.Item
|
|
|
- span={props.data?.data?.point_id ? 2 : 3}
|
|
|
- label="告警名称"
|
|
|
- >
|
|
|
- {props.data?.data?.name}
|
|
|
- </Descriptions.Item>
|
|
|
- {props.data?.data?.point_id && (
|
|
|
- <Descriptions.Item label="点位编号">
|
|
|
- {props.data?.data?.point_id}
|
|
|
+ <div className={styles.desc}>
|
|
|
+ <Descriptions>
|
|
|
+ <Descriptions.Item
|
|
|
+ span={props.data?.data?.point_id ? 2 : 3}
|
|
|
+ label="告警名称"
|
|
|
+ >
|
|
|
+ {props.data?.data?.name}
|
|
|
</Descriptions.Item>
|
|
|
- )}
|
|
|
- <Descriptions.Item label="告警时间">
|
|
|
- {props.data?.data?.created_time}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label="恢复时间">
|
|
|
- {props.data?.data?.recovery_time || "-"}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label="持续时间">
|
|
|
- {getDur(props?.data?.data?.duration)}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label="告警类型">
|
|
|
- {alarmTypeMap[props.data?.data?.type]}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label="告警级别">
|
|
|
- {levelMap[props.data?.data?.alarm_level]}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label="告警状态">
|
|
|
- {alarmStatusMap[props.data?.data?.status]}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label="确认时间">
|
|
|
- {props.data?.data?.confirmed_time}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label="确认人">
|
|
|
- {props.data?.data?.confirmed_oper_name}
|
|
|
- </Descriptions.Item>
|
|
|
- <Descriptions.Item label="备注">
|
|
|
- {props.data?.data?.remark}
|
|
|
- </Descriptions.Item>
|
|
|
- </Descriptions>
|
|
|
+ {props.data?.data?.point_id && (
|
|
|
+ <Descriptions.Item label="点位编号">
|
|
|
+ {props.data?.data?.point_id}
|
|
|
+ </Descriptions.Item>
|
|
|
+ )}
|
|
|
+ <Descriptions.Item label="告警时间">
|
|
|
+ {props.data?.data?.created_time}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label="恢复时间">
|
|
|
+ {props.data?.data?.recovery_time || "-"}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label="持续时间">
|
|
|
+ {getDur(props?.data?.data?.duration)}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label="告警类型">
|
|
|
+ {alarmTypeMap[props.data?.data?.type]}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label="告警级别">
|
|
|
+ {levelMap[props.data?.data?.alarm_level]}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label="告警状态">
|
|
|
+ {alarmStatusMap[props.data?.data?.status]}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label="确认时间">
|
|
|
+ {props.data?.data?.confirmed_time}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label="确认人">
|
|
|
+ {props.data?.data?.confirmed_oper_name}
|
|
|
+ </Descriptions.Item>
|
|
|
+ <Descriptions.Item label="备注">
|
|
|
+ {props.data?.data?.remark}
|
|
|
+ </Descriptions.Item>
|
|
|
+ </Descriptions>
|
|
|
+ </div>
|
|
|
{(props.data?.data?.sub_type === 13 ||
|
|
|
props.data?.data?.sub_type === 14) && (
|
|
|
<>
|
|
|
@@ -355,13 +357,13 @@ const Index = (props) => {
|
|
|
<RangePicker
|
|
|
value={range}
|
|
|
onChange={setRange}
|
|
|
- style={{ width: 440, marginTop: 50 }}
|
|
|
+ style={{ width: 440, marginTop: 20 }}
|
|
|
/>
|
|
|
</div>
|
|
|
|
|
|
{chartData && (
|
|
|
<ReactECharts
|
|
|
- style={{ height: 250 }}
|
|
|
+ style={{ height: 424 }}
|
|
|
option={chartData}
|
|
|
notMerge={true}
|
|
|
/>
|