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="basetext"><span>投票题目</span></div>
|
||||
<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="queanswer">
|
||||
<a-radio-group v-model:value="currentChoice[index]">
|
||||
@@ -50,8 +50,7 @@
|
||||
import { toRefs,reactive } from '@vue/reactivity';
|
||||
import {computed} from "vue";
|
||||
import { useStore } from "vuex";
|
||||
// import * as api from "../../api/indexTaskManage";
|
||||
import {queryStemByStemId} from '@/api/indexVote';
|
||||
import * as api from "../../api/indexTaskManage";
|
||||
|
||||
export default {
|
||||
name:"CheckWork",
|
||||
@@ -127,15 +126,19 @@ export default {
|
||||
function getData() {
|
||||
console.log('我是请求的参数', {
|
||||
"courseId": props.courseID,
|
||||
"userInfo": userInfo.value,
|
||||
"voteId": props.voteID
|
||||
"studentId": userInfo.value.id,
|
||||
"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)
|
||||
state.voteResource = res.data.data
|
||||
|
||||
let choiceArr = []
|
||||
//2023-02-28
|
||||
let dataQuestion = state.voteResource.voteStemDtoList
|
||||
let dataQuestion = state.voteResource.ballotVo.voteStemVoList
|
||||
for(let i=0;i<dataQuestion.length;i++){
|
||||
for(let j=0;j<dataQuestion[i].optionDetailList.length;j++){
|
||||
if(dataQuestion[i].optionDetailList[j].isAnswer){
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
<EScore v-model:eScorevisible="eScorevisible" />
|
||||
</a-drawer>
|
||||
<!-- 查看答卷抽屉 -->
|
||||
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource"/>
|
||||
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource1"/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -321,7 +321,7 @@ export default {
|
||||
{text.record.status === 1 || text.record.status === 9 ?
|
||||
<a onClick={()=>{
|
||||
state.studentKid = text.record.studentKid;
|
||||
state.datasource = text.record;
|
||||
state.datasource1 = text.record;
|
||||
state.CAvisible = true;
|
||||
}}>查看答卷 </a> :
|
||||
<span style="color:rgba(0, 0, 0, 0.25);cursor:not-allowed;"> 查看答卷 </span>
|
||||
@@ -334,7 +334,7 @@ export default {
|
||||
loadingData: true,
|
||||
studentKid: '',
|
||||
CAvisible: false,
|
||||
datasource: ''
|
||||
datasource1: ''
|
||||
});
|
||||
|
||||
const closeDrawer = () => {
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
<EScore v-model:eScorevisible="eScorevisible" />
|
||||
</a-drawer>
|
||||
<!-- 查看答卷抽屉 -->
|
||||
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource" />
|
||||
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource1" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -306,7 +306,7 @@ export default {
|
||||
type="link"
|
||||
onClick={() => {
|
||||
state.studentKid = text.record.studentKid;
|
||||
state.datasource = text.record;
|
||||
state.datasource1 = text.record;
|
||||
state.CAvisible = true;
|
||||
}}>
|
||||
查看答卷
|
||||
@@ -321,7 +321,7 @@ export default {
|
||||
disabled
|
||||
onClick={() => {
|
||||
state.studentKid = text.record.studentKid;
|
||||
state.datasource = text.record;
|
||||
state.datasource1 = text.record;
|
||||
state.CAvisible = true;
|
||||
}}>
|
||||
查看答卷
|
||||
@@ -336,7 +336,7 @@ export default {
|
||||
loadingData: true,
|
||||
studentKid: '',
|
||||
CAvisible: false,
|
||||
datasource: ''
|
||||
datasource1: ''
|
||||
});
|
||||
|
||||
const closeDrawer = () => {
|
||||
|
||||
Reference in New Issue
Block a user