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
32
33
34
35
36
|
<template>
<div>
<el-button @click="openEditModal">Edit Building</el-button>
<edit-floor ref="editModal" @refresh-data="refreshData" @refresh-tree="refreshTree" />
</div>
</template>
<script>
import EditFloor from '../editFloor'
export default {
components: {
EditFloor
},
methods: {
openEditModal() {
// 模拟楼栋数据
const buildingData = {
floorId: '123',
floorNum: 'A1',
floorName: 'A1 Building',
floorArea: '3000',
seq: 1,
remark: 'Main building'
}
this.$refs.editModal.open(buildingData)
},
refreshData() {
console.log('Refresh building list')
},
refreshTree(data) {
console.log('Refresh building tree with floorId:', data.floorId)
}
}
}
</script>
|