<template>
  <div class="con-boxs">
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <el-form-item>
        <el-input v-model="formInline.user" placeholder="请输入申请的事项"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">查询</el-button>
      </el-form-item>
    </el-form>
    <el-card class="box-card" shadow="never">
      <div slot="header" class="clearfix">
        <span>进行中的</span>
      </div>
      <template>
        <el-table
          :data="tableData"
          style="width: 100%">
          <el-table-column
            prop="date"
            label="序号">
          </el-table-column>
          <el-table-column
            prop="name"
            label="事项">
          </el-table-column>
          <el-table-column
            prop="address"
            label="提交人">
          </el-table-column>
          <el-table-column
            prop="address"
            label="提交人班级">
          </el-table-column>
          <el-table-column
            prop="address"
            label="提交时间">
          </el-table-column>
          <el-table-column
            prop="address"
            label="审批结果">
          </el-table-column>
          <el-table-column
            prop="address"
            label="审批时间">
          </el-table-column>
        </el-table>
      </template>
    </el-card>
    <el-card class="box-card cardmar" shadow="never">
      <div slot="header" class="clearfix">
        <span>已完成</span>
      </div>
      <template>
        <el-table
          :data="tableData"
          style="width: 100%">
          <el-table-column
            prop="date"
            label="序号">
          </el-table-column>
          <el-table-column
            prop="name"
            label="事项">
          </el-table-column>
          <el-table-column
            prop="address"
            label="提交人">
          </el-table-column>
          <el-table-column
            prop="address"
            label="提交人班级">
          </el-table-column>
          <el-table-column
            prop="address"
            label="提交时间">
          </el-table-column>
          <el-table-column
            prop="address"
            label="审批结果">
          </el-table-column>
          <el-table-column
            prop="address"
            label="审批时间">
          </el-table-column>
        </el-table>
      </template>
    </el-card>
  </div>
</template>

<script>
  export default {
    data () {
      return {
        formInline: {
          user: '',
          region: ''
        },
        tableData: [{
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1517 弄'
        }]
      }
    },
    methods: {
      onSubmit () {
        console.log('submit!')
      }
    }
  }
</script>

<style lang="scss" scoped>
.con-boxs{
  margin: 0.3rem;
  padding: 0.3rem 0.3rem 0.15rem 0.3rem;
  background: #ffffff;
  overflow: hidden;
  position: relative;
  .min-title{
    line-height: 30px;
    margin-top: 20px;
  }
  .cardmar{
    margin-top: 20px;
  }
}
</style>