This commit is contained in:
wangxiaoxian 2026-03-03 14:27:44 +08:00
parent ffaf738960
commit 4d23e028bb
1 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<el-card> <el-card>
<template slot="header"> <template slot="header">
<div class="card-header"> <div class="card-header">
<span>公寓列表</span> <span>公寓管理</span>
<el-button type="primary" @click="handleAdd">添加公寓</el-button> <el-button type="primary" @click="handleAdd">添加公寓</el-button>
</div> </div>
</template> </template>
@ -75,7 +75,7 @@ export default {
// //
const regionsResponse = await regionApi.getAll() const regionsResponse = await regionApi.getAll()
this.regions = regionsResponse this.regions = regionsResponse
// //
const params = { const params = {
regionId: this.searchForm.regionId, regionId: this.searchForm.regionId,
@ -83,7 +83,7 @@ export default {
page: this.currentPage, page: this.currentPage,
pageSize: this.pageSize pageSize: this.pageSize
} }
// //
const apartmentsResponse = await apartmentApi.getAll(params) const apartmentsResponse = await apartmentApi.getAll(params)
this.apartments = apartmentsResponse.data.map(apartment => { this.apartments = apartmentsResponse.data.map(apartment => {
@ -160,4 +160,4 @@ export default {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
} }
</style> </style>