复制issue-不调用copy接口,直接跳编辑页,最后调新建接口
This commit is contained in:
parent
3be536d37a
commit
078a453dcf
|
@ -688,16 +688,12 @@ class Detail extends Component {
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
{/* 复制详情 copyetail*/}
|
{/* 复制详情 copyetail*/}
|
||||||
{/* <Route path="/:owner/:projectsId/issues/:orderId/copyetail"
|
<Route path="/:owner/:projectsId/issues/:orderId/copyetail"
|
||||||
render={
|
|
||||||
(props) => (<OrdercopyDetail {...this.props} {...props} {...this.state} {...common} />)
|
|
||||||
}
|
|
||||||
></Route> */}
|
|
||||||
<Route path="/:owner/:projectsId/issues/:orderId/:operateName"
|
|
||||||
render={
|
render={
|
||||||
(props) => (<OrderupdateDetail {...this.props} {...props} {...this.state} {...common} />)
|
(props) => (<OrderupdateDetail {...this.props} {...props} {...this.state} {...common} />)
|
||||||
}
|
}
|
||||||
></Route>
|
></Route>
|
||||||
|
|
||||||
{/* 任务详情 */}
|
{/* 任务详情 */}
|
||||||
<Route path="/:owner/:projectsId/issues/:orderId"
|
<Route path="/:owner/:projectsId/issues/:orderId"
|
||||||
render={
|
render={
|
||||||
|
|
|
@ -123,22 +123,25 @@ class Detail extends Component {
|
||||||
//复制
|
//复制
|
||||||
copydetail = () => {
|
copydetail = () => {
|
||||||
const { projectsId, orderId, owner } = this.props.match.params;
|
const { projectsId, orderId, owner } = this.props.match.params;
|
||||||
const url = `/${owner}/${projectsId}/issues/${orderId}/copy.json`;
|
// const url = `/${owner}/${projectsId}/issues/${orderId}/copy.json`;
|
||||||
axios
|
// axios
|
||||||
.post(url, {
|
// .post(url, {
|
||||||
project_id: projectsId,
|
// project_id: projectsId,
|
||||||
id: orderId,
|
// id: orderId,
|
||||||
})
|
// })
|
||||||
.then((result) => {
|
// .then((result) => {
|
||||||
if (result) {
|
// if (result) {
|
||||||
this.props.history.push(
|
// this.props.history.push(
|
||||||
`/${owner}/${projectsId}/issues/${result.data.issue_id}/copyetail`
|
// `/${owner}/${projectsId}/issues/${result.data.issue_id}/copyetail`
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
.catch((error) => {
|
// .catch((error) => {
|
||||||
console.log(error);
|
// console.log(error);
|
||||||
});
|
// });
|
||||||
|
this.props.history.push(
|
||||||
|
`/${owner}/${projectsId}/issues/${orderId}/copyetail`
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 翻页
|
// 翻页
|
||||||
|
|
|
@ -178,7 +178,6 @@ class order_form extends Component {
|
||||||
this.setState({
|
this.setState({
|
||||||
isSpin: false,
|
isSpin: false,
|
||||||
});
|
});
|
||||||
console.log(error);
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const url = `/${owner}/${projectsId}/issues/${orderId}.json`;
|
const url = `/${owner}/${projectsId}/issues/${orderId}.json`;
|
||||||
|
|
Loading…
Reference in New Issue