diff --git a/backend/src/main/java/io/metersphere/log/vo/StatusReference.java b/backend/src/main/java/io/metersphere/log/vo/StatusReference.java index 470892c9d7..63c4485051 100644 --- a/backend/src/main/java/io/metersphere/log/vo/StatusReference.java +++ b/backend/src/main/java/io/metersphere/log/vo/StatusReference.java @@ -45,6 +45,9 @@ public class StatusReference { statusMap.put("DELETE", "删除"); statusMap.put("false", "否"); statusMap.put("true", "是"); + statusMap.put("functional", "功能用例"); + statusMap.put("performance", "性能用例"); + statusMap.put("api", "接口用例"); } diff --git a/backend/src/main/java/io/metersphere/log/vo/track/TestCaseReference.java b/backend/src/main/java/io/metersphere/log/vo/track/TestCaseReference.java index b1023b4ee8..c66ceb010c 100644 --- a/backend/src/main/java/io/metersphere/log/vo/track/TestCaseReference.java +++ b/backend/src/main/java/io/metersphere/log/vo/track/TestCaseReference.java @@ -17,6 +17,7 @@ public class TestCaseReference { testCaseColumns.put("method", "请求类型"); testCaseColumns.put("prerequisite", "前置条件"); testCaseColumns.put("remark", "备注"); + testCaseColumns.put("customNum", "ID"); testCaseColumns.put("steps", "用例步骤"); testCaseColumns.put("other_test_name", "其他名称"); testCaseColumns.put("review_status", "评审状态"); diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue index 477f19e976..2fdaa83c93 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue @@ -400,6 +400,7 @@ export default { }, watch: { selectNodeIds() { + this.currentPage = 1; this.condition.selectAll = false; this.condition.unSelectIds = []; this.selectDataCounts = 0; diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index f11ceb2a6a..3e49bb0572 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -162,7 +162,7 @@ :allow-drop="allowDrop" @node-drag-end="allowDrag" @node-click="nodeClick" v-if="!loading" draggable ref="stepTree"> - 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 8ee93accc7..a513116fb1 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue @@ -23,7 +23,7 @@ @@ -118,6 +118,7 @@ }, currentEnvironmentId: String, projectList: Array, + expandedNode: Array, envMap: Map }, components: { @@ -328,6 +329,13 @@ if (this.node) { this.node.expanded = this.request.active; } + if (this.node.expanded && this.expandedNode.indexOf(this.request.resourceId) === -1) { + this.expandedNode.push(this.request.resourceId); + } else { + if (this.expandedNode.indexOf(this.request.resourceId) !== -1) { + this.expandedNode.splice(this.expandedNode.indexOf(this.request.resourceId), 1); + } + } this.reload(); }, run() { diff --git a/frontend/src/business/components/api/automation/scenario/component/ComponentConfig.vue b/frontend/src/business/components/api/automation/scenario/component/ComponentConfig.vue index 29ffdb61f4..efca9a9076 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ComponentConfig.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ComponentConfig.vue @@ -1,7 +1,7 @@