<template>
  <div id="info-1">
    <el-row>
      <el-col :span="24" class="main">
        <el-col :span="24" class="one">
          <el-col :span="12" class="left">
            <el-form :model="info" ref="info" label-width="130px">
              <el-col :span="24">
                <el-col :span="24">
                  <el-form-item label="考点编号">
                    <el-input v-model="info.testsite_num" disabled></el-input>
                  </el-form-item>
                </el-col>
              </el-col>
              <el-col :span="24">
                <el-col :span="12">
                  <el-form-item label="考试日期">
                    <el-input v-model="info.exam_date" readonly></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="考试时间">
                    <el-input v-model="info.exam_time" readonly></el-input>
                  </el-form-item>
                </el-col>
              </el-col>
              <el-col :span="24">
                <el-col :span="12">
                  <el-form-item label="计划参考人数">
                    <el-input v-model="info.test_number" readonly></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="实际参考人数">
                    <el-input v-model="info.actual_examper" readonly></el-input>
                  </el-form-item>
                </el-col>
              </el-col>
              <el-col :span="24">
                <el-col :span="12">
                  <el-form-item label="考试等级">
                    <el-input v-model="info.exam_grade" readonly></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="考试地点">
                    <el-input v-model="info.exam_addr" readonly></el-input>
                  </el-form-item>
                </el-col>
              </el-col>
              <el-col :span="24">
                <el-col :span="24">
                  <el-form-item label="考场编排情况">
                    <el-input v-model="info.layout_situation" readonly rows="2" type="textarea"></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="24">
                  <el-form-item label="考试情况">
                    <el-input v-model="info.exam_situation" readonly rows="2" type="textarea"></el-input>
                  </el-form-item>
                </el-col>
              </el-col>
              <el-col :span="24">
                <el-col :span="12">
                  <el-form-item label="公安机关">
                    <el-input v-model="info.police_office" readonly></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="编排人">
                    <el-input v-model="info.layout_personal" readonly></el-input>
                  </el-form-item>
                </el-col>
              </el-col>
              <el-col :span="24">
                <el-col :span="12">
                  <el-form-item label="编排时间">
                    <el-input v-model="info.room_date" readonly></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="登记人">
                    <el-input v-model="info.register_personal" readonly></el-input>
                  </el-form-item>
                </el-col>
              </el-col>
              <el-col :span="24">
                <el-col :span="24">
                  <el-form-item label="考试登记时间">
                    <el-input v-model="info.register_date" readonly></el-input>
                  </el-form-item>
                </el-col>
              </el-col>
            </el-form>
          </el-col>
          <el-col :span="12" class="right">
            <data-table :fields="fields" :opera="opera" :data="list" :usePage="false"> </data-table>
          </el-col>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'info-1',
  props: {
    info: { type: Object },
    list: { type: Array },
  },
  components: {},
  data: function () {
    return {
      fields: [
        { label: '姓名', model: 'name' },
        { label: '联系电话', model: 'exam_num' },
        { label: '准考证号', model: 'phone' },
        { label: '考试成绩', model: 'exam_achieve' },
        { label: '体能', model: 'stamina' },
      ],
      opera: [],
    };
  },
  created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  watch: {
    test: {
      deep: true,
      immediate: true,
      handler(val) {},
    },
  },
};
</script>

<style lang="less" scoped>
.main {
  .one {
    .right {
      position: relative;
      top: -30px;
    }
  }
}
</style>
