hyzp_ybqx-Commit052:更新版本为version: 1.4.4+20211230,解决刷新统计数据后桌面“今日xx”无法打开的问题
This commit is contained in:
@@ -1 +1 @@
|
|||||||
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":20211230,"versionName":"1.4.3","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":20211230,"versionName":"1.4.4","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
||||||
@@ -298,7 +298,7 @@ Future getZptjStatisAlone() async {
|
|||||||
listZptjStatisAlone.clear();
|
listZptjStatisAlone.clear();
|
||||||
int len = listDwinfoGetList2.length;
|
int len = listDwinfoGetList2.length;
|
||||||
for (int i = 0; i < len; i++) {
|
for (int i = 0; i < len; i++) {
|
||||||
Map map = await getStatisData(statisType: 'zptj', ip: listDwinfoGetList2[i]['dwip']);
|
getStatisData(statisType: 'zptj', ip: listDwinfoGetList2[i]['dwip']).then((map) {
|
||||||
map['dwbh'] = listDwinfoGetList2[i]['dwbh'];
|
map['dwbh'] = listDwinfoGetList2[i]['dwbh'];
|
||||||
map['dwmc'] = listDwinfoGetList2[i]['dwmc'];
|
map['dwmc'] = listDwinfoGetList2[i]['dwmc'];
|
||||||
map['dwip'] = listDwinfoGetList2[i]['dwip'];
|
map['dwip'] = listDwinfoGetList2[i]['dwip'];
|
||||||
@@ -312,6 +312,22 @@ Future getZptjStatisAlone() async {
|
|||||||
listTodayZpjl = value[2];
|
listTodayZpjl = value[2];
|
||||||
//try_setState();
|
//try_setState();
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// Map map = await getStatisData(statisType: 'zptj', ip: listDwinfoGetList2[i]['dwip']);
|
||||||
|
// map['dwbh'] = listDwinfoGetList2[i]['dwbh'];
|
||||||
|
// map['dwmc'] = listDwinfoGetList2[i]['dwmc'];
|
||||||
|
// map['dwip'] = listDwinfoGetList2[i]['dwip'];
|
||||||
|
// listZptjStatisAlone.add(map);
|
||||||
|
// // if (listZptjStatisAlone.length >= dwSum) {
|
||||||
|
// // //发送统计数据已更新广播
|
||||||
|
// // eventBus.fire(StatisDataUpdate('统计数据已更新'));
|
||||||
|
// // }
|
||||||
|
// getAllSum('today', listZptjStatisAlone).then((value) {
|
||||||
|
// //mapStatisInfo['今日抓拍'] = value[1];
|
||||||
|
// listTodayZpjl = value[2];
|
||||||
|
// //try_setState();
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
//print('listZptjStatis = ${listZptjStatis}');
|
//print('listZptjStatis = ${listZptjStatis}');
|
||||||
//StorageDataToFile.writeCounter(json_print(listZptjStatis, 1));
|
//StorageDataToFile.writeCounter(json_print(listZptjStatis, 1));
|
||||||
@@ -351,8 +367,8 @@ Future getTodayShtj() async {
|
|||||||
print('date = $date');
|
print('date = $date');
|
||||||
int len = listDwinfoGetList2.length;
|
int len = listDwinfoGetList2.length;
|
||||||
for (int i = 0; i < len; i++) {
|
for (int i = 0; i < len; i++) {
|
||||||
Map map =
|
getStatisData(statisType: 'sh_hyc_tj', ip: listDwinfoGetList2[i]['dwip'], date: date)
|
||||||
await getStatisData(statisType: 'sh_hyc_tj', ip: listDwinfoGetList2[i]['dwip'], date: date);
|
.then((map) {
|
||||||
map['dwbh'] = listDwinfoGetList2[i]['dwbh'];
|
map['dwbh'] = listDwinfoGetList2[i]['dwbh'];
|
||||||
map['dwmc'] = listDwinfoGetList2[i]['dwmc'];
|
map['dwmc'] = listDwinfoGetList2[i]['dwmc'];
|
||||||
map['dwip'] = listDwinfoGetList2[i]['dwip'];
|
map['dwip'] = listDwinfoGetList2[i]['dwip'];
|
||||||
@@ -377,6 +393,7 @@ Future getTodayShtj() async {
|
|||||||
listTodayTsjl = value[2];
|
listTodayTsjl = value[2];
|
||||||
//try_setState();
|
//try_setState();
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
//print('listZptjStatis = ${listZptjStatis}');
|
//print('listZptjStatis = ${listZptjStatis}');
|
||||||
//StorageDataToFile.writeCounter(json_print(listZptjStatis, 1));
|
//StorageDataToFile.writeCounter(json_print(listZptjStatis, 1));
|
||||||
@@ -401,7 +418,7 @@ Future getShtjStatisAlone() async {
|
|||||||
listShtjStatisAlone.clear();
|
listShtjStatisAlone.clear();
|
||||||
int len = listDwinfoGetList2.length;
|
int len = listDwinfoGetList2.length;
|
||||||
for (int i = 0; i < len; i++) {
|
for (int i = 0; i < len; i++) {
|
||||||
Map map = await getStatisData(statisType: 'sh_hyc_tj', ip: listDwinfoGetList2[i]['dwip']);
|
getStatisData(statisType: 'sh_hyc_tj', ip: listDwinfoGetList2[i]['dwip']).then((map) {
|
||||||
map['dwbh'] = listDwinfoGetList2[i]['dwbh'];
|
map['dwbh'] = listDwinfoGetList2[i]['dwbh'];
|
||||||
map['dwmc'] = listDwinfoGetList2[i]['dwmc'];
|
map['dwmc'] = listDwinfoGetList2[i]['dwmc'];
|
||||||
map['dwip'] = listDwinfoGetList2[i]['dwip'];
|
map['dwip'] = listDwinfoGetList2[i]['dwip'];
|
||||||
@@ -410,9 +427,10 @@ Future getShtjStatisAlone() async {
|
|||||||
// //发送统计数据已更新广播
|
// //发送统计数据已更新广播
|
||||||
// eventBus.fire(StatisDataUpdate('统计数据已更新'));
|
// eventBus.fire(StatisDataUpdate('统计数据已更新'));
|
||||||
// }
|
// }
|
||||||
}
|
});
|
||||||
//print('listZptjStatis = ${listZptjStatis}');
|
//print('listZptjStatis = ${listZptjStatis}');
|
||||||
//StorageDataToFile.writeCounter(json_print(listZptjStatis, 1));
|
//StorageDataToFile.writeCounter(json_print(listZptjStatis, 1));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
///独立获取车流量统计数据
|
///独立获取车流量统计数据
|
||||||
@@ -434,7 +452,7 @@ Future getClltjStatisAlone() async {
|
|||||||
listClltjStatisAlone.clear();
|
listClltjStatisAlone.clear();
|
||||||
int len = listDwinfoGetList2.length;
|
int len = listDwinfoGetList2.length;
|
||||||
for (int i = 0; i < len; i++) {
|
for (int i = 0; i < len; i++) {
|
||||||
Map map = await getStatisData(statisType: 'clltj', ip: listDwinfoGetList2[i]['dwip']);
|
getStatisData(statisType: 'clltj', ip: listDwinfoGetList2[i]['dwip']).then((map) {
|
||||||
map['dwbh'] = listDwinfoGetList2[i]['dwbh'];
|
map['dwbh'] = listDwinfoGetList2[i]['dwbh'];
|
||||||
map['dwmc'] = listDwinfoGetList2[i]['dwmc'];
|
map['dwmc'] = listDwinfoGetList2[i]['dwmc'];
|
||||||
map['dwip'] = listDwinfoGetList2[i]['dwip'];
|
map['dwip'] = listDwinfoGetList2[i]['dwip'];
|
||||||
@@ -443,6 +461,7 @@ Future getClltjStatisAlone() async {
|
|||||||
// //发送统计数据已更新广播
|
// //发送统计数据已更新广播
|
||||||
// eventBus.fire(StatisDataUpdate('统计数据已更新'));
|
// eventBus.fire(StatisDataUpdate('统计数据已更新'));
|
||||||
// }
|
// }
|
||||||
|
});
|
||||||
}
|
}
|
||||||
//print('listZptjStatis = ${listZptjStatis}');
|
//print('listZptjStatis = ${listZptjStatis}');
|
||||||
//StorageDataToFile.writeCounter(json_print(listZptjStatis, 1));
|
//StorageDataToFile.writeCounter(json_print(listZptjStatis, 1));
|
||||||
|
|||||||
@@ -78,6 +78,9 @@ class _Page1_WorksState extends State<Page1_Works>
|
|||||||
//监听统计数据改变事件
|
//监听统计数据改变事件
|
||||||
eventBus.on<StatisDataUpdate>().listen((event) {
|
eventBus.on<StatisDataUpdate>().listen((event) {
|
||||||
print(event.str);
|
print(event.str);
|
||||||
|
print('listZptjStatisAlone.length:${listZptjStatisAlone.length},dwSum:${dwSum}');
|
||||||
|
// I/flutter (18666): listZptjStatisAlone.length:1,dwSum:5
|
||||||
|
|
||||||
updateStatisData();
|
updateStatisData();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -42,7 +42,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# version: 1.3.13+20211026
|
# version: 1.3.13+20211026
|
||||||
# version: 1.4.1+20211226
|
# version: 1.4.1+20211226
|
||||||
# version: 1.4.2+20211227
|
# version: 1.4.2+20211227
|
||||||
version: 1.4.3+20211230
|
version: 1.4.4+20211230
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.7.0 <3.0.0"
|
sdk: ">=2.7.0 <3.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user