修复 提交巡检点信息接口

hmxc
张萌 4 years ago
parent 1bca4824d2
commit ab97bd8db6

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

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

@ -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
});

Loading…
Cancel
Save