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