Commit 0147a07c authored by 皮倩雯's avatar 皮倩雯

fix: '首页增加图标'

parent 2eb6012a
Pipeline #79748 passed with stages
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
......@@ -37,6 +37,11 @@ import bubble from '@/assets/images/icons/三角形.png';
import abnormalRed from '@/assets/images/icons/异常红色.png';
import abnormalGreen from '@/assets/images/icons/异常绿色.png';
import abnormalYellow from '@/assets/images/icons/异常黄色.png';
import pipe from '@/assets/images/icons/管网.png';
import update from '@/assets/images/icons/更新.png';
import map1 from '@/assets/images/icons/地图1.png';
import power from '@/assets/images/icons/权限2.png';
import map2 from '@/assets/images/icons/地图.png';
import { useHistory } from 'react-router-dom';
import moment from 'moment';
import {
......@@ -189,7 +194,8 @@ const HomePage = () => {
const getOMSDashboard = () => {
setLoadingCenter(true);
GetOMSDashboard().then(res => {
GetOMSDashboard()
.then(res => {
setLoadingCenter(false);
if (res.code === 0) {
let arr = [];
......@@ -221,6 +227,10 @@ const HomePage = () => {
res.data.用户登录统计 = echartsData;
setDashboardData(res.data);
}
})
.catch(err => {
setLoadingCenter(false);
message.error(err);
});
};
......@@ -1204,11 +1214,26 @@ const HomePage = () => {
<div className={styles.content}>
<div className={styles.item}>
<div className={styles.dataCenterLabel}>
<div>管网服务</div>
<div>元数据更新时间</div>
<div>地图方案</div>
<div>已配置权限</div>
<div>默认范围</div>
<div>
<img src={pipe} alt="" style={{ marginRight: '7px', marginTop: '-5px' }} />
管网服务
</div>
<div>
<img src={update} alt="" style={{ marginRight: '7px', marginTop: '-5px' }} />
元数据更新时间
</div>
<div>
<img src={map1} alt="" style={{ marginRight: '7px', marginTop: '-5px' }} />
地图方案
</div>
<div>
<img src={power} alt="" style={{ marginRight: '7px', marginTop: '-5px' }} />
已配置权限
</div>
<div>
<img src={map2} alt="" style={{ marginRight: '7px', marginTop: '-5px' }} />
默认范围
</div>
</div>
<div className={styles.dataCenterValue}>
<div>
......
......@@ -706,7 +706,7 @@
height: calc(100% - 20px);
overflow-y: scroll;
display: flex;
justify-content: space-around;
justify-content: space-between;
.dataCenterLabel {
line-height: 38px;
margin-left: 10px;
......@@ -721,6 +721,7 @@
font-size: 16px;
font-family: Microsoft YaHei;
color: #333333;
margin-right: 10px;
.boldText {
font-weight: bold;
}
......
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