Merge branch '20220507-MAC地址强控' into 'master-20220527'
5.27 MAC地址强控 See merge request eshop/fe_service_ebtp_frontend!87
This commit is contained in:
@ -8,6 +8,7 @@ import ProList from '@ant-design/pro-list';
|
||||
import TableLook from './TableLook';
|
||||
import { getStatusByProId } from '@/services/downLoad';
|
||||
import { ExclamationCircleOutlined } from '@ant-design/icons';
|
||||
import SupplierCommitment from '@/pages/Tender/UploadResponse/components/SupplierCommitment';
|
||||
|
||||
const Index: React.FC<{}> = () => {
|
||||
let projectId = getProId()
|
||||
@ -16,6 +17,8 @@ const Index: React.FC<{}> = () => {
|
||||
const [supplierStatus, setSupplierStatus] = useState<boolean>(false);
|
||||
// 提示信息显隐
|
||||
const [tip, setTip] = useState<boolean>(true);
|
||||
//是否初始化列表-供应商承诺书用
|
||||
const [isInit, setIsInit] = useState<boolean>(false);
|
||||
|
||||
/**
|
||||
* 根据项目id获取供应商资质库信息引用状态
|
||||
@ -64,42 +67,45 @@ const Index: React.FC<{}> = () => {
|
||||
</Row>
|
||||
</div>
|
||||
</div>
|
||||
<ProList
|
||||
className="pro-list"
|
||||
rowKey="bsId"
|
||||
params={{ "projectId": projectId }}
|
||||
request={async (params) =>
|
||||
await getPackages(params).then((res) => {
|
||||
if (res.code == 200) {
|
||||
let data = res.data;
|
||||
// setDateList(res.data.records)
|
||||
{isInit && (
|
||||
<ProList
|
||||
className="pro-list"
|
||||
rowKey="bsId"
|
||||
params={{ "projectId": projectId }}
|
||||
request={async (params) =>
|
||||
await getPackages(params).then((res) => {
|
||||
if (res.code == 200) {
|
||||
let data = res.data;
|
||||
// setDateList(res.data.records)
|
||||
return Promise.resolve({
|
||||
data: listRender(data.records),
|
||||
success: res.success,
|
||||
total: res.data.total,
|
||||
current: res.data.current,
|
||||
});
|
||||
}
|
||||
return Promise.resolve({
|
||||
data: listRender(data.records),
|
||||
success: res.success,
|
||||
total: res.data.total,
|
||||
current: res.data.current,
|
||||
data: [],
|
||||
success: false,
|
||||
total: 0,
|
||||
current: 1,
|
||||
});
|
||||
}
|
||||
return Promise.resolve({
|
||||
data: [],
|
||||
success: false,
|
||||
total: 0,
|
||||
current: 1,
|
||||
});
|
||||
})
|
||||
}
|
||||
pagination={{
|
||||
defaultPageSize: 10,
|
||||
showSizeChanger: true,
|
||||
}}
|
||||
expandable={{ expandedRowKeys, onExpandedRowsChange: setExpandedRowKeys, onExpand: changeList }}
|
||||
// dataSource={listDate}
|
||||
metas={{
|
||||
title: {},
|
||||
content: {},
|
||||
description: {}
|
||||
}}
|
||||
/>
|
||||
})
|
||||
}
|
||||
pagination={{
|
||||
defaultPageSize: 10,
|
||||
showSizeChanger: true,
|
||||
}}
|
||||
expandable={{ expandedRowKeys, onExpandedRowsChange: setExpandedRowKeys, onExpand: changeList }}
|
||||
// dataSource={listDate}
|
||||
metas={{
|
||||
title: {},
|
||||
content: {},
|
||||
description: {}
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
<SupplierCommitment projectId={projectId} callback={() => { setIsInit(true) }} />
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
|
Reference in New Issue
Block a user