coldPortrait.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <script>
  2. import CoreData from "@/components/common/coreData.vue";
  3. import ColdTrendChart from "@/components/dashboard/portrait/cold/coldTrendChart.vue";
  4. export default {
  5. data() {
  6. return {
  7. coreData: [
  8. {
  9. type: 0,
  10. title: '月总用冷量(kWh)',
  11. num: 2000,
  12. historyDesc: '同比',
  13. historyNum: 0.4
  14. },
  15. {
  16. type: 0,
  17. title: '今日用冷趋势',
  18. num: 1800,
  19. historyDesc: '同比',
  20. showTrendIcon: true,
  21. },
  22. {
  23. type: 1,
  24. title: '能效比',
  25. content: 80,
  26. },
  27. {
  28. type: 0,
  29. title: '人均用冷量(kWh)',
  30. num: 30,
  31. historyDesc: '同比',
  32. historyNum: '0.4'
  33. },
  34. {
  35. type: 1,
  36. isHighLight: false,
  37. showStar: true,
  38. title: '值得关注',
  39. content: ''
  40. },
  41. ]
  42. }
  43. },
  44. props: {
  45. chartHeight: Number
  46. },
  47. components: {
  48. CoreData,
  49. ColdTrendChart,
  50. }
  51. }
  52. </script>
  53. <template>
  54. <div class="supermarketPortrait">
  55. <div class="portrait-coreData">
  56. <CoreData :data-list="coreData"></CoreData>
  57. </div>
  58. <div style="padding: 15px">
  59. <ColdTrendChart :height="chartHeight"></ColdTrendChart>
  60. </div>
  61. </div>
  62. </template>
  63. <style lang="less" scoped>
  64. .supermarketPortrait {
  65. }
  66. </style>