DetailInfo.vue 1.03 KB
Newer Older
耿迪迪's avatar
耿迪迪 committed
1 2 3
<template>
  <el-dialog title="详情" :visible.sync="detailOpen" width="1000px" append-to-body destroy-on-close :close-on-click-modal="false">

4 5
    <!-- 检查记录详情 -->
    <InspectInfo v-if="detailOpen" :detailInfo="detailInfo"/>
耿迪迪's avatar
耿迪迪 committed
6

耿迪迪's avatar
耿迪迪 committed
7 8 9
    <!-- 隐患管理 -->
    <Rectification :fCheckCode="detailInfo.fCheckCode" :readOnly="true" v-if="detailOpen"/>

耿迪迪's avatar
耿迪迪 committed
10 11 12 13 14 15
  </el-dialog>

</template>

<script>
  import { getInfor } from "@/api/supervision/record";
16
  import InspectInfo from "./InspectInfo";
耿迪迪's avatar
耿迪迪 committed
17
  import Rectification from "./Rectification";
耿迪迪's avatar
耿迪迪 committed
18 19 20 21 22 23 24
  export default {
    name: "detail-info",
    data(){
        return{
          detailInfo: {
            fDeleteFlag: 0
          },
25
          detailOpen: false,
耿迪迪's avatar
耿迪迪 committed
26 27
        }
    },
28 29
    components:{
      InspectInfo,
耿迪迪's avatar
耿迪迪 committed
30
      Rectification
31
    },
耿迪迪's avatar
耿迪迪 committed
32 33 34 35 36 37 38 39
    methods:{
      getDetailInfo(id){
        getInfor(id).then(res =>{
          if(res.code == 200 && res.data){
            this.detailInfo = res.data;
            this.detailOpen = true;
          }
        })
40
      },
耿迪迪's avatar
耿迪迪 committed
41 42 43 44 45 46 47
    }
  }
</script>

<style scoped>

</style>