hyzp_ybqx-Commit060:解决刷新数据后无法打开“车流量日统计(含早晚高峰)”界面的问题

This commit is contained in:
WinUser01
2022-01-01 10:25:02 +08:00
parent 3844755c6c
commit 589da2e69e
2 changed files with 10 additions and 3 deletions
+5 -3
View File
@@ -497,9 +497,11 @@ Future startGetStatisDataNew() async {
eventBus.fire(StatisDataUpdate('统计数据已更新'));
});
///车流量日统计数据类
cllRStatisDataGeting = true; //正在获取车流量日统计数据,禁止重入
trinityData = ZptjBarEchartsTrinityNewGetData(); //提取获取车流量日统计数据
if (!cllRStatisDataOk) {
///车流量日统计数据类
cllRStatisDataGeting = true; //正在获取车流量日统计数据,禁止重入
trinityData = ZptjBarEchartsTrinityNewGetData(); //提取获取车流量日统计数据
}
});
} else {
if (mapStatisInfo['今日抓拍'] < 0) {
+5
View File
@@ -96,6 +96,9 @@ class _Page1_WorksState extends State<Page1_Works>
// 更新工作页面的今日统计数据
Future updateStatisData() async {
if (cllRStatisDataOk) {
cllRStatisDataGeting = false;
}
if (-1 == mapStatisInfo['今日抓拍']) {
getAllSumNew().then((_) {
try_setState();
@@ -287,6 +290,8 @@ class _Page1_WorksState extends State<Page1_Works>
mapStatisInfo.forEach((key, value) {
mapStatisInfo[key] = -1;
});
cllRStatisDataGeting = true; //正在获取车流量日统计数据,禁止重入
try_setState();
listDwinfoGetList2.clear();
startGetStatisDataNew();
Fluttertoast.showToast(