社区管理
This commit is contained in:
@@ -142,15 +142,15 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
submit() {
|
||||
if(!this.travelType.length) {
|
||||
return this.$u.toast('请选择出行方式')
|
||||
}
|
||||
if(!this.form.startTime) {
|
||||
return this.$u.toast('请选择出发时间')
|
||||
}
|
||||
if(!this.form.startAreaId) {
|
||||
return this.$u.toast('请选择出发地')
|
||||
}
|
||||
if(!this.travelType.length) {
|
||||
return this.$u.toast('请选择出行方式')
|
||||
}
|
||||
if(!this.form.arriveTime) {
|
||||
return this.$u.toast('请选择抵平时间')
|
||||
}
|
||||
@@ -160,7 +160,7 @@ export default {
|
||||
|
||||
this.form.startTime = this.form.startTime + ':00'
|
||||
this.form.arriveTime = this.form.arriveTime + ':00'
|
||||
this.form.travelType = this.travelType.join(',')
|
||||
this.travelType = this.travelType.join(',')
|
||||
this.$http.post(`/app/appepidemicpreventionregisterinfo/updateForAdmin`, this.form).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast('提交成功')
|
||||
@@ -187,9 +187,14 @@ export default {
|
||||
this.$http.post(`/app/appepidemicpreventionregisterinfo/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.form = res.data
|
||||
this.travelType = res.data.travelType?.split(',')
|
||||
this.form.startTime = res.data.startTime.substr(0, res.data.startTime.length - 3)
|
||||
this.form.arriveTime = res.data.arriveTime.substr(0, res.data.arriveTime.length - 3)
|
||||
this.travelType = res.data.travelType?.split(',') || []
|
||||
if(res.data.startTime) {
|
||||
this.form.startTime = res.data.startTime.substring(0, 16)
|
||||
}
|
||||
if(res.data.arriveTime) {
|
||||
this.form.arriveTime = res.data.arriveTime.substring(0, 16)
|
||||
}
|
||||
console.log(this.form)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="type-select" v-if="haveHomeQuarantineBtn == 1">
|
||||
<div class="type-item" :class="form.handleType == index ? 'active' : ''" v-for="(item, index) in handlerTypeList" :key="index" @click="handleTypeClick(index)" v-if="index > 0">{{item.dictName}}</div>
|
||||
<div class="type-item" :class="form.handleType == item.dictValue ? 'active' : ''" v-for="(item, index) in handlerTypeList" :key="index" @click="handleTypeClick(item.dictValue)" v-if="index > 0">{{item.dictName}}</div>
|
||||
</div>
|
||||
<div class="type-select" v-else>
|
||||
<div class="type-item" :class="form.handleType == index ? 'active' : ''" v-for="(item, index) in handlerTypeList" :key="index" @click="handleTypeClick(index)" v-if="index != 0 && index != 3 && index != 4">{{item.dictName}}</div>
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty v-if="!info.riskDisposalHistoryList.length"></AiEmpty>
|
||||
|
||||
|
||||
<div class="btn-height"></div>
|
||||
<div class="footer" v-if="form.handleType == 3">
|
||||
<div @click="toChangeUser">放行居家隔离</div>
|
||||
@@ -144,7 +144,11 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
submit(status) {
|
||||
if([3, 6].includes(this.form.handleType)) { //3居家隔离 //6移交
|
||||
// if([3, 6].includes(this.form.handleType)) { //3居家隔离 //6移交
|
||||
// this.form.quarantineBeginTime = null
|
||||
// this.form.quarantineEndTime = null
|
||||
// }
|
||||
if(!this.form.quarantineBeginTime) {
|
||||
this.form.quarantineBeginTime = null
|
||||
this.form.quarantineEndTime = null
|
||||
}
|
||||
@@ -157,7 +161,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
uni.navigateBack({ delta: 3 })
|
||||
}, 600)
|
||||
|
||||
|
||||
}
|
||||
}).catch((err) => {
|
||||
this.$u.toast(err)
|
||||
@@ -202,7 +206,7 @@ export default {
|
||||
background-color: #fff;
|
||||
padding: 0 32px;
|
||||
margin-bottom: 24px;
|
||||
|
||||
|
||||
}
|
||||
.item-flex{
|
||||
padding: 34px 0;
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<div class="item-flex">
|
||||
<div class="label">出行方式</div>
|
||||
<div class="value">
|
||||
<span v-for="(item, index) in info.travelTypeList" :key="index"><span v-if="index>0">;</span>{{$dict.getLabel('EP_travelType',item)}}</span>
|
||||
<span v-for="(item, index) in info.travelTypeList" :key="index"><span v-if="index>0&&item!==''">;</span>{{$dict.getLabel('EP_travelType',item)}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-flex border-none" v-if="info.trainNo">
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<p> {{item.idNumberText}}</p>
|
||||
<p>{{item.phone}}</p>
|
||||
<p>{{item.registerInfo.startAreaName}}-{{item.registerInfo.arriveAreaName}}</p>
|
||||
<p v-if="item.lastRiskDisposal.handleType != 7">处置意见:<span :class="'type-'+item.lastRiskDisposal.handleType">{{$dict.getLabel('EP_handleType', item.lastRiskDisposal.handleType)}}</span></p>
|
||||
<p v-if="item.lastRiskDisposal.handleType != 7 && item.lastRiskDisposal.handleType != null">处置意见:<span :class="'type-'+item.lastRiskDisposal.handleType">{{$dict.getLabel('EP_handleType', item.lastRiskDisposal.handleType)}}</span></p>
|
||||
<div class="btn" v-if="item.status == 0" @click.stop="toEdit(item.registerInfo.id)">管理</div>
|
||||
<div class="btn" v-if="item.status == 1" @click.stop="toManage(item.id)">排查</div>
|
||||
<img src="./components/img/status-img.png" alt="" class="status-img" v-if="item.status == 2">
|
||||
|
||||
Reference in New Issue
Block a user