Browse Source

诊断依据维护

zhangxc 6 years atrás
parent
commit
5a803e9df1
1 changed files with 18 additions and 0 deletions
  1. 18 0
      src/components/diagBase/AddDiagBase.vue

+ 18 - 0
src/components/diagBase/AddDiagBase.vue

@@ -280,6 +280,11 @@
                         modifier: this.modifier
                     }
                     api.diagBaseUpdateNeo(param).then((res) => {
+                        if(res.data.code == 0) {
+                            this.warning('更新成功')
+                        } else {
+                            this.warning(res.data.msg)
+                        }
                     })
                 }
                 
@@ -412,6 +417,11 @@
             }
             return api.diagBaseVerifyData(param).then((res) => {
                 const data = res.data.data
+                if(data.hasQuestion) {
+                    this.warning('校验完成请先调整问题词')
+                } else {
+                    this.warning('校验成功')
+                }
                 this.id = data.id
                 this.disFeatureList = data.disFeature
                 if(data.disformula.length) {
@@ -429,6 +439,7 @@
                     ]
                 }  
                 this.hasQuestion = data.hasQuestion
+                
             })
         },
         
@@ -493,6 +504,13 @@
                     this.disFormulaList[index].verifyFormula =''
                     return this.disFormulaList = JSON.parse(JSON.stringify(this.disFormulaList))
             }
+        },
+        warning(msg,type){
+          this.$message({
+            showClose: true,
+            message:msg,
+            type:type||'warning'
+          })
         }
     }
   }