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

View File

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