af1bcbd6
wuxw
房屋页面开发中
|
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
37
38
|
<p>{{ $t('room.deleteFloor.confirmMessage') }}</p>
<span slot="footer" class="dialog-footer">
<el-button @click="handleClose">{{ $t('room.deleteFloor.cancelText') }}</el-button>
<el-button type="danger" @click="handleDelete">{{ $t('room.deleteFloor.confirmDelete') }}</el-button>
</span>
</el-dialog>
</template>
<script>
import { deleteFloor } from '@/api/room/deleteFloorApi'
export default {
name: 'DeleteFloor',
data() {
return {
visible: false,
floorInfo: {
floorId: '',
communityId: this.getCommunityId()
}
}
},
methods: {
open(floorInfo) {
this.floorInfo = {
...floorInfo,
communityId: this.getCommunityId()
}
this.visible = true
},
handleClose() {
this.visible = false
},
async handleDelete() {
try {
const response = await deleteFloor(this.floorInfo)
|