LeftChart3.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <div class="left-chart-3">
  3. <div class="lc3-header">王五收费站</div>
  4. <div class="lc3-details">设备运行总数<span>245</span></div>
  5. <dv-capsule-chart class="lc3-chart" :config="config" />
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. name: 'LeftChart3',
  11. data () {
  12. return {
  13. config: {
  14. data: [
  15. {
  16. name: '收费系统',
  17. value: 78
  18. },
  19. {
  20. name: '通信系统',
  21. value: 54
  22. },
  23. {
  24. name: '监控系统',
  25. value: 123
  26. },
  27. {
  28. name: '供配电系统',
  29. value: 167
  30. },
  31. {
  32. name: '其他',
  33. value: 77
  34. }
  35. ],
  36. colors: ['#00baff', '#3de7c9', '#fff', '#ffc530', '#469f4b'],
  37. unit: '件'
  38. }
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="less">
  44. .left-chart-3 {
  45. width: 100%;
  46. height: 33%;
  47. display: flex;
  48. flex-direction: column;
  49. .lc3-header {
  50. height: 20px;
  51. line-height: 20px;
  52. font-size: 16px;
  53. text-indent: 20px;
  54. margin-top: 10px;
  55. }
  56. .lc3-details {
  57. height: 40px;
  58. font-size: 16px;
  59. display: flex;
  60. align-items: center;
  61. text-indent: 20px;
  62. span {
  63. color: #096dd9;
  64. font-weight: bold;
  65. font-size: 35px;
  66. margin-left: 20px;
  67. }
  68. }
  69. .lc3-chart {
  70. flex: 1;
  71. }
  72. }
  73. </style>