Merge branch '20220517-门户-3.0修改-单点中转页与商机列表页修改' into 'release_20220617'

6.17 门户 3.0修改 单点中转页与商机列表页修改

See merge request eshop/fe_service_ebtp_frontend!122
This commit is contained in:
周建龙
2022-06-17 21:23:09 +08:00
10 changed files with 276 additions and 134 deletions

View File

@ -95,6 +95,8 @@ const LookingForBusinessOpportunitiesList: React.FC<{}> = () => {
}
const docSaveBtn = "compact";//保存按钮是否展示
//项目编号
const ebpProjectNumber = getURLInformation('number');
function getBsName() {
if (bidMethodDict.indexOf("procurement_mode_4") !== -1) {
@ -108,12 +110,14 @@ const LookingForBusinessOpportunitiesList: React.FC<{}> = () => {
useEffect(() => {
setTableLoading(true);
if (bidMethodDict.indexOf("procurement_mode_4") > -1) {
lookingForBussinessOther(bussinessParams).then(res => {
lookingForBussinessOther(isNotEmpty(ebpProjectNumber) ? { ...bussinessParams, ebpProjectNumber } : bussinessParams).then(res => {
isNotEmpty(window.location.search) && history.push(window.location.pathname);
setTableList(res.data);
setTableLoading(false);
})
} else {
lookingForBussiness(bussinessParams).then(res => {
lookingForBussiness(isNotEmpty(ebpProjectNumber) ? { ...bussinessParams, ebpProjectNumber } : bussinessParams).then(res => {
isNotEmpty(window.location.search) && history.push(window.location.pathname);
setTableList(res.data);
setTableLoading(false);
})