feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面

This commit is contained in:
zhanjunhao
2026-11-09 21:45:37 +08:00
parent 6ad95e2baa
commit 5713d541b0
242 changed files with 9242 additions and 5043 deletions
@@ -54,6 +54,7 @@ const UpstreamConflictModal = ({
t,
loading = false,
}) => {
const [paginationSize, setPaginationSize] = useState(MODEL_TABLE_PAGE_SIZE);
const [selections, setSelections] = useState({});
const isMobile = useIsMobile();
const [currentPage, setCurrentPage] = useState(1);
@@ -247,10 +248,10 @@ const UpstreamConflictModal = ({
]);
const pagedDataSource = useMemo(() => {
const start = (currentPage - 1) * MODEL_TABLE_PAGE_SIZE;
const end = start + MODEL_TABLE_PAGE_SIZE;
const start = (currentPage - 1) * paginationSize;
const end = start + paginationSize;
return filteredDataSource.slice(start, end);
}, [filteredDataSource, currentPage]);
}, [filteredDataSource, currentPage, paginationSize]);
const handleOk = async () => {
const payload = Object.entries(selections)
@@ -302,10 +303,14 @@ const UpstreamConflictModal = ({
dataSource={pagedDataSource}
pagination={{
currentPage: currentPage,
pageSize: MODEL_TABLE_PAGE_SIZE,
pageSize: paginationSize,
total: filteredDataSource.length,
showSizeChanger: false,
onPageChange: (page) => setCurrentPage(page),
onPageSizeChange: (size) => {
setCurrentPage(1);
setPaginationSize(size);
},
}}
scroll={{ x: 'max-content' }}
/>