diff --git a/api-test/frontend/src/business/definition/components/case/ApiCaseItem.vue b/api-test/frontend/src/business/definition/components/case/ApiCaseItem.vue index ca77e46a0f..706629817f 100644 --- a/api-test/frontend/src/business/definition/components/case/ApiCaseItem.vue +++ b/api-test/frontend/src/business/definition/components/case/ApiCaseItem.vue @@ -482,13 +482,13 @@ export default { }); }, singleRun(data) { - let methods = ["SQL", "DUBBO", "dubbo://", "TCP"]; + let methods = ['SQL', 'DUBBO', 'dubbo://']; if (data.apiMethod && methods.indexOf(data.apiMethod) === -1 && (!this.environment || this.environment === undefined)) { this.$warning(this.$t('api_test.environment.select_environment')); return; } mergeRequestDocumentData(data.request); - if (data.apiMethod !== "SQL" && data.apiMethod !== "DUBBO" && data.apiMethod !== "dubbo://" && data.apiMethod !== "TCP") { + if (data.apiMethod !== 'SQL' && data.apiMethod !== 'DUBBO' && data.apiMethod !== 'dubbo://') { data.request.useEnvironment = this.environment; } else { data.request.useEnvironment = data.request.environmentId; @@ -504,7 +504,7 @@ export default { let request = JSON.parse(JSON.stringify(data.request)); request.id = uuid; let obj = { - name: "copy_" + data.name, + name: 'copy_' + data.name, priority: data.priority, active: true, tags: data.tags, diff --git a/api-test/frontend/src/business/definition/components/case/EditApiCase.vue b/api-test/frontend/src/business/definition/components/case/EditApiCase.vue index 836709ab47..8aebe9bfe5 100644 --- a/api-test/frontend/src/business/definition/components/case/EditApiCase.vue +++ b/api-test/frontend/src/business/definition/components/case/EditApiCase.vue @@ -553,7 +553,7 @@ export default { active: true, tags: [], uuid: newUuid, - caseStatus: "Underway", + caseStatus: 'Underway', type: 'AddCase' }; request.projectId = getCurrentProjectID(); @@ -574,7 +574,7 @@ export default { this.$emit('showExecResult', row); }, singleRun(row) { - let methods = ["SQL", "DUBBO", "dubbo://", "TCP"]; + let methods = ['SQL', 'DUBBO', 'dubbo://']; if (row.apiMethod && methods.indexOf(row.apiMethod) === -1 && (!this.environment || this.environment === undefined)) { this.$warning(this.$t('api_test.environment.select_environment')); return; @@ -583,7 +583,7 @@ export default { this.singleLoading = true; this.singleRunId = row.id; row.request.name = row.id; - if (row.apiMethod !== "SQL" && row.apiMethod !== "DUBBO" && row.apiMethod !== "dubbo://") { + if (row.apiMethod !== 'SQL' && row.apiMethod !== 'DUBBO' && row.apiMethod !== 'dubbo://') { row.request.useEnvironment = this.environment; } else { row.request.useEnvironment = row.request.environmentId; @@ -595,13 +595,13 @@ export default { /*触发执行操作*/ this.reportId = getUUID().substring(0, 8); this.testCaseId = row.id ? row.id : row.request.id; - this.$emit("refreshCase", this.testCaseId); + this.$emit('refreshCase', this.testCaseId); }, stop(id) { - let obj = {type: "API", reportId: this.reportId}; + let obj = {type: 'API', reportId: this.reportId}; execBatchStop([obj]).then(response => { - this.$emit("stop", id); + this.$emit('stop', id); this.singleLoading = false; this.$success(this.$t('report.test_stop_success')); }); @@ -639,7 +639,8 @@ export default { .ms-drawer :deep(.ms-drawer-body) { margin-top: 40px; } -.ms-drawer-case-header :deep(.ms-drawer-header){ + +.ms-drawer-case-header :deep(.ms-drawer-header) { margin-left: 0px; }