From 793143ad6c8da009da62bec3d4899b66a7babe85 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 20 Jan 2022 11:10:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=88=9B=E5=AE=A2=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=88=97=E8=A1=A8=E5=B7=B2=E9=80=89=E4=B8=93=E5=AE=B6?= =?UTF-8?q?=E8=BF=87=E5=A4=9A=E6=97=B6=E9=A1=B5=E9=9D=A2=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98-=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/military/task/taskAdmin/index.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/military/task/taskAdmin/index.jsx b/src/military/task/taskAdmin/index.jsx index 5b3592f8..f2ad6e64 100644 --- a/src/military/task/taskAdmin/index.jsx +++ b/src/military/task/taskAdmin/index.jsx @@ -47,6 +47,7 @@ export default Form.create()(({ form, showNotification, match, history, state }) const [pulicReview, setPublicReview] = useState(false); const [rules, setRules] = useState(undefined); const [selectedExperts, setSelectedExperts] = useState(undefined); + const [publicTaskId, setPublicTaskId] = useState(undefined); useEffect(()=>{ setCurPage(hashDate(hash) || 1); @@ -429,7 +430,7 @@ export default Form.create()(({ form, showNotification, match, history, state }) okText: '确定', cancelText: '取消', onOk() { - publishExpertsAndRules(record.id).then(response=>{ + publishExpertsAndRules(publicTaskId).then(response=>{ if(response && response.message==="发布成功"){ setReload(Math.random()); } @@ -456,6 +457,7 @@ export default Form.create()(({ form, showNotification, match, history, state }) item.reviewAreas = `${item.reviewAreaOne} ${item.reviewAreaTwo ? `、${item.reviewAreaTwo}`:''} ${item.reviewAreaThree ? `、${item.reviewAreaThree}`:''}`; item.index = (index++) + (curPage > 1 ? (curPage - 1) * 10 : 0); } + setPublicTaskId(record.id); setSelectedExperts(response.data.rows); setPublicReview(true); }