forked from github/dataease
refactor: 仪表板视图刷新超时后给出提示,下次刷新可自动恢复
* refactor: 仪表板视图刷新超时后给出提示,下次刷新可自动恢复 * refactor: 仪表板视图刷新超时后给出提示,下次刷新可自动恢复
This commit is contained in:
parent
4046846a7e
commit
d1c2eb1528
@ -319,13 +319,17 @@ export default {
|
||||
}
|
||||
return true
|
||||
}).catch(err => {
|
||||
this.httpRequest.status = err.response.data.success
|
||||
this.httpRequest.msg = err.response.data.message
|
||||
this.requestStatus = 'error'
|
||||
if (err && err.response && err.response.data) {
|
||||
this.message = err.response.data.message
|
||||
if (err.message && err.message.indexOf('timeout') > -1) {
|
||||
this.message = this.$t('panel.timeout_refresh')
|
||||
} else {
|
||||
this.message = err
|
||||
this.httpRequest.status = err.response.data.success
|
||||
this.httpRequest.msg = err.response.data.message
|
||||
if (err && err.response && err.response.data) {
|
||||
this.message = err.response.data.message
|
||||
} else {
|
||||
this.message = err
|
||||
}
|
||||
}
|
||||
return true
|
||||
})
|
||||
|
@ -1425,7 +1425,8 @@ export default {
|
||||
video_links: 'Video Links',
|
||||
video_add_tips: 'Please Add Video Info...',
|
||||
panel_view_result_show: 'View Result Show',
|
||||
panel_view_result_tips: 'Chose "Panel" Will Overwrite View`s Result,Range 1~10000'
|
||||
panel_view_result_tips: 'Chose "Panel" Will Overwrite View`s Result,Range 1~10000',
|
||||
timeout_refresh: 'Timeout,Will Refresh...'
|
||||
},
|
||||
plugin: {
|
||||
local_install: 'Local installation',
|
||||
|
@ -1428,7 +1428,8 @@ export default {
|
||||
video_links: '視頻鏈接',
|
||||
video_add_tips: '請點擊添加配置視頻信息...',
|
||||
panel_view_result_show: '視圖結果展示',
|
||||
panel_view_result_tips: '選擇儀表板會覆蓋視圖的結果展示數量,取值範圍1~10000'
|
||||
panel_view_result_tips: '選擇儀表板會覆蓋視圖的結果展示數量,取值範圍1~10000',
|
||||
timeout_refresh: '请求超时,稍后刷新...'
|
||||
},
|
||||
plugin: {
|
||||
local_install: '本地安裝',
|
||||
|
@ -1436,7 +1436,8 @@ export default {
|
||||
video_links: '视频链接',
|
||||
video_add_tips: '请点击添加配置视频信息...',
|
||||
panel_view_result_show: '视图结果展示',
|
||||
panel_view_result_tips: '选择仪表板会覆盖视图的结果展示数量,取值范围1~10000'
|
||||
panel_view_result_tips: '选择仪表板会覆盖视图的结果展示数量,取值范围1~10000',
|
||||
timeout_refresh: '请求超时,稍后刷新...'
|
||||
},
|
||||
plugin: {
|
||||
local_install: '本地安装',
|
||||
|
Loading…
Reference in New Issue
Block a user