|
|
|
@ -54,7 +54,7 @@ class _DwspPageState extends State<DwspGetList> {
|
|
|
|
// listDwspGetList2[i]['dwbh'] = i + 1;
|
|
|
|
// listDwspGetList2[i]['dwbh'] = i + 1;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
//print('listDwspGetList2 = $listDwspGetList2');
|
|
|
|
// print('xxxx_listDwspGetList2 = $listDwspGetList2');
|
|
|
|
// for (var item in listDwspGetList2) {
|
|
|
|
// for (var item in listDwspGetList2) {
|
|
|
|
// print('item = $item');
|
|
|
|
// print('item = $item');
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
@ -73,6 +73,7 @@ class _DwspPageState extends State<DwspGetList> {
|
|
|
|
_listSort();
|
|
|
|
_listSort();
|
|
|
|
firstIndex = 0;
|
|
|
|
firstIndex = 0;
|
|
|
|
lastIndex = 7;
|
|
|
|
lastIndex = 7;
|
|
|
|
|
|
|
|
//try_setState();
|
|
|
|
|
|
|
|
|
|
|
|
// listDwinfoGetList2 = listDwspGetList2;
|
|
|
|
// listDwinfoGetList2 = listDwspGetList2;
|
|
|
|
// int len = listDwspGetList2.length;
|
|
|
|
// int len = listDwspGetList2.length;
|
|
|
|
@ -362,7 +363,7 @@ class _DwspPageState extends State<DwspGetList> {
|
|
|
|
// items.where((DropdownMenuItem<T> item) {
|
|
|
|
// items.where((DropdownMenuItem<T> item) {
|
|
|
|
// return item.value == value;
|
|
|
|
// return item.value == value;
|
|
|
|
// }).length == 1'
|
|
|
|
// }).length == 1'
|
|
|
|
String _selectedValue = 'id';
|
|
|
|
String _selectedValue = '主键ID';
|
|
|
|
bool _descending = false; //默认升序排列
|
|
|
|
bool _descending = false; //默认升序排列
|
|
|
|
|
|
|
|
|
|
|
|
Widget _getImage(String _image) {
|
|
|
|
Widget _getImage(String _image) {
|
|
|
|
@ -391,6 +392,8 @@ class _DwspPageState extends State<DwspGetList> {
|
|
|
|
//按_selectedValue排序,升序
|
|
|
|
//按_selectedValue排序,升序
|
|
|
|
listDwspGetList2.sort((a, b) =>
|
|
|
|
listDwspGetList2.sort((a, b) =>
|
|
|
|
(a[mapWzxxDataText[_selectedValue]]).compareTo(b[mapWzxxDataText[_selectedValue]]));
|
|
|
|
(a[mapWzxxDataText[_selectedValue]]).compareTo(b[mapWzxxDataText[_selectedValue]]));
|
|
|
|
|
|
|
|
// E/flutter ( 5170): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception:
|
|
|
|
|
|
|
|
// NoSuchMethodError: The method 'compareTo' was called on null.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|