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