派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-30 0110b78419d98e114c59fa9fb6f69663fbdc3c98
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<template>
  <el-dialog :visible.sync="isShow" class="effect-vol-calc" title="分析" :modal="false" v-dialog-drag
             :before-close="handleClose">
 
<!--&lt;!&ndash;    基本信息&ndash;&gt;-->
<!--    <event-base-info>-->
 
<!--    </event-base-info>-->
<!--    建议处置-->
    <disposal-proposed>
 
    </disposal-proposed>
    <!--    有效容积计算-->
    <div class="footer">
      <el-button type="primary" size="mini" @click="toggleShowCalc">事故水计算</el-button>
      <el-button type="primary" size="mini" @click="toggleShowResInfo">周边资源</el-button>
      <el-button type="primary" size="mini" @click="toggleShowReportDoc">生成报告</el-button>
<!--      <el-button type="primary" size="mini" @click="close">返回</el-button>-->
    </div>
 
    <effective-volume-calc ref="effectVolCalc"></effective-volume-calc>
    <event-report-doc ref="eventReportDoc" :reportItemCon="reportItemCon"> </event-report-doc>
    <res-info ref="resInfo"></res-info>
  </el-dialog>
 
</template>
 
<script>
 
import DisposalProposed from '@components/base-page/enterprise-emergency/event-handling/DisposalProposed'
import EffectiveVolumeCalc from '@components/base-page/enterprise-emergency/EffectiveVolumeCalc'
import EventReportDoc from '@components/base-page/enterprise-emergency/event-handling/EventReportDoc'
import ResInfo from '@components/base-page/enterprise-emergency/event-handling/ResInfo'
import eventBus from '../../../../eventBus'
export default {
  name: 'EventHandling',
  components: { ResInfo, EventReportDoc, DisposalProposed, EffectiveVolumeCalc },
  data () {
    return {
      isShow: false,
      reportItemCon: {
        popupType: 'aaa'
      }
    }
  },
  mounted () {
    // this.wfsHelper = new WfsHelper()
    eventBus.$on('event-handling', () => {
      this.isShow = !this.isShow
    })
  },
  methods: {
    toggleShowCalc () {
      const s = this.$refs.effectVolCalc.getVisible()
      this.$refs.effectVolCalc.setVisible(!s)
    },
    toggleShowResInfo () {
      const s = this.$refs.resInfo.getVisible()
      this.$refs.resInfo.setVisible(!s)
    },
    toggleShowReportDoc () {
      const s = this.$refs.eventReportDoc.getVisible()
      this.$refs.eventReportDoc.setVisible(!s)
    },
    report () {
      console.log('生成报告')
    },
    close () { console.log('返回') },
 
    handleClose () {
      this.isShow = false
    }
 
  }
}
</script>
 
<style lang="less" scoped>
.footer{
  text-align: right;
  margin: 15px;
}
 
</style>