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

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

parent aad6f65c
Pipeline #83664 waiting for manual action with stages
......@@ -381,6 +381,9 @@ const WorkflowHomePage = () => {
}
});
};
const handleImgError = e => {
e.target.src = require('../../../../assets/images/common/noData.png');
};
return (
<div
className={classnames(styles.pageContent, {
......@@ -560,7 +563,7 @@ const WorkflowHomePage = () => {
// }/PandaOMS/OMS/FileCenter/DownLoadFiles?filePath=${ele.PreviewImage}`}
// />
// <img src={`${window.location.origin}/${ele.PreviewImage}`} />
<img src={ele.PreviewImage} />
<img src={ele.PreviewImage} onError={handleImgError} />
) : (
<img
className={styles.noDataImg}
......
......@@ -113,7 +113,6 @@ const HomePage = () => {
newGetSolution();
getSiteCode();
getGateWay();
pipeNetwork();
getMapScheme();
getLogMessage();
onGetProduct();
......@@ -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 = () => {
......@@ -1238,7 +1226,7 @@ const HomePage = () => {
</div>
<div className={styles.dataCenterValue}>
<div>
<span className={styles.boldText}>{pipeArr}</span>
<span className={styles.boldText}>{dashboardData.管网服务 || '-'}</span>
<span className={styles.smallText}></span>
</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