From 53982f7bee6304db471b28d49e974968881183bd Mon Sep 17 00:00:00 2001 From: baiqi Date: Fri, 25 Oct 2024 11:09:32 +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 --- frontend/src/components/pure/ms-table/type.ts | 2 +- frontend/src/enums/tableFilterEnum.ts | 2 + frontend/src/store/modules/app/index.ts | 6 +-- frontend/src/store/modules/app/types.ts | 2 +- .../scenario/components/scenarioTable.vue | 2 +- .../src/views/api-test/scenario/index.vue | 7 +++- .../template/components/templateItem.vue | 2 +- .../component/caseTaskDetailTable.vue | 35 ++++++++++++++--- .../taskCenter/component/caseTaskTable.vue | 38 +++++++++++++------ .../taskCenter/component/systemTaskTable.vue | 34 +++++++++++++++++ 10 files changed, 104 insertions(+), 26 deletions(-) diff --git a/frontend/src/components/pure/ms-table/type.ts b/frontend/src/components/pure/ms-table/type.ts index c683f99644..62e202038b 100644 --- a/frontend/src/components/pure/ms-table/type.ts +++ b/frontend/src/components/pure/ms-table/type.ts @@ -184,9 +184,9 @@ export interface SetPaginationPrams { export interface BatchActionQueryParams { excludeIds?: string[]; // 排除的id selectedIds?: string[]; - selectIds?: string[]; // 选中的id selectAll: boolean; // 是否跨页全选 params?: TableQueryParams; // 查询参数 currentSelectCount?: number; // 当前选中的数量 condition?: any; // 查询条件 + [key: string]: any; } diff --git a/frontend/src/enums/tableFilterEnum.ts b/frontend/src/enums/tableFilterEnum.ts index 3631096c92..ee9d8fa048 100644 --- a/frontend/src/enums/tableFilterEnum.ts +++ b/frontend/src/enums/tableFilterEnum.ts @@ -23,6 +23,8 @@ export enum FilterSlotNameEnum { GLOBAL_TASK_CENTER_EXEC_RESULT = 'GLOBAL_TASK_CENTER_EXEC_RESULT', // 任务中心-执行结果 GLOBAL_TASK_CENTER_EXEC_METHOD = 'GLOBAL_TASK_CENTER_EXEC_METHOD', // 任务中心-执行方式 GLOBAL_TASK_CENTER_SYSTEM_TASK_TYPE = 'GLOBAL_TASK_CENTER_SYSTEM_TASK_TYPE', // 任务中心-后台任务类型 + GLOBAL_TASK_CENTER_SYSTEM_TASK_STATUS = 'GLOBAL_TASK_CENTER_SYSTEM_TASK_STATUS', // 任务中心-后台任务状态 + GLOBAL_TASK_CENTER_BELONG_PROJECT = 'GLOBAL_TASK_CENTER_BELONG_PROJECT', // 任务中心-所属项目 } export enum FilterRemoteMethodsEnum { diff --git a/frontend/src/store/modules/app/index.ts b/frontend/src/store/modules/app/index.ts index 004b171e84..089f67d613 100644 --- a/frontend/src/store/modules/app/index.ts +++ b/frontend/src/store/modules/app/index.ts @@ -68,7 +68,7 @@ const useAppStore = defineStore('app', { }, packageType: '', projectList: [] as ProjectListItem[], - ordList: [], + orgList: [], envList: [], currentEnvConfig: undefined, fileMaxSize: 50, @@ -231,8 +231,8 @@ const useAppStore = defineStore('app', { /** * 设置当前组织列表 */ - setOrdList(ordList: { id: string; name: string }[]) { - this.ordList = ordList; + setOrdList(orgList: { id: string; name: string }[]) { + this.orgList = orgList; }, /** * 设置当前系统包类型 diff --git a/frontend/src/store/modules/app/types.ts b/frontend/src/store/modules/app/types.ts index 30065dd080..5ff4883b66 100644 --- a/frontend/src/store/modules/app/types.ts +++ b/frontend/src/store/modules/app/types.ts @@ -42,7 +42,7 @@ export interface AppState { currentMenuConfig: string[]; packageType: string; projectList: ProjectListItem[]; - ordList: { id: string; name: string }[]; + orgList: { id: string; name: string }[]; envList: EnvironmentItem[]; currentEnvConfig?: EnvConfig; // 当前环境配置信息 fileMaxSize: number; // 文件上传最大限制 diff --git a/frontend/src/views/api-test/scenario/components/scenarioTable.vue b/frontend/src/views/api-test/scenario/components/scenarioTable.vue index 13c2cd9d24..1f828e5bfa 100644 --- a/frontend/src/views/api-test/scenario/components/scenarioTable.vue +++ b/frontend/src/views/api-test/scenario/components/scenarioTable.vue @@ -24,7 +24,7 @@ @drag-change="changeHandler" >