From 50dee4c6a618fb1856a54c17a8555884e618e265 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Fri, 1 Apr 2022 14:32:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E6=B3=A8=E5=90=8D=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/epidemic/natInfo/natList.vue | 77 +++++++++++++++---- .../ninePlaces/inspect/inspect.vue | 9 +-- .../visual/basicinfo/basicInfoMain.vue | 2 +- src/views/pages/caiji.vue | 57 ++++++++------ 4 files changed, 103 insertions(+), 42 deletions(-) diff --git a/src/views/modules/base/epidemic/natInfo/natList.vue b/src/views/modules/base/epidemic/natInfo/natList.vue index 3d80d128..e7f5c05c 100644 --- a/src/views/modules/base/epidemic/natInfo/natList.vue +++ b/src/views/modules/base/epidemic/natInfo/natList.vue @@ -124,6 +124,7 @@ - @@ -196,29 +197,29 @@ size="small" @click="handleDetail(scope.row)">查看 - 同步 - 修改 - 删除 + @click="handleDelete(scope.row)">删除 - 取消同步 + @click="handleCancelAttention(scope.row)">取消同步 @@ -269,6 +270,7 @@ export default { pageSize: 20, pageNo: 0, tableLoading: false, + isResiUser: true, agencyId: '', orgTypeList: [ @@ -330,8 +332,16 @@ export default { }, methods: { - handleSearch () { - this.loadTable() + + async handleSearch () { + this.isResiUser = this.formData.orgType === 'current' + + await this.loadTable() + + this.$nextTick(() => { + this.$refs.ref_table.doLayout() // 解决表格错位 + }) + }, async loadTable () { @@ -363,6 +373,10 @@ export default { } }); + + + + } else { this.$message.error(msg) } @@ -418,8 +432,8 @@ export default { }, - async handleDelete (row, type) { - let message = type === 'delete' ? '确认删除?' : '取消同步后将不能在本辖区居民检测记录中查看,确认取消同步?' + async handleDelete (row) { + let message = '确认删除?' this.$confirm(message, "提示", { confirmButtonText: "确定", @@ -456,6 +470,43 @@ export default { } }, + async handleCancelAttention (row) { + let message = '取消同步后将不能在本辖区居民检测记录中查看,确认取消同步?' + + this.$confirm(message, "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning" + }) + .then(() => { + this.cancelAttention(row) + }) + .catch(err => { + + }); + }, + + async cancelAttention (row) { + const url = "/epmetuser/icNat/cancelsynchro" + + let params = { + icNatId: row.icNatId + } + + const { data, code, msg } = await requestPost(url, params) + + if (code === 0) { + this.$message({ + type: "success", + message: "操作成功" + }); + + this.loadTable() + } else { + this.$message.error(msg) + } + }, + async handleAttention (row) { this.$confirm("确认将信息同步到本辖区核酸检测信息中心?", "提示", { @@ -475,7 +526,7 @@ export default { }, async attentionNat (row) { - const url = "/epmetuser/icNat/synchro" + const url = "/epmetuser/icNat/cancelsynchro" // const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/synchro" let params = { diff --git a/src/views/modules/communityService/ninePlaces/inspect/inspect.vue b/src/views/modules/communityService/ninePlaces/inspect/inspect.vue index 4bb0576c..a5b14d62 100644 --- a/src/views/modules/communityService/ninePlaces/inspect/inspect.vue +++ b/src/views/modules/communityService/ninePlaces/inspect/inspect.vue @@ -150,8 +150,8 @@ + label="首次结果" + width="80"> @@ -186,7 +186,6 @@ 修改 { - this.$refs.ref_form.initForm('edit', row) + this.$refs.ref_form.initForm('edit', row.placePatrolRecordId) }) }, diff --git a/src/views/modules/visual/basicinfo/basicInfoMain.vue b/src/views/modules/visual/basicinfo/basicInfoMain.vue index abc3a874..d4168b30 100644 --- a/src/views/modules/visual/basicinfo/basicInfoMain.vue +++ b/src/views/modules/visual/basicinfo/basicInfoMain.vue @@ -251,7 +251,7 @@ const vueGis = { name: 'HomeMap', data () { return { - showAgencyList: true, + showAgencyList: false, agencyFadeIn: true, centerPoint: [],//中心点位置 zoom: 14,//缩放范围:区14 diff --git a/src/views/pages/caiji.vue b/src/views/pages/caiji.vue index 6be355e5..170cb01d 100644 --- a/src/views/pages/caiji.vue +++ b/src/views/pages/caiji.vue @@ -44,7 +44,7 @@
-
-
@@ -63,7 +63,7 @@
- { @@ -588,20 +591,22 @@ export default { if (this.formData.origin === 'internal') { - this.formData.villageId = this.selVillage.value - this.formData.buildId = this.selBuild.value - if (this.selUnit.value === 'else') { - this.formData.unitId = this.unitContent - this.formData.homeId = this.homeContent//没有选择房屋,不存在这个对象,直接赋值 + if (this.selUnit.value === 'other') { + this.formData.homeId = 'other' + this.formData.unitName = this.unitContent + this.formData.homeName = this.homeContent//没有选择房屋,不存在这个对象,直接赋值 } else { - this.formData.unitId = this.selUnit.value + this.unitContent = this.selUnit.label + this.formData.unitName = this.unitContent + + if (this.selHome.value === 'other') { - if (this.selHome.value === 'else') { - this.formData.homeId = this.homeContent + this.formData.homeName = this.homeContent } else { - this.formData.homeId = this.selHome.value + this.homeContent = this.selHome.label + this.formData.homeName = this.homeContent } } @@ -609,6 +614,7 @@ export default { this.formData.address = this.selVillage.label + this.selBuild.label + this.unitContent + this.homeContent } + this.formData.houseType = this.selHomeType.value let memberListTemp = [] @@ -632,6 +638,7 @@ export default { }); this.formData.memberList = memberListTemp console.log(this.formData) + this.btnDisabled = true this.startLoading() const url = "/epmetuser/icresicollect/save" @@ -677,7 +684,7 @@ export default { return aletMessage } else {//选择了单元 - if (this.selUnit.value === 'else') {//单元选择了其他 + if (this.selUnit.value === 'other') {//单元选择了其他 if (!this.unitContent) { aletMessage = '请填写单元号' return aletMessage @@ -693,7 +700,7 @@ export default { aletMessage = '请选择房屋' return aletMessage - } else if (this.selHome.value === 'else' && !this.homeContent) { + } else if (this.selHome.value === 'other' && !this.homeContent) { aletMessage = '请填写房屋' return aletMessage } @@ -725,7 +732,7 @@ export default { return aletMessage } - if (this.memberList[0].length > 1) { + if (this.memberList.length > 1) { for (let i = 1; i < this.memberList.length; i++) { let item = this.memberList[i] @@ -751,28 +758,31 @@ export default { popupOk () { if (this.selType === 'community') { this.selVillage = this.selObj + this.formData.villageId = this.selObj.value + this.formData.villageName = this.selObj.label this.selBuild = null this.selUnit = null this.selHome = null - this.formData.unitContent = '' - this.formData.homeContent = '' + this.unitContent = '' + this.homeContent = '' this.loadBuild() } if (this.selType === 'building') { this.selBuild = this.selObj - this.formData.buildContent = this.selObj.label this.formData.buildId = this.selObj.value + this.formData.buildName = this.selObj.label this.selUnit = null this.selHome = null - this.formData.unitContent = '' - this.formData.homeContent = '' + this.unitContent = '' + this.homeContent = '' this.loadUnit() } if (this.selType === 'unit') { this.selUnit = this.selObj + this.formData.unitId = this.selObj.value this.selHome = null this.unitContent = '' @@ -783,6 +793,7 @@ export default { } if (this.selType === 'room') { this.selHome = this.selObj + this.formData.homeId = this.selObj.value this.homeContent = '' }