Browse Source

房屋管理添加查询字段

feature/addsearch
wanggongfeng 3 years ago
parent
commit
86de1272f5
  1. 26
      src/views/modules/base/community/roomTable.vue

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

@ -198,7 +198,7 @@ let loading // 加载动画
export default { export default {
data () { data () {
return { return {
source: 'tree',// source: 'tree',//
importRoomLoading: false, importRoomLoading: false,
total: 0, total: 0,
pageSize: 20, pageSize: 20,
@ -212,6 +212,8 @@ export default {
ownerName: '', ownerName: '',
ownerPhone: '', ownerPhone: '',
rentFlag: '', rentFlag: '',
purpose: '',
remark: '',
validTableDataNum: 0,// validTableDataNum: 0,//
selection: [], selection: [],
@ -323,7 +325,7 @@ export default {
}, },
async loadTable (source, treeObj, ownerName, ownerPhone, rentFlag) { async loadTable (source, treeObj, ownerName, ownerPhone, rentFlag, purpose, remark) {
this.source = source this.source = source
this.tableLoading = true this.tableLoading = true
@ -334,11 +336,15 @@ export default {
this.ownerName = null this.ownerName = null
this.ownerPhone = null this.ownerPhone = null
this.rentFlag = null this.rentFlag = null
this.purpose = null
this.remark = null
} else if (source === 'search') {// } else if (source === 'search') {//
this.agencyObj = treeObj this.agencyObj = treeObj
this.ownerName = ownerName this.ownerName = ownerName
this.ownerPhone = ownerPhone this.ownerPhone = ownerPhone
this.rentFlag = rentFlag this.rentFlag = rentFlag
this.purpose = purpose
this.remark = remark
} }
// if (fromTree) { // if (fromTree) {
@ -354,6 +360,8 @@ export default {
ownerPhone: this.ownerPhone, ownerPhone: this.ownerPhone,
rentFlag: this.rentFlag, rentFlag: this.rentFlag,
sortType: this.sortType, sortType: this.sortType,
purpose: this.purpose,
remark: this.remark
} }
const url = "/gov/org/house/houselist" const url = "/gov/org/house/houselist"
@ -547,6 +555,8 @@ export default {
ownerName: this.ownerName, ownerName: this.ownerName,
ownerPhone: this.ownerPhone, ownerPhone: this.ownerPhone,
rentFlag: this.rentFlag, rentFlag: this.rentFlag,
purpose: this.purpose,
remark: this.remark,
buildingId: this.agencyObj.id buildingId: this.agencyObj.id
} }
@ -624,11 +634,11 @@ export default {
ownerName: this.ownerName, ownerName: this.ownerName,
ownerPhone: this.ownerPhone, ownerPhone: this.ownerPhone,
rentFlag: this.rentFlag, rentFlag: this.rentFlag,
purpose: this.purpose,
remark: this.remark,
buildingId: this.agencyObj.id buildingId: this.agencyObj.id
} }
app.ajax.exportFilePost( app.ajax.exportFilePost(
url, url,
params, params,
@ -782,6 +792,14 @@ export default {
type: String, type: String,
default: '', default: '',
}, },
purpose: {
type: String,
default: '',
},
remark: {
type: String,
default: '',
}
} }
} }
</script> </script>

Loading…
Cancel
Save