年审
This commit is contained in:
@ -8,6 +8,7 @@ import {
|
||||
Form,
|
||||
InputNumber,
|
||||
message,
|
||||
Popconfirm,
|
||||
} from 'antd';
|
||||
import {
|
||||
PlusOutlined,
|
||||
@ -626,13 +627,19 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
}}
|
||||
title="添加一级指标"
|
||||
/>
|
||||
<Button
|
||||
type="text"
|
||||
danger
|
||||
icon={<DeleteOutlined />}
|
||||
onClick={() => removeLevel1Indicator(record)}
|
||||
title="删除一级指标"
|
||||
/>
|
||||
<Popconfirm
|
||||
title="确定要删除此指标吗?"
|
||||
onConfirm={() => removeLevel1Indicator(record)}
|
||||
okText="确定"
|
||||
cancelText="取消"
|
||||
>
|
||||
<Button
|
||||
type="text"
|
||||
danger
|
||||
icon={<DeleteOutlined />}
|
||||
title="删除一级指标"
|
||||
/>
|
||||
</Popconfirm>
|
||||
</div>
|
||||
));
|
||||
},
|
||||
@ -741,13 +748,19 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
/>
|
||||
{/* 如果该一级指标下有多个二级指标,才允许删除 */}
|
||||
{getLevel1RowSpan(record.baseIndicator) > 1 && (
|
||||
<Button
|
||||
type="text"
|
||||
danger
|
||||
icon={<MinusCircleOutlined />}
|
||||
onClick={() => removeSubIndicator(record.key)}
|
||||
title="删除细分指标"
|
||||
/>
|
||||
<Popconfirm
|
||||
title="确定要删除此指标吗?"
|
||||
onConfirm={() => removeSubIndicator(record.key)}
|
||||
okText="确定"
|
||||
cancelText="取消"
|
||||
>
|
||||
<Button
|
||||
type="text"
|
||||
danger
|
||||
icon={<MinusCircleOutlined />}
|
||||
title="删除细分指标"
|
||||
/>
|
||||
</Popconfirm>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user