From c601a46b4753546463e7091d8be3bbbce9ff98aa Mon Sep 17 00:00:00 2001 From: lixg Date: Mon, 13 Feb 2023 20:38:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E5=BC=80=E8=AF=BE?= =?UTF-8?q?=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 31 ++++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 2f300015..8a6b964a 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -1599,7 +1599,8 @@ import { addStudent, studentExport, handleStudent, - getMemberInfoApi, copyCoursePlan, + getMemberInfoApi, + copyCoursePlan, } from "@/api/indexCourse"; import { traverseArr, @@ -1627,7 +1628,7 @@ import FJUpload from "@/components/common/FJUpload"; import { updateStudent } from "@/api/indexProjStu"; import { useStore } from "vuex"; import DropDown from "@/components/common/DropDown"; -import {checkPer} from "@/utils/utils"; +import { checkPer } from "@/utils/utils"; import dayjs from "dayjs"; //列表表格 @@ -3714,7 +3715,7 @@ export default defineComponent({ applyFlag: state.checked1 ? 1 : 0, attach: state.attach, beginTime: dayjs(state.xjkkinputV3[0]).format("YYYY-MM-DD HH:mm:ss"), - endTime: dayjs(state.xjkkinputV3[1]).format( "YYYY-MM-DD HH:mm:ss"), + endTime: dayjs(state.xjkkinputV3[1]).format("YYYY-MM-DD HH:mm:ss"), completeType: type, evalFlag: Number(state.assessmentId) > 0 && state.checked4 ? 1 : 0, evaluateId: Number(state.assessmentId), @@ -3753,15 +3754,15 @@ export default defineComponent({ const handelEditStu = async (itm) => { console.log("编辑开课", itm); - state.offcourseId = itm.id; - state.offcoursePlanId = itm.offcoursePlanId; + state.offcourseId = itm.offcourseId; + state.offcoursePlanId = itm.id; const item = await detailPlan({ offcoursePlanId: Number(state.offcoursePlanId), }).then((res) => { if (res.data.code === 200) return res.data.data; }); - + console.log("测评", item); if (item.evaluateId) { api .queryAppraiseDetailById({ assessmentId: item.evaluateId }) @@ -4009,9 +4010,12 @@ export default defineComponent({ //确认复制课程 操作 const handleDeleteExit = async () => { state.addLoading = true; - + console.log( + "开课的复制删除面授id及开课id", + state.offcourseId, + state.offcoursePlanId + ); if (state.del_hs) { - console.log(11111111); if (state.offcourseId && state.offcoursePlanId && state.studentId) { console.log(111111); handleStudent({ @@ -4116,7 +4120,7 @@ export default defineComponent({ } }; const handleDeleteKaike = (value) => { - state.offcoursePlanId = value.offcoursePlanId; + state.offcoursePlanId = value.id; state.delete_hs = true; state.del_hs = true; @@ -4334,9 +4338,9 @@ export default defineComponent({ state.copy_hs = true; }; const handleCopyP = async (itm) => { - console.log(itm); - state.offcourseId = itm.id; - state.offcoursePlanId = itm.offcoursePlanId; + console.log("开课复制", itm); + state.offcourseId = itm.offcourseId; + state.offcoursePlanId = itm.id; state.delete_hs = true; state.copy_hs = true; @@ -4706,6 +4710,7 @@ export default defineComponent({ //二维码 const qrcodeVisible = (record, type) => { + console.log("点击签到信息", record); state.codevisible = true; state.codeInfo = { title: type == 1 ? "【课程】二维码" : "【签到】二维码", @@ -4717,7 +4722,7 @@ export default defineComponent({ record.offcourseId : process.env.VUE_APP_BASE_API + `/admin/student/studentSign?taskId=${ - record.offcoursePlanId + record.id }&taskType=${2}&type=${3}`, }; console.log("codeInfo", state.codeInfo);