diff --git a/src/project/pingchang/AppCheckpointRegistration/Edit.vue b/src/project/pingchang/AppCheckpointRegistration/Edit.vue index e4d1a7c2..9c87d6e6 100644 --- a/src/project/pingchang/AppCheckpointRegistration/Edit.vue +++ b/src/project/pingchang/AppCheckpointRegistration/Edit.vue @@ -161,10 +161,12 @@ export default { return this.$u.toast('请选择目的地') } - this.form.startTime = this.form.startTime + ':00' - this.form.arriveTime = this.form.arriveTime + ':00' - this.travelType = this.travelType.join(',') - this.$http.post(`/app/appepidemicpreventionregisterinfo/updateForAdmin`, this.form).then((res) => { + this.$http.post(`/app/appepidemicpreventionregisterinfo/updateForAdmin`, { + ...this.form, + startTime: this.form.startTime + ':00', + arriveTime: this.form.arriveTime + ':00', + travelType: this.travelType.join(',') + }).then((res) => { if (res.code == 0) { this.$u.toast('提交成功') uni.$emit('updateDetail') diff --git a/src/project/pingchang/AppCommunityManagement/Edit.vue b/src/project/pingchang/AppCommunityManagement/Edit.vue index f0f8c9e0..3994468d 100644 --- a/src/project/pingchang/AppCommunityManagement/Edit.vue +++ b/src/project/pingchang/AppCommunityManagement/Edit.vue @@ -153,7 +153,9 @@ export default { data() { return { id: '', - form: {}, + form: { + infoType: '3' + }, showDateSelect: false, showDictSelect: false, selectDictName: '', @@ -228,11 +230,13 @@ export default { return this.$u.toast('请选择目的地') } - this.form.startTime = this.form.startTime + ':00', - this.form.arriveTime = this.form.arriveTime + ':00', - this.form.travelType = this.travelType.join(',') var url = this.fromType == 0 ? '/app/appepidemicpreventionregisterinfo/addForCM' : '/app/appepidemicpreventionregisterinfo/updateForAdmin' - this.$http.post(url, this.form).then((res) => { + this.$http.post(url, { + ...this.form, + startTime: this.form.startTime + ':00', + arriveTime: this.form.arriveTime + ':00', + travelType: this.travelType.join(',') + }).then((res) => { if (res.code == 0) { this.$u.toast('提交成功') uni.$emit('updateDetail')