浏览代码

1. 优化

MONSTER-ygh 7 月之前
父节点
当前提交
bfaa3d28bb

+ 3 - 1
src/views/tourism/membershipManagement/equityCard/formBox/equityCardAllocationForm.vue

@@ -221,7 +221,9 @@ export default {
           obj['projectId'] = []
           if(res.data.benefitList && res.data.benefitList.length>0) {
             res.data.benefitList.forEach((item,index)=>{
-              obj['projectId'].push(item.projectId.toString())
+              if(item.projectId || item.projectId == 0 ){
+                obj['projectId'].push(item.projectId.toString())
+              }
             })
           }
           this.$set(this, 'form', JSON.parse(JSON.stringify(obj)))