单一暂存
This commit is contained in:
@ -48,6 +48,7 @@ import RiskPrevention from "@/utils/RiskPrevention"
|
||||
import Dating from '@/images/招标公告/dating.jpg';
|
||||
import './style.less';
|
||||
import TextArea from "antd/lib/input/TextArea"
|
||||
import RiskPreventionSoft from "@/utils/RiskPreventionSoft"
|
||||
|
||||
interface BiddingInvitation {
|
||||
type: string;
|
||||
@ -946,13 +947,14 @@ const BiddingInvitation: React.FC<BiddingInvitation> = (props) => {
|
||||
</TabPane>
|
||||
</Tabs>
|
||||
{/**风控组件 */}
|
||||
{riskVisible && <RiskPrevention
|
||||
{riskVisible && <RiskPreventionSoft
|
||||
modalVisible={riskVisible}
|
||||
onCancel={() => {
|
||||
setRiskVisible(false)
|
||||
setRiskData([])
|
||||
}}
|
||||
data={riskData}
|
||||
onSubmit={() => submit()}
|
||||
/>}
|
||||
|
||||
</Spin>
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React from 'react';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Modal, Tag } from 'antd';
|
||||
import { ExclamationCircleOutlined } from '@ant-design/icons';
|
||||
import type { ProColumns } from '@ant-design/pro-table';
|
||||
@ -21,6 +21,7 @@ const modalHeight = window.innerHeight * 96 / 100;
|
||||
*/
|
||||
const RiskPreventionSoft: React.FC<RiskPreventionSoftProps> = (props) => {
|
||||
const { modalVisible, onCancel, onSubmit, data } = props;
|
||||
const [spinning, setSping] = useState<boolean>(false);//加载遮罩
|
||||
|
||||
const columns: ProColumns<any[]>[] = [
|
||||
{
|
||||
@ -53,6 +54,11 @@ const RiskPreventionSoft: React.FC<RiskPreventionSoftProps> = (props) => {
|
||||
title: '规则相应内容',
|
||||
},
|
||||
];
|
||||
useEffect(()=>{
|
||||
for (const iterator of data) {
|
||||
|
||||
}
|
||||
},[])
|
||||
|
||||
return (
|
||||
<Modal
|
||||
@ -64,6 +70,7 @@ const RiskPreventionSoft: React.FC<RiskPreventionSoftProps> = (props) => {
|
||||
bodyStyle={{ maxHeight: modalHeight - 107, overflowY: 'auto', padding: '8px 24px 16px' }}
|
||||
centered
|
||||
onCancel={() => onCancel()}
|
||||
okButtonProps={{hidden: true}}
|
||||
onOk={() => {
|
||||
onSubmit();
|
||||
onCancel();
|
||||
|
Reference in New Issue
Block a user