mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-09 10:56:48 +08:00
fix:投票提交数据结构修改
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user