fix:查看头片显示

This commit is contained in:
wyx
2023-03-04 13:15:16 +08:00
parent 1a5e54db1c
commit fe57676318
2 changed files with 16 additions and 15 deletions

View File

@@ -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]">
@@ -27,7 +27,7 @@
<div class="queabox" v-for="items,index in item.optionDetailList" :key="index"> <div class="queabox" v-for="items,index in item.optionDetailList" :key="index">
<a-radio <a-radio
v-model:checked="checked" v-model:checked="checked"
:value="items.optionId" :value="items.id"
> >
{{items.optionName}} {{items.optionName}}
</a-radio> </a-radio>
@@ -138,11 +138,11 @@ export default {
state.voteResource = res.data.data state.voteResource = res.data.data
let choiceArr = [] let choiceArr = []
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){
choiceArr.push(dataQuestion[i].optionDetailList[j].optionId) choiceArr.push(dataQuestion[i].optionDetailList[j].id)
break break
} }
if(j==dataQuestion[i].optionDetailList.length - 1 && dataQuestion[i].optionDetailList[j].isAnswer == false){ if(j==dataQuestion[i].optionDetailList.length - 1 && dataQuestion[i].optionDetailList[j].isAnswer == false){

View File

@@ -466,7 +466,7 @@
<button class="edit"> <button class="edit">
<img <img
class="editimg" class="editimg"
src="../../assets/images/projectadd/edit.png" src="../../assets/images/projectadd/edit1.png"
/> />
<span class="editext">编辑</span> <span class="editext">编辑</span>
</button> </button>
@@ -5966,12 +5966,13 @@ export default {
position: absolute; position: absolute;
right: 38px; right: 38px;
top: 0; top: 0;
color: #4ea6ff; color: #fff;
background: #ffffff; background: #4ea6ff;
width: 100px; width: 100px;
height: 40px; height: 40px;
border: 1px solid #4ea6ff; border: 1px solid #4ea6ff;
border-radius: 8px; border-radius: 8px;
cursor: pointer;
.editimg { .editimg {
width: 15px; width: 15px;
@@ -5985,15 +5986,15 @@ export default {
} }
} }
.edit:hover { // .edit:hover {
color: #ffffff; // color: #ffffff;
background-color: #4ea6ff; // background-color: #4ea6ff;
cursor: pointer; // cursor: pointer;
.editimg { // .editimg {
background-image: url("../../assets/images/projectadd/edit1.png"); // background-image: url("../../assets/images/projectadd/edit1.png");
} // }
} // }
} }
.second { .second {