<template>
  <!-- 安检记录详情 -->
  <el-dialog title="检查表详情" :visible.sync="open" width="900px" append-to-body destroy-on-close :close-on-click-modal="false">

    <!-- 月度安检 -->
    <IndustryMonthTaskInspectTable
      :inspectInfo="inspectInfo"
      v-if="checkType == 1"
    />

    <!-- 季度安检 -->
    <IndustryQuarterTaskInspectTable
      :inspectInfo="inspectInfo"
      v-if="checkType == 2"
    />

  </el-dialog>

</template>

<script>
  import IndustryMonthTaskInspectTable from "./IndustryMonthTaskInspectTable";
  import IndustryQuarterTaskInspectTable from "./IndustryQuarterTaskInspectTable";
  export default {
    name: "industry-record-detail",
    components: {
      IndustryMonthTaskInspectTable,
      IndustryQuarterTaskInspectTable,
    },
    data(){
      return {
        open: false,
        checkType: 1,
        inspectInfo: null
      }
    },
  }
</script>

<style scoped>

</style>
