diff --git a/src/project/pingchang/AppCommunityManagement/Add.vue b/src/project/pingchang/AppCommunityManagement/Add.vue index 38b4f307..41f4edcf 100644 --- a/src/project/pingchang/AppCommunityManagement/Add.vue +++ b/src/project/pingchang/AppCommunityManagement/Add.vue @@ -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 = '' } diff --git a/src/project/pingchang/AppCommunityManagement/Statistics.vue b/src/project/pingchang/AppCommunityManagement/Statistics.vue index c8dbf604..5075a337 100644 --- a/src/project/pingchang/AppCommunityManagement/Statistics.vue +++ b/src/project/pingchang/AppCommunityManagement/Statistics.vue @@ -6,7 +6,7 @@