-- 复制项目

This commit is contained in:
yuping
2022-12-26 20:48:19 +08:00
parent daa48a3bb1
commit f00b3e945f

View File

@@ -1230,22 +1230,13 @@ export default {
}; };
//确认复制 //确认复制
const copyProject = () => { const copyProject = () => {
let obj = { state.tableLoading = true
api.handleProject({
projectId: state.copyProjectId, projectId: state.copyProjectId,
type: 2, type: 2,
}; }).then(() => getTableDate())
api
.handleProject(obj)
.then((res) => {
console.log("复制成功", res);
message.destroy();
message.success("复制成功"); message.success("复制成功");
state.copyModal = false; state.copyModal = false;
getTableDate();
})
.catch((err) => {
console.log("复制失败", err);
});
}; };
//打开提交审核弹窗 //打开提交审核弹窗
const showReviewModal = (projectId) => { const showReviewModal = (projectId) => {