<template>
  <div class="credit-manage-wrap">
    <bread-crumb :curmbFirst="curmbFirst" :curmbSecond="curmbSecond"></bread-crumb>

    <div class="list-wrap screenSet" id="screenSet">
      <div class="header-title">学分发放管理</div>
      <el-form ref="form" :model="searchForm" label-width="100px" class="search-form-wrap">
        <div style="width: 75%; float:left;">
          <el-form-item label="项目编号：" class="search-item">
            <el-input v-model="searchForm.code" size="small" class="form-width" placeholder="请输入项目编号"></el-input>
          </el-form-item>
          <el-form-item label="项目名称：" class="search-item">
            <el-input v-model="searchForm.name" size="small" class="form-width" placeholder="请输入项目名称"></el-input>
          </el-form-item>
          <el-form-item label="项目时间：" class="search-item">
            <el-date-picker
              v-model="searchForm.date"
              type="daterange"
              range-separator="—"
              start-placeholder="开始日期"
              end-placeholder="结束日期">
            </el-date-picker>
          </el-form-item>
        </div>
        <div style="width: 25%; float: right;">
          <el-form-item class="btn-list">
            <el-button type="primary" size="small">查询</el-button>
            <el-button size="small">重置</el-button>
          </el-form-item>
        </div>
      </el-form>
      <el-table
        ref="multipleTable"
        :data="tableData"
        tooltip-effect="dark"
        style="width: 100%"
        @selection-change="handleSelectionChange">
        <el-table-column type="selection" width="55"></el-table-column>
        <el-table-column align="center" prop="code" label="项目编号" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" prop="name" label="项目名称" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" prop="startTime" label="项目开始时间" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" prop="endTime" label="项目结束时间" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" prop="status" label="项目状态" show-overflow-tooltip></el-table-column>
        <el-table-column align="center" label="操作">
          <template slot-scope="scope">
            <el-button type="text" size="small">查看申请明细</el-button>
          </template>
        </el-table-column>

      </el-table>
    </div>

  </div>
</template>

<script>
  import { openLoading, closeLoading } from "../../utils/utils";
  import BreadCrumb from "../../components/breadcrumb.vue";
  import * as commonUtil from "../../utils/utils";
  import { 
    
  } from '@/utils/cme/cmeApi'


  export default {
    data() {
      return {
        curmbFirst: "CME",
        curmbSecond: "学分发放管理",
        totalRows: 0,

        searchForm: {
          code: '',
          name: '',
          date: [],
          pageNo: 1,
          pageSize: 15,
        },

        tableData: [
          { code: 11, name:'撒地方的阿萨德李开复就j克拉的房客哦佛i额我joie就哦覅我', startTime: '20191224', endTime: '20201111', status:'已结束' },
        ],
        multipleSelection: [],
        
      }
    },

    components: {
      BreadCrumb
    },

    created() {
      
    },
    mounted() {
      commonUtil.resizeHeight();
    },
    methods: {
      handleSelectionChange(val) {
        this.multipleSelection = val;
      }

    },

  }
</script>  

<style lang="scss">
  .credit-manage-wrap{
    .list-wrap{
      padding: 10px;
      background: #fff;
      .el-button--small{
        font-size: 14px;
      }
      .search-item{
        float: left;
      }
      .form-width{
        width: 200px;
      }
      .header-title {
        padding: 10px 12px;
        font-size: 14px;
        color: #606266;
        border-bottom: 1px solid #efefef;
      }
      .btn-list{
        float: right;
        margin-right: 30px;
        .el-form-item__content{
          margin-left: 0 !important;
        }
      }
      .search-form-wrap{
        padding: 25px 0 20px;
        overflow: hidden;
        border-bottom: 1px dashed #efefef;
      }
      
    }
  }
</style>