Переглянути джерело

多层关联维护接口修改

zhangxc 6 роки тому
батько
коміт
ccda12c41a
1 змінених файлів з 6 додано та 0 видалено
  1. 6 0
      src/components/icss/AddMedicalMultRelation.vue

+ 6 - 0
src/components/icss/AddMedicalMultRelation.vue

@@ -124,6 +124,7 @@ import api from '@api/icss.js';
         excludedConceptIds:[],
         operaList: [],
         isEdit: false,  //是否为修改
+        relationConceptId: '' //关联父类ID
       }
     },
     created(){
@@ -214,6 +215,10 @@ import api from '@api/icss.js';
           "relationId": 17,
           "relationPosition": 1,
         }
+        if(this.addLevel == '1') {
+          param.relationPosition = 2
+          param.relationConceptId = this.relationConceptId
+        }
         
         api.getConceptInfoAssay(param).then((res) => {
           const { data } = res
@@ -249,6 +254,7 @@ import api from '@api/icss.js';
       },
       append(data, e) {
           this.addLevel = 1;
+          this.relationConceptId = data.conceptId
           this.operaList = data;
           this.openSearch(e);