DetailInfo.vue 1.46 KB
Newer Older
耿迪迪's avatar
耿迪迪 committed
1
<template>
2
  <el-dialog title="检查记录详情" :visible.sync="detailOpen" width="1000px" append-to-body destroy-on-close :close-on-click-modal="false">
3
 
4 5
    <!-- 检查记录详情 -->
    <InspectInfo v-if="detailOpen" :detailInfo="detailInfo"/>
耿迪迪's avatar
耿迪迪 committed
6

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

11 12 13 14 15 16 17 18 19 20 21 22
    <el-divider content-position="left">上报时态</el-divider>
    <el-form label-width="140px">
      <el-row class="el-row-table"> 
          <el-col :span="12">
            <el-form-item label="上报时间">
              <span v-if="detailInfo.govUploadTime">{{ detailInfo.govUploadTime }}</span>
              <span v-else>-</span>
            </el-form-item>
          </el-col>
      </el-row>
    </el-form>

耿迪迪's avatar
耿迪迪 committed
23 24 25 26 27 28
  </el-dialog>

</template>

<script>
  import { getInfor } from "@/api/supervision/record";
29
  import InspectInfo from "./InspectInfo";
耿迪迪's avatar
耿迪迪 committed
30
  import Rectification from "./Rectification";
耿迪迪's avatar
耿迪迪 committed
31 32 33 34 35 36 37
  export default {
    name: "detail-info",
    data(){
        return{
          detailInfo: {
            fDeleteFlag: 0
          },
38
          detailOpen: false,
耿迪迪's avatar
耿迪迪 committed
39 40
        }
    },
41 42
    components:{
      InspectInfo,
耿迪迪's avatar
耿迪迪 committed
43
      Rectification
44
    },
耿迪迪's avatar
耿迪迪 committed
45 46 47 48 49 50 51 52
    methods:{
      getDetailInfo(id){
        getInfor(id).then(res =>{
          if(res.code == 200 && res.data){
            this.detailInfo = res.data;
            this.detailOpen = true;
          }
        })
53
      },
耿迪迪's avatar
耿迪迪 committed
54 55 56 57 58 59 60
    }
  }
</script>

<style scoped>

</style>