From ab97bd8db616242c145c032004528330d6ece20c Mon Sep 17 00:00:00 2001 From: zhangmeng <494089941@qq.com> Date: Wed, 31 Mar 2021 15:57:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E5=B7=A1=E6=A3=80=E7=82=B9=E4=BF=A1=E6=81=AF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inspection_point_submit_model.dart | 16 +++++++++------- lib/ui/login/login_sms_page.dart | 4 ++++ lib/ui/sub_pages/manage_func.dart | 4 +++- 3 files changed, 16 insertions(+), 8 deletions(-) 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 });