1
wankeda
2025-03-22 867aba2636e34a1050b1c4c84bbe78cc9c39b553
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
 
<template>
  <div id="index" ref="appRef">
    <div class="bg">
      <div class="myhead"></div>
      <dv-loading v-if="loading">Loading...</dv-loading>
      <div v-else class="host-body">
        <div class="d-flex jc-center" style="margin-top: 17px">
          <div class="d-flex jc-center">
            <div class="dv-dec-8"></div>
            <div class="title">
              <span
                class="title-text"
                style="
                  font-size: 55px;
                  color: #ffffff;
                  width: 700px;
                  height: 100px;
                  margin-top: 15px;
                "
                >任 务 状 态 显 示</span
              >
            </div>
          </div>
        </div>
        <div class="react-right" style="margin-left: 1510px">
          <span class="text" style="width: 400px"
            >{{ dateYear }} {{ dateWeek }} {{ dateDay }}</span
          >
        </div>
 
          <div class="bottom-box">
            <!-- 堆垛机运行位置 -->
            <bottomView1 />
          </div>
 
      </div>
    </div>
  </div>
</template>
 
<script>
import drawMixin from "../utils/drawMixin";
import { formatTime } from "../utils/index.js";
import bottomView1 from "./bottomView1.vue";
// import{GetDateForLED} from "@/api/http.js"
 
export default {
  mixins: [drawMixin],
  data() {
    return {
      timing: null,
      loading: true,
      dateDay: null,
      dateYear: null,
      dateWeek: null,
      weekday: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
    };
  },
  components: {
    bottomView1,
  },
  mounted() {
    this.timeFn();
    this.cancelLoading();
  },
  beforeDestroy() {
    clearInterval(this.timing);
  },
  methods: {
    //刷新时间
    timeFn() {
      this.timing = setInterval(() => {
        this.dateDay = formatTime(new Date(), "HH: mm: ss");
        this.dateYear = formatTime(new Date(), "yyyy-MM-dd");
        this.dateWeek = this.weekday[new Date().getDay()];
      }, 1000);
    },
    cancelLoading() {
      setTimeout(() => {
        this.loading = false;
      }, 1000);
    },
  },
};
</script>
 
<style lang="scss">
@import "../assets/scss/index.scss";
</style>
 
<style lang="css" scoped>
.myhead {
  position: absolute;
  width: 100%;
  height: 100px;
  /* background-color: red; */
  top: 0;
  left: 0;
  z-index: 999;
  background-image: url("../assets/head_bg1.png");
  background-size: cover;
  background-position: center center;
}
</style>