mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 14:26:45 +08:00
fix:投票管理-查看投票无数据
项目复制 一直转圈
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="basetext"><span>投票题目</span></div>
|
<div class="basetext"><span>投票题目</span></div>
|
||||||
<div v-if="voteResource" class="basequestion">
|
<div v-if="voteResource" class="basequestion">
|
||||||
<div class="ques" v-for=" item,index in voteResource.ballotVo.voteStemVoList" :key="index">
|
<div class="ques" v-for=" item,index in voteResource.voteStemDtoList" :key="index">
|
||||||
<div class="quename">{{ index+1 +"."+ item.voteStemName }}</div>
|
<div class="quename">{{ index+1 +"."+ item.voteStemName }}</div>
|
||||||
<div class="queanswer">
|
<div class="queanswer">
|
||||||
<a-radio-group v-model:value="currentChoice[index]">
|
<a-radio-group v-model:value="currentChoice[index]">
|
||||||
@@ -50,7 +50,8 @@
|
|||||||
import { toRefs,reactive } from '@vue/reactivity';
|
import { toRefs,reactive } from '@vue/reactivity';
|
||||||
import {computed} from "vue";
|
import {computed} from "vue";
|
||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
import * as api from "../../api/indexTaskManage";
|
// import * as api from "../../api/indexTaskManage";
|
||||||
|
import {queryStemByStemId} from '@/api/indexVote';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name:"CheckWork",
|
name:"CheckWork",
|
||||||
@@ -126,19 +127,15 @@ export default {
|
|||||||
function getData() {
|
function getData() {
|
||||||
console.log('我是请求的参数', {
|
console.log('我是请求的参数', {
|
||||||
"courseId": props.courseID,
|
"courseId": props.courseID,
|
||||||
"studentId": userInfo.value.id,
|
"userInfo": userInfo.value,
|
||||||
"voteSubmitId": props.voteID
|
"voteId": props.voteID
|
||||||
})
|
})
|
||||||
api.QueryVoteTaskDetailById({
|
queryStemByStemId(props.courseID).then(res=>{
|
||||||
"courseId": props.courseID,
|
|
||||||
"studentId": userInfo.value.id,
|
|
||||||
"voteSubmitId": props.voteID
|
|
||||||
}).then(res=>{
|
|
||||||
console.log(res)
|
console.log(res)
|
||||||
state.voteResource = res.data.data
|
state.voteResource = res.data.data
|
||||||
|
|
||||||
let choiceArr = []
|
let choiceArr = []
|
||||||
let dataQuestion = state.voteResource.ballotVo.voteStemVoList
|
//2023-02-28
|
||||||
|
let dataQuestion = state.voteResource.voteStemDtoList
|
||||||
for(let i=0;i<dataQuestion.length;i++){
|
for(let i=0;i<dataQuestion.length;i++){
|
||||||
for(let j=0;j<dataQuestion[i].optionDetailList.length;j++){
|
for(let j=0;j<dataQuestion[i].optionDetailList.length;j++){
|
||||||
if(dataQuestion[i].optionDetailList[j].isAnswer){
|
if(dataQuestion[i].optionDetailList[j].isAnswer){
|
||||||
|
|||||||
@@ -1346,8 +1346,11 @@ export default {
|
|||||||
projectId: state.copyProjectId,
|
projectId: state.copyProjectId,
|
||||||
type: 2
|
type: 2
|
||||||
})
|
})
|
||||||
.then(() => getTableDate());
|
.then(() => {
|
||||||
message.success("复制成功");
|
state.tableLoading = false;
|
||||||
|
message.success("复制成功");
|
||||||
|
getTableDate()
|
||||||
|
});
|
||||||
};
|
};
|
||||||
//打开提交审核弹窗
|
//打开提交审核弹窗
|
||||||
const showReviewModal = (projectId) => {
|
const showReviewModal = (projectId) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user