Newer
Older
CloudBrainNew / src / views / cityManage / components / mobileManage / components / mobileCaseDetail.vue
wangxitong on 29 Apr 2021 2 KB 0429 submit
<!--
 * @Description:各区域各类案件数量
 * @Author: 王晓颖
 * @Date: 2020-12-03 14:30:02
 -->
<template>
  <div style="width: 100%;height:100%;padding:0.1rem;">
    <scroll-board :config="boardConfig"/>
  </div>
</template>

<script>
import SimplePieChart from '@/components/pieChart/simplePieChart'
import Corner1 from '@/components/corner/Corner1'
import ChartLayout from '@/components/layout/chartLayout'
// import {fetchOccupationByPark} from '@/api/cityManage'
import ScrollBoard from '@/components/board/ScrollBoard'
export default {
  name: 'MobileCaseDetail',
  components: {ScrollBoard, ChartLayout, Corner1, SimplePieChart},
  data () {
    return {
      boardConfig: {
        header: ['案件类型', '潭东镇', '潭口镇', '高校园区'],
        rowNum: 4,
        hoverColor: true,
        headerBGC: 'rgba(46,145,244,0.4)',
        oddRowBGC: 'rgba(46,145,244,0.4)',
        evenRowBGC: '#030737',
        headerColor: '#00F0FF',
        rowColor: '#FFFFFF',
        headerFontSize: '0.072rem', // 表头字体大小
        rowFontSize: '0.07rem', // 行字体大小
        columnWidth: [140],
        data: [
          ['施工噪声', '--', '--', '--'],
          ['绿化弃料', '--', '--', '--'],
          ['道路不洁', '--', '--', '--'],
          ['施工占道', '--', '--', '--']
        ]
      }
    }
  },
  created () {
    this.getData()
  },
  methods: {
    getData () {
      // fetchOccupationByPark().then(response => {
      //   if (response.code === 200) {
      //     const data = response.data
      //     const list = data.map(item => {
      //       const radio = Math.round(item.already / item.total * 100)
      //       return [item.name, item.total, item.already, radio + '%']
      //     })
      //     this.boardConfig.data = list
      //     const boardConfig = this.boardConfig
      //     // this.$set(this, 'boardConfig', boardConfig)
      //     this.boardConfig = Object.assign({}, boardConfig)
      //   }
      // })
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>

</style>