From 3b437fe180078cd986e565251d48a99670f9b471 Mon Sep 17 00:00:00 2001 From: baiqi Date: Fri, 18 Oct 2024 11:52:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83):=20?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83=E9=83=A8=E5=88=86=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83&=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/modules/taskCenter.ts | 7 +- .../components/business/ms-cascader/index.vue | 14 +++- .../business/ms-prev-next-button/index.vue | 2 +- .../components/pure/ms-cron-select/index.vue | 11 +++ .../pure/ms-cron-select/locale/en-US.ts | 1 + .../pure/ms-cron-select/locale/zh-CN.ts | 1 + frontend/src/models/taskCenter.ts | 9 +++ .../component/caseTaskDetailTable.vue | 12 ++- .../taskCenter/component/caseTaskTable.vue | 79 ++++++++++++++++++- .../taskCenter/component/systemTaskTable.vue | 64 +++++++++++++-- 10 files changed, 175 insertions(+), 25 deletions(-) diff --git a/frontend/src/api/modules/taskCenter.ts b/frontend/src/api/modules/taskCenter.ts index 7d7c88add5..490db9a48a 100644 --- a/frontend/src/api/modules/taskCenter.ts +++ b/frontend/src/api/modules/taskCenter.ts @@ -28,6 +28,7 @@ import { import type { CommonList, TableQueryParams } from '@/models/common'; import type { TimingTaskCenterApiCaseItem } from '@/models/projectManagement/taskCenter'; import type { + TaskCenterResourcePoolItem, TaskCenterResourcePoolStatus, TaskCenterStatisticsItem, TaskCenterSystemTaskItem, @@ -58,7 +59,7 @@ export function getProjectExecuteTaskStatistics(data: string[]) { // 项目任务-获取资源池列表 export function getProjectTaskCenterResourcePools() { - return MSR.get({ url: projectTaskCenterResourcePoolsUrl }); + return MSR.get({ url: projectTaskCenterResourcePoolsUrl }); } // 项目任务-停止任务 @@ -98,7 +99,7 @@ export function getSystemExecuteTaskStatistics(data: string[]) { // 系统任务-获取资源池列表 export function getSystemTaskCenterResourcePools() { - return MSR.get({ url: systemTaskCenterResourcePoolsUrl }); + return MSR.get({ url: systemTaskCenterResourcePoolsUrl }); } // 系统任务-停止任务 @@ -138,7 +139,7 @@ export function getOrganizationExecuteTaskStatistics(data: string[]) { // 组织任务-获取资源池列表 export function getOrgTaskCenterResourcePools() { - return MSR.get({ url: organizationTaskCenterResourcePoolsUrl }); + return MSR.get({ url: organizationTaskCenterResourcePoolsUrl }); } // 组织任务-停止任务 diff --git a/frontend/src/components/business/ms-cascader/index.vue b/frontend/src/components/business/ms-cascader/index.vue index 2918a04da4..194f757a23 100644 --- a/frontend/src/components/business/ms-cascader/index.vue +++ b/frontend/src/components/business/ms-cascader/index.vue @@ -14,6 +14,10 @@ :placeholder="props.placeholder" :loading="props.loading" :value-key="props.valueKey" + :field-names="{ + label: props.labelKey, + value: props.valueKey, + }" :path-mode="false" @change="handleMsCascaderChange" @clear="clearValues" @@ -56,7 +60,11 @@ :virtual-list-props="props.virtualListProps" :loading="props.loading" :value-key="props.valueKey" - :path-mode="false" + :field-names="{ + label: props.labelKey, + value: props.valueKey, + }" + :path-mode="props.pathMode" @change="(val) => emit('change', val)" >