diff --git a/src/pages/Competitions/Detail/SubmitResult.tsx b/src/pages/Competitions/Detail/SubmitResult.tsx index 5eb20761..2e733ad8 100644 --- a/src/pages/Competitions/Detail/SubmitResult.tsx +++ b/src/pages/Competitions/Detail/SubmitResult.tsx @@ -18,10 +18,11 @@ interface Ranking{ userinfo:any Editable:any dispatch:any - HeaderDetail:any + HeaderDetail:any, + StaffDetail:any } -function Ranking({ChartRules,ItemData,getCharts,Selectkey,HeaderDetail,getChartRules,userinfo,Editable,dispatch}:Ranking){ +function Ranking({ChartRules,ItemData,getCharts,Selectkey,HeaderDetail,getChartRules,userinfo,Editable,dispatch,StaffDetail}:Ranking){ const [isUpdate,setIsupdate]=useState(false); const [defaultValue,setDefaultValue]=useState(''); const [ClickButton,setClickButton]=useState(true); @@ -172,14 +173,18 @@ function Ranking({ChartRules,ItemData,getCharts,Selectkey,HeaderDetail,getChartR return(
{ChartRules?.stages?.length>0?null:} - - {ChartRules?.stages?.length>0&&{ - setIsupdate(true) - + {ChartRules?.stages?.length>0&& + { + setIsupdate(true) }}> 编辑 - :提交时间:{moment(item?.start_time).format("YYYY-MM-DD HH:mm:ss")}至{moment(item?.end_time).format("YYYY-MM-DD HH:mm:ss")}} onChange={(e)=>{ + }}>提交结果 + } onChange={(e)=>{ setIsupdate(false) let data=ChartRules?.stages?.filter(item=>parseInt(e)===parseInt(item?.id))[0]; setItem(data); diff --git a/src/pages/Competitions/Detail/index.tsx b/src/pages/Competitions/Detail/index.tsx index f15a2f6c..0d9f06d9 100644 --- a/src/pages/Competitions/Detail/index.tsx +++ b/src/pages/Competitions/Detail/index.tsx @@ -403,7 +403,7 @@ const competitionDetails: FC = ({ {isRanKing ? : null} {ISsee ? : null} {!ISsee && !isRanKing && !isAward && !MdTab ? : null} - {MdTab && } + {MdTab && }