Browse Source

房屋管理bug

feature
jiangyuying 2 years ago
parent
commit
969c5dcc7d
  1. 48
      src/views/modules/base/community/community.vue
  2. 1640
      src/views/modules/base/community/communityExportInfo.vue
  3. 2
      src/views/modules/base/community/roomTable.vue

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

@ -649,14 +649,12 @@ export default {
},
handleSearch () {
// if (this.ownerName || this.ownerPhone || this.rentFlag || this.purpose || this.remark) {
console.log(this.selTreeObj)
this.showRoomTable = true;
this.$nextTick(() => {
this.$refs["ref_buildingTable"].loadTable("search", this.selTreeObj);
});
// } else {
// this.$message.warning('')
// }
},
//
@ -700,6 +698,7 @@ export default {
this.treeData = [];
this.treeData.push(data);
//
debugger
this.autoOpenArr.push(data.id)
if (!isRefresh && data) {
this.selTreeObj = data;
@ -896,47 +895,6 @@ export default {
//
getTreeObj (obj) {
//
// idtype
// idtypeidid
// idtypeid
if (obj.level === "building") {
this.selTreeObj = obj;
//
// let neighborHoodNode = this.$refs.ref_tree.getNode(obj.pid); //
// let gridNode = this.$refs.ref_tree.getNode(neighborHoodNode.data.pid); //
// let agencyNode = this.$refs.ref_tree.getNode(gridNode.data.pid); //
// obj.agencyId = agencyNode.data.id;
// obj.agencyName = agencyNode.data.label;
// obj.gridId = gridNode.data.id;
// obj.gridName = gridNode.data.label;
// obj.neighborHoodId = neighborHoodNode.data.id;
// obj.neighborHoodName = neighborHoodNode.data.label;
// if (obj.agencyId === this.staffAgencyId) {
// this.showImportBtn = true;
// } else {
// this.showImportBtn = false;
// }
} else if (obj.level === "neighborHood") {
//
// let gridNode = this.$refs.ref_tree.getNode(obj.pid);
// let agencyNode = this.$refs.ref_tree.getNode(obj.agencyId);
// obj.gridId = gridNode.data.id;
// obj.gridName = gridNode.data.label;
// obj.agencyId = agencyNode.data.id;
// obj.agencyName = agencyNode.data.label;
// if (obj.agencyId === this.staffAgencyId) {
// this.showImportBtn = true;
// } else {
// this.showImportBtn = false;
// }
this.selTreeObj = obj;
} else {
}
if (!obj.latitude) {
obj.latitude = this.centerPoint[0];
}

1640
src/views/modules/base/community/communityExportInfo.vue

File diff suppressed because it is too large

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

@ -479,7 +479,7 @@ export default {
async loadTable (source, treeObj) {
this.source = source;
this.tableLoading = true;
console.log(treeObj, 'see');
console.log(treeObj, source);
if (source === "tree") {
//tree
this.sortType = "asc";

Loading…
Cancel
Save