From ed9982d3a25a3c0a61633fa303cd0a170946f1da Mon Sep 17 00:00:00 2001 From: jiangyy Date: Thu, 9 Jun 2022 09:41:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E5=B1=8B=E7=82=B9=E5=87=BB=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=97=B6=E7=BB=84=E7=BB=87=E7=BA=A7=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/community/roomTable.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/views/modules/base/community/roomTable.vue b/src/views/modules/base/community/roomTable.vue index c2fef85e..7fd7efe6 100644 --- a/src/views/modules/base/community/roomTable.vue +++ b/src/views/modules/base/community/roomTable.vue @@ -213,6 +213,7 @@ export default { // showImportBtn: false,//是否显示操作按钮,根据登录人所属组织判断 agencyObj: {},//树所选的小区对象 + agencyLevel: '',//树对应的level, grid neighborHood building agency validTableDataNum: 0,//有效的数据数量,即有权限操作的数据数量 @@ -339,6 +340,20 @@ export default { } + if (this.agencyObj.level === 'grid') { + this.agencyLevel = 'grid' + + } else if (this.agencyObj.level === 'neighborHood') { + this.agencyLevel = 'neighborHood' + + } else if (this.agencyObj.level === 'building') { + this.agencyLevel = 'building' + + } else { + this.agencyLevel = 'agency' + + } + // if (fromTree) { // this.agencyObj = treeObj @@ -346,7 +361,7 @@ export default { let params = { pageSize: this.pageSize, pageNo: this.pageNo, - level: this.agencyObj.level, + level: this.agencyLevel, id: this.agencyObj.id, ownerName: this.ownerName, ownerPhone: this.ownerPhone,