确认处理告警 和单独 下发指令
This commit is contained in:
@@ -146,6 +146,7 @@ export default function AlarmCenterPage() {
|
||||
setAlarmList(res.rows || []);
|
||||
setTotal(res.total || 0);
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
messageApi.error('加载失败');
|
||||
} finally {
|
||||
@@ -190,7 +191,8 @@ export default function AlarmCenterPage() {
|
||||
await handleAlarm({
|
||||
alarmId: currentAlarm.id,
|
||||
handleStatus: values.handleStatus,
|
||||
handleRemark: values.handleRemark || '已处理'
|
||||
handleRemark: values.handleRemark || '已处理',
|
||||
rootCause: values.rootCause || '无'
|
||||
});
|
||||
messageApi.success('处理成功');
|
||||
setDrawerVisible(false);
|
||||
@@ -870,9 +872,6 @@ export default function AlarmCenterPage() {
|
||||
</Card>
|
||||
|
||||
{/* 根因分析 */}
|
||||
<Card size="small" title="根因分析建议" style={{ marginBottom: 16 }}>
|
||||
<div style={{ color: '#333' }}>{currentAlarm.rootCause || '-'}</div>
|
||||
</Card>
|
||||
|
||||
{/* 推荐处理措施 */}
|
||||
<Card size="small" title="推荐处理措施" style={{ marginBottom: 16 }}>
|
||||
@@ -901,9 +900,15 @@ export default function AlarmCenterPage() {
|
||||
<Option value={4}>已忽略</Option>
|
||||
</Select>
|
||||
</Form.Item>
|
||||
<Form.Item label="根因分析" name="rootCause">
|
||||
<Input.TextArea rows={2} placeholder="请输入处理备注" />
|
||||
</Form.Item>
|
||||
<Form.Item label="处理备注" name="handleRemark">
|
||||
<Input.TextArea rows={2} placeholder="请输入处理备注" />
|
||||
</Form.Item>
|
||||
|
||||
|
||||
|
||||
</Card>
|
||||
|
||||
{/* 底部按钮 */}
|
||||
|
||||
Reference in New Issue
Block a user