From 0bdc7b0fedcec0262ba4d40d1abc1d5f5da36523 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 14 Feb 2022 15:46:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=98=E6=9B=B4=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/api/automation/scenario/EditApiScenario.vue | 2 +- .../components/api/definition/components/case/ApiCaseItem.vue | 2 +- .../api/definition/components/complete/EditCompleteDubboApi.vue | 2 +- .../api/definition/components/complete/EditCompleteHTTPApi.vue | 2 +- .../api/definition/components/complete/EditCompleteSQLApi.vue | 2 +- .../api/definition/components/complete/EditCompleteTCPApi.vue | 2 +- frontend/src/business/components/history/ChangeHistory.vue | 2 +- .../components/performance/test/EditPerformanceTest.vue | 2 +- .../business/components/track/case/components/TestCaseEdit.vue | 2 +- .../components/track/case/components/TestCaseEditShow.vue | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index e3e213e037..50317f51a6 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -926,7 +926,7 @@ export default { }); }, openHis() { - this.$refs.changeHistory.open(this.currentScenario.id, ["接口自动化", "Api automation", "接口自動化"]); + this.$refs.changeHistory.open(this.currentScenario.id, ["接口自动化", "Api automation", "接口自動化", "API_AUTOMATION"]); }, setModule(id, data) { this.currentScenario.apiScenarioModuleId = id; diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue index 2f941f7c46..d02523817b 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue @@ -286,7 +286,7 @@ export default { }, hasPermission, openHis(row) { - this.$refs.changeHistory.open(row.id, ["接口定义用例", "接口定義用例", "Api definition case"]); + this.$refs.changeHistory.open(row.id, ["接口定义用例", "接口定義用例", "Api definition case", "API_DEFINITION_CASE"]); }, getColor(enable, method) { if (enable) { diff --git a/frontend/src/business/components/api/definition/components/complete/EditCompleteDubboApi.vue b/frontend/src/business/components/api/definition/components/complete/EditCompleteDubboApi.vue index fb8a42b18b..9fd73b8cb9 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteDubboApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteDubboApi.vue @@ -169,7 +169,7 @@ export default { }, methods: { openHis() { - this.$refs.changeHistory.open(this.basisData.id, ["接口定义", "接口定義", "Api definition"]); + this.$refs.changeHistory.open(this.basisData.id, ["接口定义", "接口定義", "Api definition", "API_DEFINITION"]); }, callback() { this.validated = true; diff --git a/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue b/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue index 9e770631b6..6d9b1fe64e 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue @@ -420,7 +420,7 @@ export default { return getCurrentUser(); }, openHis() { - this.$refs.changeHistory.open(this.httpForm.id, ["接口定义", "接口定義", "Api definition"]); + this.$refs.changeHistory.open(this.httpForm.id, ["接口定义", "接口定義", "Api definition", "API_DEFINITION"]); }, mockSetting() { if (this.basisData.id) { diff --git a/frontend/src/business/components/api/definition/components/complete/EditCompleteSQLApi.vue b/frontend/src/business/components/api/definition/components/complete/EditCompleteSQLApi.vue index 14a609b566..e9dc10ee55 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteSQLApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteSQLApi.vue @@ -173,7 +173,7 @@ export default { }, methods: { openHis() { - this.$refs.changeHistory.open(this.basisData.id, ["接口定义", "接口定義", "Api definition"]); + this.$refs.changeHistory.open(this.basisData.id, ["接口定义", "接口定義", "Api definition", "API_DEFINITION"]); }, callback() { this.validated = true; diff --git a/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue b/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue index aef0d84a08..7920509b2f 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue @@ -235,7 +235,7 @@ export default { }, methods: { openHis() { - this.$refs.changeHistory.open(this.basisData.id, ["接口定义", "接口定義", "Api definition"]); + this.$refs.changeHistory.open(this.basisData.id, ["接口定义", "接口定義", "Api definition", "API_DEFINITION"]); }, callback() { this.validated = true; diff --git a/frontend/src/business/components/history/ChangeHistory.vue b/frontend/src/business/components/history/ChangeHistory.vue index f1d3222bf0..859362cb72 100644 --- a/frontend/src/business/components/history/ChangeHistory.vue +++ b/frontend/src/business/components/history/ChangeHistory.vue @@ -94,7 +94,7 @@ export default { if (value.columnName === "tags") { this.$refs.tagsHistoryDetail.open(value); } else if ((value.columnName === "request" || value.columnName === "response") && - (row.operModule === "接口定义" || row.operModule === "接口定義" || row.operModule === "Api definition")) { + (row.operModule === "接口定义" || row.operModule === "接口定義" || row.operModule === "Api definition" || row.operModule === "API_DEFINITION")) { this.$refs.apiHistoryDetail.open(value); } else { this.$refs.historyDetail.open(value); diff --git a/frontend/src/business/components/performance/test/EditPerformanceTest.vue b/frontend/src/business/components/performance/test/EditPerformanceTest.vue index 8ad9abc224..68fdfddbf4 100644 --- a/frontend/src/business/components/performance/test/EditPerformanceTest.vue +++ b/frontend/src/business/components/performance/test/EditPerformanceTest.vue @@ -199,7 +199,7 @@ export default { }); }, openHis() { - this.$refs.changeHistory.open(this.test.id, ["性能测试", "性能測試", "Performance test"]); + this.$refs.changeHistory.open(this.test.id, ["性能测试", "性能測試", "Performance test", "PERFORMANCE_TEST"]); }, importAPITest() { let apiTest = this.$store.state.test; diff --git a/frontend/src/business/components/track/case/components/TestCaseEdit.vue b/frontend/src/business/components/track/case/components/TestCaseEdit.vue index f21ea59127..0296bbbcf1 100644 --- a/frontend/src/business/components/track/case/components/TestCaseEdit.vue +++ b/frontend/src/business/components/track/case/components/TestCaseEdit.vue @@ -478,7 +478,7 @@ export default { return getCurrentUser(); }, openHis() { - this.$refs.changeHistory.open(this.form.id, ["测试用例", "測試用例", "Test case"]); + this.$refs.changeHistory.open(this.form.id, ["测试用例", "測試用例", "Test case", "TRACK_TEST_CASE"]); }, setModule(id, data) { this.form.module = id; diff --git a/frontend/src/business/components/track/case/components/TestCaseEditShow.vue b/frontend/src/business/components/track/case/components/TestCaseEditShow.vue index 1aeb7ea2cb..628a878106 100644 --- a/frontend/src/business/components/track/case/components/TestCaseEditShow.vue +++ b/frontend/src/business/components/track/case/components/TestCaseEditShow.vue @@ -422,7 +422,7 @@ export default { return getCurrentUser(); }, openHis() { - this.$refs.changeHistory.open(this.form.id, ["测试用例", "測試用例", "Test case"]); + this.$refs.changeHistory.open(this.form.id, ["测试用例", "測試用例", "Test case", "TRACK_TEST_CASE"]); }, setModule(id, data) { this.form.module = id;