Browse Source

上线

feature
lucky 4 years ago
parent
commit
45769f96a8
  1. 14
      src/components/amount.vue
  2. 2
      src/components/curve.vue
  3. 5
      src/components/heat.vue
  4. 2
      src/components/humidity.vue
  5. 2
      src/components/temperature.vue
  6. 2
      src/components/top-bar.vue
  7. 2
      src/components/totalCargo.vue
  8. 2
      src/components/usableArea.vue
  9. 1
      src/router/index.ts
  10. 6
      src/views/jht.vue
  11. 4
      src/views/repo-yj.vue
  12. 6
      src/views/xh.vue

14
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;
// domecharts
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: {

2
src/components/curve.vue

@ -95,7 +95,7 @@ export default defineComponent({
setInterval(() => {
//
this.getMbpsByTime(this.currentIndex);
}, 4000);
}, 1200000);
//
this.getOptions();
},

5
src/components/heat.vue

@ -1,6 +1,11 @@
<template>
<div class="box-bg">
<img :src="src" :style="{ width: '426rem', height: 'auto',margin: '10rem 35rem' }" v-if="src" />
<img
:style="{ width: '426rem', height: 'auto',margin: '10rem 35rem' }"
src="https://www.tall.wiki/gateway/logistics/uploads//file/2021-05-14/162097666558154.png"
v-else
/>
</div>
</template>

2
src/components/humidity.vue

@ -64,7 +64,7 @@ export default defineComponent({
setInterval(() => {
//
this.getTeamAndHumidity();
}, 4500);
}, 600000);
//
this.getOptions();
},

2
src/components/temperature.vue

@ -64,7 +64,7 @@ export default defineComponent({
setInterval(() => {
//
this.getTeamAndHumidity();
}, 3500);
}, 600000);
//
this.getOptions();
},

2
src/components/top-bar.vue

@ -68,7 +68,7 @@ export default defineComponent({
//
this.getTeamAndHumidity();
this.getFireOrFlood();
}, 3000);
}, 600000);
},
methods: {

2
src/components/totalCargo.vue

@ -14,8 +14,6 @@ export default defineComponent({
data() {
return {
myCharts: {},
carOfInLists: [],
carOfOutLists: [],
};
},

2
src/components/usableArea.vue

@ -14,8 +14,6 @@ export default defineComponent({
data() {
return {
myCharts: {},
carOfInLists: [],
carOfOutLists: [],
};
},

1
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
});

6
src/views/jht.vue

@ -36,13 +36,13 @@
</container>
<!-- 底部区域 -->
<footer-bar :showIndex="showIndex" @showMonitor="showMonitor"></footer-bar>
<footer-bar :showIndex="showIndex"></footer-bar>
<!-- 监控1 -->
<img @click="getWarehouses('show1')" class="monitor—btn" src="../assets/img/monitor.png" style />
<div class="vedio" v-show="show">
<div class="head">
<div class="camera">{{show}}摄像头监控视频</div>
<div class="camera">摄像头监控视频</div>
<img @click="show = false" class="close" src="../assets/img/close.png" />
</div>
<div class="monitor">
@ -67,7 +67,7 @@
<div class="vedio" v-show="show2">
<div class="head">
<div class="camera">摄像头监控视频</div>
<img @click="show = false" class="close" src="../assets/img/close.png" />
<img @click="show2 = false" class="close" src="../assets/img/close.png" />
</div>
<div class="monitor">
<div class="monitor1">

4
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(

6
src/views/xh.vue

@ -36,13 +36,13 @@
</container>
<!-- 底部区域 -->
<footer-bar :showIndex="showIndex" @showMonitor="showMonitor"></footer-bar>
<footer-bar :showIndex="showIndex"></footer-bar>
<!-- 监控1 -->
<img @click="getWarehouses('show1')" class="monitor—btn" src="../assets/img/monitor.png" style />
<div class="vedio" v-show="show">
<div class="head">
<div class="camera">{{show}}摄像头监控视频</div>
<div class="camera">摄像头监控视频</div>
<img @click="show = false" class="close" src="../assets/img/close.png" />
</div>
<div class="monitor">
@ -67,7 +67,7 @@
<div class="vedio" v-show="show2">
<div class="head">
<div class="camera">摄像头监控视频</div>
<img @click="show = false" class="close" src="../assets/img/close.png" />
<img @click="show2 = false" class="close" src="../assets/img/close.png" />
</div>
<div class="monitor">
<div class="monitor1">

Loading…
Cancel
Save