qinchulong
2024-10-12 7281004dc3854ed59e9164dcd27a59c8c2cf6667
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
106
107
108
109
110
111
<template>
    <div class="m-charts labelContent">
      <div class="chart_left">
        <div class="title">
            <el-icon class="icons" :size="24" color="#409EFF">
                <TrendCharts />
            </el-icon>
            出入库总览
        </div>
        <div :style="{ height: '62vh','padding-top':'1.5vh' }" id="line-0001">
        </div>
      </div>
      <div class="chart_center">
        <div class="title">
            <el-icon class="icons" :size="24" color="#409EFF">
                <Checked />
            </el-icon>
            任务进行中
        </div>
        <div style="height: 62vh;padding-top:5vh;width: 96%;margin: 0px 2%;">
          <el-table :data="tableData" style="height: 55vh;"  border>
            <el-table-column fixed prop="date" label="任务号" width="100" header-align="center"/>
            <el-table-column prop="date" label="托盘号" width="120" header-align="center"/>
            <el-table-column prop="date" label="任务类型" width="120" header-align="center"/>
            <el-table-column prop="date" label="任务状态" width="95" header-align="center"/>
          </el-table>
        </div>
      </div>
      <div class="chart_right">
        <div class="title">
            <el-icon class="icons" :size="24" color="#409EFF">
                <Briefcase />
            </el-icon>
            作业检测
        </div>
        <div style="height:29vh;padding-top:2vh" >
            <div id="radar-0001" style="height: 29vh;">
 
            </div>
            <div id="bar-0001" style="height: 31vh;padding-top: 1vh;">
 
            </div>
        </div>
      </div>
    </div>
  </template>
  <script>
  let echarts = require("echarts");
  import options from "./chartOptions";
  let $line;
  let $radar;
  let $bar;
  export default {
    mounted() {
      $line = echarts.init(document.getElementById("line-0001"));
      $line.setOption(this.options.line);
      $radar = echarts.init(document.getElementById("radar-0001"));
      $radar.setOption(this.options.radar);
      $bar = echarts.init(document.getElementById("bar-0001"));
      $bar.setOption(this.options.bar);
    },
    created() {
      this.heigth = document.documentElement.clientHeight - 190;
    },
    methods: {
    },
    data() {
      return {
        options: options,
      };
    },
  };
  </script>
  <style lang="less" scoped>
  .labelContent{
    padding-top: 3vh;
  }
  .m-charts {
    display: grid;
    grid-template-columns: 49% 30% 19%;
    justify-content: space-between;
  }
  .m-charts ::v-deep(.el-tabs__content) {
    height: calc(65vh - 15px);
  }
  .m-charts ::v-deep(.el-tab-pane) {
    height: 65vh;
  }
  .chart_left,.chart_center,.chart_right{
    position: relative;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0px 0px 10px 0px #ccc;
  }
  .title{
    width: 200px;
    height: 5vh;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    position: absolute;
    top: 0px;
    left: 15px;
  }
  .icons{
    margin-right: 5px;
  }
  </style>