[update 解读流程] 接口报错增加提示
This commit is contained in:
@@ -249,6 +249,7 @@ module.exports = {
|
|||||||
disableInput: 'Inhibit Input',
|
disableInput: 'Inhibit Input',
|
||||||
fileUploadError: 'File Upload Error',
|
fileUploadError: 'File Upload Error',
|
||||||
importMaxMsg: 'The maximum size for importing files is {size}MB',
|
importMaxMsg: 'The maximum size for importing files is {size}MB',
|
||||||
|
pageDataException: 'Page Data Exception',
|
||||||
// 标准字段
|
// 标准字段
|
||||||
standardField: {
|
standardField: {
|
||||||
standardEnglishName: 'Regulation English Name',
|
standardEnglishName: 'Regulation English Name',
|
||||||
|
|||||||
@@ -249,6 +249,7 @@ module.exports = {
|
|||||||
disableInput: '禁止输入',
|
disableInput: '禁止输入',
|
||||||
fileUploadError: '文件上传错误',
|
fileUploadError: '文件上传错误',
|
||||||
importMaxMsg: '导入文件最大{size}MB',
|
importMaxMsg: '导入文件最大{size}MB',
|
||||||
|
pageDataException: '页面数据异常',
|
||||||
// 标准字段
|
// 标准字段
|
||||||
standardField: {
|
standardField: {
|
||||||
standardEnglishName: '标准英文名称',
|
standardEnglishName: '标准英文名称',
|
||||||
|
|||||||
@@ -384,6 +384,8 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.$message.warn(res.message)
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -642,6 +644,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
this.$message.warn(this.$t('pageDataException'))
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -680,6 +683,8 @@ export default {
|
|||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
if (err && err.message && tabList.includes(err.message)) {
|
if (err && err.message && tabList.includes(err.message)) {
|
||||||
this.switchChange(err.message)
|
this.switchChange(err.message)
|
||||||
|
} else {
|
||||||
|
this.$message.warn(this.$t('pageDataException'))
|
||||||
}
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -711,6 +716,8 @@ export default {
|
|||||||
console.log(err)
|
console.log(err)
|
||||||
if (err && err.message && tabList.includes(err.message)) {
|
if (err && err.message && tabList.includes(err.message)) {
|
||||||
this.switchChange(err.message)
|
this.switchChange(err.message)
|
||||||
|
} else {
|
||||||
|
this.$message.warn(this.$t('pageDataException'))
|
||||||
}
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user