<template>
  <div id="index">
    <el-row>
      <el-col :span="24" class="top">
        <topInfo :topTitle="topTitle" :display="display" @add="add"></topInfo>
      </el-col>
      <el-col :span="24" class="main">
        <el-col :span="24" class="search">
          <searchInfo></searchInfo>
        </el-col>
        <el-col :span="24" class="list">
          <list :tableData="tableData" :total="total"></list>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import topInfo from '@/components/test/topInfo.vue';
import searchInfo from '@/components/test/searchInfo.vue';
import list from '@/components/test/list.vue';
export default {
  name: 'index',
  props: {},
  components: {
    topInfo, //头部导航
    searchInfo, //搜索
    list, //列表
  },
  data: () => ({
    topTitle: '二级菜单',
    display: 'block',
    tableData: [
      {
        list: '列表',
        status: '进行中',
        date: '2020-3-18',
      },
      {
        list: '列表',
        status: '已禁止',
        date: '2020-3-19',
      },
      {
        list: '列表',
        status: '已完成',
        date: '2020-3-20',
      },
      {
        list: '列表',
        status: '进行中',
        date: '2020-3-18',
      },
      {
        list: '列表',
        status: '已禁止',
        date: '2020-3-19',
      },
      {
        list: '列表',
        status: '已完成',
        date: '2020-3-20',
      },
      {
        list: '列表',
        status: '进行中',
        date: '2020-3-18',
      },
      {
        list: '列表',
        status: '已禁止',
        date: '2020-3-19',
      },
      {
        list: '列表',
        status: '已完成',
        date: '2020-3-20',
      },
      {
        list: '列表',
        status: '进行中',
        date: '2020-3-18',
      },
    ],
    total: 10,
  }),
  created() {},
  computed: {},
  methods: {
    add() {
      this.$router.push({ path: '/test/detail' });
    },
  },
};
</script>

<style lang="less" scoped>
.top {
  height: 50px;
  margin: 0 0 10px 0;
}
.main {
  height: 765px;
  background: #ffffff;
}
.search {
  width: 97%;
  height: 35px;
  margin: 20px;
}
.list {
  padding: 0 20px;
}
</style>
