fix: 变更历史查询问题

This commit is contained in:
shiziyuan9527 2022-02-14 15:46:09 +08:00 committed by 刘瑞斌
parent 7527282992
commit c3f359854e
10 changed files with 10 additions and 10 deletions

View File

@ -926,7 +926,7 @@ export default {
}); });
}, },
openHis() { openHis() {
this.$refs.changeHistory.open(this.currentScenario.id, ["接口自动化", "Api automation", "接口自動化"]); this.$refs.changeHistory.open(this.currentScenario.id, ["接口自动化", "Api automation", "接口自動化", "API_AUTOMATION"]);
}, },
setModule(id, data) { setModule(id, data) {
this.currentScenario.apiScenarioModuleId = id; this.currentScenario.apiScenarioModuleId = id;

View File

@ -286,7 +286,7 @@ export default {
}, },
hasPermission, hasPermission,
openHis(row) { 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) { getColor(enable, method) {
if (enable) { if (enable) {

View File

@ -169,7 +169,7 @@ export default {
}, },
methods: { methods: {
openHis() { openHis() {
this.$refs.changeHistory.open(this.basisData.id, ["接口定义", "接口定義", "Api definition"]); this.$refs.changeHistory.open(this.basisData.id, ["接口定义", "接口定義", "Api definition", "API_DEFINITION"]);
}, },
callback() { callback() {
this.validated = true; this.validated = true;

View File

@ -420,7 +420,7 @@ export default {
return getCurrentUser(); return getCurrentUser();
}, },
openHis() { openHis() {
this.$refs.changeHistory.open(this.httpForm.id, ["接口定义", "接口定義", "Api definition"]); this.$refs.changeHistory.open(this.httpForm.id, ["接口定义", "接口定義", "Api definition", "API_DEFINITION"]);
}, },
mockSetting() { mockSetting() {
if (this.basisData.id) { if (this.basisData.id) {

View File

@ -173,7 +173,7 @@ export default {
}, },
methods: { methods: {
openHis() { openHis() {
this.$refs.changeHistory.open(this.basisData.id, ["接口定义", "接口定義", "Api definition"]); this.$refs.changeHistory.open(this.basisData.id, ["接口定义", "接口定義", "Api definition", "API_DEFINITION"]);
}, },
callback() { callback() {
this.validated = true; this.validated = true;

View File

@ -235,7 +235,7 @@ export default {
}, },
methods: { methods: {
openHis() { openHis() {
this.$refs.changeHistory.open(this.basisData.id, ["接口定义", "接口定義", "Api definition"]); this.$refs.changeHistory.open(this.basisData.id, ["接口定义", "接口定義", "Api definition", "API_DEFINITION"]);
}, },
callback() { callback() {
this.validated = true; this.validated = true;

View File

@ -94,7 +94,7 @@ export default {
if (value.columnName === "tags") { if (value.columnName === "tags") {
this.$refs.tagsHistoryDetail.open(value); this.$refs.tagsHistoryDetail.open(value);
} else if ((value.columnName === "request" || value.columnName === "response") && } 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); this.$refs.apiHistoryDetail.open(value);
} else { } else {
this.$refs.historyDetail.open(value); this.$refs.historyDetail.open(value);

View File

@ -199,7 +199,7 @@ export default {
}); });
}, },
openHis() { openHis() {
this.$refs.changeHistory.open(this.test.id, ["性能测试", "性能測試", "Performance test"]); this.$refs.changeHistory.open(this.test.id, ["性能测试", "性能測試", "Performance test", "PERFORMANCE_TEST"]);
}, },
importAPITest() { importAPITest() {
let apiTest = this.$store.state.test; let apiTest = this.$store.state.test;

View File

@ -478,7 +478,7 @@ export default {
return getCurrentUser(); return getCurrentUser();
}, },
openHis() { 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) { setModule(id, data) {
this.form.module = id; this.form.module = id;

View File

@ -422,7 +422,7 @@ export default {
return getCurrentUser(); return getCurrentUser();
}, },
openHis() { 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) { setModule(id, data) {
this.form.module = id; this.form.module = id;