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

@ -477,9 +477,10 @@ const ClarifyTheList: React.FC<{}> = () => {
return;
}
let packageIds = isNotEmpty(form.getFieldValue('packageId')) ? String(form.getFieldValue('packageId')).split(',') : [];
let params = { roomType };
if (isNotEmpty(packageIds) && packageIds.length !== 0) {
//获取公告信息 判断文件的获取和截止时间与应答截止时间的关系
getClarifyAnnoList(packageIds).then(res => {
getClarifyAnnoList(packageIds, params).then(res => {
if (res.code == 200) {
getRoomList({ sectionIdList: packageIds }).then((res2) => {
if (res2.code == 200) {

View File

@ -107,10 +107,11 @@ export function getSections(projectId: any, roomType: any) {
* 根据标段id查询公告
* @param data
*/
export function getClarifyAnnoList(data: any) {
export function getClarifyAnnoList(data: any, params: any) {
return request('/api/biz-service-ebtp-bid/v1/anno/clarifyAnnoList', {
method: 'post',
data: data
data: data,
params: params,
});
}
/**

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: {},