<template>
  <div class="dashboard-container">
    <el-form  class="demo-form-inline mar-l-0 listStyle" style="width:100%;" :model="form" ref="form">
      <div class="all-row-b5" style="margin-bottom:10px;">

        <el-form-item label="监测点：" placeholder="请输入" label-position="left" prop="takNameId">
          <el-input v-model="form.dataDictioPubArr" class="search-width" clearable></el-input>
        </el-form-item>
        </el-col>

        <el-form-item label="上报地区：" placeholder="请输入" prop="takTask" class="pubWid">
          <el-select v-model="form.takTask" clearable placeholder="全部" class="search-width">
            <el-option v-for="item in dataDictioPubArr" :key="item.cogKey" :label="item.cogValue" :value="item.cogKey">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="上报日期" class="fourLabel">
          <el-date-picker v-model="form.value6" type="daterange" range-separator="至" start-placeholder="开始日期"
            end-placeholder="结束日期">
          </el-date-picker>
        </el-form-item>

        <!-- <el-button class="outButton" icon="el-icon-search" size="primary" type="primary">查询</el-button>
            <el-button class="outButton" icon="el-icon-search" size="primary" type="primary">清空</el-button>　 -->
      </div>
    </el-form>
    <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="primary" type="primary">查询</el-button>
        <el-button class="outButton" icon="el-icon-search" size="primary" type="primary">清空</el-button>
      </div>
    </el-row>
    <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 align="center" label="序号" width="60">
          <template slot-scope="scope"><span>{{scope.$index+1}}</span></template>
        </el-table-column>
        <el-table-column align="center" :show-overflow-tooltip="true" label="所属地区" prop="companyName">
        </el-table-column>
        <el-table-column align="center" :show-overflow-tooltip="true" label="所属监测点" prop="companyHierarchy">
        </el-table-column>
        <el-table-column align="center" :show-overflow-tooltip="true" prop="reporter" label="用户名称">
        </el-table-column>
        <el-table-column align="center" :show-overflow-tooltip="true" prop="reporter" label="状态">
        </el-table-column>
        <el-table-column align="center" :show-overflow-tooltip="true" prop="reporter" label="稿件标题">
        </el-table-column>
        <el-table-column align="center" :show-overflow-tooltip="true" prop="reporter" label="投稿时间">
        </el-table-column>
        <el-table-column width="200" label="操作">
          <template slot-scope="scope">
              <el-tooltip class="item" effect="light" content="驳回" placement="top">
                  <el-button class="button operate_delete_btn" size="mini" type="primary" @click.stop="deleteFn(scope.row)">
                    <i class="iconfont">
                      &#xec21;
                    </i>
                  </el-button>
                </el-tooltip>
            <el-tooltip class="item" effect="light" content="查看" placement="top">
                <el-button class="button operate_show_btn" size="mini" type="primary" @click.stop="see('see',scope.row)">
                  <i class="iconfont">&#xe67e;</i>
                </el-button>
              </el-tooltip>
              <el-tooltip class="item" effect="light" content="修改" placement="top">
                  <el-button class="button operate_edit_btn" size="mini" type="primary" @click.stop="see('edit',scope.row)">
                    <i class="iconfont">&#xe693;</i>
                  </el-button>
                </el-tooltip>

          </template>
        </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 {
        form: {},
        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: '/dailyManage/main-detail' })
      }
    }
  }
</script>

<style lang="scss" scoped>
  .dashboard {
    &-container {
      margin: 30px;
    }

    &-text {
      font-size: 30px;
      line-height: 46px;
    }
  }
</style>