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 = ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user