新建任务

This commit is contained in:
caishi 2020-07-22 10:13:12 +08:00
parent 2a758e088f
commit 21ec6df821
1 changed files with 12 additions and 4 deletions

View File

@ -17,11 +17,11 @@ class order_form extends Component {
branch_name: "",
issue_tag_ids: "",
fixed_version_id: "",
tracker_id: "",
tracker_id: "1",
issue_type: "1",
status_id: "",
status_id: "1",
assigned_to_id: "",
priority_id: "",
priority_id: "1",
done_ratio: "0%",
issue_chosen: undefined,
branches: undefined,
@ -44,7 +44,7 @@ class order_form extends Component {
}
componentDidMount = () => {
this.getSelectList();
setTimeout(this.get_detail(),800);
};
get_detail = () => {
this.setState({
@ -102,7 +102,15 @@ class order_form extends Component {
this.setState({
issue_chosen: result.data.issue_chosen,
branches: result.data.branches,
isSpin:false
});
if(this.props.form_type === "edit"){
this.get_detail();
}else{
this.props.form.setFieldsValue({
...this.state
});
}
}
}).catch((error) => {
console.log(error);