|
@@ -950,42 +950,6 @@ export default {
|
|
|
// this.refreshBenchStatus(); // 更新台架各状态总台数
|
|
|
// }, 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() {
|
|
@@ -1035,14 +999,41 @@ export default {
|
|
|
}
|
|
|
}, 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) => {
|
|
|
if (param.action) {
|