diff --git a/src/views/xm/rpt/index/CompsCard.vue b/src/views/xm/rpt/index/CompsCard.vue index ef7a3d17..0ace63e6 100644 --- a/src/views/xm/rpt/index/CompsCard.vue +++ b/src/views/xm/rpt/index/CompsCard.vue @@ -427,12 +427,14 @@ export default { },200) }) }, - onCompChange(compCfg,checked){ - if(checked=='false'||!checked){ + onCompChange(compCfg,checked){ + if(!checked){ var index=this.compCfgList.findIndex(k=>k.compId==compCfg.compId) if(index>=0){ this.compCfgList.splice(index,1) } + }else{ + this.onCompSelect(compCfg) } } diff --git a/src/views/xm/rpt/index/CompsSet.vue b/src/views/xm/rpt/index/CompsSet.vue index 65e094c9..daa7325d 100644 --- a/src/views/xm/rpt/index/CompsSet.vue +++ b/src/views/xm/rpt/index/CompsSet.vue @@ -11,14 +11,14 @@       @@ -29,14 +29,14 @@