社区管理
This commit is contained in:
@@ -149,11 +149,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
submit(status) {
|
||||
this.$confirm(status == 2 ? '确认解除管理该记录' : '确认保存该记录').then(() => {
|
||||
this.confirmSubmit(status)
|
||||
})
|
||||
},
|
||||
confirmSubmit(status) {
|
||||
if(this.form.homeStatus === '') {
|
||||
return this.$u.toast('请选择居家状态')
|
||||
}
|
||||
@@ -175,6 +170,12 @@ export default {
|
||||
if( !this.form.fileList.length) {
|
||||
return this.$u.toast('请上传图片')
|
||||
}
|
||||
|
||||
this.$confirm(status == 2 ? '确认解除管理该记录' : '确认保存该记录').then(() => {
|
||||
this.confirmSubmit(status)
|
||||
})
|
||||
},
|
||||
confirmSubmit(status) {
|
||||
this.form.status = status
|
||||
this.form.id = this.id
|
||||
|
||||
@@ -192,19 +193,15 @@ export default {
|
||||
if (res.code == 0) {
|
||||
this.form = {...res.data}
|
||||
this.form.controllerList = []
|
||||
var info = {}
|
||||
if(this.form.controllerUserName) {
|
||||
info = {
|
||||
name: this.form.controllerUserName,
|
||||
id: this.form.controllerUserId,
|
||||
mobile: this.form.controllerUserPhone
|
||||
}
|
||||
}else {
|
||||
info = {
|
||||
name: this.user.name,
|
||||
id: this.user.id,
|
||||
mobile: this.user.phone
|
||||
}
|
||||
if(!this.form.controllerUserName) {
|
||||
this.form.controllerUserName = this.user.name
|
||||
this.form.controllerUserId = this.user.id
|
||||
this.form.controllerUserPhone = this.user.phone
|
||||
}
|
||||
var info = {
|
||||
name: this.form.controllerUserName,
|
||||
id: this.form.controllerUserId,
|
||||
mobile: this.form.controllerUserPhone
|
||||
}
|
||||
this.form.controllerList.push(info)
|
||||
if(this.form.homeStatus === null) {
|
||||
|
||||
Reference in New Issue
Block a user