| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <script>
- import CoreData from "@/components/common/coreData.vue";
- import PersonTrendChart from "@/components/dashboard/portrait/person/personTrendChart.vue";
- export default {
- data() {
- return {
- coreData: [
- {
- type: 0,
- title: '月总用水量(m³)',
- num: 2000,
- historyDesc: '同比',
- historyNum: '0.4'
- },
- {
- type: 0,
- title: '今日用水总量(m³)',
- num: 200,
- historyDesc: '同比',
- historyNum: '0.4'
- },
- {
- type: 0,
- title: '今日用水趋势',
- num: 30,
- unit: '%',
- historyDesc: '同比',
- historyNum: '0.4'
- },
- {
- type: 0,
- title: '人均用水量(m³)',
- num: 80,
- historyDesc: '环比',
- historyNum: '0.4'
- },
- {
- type: 1,
- isHighLight: false,
- title: '值得关注',
- content: ''
- },
- ]
- }
- },
- props: {
- chartHeight: Number
- },
- components: {
- CoreData,
- PersonTrendChart,
- }
- }
- </script>
- <template>
- <div class="personPortrait">
- <div class="portrait-coreData">
- <CoreData :data-list="coreData"></CoreData>
- </div>
- <div style="padding: 0 15px 15px;">
- <PersonTrendChart :height="chartHeight"></PersonTrendChart>
- </div>
- </div>
- </template>
- <style lang="less" scoped>
- .personPortrait {
- width: 100%;
- .portrait-coreData {
- margin-bottom: 15px;
- }
- }
- </style>
|