Browse Source

提交修改

xiezhiming 3 years ago
parent
commit
ec677a01e5
1 changed files with 10 additions and 11 deletions
  1. 10 11
      src/components/knowledgeExtra/AddNewRule.vue

+ 10 - 11
src/components/knowledgeExtra/AddNewRule.vue

@@ -715,20 +715,19 @@ export default {
 				})
 			}
 		}
+		//判断护理非开单项里面的附加信息和关联静态知识是否填写
 		if(this.isStatic&&this.isRedMsg.length>0){
-			this.isRedMsg.forEach(item=>{
-				if(item){
-					return
-				}else{
-					this.saveRule(paramsCopy);
-				}
-			})
+			let flag=this.isRedMsg.some(item=>{
+					return item
+				})
+				//都填写了
+			if(!flag) this.saveRule(paramsCopy);
 		}else{
 			this.saveRule(paramsCopy);
-		}
-        } else {
-          return false;
-        }
+		}	
+		} else {
+		  return false;
+		}   
       });
     },
     // 子集修改父级的数组