<template>
  <div id="info">
    <el-row>
      <el-col :span="24" class="main">
        <el-col :span="24" class="one">
          <el-button type="primary" size="mini" @click="back">返回</el-button>
        </el-col>
        <el-col :span="24" class="tw0">
          <el-tabs v-model="active" type="card">
            <el-tab-pane label="保安员基本信息" name="first">
              <basic-info :basic_id="basic_id"></basic-info>
            </el-tab-pane>
            <el-tab-pane label="其他信息" name="second">
              <other-info :basic_id="basic_id"></other-info>
            </el-tab-pane>
            <el-tab-pane label="保安员报名资格审批" name="third">
              <seniority-1 :basic_id="basic_id"></seniority-1>
            </el-tab-pane>
            <el-tab-pane label="保安员考试记录" name="fourth">
              <examrecord-1 :basic_id="basic_id"></examrecord-1>
            </el-tab-pane>
            <el-tab-pane label="电子资料" name="fivth">
              <files-1 :basic_id="basic_id"></files-1>
            </el-tab-pane>
          </el-tabs>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import basicInfo from '../../security/baybm/infoParts/basic-1.vue';
import otherInfo from '../../security/baybm/infoParts/other-1.vue';
import seniority1 from '../../security/baybm/infoParts/seniority-1.vue';
import examrecord1 from '../../security/baybm/infoParts/examrecord-1.vue';
import files1 from '../../security/baybm/infoParts/files-1.vue';

import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'info',
  props: {},
  components: { basicInfo, otherInfo, seniority1, examrecord1, files1 },
  data: function () {
    return { active: 'first' };
  },
  created() {},
  methods: {
    // 返回
    back() {
      this.$router.push({ path: '/adminPolice/information/bayxxwh' });
    },
  },
  computed: {
    ...mapState(['user']),
    basic_id() {
      return this.$route.query.id;
    },
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  watch: {
    test: {
      deep: true,
      immediate: true,
      handler(val) {},
    },
  },
};
</script>

<style lang="less" scoped>
.main {
  .one {
    text-align: right;
    margin: 10px 0;
  }
}
</style>
