标准化执行 > 安全教育与培训 > 安全意识调查 查看 如果有自己,默认先看自己
This commit is contained in:
parent
a8dcb0ed65
commit
f9bd73727d
@ -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',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user