liucf %!s(int64=5) %!d(string=hai) anos
pai
achega
8039ce5b4b
Modificáronse 1 ficheiros con 12 adicións e 3 borrados
  1. 12 3
      src/components/icss/ConceptRelation.vue

+ 12 - 3
src/components/icss/ConceptRelation.vue

@@ -160,9 +160,14 @@ export default {
           this.$router.push({name:'AddConceptRelation',params:pam})
         },
         modifyRelation(row) {
+          const typeL = this.filter.type.toString().split('101');
+          const typeId = [];
+          typeId[0] = +typeL[1];
             const param = {
               "conceptId": row.conceptId,
-              "relationId":17
+              // "relationId":17
+              "relationIds":[17],//9-20新增
+              "typeIds":typeId
             }
           const pam = this.searched ? {
             currentPage: this.currentPage,
@@ -223,10 +228,14 @@ export default {
         },
         showDelDialog(row){
           this.showConfirmDialog('是否删除该关联?',()=>{
+            const typeL = this.filter.type.toString().split('101');
+            const typeId = [];
+            typeId[0] = +typeL[1];
             const param = {
               "conceptId": row.conceptId,
-              "isDeleted": row.isDeleted=== 'N'?'Y':'N',
-              "relationId": 17
+              // "isDeleted": row.isDeleted=== 'N'?'Y':'N',
+              "relationIds":[17],//9-20新增
+              "typeIds":typeId
             }
             api.delConceptRelation(param).then((res)=>{
               if(res.data.code=='0'){