bug
This commit is contained in:
@@ -149,6 +149,11 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
submit(status) {
|
||||
this.$confirm(status == 2 ? '确认解除管理该记录' : '确认保存该记录').then(() => {
|
||||
this.confirmSubmit(status)
|
||||
})
|
||||
},
|
||||
confirmSubmit(status) {
|
||||
if(this.form.homeStatus === '') {
|
||||
return this.$u.toast('请选择居家状态')
|
||||
}
|
||||
@@ -181,22 +186,27 @@ export default {
|
||||
uni.navigateBack()
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.form = {...res.data}
|
||||
this.form.controllerList = []
|
||||
var info = {}
|
||||
if(this.form.controllerUserName) {
|
||||
var info = {
|
||||
info = {
|
||||
name: this.form.controllerUserName,
|
||||
id: this.form.controllerUserId,
|
||||
mobile: this.form.controllerUserPhone
|
||||
}
|
||||
this.form.controllerList.push(info)
|
||||
}else {
|
||||
info = {
|
||||
name: this.user.name,
|
||||
id: this.user.id,
|
||||
mobile: this.user.phone
|
||||
}
|
||||
}
|
||||
this.form.controllerList.push(info)
|
||||
if(this.form.homeStatus === null) {
|
||||
this.form.homeStatus = ''
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<div class="title">
|
||||
<div>
|
||||
<span v-if="beginDate" @click="showDateSelect=true">{{ beginDate }} 至 {{ endDate }}</span>
|
||||
<span v-else @click="showDateSelect=true">时间选择</span>
|
||||
<span v-else @click="showDateSelect=true">日期选择</span>
|
||||
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" v-if="!beginDate" @click="showDateSelect=true"/>
|
||||
<u-icon name="close-circle" color="#666" size="34" style="margin-left: 4px" v-else @click="clearDate" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user