diff --git a/src/pages/Bid/BiddingAnnouncement/components/BiddingAnnouncement4Change.tsx b/src/pages/Bid/BiddingAnnouncement/components/BiddingAnnouncement4Change.tsx index b57bddc..6f5327b 100644 --- a/src/pages/Bid/BiddingAnnouncement/components/BiddingAnnouncement4Change.tsx +++ b/src/pages/Bid/BiddingAnnouncement/components/BiddingAnnouncement4Change.tsx @@ -154,7 +154,7 @@ const BiddingAnnouncement: React.FC = (props) => { if (type == "cease") { return; } else if (type == "changeNew") {//==========================================================创建变更公告 - GetNoticeMsg(pkId).then(res => { + GetNoticeMsg(FpkId).then(res => { if (res.code == 200) { const data = res.data let value = []; @@ -305,7 +305,7 @@ const BiddingAnnouncement: React.FC = (props) => { "id": pkId, "annoNature": annoNature, "tpId": tpId, - "csAnnoId": pkId, + "csAnnoId": FpkId, "attDatasetId": form.getFieldValue("attDatasetId"), "openhallTitle": form.getFieldValue("openhallIdTime"),//开标大厅 时间段 "contentWithStyle": braftRef.current.getHtml().replace(/ = (props) => { const [updateVisible4Change, setUpdateVisible4Change] = useState(false);//变更公告 const [updateChange, setUpdateChange] = useState('');//弹窗名 const [type, setType] = useState('cease');//弹窗类型 - const [pkId, setPkId] = useState();//公告/邀请函id + const [pkId, setPkId] = useState("");//公告/邀请函id const [tpId, setTpId] = useState(getProId);//项目id const [dataSource, setdataSource] = useState([]); //公告列表数据 const [dataSourcePage, setDataSourcePage] = useState(1);//当前页数 @@ -457,6 +457,7 @@ const BiddingAnnouncementList: React.FC<{}> = (props) => { const creatChangeNotice = () => { setUpdateVisible4Change(true); setUpdateChange('创建变更公告'); + setPkId(""); setType("changeNew"); } /*编辑变更公告*/ @@ -671,13 +672,13 @@ const BiddingAnnouncementList: React.FC<{}> = (props) => { ) : null} {updateVisible ? ( - setRefresh(Math.random() + 1)} titleName={updateChange} + setRefresh(Math.random() + 1)} titleName={updateChange} pkId={pkId} type={type} tpId={tpId} onCancel={() => setUpdateVisible(false)} modalVisible={updateVisible} FpkId={FpkId} ChangeSX={() => GetList(FpkId)} /> ) : null} {updateVisible4Change ? ( - setRefresh(Math.random() + 1)} + setRefresh(Math.random() + 1)} titleName={updateChange} pkId={pkId} type={type} tpId={tpId} onCancel={() => setUpdateVisible4Change(false)} modalVisible={updateVisible4Change} FpkId={FpkId}