diff --git a/src/components/amount.vue b/src/components/amount.vue index b51b147..d955d18 100644 --- a/src/components/amount.vue +++ b/src/components/amount.vue @@ -16,7 +16,7 @@ export default defineComponent({ myCharts: {}, carOfInLists: [], carOfOutLists: [], - time: null + time: null, }; }, @@ -83,14 +83,14 @@ export default defineComponent({ setInterval(() => { // 获取数据 this.getMbpsByTime(); - }, 3000); + }, 1800000); // 绘制图表 this.getOptions(); }, unmounted() { - clearInterval(this.time) - this.time = null + clearInterval(this.time); + this.time = null; }, methods: { @@ -122,9 +122,9 @@ export default defineComponent({ const { weightOfIns, weightOfOuts, timeArray } = this; // 基于准备好的dom,初始化echarts实例 - let throughput = document.getElementById('throughput') - throughput.removeAttribute('_echarts_instance_') - let myChart1 = echarts.init(throughput) + let throughput = document.getElementById("throughput"); + throughput.removeAttribute("_echarts_instance_"); + let myChart1 = echarts.init(throughput); myChart1.setOption({ tooltip: { diff --git a/src/components/curve.vue b/src/components/curve.vue index 285acee..963f538 100644 --- a/src/components/curve.vue +++ b/src/components/curve.vue @@ -95,7 +95,7 @@ export default defineComponent({ setInterval(() => { // 获取数据 this.getMbpsByTime(this.currentIndex); - }, 4000); + }, 1200000); // 绘制图表 this.getOptions(); }, diff --git a/src/components/heat.vue b/src/components/heat.vue index 67c832d..4c874af 100644 --- a/src/components/heat.vue +++ b/src/components/heat.vue @@ -1,6 +1,11 @@ diff --git a/src/components/humidity.vue b/src/components/humidity.vue index c21fe10..e654b41 100644 --- a/src/components/humidity.vue +++ b/src/components/humidity.vue @@ -64,7 +64,7 @@ export default defineComponent({ setInterval(() => { // 获取数据 this.getTeamAndHumidity(); - }, 4500); + }, 600000); // 绘制图表 this.getOptions(); }, diff --git a/src/components/temperature.vue b/src/components/temperature.vue index e1ef355..5207e2b 100644 --- a/src/components/temperature.vue +++ b/src/components/temperature.vue @@ -64,7 +64,7 @@ export default defineComponent({ setInterval(() => { // 获取数据 this.getTeamAndHumidity(); - }, 3500); + }, 600000); // 绘制图表 this.getOptions(); }, diff --git a/src/components/top-bar.vue b/src/components/top-bar.vue index b6ff5ae..d80c51f 100644 --- a/src/components/top-bar.vue +++ b/src/components/top-bar.vue @@ -68,7 +68,7 @@ export default defineComponent({ // 获取数据 this.getTeamAndHumidity(); this.getFireOrFlood(); - }, 3000); + }, 600000); }, methods: { diff --git a/src/components/totalCargo.vue b/src/components/totalCargo.vue index a098755..0001aa6 100644 --- a/src/components/totalCargo.vue +++ b/src/components/totalCargo.vue @@ -14,8 +14,6 @@ export default defineComponent({ data() { return { myCharts: {}, - carOfInLists: [], - carOfOutLists: [], }; }, diff --git a/src/components/usableArea.vue b/src/components/usableArea.vue index fe15fe4..e027eca 100644 --- a/src/components/usableArea.vue +++ b/src/components/usableArea.vue @@ -14,8 +14,6 @@ export default defineComponent({ data() { return { myCharts: {}, - carOfInLists: [], - carOfOutLists: [], }; }, diff --git a/src/router/index.ts b/src/router/index.ts index fef48a8..21ba9c8 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -13,7 +13,6 @@ const router = createRouter({ { path: '/jht', component: () => import('views/jht.vue') }, { path: '/xh', component: () => import('views/xh.vue') }, { path: '/yj', component: () => import('views/repo-yj.vue') }, - { path: '/vs', component: () => import('views/videoScreen.vue') }, ], strict: true }); diff --git a/src/views/jht.vue b/src/views/jht.vue index c2fc5b5..0645983 100644 --- a/src/views/jht.vue +++ b/src/views/jht.vue @@ -36,13 +36,13 @@ - +
-
{{show}}摄像头监控视频
+
摄像头监控视频
@@ -67,7 +67,7 @@
摄像头监控视频
- +
diff --git a/src/views/repo-yj.vue b/src/views/repo-yj.vue index 8427051..7a6843e 100644 --- a/src/views/repo-yj.vue +++ b/src/views/repo-yj.vue @@ -93,7 +93,7 @@ export default defineComponent({ return { show: false, showScreen: false, - showIndex: 3, + showIndex: 2, iframeSrc: "", }; }, @@ -107,7 +107,7 @@ export default defineComponent({ async getWarehouses() { try { this.show = true; - const param = { parkId: 2 }; + const param = { parkId: 1 }; const data = await getWarehouses(param); if (data && data.warehouseInfo && data.warehouseInfo.length) { let item = data.warehouseInfo.find( diff --git a/src/views/xh.vue b/src/views/xh.vue index 609f8c7..da29ac7 100644 --- a/src/views/xh.vue +++ b/src/views/xh.vue @@ -36,13 +36,13 @@ - +
-
{{show}}摄像头监控视频
+
摄像头监控视频
@@ -67,7 +67,7 @@
摄像头监控视频
- +