diff --git a/src/components/drawers/project/ProjectOnlineManage.vue b/src/components/drawers/project/ProjectOnlineManage.vue index 16bbc9ca..cdfe8fcc 100644 --- a/src/components/drawers/project/ProjectOnlineManage.vue +++ b/src/components/drawers/project/ProjectOnlineManage.vue @@ -348,8 +348,8 @@ export default { currentStageId: props.datasource.stageId, type: 1, pid: props.datasource.projectId, - taskId: props.datasource.projectTaskId, - taskType: props.datasource.type, + taskId: props.datasource.id, + taskType: props.datasource.type, status: state.projectName, studentName: state.name, }); @@ -360,8 +360,8 @@ export default { currentStageId: props.datasource.stageId, type: 1, pid: props.datasource.projectId, - taskId: props.datasource.projectTaskId, - taskType: props.datasource.type, + taskId: props.datasource.id, + taskType: props.datasource.type, status: state.projectName, studentName: state.name, }) @@ -409,9 +409,9 @@ export default { // 处理在线课字段和表格中字段保持一致 let obj = { studentUserNo: res.data.data.studyDetailList[i].studentCode, - studentName: res.data.data.studyDetailList[i].studentName, - studentDepartName: res.data.data.studyDetailList[i].studentDepartName, - studentJobName: res.data.data.studyDetailList[i].studentJobName, + studentName: res.data.data.studyDetailList[i].studentName, + studentDepartName: res.data.data.studyDetailList[i].studentDepartName, + studentJobName: res.data.data.studyDetailList[i].studentJobName, lastStudyTime: res.data.data.studyDetailList[i].finishedTime, finishStatus: res.data.data.studyDetailList[i].status?res.data.data.studyDetailList[i].status:0 } @@ -709,4 +709,4 @@ export default { } } - + diff --git a/src/components/student/CommonStudent.vue b/src/components/student/CommonStudent.vue index 960b0dc7..fbcc2eb7 100644 --- a/src/components/student/CommonStudent.vue +++ b/src/components/student/CommonStudent.vue @@ -897,7 +897,6 @@ const submitAuth = () => { }; function handleStageOk() { - debugger // 判断添加人数是否已超过限制人数 限制 = 本次添加的人 + 原有的人 if (props.groupMemberCount < selectsData.value.studentList.length + props.groupMemberNumber) { return message.warning("添加小组学员超过最大值"); diff --git a/src/components/vote/AddVote.vue b/src/components/vote/AddVote.vue index e28e9ae9..b5d9224b 100644 --- a/src/components/vote/AddVote.vue +++ b/src/components/vote/AddVote.vue @@ -193,6 +193,7 @@ const disabledRangeTime = () => ({ async function confirm() { + debugger await validate().catch(({errorFields}) => { message.warning(errorFields[0].errors.join()); throw Error("数据校验不通过") diff --git a/src/components/vote/CreateVote.vue b/src/components/vote/CreateVote.vue index 39771f6a..2d691c91 100644 --- a/src/components/vote/CreateVote.vue +++ b/src/components/vote/CreateVote.vue @@ -82,6 +82,7 @@ const emit = defineEmits({}) const formData = ref({list: [{}]}) const initData = ref({list: [{}]}) +debugger console.log(prop.options.length); const visible = ref(false) @@ -118,6 +119,7 @@ const closeDrawer = () => { }; async function confirm() { + debugger console.log('confirm'); initData.value = JSON.parse(JSON.stringify(formData.value)); emit('update:options', formData.value.list) @@ -126,6 +128,7 @@ async function confirm() { } function handleAdd() { + debugger formData.value.list.push({}) }