diff --git a/lib/models/manager/inspection/inspection_point_submit_model.dart b/lib/models/manager/inspection/inspection_point_submit_model.dart index 5c2627c..34c4e16 100644 --- a/lib/models/manager/inspection/inspection_point_submit_model.dart +++ b/lib/models/manager/inspection/inspection_point_submit_model.dart @@ -12,13 +12,15 @@ class InspectionPointSubmitModel { this.inspectionSpaceImg, this.inspectionFaceImgPath, this.inspectionSpaceImgPath}); - // Map executeCheckListToJson() { - // final Map - // if (this.executeCheckList != null) { - // this.executeCheckList.map((e) => e.toJson()).toList(); - // return - // } else {} - // } + Map executeCheckListToJson() { + final Map data = new Map(); + + if (this.executeCheckList != null) { + data["executeCheckList"] = + this.executeCheckList.map((e) => e.toJson()).toList(); + return data; + } + } } class ExecuteCheckList { diff --git a/lib/ui/login/login_sms_page.dart b/lib/ui/login/login_sms_page.dart index 13e0d0e..1473d7e 100644 --- a/lib/ui/login/login_sms_page.dart +++ b/lib/ui/login/login_sms_page.dart @@ -110,6 +110,10 @@ class _LoginSMSPageState extends State { controller: _textEditingController, autoFocus: true, decoration: UnderlineDecoration( + textStyle: TextStyle( + color: kTextPrimaryColor, + fontSize: 32.sp, + ), lineHeight: 1.w, colorBuilder: FixedColorBuilder(Color(0xFFE8E8E8)), ), diff --git a/lib/ui/sub_pages/manage_func.dart b/lib/ui/sub_pages/manage_func.dart index dfc5a76..e2363de 100644 --- a/lib/ui/sub_pages/manage_func.dart +++ b/lib/ui/sub_pages/manage_func.dart @@ -74,7 +74,9 @@ class ManageFunc { BaseModel baseModel = await NetUtil().post(API.manage.submitPointDetail, params: { "executePointId": model.executePointId, - // "executeCheckList": ExecuteCheckList(id, status, remarks).toJson(), + "executeCheckList": model.executeCheckList + .map((e) => ExecuteCheckList(e.id, e.status, e.remarks).toJson()) + .toList(), "inspectionFaceImg": model.inspectionFaceImgPath, "inspectionSpaceImg": model.inspectionSpaceImgPath });