Commit 0961ec29 by zhaochengxiang

设计评审结论不通过的模型,规范评审结论列显示-

parent 6d9ef267
......@@ -278,8 +278,9 @@ const List = React.forwardRef(function ({type, data, taskId}, ref) {
render: (text, record, index) => {
form?.setFieldsValue({ [`pass${index}`]: text })
return (
<Tooltip title={((type==='rule')&&!record.designReviewPass) ? '设计评审不通过' : ''}>
<Form.Item name={`pass${index}`}
<React.Fragment>
{
(type==='rule'&&!record.designReviewPass) ? '-' : <Form.Item name={`pass${index}`}
rules={[{ required: true, message: '请选择评审结论!' }]}
style={{ marginBottom: 0 }}
>
......@@ -289,7 +290,6 @@ const List = React.forwardRef(function ({type, data, taskId}, ref) {
style={{
width: '100%'
}}
disabled={(type==='rule')&&!record.designReviewPass}
onChange={(val) => {
setTableData(prev => {
return produce(prev, (draft) => {
......@@ -305,8 +305,9 @@ const List = React.forwardRef(function ({type, data, taskId}, ref) {
<Select.Option value={true}>通过</Select.Option>
<Select.Option value={false}>不通过</Select.Option>
</Select>
</Form.Item>
</Tooltip>
</Form.Item>
}
</React.Fragment>
)
}
},
......
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