Commit ea9f206e authored by zhengjiangtao's avatar zhengjiangtao

日常值守地图数据提取mock

parent ca70fd68
......@@ -60,9 +60,36 @@ export const recentData = {
}
};
export const chainMapData = {
geo: {
map: 'china'
}
};
// export const chainMapData = {
// geo: {
// map: 'china'
// }
// };
//日常值守中间地图数据
export const alarmMapdata = {
//现有告警
xygjCount: 20,
xygjCountbh: 5,
//累计告警
ljgjCount: 20,
ljgjCountbh: 5,
//消缺告警
xqgjCount: 20,
xqgjCountbh: 5,
//现有隐患
xyyhCount: 20,
xyyhCountbh: 5,
//累计隐患
ljyhCount: 20,
ljyhCountbh: 5,
//治理隐患
zlyhCount: 20,
zlyhCountbh: 5
};
......@@ -219,7 +219,7 @@ class RecentStatistics extends Component {
render() {
debugger;
const { value } = this.state;
const select = { backgroundColor: '#0C85B1', color: '#FFF700' };
......
......@@ -4,7 +4,7 @@ import 'echarts/map/js/china';
import geoJson from 'echarts/map/json/china.json';
import { geoCoordMap, provienceData,dmtData } from './../../../../_mock/rczsData/geo';
import CommonCard from '../../../common/commonCard/CommonCard';
import { alarmMapdata } from './../../../../_mock/rczsData/data';
class Statistics extends Component {
constructor(props) {
......@@ -292,6 +292,8 @@ class Statistics extends Component {
}
render() {
let data = alarmMapdata;
return (
<div className="statistics-view common-margin">
{/* <div className='statistics-title statistics-title-content'>全国</div> */}
......@@ -301,19 +303,19 @@ class Statistics extends Component {
<div className="statistics-banner-item">
<div className="statistics-banner-itemblock">
<div className="statistics-text-number">
20<span>5</span>
{alarmMapdata.xygjCount}<span>{alarmMapdata.xygjCount}</span>
</div>
<p>现有告警</p>
</div>
<div className="statistics-banner-itemblock">
<div className="statistics-text-number">
20<span>5</span>
{alarmMapdata.ljgjCount}<span>{alarmMapdata.ljgjCountbh}</span>
</div>
<p>累计告警</p>
</div>
<div className="statistics-banner-itemblock">
<div className="statistics-text-number">
20<span>5</span>
{alarmMapdata.xqgjCount}<span> {alarmMapdata.xqgjCountbh}</span>
</div>
<p>消缺告警</p>
</div>
......@@ -323,19 +325,19 @@ class Statistics extends Component {
<div className="statistics-banner-item">
<div className="statistics-banner-itemblock">
<div className="statistics-text-number">
20<span>5</span>
{alarmMapdata.xyyhCount}<span> {alarmMapdata.xyyhCountbh}</span>
</div>
<p>现有隐患</p>
</div>
<div className="statistics-banner-itemblock">
<div className="statistics-text-number">
20<span>5</span>
{alarmMapdata.ljyhCount}<span>{alarmMapdata.ljyhCountbh}</span>
</div>
<p>累计隐患</p>
</div>
<div className="statistics-banner-itemblock">
<div className="statistics-text-number">
20<span>5</span>
{alarmMapdata.zlyhCount}<span>{alarmMapdata.zlyhCountbh}</span>
</div>
<p>治理隐患</p>
</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