5.4 点击查看其他变更公告会导致新增变更公告cs_anno_id变为查看变更公告的id
This commit is contained in:
@ -154,7 +154,7 @@ const BiddingAnnouncement: React.FC<BiddingAnnouncementProps> = (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<BiddingAnnouncementProps> = (props) => {
|
||||
"id": pkId,
|
||||
"annoNature": annoNature,
|
||||
"tpId": tpId,
|
||||
"csAnnoId": pkId,
|
||||
"csAnnoId": FpkId,
|
||||
"attDatasetId": form.getFieldValue("attDatasetId"),
|
||||
"openhallTitle": form.getFieldValue("openhallIdTime"),//开标大厅 时间段
|
||||
"contentWithStyle": braftRef.current.getHtml().replace(/<table border="0"/, '<table border="1"'),//富文本正文
|
||||
|
@ -43,7 +43,7 @@ const BiddingAnnouncementList: React.FC<{}> = (props) => {
|
||||
const [updateVisible4Change, setUpdateVisible4Change] = useState<boolean>(false);//变更公告
|
||||
const [updateChange, setUpdateChange] = useState<string>('');//弹窗名
|
||||
const [type, setType] = useState<any>('cease');//弹窗类型
|
||||
const [pkId, setPkId] = useState<string>();//公告/邀请函id
|
||||
const [pkId, setPkId] = useState<string>("");//公告/邀请函id
|
||||
const [tpId, setTpId] = useState<any>(getProId);//项目id
|
||||
const [dataSource, setdataSource] = useState<any[]>([]); //公告列表数据
|
||||
const [dataSourcePage, setDataSourcePage] = useState<any>(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) => {
|
||||
</Modal>
|
||||
) : null}
|
||||
{updateVisible ? (
|
||||
<BiddingAnnouncement key={Math.random()} SX={() => setRefresh(Math.random() + 1)} titleName={updateChange}
|
||||
<BiddingAnnouncement SX={() => setRefresh(Math.random() + 1)} titleName={updateChange}
|
||||
pkId={pkId} type={type} tpId={tpId}
|
||||
onCancel={() => setUpdateVisible(false)} modalVisible={updateVisible} FpkId={FpkId}
|
||||
ChangeSX={() => GetList(FpkId)} />
|
||||
) : null}
|
||||
{updateVisible4Change ? (
|
||||
<BiddingAnnouncement4Change key={Math.random()} SX={() => setRefresh(Math.random() + 1)}
|
||||
<BiddingAnnouncement4Change SX={() => setRefresh(Math.random() + 1)}
|
||||
titleName={updateChange} pkId={pkId} type={type} tpId={tpId}
|
||||
onCancel={() => setUpdateVisible4Change(false)}
|
||||
modalVisible={updateVisible4Change} FpkId={FpkId}
|
||||
|
Reference in New Issue
Block a user