mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-20 08:16:46 +08:00
--fix 复烤开课数据
This commit is contained in:
@@ -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