<!-- * @Description:各类矛盾纠纷占比 * @Author: 王晓颖 * @Date: 2020-12-02 10:49:53 --> <template> <single-layout title="校园事件占比"> <div style="width: 100%;height:100%;padding-top:0.05rem"> <simple-pie-chart :id="data.id" :width="data.width" :height="data.height" :seriesData="data.data"> </simple-pie-chart> </div> </single-layout> </template> <script> import SimplePieChart from '@/components/pieChart/simplePieChart' import SingleLayout from '@/components/layout/singleLayout' export default { name: 'schoolCasePie', components: {SingleLayout, SimplePieChart}, data () { return { data: { id: 'school-case-pie', width: '100%', height: '100%', legend: ['活动事件', '卫生事件', '消防事件', '其他事件'], data: [ {value: 34, name: '活动事件'}, {value: 24, name: '卫生事件'}, {value: 14, name: '消防事件'}, {value: 4, name: '其他事件'} ] } } }, created () { this.getData() }, methods: { getData () { } } } </script> <style rel="stylesheet/scss" lang="scss" scoped> </style>