Commit b8952de5b1ca440d835d22389a4caa8db1bc22a1
1 parent
89cd2fed
v1.9 业主重置密码不显示问题
Showing
5 changed files
with
18 additions
and
11 deletions
src/api/fee/tempImportRoomFeeApi.js
| 1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
| 2 | 2 | ||
| 3 | export function importTempData(data) { | 3 | export function importTempData(data) { |
| 4 | - return request({ | ||
| 5 | - url: '/importRoomFee/importTempData', | ||
| 6 | - method: 'post', | ||
| 7 | - data | 4 | + |
| 5 | + return new Promise((resolve, reject) => { | ||
| 6 | + request({ | ||
| 7 | + url: '/callComponent/importRoomFee/importTempData', | ||
| 8 | + method: 'post', | ||
| 9 | + data | ||
| 10 | + }).then(res => { | ||
| 11 | + resolve(res.data) | ||
| 12 | + }).catch(err => { | ||
| 13 | + reject(err) | ||
| 14 | + }) | ||
| 8 | }) | 15 | }) |
| 9 | -} | ||
| 10 | \ No newline at end of file | 16 | \ No newline at end of file |
| 17 | +} |
src/api/owner/auditAuthOwnerApi.js
| @@ -61,7 +61,7 @@ export function resetStaffPwd(data) { | @@ -61,7 +61,7 @@ export function resetStaffPwd(data) { | ||
| 61 | } | 61 | } |
| 62 | }).then(response => { | 62 | }).then(response => { |
| 63 | const res = response.data | 63 | const res = response.data |
| 64 | - if (res.code === 0) { | 64 | + if (res.code == 0) { |
| 65 | resolve(res) | 65 | resolve(res) |
| 66 | } else { | 66 | } else { |
| 67 | reject(new Error(res.msg || '重置密码失败')) | 67 | reject(new Error(res.msg || '重置密码失败')) |
src/components/fee/tempImportRoomFee.vue
| @@ -161,9 +161,9 @@ export default { | @@ -161,9 +161,9 @@ export default { | ||
| 161 | ...this.form, | 161 | ...this.form, |
| 162 | communityId: this.communityId | 162 | communityId: this.communityId |
| 163 | }) | 163 | }) |
| 164 | - if (res.code === 0) { | 164 | + if (res.code == 0) { |
| 165 | this.dialogVisible = false | 165 | this.dialogVisible = false |
| 166 | - this.$emit('notify') | 166 | + this.$emit('success') |
| 167 | this.$message.success(this.$t('tempImportRoomFee.createSuccess')) | 167 | this.$message.success(this.$t('tempImportRoomFee.createSuccess')) |
| 168 | } else { | 168 | } else { |
| 169 | this.$message.error(res.msg) | 169 | this.$message.error(res.msg) |
src/components/owner/ResetStaffPwd.vue
| @@ -41,7 +41,7 @@ export default { | @@ -41,7 +41,7 @@ export default { | ||
| 41 | 41 | ||
| 42 | const res = await resetStaffPwd(params) | 42 | const res = await resetStaffPwd(params) |
| 43 | this.$message.success( | 43 | this.$message.success( |
| 44 | - this.$t('resetPwd.successMsg', { pwd: res.pwd }), | 44 | + this.$t('common.resetPwdSuccess', { pwd: res.pwd }), |
| 45 | 10000 | 45 | 10000 |
| 46 | ) | 46 | ) |
| 47 | this.closeDialog() | 47 | this.closeDialog() |
src/views/user/login/Login.vue
| @@ -44,8 +44,8 @@ export default { | @@ -44,8 +44,8 @@ export default { | ||
| 44 | logo: '', | 44 | logo: '', |
| 45 | companyName:'', | 45 | companyName:'', |
| 46 | loginForm: { | 46 | loginForm: { |
| 47 | - username: 'wuxw', | ||
| 48 | - passwd: 'admin', | 47 | + username: '', |
| 48 | + passwd: '', | ||
| 49 | validateCode: '' | 49 | validateCode: '' |
| 50 | }, | 50 | }, |
| 51 | captchaUrl: '', | 51 | captchaUrl: '', |