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) {