<template>
<div class="main" >
        <Header/>
        <div class="main_t">
            <div class="main_t_t">
                <i class="main_t_t_l">当前位置：首页 &gt;</i>
                <i>工作计划</i>
            </div>
        </div>
        <div class="main_b">
            <!--列表-->
            <el-table :data="tableData"  style="width: 100%" height="850" :row-class-name="tableRowClassName">
                <el-table-column align="center" header-align='center' type="index" :index="indexMethod" label="序号" width="60"></el-table-column>
                <el-table-column align="center" header-align='center' prop="content" label="工作内容"></el-table-column>
                <el-table-column align="center" header-align='center' prop="company" label="执行单位"></el-table-column>
                <el-table-column align="center" header-align='center' prop="createDate" label="执行日期"></el-table-column>
            </el-table>
            <!--<el-pagination
                    style="margin-top: 14px"
                    background
                    @current-change="handleCurrentChange"
                    :page-sizes="[10, 20, 30, 40]"
                    :current-page.sync="editForm.pageNum"
                    :page-size="editForm.pageSize"
                    layout="total,prev, pager, next"
                    :total="totalNum">
            </el-pagination>-->
        </div>
    </div>
</template>

<script>
import {onlineByBigView} from "../api/http"

import $ from 'jquery'
import * as echarts from 'echarts'
import Header from '@/components/header.vue'
export default {
  components: {
    Header
  },
  data() {
    return {
      //查询条件
      editForm:{
        pageNum:1,
        pageSize:10
      },

      totalNum:0,
      tableData:[],

    }
  },
  methods: {
    back(){
      this.$router.push('/')
    },
    tableRowClassName({row, rowIndex}) {
      if (rowIndex%2 === 0) {
        return 'success-row';
      } else{

        return 'warning-row';
      }
      return '';
    },
    indexMethod(index) {
      return (this.editForm.pageNum - 1) * this.editForm.pageSize + index + 1;
    },
    //请求列表
    getAjaxList:function (){


      let _this=this;
      //列表
      listIndexJhDetals({}).then((res) =>{
        if(res.code==200){
          let data = res.data.list.excelList;
          if(data && data.length>0){
            _this.tableData = data;
            _this.totalNum = parseInt(res.total);
          }else{
            _this.tableData = [];
            _this.totalNum = 0;
          }
        }
      })

    },

    handleCurrentChange(val) {
      this.param.pageNo = val;
      // this.getAjaxList();
    },
  },
  mounted() {
    this.getAjaxList()
  },


}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>

@function rw($px){

  @return $px*100/1920 *1vw;
}
@function rh($px){

  @return $px*100/1080 *1vh;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.main {
  width: rw(1920);
  height: rh(1080);
  /* background: url("../img/index_bg.png") no-repeat;
   background-size: 100% 100%;*/
  position: relative;
  left: 0;
  top: 0;
  z-index: 50;

  background: #062338;
  .header {
    width: 100%;
    position: absolute;
    left: rw(0);
    top: rh(0);
    z-index: 100;
    display: flex;
    justify-content: flex-start;

    .header_l {
      width: rw(182);
      height: rh(44);
      margin: rh(10) 0 0 rw(40);
    }
    .header_c {
      width: rw(1180);
      height: rh(152);
      margin-left: rw(136);
      background: url("~@/assets/image/index_icon2.png") no-repeat;
      background-size: 100% 100%;
      font-size: rh(30);
      font-family: Microsoft YaHei;
      font-weight: bold;
      color: #FFFFFF;
      line-height: rh(30);
      text-align: center;
      padding-top: rh(26);
    }
    .header_r {
      margin-left: rw(264);
      width: rw(82);
      height: rh(32);
      margin-top: rh(18);
    }
  }
  .main_t{

    width: rw(1852);

    position: absolute;
    left: rw(34);
    top: rh(86);
    z-index: 200;
    .main_t_t{
      margin: rh(20) 0 0 rw(18);
      >i{
        font-size: rh(16);
        font-family: Microsoft YaHei;
        font-weight: bold;
        color: #FFFFFF;
        line-height: rh(16);
      }
      >i:nth-of-type(1){

      }
      >i:nth-of-type(2){
        color: #1ED0F8;
      }
    }
  }
  .main_b{
    background: #062338;
    padding: 0 rw(32);
    width: rw(1852);
    height: rh(850);
    position: absolute;
    left: rw(34);
    top: rh(144);
    z-index: 200;
  }
}
</style>
<style lang="scss">
li{list-style:none}
i,em,b{font-style:normal;font-weight:100;}
body{margin: 0}
</style>
