some issues

hmxc
张萌 4 years ago
parent a0df048fc4
commit 4fcfc04037

@ -33,6 +33,7 @@ void main() async {
onReceiveNotification: (Map<String, dynamic> message) async { onReceiveNotification: (Map<String, dynamic> message) async {
print("flutter onReceiveNotification: $message"); print("flutter onReceiveNotification: $message");
LoggerData.addData(message); LoggerData.addData(message);
await JpushMessageParse(message).shot();
}, },
// //
onOpenNotification: (Map<String, dynamic> message) async { onOpenNotification: (Map<String, dynamic> message) async {

@ -23,14 +23,14 @@ class InspectionPointSubmitModel {
class ExecuteCheckList { class ExecuteCheckList {
int id; int id;
int status; int status;
String remarks; String remarkes;
ExecuteCheckList(this.id, this.status, this.remarks); ExecuteCheckList(this.id, this.status, this.remarkes);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = { final Map<String, dynamic> data = {
"id": this.id, "id": this.id,
"status": this.status, "status": this.status,
"remarks": this.remarks, "remarks": this.remarkes,
}; };
return data; return data;
} }

@ -238,7 +238,7 @@ class _InspectionPointInputPageState extends State<InspectionPointInputPage> {
maxLines: 10, maxLines: 10,
autofocus: false, autofocus: false,
onChanged: (value) { onChanged: (value) {
_submitModel.executeCheckList[index].remarks = value; _submitModel.executeCheckList[index].remarkes = value;
}, },
decoration: InputDecoration( decoration: InputDecoration(
hintText: '请输入备注信息', hintText: '请输入备注信息',

@ -74,7 +74,7 @@ class ManageFunc {
await NetUtil().post(API.manage.submitPointDetail, params: { await NetUtil().post(API.manage.submitPointDetail, params: {
"executePointId": model.executePointId, "executePointId": model.executePointId,
"executeCheckList": model.executeCheckList "executeCheckList": model.executeCheckList
.map((e) => ExecuteCheckList(e.id, e.status, e.remarks).toJson()) .map((e) => ExecuteCheckList(e.id, e.status, e.remarkes).toJson())
.toList(), .toList(),
"inspectionFaceImg": model.inspectionFaceImgPath, "inspectionFaceImg": model.inspectionFaceImgPath,
"inspectionSpaceImg": model.inspectionSpaceImgPath "inspectionSpaceImg": model.inspectionSpaceImgPath

Loading…
Cancel
Save