mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 21:36:44 +08:00
--fix 复烤开课数据
This commit is contained in:
@@ -31,6 +31,7 @@ export const detailPlan = (obj) =>
|
|||||||
export const edit = (obj) => http.post("/admin/offcourse/edit", obj);
|
export const edit = (obj) => http.post("/admin/offcourse/edit", obj);
|
||||||
//7新建或编辑面授课开课
|
//7新建或编辑面授课开课
|
||||||
export const editPlan = (obj) => http.post("/admin/offcourse/editPlan", obj);
|
export const editPlan = (obj) => http.post("/admin/offcourse/editPlan", obj);
|
||||||
|
export const copyCoursePlan = (params) => http.get("/admin/offcourse/copyCoursePlan", {params});
|
||||||
//8课程导出
|
//8课程导出
|
||||||
export const exportP = (obj) => http.post("/admin/offcourse/export", obj);
|
export const exportP = (obj) => http.post("/admin/offcourse/export", obj);
|
||||||
//9操作面授课(发布,撤回,删除,审核,停用)
|
//9操作面授课(发布,撤回,删除,审核,停用)
|
||||||
|
|||||||
@@ -1514,7 +1514,7 @@ import {
|
|||||||
addStudent,
|
addStudent,
|
||||||
studentExport,
|
studentExport,
|
||||||
handleStudent,
|
handleStudent,
|
||||||
getMemberInfoApi,
|
getMemberInfoApi, copyCoursePlan,
|
||||||
// listReview,
|
// listReview,
|
||||||
// studyRecordList,
|
// studyRecordList,
|
||||||
} from "@/api/indexCourse";
|
} from "@/api/indexCourse";
|
||||||
@@ -4039,38 +4039,12 @@ export default defineComponent({
|
|||||||
if (state.copy_hs) {
|
if (state.copy_hs) {
|
||||||
console.log(2222222);
|
console.log(2222222);
|
||||||
if (state.offcourseId && state.offcoursePlanId) {
|
if (state.offcourseId && state.offcoursePlanId) {
|
||||||
console.log(87887);
|
copyCoursePlan({offcoursePlanId:state.offcourseId}).then(() => {
|
||||||
// 拿数据
|
message.destroy();
|
||||||
const item = await detailPlan({
|
message.success("复制成功");
|
||||||
offcoursePlanId: Number(state.offcoursePlanId),
|
getTableDate3();
|
||||||
}).then((res) => {
|
delete_exit1();
|
||||||
if (res.data.code === 200) return res.data.data;
|
rest();
|
||||||
});
|
|
||||||
const obj = {
|
|
||||||
offcourseId: item.offcourseId,
|
|
||||||
offcoursePlanId: null, //开课ID,不传代表新增
|
|
||||||
address: item.address,
|
|
||||||
applyFlag: item.applyFlag,
|
|
||||||
attach: item.attach,
|
|
||||||
beginTime: new Date(item.beginTime) / 1000,
|
|
||||||
completeType: item.completeType,
|
|
||||||
endTime: new Date(item.endTime) / 1000,
|
|
||||||
evalFlag: item.evalFlag,
|
|
||||||
name: item.name + "(1)",
|
|
||||||
signFlag: item.signFlag, //是否允许未报名的签到:1是0否
|
|
||||||
//signWordFlag: item.signWordFlag, //签到是否需要口令:1是0否
|
|
||||||
teacherId: item.teacherId,
|
|
||||||
teacher: item.teacher,
|
|
||||||
};
|
|
||||||
console.log(obj);
|
|
||||||
editPlan(obj).then((res) => {
|
|
||||||
if (res.data.code === 200) {
|
|
||||||
message.destroy();
|
|
||||||
message.success("复制成功");
|
|
||||||
getTableDate3();
|
|
||||||
delete_exit1();
|
|
||||||
rest();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
} else if (state.offcourseId) {
|
} else if (state.offcourseId) {
|
||||||
console.log(87887);
|
console.log(87887);
|
||||||
|
|||||||
Reference in New Issue
Block a user