Browse Source

大屏-当天时间 / 3D-gif替换

master
xuhuajiao 3 years ago
parent
commit
6985bb48d5
  1. BIN
      public/webA/logok.gif
  2. BIN
      public/webB/logok.gif
  3. BIN
      public/webC/logok.gif
  4. BIN
      public/webTotal/logok.gif
  5. 21
      src/views/environmentalScreen/index.vue

BIN
public/webA/logok.gif

Before

Width: 436  |  Height: 140  |  Size: 206 KiB

After

Width: 1024  |  Height: 1024  |  Size: 1.3 MiB

BIN
public/webB/logok.gif

Before

Width: 436  |  Height: 140  |  Size: 206 KiB

After

Width: 1024  |  Height: 1024  |  Size: 1.3 MiB

BIN
public/webC/logok.gif

Before

Width: 436  |  Height: 140  |  Size: 206 KiB

After

Width: 1024  |  Height: 1024  |  Size: 1.3 MiB

BIN
public/webTotal/logok.gif

Before

Width: 436  |  Height: 140  |  Size: 206 KiB

After

Width: 1024  |  Height: 1024  |  Size: 1.3 MiB

21
src/views/environmentalScreen/index.vue

@ -1,6 +1,7 @@
<template> <template>
<div class="env-container"> <div class="env-container">
<div class="env-top-title" /> <div class="env-top-title" />
<div class="current-date">{{ nowDate }}</div>
<div class="env-main"> <div class="env-main">
<div class="env-main-left"> <div class="env-main-left">
<div class="env-item container-wrap"> <div class="env-item container-wrap">
@ -217,6 +218,7 @@
</template> </template>
<script> <script>
import { getCurrentTime } from '@/utils/index'
import LineChart from './module/lineChart' import LineChart from './module/lineChart'
import Video from '@/views/storeManage/warehouse3D/module/video' import Video from '@/views/storeManage/warehouse3D/module/video'
import data1 from './data1.json' import data1 from './data1.json'
@ -238,11 +240,18 @@ export default {
}, },
data() { data() {
return { return {
nowDate: '',
timer: null,
tableData: [], tableData: [],
lineChartData: lineChartData, lineChartData: lineChartData,
className: ['readRoomContainer', 'collateRoomContainer'] className: ['readRoomContainer', 'collateRoomContainer']
} }
}, },
created() {
this.timer = setInterval(() => {
this.nowDate = getCurrentTime()
}, 1000)
},
mounted() { mounted() {
this.tableData = data1.rows this.tableData = data1.rows
const _this = this const _this = this
@ -253,6 +262,11 @@ export default {
} }
window.addEventListener('message', this.handleMessageDevice) window.addEventListener('message', this.handleMessageDevice)
}, },
beforeDestroy() {
if (this.timer) {
clearInterval(this.timer)
}
},
methods: { methods: {
// data / iframe // data / iframe
deviceState(e) { deviceState(e) {
@ -333,6 +347,13 @@ export default {
background: url('~@/assets/images/largeScreen/top-title.png') no-repeat 0 -14px; background: url('~@/assets/images/largeScreen/top-title.png') no-repeat 0 -14px;
background-size: contain; background-size: contain;
} }
.current-date{
position: fixed;
top: 25px;
right: 150px;
font-size: 16px;
color: #3A99FD;
}
.env-main{ .env-main{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

Loading…
Cancel
Save