zenglf
2023-08-17 7442a435d058bd17d6fc679e1b7956bf3a5d32ae
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
<template>
  <keep-alive>
    <fault-type-2-list
      v-if="nodeType === 0"
      :nodeSelected="nodeSelected"
    ></fault-type-2-list>
 
  </keep-alive>
</template>
 
<script>
import FaultType2List from "./FaultType2List";
 
export default {
  name: 'FaultTypeRight',
  components: {
    FaultType2List,
 
  },
  data() {
    return {
      description: '故障类型',
      currentOrgCode: '',
      nodeType: 0,
      nodeSelected: {}
    }
  },
  methods: {},
  mounted() {
    this.$bus.$on('getCurrSelected', (data) => {  //getCurrSelected 事件 接收组件传递的参数
      this.nodeType = (data.type == undefined ? 0 : data.type);
      this.nodeSelected = data;
    })
  },
}
</script>
 
<style scoped>
</style>