From e7b9a7ecd43ce5d974f4af7ed143543b9c0e5546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Mon, 6 Feb 2023 01:57:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xm/rpt/index/CompsCard.vue | 10 +++++++++- src/views/xm/rpt/index/CompsSet.vue | 7 +++++-- 2 files changed, 14 insertions(+), 3 deletions(-) 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]) },