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: {}, myCharts: {},
carOfInLists: [], carOfInLists: [],
carOfOutLists: [], carOfOutLists: [],
time: null time: null,
}; };
}, },
@ -83,14 +83,14 @@ export default defineComponent({
setInterval(() => { setInterval(() => {
// //
this.getMbpsByTime(); this.getMbpsByTime();
}, 3000); }, 1800000);
// //
this.getOptions(); this.getOptions();
}, },
unmounted() { unmounted() {
clearInterval(this.time) clearInterval(this.time);
this.time = null this.time = null;
}, },
methods: { methods: {
@ -122,9 +122,9 @@ export default defineComponent({
const { weightOfIns, weightOfOuts, timeArray } = this; const { weightOfIns, weightOfOuts, timeArray } = this;
// domecharts // domecharts
let throughput = document.getElementById('throughput') let throughput = document.getElementById("throughput");
throughput.removeAttribute('_echarts_instance_') throughput.removeAttribute("_echarts_instance_");
let myChart1 = echarts.init(throughput) let myChart1 = echarts.init(throughput);
myChart1.setOption({ myChart1.setOption({
tooltip: { tooltip: {

2
src/components/curve.vue

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

5
src/components/heat.vue

@ -1,6 +1,11 @@
<template> <template>
<div class="box-bg"> <div class="box-bg">
<img :src="src" :style="{ width: '426rem', height: 'auto',margin: '10rem 35rem' }" v-if="src" /> <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> </div>
</template> </template>

2
src/components/humidity.vue

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

2
src/components/temperature.vue

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

2
src/components/top-bar.vue

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

2
src/components/totalCargo.vue

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

2
src/components/usableArea.vue

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

1
src/router/index.ts

@ -13,7 +13,6 @@ const router = createRouter({
{ path: '/jht', component: () => import('views/jht.vue') }, { path: '/jht', component: () => import('views/jht.vue') },
{ path: '/xh', component: () => import('views/xh.vue') }, { path: '/xh', component: () => import('views/xh.vue') },
{ path: '/yj', component: () => import('views/repo-yj.vue') }, { path: '/yj', component: () => import('views/repo-yj.vue') },
{ path: '/vs', component: () => import('views/videoScreen.vue') },
], ],
strict: true strict: true
}); });

6
src/views/jht.vue

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

4
src/views/repo-yj.vue

@ -93,7 +93,7 @@ export default defineComponent({
return { return {
show: false, show: false,
showScreen: false, showScreen: false,
showIndex: 3, showIndex: 2,
iframeSrc: "", iframeSrc: "",
}; };
}, },
@ -107,7 +107,7 @@ export default defineComponent({
async getWarehouses() { async getWarehouses() {
try { try {
this.show = true; this.show = true;
const param = { parkId: 2 }; const param = { parkId: 1 };
const data = await getWarehouses(param); const data = await getWarehouses(param);
if (data && data.warehouseInfo && data.warehouseInfo.length) { if (data && data.warehouseInfo && data.warehouseInfo.length) {
let item = data.warehouseInfo.find( let item = data.warehouseInfo.find(

6
src/views/xh.vue

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

Loading…
Cancel
Save