Commit 39743763 by zhaochengxiang

维护历史优化

parent 559f6912
...@@ -82,35 +82,11 @@ const FC = (props) => { ...@@ -82,35 +82,11 @@ const FC = (props) => {
} }
</div> </div>
{ {
!isCollapse && <React.Fragment> !isCollapse && <Descriptions column={1}>
{ <Descriptions.Item label={<div style={{ textAlign: 'right', width: 85 }} >维护历史</div>} >
editable ? ( {maintenanceDescription}
<Form form={form} {...formItemLayout}> </Descriptions.Item>
<Row gutter={10}> </Descriptions>
<Col xs={24} sm={24} lg={12} xl={8}>
<Form.Item
label="维护历史"
>
<Input.TextArea rows={3} disabled={true} value={maintenanceDescription} />
</Form.Item>
</Col>
</Row>
</Form>
) : (
<Descriptions column={3}>
<Descriptions.Item label={<div style={{ textAlign: 'right', width: 85 }} >维护历史</div>} >
<div style={{ maxHeight: 70, overflow: 'auto' }}>
{
(maintenanceRecords||[]).map((record, index) => {
return <div key={index}>{record||''}</div>;
})
}
</div>
</Descriptions.Item>
</Descriptions>
)
}
</React.Fragment>
} }
</div> </div>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment