Newer
Older
robot_dog_patrol_front / src / views / dashboard / components / WellCount.vue
StephanieGitHub on 24 Sep 2019 710 bytes ADD:新增Dashboard页面
<template>
  <ve-pie :data="chartData" :extend="extend" :title="title"/>
</template>

<script>
export default {
  data() {
    this.extend = {
      series: {
        label: { show: true, position: 'outside', formatter: '{b}:{c}' }
      }
    }
    this.chartSettings = {
      labelMap: {
        'bfzt': '布防状态',
        'wellCount': '井数量'
      },
      dimension: 'bfzt',
      metrics: 'wellCount'
    }
    this.title = {
      text: '布防撤防统计'
    }
    return {
      chartData: {
        columns: ['bfzt', 'wellCount'],
        rows: [
          { 'bfzt': '布防', 'wellCount': 1393 },
          { 'bfzt': '撤防', 'wellCount': 3530 }
        ]
      }
    }
  }
}
</script>