请假签到处理
This commit is contained in:
parent
f8ff38a58b
commit
9ab5ae470e
@ -147,21 +147,15 @@ class SE018EditPage extends React.Component {
|
||||
})
|
||||
}
|
||||
onSignIn = () => {
|
||||
var ud = null
|
||||
if (!this.state.data || (this.state.data.STATUS !== 1) || !this.state.data.Nav_Users) {
|
||||
if (this.state.AllUsersRecord) {
|
||||
var checkMore = this.state.AllUsersRecord.find(e => e.USER_ID == this.props.login.user.ID)
|
||||
if (!checkMore.IS_RESEND) {
|
||||
return;
|
||||
} else {
|
||||
ud = checkMore
|
||||
}
|
||||
} else {
|
||||
var ud = this.state.data.Nav_Users.find(it => it.USER_ID === this.props.login.user.ID)
|
||||
if ((ud == null || ud == undefined) && this.state.AllUsersRecord) {
|
||||
var checkMore = this.state.AllUsersRecord.find(e => e.USER_ID == this.props.login.user.ID)
|
||||
if (!checkMore.IS_RESEND) {
|
||||
return;
|
||||
} else {
|
||||
ud = checkMore
|
||||
}
|
||||
}
|
||||
if (ud == null)
|
||||
ud = this.state.data.Nav_Users.find(it => it.USER_ID === this.props.login.user.ID)
|
||||
if (!ud) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user