From b5a8bd541f463f8e4af8ca751ec9d3b3892f77bd Mon Sep 17 00:00:00 2001 From: baiqi Date: Wed, 23 Oct 2024 17:19:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83):=20bu?= =?UTF-8?q?gFix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/modules/taskCenter/organization.ts | 2 +- .../src/api/modules/taskCenter/project.ts | 2 +- frontend/src/api/modules/taskCenter/system.ts | 2 +- frontend/src/locale/en-US/common.ts | 1 + frontend/src/locale/zh-CN/common.ts | 1 + .../case/tabContent/tabCaseExecuteHistory.vue | 2 +- .../scenario/components/executeHistory.vue | 2 +- .../component/batchTaskReportDrawer.vue | 24 -------- .../component/caseExecuteResultDrawer.vue | 4 +- .../component/caseTaskDetailTable.vue | 14 ++++- .../taskCenter/component/caseTaskTable.vue | 20 ++++++- .../component/scenarioExecuteResultDrawer.vue | 4 +- .../taskCenter/component/systemTaskTable.vue | 55 ++++++++++++------- frontend/src/views/taskCenter/locale/en-US.ts | 1 + frontend/src/views/taskCenter/locale/zh-CN.ts | 1 + .../testPlan/detail/executeHistory/index.vue | 2 +- 16 files changed, 81 insertions(+), 56 deletions(-) diff --git a/frontend/src/api/modules/taskCenter/organization.ts b/frontend/src/api/modules/taskCenter/organization.ts index 6b6186fd5b..3395484ce5 100644 --- a/frontend/src/api/modules/taskCenter/organization.ts +++ b/frontend/src/api/modules/taskCenter/organization.ts @@ -78,7 +78,7 @@ export function organizationTaskOrder(data: string[]) { // 组织任务-批量停止任务 export function organizationBatchStopTask(data: TaskCenterBatchParams) { - return MSR.get({ url: organizationBatchStopTaskUrl, data }); + return MSR.post({ url: organizationBatchStopTaskUrl, data }); } // 组织任务-用例任务详情-停止任务 diff --git a/frontend/src/api/modules/taskCenter/project.ts b/frontend/src/api/modules/taskCenter/project.ts index bbf90825cb..03d6118311 100644 --- a/frontend/src/api/modules/taskCenter/project.ts +++ b/frontend/src/api/modules/taskCenter/project.ts @@ -85,7 +85,7 @@ export function projectTaskOrder(data: string[]) { // 项目任务-批量停止任务 export function projectBatchStopTask(data: TaskCenterBatchParams) { - return MSR.get({ url: projectBatchStopTaskUrl, data }); + return MSR.post({ url: projectBatchStopTaskUrl, data }); } // 项目任务-用例任务详情-停止任务 diff --git a/frontend/src/api/modules/taskCenter/system.ts b/frontend/src/api/modules/taskCenter/system.ts index 0c5ac00478..78bf5b1463 100644 --- a/frontend/src/api/modules/taskCenter/system.ts +++ b/frontend/src/api/modules/taskCenter/system.ts @@ -75,7 +75,7 @@ export function systemStopTask(id: string) { // 系统任务-批量停止任务 export function systemBatchStopTask(data: TaskCenterBatchParams) { - return MSR.get({ url: systemBatchStopTaskUrl, data }); + return MSR.post({ url: systemBatchStopTaskUrl, data }); } // 系统任务-用例任务详情-停止任务 diff --git a/frontend/src/locale/en-US/common.ts b/frontend/src/locale/en-US/common.ts index dfe7f1e19f..d7420a0622 100644 --- a/frontend/src/locale/en-US/common.ts +++ b/frontend/src/locale/en-US/common.ts @@ -201,6 +201,7 @@ export default { 'common.completed': 'Completed', 'common.config': 'Config', 'common.executionResult': 'Execution result', + 'common.executionResultCleaned': 'Execution results are cleaned', 'common.expandAllSubModule': 'Expand all submodules', 'common.collapseAllSubModule': 'Collapse all submodules', 'common.selectedCount': '{count} data selected', diff --git a/frontend/src/locale/zh-CN/common.ts b/frontend/src/locale/zh-CN/common.ts index 63f3dcc906..05e415caef 100644 --- a/frontend/src/locale/zh-CN/common.ts +++ b/frontend/src/locale/zh-CN/common.ts @@ -185,6 +185,7 @@ export default { 'common.belongModule': '所属模块', 'common.moreSetting': '更多设置', 'common.executionResult': '执行结果', + 'common.executionResultCleaned': '执行结果被清理', 'common.detail': '详情', 'common.baseInfo': '基本信息', 'common.remark': '备注', diff --git a/frontend/src/views/api-test/management/components/management/case/tabContent/tabCaseExecuteHistory.vue b/frontend/src/views/api-test/management/components/management/case/tabContent/tabCaseExecuteHistory.vue index 0347af8fa9..f29623c31a 100644 --- a/frontend/src/views/api-test/management/components/management/case/tabContent/tabCaseExecuteHistory.vue +++ b/frontend/src/views/api-test/management/components/management/case/tabContent/tabCaseExecuteHistory.vue @@ -46,7 +46,7 @@