<template>
  <div class="dashboard-container">
    <el-form :model="peopleform"  label-width="88px" ref="peopleform">
      <el-row>
        <el-col :span="7">
          <div>
            <el-form-item label="地区名称" class="fourLabel" label-width="80px">
                <el-input v-model="peopleform.dataDictioPubArr" class="search-width" clearable></el-input>
            </el-form-item>
          </div>
        </el-col> 
       
         
       
      </el-row>
        
      <div style="clear: both;border-top: 1px dashed rgb(90, 170, 250);margin-bottom: 10px;"></div>
      <div class="addBtnBg">
       <el-button class="outButton" icon="el-icon-search" size="medium" type="primary">查询</el-button>
       <el-button class="outButton" icon="el-icon-refresh" size="medium" type="primary">清空</el-button>
       </div> 
    </el-form>
    <el-row>
      <el-table tooltip-effect="dark" style="width: 100%;margin-top:10px;" align="center" border stripe highlight-current-rowv-loading="tableLoading" :data="tableData">
        <el-table-column type="selection" width="50"></el-table-column>
        <el-table-column type="index" :index="typeIndex" label="序号" width="50"></el-table-column>
        <el-table-column align="center" label="检测点名称" :show-overflow-tooltip="true" prop="planFileName"></el-table-column>
        <el-table-column align="center" label="所属地区" :show-overflow-tooltip="true" prop="migrationDate"></el-table-column>
        <el-table-column align="center" label="父检测点" :show-overflow-tooltip="true" prop="city"></el-table-column>
        <el-table-column align="center" label="负责人" :show-overflow-tooltip="true" prop="city"></el-table-column> 
        <el-table-column align="center" label="负责人电话" :show-overflow-tooltip="true" prop="findingsAudit"></el-table-column>
         
      </el-table>
      <!-- 分页开始 -->
      <div class="pagination-container">
        <el-pagination class="right" :current-page.sync="limit.page" :page-size="limit.size" :page-sizes="[10,20,30,40]" :total="limit.total" @size-change="handleChangeSize" @current-change="handleCurrentChangePage" layout="total, sizes, prev, pager, next, jumper">
        </el-pagination>
      </div>
    </el-row>

  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Daily',
  data() {
    return {
      peopleform: {},
      yearArr: [{
        index: 1,
        value: '发布'
      }],
      status: [{
        index: 1,
        dictName: '未提交',
      }, {
        index: 2,
        dictName: '已提交',
      }, {
        index: 3,
        dictName: '审核通过',
      }, {
        index: 4,
        dictName: '驳回',
      }],
      dataDictioPubArr: [{
        index: 1
      }],
      tableData: [{
        index: 1
      }],
      limit: {
        page: 1,
        size: 10,
        total: 0
      }
    }
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  },
  methods: {
    see(row) {

    },
    handleChangeSize(value) {

    },
    handleCurrentChangePage(value) {
    },
    addBtn() {
      this.$router.push({ path: '/onlineContribute/detail' })
    },
    typeIndex(index) {
      return index + (this.limit.page - 1) * this.limit.size + 1;
    },
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
