hyzp_ybqx-Commit060:解决刷新数据后无法打开“车流量日统计(含早晚高峰)”界面的问题
This commit is contained in:
@@ -497,9 +497,11 @@ Future startGetStatisDataNew() async {
|
|||||||
eventBus.fire(StatisDataUpdate('统计数据已更新'));
|
eventBus.fire(StatisDataUpdate('统计数据已更新'));
|
||||||
});
|
});
|
||||||
|
|
||||||
///车流量日统计数据类
|
if (!cllRStatisDataOk) {
|
||||||
cllRStatisDataGeting = true; //正在获取车流量日统计数据,禁止重入
|
///车流量日统计数据类
|
||||||
trinityData = ZptjBarEchartsTrinityNewGetData(); //提取获取车流量日统计数据
|
cllRStatisDataGeting = true; //正在获取车流量日统计数据,禁止重入
|
||||||
|
trinityData = ZptjBarEchartsTrinityNewGetData(); //提取获取车流量日统计数据
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (mapStatisInfo['今日抓拍'] < 0) {
|
if (mapStatisInfo['今日抓拍'] < 0) {
|
||||||
|
|||||||
@@ -96,6 +96,9 @@ class _Page1_WorksState extends State<Page1_Works>
|
|||||||
|
|
||||||
// 更新工作页面的今日统计数据
|
// 更新工作页面的今日统计数据
|
||||||
Future updateStatisData() async {
|
Future updateStatisData() async {
|
||||||
|
if (cllRStatisDataOk) {
|
||||||
|
cllRStatisDataGeting = false;
|
||||||
|
}
|
||||||
if (-1 == mapStatisInfo['今日抓拍']) {
|
if (-1 == mapStatisInfo['今日抓拍']) {
|
||||||
getAllSumNew().then((_) {
|
getAllSumNew().then((_) {
|
||||||
try_setState();
|
try_setState();
|
||||||
@@ -287,6 +290,8 @@ class _Page1_WorksState extends State<Page1_Works>
|
|||||||
mapStatisInfo.forEach((key, value) {
|
mapStatisInfo.forEach((key, value) {
|
||||||
mapStatisInfo[key] = -1;
|
mapStatisInfo[key] = -1;
|
||||||
});
|
});
|
||||||
|
cllRStatisDataGeting = true; //正在获取车流量日统计数据,禁止重入
|
||||||
|
try_setState();
|
||||||
listDwinfoGetList2.clear();
|
listDwinfoGetList2.clear();
|
||||||
startGetStatisDataNew();
|
startGetStatisDataNew();
|
||||||
Fluttertoast.showToast(
|
Fluttertoast.showToast(
|
||||||
|
|||||||
Reference in New Issue
Block a user