Browse Source

页码问题

shibei_master
jiangyy 3 years ago
parent
commit
1b22c13344
  1. 4
      src/views/modules/base/community/community.vue
  2. 54
      src/views/modules/base/community/roomTable.vue

4
src/views/modules/base/community/community.vue

@ -195,7 +195,7 @@ export default {
if (this.ownerName || this.ownerPhone || this.rentState) { if (this.ownerName || this.ownerPhone || this.rentState) {
this.showRoomTable = true this.showRoomTable = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['ref_buildingTable'].loadTable(true, this.selTreeObj, this.ownerName, this.ownerPhone, this.rentState) this.$refs['ref_buildingTable'].loadTable('search', this.selTreeObj, this.ownerName, this.ownerPhone, this.rentState)
}) })
} else { } else {
this.$message.warning('请输入查询条件') this.$message.warning('请输入查询条件')
@ -287,7 +287,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
if (obj.level === 'building') {// if (obj.level === 'building') {//
this.$refs['ref_buildingTable'].loadTable(true, this.selTreeObj) this.$refs['ref_buildingTable'].loadTable('tree', this.selTreeObj)
} else if (obj.level === 'neighborHood') {// } else if (obj.level === 'neighborHood') {//
this.$refs['ref_neighTable'].loadTable(true, this.selTreeObj) this.$refs['ref_neighTable'].loadTable(true, this.selTreeObj)

54
src/views/modules/base/community/roomTable.vue

@ -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
this.ownerName = ownerName
this.ownerPhone = ownerPhone
this.rentFlag = rentFlag
let params if (source === 'tree') {//tree
if (fromTree) {
this.agencyObj = treeObj this.agencyObj = treeObj
// if (this.agencyObj.level === 'community') {// this.ownerName = null
// if (this.agencyObj.id === this.staffAgencyId) {//idid this.ownerPhone = null
// this.showImportBtn = true this.rentFlag = null
// } else { } else if (source === 'search') {//
// this.showImportBtn = false this.ownerName = ownerName
// } this.ownerPhone = ownerPhone
// } else if (this.agencyObj.level === 'grid') {// this.rentFlag = rentFlag
// if (this.agencyObj.pid === this.staffAgencyId) {//idid
// this.showImportBtn = true
// } else {
// this.showImportBtn = false
// }
// } else {
// this.showImportBtn = false
// }
} }
params = {
// if (fromTree) {
// this.agencyObj = treeObj
// }
let 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"

Loading…
Cancel
Save