2025.9.8 岗位管理bug修改

main
xufei 2025-09-08 14:17:00 +08:00
parent f94802ce2e
commit 8c5ea8e660
4 changed files with 11 additions and 4 deletions

View File

@ -431,6 +431,7 @@ class _CheckingInformationOnePageState extends State<CheckingInformationOnePage>
borderRadius: BorderRadius.circular(5), borderRadius: BorderRadius.circular(5),
), ),
child: ListItemFactory.createRowSpaceBetweenItem( child: ListItemFactory.createRowSpaceBetweenItem(
isRequired:true,
leftText: "整改部门", leftText: "整改部门",
rightText: departments[index].department.isNotEmpty?departments[index].department:"请选择", rightText: departments[index].department.isNotEmpty?departments[index].department:"请选择",
isRight: true, isRight: true,
@ -472,6 +473,7 @@ class _CheckingInformationOnePageState extends State<CheckingInformationOnePage>
borderRadius: BorderRadius.circular(5), borderRadius: BorderRadius.circular(5),
), ),
child: ListItemFactory.createRowSpaceBetweenItem( child: ListItemFactory.createRowSpaceBetweenItem(
isRequired:true,
leftText: "整改负责人", leftText: "整改负责人",
rightText: departments[index].responsible.isNotEmpty?departments[index].responsible:"请选择", rightText: departments[index].responsible.isNotEmpty?departments[index].responsible:"请选择",
isRight: true, isRight: true,

View File

@ -439,6 +439,7 @@ class DannerRepairState extends State<DannerRepair> {
borderRadius: BorderRadius.circular(5), borderRadius: BorderRadius.circular(5),
), ),
child: ListItemFactory.createRowSpaceBetweenItem( child: ListItemFactory.createRowSpaceBetweenItem(
isRequired:true,
leftText: "验收部门", leftText: "验收部门",
rightText: departments[index].department.isNotEmpty?departments[index].department:"请选择", rightText: departments[index].department.isNotEmpty?departments[index].department:"请选择",
isRight: true, isRight: true,
@ -480,6 +481,7 @@ class DannerRepairState extends State<DannerRepair> {
borderRadius: BorderRadius.circular(5), borderRadius: BorderRadius.circular(5),
), ),
child: ListItemFactory.createRowSpaceBetweenItem( child: ListItemFactory.createRowSpaceBetweenItem(
isRequired:true,
leftText: "验收部门负责人", leftText: "验收部门负责人",
rightText: departments[index].responsible.isNotEmpty?departments[index].responsible:"请选择", rightText: departments[index].responsible.isNotEmpty?departments[index].responsible:"请选择",
isRight: true, isRight: true,

View File

@ -506,7 +506,7 @@ class _SafecheckStartListPageState extends State<SafecheckStartListPage> {
flex: 2, flex: 2,
child: SearchBarWidget( child: SearchBarWidget(
showResetButton: false, showResetButton: false,
hintText: "输入关键字", hintText: "输入被检查单位部门关键字",
// isClickableOnly: true, // isClickableOnly: true,
onSearch: (text) { onSearch: (text) {
_search(); _search();

View File

@ -156,8 +156,8 @@ class _MineDutyManagementPageState extends State<MineDutyManagementPage> {
// ), // ),
// ), // ),
// //
Expanded( // Expanded(
child: // child:
_list.isEmpty _list.isEmpty
? NoDataWidget.show() ? NoDataWidget.show()
: ListView.builder( : ListView.builder(
@ -170,7 +170,7 @@ class _MineDutyManagementPageState extends State<MineDutyManagementPage> {
), ),
// ), // ),
// ], // ],
), // ),
), ),
); );
} }
@ -353,7 +353,9 @@ class _MineDutyManagementPageState extends State<MineDutyManagementPage> {
Future<void> _getListData() async { Future<void> _getListData() async {
try { try {
LoadingDialogHelper.show();
final result = await ApiService.getDutyManagement(showCount, currentPage); final result = await ApiService.getDutyManagement(showCount, currentPage);
LoadingDialogHelper.hide();
if (result['result'] == 'success') { if (result['result'] == 'success') {
final List<dynamic> newList = result['varList'] ?? []; final List<dynamic> newList = result['varList'] ?? [];
setState(() { setState(() {
@ -361,6 +363,7 @@ class _MineDutyManagementPageState extends State<MineDutyManagementPage> {
}); });
} }
} catch (e) { } catch (e) {
LoadingDialogHelper.hide();
print('加载出错: $e'); print('加载出错: $e');
} }
} }