diff --git a/src/views/page/largeScreen.vue b/src/views/page/largeScreen.vue index cefd277..2912376 100644 --- a/src/views/page/largeScreen.vue +++ b/src/views/page/largeScreen.vue @@ -38,7 +38,7 @@
-
+
@@ -104,6 +104,26 @@ >
+
+
+
温室环境数据
+
+ +
+ +
+ {{ el.name }} + {{ el.num }} +
+
+
+
+
+
@@ -455,7 +475,7 @@ export default { defaultOption() { return { step: 0.3, // 数值越大速度滚动越快 - limitMoveNum: 8, // 开始无缝滚动的数据量 this.dataList.length + limitMoveNum: this.limitUserId != 5 ? 8 : 18, // 开始无缝滚动的数据量 this.dataList.length hoverStop: true, // 是否开启鼠标悬停stop direction: 1, // 0向下 1向上 2向左 3向右 openWatch: true, // 开启数据实时监控刷新dom @@ -933,8 +953,11 @@ export default { ], }; }, - mounted() { + beforeMount(){ this.login(); + }, + mounted() { + // this.login(); this.getTime(); @@ -989,11 +1012,11 @@ export default { this.getWeatherData(2023112911050004); }else if (limitUserId == 5) { // 石门 - this.get_weather_echart_data(2023042214250070); - this.get_thisWeekTemperature_echart_data(2023042214250070); + // this.get_weather_echart_data(2023042214250070); + // this.get_thisWeekTemperature_echart_data(2023042214250070); this.get_environmentData(2023042214250070); this.get_readControl_getState(2023042214250070); - this.getWeatherData(2023042214250070); + // this.getWeatherData(2023042214250070); } } }); @@ -1250,7 +1273,6 @@ export default { // id == 1 丽水; // id == 5 石门; this.limitUserId = (res.data.data.filter(el=>el.id == 2 || el.id == 1 || el.id == 5))[0].id; - if (this.limitUserId == 1) { this.drag_boxHandler(); this.dataInit(userId, this.limitUserId); @@ -1549,11 +1571,29 @@ export default {