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.voteStemDtoList" :key="index">
|
<div class="ques" v-for=" item,index in voteResource.ballotVo.voteStemVoList" :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,8 +50,7 @@
|
|||||||
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",
|
||||||
@@ -127,15 +126,19 @@ export default {
|
|||||||
function getData() {
|
function getData() {
|
||||||
console.log('我是请求的参数', {
|
console.log('我是请求的参数', {
|
||||||
"courseId": props.courseID,
|
"courseId": props.courseID,
|
||||||
"userInfo": userInfo.value,
|
"studentId": userInfo.value.id,
|
||||||
"voteId": props.voteID
|
"voteSubmitId": props.voteID
|
||||||
})
|
})
|
||||||
queryStemByStemId(props.courseID).then(res=>{
|
api.QueryVoteTaskDetailById({
|
||||||
|
"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 = []
|
||||||
//2023-02-28
|
let dataQuestion = state.voteResource.ballotVo.voteStemVoList
|
||||||
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){
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
<EScore v-model:eScorevisible="eScorevisible" />
|
<EScore v-model:eScorevisible="eScorevisible" />
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
<!-- 查看答卷抽屉 -->
|
<!-- 查看答卷抽屉 -->
|
||||||
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource"/>
|
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource1"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -321,7 +321,7 @@ export default {
|
|||||||
{text.record.status === 1 || text.record.status === 9 ?
|
{text.record.status === 1 || text.record.status === 9 ?
|
||||||
<a onClick={()=>{
|
<a onClick={()=>{
|
||||||
state.studentKid = text.record.studentKid;
|
state.studentKid = text.record.studentKid;
|
||||||
state.datasource = text.record;
|
state.datasource1 = text.record;
|
||||||
state.CAvisible = true;
|
state.CAvisible = true;
|
||||||
}}>查看答卷 </a> :
|
}}>查看答卷 </a> :
|
||||||
<span style="color:rgba(0, 0, 0, 0.25);cursor:not-allowed;"> 查看答卷 </span>
|
<span style="color:rgba(0, 0, 0, 0.25);cursor:not-allowed;"> 查看答卷 </span>
|
||||||
@@ -334,7 +334,7 @@ export default {
|
|||||||
loadingData: true,
|
loadingData: true,
|
||||||
studentKid: '',
|
studentKid: '',
|
||||||
CAvisible: false,
|
CAvisible: false,
|
||||||
datasource: ''
|
datasource1: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
<EScore v-model:eScorevisible="eScorevisible" />
|
<EScore v-model:eScorevisible="eScorevisible" />
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
<!-- 查看答卷抽屉 -->
|
<!-- 查看答卷抽屉 -->
|
||||||
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource" />
|
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource1" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -306,7 +306,7 @@ export default {
|
|||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
state.studentKid = text.record.studentKid;
|
state.studentKid = text.record.studentKid;
|
||||||
state.datasource = text.record;
|
state.datasource1 = text.record;
|
||||||
state.CAvisible = true;
|
state.CAvisible = true;
|
||||||
}}>
|
}}>
|
||||||
查看答卷
|
查看答卷
|
||||||
@@ -321,7 +321,7 @@ export default {
|
|||||||
disabled
|
disabled
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
state.studentKid = text.record.studentKid;
|
state.studentKid = text.record.studentKid;
|
||||||
state.datasource = text.record;
|
state.datasource1 = text.record;
|
||||||
state.CAvisible = true;
|
state.CAvisible = true;
|
||||||
}}>
|
}}>
|
||||||
查看答卷
|
查看答卷
|
||||||
@@ -336,7 +336,7 @@ export default {
|
|||||||
loadingData: true,
|
loadingData: true,
|
||||||
studentKid: '',
|
studentKid: '',
|
||||||
CAvisible: false,
|
CAvisible: false,
|
||||||
datasource: ''
|
datasource1: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user