From 037d85b6b7a362a1f7e0eab9fac1c158728d8cda Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Tue, 19 May 2020 18:37:28 +0800 Subject: [PATCH] change issues order menthod --- src/forge/Order/order.js | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/forge/Order/order.js b/src/forge/Order/order.js index 1d3b8b2e..d4dcd290 100644 --- a/src/forge/Order/order.js +++ b/src/forge/Order/order.js @@ -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(); };