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