fix(compAudit): 修复组件审核页面数据字段映射和样式问题

master
钟良源 2 weeks ago
parent 1bb41ef612
commit 5ea91b8c0d

@ -274,10 +274,10 @@ const CompAudit = () => {
if (res.code === 200 && res.data) { if (res.code === 200 && res.data) {
setData(res.data.list || []); setData(res.data.list || []);
setPagination({ setPagination({
totalCount: res.data.total || 0, totalCount: res.data.totalCount || 0,
pageSize: res.data.size || 10, pageSize: res.data.pageSize || 10,
totalPage: res.data.pages || 0, totalPage: res.data.totalPage || 0,
currPage: res.data.current || 1 currPage: res.data.currPage || 1
}); });
} }
else { else {

@ -4,6 +4,15 @@
background-color: #ffffff; background-color: #ffffff;
padding: 17px 19px 0 24px; padding: 17px 19px 0 24px;
.pagination-container {
display: flex;
justify-content: flex-end;
padding: 16px 0;
flex-shrink: 0;
border-top: 1px solid #E5E6EB;
margin-top: 8px;
}
.comp-list-menu { .comp-list-menu {
flex: 1; flex: 1;
border-right: 4px solid #E5E6EB; border-right: 4px solid #E5E6EB;
@ -84,14 +93,6 @@
box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08); box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
} }
} }
.pagination-container {
display: flex;
justify-content: flex-end;
padding: 16px 0;
flex-shrink: 0;
border-top: 1px solid #E5E6EB;
}
} }
} }
} }
Loading…
Cancel
Save