From 8935e9a565452095d9f67d2021d77cb3c00d4f50 Mon Sep 17 00:00:00 2001 From: WinUser01 Date: Mon, 20 Dec 2021 21:06:32 +0800 Subject: [PATCH] =?UTF-8?q?hyzp=5Fybqx-Commit041=EF=BC=9A=E5=9C=A8?= =?UTF-8?q?=E7=82=B9=E4=BD=8D=E4=BF=A1=E6=81=AF=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=EF=BC=8C=E8=A7=A3=E5=86=B3=E7=82=B9=E4=BD=8D=E7=BC=96?= =?UTF-8?q?=E5=8F=B7=E4=B8=8D=E8=BF=9E=E7=BB=AD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/Works/SBGL/dwxx_getList.dart | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/pages/Works/SBGL/dwxx_getList.dart b/lib/pages/Works/SBGL/dwxx_getList.dart index cd2bd4a..1ff3d85 100644 --- a/lib/pages/Works/SBGL/dwxx_getList.dart +++ b/lib/pages/Works/SBGL/dwxx_getList.dart @@ -1,16 +1,15 @@ import 'dart:async'; import 'package:flutter/material.dart'; +import 'package:flutter_easyrefresh/easy_refresh.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:fluttertoast/fluttertoast.dart'; -import 'dwxx_content.dart'; +import '../../../components/commonFun.dart'; import '../../../components/dioFun.dart'; import '../../../components/hyxx_data_handle.dart'; -import '../../../components/commonFun.dart'; import '../../../services/EventBus.dart'; -import 'package:flutter_easyrefresh/easy_refresh.dart'; -import '../../../components/doJSON.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'dwxx_content.dart'; //sbgl是本项目中“设备管理”的统一缩写 class DwxxGetList extends StatefulWidget { @@ -54,9 +53,15 @@ class _SbglPageState extends State { //为播放点位视频读取数据 print('listDwspGetList2 = ${listDwspGetList2}'); listDwspGetList2 = listSbglGetList2; + + // 在点位视频列表页面,解决点位编号不连续的问题 + int _len = listDwspGetList2.length; + for (int i = 0; i < _len; i++) { + listDwspGetList2[i]['dwbh'] = i + 1; + } + listDwinfoGetList2 = listSbglGetList2; print('listDwspGetList2 = ${listDwspGetList2}'); - }); // ///从接口 mapHyshlx[theHyshlx]['api'] 获取指定类型第 page 页的列表数据,返回 list