Admin
5 天以前 bd6818fc9d40f343547bafca0743658f3c0379dc
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
 
<template>
  <div id="big-data-container" class="big-data-container">
    <div class="head">
      <h1>大屏数据统计分析显示</h1>
    </div>
    <div class="data-container">
      <div class="data-left">
        <div class="data-left-item">
          <div class="title">货位使用率</div>
          <div id="chart-vleft-1" style="height: calc(100% - 30px)"></div>
          <div class="data-foot-line"></div>
        </div>
        <!-- <div class="data-left-item">
          <div class="title">本月商品销量</div>
          <div id="chart-vleft-3" style="height: calc(100% - 30px)"></div>
 
          <div class="data-foot-line"></div>
        </div> -->
        <div class="data-left-item">
          <div class="title">当日压装统计</div>
          <div id="chart-vleft-2" style="height: calc(100% - 30px)"></div>
          <div class="data-foot-line"></div>
        </div>
      </div>
      <div class="data-center">
        <!-- <div class="title">中间位置</div> -->
        <div class="center-top-num">
          <div class="item">
            <div class="text">总货位</div>
            <div class="num">800</div>
          </div>
          <div class="item">
            <div class="text">可用货位</div>
            <div class="num">58,000,000</div>
          </div>
          <div class="item">
            <div class="text">异常货位</div>
            <div class="num">15,000</div>
          </div>
          <div class="data-foot-line"></div>
        </div>
        <div class="center-top" style="height: 260px; padding-top: 25px; overflow: hidden">
          <div class="title">用户活跃信息-1</div>
          <!-- <div id="chart-vgauge-1" style="height: 400px"></div> -->
          <iview-circle :size="200" style="padding: 8px 0;"></iview-circle>
          <div class="data-foot-line"></div>
        </div>
        <div class="title">订单销售统计</div>
        <div id="chart-vcenter" style="height:400px;" class="chart-vcenter"></div>
      </div>
      <div class="data-right">
        <div class="data-right-item">
          <div class="title">销售情况走势</div>
          <div id="chart-vright-1" style="height: calc(100% - 30px)"></div>
          <div class="data-foot-line"></div>
        </div>
        <div class="data-right-item" style="height: 220px; padding-top: 25px">
          <div class="title">用户活跃信息</div>
          <iview-circle></iview-circle>
          <div id="chart-vgauge-2" style="height: 300px"></div>
          <div class="data-foot-line"></div>
        </div>
        <div class="data-right-item right-3">
          <div class="title">在库轴承统计</div>
          <div id="chart-vright-3" class="right-item">
            <el-table :data="tableInfo" style="width: 100%;" class="styleTable">
              <el-table-column prop="name" label="车型">
              </el-table-column>
              <el-table-column prop="value" label="轴承型号">
              </el-table-column>
              <el-table-column prop="value" label="数量统计">
              </el-table-column>
            </el-table>
          </div>
          <div class="boxfoot"></div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
var echarts = require('echarts');
let $chartLeft1,
  $chartLeft2,
  $chartLeft3,
  $chartCenter,
  $chartRight1,
  $chartGauge1,
  $chartGauge2;
import {
  chartLeft1,
  chartLeft2,
  chartLeft3,
  chartRight1,
  gauge,
} from './bigdata/chart-options';
// import IviewCircle from "./bigdata/IviewCircle";
import './bigdata/layout.less';
export default {
  components: {
    // "iview-circle": IviewCircle
  },
  data() {
    return {
      tableInfo: [],
    };
  },
  created() {
    console.log('chart');
  },
  mounted() {
    if ($chartLeft1) {
      $chartLeft1.dispose();
      $chartLeft2.dispose();
      $chartLeft3.dispose();
      $chartCenter.dispose();
      $chartRight1.dispose();
      $chartGauge1.dispose();
      $chartGauge2.dispose();
    }
    $chartLeft1 = echarts.init(document.getElementById('chart-vleft-1'));
    $chartLeft1.setOption(chartLeft1, true);
 
    $chartLeft2 = echarts.init(document.getElementById('chart-vleft-2'));
    $chartLeft2.setOption(chartLeft2, true);
 
    // $chartLeft3 = echarts.init(document.getElementById('chart-vleft-3'));
    // $chartLeft3.setOption(chartLeft3, true);
 
    $chartCenter = echarts.init(document.getElementById('chart-vcenter'));
    $chartCenter.setOption(chartRight1, true);
 
    $chartRight1 = echarts.init(document.getElementById('chart-vright-1'));
    $chartRight1.setOption(chartRight1, true);
 
    $chartGauge1 = echarts.init(document.getElementById('chart-vgauge-1'));
    $chartGauge1.setOption(gauge, true);
 
    $chartGauge2 = echarts.init(document.getElementById('chart-vgauge-2'));
    $chartGauge2.setOption(gauge);
  },
  destroyed() {
    $chartLeft1 = null;
    $chartLeft2 = null;
    $chartLeft3 = null;
    $chartCenter = null;
    $chartRight1 = null;
    $chartGauge1 = null;
    $chartGauge2 = null;
  },
};
</script>
<style scoped>
/* .chart-center {
  display: flex;
  border: 1px solid #0000ff;
  height: 200px;
  flex-direction: column;
  margin-top: 20px;
}
.chart-center .item {
  text-align: center;
  border: 1px solid #00c1b3;
  flex: 1;
} */
.right-3 {
  display: flex;
  flex-direction: column;
  /* margin-top: 20px; */
}
 
.right-3 .right-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}
 
.right-3 .item {
  text-align: left;
  border-bottom: 1px solid #549069;
  flex: 1;
  display: flex;
  padding: 5px 10px;
  margin: 0 10px;
  font-size: 14px;
  line-height: 30px;
}
 
.right-3 .item:last-child {
  border-bottom: 0;
}
 
.right-3 .item > div {
  color: white;
}
 
.right-3 .top {
  width: 60px;
  position: relative;
}
 
.right-3 .top span {
  position: absolute;
  width: 20px;
  line-height: 20px;
  top: 5px;
  text-align: center;
  border-radius: 5px;
}
 
.right-3 .top-1 span {
  background: #e80d0d;
}
 
.right-3 .top-2 span {
  background: #00c935;
}
 
.right-3 .top-3 span {
  background: #0083f4;
}
 
.right-3 .pro-name {
  flex: 1;
}
 
.styleTable {
  background-color: transparent !important;
}
.styleTable ::v-deep .eltable th.el-table__cell,
::v-deep .el-table th,
::v-deep .el-table tr,
::v-deep .el-table .cell {
  background-color: transparent !important;
  color: rgb(171, 185, 182);
  font-size: 23px;
  line-height: 26px !important;
  padding: 0px;
  margin-top: -2px !important;
  text-align: left !important;
}
</style>