소스 검색

修改诊断依据校验

zhangxc 5 년 전
부모
커밋
516896eb3a
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      src/components/diagBase/AddDiagBase.vue

+ 4 - 3
src/components/diagBase/AddDiagBase.vue

@@ -589,8 +589,9 @@
                     this.hasNoUniqueName = false
                     const labVerifyData = this.labVerifyData(labArr,type)
                     if(labVerifyData) {
-                         return labVerifyData.then(() =>{
-                            if(this.hasNoUniqueName) {
+                         return labVerifyData.then((data) =>{
+                            
+                            if(this.hasNoUniqueName||!data) {
                             }else {
                                 return this.verifyDiagBase(type)
                             }
@@ -820,12 +821,12 @@
                        return this.errorTips(errorStr);
                         
                     }
-                     console.log('bbbbbbbbb')
 
                     this.disFeatureList = JSON.parse(JSON.stringify(this.disFeatureListResult))
                     this.disFeatureListResult = JSON.parse(JSON.stringify(this.disFeatureListResult))
                     
                 } else {
+                    console.log('asdddddd')
                     this.warning(res.data.msg)
                     return false
                 }