| | |
| | | |
| | | <div class="data-content"> |
| | | <div class="data-panel"> |
| | | |
| | | <div class="panel-title"> |
| | | <div class="icon"> |
| | | <img src="@/assets/icons/arrow.png" alt=""> |
| | | </div> |
| | | <div class="title"> |
| | | 整体工单数 |
| | | </div> |
| | | </div> |
| | | <div class="panel-container"> |
| | | <div class="panel-item"> |
| | | <data-hola :holaTitle="`工单总数`" :centerValue="1111" :holaColor="`#4ea8ff`"></data-hola> |
| | | </div> |
| | | <div class="panel-item"> |
| | | <data-hola :holaTitle="`已处理工单数`" :centerValue="1111" :holaColor="`#4ea8ff`"></data-hola> |
| | | </div> |
| | | <div class="panel-item"> |
| | | <data-hola :holaTitle="`未处理工单数`" :centerValue="1111" :holaColor="`#4ea8ff`"></data-hola> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="data-panel"> |
| | | <div class="panel-title"> |
| | |
| | | <script> |
| | | import * as echarts from 'echarts'; |
| | | import WrapperTitle from '../wrapper-title/index'; |
| | | import DataHola from './components/data-hola'; |
| | | let chart = null; |
| | | export default { |
| | | name: 'ScreenData', |
| | | components: { |
| | | WrapperTitle |
| | | WrapperTitle, |
| | | DataHola |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | initEchart() { |
| | | const option = { |
| | | grid: { |
| | | top: '10%', |
| | | right: 0, |
| | | bottom: '15%', |
| | | }, |
| | | legend: { |
| | | right: 0, |
| | |
| | | <style lang="scss" scoped> |
| | | .data-container { |
| | | width: 100%; |
| | | height: 450px; |
| | | height: 470px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | |
| | | flex: 1; |
| | | background: rgba(67, 102, 155, 0.3); |
| | | border: 1px solid rgba(47, 91, 157, 0.8); |
| | | padding: 20px; |
| | | padding: 10px; |
| | | box-sizing: border-box; |
| | | } |
| | | } |
| | | |
| | | .echart-container { |
| | | width: 100%; |
| | | height: 300px; |
| | | height: 260px; |
| | | |
| | | #barChart { |
| | | width: 100%; |
| | |
| | | color: #b9b9b9; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .icon { |
| | | width: 20px; |
| | | margin-right: 5px; |
| | | |
| | | img { |
| | | width: 100%; |
| | | display: block; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .panel-container { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: space-around; |
| | | |
| | | .panel-item { |
| | | width: 100px; |
| | | height: 100px; |
| | | } |
| | | } |
| | | </style> |