fix:修复NetworkOverviewTabs报错时message字段使用
This commit is contained in:
@@ -337,14 +337,14 @@ export default {
|
|||||||
this.initData()
|
this.initData()
|
||||||
} else {
|
} else {
|
||||||
this.showError = true
|
this.showError = true
|
||||||
this.errorMsg = response.msg || response.message || 'Unknown'
|
this.errorMsg = response.message || 'Unknown'
|
||||||
this.isNoData = true
|
this.isNoData = true
|
||||||
this.toggleLoading(false)
|
this.toggleLoading(false)
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
this.showError = true
|
this.showError = true
|
||||||
this.errorMsg = e.msg || e.message || 'Unknown'
|
this.errorMsg = e.message || 'Unknown'
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.changeUrlTabState()
|
this.changeUrlTabState()
|
||||||
this.toggleLoading(false)
|
this.toggleLoading(false)
|
||||||
@@ -694,12 +694,12 @@ export default {
|
|||||||
})
|
})
|
||||||
}else {
|
}else {
|
||||||
tableColumn.showError = true
|
tableColumn.showError = true
|
||||||
tableColumn.errorMsg = response.msg || response.message || 'Unknown'
|
tableColumn.errorMsg = response.message || 'Unknown'
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
tableColumn.showError = true
|
tableColumn.showError = true
|
||||||
tableColumn.errorMsg = e.msg || e.message || 'Unknown'
|
tableColumn.errorMsg = e.message || 'Unknown'
|
||||||
}).finally(e => {
|
}).finally(e => {
|
||||||
this.tableData = tableDataTmp
|
this.tableData = tableDataTmp
|
||||||
this.tableDataBackup = tableDataTmp
|
this.tableDataBackup = tableDataTmp
|
||||||
@@ -737,12 +737,12 @@ export default {
|
|||||||
})
|
})
|
||||||
}else {
|
}else {
|
||||||
tableColumn.showError = true
|
tableColumn.showError = true
|
||||||
tableColumn.errorMsg = response.msg || response.message || 'Unknown'
|
tableColumn.errorMsg = response.message || 'Unknown'
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
tableColumn.showError = true
|
tableColumn.showError = true
|
||||||
tableColumn.errorMsg = e.msg || e.message || 'Unknown'
|
tableColumn.errorMsg = e.message || 'Unknown'
|
||||||
}).finally(e => {
|
}).finally(e => {
|
||||||
// 查询需要单独查询的,且需要展示环比图标,列的前一周期的数据
|
// 查询需要单独查询的,且需要展示环比图标,列的前一周期的数据
|
||||||
if (tableColumn.cycle && self.tableData && self.tableData.length > 0) {
|
if (tableColumn.cycle && self.tableData && self.tableData.length > 0) {
|
||||||
@@ -805,12 +805,12 @@ export default {
|
|||||||
})
|
})
|
||||||
}else {
|
}else {
|
||||||
tableColumn.showError = true
|
tableColumn.showError = true
|
||||||
tableColumn.errorMsg = response.msg || response.message || 'Unknown'
|
tableColumn.errorMsg = response.message || 'Unknown'
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
tableColumn.showError = true
|
tableColumn.showError = true
|
||||||
tableColumn.errorMsg = e.msg || e.message || 'Unknown'
|
tableColumn.errorMsg = e.message || 'Unknown'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user