|
@@ -121,7 +121,7 @@ export default {
|
|
|
components: {
|
|
|
Tool: defineAsyncComponent(() => import("@/components/Tool.vue")),
|
|
|
},
|
|
|
- created() {},
|
|
|
+ created() { },
|
|
|
mounted() {
|
|
|
let that = this;
|
|
|
// this.clipboard = new Clipboard(".copy_info_dialog", {
|
|
@@ -261,25 +261,23 @@ export default {
|
|
|
// }
|
|
|
// );
|
|
|
// }
|
|
|
- // window.changeImage = this.changeImage;
|
|
|
|
|
|
// 叫号
|
|
|
this.initJH();
|
|
|
+
|
|
|
// 水面加载
|
|
|
setTimeout(() => {
|
|
|
that.addWaterPanel();
|
|
|
}, 10000);
|
|
|
},
|
|
|
|
|
|
+ // 延迟加载模型
|
|
|
yanchiAdd3DTiles(index, keyArr) {
|
|
|
let that = this;
|
|
|
if (index >= keyArr.length) return;
|
|
|
const str = keyArr[index];
|
|
|
globalVariable.tilesArr[str] = this.add3DTilesData(
|
|
|
- systemConfig.tilesConfig[str].dataUrl + str + "/tileset.json" //
|
|
|
- // {
|
|
|
- // light: systemConfig.tilesConfig[str].light,
|
|
|
- // }
|
|
|
+ systemConfig.tilesConfig[str].dataUrl + str + "/tileset.json"
|
|
|
);
|
|
|
setTimeout(() => {
|
|
|
that.yanchiAdd3DTiles(++index, keyArr);
|
|
@@ -362,10 +360,10 @@ export default {
|
|
|
let screenSpaceCameraController =
|
|
|
globalVariable.viewer.scene.screenSpaceCameraController;
|
|
|
screenSpaceCameraController.enableLook = bool;
|
|
|
- screenSpaceCameraController.enableRotate = bool;
|
|
|
- screenSpaceCameraController.enableTilt = bool;
|
|
|
- screenSpaceCameraController.enableTranslate = bool;
|
|
|
- screenSpaceCameraController.enableZoom = bool;
|
|
|
+ screenSpaceCameraController.enableRotate = bool; // 禁止旋转
|
|
|
+ screenSpaceCameraController.enableTilt = bool; // 禁止倾斜相机
|
|
|
+ screenSpaceCameraController.enableTranslate = bool; // 禁止移动
|
|
|
+ screenSpaceCameraController.enableZoom = bool; // 禁止缩放
|
|
|
},
|
|
|
|
|
|
// 默认定位
|
|
@@ -386,6 +384,7 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
flyTo(item) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
globalVariable.viewer.camera.flyTo({
|
|
@@ -425,9 +424,9 @@ export default {
|
|
|
// 开启场景光照
|
|
|
globalVariable.viewer.scene.globe.enableLighting = true;
|
|
|
// 控制太阳光
|
|
|
- globalVariable.viewer.scene.sun.show = systemConfig.sunShow;
|
|
|
+ globalVariable.viewer.scene.sun.show = false; // systemConfig.sunShow;
|
|
|
// 控制阴影
|
|
|
- globalVariable.viewer.shadows = systemConfig.shadows;
|
|
|
+ globalVariable.viewer.shadows = false; // systemConfig.shadows;
|
|
|
// 阴影强度
|
|
|
globalVariable.viewer.shadowMap.darkness = systemConfig.shadowMapDarkness;
|
|
|
|
|
@@ -526,7 +525,7 @@ export default {
|
|
|
cameraLat = null;
|
|
|
cameraHeight = null;
|
|
|
})
|
|
|
- .catch((err) => {});
|
|
|
+ .catch((err) => { });
|
|
|
}
|
|
|
function huifu() {
|
|
|
that.correctCamera = false;
|
|
@@ -627,8 +626,8 @@ export default {
|
|
|
// cartesian = Cesium.Cartesian3.fromDegrees(lng, lat, height);
|
|
|
// console.log("模型高度点", cartesian);
|
|
|
let str = `
|
|
|
- lon:${lon}
|
|
|
- lat:${lat}
|
|
|
+ lon:${lon},
|
|
|
+ lat:${lat},
|
|
|
height:${height}
|
|
|
`;
|
|
|
console.log(str);
|
|
@@ -644,7 +643,6 @@ export default {
|
|
|
}
|
|
|
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
|
},
|
|
|
-
|
|
|
/* ------------叫号------------ */
|
|
|
initJH() {
|
|
|
let that = this;
|
|
@@ -809,6 +807,8 @@ export default {
|
|
|
api.getToken().then(function (result) {
|
|
|
that.$store.commit("setToken", result.data);
|
|
|
resolve();
|
|
|
+ }, function (err) {
|
|
|
+ reject(err);
|
|
|
});
|
|
|
});
|
|
|
},
|
|
@@ -819,9 +819,13 @@ export default {
|
|
|
result.data != null
|
|
|
? result.data
|
|
|
: {
|
|
|
- win_status: "STOP",
|
|
|
- }
|
|
|
+ win_status: "STOP",
|
|
|
+ }
|
|
|
);
|
|
|
+ }, function (err) {
|
|
|
+ resolve({
|
|
|
+ win_status: "STOP",
|
|
|
+ })
|
|
|
});
|
|
|
});
|
|
|
},
|
|
@@ -1010,9 +1014,11 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+ }, function (err) {
|
|
|
+ console.log(err);
|
|
|
});
|
|
|
},
|
|
|
- /* -------------------------- */
|
|
|
+ /* ------------------------ */
|
|
|
|
|
|
// 地图添加图片
|
|
|
addImage(viewer, pObj, imgUrl) {
|
|
@@ -1042,7 +1048,7 @@ export default {
|
|
|
canvasWidth: 1000,
|
|
|
canvasHeight: 500,
|
|
|
period: 60,
|
|
|
- text: "请18号前往14号服务台",
|
|
|
+ text: "税务综合受理",
|
|
|
}).then((result) => {
|
|
|
let material = Cesium.Material.fromType("Image");
|
|
|
material.uniforms.image = result;
|
|
@@ -1191,6 +1197,7 @@ export default {
|
|
|
.viewer_container {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
+
|
|
|
#cesiumContainer {
|
|
|
width: 100%;
|
|
|
height: 100%;
|