Commit e1ddb7b2 authored by 皮倩雯's avatar 皮倩雯

fix: '流程中心裂开图片修复'

parent aad6f65c
Pipeline #83664 waiting for manual action with stages
...@@ -381,6 +381,9 @@ const WorkflowHomePage = () => { ...@@ -381,6 +381,9 @@ const WorkflowHomePage = () => {
} }
}); });
}; };
const handleImgError = e => {
e.target.src = require('../../../../assets/images/common/noData.png');
};
return ( return (
<div <div
className={classnames(styles.pageContent, { className={classnames(styles.pageContent, {
...@@ -560,7 +563,7 @@ const WorkflowHomePage = () => { ...@@ -560,7 +563,7 @@ const WorkflowHomePage = () => {
// }/PandaOMS/OMS/FileCenter/DownLoadFiles?filePath=${ele.PreviewImage}`} // }/PandaOMS/OMS/FileCenter/DownLoadFiles?filePath=${ele.PreviewImage}`}
// /> // />
// <img src={`${window.location.origin}/${ele.PreviewImage}`} /> // <img src={`${window.location.origin}/${ele.PreviewImage}`} />
<img src={ele.PreviewImage} /> <img src={ele.PreviewImage} onError={handleImgError} />
) : ( ) : (
<img <img
className={styles.noDataImg} className={styles.noDataImg}
......
...@@ -113,7 +113,6 @@ const HomePage = () => { ...@@ -113,7 +113,6 @@ const HomePage = () => {
newGetSolution(); newGetSolution();
getSiteCode(); getSiteCode();
getGateWay(); getGateWay();
pipeNetwork();
getMapScheme(); getMapScheme();
getLogMessage(); getLogMessage();
onGetProduct(); onGetProduct();
...@@ -331,17 +330,6 @@ const HomePage = () => { ...@@ -331,17 +330,6 @@ const HomePage = () => {
} }
}); });
}; };
// 获取管网数量
const pipeNetwork = () => {
GetVectorService().then(res => {
if (res.code === 0) {
let num = res.data.VectorList.length;
setPipeArr(num);
} else {
setPipeArr('-');
}
});
};
// 获取日志表格数据 // 获取日志表格数据
const getLogMessage = () => { const getLogMessage = () => {
...@@ -1238,7 +1226,7 @@ const HomePage = () => { ...@@ -1238,7 +1226,7 @@ const HomePage = () => {
</div> </div>
<div className={styles.dataCenterValue}> <div className={styles.dataCenterValue}>
<div> <div>
<span className={styles.boldText}>{pipeArr}</span> <span className={styles.boldText}>{dashboardData.管网服务 || '-'}</span>
<span className={styles.smallText}></span> <span className={styles.smallText}></span>
</div> </div>
<div>{dashboardData.元数据更新事件 || '-'}</div> <div>{dashboardData.元数据更新事件 || '-'}</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment