Blame view

src/components/owner/ownerCarsDemo.vue 362 Bytes
af1bcbd6   wuxw   房屋页面开发中
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  <template>
    <div>
      <el-button @click="openOwnerCars">查看业主车辆</el-button>
      <owner-cars ref="ownerCarsRef" />
    </div>
  </template>
  
  <script>
  import OwnerCars from './ownerCars'
  
  export default {
    components: {
      OwnerCars
    },
    methods: {
      openOwnerCars() {
        this.$refs.ownerCarsRef.open('456') // 传递业主ID
      }
    }
  }
  </script>