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="openOwnerComplaints">查看业主投诉</el-button> <owner-complaints ref="ownerComplaintsRef" /> </div> </template> <script> import OwnerComplaints from './ownerComplaints' export default { components: { OwnerComplaints }, methods: { openOwnerComplaints() { this.$refs.ownerComplaintsRef.open('789') // 传递业主ID } } } </script>