Browse Source

修改多层关联维护提示信息

zhangxc 6 years ago
parent
commit
cac8bf7949
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/icss/AddMedicalMultRelation.vue

+ 2 - 1
src/components/icss/AddMedicalMultRelation.vue

@@ -154,8 +154,9 @@ import api from '@api/icss.js';
         this.openSearch(e);
         this.openSearch(e);
       },
       },
       confirm() { 
       confirm() { 
-        if(this.list[0].nodeList.length == 0) {
+        if(!this.list[0] || this.list[0].nodeList.length == 0) {
           this.message('请输入数据信息');
           this.message('请输入数据信息');
+          return
         }
         }
         const param = {
         const param = {
           conceptId: this.list[0].conceptId,
           conceptId: this.list[0].conceptId,