|
@@ -1,4 +1,4 @@
|
|
|
-
|
|
|
+import { GetFloorIds } from "../../../api/map";
|
|
|
var dataurl = "https://www.supermapol.com/realspace/services/data-HeBing8HaoLou/rest/data/featureResults.rjson?returnContent=true";
|
|
|
var
|
|
|
idList = [],
|
|
@@ -36,6 +36,7 @@ function getBuildingId(response) { //得到户型id
|
|
|
for (var i = 0; i < length; i++) {
|
|
|
idList[i] = response.features[i].ID;
|
|
|
}
|
|
|
+ console.log('idList0', idList)
|
|
|
}
|
|
|
|
|
|
export function handlerModel(e) {
|
|
@@ -47,15 +48,25 @@ export function handlerModel(e) {
|
|
|
}
|
|
|
viewer.pickEvent.addEventListener(function (feature) {
|
|
|
getFeatureBySQL(feature.BG);
|
|
|
+ getBuildingIdList(feature.BG);
|
|
|
+ console.log('idList2', idList)
|
|
|
if (idList.length > 0) {
|
|
|
Array.prototype.push.apply(totalList, idList);
|
|
|
var offsetNormal = Cesium.Cartesian3.multiplyByScalar(normal, Number(20), scratchNromal); //可以更改偏移默认值
|
|
|
console.log(idList, 'idList')
|
|
|
store.state.chooseLayer.setObjsTranslate(idList, offsetNormal);
|
|
|
}
|
|
|
-
|
|
|
+ return '2c01647f-4533-4472-b20b-f5caa4c705b0'
|
|
|
+ });
|
|
|
+}
|
|
|
+function getBuildingIdList(bg) { //得到户型id
|
|
|
+ // var tt = bg.split("F");//'tt[0]
|
|
|
+ GetFloorIds({ id: '2c01647f-4533-4472-b20b-f5caa4c705b0' }).then((res) => {
|
|
|
+ idList = res.data
|
|
|
+ console.log('idList1', idList)
|
|
|
});
|
|
|
}
|
|
|
+// getBuildingIdList()
|
|
|
|
|
|
//清除偏移
|
|
|
export function clearTranslate() {
|
|
@@ -64,3 +75,15 @@ export function clearTranslate() {
|
|
|
idList = [];
|
|
|
totalList = [];
|
|
|
}
|
|
|
+export const keyName = {
|
|
|
+ id: 'ID',
|
|
|
+ community: "小区名称",
|
|
|
+ building: "栋",
|
|
|
+ floor: '层',
|
|
|
+ room: "房间",
|
|
|
+ residentName: "住户姓名",
|
|
|
+ idNumber: "证件号",
|
|
|
+ innerArea: '套内面积',
|
|
|
+ certificateNumber: "证书号",
|
|
|
+ roomInfo: "房间信息完整信息"
|
|
|
+}
|