diff --git a/src/components/drawers/CheckVote.vue b/src/components/drawers/CheckVote.vue index f68db461..cfbde7df 100644 --- a/src/components/drawers/CheckVote.vue +++ b/src/components/drawers/CheckVote.vue @@ -19,7 +19,7 @@
投票题目
-
+
{{ index+1 +"."+ item.voteStemName }}
@@ -50,7 +50,8 @@ import { toRefs,reactive } from '@vue/reactivity'; import {computed} from "vue"; import { useStore } from "vuex"; -import * as api from "../../api/indexTaskManage"; +// import * as api from "../../api/indexTaskManage"; +import {queryStemByStemId} from '@/api/indexVote'; export default { name:"CheckWork", @@ -126,19 +127,15 @@ export default { function getData() { console.log('我是请求的参数', { "courseId": props.courseID, - "studentId": userInfo.value.id, - "voteSubmitId": props.voteID + "userInfo": userInfo.value, + "voteId": props.voteID }) - api.QueryVoteTaskDetailById({ - "courseId": props.courseID, - "studentId": userInfo.value.id, - "voteSubmitId": props.voteID - }).then(res=>{ + queryStemByStemId(props.courseID).then(res=>{ console.log(res) state.voteResource = res.data.data - let choiceArr = [] - let dataQuestion = state.voteResource.ballotVo.voteStemVoList + //2023-02-28 + let dataQuestion = state.voteResource.voteStemDtoList for(let i=0;i getTableDate()); - message.success("复制成功"); + .then(() => { + state.tableLoading = false; + message.success("复制成功"); + getTableDate() + }); }; //打开提交审核弹窗 const showReviewModal = (projectId) => {