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
| <template>
| <keep-alive>
| <fault-cause-2-list
| v-if="nodeType === 0"
| :nodeSelected="nodeSelected"
| ></fault-cause-2-list>
| </keep-alive>
| </template>
|
| <script>
| import FaultCause2List from "./FaultCause2List";
| export default {
| name: 'FaultCauseRight',
| components: {
| FaultCause2List,
| },
| 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>
|
|