hbchen 6 месяцев назад
Родитель
Сommit
82bca381e4
1 измененных файлов с 7 добавлено и 4 удалено
  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
             );
             if(search_obj){
-              this.checkedLinkList.push({
+              this.activeItem = {
                 RId:this.addLinkSearchParams.linkType+'-'+search_obj.EdbInfoId,
                 Id:search_obj.EdbInfoId,
                 Name:search_obj.EdbName,
@@ -228,7 +228,9 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
                   id:search_obj.EdbInfoId,
                   classifyId:search_obj.ClassifyId
                 }
-              })
+              }
+              this.checkedLinkList.push(this.activeItem)
+              
               this.activeItemRId=this.addLinkSearchParams.linkType+'-'+search_obj.EdbInfoId
               this.initGetData()
             }
@@ -237,7 +239,7 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
               (item) => item.ChartInfoId === newval
             );
             if(search_obj){
-              this.checkedLinkList.push({
+              this.activeItem = {
                 RId:this.addLinkSearchParams.linkType+'-'+search_obj.ChartInfoId,
                 Id:search_obj.ChartInfoId,
                 Name:search_obj.ChartName,
@@ -247,7 +249,8 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
                   code:search_obj.UniqueCode,
                   id:search_obj.ChartInfoId
                 }
-              })
+              }
+              this.checkedLinkList.push(this.activeItem)
               this.activeItemRId=this.addLinkSearchParams.linkType+'-'+search_obj.ChartInfoId
               this.getChartDetail(search_obj.ChartInfoId)
             }