Browse Source

Merge branch 'bug_mine'

hbchen 6 months ago
parent
commit
82bca381e4
1 changed files with 7 additions and 4 deletions
  1. 7 4
      src/views/sandbox_manage/sandFlowNew/components/addLInkDia.vue

+ 7 - 4
src/views/sandbox_manage/sandFlowNew/components/addLInkDia.vue

@@ -216,7 +216,7 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
               (item) => item.EdbInfoId === newval
               (item) => item.EdbInfoId === newval
             );
             );
             if(search_obj){
             if(search_obj){
-              this.checkedLinkList.push({
+              this.activeItem = {
                 RId:this.addLinkSearchParams.linkType+'-'+search_obj.EdbInfoId,
                 RId:this.addLinkSearchParams.linkType+'-'+search_obj.EdbInfoId,
                 Id:search_obj.EdbInfoId,
                 Id:search_obj.EdbInfoId,
                 Name:search_obj.EdbName,
                 Name:search_obj.EdbName,
@@ -228,7 +228,9 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
                   id:search_obj.EdbInfoId,
                   id:search_obj.EdbInfoId,
                   classifyId:search_obj.ClassifyId
                   classifyId:search_obj.ClassifyId
                 }
                 }
-              })
+              }
+              this.checkedLinkList.push(this.activeItem)
+              
               this.activeItemRId=this.addLinkSearchParams.linkType+'-'+search_obj.EdbInfoId
               this.activeItemRId=this.addLinkSearchParams.linkType+'-'+search_obj.EdbInfoId
               this.initGetData()
               this.initGetData()
             }
             }
@@ -237,7 +239,7 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
               (item) => item.ChartInfoId === newval
               (item) => item.ChartInfoId === newval
             );
             );
             if(search_obj){
             if(search_obj){
-              this.checkedLinkList.push({
+              this.activeItem = {
                 RId:this.addLinkSearchParams.linkType+'-'+search_obj.ChartInfoId,
                 RId:this.addLinkSearchParams.linkType+'-'+search_obj.ChartInfoId,
                 Id:search_obj.ChartInfoId,
                 Id:search_obj.ChartInfoId,
                 Name:search_obj.ChartName,
                 Name:search_obj.ChartName,
@@ -247,7 +249,8 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
                   code:search_obj.UniqueCode,
                   code:search_obj.UniqueCode,
                   id:search_obj.ChartInfoId
                   id:search_obj.ChartInfoId
                 }
                 }
-              })
+              }
+              this.checkedLinkList.push(this.activeItem)
               this.activeItemRId=this.addLinkSearchParams.linkType+'-'+search_obj.ChartInfoId
               this.activeItemRId=this.addLinkSearchParams.linkType+'-'+search_obj.ChartInfoId
               this.getChartDetail(search_obj.ChartInfoId)
               this.getChartDetail(search_obj.ChartInfoId)
             }
             }