fix(仪表板): 仪表板对删除的图表前端只检查一次状态,解决此类图表因重复检查图表状态导致后端错误日志过多的情况 #9926
This commit is contained in:
parent
aacc1f8ca6
commit
8f0d292f61
@ -85,7 +85,7 @@ i18n_datasource_delete=Data source is deleted
|
||||
i18n_dataset_delete=Data set is deleted
|
||||
i18n_dataset_cross_multiple=Cross multiple dataset is not supported
|
||||
i18n_dataset_no_permission=Data set no permission
|
||||
i18n_chart_delete=Chart is delete
|
||||
i18n_chart_delete=Err1001:Chart is delete
|
||||
i18n_not_exec_add_sync=There is no completed synchronization task. Incremental synchronization cannot be performed
|
||||
i18n_excel_header_empty=Excel first row can not empty
|
||||
i18n_excel_empty_column=There are empty cells in the first row
|
||||
|
||||
@ -85,7 +85,7 @@ i18n_datasource_delete=\u5F53\u524D\u7528\u5230\u7684\u6570\u636E\u6E90\u5DF2\u8
|
||||
i18n_dataset_delete=\u5F53\u524D\u7528\u5230\u7684\u6570\u636E\u96C6\u5DF2\u88AB\u5220\u9664
|
||||
i18n_dataset_cross_multiple=\u7981\u6B62\u8DE8\u6570\u636E\u96C6\u591A\u5B57\u6BB5
|
||||
i18n_dataset_no_permission=\u5F53\u524D\u7528\u5230\u7684\u6570\u636E\u96C6\u6CA1\u6709\u6743\u9650
|
||||
i18n_chart_delete=\u5F53\u524D\u7528\u5230\u7684\u89C6\u56FE\u5DF2\u88AB\u5220\u9664
|
||||
i18n_chart_delete=Err1001: \u5F53\u524D\u7528\u5230\u7684\u89C6\u56FE\u5DF2\u88AB\u5220\u9664
|
||||
i18n_not_exec_add_sync=\u6CA1\u6709\u5DF2\u5B8C\u6210\u7684\u540C\u6B65\u4EFB\u52A1\uFF0C\u65E0\u6CD5\u8FDB\u884C\u589E\u91CF\u540C\u6B65
|
||||
i18n_excel_header_empty=Excel\u7B2C\u4E00\u884C\u4E3A\u7A7A
|
||||
i18n_excel_empty_column=\u7B2C\u4E00\u884C\u5B58\u5728\u7A7A\u5355\u5143\u683C
|
||||
|
||||
@ -84,7 +84,7 @@ i18n_datasource_delete=\u7576\u524D\u7528\u5230\u7684\u6578\u64DA\u6E90\u5DF2\u8
|
||||
i18n_dataset_delete=\u7576\u524D\u7528\u5230\u7684\u6578\u64DA\u96C6\u5DF2\u88AB\u522A\u9664
|
||||
i18n_dataset_cross_multiple=\u7981\u6B62\u8DE8\u6578\u64DA\u96C6\u591A\u5B57\u6BB5
|
||||
i18n_dataset_no_permission=\u7576\u524D\u7528\u5230\u7684\u6578\u64DA\u96C6\u6C92\u6709\u6B0A\u9650
|
||||
i18n_chart_delete=\u7576\u524D\u7528\u5230\u7684\u8996\u5716\u5DF2\u88AB\u522A\u9664
|
||||
i18n_chart_delete=Err1001: \u7576\u524D\u7528\u5230\u7684\u8996\u5716\u5DF2\u88AB\u522A\u9664
|
||||
i18n_not_exec_add_sync=\u6C92\u6709\u5DF2\u7D93\u5B8C\u6210\u7684\u540C\u6B65\u4EFB\u52D9\uFF0C\u7121\u6CD5\u9032\u884C\u589E\u91CF\u540C\u6B65
|
||||
i18n_excel_header_empty=Excel\u7B2C\u4E00\u884C\u70BA\u7A7A
|
||||
i18n_excel_empty_column=\u7B2C\u4E00\u884C\u5B58\u5728\u7A7A\u55AE\u5143\u683C
|
||||
|
||||
@ -1001,7 +1001,8 @@ export default {
|
||||
}
|
||||
},
|
||||
getData(id, cache = true, dataBroadcast = false) {
|
||||
if (this.requestStatus === 'waiting') {
|
||||
// Err1001 已删除的不在重复请求
|
||||
if (this.requestStatus === 'waiting' || (this.message && this.message.indexOf('Err1001'))) {
|
||||
return
|
||||
}
|
||||
if (id) {
|
||||
@ -1109,12 +1110,6 @@ export default {
|
||||
return true
|
||||
}).catch(err => {
|
||||
console.error('err-' + err)
|
||||
// 还没有构内部刷新
|
||||
if (!this.innerRefreshTimer && this.editMode === 'preview') {
|
||||
setTimeout(() => {
|
||||
this.getData(this.element.propValue.viewId)
|
||||
}, 120000)
|
||||
}
|
||||
this.requestStatus = 'error'
|
||||
if (err.message && err.message.indexOf('timeout') > -1) {
|
||||
this.message = this.$t('panel.timeout_refresh')
|
||||
@ -1131,6 +1126,13 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 还没有构内部刷新
|
||||
if (!this.innerRefreshTimer && this.editMode === 'preview') {
|
||||
setTimeout(() => {
|
||||
this.getData(this.element.propValue.viewId)
|
||||
}, 120000)
|
||||
}
|
||||
this.isFirstLoad = false
|
||||
return true
|
||||
}).finally(() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user