From 1f5de735fdc0266a6ff4d36393701e9b8e096ca6 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 25 Oct 2021 18:26:39 +0800 Subject: [PATCH] =?UTF-8?q?fix=20(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=20=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4=E9=97=AE=E9=A2=98=20--bug=3D1007452=20--user=3D?= =?UTF-8?q?=E8=B5=B5=E5=8B=87=20=E3=80=90=E6=8E=A5=E5=8F=A3=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E3=80=91=E5=9C=BA=E6=99=AF=E5=AF=BC=E5=85=A5tcp?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=90=8E=EF=BC=8C=E5=86=8D=E6=AC=A1=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E6=8E=A5=E5=8F=A3=E6=8A=A5=E9=94=99=20https://www.tap?= =?UTF-8?q?d.cn/55049933/s/1058800?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/components/api/automation/ApiAutomation.vue | 6 +++++- .../components/api/automation/scenario/EditApiScenario.vue | 3 +-- .../components/api/automation/scenario/api/ApiRelevance.vue | 6 ------ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/frontend/src/business/components/api/automation/ApiAutomation.vue b/frontend/src/business/components/api/automation/ApiAutomation.vue index 66b43d61b5..9e8a89caf4 100644 --- a/frontend/src/business/components/api/automation/ApiAutomation.vue +++ b/frontend/src/business/components/api/automation/ApiAutomation.vue @@ -259,7 +259,8 @@ export default { let currentScenario = { status: "Underway", principal: getCurrentUser().id, apiScenarioModuleId: "default-module", id: getUUID(), - modulePath: "/" + this.$t("commons.module_title") + modulePath: "/" + this.$t("commons.module_title"), + level: "P0" }; if (this.nodeTree && this.nodeTree.length > 0) { currentScenario.apiScenarioModuleId = this.nodeTree[0].id; @@ -279,6 +280,9 @@ export default { let name = getUUID().substring(0, 8); this.activeName = name; label = tab.currentScenario.name; + if (!tab.currentScenario.level) { + tab.currentScenario.level = "P0"; + } this.tabs.push({label: label, name: name, currentScenario: tab.currentScenario}); } if (this.$refs && this.$refs.autoScenarioConfig) { diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 03fd91cd0f..a1baabf167 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -53,7 +53,7 @@ - + @@ -407,7 +407,6 @@ export default { value: API_STATUS[0].id, options: API_STATUS, levels: PRIORITY, - level: "P0", scenario: {}, loading: false, showHideTree: true, diff --git a/frontend/src/business/components/api/automation/scenario/api/ApiRelevance.vue b/frontend/src/business/components/api/automation/scenario/api/ApiRelevance.vue index 21fdf45cb6..fca1a122b0 100644 --- a/frontend/src/business/components/api/automation/scenario/api/ApiRelevance.vue +++ b/frontend/src/business/components/api/automation/scenario/api/ApiRelevance.vue @@ -133,12 +133,6 @@ export default { }, open() { this.buttonIsWorking = false; - if (this.$refs.apiList) { - this.$refs.apiList.clearSelection(); - } - if (this.$refs.apiCaseList) { - this.$refs.apiCaseList.clearSelection(); - } this.$refs.baseRelevance.open(); }, isApiListEnableChange(data) {