修改bug
This commit is contained in:
parent
029e287b23
commit
18e751d00a
@ -87,7 +87,7 @@ class HM042ShowPrint extends React.Component {
|
||||
removeDuplicateUser(arr) {
|
||||
let obj = {};
|
||||
arr = arr.reduce((newArr, next) => {
|
||||
obj[next.USER_ID] ? "" : (obj[next.USER_ID] = true && newArr.push(next));
|
||||
obj[next.CHARGE_USER_ID] ? "" : (obj[next.CHARGE_USER_ID] = true && newArr.push(next));
|
||||
return newArr;
|
||||
}, []);
|
||||
return arr;
|
||||
@ -129,12 +129,12 @@ class HM042ShowPrint extends React.Component {
|
||||
ID: this.props.data.id,
|
||||
},
|
||||
onComplete: (result) => {
|
||||
if (result != null && this.props.data.TaskID != null) {
|
||||
if (result) {
|
||||
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
|
||||
this.setState({ isAudit: 'none' })
|
||||
} else {
|
||||
this.setState({ isAudit: 'inline' })
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
this.props.dispatch({
|
||||
type: 'app/getDataByPost',
|
||||
@ -143,12 +143,12 @@ class HM042ShowPrint extends React.Component {
|
||||
ID: this.props.data.id,
|
||||
},
|
||||
onComplete: (result) => {
|
||||
if (result != null && this.props.data.TaskID != null) {
|
||||
if (result) {
|
||||
if (this.props.data.tableKey == "2" || this.props.data.tableKey == undefined) {
|
||||
this.setState({ BtnSignDisplay: 'none' })
|
||||
} else {
|
||||
this.setState({ BtnSignDisplay: 'inline' })
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@ -629,7 +629,7 @@ class Home extends React.Component {
|
||||
TaskID: TaskID,
|
||||
onCancel: this.handleCancel,
|
||||
taskCode: taskCode,
|
||||
tableKey: this.state.tableKey,
|
||||
tableKey: this.state.overDataKey,
|
||||
homeReload: true,
|
||||
},
|
||||
formCode: formCode,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user