详情
This commit is contained in:
@@ -121,7 +121,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-item">
|
||||
<!-- <div class="form-item">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
@@ -131,7 +131,20 @@
|
||||
<AiSelect dict="EP_travelType" v-model="form.travelType" class="select"></AiSelect>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div class="form-item form-item__imgs">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
<h2>出行方式</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<AiCheckbox style="width: 100%;" v-model="travelType" dict="EP_travelType"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-item">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
@@ -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 => {
|
||||
|
||||
@@ -65,7 +65,10 @@
|
||||
<label>出行方式</label>
|
||||
</div>
|
||||
<div class="right">
|
||||
<span>{{ $dict.getLabel('epidemicRecentTravel', info.travelType) }}</span>
|
||||
<span v-for="(item, index) in info.travelType.split(',')" :key="index">
|
||||
{{ $dict.getLabel('epidemicRecentTravel', item) }}
|
||||
<span v-show="index < info.travelType.split(',').length - 1">,</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="detail-info__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()
|
||||
|
||||
Reference in New Issue
Block a user