|
@@ -513,15 +513,18 @@ export default {
|
|
var answerData = res.single;
|
|
var answerData = res.single;
|
|
for (var i = 0; i < answerData.questionList.length; i++) {
|
|
for (var i = 0; i < answerData.questionList.length; i++) {
|
|
var element = answerData.questionList[i]
|
|
var element = answerData.questionList[i]
|
|
- const found = conditionQuestionList.find(element => element.questionId == element.questionId);
|
|
|
|
console.log("found", found);
|
|
console.log("found", found);
|
|
if (element.belongTestOrder <= this.options.length) {
|
|
if (element.belongTestOrder <= this.options.length) {
|
|
element.lable = this.options[element.belongTestOrder - 1].label;
|
|
element.lable = this.options[element.belongTestOrder - 1].label;
|
|
}
|
|
}
|
|
- if (found.questionId == element.questionId) {
|
|
|
|
- element.isFilter = true
|
|
|
|
- } else {
|
|
|
|
- element.isFilter = false
|
|
|
|
|
|
+
|
|
|
|
+ const found = conditionQuestionList.find(element => element.questionId == element.questionId);
|
|
|
|
+ if (found) {
|
|
|
|
+ if (found.questionId == element.questionId) {
|
|
|
|
+ element.isFilter = true
|
|
|
|
+ } else {
|
|
|
|
+ element.isFilter = false
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
console.log("answerData", answerData);
|
|
console.log("answerData", answerData);
|