新建任务
This commit is contained in:
parent
2a758e088f
commit
21ec6df821
|
@ -17,11 +17,11 @@ class order_form extends Component {
|
||||||
branch_name: "",
|
branch_name: "",
|
||||||
issue_tag_ids: "",
|
issue_tag_ids: "",
|
||||||
fixed_version_id: "",
|
fixed_version_id: "",
|
||||||
tracker_id: "",
|
tracker_id: "1",
|
||||||
issue_type: "1",
|
issue_type: "1",
|
||||||
status_id: "",
|
status_id: "1",
|
||||||
assigned_to_id: "",
|
assigned_to_id: "",
|
||||||
priority_id: "",
|
priority_id: "1",
|
||||||
done_ratio: "0%",
|
done_ratio: "0%",
|
||||||
issue_chosen: undefined,
|
issue_chosen: undefined,
|
||||||
branches: undefined,
|
branches: undefined,
|
||||||
|
@ -44,7 +44,7 @@ class order_form extends Component {
|
||||||
}
|
}
|
||||||
componentDidMount = () => {
|
componentDidMount = () => {
|
||||||
this.getSelectList();
|
this.getSelectList();
|
||||||
setTimeout(this.get_detail(),800);
|
|
||||||
};
|
};
|
||||||
get_detail = () => {
|
get_detail = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
|
@ -102,7 +102,15 @@ class order_form extends Component {
|
||||||
this.setState({
|
this.setState({
|
||||||
issue_chosen: result.data.issue_chosen,
|
issue_chosen: result.data.issue_chosen,
|
||||||
branches: result.data.branches,
|
branches: result.data.branches,
|
||||||
|
isSpin:false
|
||||||
});
|
});
|
||||||
|
if(this.props.form_type === "edit"){
|
||||||
|
this.get_detail();
|
||||||
|
}else{
|
||||||
|
this.props.form.setFieldsValue({
|
||||||
|
...this.state
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|
Loading…
Reference in New Issue