1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <script>
- import CoreData from "@/components/common/coreData.vue";
- import WaterUseChart from "@/components/dashboard/portrait/water/waterUseChart.vue";
- import WaterDistributionChart from "@/components/dashboard/portrait/water/waterDistributionChart.vue";
- export default {
- data() {
- return {
- coreData: [
- {
- type: 0,
- title: '月总用水量(m³)',
- num: 2000,
- historyDesc: '同比',
- historyNum: '0.4'
- },
- {
- type: 0,
- title: '今日用水总量(m³)',
- num: 1800,
- historyDesc: '同比',
- historyNum: '0.4'
- },
- {
- type: 0,
- title: '今日用水趋势',
- num: 30,
- unit: '%',
- historyDesc: '同比',
- historyNum: '0.4'
- },
- {
- type: 0,
- title: '人均用水量(m³)',
- num: 30,
- historyDesc: '同比',
- historyNum: '0.4'
- },
- {
- type: 1,
- isHighLight: false,
- title: '值得关注',
- content: ''
- },
- ]
- }
- },
- props: {
- chartHeight: Number
- },
- components: {
- CoreData,
- WaterUseChart,
- WaterDistributionChart,
- }
- }
- </script>
- <template>
- <div class="supermarketPortrait">
- <div class="portrait-coreData">
- <CoreData :data-list="coreData"></CoreData>
- </div>
- <div style="padding: 15px">
- <a-row>
- <a-col :span="16">
- <WaterUseChart :height="chartHeight"></WaterUseChart>
- </a-col>
- <a-col :span="8">
- <WaterDistributionChart :height="chartHeight"></WaterDistributionChart>
- </a-col>
- </a-row>
- </div>
- </div>
- </template>
- <style lang="less" scoped>
- .supermarketPortrait {
- }
- </style>
|