123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <script>
- import CoreData from "@/components/common/coreData.vue";
- import ColdTrendChart from "@/components/dashboard/portrait/cold/coldTrendChart.vue";
- export default {
- data() {
- return {
- coreData: [
- {
- type: 0,
- title: '月总用冷量(kWh)',
- num: 2000,
- historyDesc: '同比',
- historyNum: 0.4
- },
- {
- type: 0,
- title: '今日用冷趋势',
- num: 1800,
- historyDesc: '同比',
- showTrendIcon: true,
- },
- {
- type: 1,
- title: '能效比',
- content: 80,
- },
- {
- type: 0,
- title: '人均用冷量(kWh)',
- num: 30,
- historyDesc: '同比',
- historyNum: '0.4'
- },
- {
- type: 1,
- isHighLight: false,
- showStar: true,
- title: '值得关注',
- content: ''
- },
- ]
- }
- },
- props: {
- chartHeight: Number
- },
- components: {
- CoreData,
- ColdTrendChart,
- }
- }
- </script>
- <template>
- <div class="supermarketPortrait">
- <div class="portrait-coreData">
- <CoreData :data-list="coreData"></CoreData>
- </div>
- <div style="padding: 15px">
- <ColdTrendChart :height="chartHeight"></ColdTrendChart>
- </div>
- </div>
- </template>
- <style lang="less" scoped>
- .supermarketPortrait {
- }
- </style>
|