暂无数据图片配置

This commit is contained in:
黄心宇 2023-06-15 16:01:35 +08:00
parent 39731eb759
commit c0b01a200c
2 changed files with 5 additions and 2 deletions

View File

@ -8,6 +8,7 @@ import shijian from '../img/shijian.png';
import liulan from '../img/liulan.png';
import DefaultImg from '../Component/defaultImg';
import emptydata from '../../Images/nodata.png';
import nodata from '../img/nodata.png';
import { Link } from 'react-router-dom';
import { httpUrl } from '../fetch';
@ -144,7 +145,7 @@ function NewsList(props){
{
mainList && mainList.length === 0 &&
<div style={{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:500}}>
<img src={emptydata} alt="" width="300"/>
<img src={ temp === 'zone1' ? nodata : emptydata } alt="" width="300"/>
<p className="font-15 color-grey-6 mt20">暂无数据~</p>
</div>
}

View File

@ -6,6 +6,8 @@ import { Link } from 'react-router-dom';
import Nodata from '../../Nodata';
import axios from 'axios';
import { httpUrl } from '../fetch';
import nodata from '../img/nodata.png';
const { Search } = Input;
function ProjectSource(props){
@ -164,7 +166,7 @@ function ProjectSource(props){
:""
}
{
lists && lists.length === 0 && <Nodata _html={"暂无数据"}/>
lists && lists.length === 0 && temp === 'zone1' ? <Nodata _html="暂无数据" img={ nodata }/> : <Nodata _html="暂无数据" />
}
</div>
</Spin>