mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 06:07:24 +08:00
v1.9 修复车辆导入 报错提示不明显的bug
This commit is contained in:
parent
0e21fc69d4
commit
35126b43cb
@ -94,10 +94,10 @@ export function importData(data) {
|
|||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
resolve(res)
|
resolve(res)
|
||||||
} else {
|
} else {
|
||||||
reject(new Error(res.msg || '导入失败'))
|
reject(res.msg)
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
reject(error)
|
reject(error.response.data)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -130,7 +130,7 @@ export function importCustomFee(data) {
|
|||||||
reject(new Error(res.msg || '导入自定义费用失败'))
|
reject(new Error(res.msg || '导入自定义费用失败'))
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
reject(error)
|
reject(error.response.data)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -14,10 +14,10 @@ export function importData(data) {
|
|||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
resolve(res)
|
resolve(res)
|
||||||
} else {
|
} else {
|
||||||
reject(new Error(res.msg || 'Failed to import data'))
|
reject(res.msg)
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
reject(error)
|
reject(error.response.data)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -216,7 +216,7 @@ export function importMeterWaterData(data) {
|
|||||||
const res = response.data
|
const res = response.data
|
||||||
resolve(res)
|
resolve(res)
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
reject(error)
|
reject(error.response.data)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,7 +17,7 @@ export function importData(formData) {
|
|||||||
}).then(response => {
|
}).then(response => {
|
||||||
resolve(response.data)
|
resolve(response.data)
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
reject(error)
|
reject(error.response.data)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -83,7 +83,7 @@ export default {
|
|||||||
this.$router.push(`/views/system/assetImportLogDetail?logId=${response.logId}&logType=importOwnerCar`)
|
this.$router.push(`/views/system/assetImportLogDetail?logId=${response.logId}&logType=importOwnerCar`)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('导入失败:', error)
|
console.error('导入失败:', error)
|
||||||
this.$message.error(error.message || this.$t('listOwnerCar.importError'))
|
this.$message.error(error )
|
||||||
} finally {
|
} finally {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
|||||||
@ -83,7 +83,7 @@ export default {
|
|||||||
this.$message.error(res.msg)
|
this.$message.error(res.msg)
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.$message.error(error.response.data)
|
this.$message.error(error)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -192,7 +192,7 @@ export default {
|
|||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
this.$emit('success', res.logId)
|
this.$emit('success', res.logId)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$message.error(error.response.data|| this.$t('common.importFailed'))
|
this.$message.error(error)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -193,7 +193,7 @@ export default {
|
|||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
this.$emit('success', res.logId)
|
this.$emit('success', res.logId)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$message.error(error.response.data || this.$t('common.importFailed'))
|
this.$message.error(error)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -130,7 +130,7 @@ export default {
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('导入物品失败:', error)
|
console.error('导入物品失败:', error)
|
||||||
this.$message.error(error.message || this.$t('resourceStoreManage.importFailed'))
|
this.$message.error(error)
|
||||||
} finally {
|
} finally {
|
||||||
this.importing = false
|
this.importing = false
|
||||||
}
|
}
|
||||||
|
|||||||
@ -121,7 +121,7 @@ export default {
|
|||||||
this.$message.error(res.msg)
|
this.$message.error(res.msg)
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$message.error(this.$t('historyFeeDetailImport.importError'))
|
this.$message.error(error)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
validateForm() {
|
validateForm() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user