Commit 59d4d9d60b6e89235eaef251a1e4150d3aa9b5d6
1 parent
cdf2f6c3
设备
Showing
2 changed files
with
84 additions
and
2 deletions
src/components/VBerth.vue
| ... | ... | @@ -10,8 +10,8 @@ |
| 10 | 10 | <pie-echart :chart-data="pieChartData"></pie-echart> |
| 11 | 11 | </li> |
| 12 | 12 | <li class="berth-inf"> |
| 13 | - <p><span class="free-berth">11834</span><span>空余</span></p> | |
| 14 | - <p><span class="buss-berth">4496</span><span>占有</span></p> | |
| 13 | + <p><span class="free-berth">{{11834|filterTotal}}</span><span>空余</span></p> | |
| 14 | + <p><span class="buss-berth">{{4496|filterTotal}}</span><span>占有</span></p> | |
| 15 | 15 | </li> |
| 16 | 16 | </ul> |
| 17 | 17 | </div> | ... | ... |
src/components/VEquipment.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <div class="theme-wrap"> | |
| 3 | + <card-title> <span>设备监控消息</span></card-title> | |
| 4 | + <div class="theme-body"> | |
| 5 | + <account-num> | |
| 6 | + <span>总计</span> | |
| 7 | + </account-num> | |
| 8 | + <ul class="income-echart"> | |
| 9 | + <li> | |
| 10 | + <pie-echart :chart-data="pieChartData"></pie-echart> | |
| 11 | + </li> | |
| 12 | + <li class="berth-inf"> | |
| 13 | + <p><span class="free-berth">11834</span><span>空余</span></p> | |
| 14 | + <p><span class="buss-berth">4496</span><span>占有</span></p> | |
| 15 | + </li> | |
| 16 | + </ul> | |
| 17 | + </div> | |
| 18 | + </div> | |
| 19 | +</template> | |
| 20 | + | |
| 21 | +<script> | |
| 22 | +import CardTitle from './base/CardTitle' | |
| 23 | +import AccountNum from './base/AccountNum' | |
| 24 | +import PieEchart from './base/PieEchart' | |
| 25 | +export default { | |
| 26 | + name: 'VEquipment', | |
| 27 | + components: { | |
| 28 | + CardTitle, | |
| 29 | + AccountNum, | |
| 30 | + PieEchart | |
| 31 | + }, | |
| 32 | + data() { | |
| 33 | + return { | |
| 34 | + pieChartData: { | |
| 35 | + yData: [1,1], | |
| 36 | + legendData: ['空余','占有'] | |
| 37 | + }, | |
| 38 | + } | |
| 39 | + }, | |
| 40 | + mounted(){ | |
| 41 | + //this.drawBar(); | |
| 42 | + }, | |
| 43 | + methods: { | |
| 44 | + | |
| 45 | + } | |
| 46 | +} | |
| 47 | +</script> | |
| 48 | + | |
| 49 | +<style scoped lang="scss"> | |
| 50 | + .theme-wrap { | |
| 51 | + height: 100%; | |
| 52 | + } | |
| 53 | + .theme-body { | |
| 54 | + height: calc(100% - 30px); | |
| 55 | + margin-left: 20px; | |
| 56 | + } | |
| 57 | + .income-echart{ | |
| 58 | + height: 70%; | |
| 59 | + display: flex; | |
| 60 | + >li{ | |
| 61 | + flex: 1; | |
| 62 | + } | |
| 63 | + .berth-inf{ | |
| 64 | + p{ | |
| 65 | + height: 50%; | |
| 66 | + display: flex; | |
| 67 | + align-items: center; | |
| 68 | + justify-content: space-between; | |
| 69 | + padding-right: 20px; | |
| 70 | + } | |
| 71 | + .free-berth{ | |
| 72 | + @include fontStyle(24px); | |
| 73 | + background-image: $fontBlue; | |
| 74 | + } | |
| 75 | + .buss-berth{ | |
| 76 | + @include fontStyle(24px); | |
| 77 | + background-image: $fontOrange; | |
| 78 | + } | |
| 79 | + } | |
| 80 | + } | |
| 81 | + | |
| 82 | +</style> | ... | ... |