|
@@ -218,7 +218,7 @@ export default {
|
|
|
queryForm: {
|
|
|
houseStatus: '',
|
|
|
},
|
|
|
- queryByGeo: { houseParams: [] }, // 几何查询时的请求参数
|
|
|
+ queryByGeo: { houseParams: [],houseNo:"" }, // 几何查询时的请求参数
|
|
|
bufferDistence: 200, //缓冲距离
|
|
|
tableData: [],
|
|
|
pagination: {
|
|
@@ -254,8 +254,6 @@ export default {
|
|
|
source: this.vectorLayer.getSource(),
|
|
|
})
|
|
|
this.queryBuilding('', false) // 获取所有的楼栋信息
|
|
|
- this.query()
|
|
|
-
|
|
|
},
|
|
|
watch: {
|
|
|
'$store.state.map.halfP_editableTabsValue': function (val, oldVal) {
|
|
@@ -284,11 +282,10 @@ export default {
|
|
|
* 查询
|
|
|
*/
|
|
|
query() {
|
|
|
- // this.filtersQuerParam()
|
|
|
if (this.queryType == '1') {
|
|
|
// let parmas = this.queryForm
|
|
|
- // Object.assign(parmas, this.pagination)
|
|
|
let parmas = this.filtersQuerParam()
|
|
|
+ Object.assign(parmas, this.pagination)
|
|
|
this.getPublicHouseByBuildings(parmas)
|
|
|
} else {
|
|
|
// alert('111')
|
|
@@ -350,18 +347,19 @@ export default {
|
|
|
});
|
|
|
// 查询
|
|
|
new FeatureService(url).getFeaturesByGeometry(geometryParam, serviceResult => {
|
|
|
+
|
|
|
console.log('查询结果:', serviceResult);
|
|
|
// 显示查询结果
|
|
|
this.vectorLayer.getSource().addFeatures(new GeoJSON().readFeatures(serviceResult.result.features))
|
|
|
// 查询具体的房屋
|
|
|
let features = serviceResult.result.features.features
|
|
|
this.queryByGeo.houseParams = []
|
|
|
- if (features.length < 1) {
|
|
|
- this.$message.info('未获取到楼房信息!');
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (features.length < 1) {
|
|
|
+ // this.$message.info('未获取到楼房信息!');
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
features.forEach(item => {
|
|
|
- this.queryByGeo.houseParams.push({ buildingNo: item.properties.COMMUNITYNUMBER, buildingNum: item.properties.BUILDINGNUM })
|
|
|
+ this.queryByGeo.houseParams.push({ buildingNo: item.properties.SID})
|
|
|
})
|
|
|
this.query()
|
|
|
})
|
|
@@ -398,6 +396,7 @@ export default {
|
|
|
} else {
|
|
|
// 查询所有的楼栋信息
|
|
|
this.allBuilding = JSON.parse(JSON.stringify(features.features))
|
|
|
+ this.query()
|
|
|
console.log("房屋信息:--》", this.allBuilding)
|
|
|
}
|
|
|
})
|