新建任务
This commit is contained in:
parent
2a758e088f
commit
21ec6df821
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue