diff --git a/km-console/packages/layout-clusters-fe/src/pages/Jobs/ExpandedRow.tsx b/km-console/packages/layout-clusters-fe/src/pages/Jobs/ExpandedRow.tsx index f86b7158..399be7a7 100644 --- a/km-console/packages/layout-clusters-fe/src/pages/Jobs/ExpandedRow.tsx +++ b/km-console/packages/layout-clusters-fe/src/pages/Jobs/ExpandedRow.tsx @@ -61,9 +61,11 @@ const columns: any = [ const totalSize = r.totalSize ? Number(Utils.formatAssignSize(t, 'MB')) : 0; return (
- 0 && totalSize > 0 ? (movedSize / totalSize) * 100 : 0) + '%'}> + 0 && totalSize > 0 ? (movedSize / totalSize) * 100 : 0) + '%'} + > 0 && totalSize > 0 ? (movedSize / totalSize) * 100 : 0} + percent={movedSize === 0 && totalSize === 0 ? 100 : movedSize > 0 && totalSize > 0 ? (movedSize / totalSize) * 100 : 0} strokeColor="#556EE6" trailColor="#ECECF1" showInfo={false} diff --git a/km-console/packages/layout-clusters-fe/src/pages/Jobs/config.tsx b/km-console/packages/layout-clusters-fe/src/pages/Jobs/config.tsx index 3474cb2e..5dd24ce9 100644 --- a/km-console/packages/layout-clusters-fe/src/pages/Jobs/config.tsx +++ b/km-console/packages/layout-clusters-fe/src/pages/Jobs/config.tsx @@ -314,9 +314,13 @@ export const getTaskDetailsColumns = (arg?: any) => { const totalSize = r.totalSize ? Number(Utils.formatAssignSize(t, 'MB')) : 0; return (
- 0 && totalSize > 0 ? (movedSize / totalSize) * 100 : 0) + '%'}> + 0 ? 100 : movedSize > 0 && totalSize > 0 ? (movedSize / totalSize) * 100 : 0) + '%' + } + > 0 && totalSize > 0 ? (movedSize / totalSize) * 100 : 0} + percent={r.success === r.total && r.total > 0 ? 100 : movedSize > 0 && totalSize > 0 ? (movedSize / totalSize) * 100 : 0} strokeColor="#556EE6" showInfo={false} /> @@ -438,9 +442,13 @@ export const getMoveBalanceColumns = (arg?: any) => { const totalSize = r.totalSize ? Number(Utils.formatAssignSize(t, 'MB')) : 0; return (
- 0 && totalSize > 0 ? (movedSize / totalSize) * 100 : 0) + '%'}> + 0 ? 100 : movedSize > 0 && totalSize > 0 ? (movedSize / totalSize) * 100 : 0) + '%' + } + > 0 && totalSize > 0 ? (movedSize / totalSize) * 100 : 0} + percent={r.success === r.total && r.total > 0 ? 100 : movedSize > 0 && totalSize > 0 ? (movedSize / totalSize) * 100 : 0} strokeColor="#556EE6" showInfo={false} /> diff --git a/km-console/packages/layout-clusters-fe/src/pages/Jobs/index.tsx b/km-console/packages/layout-clusters-fe/src/pages/Jobs/index.tsx index 29448b1d..84e70298 100644 --- a/km-console/packages/layout-clusters-fe/src/pages/Jobs/index.tsx +++ b/km-console/packages/layout-clusters-fe/src/pages/Jobs/index.tsx @@ -209,7 +209,7 @@ const JobsList: React.FC = (props: any) => { tableProps={{ tableId: 'jobs_list', showHeader: false, - rowKey: 'jobs_list', + rowKey: 'id', loading: loading, columns: getJobsListColumns({ onDelete, setViewProgress }), dataSource: data,