|
@@ -950,42 +950,6 @@ export default {
|
|
// this.refreshBenchStatus(); // 更新台架各状态总台数
|
|
// this.refreshBenchStatus(); // 更新台架各状态总台数
|
|
// }, 1000);
|
|
// }, 1000);
|
|
});
|
|
});
|
|
-
|
|
|
|
-
|
|
|
|
- // 调用定时器方法,返回定时器id,用于按条件清空
|
|
|
|
- that.timerId = that.myInterval((count) => {
|
|
|
|
- this.$store.dispatch("benchList/fetchBenchList").then(() => {
|
|
|
|
- // this.refreshBenchStatus();
|
|
|
|
- // if (!this.waterdotrefresh) {
|
|
|
|
- // this.waterdotrefresh = true;
|
|
|
|
- // window.getsqlData(window.sdkInstance, window.uwbInstance,true)
|
|
|
|
- // }
|
|
|
|
- // setTimeout(() => { // 请求异步原因,强制2秒后执行
|
|
|
|
- // console.log("各状态台架数量刷新时间:", Date.now());
|
|
|
|
- // this.refreshBenchStatus(); // 更新台架各状态总台数
|
|
|
|
- // window.getsqlDataRealTime();
|
|
|
|
- // }, 1000);
|
|
|
|
-
|
|
|
|
- // 加载右侧台架照片
|
|
|
|
- this.getImageName();
|
|
|
|
- // 获取奥迪-各台架详情
|
|
|
|
- this.benchList.forEach( (item, index) => {
|
|
|
|
- this.$store.dispatch("benchList/getBenchDetail", item.id).then(() => {
|
|
|
|
- // 获取全部台架信息后
|
|
|
|
- if (this.benchList.length - 1 == index) {
|
|
|
|
- // 更新台架各状态总台数
|
|
|
|
- this.refreshBenchStatus();
|
|
|
|
- // 更新水滴、台架模型
|
|
|
|
- window.getsqlDataRealTime();
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
-
|
|
|
|
- if (count > 30000) {
|
|
|
|
- that.clearMyInterval(that.timerId);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }, 10000);
|
|
|
|
},
|
|
},
|
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
@@ -1002,6 +966,7 @@ export default {
|
|
window.renderHeight = height * ratio;
|
|
window.renderHeight = height * ratio;
|
|
sessionStorage.setItem("3dMode", 0);
|
|
sessionStorage.setItem("3dMode", 0);
|
|
uwbMain("player", width * ratio, height * ratio, "floorplan");
|
|
uwbMain("player", width * ratio, height * ratio, "floorplan");
|
|
|
|
+
|
|
// window.sdkInstance.sceneRenderer.updateScreenSize(width * ratio, height * ratio);
|
|
// window.sdkInstance.sceneRenderer.updateScreenSize(width * ratio, height * ratio);
|
|
// setTimeout(() => {
|
|
// setTimeout(() => {
|
|
// var element = document.getElementById("house-player");
|
|
// var element = document.getElementById("house-player");
|
|
@@ -1035,14 +1000,40 @@ export default {
|
|
}
|
|
}
|
|
}, 3000);
|
|
}, 3000);
|
|
|
|
|
|
- // that.timerId = that.myInterval((count) => {
|
|
|
|
- // this.$store.dispatch("benchList/fetchBenchList");
|
|
|
|
- // // window.getsqlDataRealTime(window.sdkInstance, window.uwbInstance,true);
|
|
|
|
- // this.refreshBenchStatus();
|
|
|
|
- // if (count > 30000) {
|
|
|
|
- // that.clearMyInterval(that.timerId);
|
|
|
|
- // }
|
|
|
|
- // }, 10000);
|
|
|
|
|
|
+ // 调用定时器方法,返回定时器id,用于按条件清空
|
|
|
|
+ that.timerId = that.myInterval((count) => {
|
|
|
|
+ this.$store.dispatch("benchList/fetchBenchList").then(() => {
|
|
|
|
+ // this.refreshBenchStatus();
|
|
|
|
+ // if (!this.waterdotrefresh) {
|
|
|
|
+ // this.waterdotrefresh = true;
|
|
|
|
+ // window.getsqlData(window.sdkInstance, window.uwbInstance,true)
|
|
|
|
+ // }
|
|
|
|
+ // setTimeout(() => { // 请求异步原因,强制2秒后执行
|
|
|
|
+ // console.log("各状态台架数量刷新时间:", Date.now());
|
|
|
|
+ // this.refreshBenchStatus(); // 更新台架各状态总台数
|
|
|
|
+ // window.getsqlDataRealTime();
|
|
|
|
+ // }, 1000);
|
|
|
|
+
|
|
|
|
+ // 加载右侧台架照片
|
|
|
|
+ this.getImageName();
|
|
|
|
+ // 获取奥迪-各台架详情
|
|
|
|
+ this.benchList.forEach( (item, index) => {
|
|
|
|
+ this.$store.dispatch("benchList/getBenchDetail", item.id).then(() => {
|
|
|
|
+ // 获取全部台架信息后
|
|
|
|
+ if (this.benchList.length - 1 == index) {
|
|
|
|
+ // 更新台架各状态总台数
|
|
|
|
+ this.refreshBenchStatus();
|
|
|
|
+ // 更新水滴、台架模型
|
|
|
|
+ window.getsqlDataRealTime();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ if (count > 30000) {
|
|
|
|
+ that.clearMyInterval(that.timerId);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }, 10000);
|
|
|
|
|
|
bus.on("newLog", (param) => {
|
|
bus.on("newLog", (param) => {
|
|
if (param.action) {
|
|
if (param.action) {
|