This commit is contained in:
parent
ffaf738960
commit
4d23e028bb
|
|
@ -3,7 +3,7 @@
|
|||
<el-card>
|
||||
<template slot="header">
|
||||
<div class="card-header">
|
||||
<span>公寓列表</span>
|
||||
<span>公寓管理</span>
|
||||
<el-button type="primary" @click="handleAdd">添加公寓</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -75,7 +75,7 @@ export default {
|
|||
// 加载区域数据
|
||||
const regionsResponse = await regionApi.getAll()
|
||||
this.regions = regionsResponse
|
||||
|
||||
|
||||
// 构建查询参数
|
||||
const params = {
|
||||
regionId: this.searchForm.regionId,
|
||||
|
|
@ -83,7 +83,7 @@ export default {
|
|||
page: this.currentPage,
|
||||
pageSize: this.pageSize
|
||||
}
|
||||
|
||||
|
||||
// 加载公寓数据
|
||||
const apartmentsResponse = await apartmentApi.getAll(params)
|
||||
this.apartments = apartmentsResponse.data.map(apartment => {
|
||||
|
|
@ -160,4 +160,4 @@ export default {
|
|||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue