<template>
  <div>
    <div class="search-term">
      <el-form :inline="true" :model="searchInfo" class="demo-form-inline">
			<el-form-item  label="手机号码" prop="phone">
			  <el-input placeholder="请输入手机号码" v-model="searchInfo.phone" type="text" class="user-form-item" clearable></el-input>
			</el-form-item>
			
			<el-form-item  label="身份证号" prop="cardId">
			  <el-input placeholder="请输入身份证" v-model="searchInfo.cardId" type="text" class="user-form-item" clearable></el-input>
			</el-form-item>
			
		</el-form>
    </div>

    <el-table :data="tableData"  border stripe>
	  
      <el-table-column label="手机号码"  prop="phone" min-width="100"> </el-table-column>
	  <el-table-column label="身份证"  prop="cardId" min-width="200"> </el-table-column>
      <el-table-column label="姓名"  prop="nickname"> </el-table-column>
	  <el-table-column label="报考科目"  prop="courseName" ></el-table-column>
	  
	  <el-table-column label="证书编号"  prop="rzCode" ></el-table-column>

    </el-table>
    <el-pagination
      :current-page="page"
      :page-size="size"
      :page-sizes="[10, 30, 50, 100]"
      :style="{float:'right',padding:'20px'}"
      :total="total"
      @current-change="handleCurrentChange"
      @size-change="handleSizeChange"
      layout="total, sizes, prev, pager, next, jumper"
    ></el-pagination>
  </div>
</template>

<script>
import { getUnRegisterList} from "@/api/study.js";
import infoList from "@/mixins/infoList";
import { MessageBox } from "element-ui";

export default {
  name: "Api",
  data() {
    return {
	  listApi: getUnRegisterList,
      tableData: [],
    };
  },
  watch:{
	searchInfo:{
		handler(val, oldVal){
		    this.page = 1;
			this.getTableData()
		},
		deep:true
	}
  },
  mixins: [infoList],
  methods: {
  },
  created() {
    this.getTableData();
  }
};
</script>
<style scoped lang="scss">
.el-tag--mini {
  margin-left: 5px;
}
.warning {
  color: #dc143c;
}
</style>
