mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
--fix 复制
This commit is contained in:
@@ -974,27 +974,13 @@ export default {
|
|||||||
};
|
};
|
||||||
//确认复制
|
//确认复制
|
||||||
const copyLearnPath = () => {
|
const copyLearnPath = () => {
|
||||||
let obj = {
|
state.copyModal = false;
|
||||||
|
state.tableLoading = true;
|
||||||
|
api.handleLearnPath({
|
||||||
routerId: state.copyPathId,
|
routerId: state.copyPathId,
|
||||||
type: 2,
|
type: 2,
|
||||||
};
|
}).then(() => {getLearnPath();})
|
||||||
api
|
|
||||||
.handleLearnPath(obj)
|
|
||||||
.then((res) => {
|
|
||||||
if (res.data.code === 200) {
|
|
||||||
console.log("复制成功", res);
|
|
||||||
message.destroy();
|
|
||||||
message.success("复制成功");
|
message.success("复制成功");
|
||||||
state.copyModal = false;
|
|
||||||
getLearnPath();
|
|
||||||
}
|
|
||||||
if (res.data.code === -1) {
|
|
||||||
message.warning(res.data.msg);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch((err) => {
|
|
||||||
console.log("复制失败", err);
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//显示结束窗口
|
//显示结束窗口
|
||||||
|
|||||||
@@ -1355,15 +1355,14 @@ export default {
|
|||||||
};
|
};
|
||||||
//确认复制
|
//确认复制
|
||||||
const copyProject = () => {
|
const copyProject = () => {
|
||||||
|
state.copyModal = false;
|
||||||
state.tableLoading = true;
|
state.tableLoading = true;
|
||||||
api
|
api.handleProject({
|
||||||
.handleProject({
|
|
||||||
projectId: state.copyProjectId,
|
projectId: state.copyProjectId,
|
||||||
type: 2,
|
type: 2
|
||||||
})
|
})
|
||||||
.then(() => getTableDate());
|
.then(() => getTableDate());
|
||||||
message.success("复制成功");
|
message.success("复制成功");
|
||||||
state.copyModal = false;
|
|
||||||
};
|
};
|
||||||
//打开提交审核弹窗
|
//打开提交审核弹窗
|
||||||
const showReviewModal = (projectId) => {
|
const showReviewModal = (projectId) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user