mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
Compare commits
4 Commits
62011a1463
...
1f9802a2e8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f9802a2e8 | ||
|
|
b0260112e5 | ||
|
|
fb7bc2c7b9 | ||
|
|
6e130fdacf |
@ -45,11 +45,7 @@ export function importRoomFeeData(formData) {
|
||||
}
|
||||
}).then(response => {
|
||||
const res = response.data
|
||||
if (res.code === 0) {
|
||||
resolve(res.data)
|
||||
} else {
|
||||
reject(res.msg)
|
||||
}
|
||||
resolve(res)
|
||||
}).catch(error => {
|
||||
reject(error.response.data)
|
||||
})
|
||||
|
||||
@ -13,7 +13,7 @@ export function login(data) {
|
||||
// 可以在这里添加其他登录成功后的处理
|
||||
resolve(res)
|
||||
} else {
|
||||
reject(new Error(res.msg || '登录失败'))
|
||||
reject(res.msg || '登录失败')
|
||||
}
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
|
||||
@ -47,7 +47,7 @@ export default {
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('请求失败:', error)
|
||||
this.$message.error(this.$t('common.operateFail'))
|
||||
this.$message.error(error || this.$t('common.operateFail'))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -118,10 +118,17 @@ export default {
|
||||
})
|
||||
if (res.code === 0) {
|
||||
this.$message.success(this.$t('importRoomFee.message.importSuccess'))
|
||||
this.$emit('success')
|
||||
this.visible = false
|
||||
this.$emit('success')
|
||||
this.$router.push({
|
||||
path: '/views/system/assetImportLogDetail',
|
||||
query: {
|
||||
logId: res.data.logId,
|
||||
logType: 'importRoomFee'
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.error(res)
|
||||
this.$message.error(res.msg)
|
||||
}
|
||||
})
|
||||
} catch (error) {
|
||||
|
||||
@ -86,10 +86,13 @@ export default {
|
||||
this.loading = true;
|
||||
try {
|
||||
const { data } = await login(this.loginForm).catch(error => {
|
||||
this.$message.error(error.response.data);
|
||||
this.$message.error(error);
|
||||
this.refreshCaptcha();
|
||||
return { data: [] };
|
||||
});
|
||||
if (!data || data.length == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (data && data.length > 1) {
|
||||
this.$refs.selectLoginUserRef.openDialog(data);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user