fix:投票提交数据结构修改

This commit is contained in:
wyx
2023-02-20 18:06:05 +08:00
parent aee1eb58e8
commit db4c727b1b

View File

@@ -280,10 +280,10 @@ const submitVote = () => {
}
let isSubmit = true;
let isSubArr = []
for(let i=0;i<state.dataInfo.ballotVo.voteStemVoList.length;i++){
for(let j=0; j<state.dataInfo.ballotVo.voteStemVoList[i].optionDetailList.length;j++){
if(state.dataInfo.ballotVo.voteStemVoList[i].optionDetailList[j].isAnswer){
isSubArr[i] = state.dataInfo.ballotVo.voteStemVoList[i].optionDetailList[j].isAnswer
for(let i=0;i<state.dataInfo.voteStemDtoList.length;i++){
for(let j=0; j<state.dataInfo.voteStemDtoList[i].optionDetailList.length;j++){
if(state.dataInfo.voteStemDtoList[i].optionDetailList[j].isAnswer){
isSubArr[i] = state.dataInfo.voteStemDtoList[i].optionDetailList[j].isAnswer
break
}else{
isSubArr[i] = false