Commit 643adb58 authored by zhengjiangtao's avatar zhengjiangtao

fix bug

parent 13764c1f
......@@ -853,19 +853,15 @@ class IndexMap extends Component {
//处理告警数据
handleAlarmData = realTimedata => {
let data = realTimedata || [];
if (data && data.length > 0) {
handleAlarmData = () => {
getAlarms().then(data => {
this.processingAlarmData(data);
} else {
getAlarms().then(data => {
this.processingAlarmData(data);
});
}
});
}
//过滤告警列表
processingAlarmData = data => {
debugger
let { orgCode } = this.state;
if (orgCode !== '') {
let dictionaryList = lsTool.read('dictionaryList');
......@@ -910,8 +906,18 @@ class IndexMap extends Component {
this.initBankInfoList('xian', null, xianFlag);
this.initBankInfoList('xianyang', null, xianyangFlag);
}
} else {
this.setState({
pmdList: newData,
xianVisible: false,
xianyangVisible: false
});
this.initBankInfoList('xian', null, false);
this.initBankInfoList('xianyang', null, false);
}
}
};
......@@ -948,8 +954,8 @@ class IndexMap extends Component {
* webSocket接收数据
*/
handleData = data => {
console.log('alarmMarquee', data);
this.handleAlarmData(data);
this.handleAlarmData();
};
/**
......
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