Commit 34ac519278eafcc7b05da83db4f072335f939df1
1 parent
b8d726f0
v1.9 优化性别不显示bug
Showing
4 changed files
with
4 additions
and
3 deletions
src/api/fee/roomFeeImportApi.js
src/components/fee/importRoomFee.vue
| ... | ... | @@ -114,7 +114,7 @@ export default { |
| 114 | 114 | formData.append('importAdapt', 'importRoomFee') |
| 115 | 115 | |
| 116 | 116 | const res = await importRoomFeeData(formData).catch(error => { |
| 117 | - return error | |
| 117 | + return {code: 500, msg: error} | |
| 118 | 118 | }) |
| 119 | 119 | if (res.code === 0) { |
| 120 | 120 | this.$message.success(this.$t('importRoomFee.message.importSuccess')) | ... | ... |
src/components/role/RoleStaff.vue
| ... | ... | @@ -20,7 +20,7 @@ |
| 20 | 20 | <el-table-column prop="address" :label="$t('role.address')" align="center" /> |
| 21 | 21 | <el-table-column :label="$t('role.sex')" align="center"> |
| 22 | 22 | <template slot-scope="scope"> |
| 23 | - {{ scope.row.sex === 0 ? $t('role.male') : $t('role.female') }} | |
| 23 | + {{ scope.row.sex == 0 ? $t('role.male') : $t('role.female') }} | |
| 24 | 24 | </template> |
| 25 | 25 | </el-table-column> |
| 26 | 26 | <el-table-column :label="$t('role.operation')" align="center" width="200"> | ... | ... |