diff --git a/src/pages_radioQustion/pages/index.vue b/src/pages_radioQustion/pages/index.vue
index a933db0..73ea3c4 100644
--- a/src/pages_radioQustion/pages/index.vue
+++ b/src/pages_radioQustion/pages/index.vue
@@ -6,17 +6,17 @@
{{ parent.questionName }}
-
- 是
- 否
+
+
+
+
-
- {{ child.questionName }}
+
@@ -100,21 +100,25 @@ onLoad((option) => {
questionnaireTemplateList.value = res.rows;
firstArray.value = res.rows.filter(item => item.parentQuestionid === null || item.parentQuestionid ===
'0');
-
secondArray.value = firstArray.value.map(parent => {
const children = res.rows.filter(item => item.parentQuestionid === parent.questionId);
+ if (parent.questionType === '2') {
+ return '是否';
+ } else {
+ return children;
+ }
+ });
+ selectedValues.value = new Array(firstArray.value.length).fill(null);
+ console.log(88888,secondArray.value,selectedValues.value, 888,firstArray.value)
+ console.log(1111,firstArray.value.map(parent => {
+ const children = res.rows.filter(item => item.parentQuestionid === parent.questionId);
if (parent.questionType === '2') {
return '是否';
} else {
return children;
}
- });
-
-
- selectedValues.value = new Array(firstArray.value.length).fill(null);
-
- console.log(selectedValues.value, 888)
+ }))
// 更新总数
total.value = res.total;
}).finally(() => {
@@ -122,7 +126,9 @@ onLoad((option) => {
});
}
-
+ function change(e){
+ console.log('selectedValues[index]---',selectedValues.value,e)
+ }
function submitForm() {
if (isSubmitting.value) {
console.log('提交已被锁定,防止多次提交');