|
|
@@ -5642,15 +5642,18 @@ export default {
|
|
|
traverseCollectionItems(items) {
|
|
|
// 处理一层子项(如果有)
|
|
|
if (items.collectionOptionList && items.collectionOptionList.length > 0) {
|
|
|
- items.collectionOptionList.forEach((item) => {
|
|
|
- // 处理二层子项(如果有)
|
|
|
- if (item.collectionItems && item.collectionItems.length > 0) {
|
|
|
- item.collectionItems.forEach((option) => {
|
|
|
- this.filterCollectionInfos(option);
|
|
|
- this.traverseCollectionItems(option);
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ if(items.answerValue == items.collectionOptionList[0].collectionOptionId ){
|
|
|
+ items.collectionOptionList.forEach((item) => {
|
|
|
+ // 处理二层子项(如果有)
|
|
|
+ if (item.collectionItems && item.collectionItems.length > 0) {
|
|
|
+ item.collectionItems.forEach((option) => {
|
|
|
+ this.filterCollectionInfos(option);
|
|
|
+ this.traverseCollectionItems(option);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
onSubmit() {
|