From a1530cb43c5fb26f1216965939872b4e380d818f Mon Sep 17 00:00:00 2001 From: jl-zhoujl2 Date: Wed, 18 May 2022 16:42:12 +0800 Subject: [PATCH] =?UTF-8?q?5.18=20=E5=A4=9A=E8=BD=AE=E6=8B=9B=E5=8B=9F?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=8A=95=E6=A0=87=E6=96=87=E4=BB=B6=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=88=86=E9=A1=B5=E5=90=8E=E6=95=B0=E6=8D=AE=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ZZhaoMu/Tender/UploadResponse/index.tsx | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/src/pages/ZZhaoMu/Tender/UploadResponse/index.tsx b/src/pages/ZZhaoMu/Tender/UploadResponse/index.tsx index 1bc7026..d5b864b 100644 --- a/src/pages/ZZhaoMu/Tender/UploadResponse/index.tsx +++ b/src/pages/ZZhaoMu/Tender/UploadResponse/index.tsx @@ -10,7 +10,6 @@ import { getStatusByProId } from '@/services/downLoad'; import { ExclamationCircleOutlined } from '@ant-design/icons'; const Index: React.FC<{}> = () => { - const [dateList, setDateList] = useState([]); let projectId = getProId() const [expandedRowKeys, setExpandedRowKeys] = useState([0]); //供应商资质库显示状态 @@ -24,19 +23,19 @@ const Index: React.FC<{}> = () => { * @returns true-有供应商资质库信息 false-无供应商资质库信息 */ const getSupplierStatus = async (id: string) => { - await getStatusByProId({id: id}).then(res => { - setTip(false) - if(res?.code == 200) { - setSupplierStatus(res?.data) - } + await getStatusByProId({ id: id }).then(res => { + setTip(false) + if (res?.code == 200) { + setSupplierStatus(res?.data) + } }) } - let listDate = dateList?.map((item: any, index: any) => ({ + let listRender = (list: any[]) => list?.map((item: any, index: any) => ({ title: item.packageName + '—第' + item.roomSort + '轮', description: (
- + {/* {expandedRowKeys.includes(item.sectionVO.bsId) ? : null} */}
) @@ -55,13 +54,13 @@ const Index: React.FC<{}> = () => {
- -
分包分段信息
- - -
-
- + +
分包分段信息
+ + +
+
+
@@ -73,9 +72,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, @@ -94,7 +93,7 @@ const Index: React.FC<{}> = () => { showSizeChanger: true, }} expandable={{ expandedRowKeys, onExpandedRowsChange: setExpandedRowKeys, onExpand: changeList }} - dataSource={listDate} + // dataSource={listDate} metas={{ title: {}, content: {},