diff --git a/lib/pages/home/home_page.dart b/lib/pages/home/home_page.dart index 678fe02..f9d4e5e 100644 --- a/lib/pages/home/home_page.dart +++ b/lib/pages/home/home_page.dart @@ -281,9 +281,12 @@ class HomePageState extends RouteAwareState const myIndex = 0; if (current != myIndex) return; // 可在此刷新角标等 + + _getToDoWorkList(pcType); } Future _onRefresh() async { + _getToDoWorkList(pcType); await Future.delayed(const Duration(seconds: 1)); } diff --git a/lib/pages/home/keyTasks/keyTasksDetail/key_taskes_danger_page.dart b/lib/pages/home/keyTasks/keyTasksDetail/key_taskes_danger_page.dart index ebee5cb..b2ea3d2 100644 --- a/lib/pages/home/keyTasks/keyTasksDetail/key_taskes_danger_page.dart +++ b/lib/pages/home/keyTasks/keyTasksDetail/key_taskes_danger_page.dart @@ -194,7 +194,7 @@ class _KeyTaskesDangerPageState extends State { final data = result['data']; setState(() { addData['rectificationDepartmentId'] = data['rectificationDepartmentId']; - addData['rectificationDepartmentName'] = data['rectificationDepartmentName']; + addData['rectificationDeptName'] = data['rectificationDepartmentName']; addData['rectificationUserId'] = data['rectificationUserId']; addData['rectificationUserName'] = data['rectificationUserName']; @@ -603,7 +603,7 @@ class _KeyTaskesDangerPageState extends State { ItemListWidget.selectableLineTitleTextRightButton( isRequired: widget.isEdit, label: "隐患发现人", - text: FormUtils.hasValue(addData, 'hiddenFindUserdName') ? addData['hiddenFindUserdName'] : "请选择", + text: FormUtils.hasValue(addData, 'hiddenFindUserName') ? addData['hiddenFindUserName'] : "请选择", isEditable: widget.isEdit, onTap: () async { final List result = []; diff --git a/lib/pages/home/keyTasks/key_tasks_confirm_list_page.dart b/lib/pages/home/keyTasks/key_tasks_confirm_list_page.dart index 35f340b..3a83336 100644 --- a/lib/pages/home/keyTasks/key_tasks_confirm_list_page.dart +++ b/lib/pages/home/keyTasks/key_tasks_confirm_list_page.dart @@ -177,7 +177,7 @@ class _KeyTasksConfirmListPageState extends State { const SizedBox(height: 8), _buildItemChild('移动视频数:',((item['mobileCameraIdList']??[]).length).toString()), const SizedBox(height: 8), - _buildItemChild('申请时间:',item['createTime']??""), + _buildItemChild('申请时间:',(item['createTime']??"").replaceFirst('T', ' ')), const SizedBox(height: 8), _buildItemChild('状态:',_getState(item)),