<!-- * @Description:总车位占用情况:占用数、总车位、占用率 & 各停车场车位占用情况 * @Author: 王晓颖 * @Date: 2020-10-13 14:32:10 --> <template> <chart-layout title="智慧停车" @click="getData"> <div class="block-container"> <div class="block" style="width:40%"> <park-earth ref="parkEarth"/> </div> <div class="block" style="width:60%"> <park-detail ref="parkDetail"/> </div> </div> <corner1 slot="corner"/> </chart-layout> </template> <script> import ParkDetail from './components/parkDetail' import ParkEarth from './components/parkEarth' export default { name: 'parkOccupy', components: {ParkEarth, ParkDetail}, methods: { getData () { this.$refs.parkEarth.getData() this.$refs.parkDetail.getData() } } } </script> <style rel="stylesheet/scss" lang="scss" scoped> .block-container{ height: 100%; width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; margin: 0.04rem; /*padding:0.1rem;*/ .block{ } } </style>