From 4203b65d5e53966c1a008c75f98c89b495bb7e11 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 31 Mar 2023 14:59:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E6=89=B9=E9=87=8F=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=AD=A5=E9=AA=A4=E6=98=BE=E7=A4=BA=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E9=A1=B9=E4=B8=8D=E5=87=86=E7=A1=AE=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1024993 --user=王孝刚 【接口测试】github#23298,接口参加批量操作选中后显示选中数不正确 https://www.tapd.cn/55049933/s/1358172 --- .../automation/scenario/EditApiScenario.vue | 19 +++++++------------ .../src/business/commons/ShowMoreBtn.vue | 6 +++++- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index 7cf2e8faf4..d662152e9f 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -281,7 +281,6 @@ :empty-text="$t('api_test.scenario.step_info')" highlight-current :show-checkbox="isBatchProcess" - @check-change="chooseHeadsUp" @node-drag-end="nodeDragEnd" @node-click="nodeClick" draggable @@ -315,8 +314,8 @@ @@ -760,27 +759,27 @@ export default { { name: this.$t('api_test.automation.bulk_activation_steps'), handleClick: this.enableAll, - permissions: ['PROJECT_API_SCENARIO:READ+DELETE'], + permissions: ['PROJECT_API_SCENARIO:READ+EDIT'], }, { name: this.$t('api_test.automation.batch_disable_steps'), handleClick: this.disableAll, - permissions: ['PROJECT_API_SCENARIO:READ+DELETE'], + permissions: ['PROJECT_API_SCENARIO:READ+EDIT'], }, { name: this.$t('api_test.automation.open_expansion'), handleClick: this.openExpansion, - permissions: ['PROJECT_API_SCENARIO:READ+DELETE'], + permissions: ['PROJECT_API_SCENARIO:READ+EDIT'], }, { name: this.$t('api_test.automation.close_expansion'), handleClick: this.closeExpansion, - permissions: ['PROJECT_API_SCENARIO:READ+DELETE'], + permissions: ['PROJECT_API_SCENARIO:READ+EDIT'], }, { name: this.$t('api_test.definition.request.batch_delete') + '步骤', handleClick: this.handleDeleteBatch, - permissions: ['PROJECT_API_SCENARIO:READ+DELETE'], + permissions: ['PROJECT_API_SCENARIO:READ+EDIT'], }, ], reloadTree: '', @@ -842,11 +841,6 @@ export default { } } }, - chooseHeadsUp() { - if (this.$refs.stepTree) { - this.selectDataCounts = this.$refs.stepTree.getCheckedNodes().length; - } - }, checkedAll(v) { if (this.$refs.stepTree && this.$refs.stepTree.root && this.$refs.stepTree.root.childNodes) { this.recursionChecked(v, this.$refs.stepTree.root.childNodes); @@ -1417,6 +1411,7 @@ export default { return; } setComponent(type, this, plugin); + store.forceRerenderIndex = getUUID(); }, nodeClick(data, node) { if ( diff --git a/api-test/frontend/src/business/commons/ShowMoreBtn.vue b/api-test/frontend/src/business/commons/ShowMoreBtn.vue index cac04b54e2..9b18abd81d 100644 --- a/api-test/frontend/src/business/commons/ShowMoreBtn.vue +++ b/api-test/frontend/src/business/commons/ShowMoreBtn.vue @@ -13,7 +13,7 @@ -
+
{{ $t('test_track.case.batch_handle', [size]) }}
@@ -45,6 +45,10 @@ export default { row: Object, size: Number, hasShowed: Boolean, + showSize: { + type: Boolean, + default: true, + }, }, created() { if (this.trashEnable) {