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
28
29
30
31
|
<template>
<div>
<el-button type="danger" @click="openDeleteUnit">删除单元</el-button>
<delete-unit ref="deleteUnit" @refresh-tree="refreshTree" @refresh-data="refreshData" />
</div>
</template>
<script>
import DeleteUnit from './deleteUnit'
export default {
components: {
DeleteUnit
},
methods: {
openDeleteUnit() {
const unitData = {
floorId: '123',
unitId: '456'
}
this.$refs.deleteUnit.open(unitData)
},
refreshTree(data) {
console.log('刷新树结构', data)
},
refreshData(data) {
console.log('刷新数据', data)
}
}
}
</script>
|