From 7c329abce919f9256123bb34ff6c986cf135b515 Mon Sep 17 00:00:00 2001 From: yaojn Date: Mon, 20 Oct 2025 16:06:36 +0800 Subject: [PATCH] =?UTF-8?q?-=20[=E4=BF=AE=E5=A4=8D]=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=A1=8C=E8=81=94=E5=8A=A8=E8=A7=84=E5=88=99?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=A4=B1=E6=95=88=20=20=20=20-=20[=E5=85=B3?= =?UTF-8?q?=E8=81=94]#[1536285267689472]=E8=A1=A8=E5=8D=95=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E8=A1=8C=E8=81=94=E5=8A=A8=E8=A7=84=E5=88=99=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=A4=B1=E6=95=88=20http://192.168.0.96:8090/demo/rdm?= =?UTF-8?q?.html#/bug-detail/939050947543040/939050947543057/1536285267689?= =?UTF-8?q?472?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/resources/plugins/TsSheet/TsSheet.vue | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/resources/plugins/TsSheet/TsSheet.vue b/src/resources/plugins/TsSheet/TsSheet.vue index 0217f668..198f84f2 100644 --- a/src/resources/plugins/TsSheet/TsSheet.vue +++ b/src/resources/plugins/TsSheet/TsSheet.vue @@ -1072,6 +1072,15 @@ export default { }, clearReactionRow(reaction) { //清除行联动的废数据 if (!this.$utils.isEmpty(reaction)) { + let tableRowList = []; + (this.config?.tableList || []).forEach((v) => { + if (v && v.hasOwnProperty('row')) { + const currentRow = v.row + 1; + if (!tableRowList.includes(currentRow)) { + tableRowList.push(currentRow); + } + } + }); Object.keys(reaction).forEach(key => { if (!this.$utils.isEmpty(reaction[key])) { reaction[key].forEach(item => { @@ -1093,11 +1102,17 @@ export default { item.conditionGroupList = item.conditionGroupList.filter(c => !groupUuidList.includes(c.uuid)); } if (this.$utils.isEmpty(item.conditionGroupList)) { - item.rows = []; + if (!this.$utils.isEmpty(item.rows)) { + for (let j = item.rows.length - 1; j >= 0; j--) { + if (!tableRowList.includes(j)) { + item.rows.splice(j, 1); + } + } + } item.conditionGroupRelList = []; } }); - reaction[key] = reaction[key].filter(item => !this.$utils.isEmpty(item.conditionGroupList)); + reaction[key] = reaction[key].filter(item => !this.$utils.isEmpty(item.rows)); } }); //更新配置 -- Gitee