Blame view

src/components/room/floorUnitTreeDemo.vue 566 Bytes
b25b036d   wuxw   v1.9 优化日期
1
  <template>
af1bcbd6   wuxw   房屋页面开发中
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
    <floor-unit-tree
      :call-back-listener="callbackListener"
      @switchFloor="handleSwitchFloor"
      @switchUnit="handleSwitchUnit"
    />
  </template>
  
  <script>
  import FloorUnitTree from '@/components/room/floorUnitTree'
  
  export default {
    components: {
      FloorUnitTree
    },
    data() {
      return {
        callbackListener: 'demoFloorUnitTree'
      }
    },
    methods: {
      handleSwitchFloor(data) {
        console.log('切换楼栋', data.floorId)
      },
      handleSwitchUnit(data) {
        console.log('切换单元', data.unitId)
      }
    }
  }
  </script>