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