修复 提交巡检点信息接口

hmxc
张萌 4 years ago
parent 1bca4824d2
commit ab97bd8db6

@ -12,13 +12,15 @@ class InspectionPointSubmitModel {
this.inspectionSpaceImg, this.inspectionSpaceImg,
this.inspectionFaceImgPath, this.inspectionFaceImgPath,
this.inspectionSpaceImgPath}); this.inspectionSpaceImgPath});
// Map<String, dynamic> executeCheckListToJson() { Map<String, dynamic> executeCheckListToJson() {
// final Map<String,dynamic> final Map<String, dynamic> data = new Map<String, dynamic>();
// if (this.executeCheckList != null) {
// this.executeCheckList.map((e) => e.toJson()).toList(); if (this.executeCheckList != null) {
// return data["executeCheckList"] =
// } else {} this.executeCheckList.map((e) => e.toJson()).toList();
// } return data;
}
}
} }
class ExecuteCheckList { class ExecuteCheckList {

@ -110,6 +110,10 @@ class _LoginSMSPageState extends State<LoginSMSPage> {
controller: _textEditingController, controller: _textEditingController,
autoFocus: true, autoFocus: true,
decoration: UnderlineDecoration( decoration: UnderlineDecoration(
textStyle: TextStyle(
color: kTextPrimaryColor,
fontSize: 32.sp,
),
lineHeight: 1.w, lineHeight: 1.w,
colorBuilder: FixedColorBuilder(Color(0xFFE8E8E8)), colorBuilder: FixedColorBuilder(Color(0xFFE8E8E8)),
), ),

@ -74,7 +74,9 @@ class ManageFunc {
BaseModel baseModel = BaseModel baseModel =
await NetUtil().post(API.manage.submitPointDetail, params: { await NetUtil().post(API.manage.submitPointDetail, params: {
"executePointId": model.executePointId, "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, "inspectionFaceImg": model.inspectionFaceImgPath,
"inspectionSpaceImg": model.inspectionSpaceImgPath "inspectionSpaceImg": model.inspectionSpaceImgPath
}); });

Loading…
Cancel
Save