<!-- * @Description: 城市整体概况: 面积,区域数量,人口,街道,社区,网格 * @Author: 王晓颖 * @Date: 2020-09-14 16:36:21 --> <template> <chart-layout title="社会稳定和政治安全" @click="getData"> <div class="block-container"> <div class="block" style="width:50%;height: 100%;"> <single-layout title="事件数量及趋势"> <div style="width: 100%;height:100%;"> <EventBarLine /> </div> </single-layout> </div> <div class="block" style="width:50%;height: 100%;"> <eventPie/> </div> </div> <corner1 slot="corner"/> </chart-layout> </template> <script> import SingleLayout from '@/components/layout/singleLayout' import SimpleBlock from './components/simpleBlock' import ChartLayout from '@/components/layout/chartLayout' import Corner1 from '@/components/corner/Corner1' import EventBarLine from './components/eventBarLine.vue' import eventPie from './components/eventPie.vue' export default { name: 'introduce', components: {Corner1, ChartLayout, SimpleBlock, EventBarLine, SingleLayout, eventPie}, data () { return { } }, mounted () { this.getData() }, methods: { getData () { } } } </script> <style rel="stylesheet/scss" lang="scss" scoped> .block-container{ height: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; margin: 0.04rem; .block{ width: 25%; height: 45%; } } </style>