From f9bd73727d251c4a471834861467390d23aea75a Mon Sep 17 00:00:00 2001 From: wyw <571921741@qq.com> Date: Mon, 24 Nov 2025 20:53:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E5=8C=96=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=20>=20=E5=AE=89=E5=85=A8=E6=95=99=E8=82=B2=E4=B8=8E=E5=9F=B9?= =?UTF-8?q?=E8=AE=AD=20>=20=E5=AE=89=E5=85=A8=E6=84=8F=E8=AF=86=E8=B0=83?= =?UTF-8?q?=E6=9F=A5=20=E6=9F=A5=E7=9C=8B=20=E5=A6=82=E6=9E=9C=E6=9C=89?= =?UTF-8?q?=E8=87=AA=E5=B7=B1=EF=BC=8C=E9=BB=98=E8=AE=A4=E5=85=88=E7=9C=8B?= =?UTF-8?q?=E8=87=AA=E5=B7=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CustomPages/SE/SESafeSurveyTest.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/CustomPages/SE/SESafeSurveyTest.js b/src/components/CustomPages/SE/SESafeSurveyTest.js index c71f860..e9feee2 100644 --- a/src/components/CustomPages/SE/SESafeSurveyTest.js +++ b/src/components/CustomPages/SE/SESafeSurveyTest.js @@ -71,14 +71,15 @@ class SESafeSurveyTest extends React.Component { this.setState({ UserList: ret }) + let usr = ret.find(it => it.ID === this.props.login.user.ID); if (this.state.viewAll) { + //如果有自己 先看自己 this.setState({ - SelUsrID: ret[0].ID + SelUsrID: usr != null ? usr.ID : ret[0].ID }, () => { this.getPapers(); }); } else { - let usr = ret.find(it => it.ID === this.props.login.user.ID); if (usr) { this.setState({ SelUsrID: usr.ID @@ -128,7 +129,7 @@ class SESafeSurveyTest extends React.Component { NAME = ret.Nav_Papers[0].Nav_Safe.NAME; END_TIME = ret.Nav_Papers[0].Nav_Safe.END_TIME; } - if (moment().format("YYYY-MM-DD HH:mm:ss") > END_TIME&&this.props.data.tableKey != undefined) { + if (moment().format("YYYY-MM-DD HH:mm:ss") > END_TIME && this.props.data.tableKey != undefined) { message.error('已过答题截止时间!'); this.props.dispatch({ type: 'app/getDataByPost',