|
@ -234,51 +234,33 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async loadTable (fromTree, treeObj, ownerName, ownerPhone, rentFlag) { |
|
|
async loadTable (source, treeObj, ownerName, ownerPhone, rentFlag) { |
|
|
|
|
|
|
|
|
this.tableLoading = true |
|
|
this.tableLoading = true |
|
|
|
|
|
|
|
|
|
|
|
if (source === 'tree') {//来源于tree,查询数据清空 |
|
|
|
|
|
this.agencyObj = treeObj |
|
|
|
|
|
this.ownerName = null |
|
|
|
|
|
this.ownerPhone = null |
|
|
|
|
|
this.rentFlag = null |
|
|
|
|
|
} else if (source === 'search') {//来源于查询 |
|
|
this.ownerName = ownerName |
|
|
this.ownerName = ownerName |
|
|
this.ownerPhone = ownerPhone |
|
|
this.ownerPhone = ownerPhone |
|
|
this.rentFlag = rentFlag |
|
|
this.rentFlag = rentFlag |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
let params |
|
|
// if (fromTree) { |
|
|
|
|
|
// this.agencyObj = treeObj |
|
|
|
|
|
|
|
|
if (fromTree) { |
|
|
|
|
|
this.agencyObj = treeObj |
|
|
|
|
|
// if (this.agencyObj.level === 'community') {//只有社区和网格显示操作按钮 |
|
|
|
|
|
// if (this.agencyObj.id === this.staffAgencyId) {//如果所选树的组织id和登录人员id相同,有权限 |
|
|
|
|
|
// this.showImportBtn = true |
|
|
|
|
|
// } else { |
|
|
|
|
|
// this.showImportBtn = false |
|
|
|
|
|
// } |
|
|
|
|
|
// } else if (this.agencyObj.level === 'grid') {//网格下 |
|
|
|
|
|
// if (this.agencyObj.pid === this.staffAgencyId) {//如果所选树的父级组织id和登录人员id相同,有权限 |
|
|
|
|
|
// this.showImportBtn = true |
|
|
|
|
|
// } else { |
|
|
|
|
|
// this.showImportBtn = false |
|
|
|
|
|
// } |
|
|
// } |
|
|
// } else { |
|
|
let params = { |
|
|
// this.showImportBtn = false |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
params = { |
|
|
|
|
|
pageSize: this.pageSize, |
|
|
pageSize: this.pageSize, |
|
|
pageNo: this.pageNo, |
|
|
pageNo: this.pageNo, |
|
|
level: this.agencyObj.level, |
|
|
level: this.agencyObj.level, |
|
|
id: this.agencyObj.id, |
|
|
id: this.agencyObj.id, |
|
|
} |
|
|
ownerName: this.ownerName, |
|
|
|
|
|
ownerPhone: this.ownerPhone, |
|
|
if (ownerName) { |
|
|
rentFlag: this.rentFlag, |
|
|
params.ownerName = ownerName |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
if (ownerPhone) { |
|
|
|
|
|
params.ownerPhone = ownerPhone |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
if (rentFlag) { |
|
|
|
|
|
params.rentFlag = rentFlag |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const url = "/gov/org/house/houselist" |
|
|
const url = "/gov/org/house/houselist" |
|
|