From f1bcf48182bc21e5fc26b6f7c0dcf304078ebca2 Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 25 Nov 2022 13:39:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BE=E5=8C=BA=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pingchang/AppCheckpointRegistration/Edit.vue | 10 ++++++---- .../pingchang/AppCommunityManagement/Edit.vue | 14 +++++++++----- 2 files changed, 15 insertions(+), 9 deletions(-) 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')