mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +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);
|
||||
//7新建或编辑面授课开课
|
||||
export const editPlan = (obj) => http.post("/admin/offcourse/editPlan", obj);
|
||||
export const copyCoursePlan = (params) => http.get("/admin/offcourse/copyCoursePlan", {params});
|
||||
//8课程导出
|
||||
export const exportP = (obj) => http.post("/admin/offcourse/export", obj);
|
||||
//9操作面授课(发布,撤回,删除,审核,停用)
|
||||
|
||||
@@ -1514,7 +1514,7 @@ import {
|
||||
addStudent,
|
||||
studentExport,
|
||||
handleStudent,
|
||||
getMemberInfoApi,
|
||||
getMemberInfoApi, copyCoursePlan,
|
||||
// listReview,
|
||||
// studyRecordList,
|
||||
} from "@/api/indexCourse";
|
||||
@@ -4039,38 +4039,12 @@ export default defineComponent({
|
||||
if (state.copy_hs) {
|
||||
console.log(2222222);
|
||||
if (state.offcourseId && state.offcoursePlanId) {
|
||||
console.log(87887);
|
||||
// 拿数据
|
||||
const item = await detailPlan({
|
||||
offcoursePlanId: Number(state.offcoursePlanId),
|
||||
}).then((res) => {
|
||||
if (res.data.code === 200) return res.data.data;
|
||||
});
|
||||
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();
|
||||
}
|
||||
copyCoursePlan({offcoursePlanId:state.offcourseId}).then(() => {
|
||||
message.destroy();
|
||||
message.success("复制成功");
|
||||
getTableDate3();
|
||||
delete_exit1();
|
||||
rest();
|
||||
});
|
||||
} else if (state.offcourseId) {
|
||||
console.log(87887);
|
||||
|
||||
Reference in New Issue
Block a user