Browse Source

上线

master
lucky 4 years ago
parent
commit
6383a3c77f
  1. BIN
      src/assets/vedio-img.png
  2. 2
      src/components/amount.vue
  3. 2
      src/components/curve.vue
  4. 73
      src/components/dashboardOne.vue
  5. 74
      src/components/dashboardTow.vue
  6. 16
      src/components/heat.vue
  7. 2
      src/components/humidity.vue
  8. 2
      src/components/temperature.vue
  9. 2
      src/components/throughput.vue
  10. 2
      src/components/toolbar.vue
  11. 3
      src/components/vedioScreen.vue

BIN
src/assets/vedio-img.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

2
src/components/amount.vue

@ -73,7 +73,7 @@ export default defineComponent({
this.time = setInterval(() => {
//
this.getMbpsByTime()
}, 200000)
}, 1800000)
//
this.getOptions()
},

2
src/components/curve.vue

@ -86,7 +86,7 @@ export default defineComponent({
this.time = setInterval(() => {
//
this.getMbpsByTime(this.currentIndex)
}, 200000)
}, 1200000)
//
this.getOptions()
},

73
src/components/dashboardOne.vue

@ -7,95 +7,22 @@
<script lang="ts">
import { defineComponent } from 'vue'
import * as echarts from 'echarts'
import { getTeamAndHumidity } from 'api/api'
export default defineComponent({
name: 'saturate1',
data() {
return {
myCharts: {},
temps: [],
time: null,
}
},
computed: {
//
tempArray() {
const { temps } = this
let arr = []
if (temps && temps.length) {
temps.forEach((item) => {
arr.push(item.temp)
})
} else {
// arr = [45, 55, 56, 73, 76, 95, 98]
}
return arr
},
//
timeArray() {
const { temps } = this
let arr = []
if (temps && temps.length) {
temps.forEach((item) => {
arr.push(item.time)
})
} else {
// arr = ['10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00']
}
return arr
},
},
watch: {
temps: {
deep: true,
handler(value) {
if (value) {
this.getOptions()
}
},
},
},
mounted() {
this.getTeamAndHumidity()
this.time = setInterval(() => {
//
this.getTeamAndHumidity()
}, 60000)
//
this.getOptions()
},
unmounted() {
clearInterval(this.time)
this.time = null
},
methods: {
/** 湿
* @param {number} endTime 结束时间
* @param {number} startTime 开始时间
* @param {number} warehouseId 仓库id
*/
async getTeamAndHumidity() {
try {
const { parkId, warehouseId } = this.$route.query
const param = { parkId: parkId || 2, warehouseId: warehouseId || 7 }
const data = await getTeamAndHumidity(param)
this.temps = data.temps
} catch (error) {
console.log('error: ', error)
}
},
getOptions() {
//
const { tempArray, timeArray } = this
// domecharts
let saturate1 = document.getElementById('saturate1')
saturate1.removeAttribute('_echarts_instance_')

74
src/components/dashboardTow.vue

@ -7,95 +7,23 @@
<script lang="ts">
import { defineComponent } from 'vue'
import * as echarts from 'echarts'
import { getTeamAndHumidity } from 'api/api'
export default defineComponent({
name: 'saturate2',
data() {
return {
myCharts: {},
temps: [],
time: null,
}
},
computed: {
//
tempArray() {
const { temps } = this
let arr = []
if (temps && temps.length) {
temps.forEach((item) => {
arr.push(item.temp)
})
} else {
// arr = [45, 55, 56, 73, 76, 95, 98]
}
return arr
},
//
timeArray() {
const { temps } = this
let arr = []
if (temps && temps.length) {
temps.forEach((item) => {
arr.push(item.time)
})
} else {
// arr = ['10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00']
}
return arr
},
},
watch: {
temps: {
deep: true,
handler(value) {
if (value) {
this.getOptions()
}
},
},
},
mounted() {
this.getTeamAndHumidity()
this.time = setInterval(() => {
//
this.getTeamAndHumidity()
}, 90000)
//
this.getOptions()
},
unmounted() {
clearInterval(this.time)
this.time = null
},
methods: {
/** 湿
* @param {number} endTime 结束时间
* @param {number} startTime 开始时间
* @param {number} warehouseId 仓库id
*/
async getTeamAndHumidity() {
try {
const { parkId, warehouseId } = this.$route.query
const param = { parkId: parkId || 2, warehouseId: warehouseId || 7 }
const data = await getTeamAndHumidity(param)
this.temps = data.temps
} catch (error) {
console.log('error: ', error)
}
},
//
getOptions() {
//
const { tempArray, timeArray } = this
// domecharts
let saturate2 = document.getElementById('saturate2')
saturate2.removeAttribute('_echarts_instance_')

16
src/components/heat.vue

@ -26,22 +26,6 @@ export default defineComponent({
}
},
// watch: {
// $route: {
// handler: function (val, oldVal) {
// console.log('val, oldVal: ', val, oldVal)
// this.$nextTick(function () {
// //
// if (val.path) {
// this.getHeatImaging(this.currentIndex)
// }
// })
// },
// //
// deep: true,
// },
// },
mounted() {
//
this.getHeatImaging()

2
src/components/humidity.vue

@ -68,7 +68,7 @@ export default defineComponent({
this.time = setInterval(() => {
//
this.getTeamAndHumidity()
}, 150000)
}, 600000)
//
this.getOptions()
},

2
src/components/temperature.vue

@ -68,7 +68,7 @@ export default defineComponent({
this.time = setInterval(() => {
//
this.getTeamAndHumidity()
}, 100000)
}, 600000)
//
this.getOptions()
},

2
src/components/throughput.vue

@ -27,7 +27,7 @@ export default defineComponent({
this.time = setInterval(() => {
//
this.getTeamAndHumidity()
}, 3500)
}, 1200000)
//
this.getOptions()
},

2
src/components/toolbar.vue

@ -70,7 +70,7 @@ export default defineComponent({
//
this.getTeamAndHumidity()
this.getFireOrFlood()
}, 3000)
}, 600000)
},
unmounted() {

3
src/components/vedioScreen.vue

@ -3,11 +3,8 @@
class="flex w-screen h-screen min-h-0 bg-black"
style="position:absolute;top:0;left:0;z-index:99999"
>
<!-- <img class="frame1" src="../assets/vedio-img.png" /> -->
<div class="frame1">
<iframe :src="iframeSrc" frameborder="0" height="100%" scrolling="no" width="100%"></iframe>
<!-- 生产 https://www.tall.wiki/kangfu-v1/?key=E83239936 -->
<!-- 测试 https://www.tall.wiki/kangfu-v1/?key=230659446 -->
<div class="screen">
<img @click="$emit('closeScreen')" class="frame2" src="../assets/closeScreen.png" />
</div>

Loading…
Cancel
Save