mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +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 => {
|
}).then(response => {
|
||||||
const res = response.data
|
const res = response.data
|
||||||
if (res.code === 0) {
|
resolve(res)
|
||||||
resolve(res.data)
|
|
||||||
} else {
|
|
||||||
reject(res.msg)
|
|
||||||
}
|
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
reject(error.response.data)
|
reject(error.response.data)
|
||||||
})
|
})
|
||||||
|
|||||||
@ -13,7 +13,7 @@ export function login(data) {
|
|||||||
// 可以在这里添加其他登录成功后的处理
|
// 可以在这里添加其他登录成功后的处理
|
||||||
resolve(res)
|
resolve(res)
|
||||||
} else {
|
} else {
|
||||||
reject(new Error(res.msg || '登录失败'))
|
reject(res.msg || '登录失败')
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
reject(error)
|
reject(error)
|
||||||
|
|||||||
@ -47,7 +47,7 @@ export default {
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('请求失败:', 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) {
|
if (res.code === 0) {
|
||||||
this.$message.success(this.$t('importRoomFee.message.importSuccess'))
|
this.$message.success(this.$t('importRoomFee.message.importSuccess'))
|
||||||
this.$emit('success')
|
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
this.$emit('success')
|
||||||
|
this.$router.push({
|
||||||
|
path: '/views/system/assetImportLogDetail',
|
||||||
|
query: {
|
||||||
|
logId: res.data.logId,
|
||||||
|
logType: 'importRoomFee'
|
||||||
|
}
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res)
|
this.$message.error(res.msg)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@ -86,10 +86,13 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
try {
|
try {
|
||||||
const { data } = await login(this.loginForm).catch(error => {
|
const { data } = await login(this.loginForm).catch(error => {
|
||||||
this.$message.error(error.response.data);
|
this.$message.error(error);
|
||||||
this.refreshCaptcha();
|
this.refreshCaptcha();
|
||||||
return { data: [] };
|
return { data: [] };
|
||||||
});
|
});
|
||||||
|
if (!data || data.length == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (data && data.length > 1) {
|
if (data && data.length > 1) {
|
||||||
this.$refs.selectLoginUserRef.openDialog(data);
|
this.$refs.selectLoginUserRef.openDialog(data);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user