Merge branch '20220518-折叠以后再展开才是实际的数据' of http://10.124.128.2:8888/eshop/fe_service_ebtp_frontend into 20220507-MAC地址强控

This commit is contained in:
jl-zhoujl2
2022-05-19 12:55:22 +08:00
10 changed files with 38 additions and 45 deletions

View File

@ -11,7 +11,6 @@ import { ExclamationCircleOutlined } from '@ant-design/icons';
import SupplierCommitment from '@/pages/Tender/UploadResponse/components/SupplierCommitment';
const Index: React.FC<{}> = () => {
const [dateList, setDateList] = useState([]);
let projectId = getProId()
const [expandedRowKeys, setExpandedRowKeys] = useState<ReactText[]>([0]);
//供应商资质库显示状态
@ -35,7 +34,7 @@ const Index: React.FC<{}> = () => {
})
}
let listDate = dateList?.map((item: any, index: any) => ({
let listRender = (list: any[]) => list?.map((item: any, index: any) => ({
title: item.packageName + '—第' + item.roomSort + '轮',
description: (
<div>
@ -77,9 +76,9 @@ const Index: React.FC<{}> = () => {
await getPackages(params).then((res) => {
if (res.code == 200) {
let data = res.data;
setDateList(res.data.records)
// setDateList(res.data.records)
return Promise.resolve({
data: data.records,
data: listRender(data.records),
success: res.success,
total: res.data.total,
current: res.data.current,
@ -98,7 +97,7 @@ const Index: React.FC<{}> = () => {
showSizeChanger: true,
}}
expandable={{ expandedRowKeys, onExpandedRowsChange: setExpandedRowKeys, onExpand: changeList }}
dataSource={listDate}
// dataSource={listDate}
metas={{
title: {},
content: {},