批量修改loading

main
hs 2025-08-08 11:05:06 +08:00
parent 73cb235820
commit 980bbe19c9
135 changed files with 448 additions and 475 deletions

View File

@ -510,7 +510,7 @@ class _CheckInformationOneItemState extends State<CheckInformationOneItem> {
}
Future<void> _riskListCheckAppAdd() async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
if(_yinHuanImages.isEmpty){
ToastUtil.showNormal(context, "请上传隐患图片");
return;
@ -664,7 +664,7 @@ class _CheckInformationOneItemState extends State<CheckInformationOneItem> {
_addImgFiles(_zhengGaiImages[i],"4",hiddenId);
}
}
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
setState(() {
ToastUtil.showNormal(context, "提交成功");
Navigator.pop(context);
@ -672,7 +672,7 @@ class _CheckInformationOneItemState extends State<CheckInformationOneItem> {
});
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
print('Error fetching data: $e');
}
}
@ -700,7 +700,7 @@ class _CheckInformationOneItemState extends State<CheckInformationOneItem> {
Future<void> _identifyImg(String imagePath) async {
try {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
final raw = await ApiService.identifyImg( imagePath);
if (raw['result'] == 'success') {
final List<dynamic> newList = raw['aiHiddens'] ?? [];
@ -724,7 +724,7 @@ class _CheckInformationOneItemState extends State<CheckInformationOneItem> {
}
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
setState(() {
_isDanger=true;
_standardController.text=miaoShuText;
@ -732,7 +732,7 @@ class _CheckInformationOneItemState extends State<CheckInformationOneItem> {
});
}else{
ToastUtil.showNormal(context, "识别失败");
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
// _showMessage('反馈提交失败');
// return "";
}
@ -741,7 +741,7 @@ class _CheckInformationOneItemState extends State<CheckInformationOneItem> {
// Toast
print('加载数据失败:$e');
// return "";
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
}
}

View File

@ -266,7 +266,7 @@ class _CheckRecordPageState extends State<CheckRecordPage> {
// Toast
print('加载数据失败:$e');
} finally {
// if (!loadMore) LoadingDialogHelper.hide(context);
// if (!loadMore) LoadingDialogHelper.hide();
_isLoading = false;
}
}
@ -311,7 +311,7 @@ class _CheckRecordPageState extends State<CheckRecordPage> {
// Toast
print('加载数据失败:$e');
} finally {
// if (!loadMore) LoadingDialogHelper.hide(context);
// if (!loadMore) LoadingDialogHelper.hide();
_isLoading = false;
}
}

View File

@ -509,7 +509,7 @@ class _HazardRegistrationPageState extends State<HazardRegistrationPage> {
}
Future<void> _riskListCheckAppAdd() async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
if(_yinHuanImages.isEmpty){
ToastUtil.showNormal(context, "请上传隐患图片");
return;
@ -652,7 +652,7 @@ class _HazardRegistrationPageState extends State<HazardRegistrationPage> {
_addImgFiles(_zhengGaiImages[i],"4",hiddenId);
}
}
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
setState(() {
ToastUtil.showNormal(context, "提交成功");
Navigator.pop(context);
@ -660,7 +660,7 @@ class _HazardRegistrationPageState extends State<HazardRegistrationPage> {
});
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
print('Error fetching data: $e');
}
}
@ -688,7 +688,7 @@ class _HazardRegistrationPageState extends State<HazardRegistrationPage> {
Future<void> _identifyImg(String imagePath) async {
try {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
final raw = await ApiService.identifyImg( imagePath);
if (raw['result'] == 'success') {
final List<dynamic> newList = raw['aiHiddens'] ?? [];
@ -712,7 +712,7 @@ class _HazardRegistrationPageState extends State<HazardRegistrationPage> {
}
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
setState(() {
_isDanger=true;
_standardController.text=miaoShuText;
@ -720,7 +720,7 @@ class _HazardRegistrationPageState extends State<HazardRegistrationPage> {
});
}else{
ToastUtil.showNormal(context, "识别失败");
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
// _showMessage('反馈提交失败');
// return "";
}
@ -729,7 +729,7 @@ class _HazardRegistrationPageState extends State<HazardRegistrationPage> {
// Toast
print('加载首页数据失败:$e');
// return "";
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
}
}

View File

@ -64,7 +64,7 @@ class _InspectRecordsListPageState extends State<InspectRecordsListPage>
}
Future<void> _getNotifList(String keyWord) async {
// LoadingDialogHelper.show(context);
// LoadingDialogHelper.show();
try {
final result = await ApiService.getNotifList("-1", pageNum.toString(),keyWord);
if (result['result'] == 'success') {
@ -76,12 +76,12 @@ class _InspectRecordsListPageState extends State<InspectRecordsListPage>
} catch (e) {
print('加载出错: $e');
} finally {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
}
}
Future<void> _getNotifEnterprise(String keyWord) async {
// LoadingDialogHelper.show(context);
// LoadingDialogHelper.show();
try {
final result = await ApiService.getNotifEnterprise("-1", pageNum.toString(),keyWord);
if (result['result'] == 'success') {
@ -93,12 +93,12 @@ class _InspectRecordsListPageState extends State<InspectRecordsListPage>
} catch (e) {
print('加载出错: $e');
} finally {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
}
}
Future<void> _deleteNotif(String id) async {
// LoadingDialogHelper.show(context);
// LoadingDialogHelper.show();
try {
final result = await ApiService.deleteNotif(id);
if (result['result'] == 'success') {
@ -110,7 +110,7 @@ class _InspectRecordsListPageState extends State<InspectRecordsListPage>
} catch (e) {
print('加载出错: $e');
} finally {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
}
}

View File

@ -486,7 +486,7 @@ class _QuickReportPageState extends State<QuickReportPage> {
}
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
String yinHuanTypeIds="";
String yinHuanTypeNames="";
@ -548,15 +548,15 @@ class _QuickReportPageState extends State<QuickReportPage> {
}
}
setState(() {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, "提交成功");
Navigator.pop(context);
});
}else{
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
print('Error fetching data: $e');
}
}
@ -584,7 +584,7 @@ class _QuickReportPageState extends State<QuickReportPage> {
Future<void> _identifyImg(String imagePath) async {
try {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
final raw = await ApiService.identifyImg( imagePath);
if (raw['result'] == 'success') {
final List<dynamic> newList = raw['aiHiddens'] ?? [];
@ -608,7 +608,7 @@ class _QuickReportPageState extends State<QuickReportPage> {
}
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
setState(() {
_isDanger=true;
_standardController.text=miaoShuText;
@ -616,7 +616,7 @@ class _QuickReportPageState extends State<QuickReportPage> {
});
}else{
ToastUtil.showNormal(context, "识别失败");
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
// _showMessage('反馈提交失败');
// return "";
}
@ -625,7 +625,7 @@ class _QuickReportPageState extends State<QuickReportPage> {
// Toast
print('加载首页数据失败:$e');
// return "";
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
}
}

View File

@ -67,7 +67,7 @@ class _AiAlarmPageState extends State<AiAlarmPage>
}
Future<void> _getAiAlarmList(String keyWord) async {
// LoadingDialogHelper.show(context);
// LoadingDialogHelper.show();
try {
final result = await ApiService.getAiAlarmList("-1", pageNum.toString(),keyWord);
if (result['result'] == 'success') {

View File

@ -675,7 +675,7 @@ class _CheckingInformationOnePageState extends State<CheckingInformationOnePage>
Future<void> _customCheckRecordFinish( ) async {
try {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
bool departmentsAllInput=true;
bool departmentsSameMan=false;
@ -725,12 +725,12 @@ class _CheckingInformationOnePageState extends State<CheckingInformationOnePage>
});
} else {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, "加载数据失败");
// _showMessage('加载数据失败');
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
// Toast
print('加载数据失败:$e');
}

View File

@ -397,7 +397,7 @@ class _DangerWaitListPageState extends State<DangerWaitListPage> {
// Toast
print('加载数据失败:$e');
} finally {
// if (!loadMore) LoadingDialogHelper.hide(context);
// if (!loadMore) LoadingDialogHelper.hide();
_isLoading = false;
}
}

View File

@ -568,7 +568,7 @@ class _HiddenDangerAcceptancePageState extends State<HiddenDangerAcceptancePage>
}
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
final data = await ApiService.addHazardAcceptance( type, miaoshu, dataTime,widget.item['HIDDEN_ID']);
if (data['result'] == 'success') {
@ -591,11 +591,11 @@ class _HiddenDangerAcceptancePageState extends State<HiddenDangerAcceptancePage>
});
}else{
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
print('Error fetching data: $e');
}
}

View File

@ -565,7 +565,7 @@ class _PendingRectificationDetailPageState extends State<PendingRectificationDet
}
setState(() {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
});
List<DepartmentEntry> departments = dannerRepairKey.currentState!.departments;
@ -586,7 +586,7 @@ class _PendingRectificationDetailPageState extends State<PendingRectificationDet
if(!departmentsAllInput){
setState(() {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
});
ToastUtil.showNormal(context, "请添加验收部门负责人");
return;
@ -594,7 +594,7 @@ class _PendingRectificationDetailPageState extends State<PendingRectificationDet
if(departmentsSameMan){
setState(() {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
});
ToastUtil.showNormal(context, "不能选择重复的验收部门负责人");
return;
@ -635,11 +635,11 @@ class _PendingRectificationDetailPageState extends State<PendingRectificationDet
});
}else{
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, "加载数据失败");
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
// Toast
print('加载数据失败:$e');
}
@ -647,7 +647,7 @@ class _PendingRectificationDetailPageState extends State<PendingRectificationDet
Future<void> _rectificationSubmission() async {
try {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
final result = await ApiService.rectificationSubmission(pd["HIDDEN_ID"],buMenId,renYuanId);
if (result['result'] == 'success') {
setState(() {
@ -658,11 +658,11 @@ class _PendingRectificationDetailPageState extends State<PendingRectificationDet
});
}else{
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, "加载数据失败");
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
// Toast
print('加载数据失败:$e');
}

View File

@ -69,7 +69,7 @@ class _SafetyMeetingListPageState extends State<SafetyMeetingListPage>
}
Future<void> _getNotifList(String keyWord) async {
// LoadingDialogHelper.show(context);
// LoadingDialogHelper.show();
try {
final result = await ApiService.getNotifList("-1", pageNum.toString(),keyWord);
if (result['result'] == 'success') {
@ -81,12 +81,12 @@ class _SafetyMeetingListPageState extends State<SafetyMeetingListPage>
} catch (e) {
print('加载出错: $e');
} finally {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
}
}
Future<void> _getNotifEnterprise(String keyWord) async {
// LoadingDialogHelper.show(context);
// LoadingDialogHelper.show();
try {
final result = await ApiService.getNotifEnterprise("-1", pageNum.toString(),keyWord);
if (result['result'] == 'success') {
@ -98,12 +98,12 @@ class _SafetyMeetingListPageState extends State<SafetyMeetingListPage>
} catch (e) {
print('加载出错: $e');
} finally {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
}
}
Future<void> _deleteNotif(String id) async {
// LoadingDialogHelper.show(context);
// LoadingDialogHelper.show();
try {
final result = await ApiService.deleteNotif(id);
if (result['result'] == 'success') {
@ -115,7 +115,7 @@ class _SafetyMeetingListPageState extends State<SafetyMeetingListPage>
} catch (e) {
print('加载出错: $e');
} finally {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
}
}

View File

@ -290,7 +290,7 @@ class _RiskControlPageState extends State<RiskControlPage> {
// Toast
print('加载数据失败:$e');
} finally {
// if (!loadMore) LoadingDialogHelper.hide(context);
// if (!loadMore) LoadingDialogHelper.hide();
_isLoading = false;
}
}

View File

@ -27,7 +27,7 @@ class _StudyClassListPageState extends State<StudyClassListPage> {
}
Future<void> _getData() async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.getClassList(_classId, _post_id);
if (result['result'] == 'success') {
@ -39,7 +39,7 @@ class _StudyClassListPageState extends State<StudyClassListPage> {
} catch (e) {
print('加载出错: $e');
} finally {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
}
}

View File

@ -60,7 +60,7 @@ class _StudyMyTaskPageState extends State<StudyMyTaskPage> {
Future<void> _getStudyList({bool loadMore = false}) async {
if (_isLoading) return;
_isLoading = true;
if (!loadMore) LoadingDialogHelper.show(context);
if (!loadMore) LoadingDialogHelper.show();
try {
final res = await ApiService.getStudyList(_page);
@ -95,7 +95,7 @@ class _StudyMyTaskPageState extends State<StudyMyTaskPage> {
} catch (e) {
debugPrint('加载出错: $e');
} finally {
if (!loadMore) LoadingDialogHelper.hide(context);
if (!loadMore) LoadingDialogHelper.hide();
_isLoading = false;
}
}

View File

@ -248,13 +248,13 @@ class _HotworkSafeFuncSureState extends State<HotworkSafeFuncSure> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure('hotwork',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -263,7 +263,7 @@ class _HotworkSafeFuncSureState extends State<HotworkSafeFuncSure> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -178,19 +178,19 @@ class _HotworkAqglDetailState extends State<HotworkAqglDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure('hotwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -208,19 +208,19 @@ class _HotworkAqjdDetailState extends State<HotworkAqjdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure('hotwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -180,20 +180,20 @@ class _HotworkDbbzDetailState extends State<HotworkDbbzDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hotwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -395,7 +395,7 @@ class _HotworkApplyDetailState extends State<HotworkApplyDetail> {
}
}
}
// LoadingDialogHelper.show(context);
// LoadingDialogHelper.show();
String taskId = '0';
if (level == '特级') {
@ -424,13 +424,13 @@ class _HotworkApplyDetailState extends State<HotworkApplyDetail> {
pd['APPLY_USER_NAME'] = SessionService.instance.username;
}
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
String jsonStr = jsonEncode(pd);
printLongString(jsonStr);
try {
String url = "/app/hotwork/" + msg;
final result = await ApiService.submitHomework(url, pd);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, status == '1' ? '提交成功' : '已暂存');
Navigator.pop(context);
@ -439,7 +439,7 @@ class _HotworkApplyDetailState extends State<HotworkApplyDetail> {
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
}
@ -476,7 +476,7 @@ class _HotworkApplyDetailState extends State<HotworkApplyDetail> {
// setState(() {
// pd = data['pd'];
// });
// LoadingDialogHelper.hide(context);
// LoadingDialogHelper.hide();
}
Future<void> _getSigns(String homework_id) async {

View File

@ -177,20 +177,20 @@ class _HotworkDhspDetailState extends State<HotworkDhspDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hotwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -167,14 +167,14 @@ class _HotworkJhrDetailState extends State<HotworkJhrDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hotwork',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -183,7 +183,7 @@ class _HotworkJhrDetailState extends State<HotworkJhrDetail> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -168,20 +168,20 @@ class _HotworkJsjdDetailState extends State<HotworkJsjdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hotwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -213,20 +213,20 @@ class _HotworkJszyDetailState extends State<HotworkJszyDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hotwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -186,19 +186,19 @@ class _HotworkKszyDetailState extends State<HotworkKszyDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure('hotwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -319,14 +319,14 @@ class _HotworkSetSafeDetailState extends State<HotworkSetSafeDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hotwork',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -335,7 +335,7 @@ class _HotworkSetSafeDetailState extends State<HotworkSetSafeDetail> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _HotworkSzdwDetailState extends State<HotworkSzdwDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hotwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -238,20 +238,20 @@ class _HotworkYsgdDetailState extends State<HotworkYsgdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hotwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _HotworkZyfzDetailState extends State<HotworkZyfzDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hotwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -246,14 +246,14 @@ class _CutroadSafeFuncSureState extends State<CutroadSafeFuncSure> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'cutroad',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -262,7 +262,7 @@ class _CutroadSafeFuncSureState extends State<CutroadSafeFuncSure> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -207,20 +207,20 @@ class _CutroadAqjdDetailState extends State<CutroadAqjdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'cutroad',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -356,7 +356,7 @@ class _CutroadApplyDetailState extends State<CutroadApplyDetail> {
}
}
}
// LoadingDialogHelper.show(context);
// LoadingDialogHelper.show();
String taskId = '0';
if (pd['WORK_LEVEL'] == '1') {
@ -388,19 +388,19 @@ class _CutroadApplyDetailState extends State<CutroadApplyDetail> {
pd['USER_ID'] = SessionService.instance.loginUserId;
}
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
String jsonStr = jsonEncode(pd);
printLongString(jsonStr);
try {
String url = "/app/cutroad/" + msg;
final result = await ApiService.submitHomework(url, pd);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, status == '1' ? '提交成功' : '已暂存');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
}
@ -446,7 +446,7 @@ class _CutroadApplyDetailState extends State<CutroadApplyDetail> {
// setState(() {
// pd = data['pd'];
// });
// LoadingDialogHelper.hide(context);
// LoadingDialogHelper.hide();
}
Future<void> _getSigns(String homework_id) async {

View File

@ -169,14 +169,14 @@ class _CutroadJhrDetailState extends State<CutroadJhrDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'cutroad',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -185,7 +185,7 @@ class _CutroadJhrDetailState extends State<CutroadJhrDetail> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -171,20 +171,20 @@ class _CutroadJsjdDetailState extends State<CutroadJsjdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'cutroad',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -213,20 +213,20 @@ class _CutroadJszyDetailState extends State<CutroadJszyDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'cutroad',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -180,20 +180,20 @@ class _CutroadKszyDetailState extends State<CutroadKszyDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'cutroad',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _CutroadShbmDetailState extends State<CutroadShbmDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'cutroad',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -176,20 +176,20 @@ class _CutroadSpbmDetailState extends State<CutroadSpbmDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'cutroad',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -319,14 +319,14 @@ class _CutroadSetSafeDetailState extends State<CutroadSetSafeDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'cutroad',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -335,7 +335,7 @@ class _CutroadSetSafeDetailState extends State<CutroadSetSafeDetail> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _CutroadSzdwDetailState extends State<CutroadSzdwDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'cutroad',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -234,20 +234,20 @@ class _CutroadYsgdDetailState extends State<CutroadYsgdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'cutroad',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _CutroadZyfzDetailState extends State<CutroadZyfzDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'cutroad',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -246,14 +246,14 @@ class _BreakgroundSafeFuncSureState extends State<BreakgroundSafeFuncSure> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -262,7 +262,7 @@ class _BreakgroundSafeFuncSureState extends State<BreakgroundSafeFuncSure> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -207,20 +207,20 @@ class _BreakgroundAqjdDetailState extends State<BreakgroundAqjdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -339,7 +339,7 @@ class _BreakgroundApplyDetailState extends State<BreakgroundApplyDetail> {
}
}
}
// LoadingDialogHelper.show(context);
// LoadingDialogHelper.show();
String taskId = '9';
pd['USER_ID'] = SessionService.instance.loginUserId;
@ -360,19 +360,19 @@ class _BreakgroundApplyDetailState extends State<BreakgroundApplyDetail> {
pd['APPLY_USER_ID'] = SessionService.instance.loginUserId;
pd['APPLY_USER_NAME'] = SessionService.instance.username;
}
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
String jsonStr = jsonEncode(pd);
printLongString(jsonStr);
try {
String url = "/app/breakground/" + msg;
final result = await ApiService.submitHomework(url, pd);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, status == '1' ? '提交成功' : '已暂存');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
}
@ -408,7 +408,7 @@ class _BreakgroundApplyDetailState extends State<BreakgroundApplyDetail> {
// setState(() {
// pd = data['pd'];
// });
// LoadingDialogHelper.hide(context);
// LoadingDialogHelper.hide();
}
Future<void> _getSigns(String homework_id) async {

View File

@ -177,20 +177,20 @@ class _BreakgroundDzzhDetailState extends State<BreakgroundDzzhDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -169,14 +169,14 @@ class _BreakgroundJhrDetailState extends State<BreakgroundJhrDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -185,7 +185,7 @@ class _BreakgroundJhrDetailState extends State<BreakgroundJhrDetail> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -168,20 +168,20 @@ class _BreakgroundJsjdDetailState extends State<BreakgroundJsjdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -213,20 +213,20 @@ class _BreakgroundJszyDetailState extends State<BreakgroundJszyDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -180,20 +180,20 @@ class _BreakgroundKszyDetailState extends State<BreakgroundKszyDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _BreakgroundShbmDetailState extends State<BreakgroundShbmDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -176,20 +176,20 @@ class _BreakgroundSpbmDetailState extends State<BreakgroundSpbmDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -170,20 +170,20 @@ class _BreakgroundSsrDetailState extends State<BreakgroundSsrDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -320,14 +320,14 @@ class _BreakgroundSetSafeDetailState extends State<BreakgroundSetSafeDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -336,7 +336,7 @@ class _BreakgroundSetSafeDetailState extends State<BreakgroundSetSafeDetail> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _BreakgroundSzdwDetailState extends State<BreakgroundSzdwDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -238,20 +238,20 @@ class _BreakgroundYsgdDetailState extends State<BreakgroundYsgdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _BreakgroundZyfzDetailState extends State<BreakgroundZyfzDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -194,20 +194,20 @@ class _BreakgroundZyrDetailState extends State<BreakgroundZyrDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'breakground',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -246,14 +246,14 @@ class _HoistworkSafeFuncSureState extends State<HoistworkSafeFuncSure> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -262,7 +262,7 @@ class _HoistworkSafeFuncSureState extends State<HoistworkSafeFuncSure> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -207,20 +207,20 @@ class _HoistworkAqjdDetailState extends State<HoistworkAqjdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -356,7 +356,7 @@ class _HoistworkApplyDetailState extends State<HoistworkApplyDetail> {
}
}
}
// LoadingDialogHelper.show(context);
// LoadingDialogHelper.show();
String taskId = '0';
if (pd['WORK_LEVEL'] == '1') {
@ -385,19 +385,19 @@ class _HoistworkApplyDetailState extends State<HoistworkApplyDetail> {
pd['APPLY_USER_NAME'] = SessionService.instance.username;
pd['USER_ID'] = SessionService.instance.loginUserId;
}
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
String jsonStr = jsonEncode(pd);
printLongString(jsonStr);
try {
String url = "/app/hoisting/" + msg;
final result = await ApiService.submitHomework(url, pd);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, status == '1' ? '提交成功' : '已暂存');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
}
@ -434,7 +434,7 @@ class _HoistworkApplyDetailState extends State<HoistworkApplyDetail> {
// setState(() {
// pd = data['pd'];
// });
// LoadingDialogHelper.hide(context);
// LoadingDialogHelper.hide();
}
Future<void> _getSigns(String homework_id) async {

View File

@ -177,20 +177,20 @@ class _HoistworkDzzhDetailState extends State<HoistworkDzzhDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -169,14 +169,14 @@ class _HoistworkJhrDetailState extends State<HoistworkJhrDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -185,7 +185,7 @@ class _HoistworkJhrDetailState extends State<HoistworkJhrDetail> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -168,20 +168,20 @@ class _HoistworkJsjdDetailState extends State<HoistworkJsjdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -213,20 +213,20 @@ class _HoistworkJszyDetailState extends State<HoistworkJszyDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -180,20 +180,20 @@ class _HoistworkKszyDetailState extends State<HoistworkKszyDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _HoistworkShbmDetailState extends State<HoistworkShbmDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -176,20 +176,20 @@ class _HoistworkSpbmDetailState extends State<HoistworkSpbmDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -170,20 +170,20 @@ class _HoistworkSsrDetailState extends State<HoistworkSsrDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -320,14 +320,14 @@ class _HoistworkSetSafeDetailState extends State<HoistworkSetSafeDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -336,7 +336,7 @@ class _HoistworkSetSafeDetailState extends State<HoistworkSetSafeDetail> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _HoistworkSzdwDetailState extends State<HoistworkSzdwDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -238,20 +238,20 @@ class _HoistworkYsgdDetailState extends State<HoistworkYsgdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _HoistworkZyfzDetailState extends State<HoistworkZyfzDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -170,20 +170,20 @@ class _HoistworkZyrDetailState extends State<HoistworkZyrDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'hoisting',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -246,14 +246,14 @@ class _HighworkSafeFuncSureState extends State<HighworkSafeFuncSure> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'highwork',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -262,7 +262,7 @@ class _HighworkSafeFuncSureState extends State<HighworkSafeFuncSure> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -207,20 +207,20 @@ class _HighworkAqjdDetailState extends State<HighworkAqjdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'highwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -356,7 +356,7 @@ class _HighworkApplyDetailState extends State<HighworkApplyDetail> {
}
}
}
// LoadingDialogHelper.show(context);
// LoadingDialogHelper.show();
String taskId = '0';
if (pd['WORK_LEVEL'] == '1') {
@ -388,19 +388,19 @@ class _HighworkApplyDetailState extends State<HighworkApplyDetail> {
pd['USER_ID'] = SessionService.instance.loginUserId;
}
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
String jsonStr = jsonEncode(pd);
printLongString(jsonStr);
try {
String url = "/app/highwork/" + msg;
final result = await ApiService.submitHomework(url, pd);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, status == '1' ? '提交成功' : '已暂存');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
}
@ -446,7 +446,7 @@ class _HighworkApplyDetailState extends State<HighworkApplyDetail> {
// setState(() {
// pd = data['pd'];
// });
// LoadingDialogHelper.hide(context);
// LoadingDialogHelper.hide();
}
Future<void> _getSigns(String homework_id) async {

View File

@ -169,14 +169,14 @@ class _HighworkJhrDetailState extends State<HighworkJhrDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'highwork',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -185,7 +185,7 @@ class _HighworkJhrDetailState extends State<HighworkJhrDetail> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -171,20 +171,20 @@ class _HighworkJsjdDetailState extends State<HighworkJsjdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'highwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -213,20 +213,20 @@ class _HighworkJszyDetailState extends State<HighworkJszyDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'highwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -180,20 +180,20 @@ class _HighworkKszyDetailState extends State<HighworkKszyDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'highwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _HighworkShbmDetailState extends State<HighworkShbmDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'highwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -176,20 +176,20 @@ class _HighworkSpbmDetailState extends State<HighworkSpbmDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'highwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -319,14 +319,14 @@ class _HighworkSetSafeDetailState extends State<HighworkSetSafeDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'highwork',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -335,7 +335,7 @@ class _HighworkSetSafeDetailState extends State<HighworkSetSafeDetail> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _HighworkSzdwDetailState extends State<HighworkSzdwDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'highwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -234,20 +234,20 @@ class _HighworkYsgdDetailState extends State<HighworkYsgdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'highwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _HighworkZyfzDetailState extends State<HighworkZyfzDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'highwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -170,20 +170,20 @@ class _HighworkZyrDetailState extends State<HighworkZyrDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'highwork',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -248,13 +248,13 @@ class _ElectricitySafeFuncSureState extends State<ElectricitySafeFuncSure> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure('electricity',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -263,7 +263,7 @@ class _ElectricitySafeFuncSureState extends State<ElectricitySafeFuncSure> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -178,19 +178,19 @@ class _ElectricityAqglDetailState extends State<ElectricityAqglDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure('electricity',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -208,19 +208,19 @@ class _ElectricityAqjdDetailState extends State<ElectricityAqjdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure('electricity',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -180,20 +180,20 @@ class _ElectricityDbbzDetailState extends State<ElectricityDbbzDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'electricity',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -167,14 +167,14 @@ class _ElectricityJhrDetailState extends State<ElectricityJhrDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'electricity',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -183,7 +183,7 @@ class _ElectricityJhrDetailState extends State<ElectricityJhrDetail> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -168,20 +168,20 @@ class _ElectricityJsjdDetailState extends State<ElectricityJsjdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'electricity',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -213,20 +213,20 @@ class _ElectricityJszyDetailState extends State<ElectricityJszyDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'electricity',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -186,19 +186,19 @@ class _ElectricityKszyDetailState extends State<ElectricityKszyDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure('electricity',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -395,7 +395,7 @@ class _ElectricityApplyDetailState extends State<ElectricityApplyDetail> {
}
}
}
// LoadingDialogHelper.show(context);
// LoadingDialogHelper.show();
String taskId = '0';
if (level == '特级') {
@ -424,13 +424,13 @@ class _ElectricityApplyDetailState extends State<ElectricityApplyDetail> {
pd['APPLY_USER_NAME'] = SessionService.instance.username;
}
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
String jsonStr = jsonEncode(pd);
printLongString(jsonStr);
try {
String url = "/app/hotwork/" + msg;
final result = await ApiService.submitHomework(url, pd);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, status == '1' ? '提交成功' : '已暂存');
Navigator.pop(context);
@ -439,7 +439,7 @@ class _ElectricityApplyDetailState extends State<ElectricityApplyDetail> {
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
}
@ -476,7 +476,7 @@ class _ElectricityApplyDetailState extends State<ElectricityApplyDetail> {
// setState(() {
// pd = data['pd'];
// });
// LoadingDialogHelper.hide(context);
// LoadingDialogHelper.hide();
}
Future<void> _getSigns(String homework_id) async {

View File

@ -129,9 +129,9 @@ class _ElectricityGasEditState extends State<ElectricityGasEdit> {
pd['CONFINEDSPACEGASWH_ID'] != null;
final url = isEdit ? '/app/confinedspacegaswh/edit' : '/app/confinedspacegaswh/add';
try {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
final res = await ApiService.submitSpaceGas(url, pd);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (res != null && res['result'] == 'success') {
Map<String, dynamic> arguments = {
@ -148,7 +148,7 @@ class _ElectricityGasEditState extends State<ElectricityGasEdit> {
ToastUtil.showNormal(context, res['message'] ?? '提交失败');
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '提交异常: $e');
}
}

View File

@ -320,14 +320,14 @@ class _ElectricitySetSafeDetailState extends State<ElectricitySetSafeDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'electricity',
formData,
imagePaths,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(
context,
@ -336,7 +336,7 @@ class _ElectricitySetSafeDetailState extends State<ElectricitySetSafeDetail> {
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -177,20 +177,20 @@ class _ElectricitySzdwDetailState extends State<ElectricitySzdwDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'electricity',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

View File

@ -238,20 +238,20 @@ class _ElectricityYsgdDetailState extends State<ElectricityYsgdDetail> {
cancelText: '取消',
confirmText: '确定',
onConfirm: () async {
LoadingDialogHelper.show(context);
LoadingDialogHelper.show();
try {
final result = await ApiService.saveSafeFunctionSure(
'electricity',
formData,
signImages,
);
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
ToastUtil.showSuccess(context, '保存成功');
Navigator.pop(context);
}
} catch (e) {
LoadingDialogHelper.hide(context);
LoadingDialogHelper.hide();
ToastUtil.showNormal(context, '操作失败:$e');
}
},

Some files were not shown because too many files have changed in this diff Show More