模拟障碍物 继续作业 连续作业 初始化
This commit is contained in:
@@ -300,7 +300,7 @@ export default function AlarmCenterPage() {
|
||||
},
|
||||
{
|
||||
title: t('alerts.reportValue'),
|
||||
dataIndex: 'time_values',
|
||||
dataIndex: 'timeValues',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
@@ -849,9 +849,9 @@ export default function AlarmCenterPage() {
|
||||
</Row>
|
||||
|
||||
{/* 告警详情抽屉 */}
|
||||
<Drawer
|
||||
title={t('alerts.alertDetail')}
|
||||
open={drawerVisible}
|
||||
<Drawer
|
||||
title={t('alerts.alertDetail')}
|
||||
open={drawerVisible}
|
||||
onClose={() => setDrawerVisible(false)}
|
||||
width={480}
|
||||
destroyOnClose
|
||||
@@ -878,9 +878,9 @@ export default function AlarmCenterPage() {
|
||||
|
||||
{/* 告警基础信息 */}
|
||||
<Descriptions column={1} bordered size="small" style={{ marginBottom: 16 }}>
|
||||
<Descriptions.Item label={t('alerts.sourceDevice')}>{currentAlarm.deviceName || '-'}</Descriptions.Item>
|
||||
<Descriptions.Item label={t('alerts.alertType')}>{alarmTypeMap[currentAlarm.alarmType] || '-'}</Descriptions.Item>
|
||||
<Descriptions.Item label={t('alerts.occurTime')}>{dayjs(currentAlarm.alarmTime).format('YYYY-MM-DD HH:mm:ss')}</Descriptions.Item>
|
||||
<Descriptions.Item label={t('alerts.sourceDevice')}>{currentAlarm.deviceName || '-'}</Descriptions.Item>
|
||||
<Descriptions.Item label={t('alerts.alertType')}>{alarmTypeMap[currentAlarm.alarmType] || '-'}</Descriptions.Item>
|
||||
<Descriptions.Item label={t('alerts.occurTime')}>{dayjs(currentAlarm.alarmTime).format('YYYY-MM-DD HH:mm:ss')}</Descriptions.Item>
|
||||
<Descriptions.Item label={t('alerts.handleStatus')}>
|
||||
{(() => {
|
||||
let color = 'default';
|
||||
@@ -924,32 +924,32 @@ export default function AlarmCenterPage() {
|
||||
|
||||
{/* 处理操作 */}
|
||||
<Card size="small" title={t('alerts.handleOperation')} style={{ marginBottom: 16 }}>
|
||||
<Form.Item label={t('alerts.handleStatus')} name="handleStatus" rules={[{ required: true, message: t('alerts.pleaseSelectHandleStatus') }]}>
|
||||
<Select>
|
||||
<Option value={1}>{t('constants.pending')}</Option>
|
||||
<Form.Item label={t('alerts.handleStatus')} name="handleStatus" rules={[{ required: true, message: t('alerts.pleaseSelectHandleStatus') }]}>
|
||||
<Select>
|
||||
<Option value={1}>{t('constants.pending')}</Option>
|
||||
|
||||
<Option value={2}>{t('constants.closed')}</Option>
|
||||
</Select>
|
||||
</Form.Item>
|
||||
<Form.Item label={t('alerts.handleResult')} name="handleResult" rules={[{ required: true, message: t('alerts.pleaseSelectHandleResult') }]}>
|
||||
<Select
|
||||
placeholder={t('alerts.pleaseSelectHandleResult')}
|
||||
options={alarmHandleResultOptions}
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item label={t('alerts.rootCause')} name="rootCause">
|
||||
<Input.TextArea rows={2} placeholder={t('alerts.pleaseInputHandleRemark')} />
|
||||
</Form.Item>
|
||||
<Form.Item label={t('alerts.handleRemark')} name="handleRemark">
|
||||
<Input.TextArea rows={2} placeholder={t('alerts.pleaseInputHandleRemark')} />
|
||||
</Form.Item>
|
||||
<Option value={2}>{t('constants.closed')}</Option>
|
||||
</Select>
|
||||
</Form.Item>
|
||||
<Form.Item label={t('alerts.handleResult')} name="handleResult" rules={[{ required: true, message: t('alerts.pleaseSelectHandleResult') }]}>
|
||||
<Select
|
||||
placeholder={t('alerts.pleaseSelectHandleResult')}
|
||||
options={alarmHandleResultOptions}
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item label={t('alerts.rootCause')} name="rootCause">
|
||||
<Input.TextArea rows={2} placeholder={t('alerts.pleaseInputHandleRemark')} />
|
||||
</Form.Item>
|
||||
<Form.Item label={t('alerts.handleRemark')} name="handleRemark">
|
||||
<Input.TextArea rows={2} placeholder={t('alerts.pleaseInputHandleRemark')} />
|
||||
</Form.Item>
|
||||
|
||||
|
||||
|
||||
</Card>
|
||||
</Card>
|
||||
|
||||
{/* 底部按钮 */}
|
||||
<Button type="primary" block htmlType="submit">{t('alerts.confirmHandle')}</Button>
|
||||
{/* 底部按钮 */}
|
||||
<Button type="primary" block htmlType="submit">{t('alerts.confirmHandle')}</Button>
|
||||
|
||||
</>
|
||||
</Form>
|
||||
@@ -958,9 +958,9 @@ export default function AlarmCenterPage() {
|
||||
</Drawer>
|
||||
|
||||
{/* ====================== 修改告警弹窗 ====================== */}
|
||||
<Modal
|
||||
title={t('alerts.modifyAlert')}
|
||||
open={editModalVisible}
|
||||
<Modal
|
||||
title={t('alerts.modifyAlert')}
|
||||
open={editModalVisible}
|
||||
onCancel={() => setEditModalVisible(false)}
|
||||
footer={null}
|
||||
width={520}
|
||||
|
||||
Reference in New Issue
Block a user