diff --git a/frontend/src/business/components/api/automation/ApiAutomation.vue b/frontend/src/business/components/api/automation/ApiAutomation.vue index a44acfe371..98f2a646d5 100644 --- a/frontend/src/business/components/api/automation/ApiAutomation.vue +++ b/frontend/src/business/components/api/automation/ApiAutomation.vue @@ -532,6 +532,10 @@ export default { } else { this.activeName = "default"; } + let index = this.tabs.findIndex(item => item.name === targetName); + if (index !== -1) { + this.tabs.splice(index, 1); + } }, setTabLabel(data) { for (const tab of this.tabs) { diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 5dfb823dea..0424d7ffb1 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -1785,11 +1785,18 @@ export default { this.stepStatus(resourceIds, this.scenarioDefinition); }, handleDeleteBatch() { - this.getAllResourceIds().forEach(item => { - this.recursionDelete(item, this.scenarioDefinition); + this.$alert(this.$t('test_track.module.delete_batch_confirm'), '', { + confirmButtonText: this.$t('commons.confirm'), + callback: (action) => { + if (action === 'confirm') { + this.getAllResourceIds().forEach(item => { + this.recursionDelete(item, this.scenarioDefinition); + }); + this.sort(); + this.forceRerender(); + } + } }); - this.sort(); - this.forceRerender(); }, recursionDelete(resourceId, nodes) { for (let i in nodes) { diff --git a/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue b/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue index 19bffe6f1d..94144b8d1f 100644 --- a/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue @@ -58,7 +58,8 @@
-
+ +
@@ -260,18 +261,6 @@ export default { margin-right: 10px; } -.ms-step-name { - display: inline-block; - font-size: 13px; - margin: 0 5px; - overflow-x: hidden; - padding-bottom: 0; - text-overflow: ellipsis; - vertical-align: middle; - white-space: nowrap; - width: 140px; -} - .scenario-version { display: inline-block; font-size: 13px; @@ -398,9 +387,4 @@ fieldset { width: 60px; } -.ms-step-selected { - cursor: pointer; - border-color: #783887; -} - diff --git a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue index 2f92113164..b7dcc1670d 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue @@ -71,9 +71,8 @@