mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
v1.9 业主重置密码不显示问题
This commit is contained in:
parent
89cd2fed09
commit
b8952de5b1
@ -1,9 +1,16 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
export function importTempData(data) {
|
export function importTempData(data) {
|
||||||
return request({
|
|
||||||
url: '/importRoomFee/importTempData',
|
return new Promise((resolve, reject) => {
|
||||||
|
request({
|
||||||
|
url: '/callComponent/importRoomFee/importTempData',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
|
}).then(res => {
|
||||||
|
resolve(res.data)
|
||||||
|
}).catch(err => {
|
||||||
|
reject(err)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -61,7 +61,7 @@ export function resetStaffPwd(data) {
|
|||||||
}
|
}
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
const res = response.data
|
const res = response.data
|
||||||
if (res.code === 0) {
|
if (res.code == 0) {
|
||||||
resolve(res)
|
resolve(res)
|
||||||
} else {
|
} else {
|
||||||
reject(new Error(res.msg || '重置密码失败'))
|
reject(new Error(res.msg || '重置密码失败'))
|
||||||
|
|||||||
@ -161,9 +161,9 @@ export default {
|
|||||||
...this.form,
|
...this.form,
|
||||||
communityId: this.communityId
|
communityId: this.communityId
|
||||||
})
|
})
|
||||||
if (res.code === 0) {
|
if (res.code == 0) {
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
this.$emit('notify')
|
this.$emit('success')
|
||||||
this.$message.success(this.$t('tempImportRoomFee.createSuccess'))
|
this.$message.success(this.$t('tempImportRoomFee.createSuccess'))
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.msg)
|
this.$message.error(res.msg)
|
||||||
|
|||||||
@ -41,7 +41,7 @@ export default {
|
|||||||
|
|
||||||
const res = await resetStaffPwd(params)
|
const res = await resetStaffPwd(params)
|
||||||
this.$message.success(
|
this.$message.success(
|
||||||
this.$t('resetPwd.successMsg', { pwd: res.pwd }),
|
this.$t('common.resetPwdSuccess', { pwd: res.pwd }),
|
||||||
10000
|
10000
|
||||||
)
|
)
|
||||||
this.closeDialog()
|
this.closeDialog()
|
||||||
|
|||||||
@ -44,8 +44,8 @@ export default {
|
|||||||
logo: '',
|
logo: '',
|
||||||
companyName:'',
|
companyName:'',
|
||||||
loginForm: {
|
loginForm: {
|
||||||
username: 'wuxw',
|
username: '',
|
||||||
passwd: 'admin',
|
passwd: '',
|
||||||
validateCode: ''
|
validateCode: ''
|
||||||
},
|
},
|
||||||
captchaUrl: '',
|
captchaUrl: '',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user