Commit ff94119c1f928441e3a9d6eb81d2949ee4f4e003

Authored by wuxw
1 parent 6f0d0f5b

v1.9 业主页面男女 bug 修复

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)
... ...
src/views/user/login/Login.vue
... ... @@ -44,8 +44,8 @@ export default {
44 44 logo: '',
45 45 companyName:'',
46 46 loginForm: {
47   - username: 'wuxw',
48   - passwd: 'admin',
  47 + username: '',
  48 + passwd: '',
49 49 validateCode: ''
50 50 },
51 51 captchaUrl: '',
... ...