<template>
  <a-card :bordered="false">
    <!-- 查询区域 -->
    <!-- <div class="table-page-search-wrapper">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
        <a-row :gutter="24"> </a-row>
      </a-form>
    </div> -->
    <!-- 查询区域-END -->

    <!-- table区域-begin -->
    <div>
      <!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px">
        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择
        <a style="font-weight: 600">{{ selectedRowKeys.length }}</a
        >项
        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
      </div> -->

      <a-table size="middle" bordered :pagination="false" :columns="columns" :dataSource="dataSource">
      </a-table>
    </div>
  </a-card>
</template>

<script>
  import { mixinDevice } from '@/utils/mixin'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { httpAction, getAction } from '@/api/manage'
import { pvdata } from '../pvdata'

export default {
  name: 'stationStatis',
    mixins:[JeecgListMixin, mixinDevice],
  components: {},
  data() {
    return {
      description: '电站发电统计',
      // 表头
      columns: [
        {
          title: '电站名称',
          align: 'center',
          dataIndex: 'name',
          width: 150,
        },
        {
          title: '额定交流功率(kW)',
          align: 'center',
          dataIndex: 'jl',
          width: 150,
        },
        {
          title: '组件峰值功率(kWp)',
          align: 'center',
          dataIndex: 'fz',
          width: 150,
        },
        {
          title: '00时',
          align: 'center',
          dataIndex: 'm0',
          width: 50,
        },
        {
          title: '01时',
          align: 'center',
          dataIndex: 'm1',
          width: 50,
        },
        {
          title: '02时',
          align: 'center',
          dataIndex: 'm2',
          width: 50,
        },
        {
          title: '03时',
          align: 'center',
          dataIndex: 'm3',
          width: 50,
        },
        {
          title: '04时',
          align: 'center',
          dataIndex: 'm4',
          width: 50,
        },
        {
          title: '05时',
          align: 'center',
          dataIndex: 'm5',
          width: 50,
        },
        {
          title: '06时',
          align: 'center',
          dataIndex: 'm6',
          width: 50,
        },
        {
          title: '07时',
          align: 'center',
          dataIndex: 'm7',
          width: 50,
        },
        {
          title: '08时',
          align: 'center',
          dataIndex: 'm8',
          width: 50,
        },
        {
          title: '09时',
          align: 'center',
          dataIndex: 'm9',
          width: 50,
        },
        {
          title: '10时',
          align: 'center',
          dataIndex: 'm10',
          width: 50,
        },
        {
          title: '11时',
          align: 'center',
          dataIndex: 'm11',
          width: 50,
        },
        {
          title: '12时',
          align: 'center',
          dataIndex: 'm12',
          width: 50,
        },
        {
          title: '13时',
          align: 'center',
          dataIndex: 'm13',
          width: 50,
        },
        {
          title: '14时',
          align: 'center',
          dataIndex: 'm14',
          width: 50,
        },
        {
          title: '15时',
          align: 'center',
          dataIndex: 'm15',
          width: 50,
        },
        {
          title: '16时',
          align: 'center',
          dataIndex: 'm16',
          width: 50,
        },
        {
          title: '17时',
          align: 'center',
          dataIndex: 'm17',
          width: 50,
        },
        {
          title: '18时',
          align: 'center',
          dataIndex: 'm18',
          width: 50,
        },
        {
          title: '19时',
          align: 'center',
          dataIndex: 'm19',
          width: 50,
        },
        {
          title: '20时',
          align: 'center',
          dataIndex: 'm20',
          width: 50,
        },
        {
          title: '21时',
          align: 'center',
          dataIndex: 'm21',
          width: 50,
        },
        {
          title: '22时',
          align: 'center',
          dataIndex: 'm22',
          width: 50,
        },
        {
          title: '23时',
          align: 'center',
          dataIndex: 'm23',
          width: 50,
        },
        {
          title: '合计',
          align: 'center',
          dataIndex: 'total',
          width: 50,
        },
      ],
      dataSource: {},
    }
  },
  created() {
    this.getTest();
  },
  computed: {
  },
  methods: {
    getTest() {
      this.dataSource = pvdata.inverterstatisData;
      console.log(this.dataSource)
    },
  },
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>