qushaowei
2023-10-07 99b1c362ad86b20c68c5925bd7d641c49f350d76
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
<template>
  <keep-alive>
    <site-list v-if="nodeType === 0"></site-list>
    <area-list
      v-else-if="nodeType === 1"
      :nodeSelected="nodeSelected"
    ></area-list>
    <production-line-list
      v-else-if="nodeType === 2"
      :nodeSelected="nodeSelected"
    ></production-line-list>
  </keep-alive>
</template>
 
<script>
import SiteList from "./SiteList";
import AreaList from "./AreaList";
import ProductionLineList from "./ProductionLineList";
export default {
  name: 'SiteAreaLineManagerRight',
  components: { SiteList, AreaList, ProductionLineList },
  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>