DetailInfo.vue 1.26 KB
Newer Older
耿迪迪's avatar
耿迪迪 committed
1
<template>
2 3
  <el-dialog title="详情" :visible.sync="detailOpen" width="1200px" append-to-body destroy-on-close :close-on-click-modal="false">
    <!-- 任务详情 -->
4
    <TaskInfo v-if="detailOpen" :detailInfo="detailInfo"/>
耿迪迪's avatar
耿迪迪 committed
5

6 7
    <!-- 检查范围 -->
    <Scope v-if="detailOpen" :fHazardCheckTaskId="detailInfo.fInsTaskInforId"/>
耿迪迪's avatar
耿迪迪 committed
8

9 10
    <!-- 检查项 -->
    <Inspect v-if="detailOpen" :fCheckTaskCode="detailInfo.fUniqueCode"/>
耿迪迪's avatar
耿迪迪 committed
11

12 13
    <!-- 调查项 -->
    <Survey v-if="detailOpen" :fCheckTaskCode="detailInfo.fUniqueCode"/>
耿迪迪's avatar
耿迪迪 committed
14 15 16 17 18 19 20

  </el-dialog>

</template>

<script>
  import { getInfor } from "@/api/supervision/task";
21 22 23 24
  import TaskInfo from "./TaskInfo";
  import Scope from "./Scope";
  import Inspect from "./Inspect";
  import Survey from "./Survey";
耿迪迪's avatar
耿迪迪 committed
25 26
  export default {
    name: "detail-info",
27 28 29 30 31 32
    components:{
      TaskInfo,
      Scope,
      Inspect,
      Survey
    },
耿迪迪's avatar
耿迪迪 committed
33 34
    data(){
        return{
耿迪迪's avatar
耿迪迪 committed
35 36 37
          detailInfo: {
            fDeleteFlag: 0
          },
耿迪迪's avatar
耿迪迪 committed
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
          detailOpen: false
        }
    },
    methods:{
      getDetailInfo(id){
        getInfor(id).then(res =>{
          if(res.code == 200 && res.data){
            this.detailInfo = res.data;
            this.detailOpen = true;
          }
        })
      }
    }
  }
</script>

<style scoped>

</style>