|
@@ -214,12 +214,23 @@ async function handleRefreshAllChart(){
|
|
|
}
|
|
|
});
|
|
|
if(!code_arr.length) return showToast('请插入图表');
|
|
|
+
|
|
|
+ if(route.query.id) {
|
|
|
+ let res = await apiChart.getReportrefreshStatus({
|
|
|
+ Source: 'report',
|
|
|
+ ReportId: Number(route.query.id),
|
|
|
+ ReportChapterId: 0
|
|
|
+ });
|
|
|
+
|
|
|
+ if(!res.Data.RefreshResult) return showToast('图表正在刷新中,请勿重复操作')
|
|
|
+ }
|
|
|
+
|
|
|
const res=await apiChart.refreshChartMultiple({ChartInfoCode:code_arr})
|
|
|
if(res.Ret===200){
|
|
|
$('iframe').each((k,i) => {
|
|
|
$(i).attr('src',$(i).attr('src'))
|
|
|
});
|
|
|
- showToast('刷新成功')
|
|
|
+ showToast(res.Msg)
|
|
|
}
|
|
|
}
|
|
|
|