From c842a60f4501b3917eab4945bfc74a42c5d8d4a0 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Mon, 26 Sep 2022 09:34:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pingchang/AppGetwayRegister/AddGetway.vue | 20 +++++++++++++++++-- .../AppGetwayRegister/DetailGetway.vue | 7 ++++++- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/project/pingchang/AppGetwayRegister/AddGetway.vue b/src/project/pingchang/AppGetwayRegister/AddGetway.vue index 05f07c6..8dcdfb1 100644 --- a/src/project/pingchang/AppGetwayRegister/AddGetway.vue +++ b/src/project/pingchang/AppGetwayRegister/AddGetway.vue @@ -121,7 +121,7 @@ -
+ + +
+
+
+ * +

出行方式

+
+
+ +
+
+
@@ -361,6 +374,7 @@ export default { current: 1, getwayData: [], flag: false, + travelType: [], // 出行方式 } }, @@ -488,7 +502,7 @@ export default { return this.$toast('请输入出发地址') } - if (!this.form.travelType) { + if (!this.travelType) { return this.$toast('请选择出行方式') } @@ -542,6 +556,8 @@ export default { this.$loading() this.$instance.post(`/app/appepidemicpreventionregisterinfo/addOrUpdate`, { ...this.form, + travelType: this.travelType.toString(), + companionList: this.people, startTime: this.form.startTime + ':00', arriveTime: this.form.arriveTime + ':00', }).then(res => { diff --git a/src/project/pingchang/AppGetwayRegister/DetailGetway.vue b/src/project/pingchang/AppGetwayRegister/DetailGetway.vue index d27b571..c84b33d 100644 --- a/src/project/pingchang/AppGetwayRegister/DetailGetway.vue +++ b/src/project/pingchang/AppGetwayRegister/DetailGetway.vue @@ -65,7 +65,10 @@
- {{ $dict.getLabel('epidemicRecentTravel', info.travelType) }} + + {{ $dict.getLabel('epidemicRecentTravel', item) }} + +
@@ -187,6 +190,7 @@ export default { return { info: {}, // pageShow: false + data: [] } }, @@ -209,6 +213,7 @@ export default { this.$instance.post(`/app/appepidemicpreventionregisterinfo/queryDetailById?id=${id}`).then(res => { if (res?.data) { this.info = res.data + // this.data = this.info.travelType.split(',') } this.$hideLoading()