Commit ff94119c1f928441e3a9d6eb81d2949ee4f4e003
1 parent
6f0d0f5b
v1.9 业主页面男女 bug 修复
Showing
2 changed files
with
5 additions
and
5 deletions
src/views/owner/listOwner.vue
| ... | ... | @@ -96,7 +96,7 @@ |
| 96 | 96 | |
| 97 | 97 | <el-table-column :label="$t('listOwner.columns.gender')" align="center"> |
| 98 | 98 | <template slot-scope="scope"> |
| 99 | - {{ scope.row.sex === 0 ? $t('listOwner.gender.male') : $t('listOwner.gender.female') }} | |
| 99 | + {{ scope.row.sex == 0 ? $t('listOwner.gender.male') : $t('listOwner.gender.female') }} | |
| 100 | 100 | </template> |
| 101 | 101 | </el-table-column> |
| 102 | 102 | |
| ... | ... | @@ -295,9 +295,9 @@ export default { |
| 295 | 295 | page: this.currentPage, |
| 296 | 296 | row: this.pageSize |
| 297 | 297 | } |
| 298 | - const { data, records } = await queryOwners(params) | |
| 298 | + const { data, total } = await queryOwners(params) | |
| 299 | 299 | this.owners = data |
| 300 | - this.total = records | |
| 300 | + this.total = total | |
| 301 | 301 | this.dealOwnerAttr(data) |
| 302 | 302 | } catch (error) { |
| 303 | 303 | console.error('Failed to get owner list:', error) | ... | ... |