diff --git a/src/views/xm/rpt/index/CompsCard.vue b/src/views/xm/rpt/index/CompsCard.vue index 12193df0..c236da02 100644 --- a/src/views/xm/rpt/index/CompsCard.vue +++ b/src/views/xm/rpt/index/CompsCard.vue @@ -2,7 +2,7 @@
- + @@ -433,6 +433,14 @@ export default { this.scrollToComp(compCfg) },200) }) + }, + onCompChange(compCfg,checked){ + if(checked=='false'||!checked){ + var index=this.compCfgList.findIndex(k=>k.id==compCfg.id) + if(index>=0){ + this.compCfgList.splice(index,1) + } + } } }, diff --git a/src/views/xm/rpt/index/CompsSet.vue b/src/views/xm/rpt/index/CompsSet.vue index 19b44b99..7e5e9f3f 100644 --- a/src/views/xm/rpt/index/CompsSet.vue +++ b/src/views/xm/rpt/index/CompsSet.vue @@ -18,7 +18,7 @@ {{item.desc}} - +    @@ -36,7 +36,7 @@ {{item.desc}} - +    @@ -207,6 +207,9 @@ export default { } }) }, + onChange(comp,checked){ + this.$emit('change',comp,checked) + }, onCategroySelect(){ this.selectItem(this.rptListCpd[0]) },