|
@ -36,7 +36,7 @@ |
|
|
import cptTb from "@/views/dataBoard/cpts/tb"; |
|
|
import cptTb from "@/views/dataBoard/cpts/tb"; |
|
|
import cptBread from "@/views/dataBoard/renfang/cpts/bread"; |
|
|
import cptBread from "@/views/dataBoard/renfang/cpts/bread"; |
|
|
import houseDetails from "@/views/dataBoard/cpts/house-details"; |
|
|
import houseDetails from "@/views/dataBoard/cpts/house-details"; |
|
|
import { requestPostBi } from "@/js/dai/request-bipass"; |
|
|
import { requestPost } from "@/js/dai/request"; |
|
|
import getQueryPara from "dai-js/modules/getQueryPara"; |
|
|
import getQueryPara from "dai-js/modules/getQueryPara"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
@ -69,7 +69,7 @@ export default { |
|
|
|
|
|
|
|
|
orgLevel: "", |
|
|
orgLevel: "", |
|
|
org_id: "", |
|
|
org_id: "", |
|
|
houseType: "", // 流动 常驻 全部 |
|
|
houseType: 0, // 流动 常驻 全部 |
|
|
|
|
|
|
|
|
loading: true, |
|
|
loading: true, |
|
|
pageSize: parseInt(localStorage.getItem("dataBoard_PageSize")) || 20, |
|
|
pageSize: parseInt(localStorage.getItem("dataBoard_PageSize")) || 20, |
|
@ -156,7 +156,6 @@ export default { |
|
|
this.tableTitle = type_name + "房屋列表"; |
|
|
this.tableTitle = type_name + "房屋列表"; |
|
|
this.pageNo = 1; |
|
|
this.pageNo = 1; |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
this.getCount(); |
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
handleRouter() { |
|
|
handleRouter() { |
|
@ -174,7 +173,7 @@ export default { |
|
|
|
|
|
|
|
|
showInfo(index) { |
|
|
showInfo(index) { |
|
|
let item = this.srcTableData[index]; |
|
|
let item = this.srcTableData[index]; |
|
|
this.displayedHouseId = item.house_id; |
|
|
this.displayedHouseId = item.houseId; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
handlePageNoChange(pageNo) { |
|
|
handlePageNoChange(pageNo) { |
|
@ -193,18 +192,17 @@ export default { |
|
|
const { org_id, houseType, pageNo, pageSize } = this; |
|
|
const { org_id, houseType, pageNo, pageSize } = this; |
|
|
this.loading = true; |
|
|
this.loading = true; |
|
|
|
|
|
|
|
|
const url = "house_list"; |
|
|
const url = "/actual/base/communityHouse/listHouses"; |
|
|
|
|
|
|
|
|
const { data, code, msg } = await requestPostBi( |
|
|
const { data, code, msg } = await requestPost( |
|
|
url, |
|
|
url, |
|
|
{ |
|
|
{ |
|
|
queryParam: { |
|
|
id:org_id, |
|
|
org_id, |
|
|
rentFlag: this.houseType, |
|
|
type: houseType, |
|
|
level: "agency", |
|
|
pageNo, |
|
|
pageNo, |
|
|
pageSize, |
|
|
pageSize, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
// mockId: 60068051, |
|
|
// mockId: 60068051, |
|
|
} |
|
|
} |
|
@ -213,51 +211,27 @@ export default { |
|
|
this.loading = false; |
|
|
this.loading = false; |
|
|
|
|
|
|
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
this.srcTableData = data; |
|
|
this.srcTableData = data.list; |
|
|
// this.total = data.total; |
|
|
this.total = data.total; |
|
|
|
|
|
|
|
|
this.list = data.map((item, index) => { |
|
|
this.list = data.list.map((item, index) => { |
|
|
return [ |
|
|
return [ |
|
|
index + 1, |
|
|
index + 1, |
|
|
item.village ? item.village : "--", |
|
|
item.neighborHoodName ? item.neighborHoodName : "--", |
|
|
item.building ? item.building : "--", |
|
|
item.buildingName ? item.buildingName : "--", |
|
|
item.unit ? item.unit : "--", |
|
|
item.unitNum ? item.unitNum : "--", |
|
|
item.door ? item.door : "--", |
|
|
item.houseName ? item.houseName : "--", |
|
|
item.house_type ? item.house_type : "--", |
|
|
item.houseType ? item.houseType : "--", |
|
|
item.house_usage ? item.house_usage : "--", |
|
|
item.purpose ? item.purpose : "--", |
|
|
item.house_state ? item.house_state : "--", |
|
|
item.rentFlag ? item.rentFlag : "--", |
|
|
item.holder_name ? item.holder_name : "--", |
|
|
item.ownerName ? item.ownerName : "--", |
|
|
item.holder_phone ? item.holder_phone : "--", |
|
|
item.ownerPhone ? item.ownerPhone : "--", |
|
|
item.holder_idcard ? item.holder_idcard : "--", |
|
|
item.ownerIdCard ? item.ownerIdCard : "--", |
|
|
|
|
|
|
|
|
{ type: "operate", list: ["查看"] }, |
|
|
{ type: "operate", list: ["查看"] }, |
|
|
]; |
|
|
]; |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
|
|
|
this.$message.error(msg); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
async getCount() { |
|
|
|
|
|
const { org_id, houseType, pageNo, pageSize } = this; |
|
|
|
|
|
const url = "house_list_total"; |
|
|
|
|
|
|
|
|
|
|
|
const { data, code, msg } = await requestPostBi( |
|
|
|
|
|
url, |
|
|
|
|
|
{ |
|
|
|
|
|
queryParam: { |
|
|
|
|
|
org_id, |
|
|
|
|
|
type: houseType, |
|
|
|
|
|
pageNo, |
|
|
|
|
|
pageSize, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
// mockId: 63070189, |
|
|
|
|
|
} |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
|
|
this.total = parseInt(data[0].count); |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(msg); |
|
|
this.$message.error(msg); |
|
|
} |
|
|
} |
|
|