forked from Gitlink/forgeplus-react
change issues order menthod
This commit is contained in:
parent
b6b8215d5b
commit
037d85b6b7
|
@ -151,32 +151,26 @@ class order extends Component {
|
|||
isSpin: true,
|
||||
});
|
||||
let option_id = e.key === "all" ? undefined : e.key;
|
||||
this.setState({
|
||||
["${id}s"]: name,
|
||||
});
|
||||
// this.setState({
|
||||
// ["${id}s"]: name,
|
||||
// });
|
||||
this.state.select_params[`${id}`] = option_id;
|
||||
this.state.select_params.page = 1;
|
||||
this.state[`${id}s`] = name;
|
||||
if(current_user){
|
||||
if(this.state.select_params.author_id && this.state.select_params.author_id === current_user.user_id){
|
||||
this.setState({
|
||||
author_ids: current_user.username,
|
||||
author_id: current_user.user_id
|
||||
});
|
||||
this.state.author_id = current_user.user_id;
|
||||
}else if(this.state.select_params.assigned_to_id && this.state.select_params.assigned_to_id === current_user.user_id){
|
||||
this.setState({
|
||||
assigned_to_ids: current_user.username,
|
||||
assigned_to_id: current_user.user_id
|
||||
});
|
||||
this.state.assigned_to_id = current_user.user_id;
|
||||
}else{
|
||||
this.setState({
|
||||
author_ids: "发布人",
|
||||
author_id: undefined,
|
||||
assigned_to_ids: "指派人",
|
||||
assigned_to_id: undefined
|
||||
});
|
||||
}
|
||||
}
|
||||
console.log("author_id", this.state.author_id)
|
||||
console.log("assigned_to_id", this.state.assigned_to_id)
|
||||
|
||||
this.getIssueList();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue