Merge pull request #11853 from dataease/pr@dev-v2@refactor_export-empty

refactor(仪表板、数据大屏): 图表导出增加空数据提示
This commit is contained in:
王嘉豪 2024-08-29 16:40:28 +08:00 committed by GitHub
commit af001d43b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -308,6 +308,10 @@ const downloadViewImage = () => {
const downloadViewDetails = (downloadType = 'view') => {
const viewDataInfo = dvMainStore.getViewDataDetails(viewInfo.value.id)
if (!viewDataInfo) {
ElMessage.error('当前无数据,无法导出')
return
}
const chartExtRequest = dvMainStore.getLastViewRequestInfo(viewInfo.value.id)
const chart = {
...viewInfo.value,