af1bcbd6
wuxw
房屋页面开发中
|
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
|
<template>
<div>
<el-button type="primary" @click="openAddUnit">添加单元</el-button>
<add-unit ref="addUnit" @refresh-tree="refreshTree" @refresh-data="refreshData" />
</div>
</template>
<script>
import AddUnit from './addUnit'
export default {
components: {
AddUnit
},
methods: {
openAddUnit() {
this.$refs.addUnit.open({ floorId: '123' })
},
refreshTree(data) {
console.log('刷新树结构', data)
},
refreshData(data) {
console.log('刷新数据', data)
}
}
}
</script>
|