<template>
  <d2-container class="page" v-loading="loading">
    <el-tabs value="first">
      <el-tab-pane label="学生违纪查询" name="first">
        <el-table
          v-loading="loading"
          :data="list"
          style="width: 100%">
          <el-table-column
            prop="ticket_no"
            label="准考证号"
            width="120">
          </el-table-column>
          <el-table-column
            prop="course_code"
            label="课程代码"
            width="100">
          </el-table-column>
          <el-table-column
            prop="agent_id"
            label="考点"
            width="160">
          </el-table-column>
          <el-table-column
            prop="exam_area"
            label="考场"
            width="180">
          </el-table-column>
          <el-table-column
            prop="year_code"
            label="年度码"
            width="80">
          </el-table-column>
          <!-- <el-table-column
            prop="seat_no"
            label="座位号 "
            width="80">
          </el-table-column> -->
          <el-table-column
            prop="break_content"
            label="违规事项 "
            width="120">
          </el-table-column>
          <!-- <el-table-column
            prop="remark"
            label="违规事项说明"
            width="120">
          </el-table-column>
          <el-table-column
            prop="break_time"
            label="违规时间"
            width="120">
          </el-table-column>
          <el-table-column
            prop="agent_remark"
            label="考点考区处理意见"
            width="160">
          </el-table-column>
          <el-table-column
            prop="city_agent_remark"
            label="市考办处理意见"
            width="160">
          </el-table-column>
          <el-table-column
            prop="prov_agent_remark"
            label="省考试院处理意见"
            width="160">
          </el-table-column>
          <el-table-column
            prop="stop_starttime"
            label="停考开始时间"
            width="120">
          </el-table-column>
          <el-table-column
            prop="stop_endtime"
            label="停考结束时间"
            width="120">
          </el-table-column> -->
        </el-table>
      </el-tab-pane>
    </el-tabs>
  </d2-container>
</template>

<script>
import { mapState, mapActions } from "vuex";
import { Loading } from 'element-ui';

export default {
  components: {},
  computed: {
    ...mapState({
      stdReg: state => state.enrol.StdReg,
    })
  },
  data() {
    return {
      loading: false,
      list:[]

    };
  },
  async mounted() {
    this.init();
  },
  methods: {
    async init(){
      // let loading = this.showLoading();
      this.loading = true;
      let res = await this.$http.post(`std/stdBreakDiscipline/find.htm?ticket_no=${this.stdReg.ticket_no}`);
      this.list = res.data.array;
      // this.hideLoading(loading);
      this.loading = false;
    },
  }
};
</script>

<style lang="scss">
</style>
