From 3cfc98b0039999e3c502d227a7ffe53e468a3a12 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Mon, 16 Jan 2023 19:43:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=96=E6=B6=88=E8=AE=B0=E4=BD=8F=E8=B7=A8?= =?UTF-8?q?=E9=A1=B5=E9=80=89=E6=8B=A9=E7=9A=84=E8=AE=B0=E5=BD=95=E5=89=8D?= =?UTF-8?q?=E4=B8=80=E9=A1=B5=E7=9A=84=E6=95=B0=E6=8D=AE=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1021992 --user=郭雨琦 --- .../business/definition/components/complete/ApiTableList.vue | 5 +++++ .../src/components/environment/snippet/ext/ApiTableList.vue | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/api-test/frontend/src/business/definition/components/complete/ApiTableList.vue b/api-test/frontend/src/business/definition/components/complete/ApiTableList.vue index f6cc43cf62..abf67b673b 100644 --- a/api-test/frontend/src/business/definition/components/complete/ApiTableList.vue +++ b/api-test/frontend/src/business/definition/components/complete/ApiTableList.vue @@ -209,6 +209,11 @@ export default { }, selectCountChange(value) { this.$emit('selectCountChange', value); + if (this.$refs.apitable) { + this.$emit('setSelectRow', this.$refs.apitable.getSelectRows()); + } else { + this.$emit('setSelectRow', new Set()); + } }, getColor(flag, method) { return this.methodColorMap.get(method); diff --git a/framework/sdk-parent/frontend/src/components/environment/snippet/ext/ApiTableList.vue b/framework/sdk-parent/frontend/src/components/environment/snippet/ext/ApiTableList.vue index 79bf57d604..1f20c64d22 100644 --- a/framework/sdk-parent/frontend/src/components/environment/snippet/ext/ApiTableList.vue +++ b/framework/sdk-parent/frontend/src/components/environment/snippet/ext/ApiTableList.vue @@ -229,6 +229,11 @@ export default { methods: { selectCountChange(value) { this.$emit('selectCountChange', value) + if (this.$refs.apitable) { + this.$emit('setSelectRow', this.$refs.apitable.getSelectRows()); + } else { + this.$emit('setSelectRow', new Set()); + } }, getColor(flag, method) { return this.methodColorMap.get(method);