|
@@ -816,24 +816,34 @@ export default {
|
|
|
|
|
|
if(!code_arr.length) return this.$message.warning('请插入图表');
|
|
if(!code_arr.length) return this.$message.warning('请插入图表');
|
|
|
|
|
|
- const loading = this.$loading({
|
|
|
|
- lock: true,
|
|
|
|
- text: '刷新中..',
|
|
|
|
- spinner: 'el-icon-loading',
|
|
|
|
- background: 'rgba(0, 0, 0, 0.02)'
|
|
|
|
- });
|
|
|
|
|
|
+ if(this.$route.query.id) {
|
|
|
|
+ let res = await dataBaseInterface.getReportrefreshStatus({
|
|
|
|
+ Source: 'report',
|
|
|
|
+ ReportId: Number(this.$route.query.id),
|
|
|
|
+ ReportChapterId: 0
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ if(!res.Data.RefreshResult) return this.$message.warning('图表正在刷新中,请勿重复操作')
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // const loading = this.$loading({
|
|
|
|
+ // lock: true,
|
|
|
|
+ // text: '刷新中..',
|
|
|
|
+ // spinner: 'el-icon-loading',
|
|
|
|
+ // background: 'rgba(0, 0, 0, 0.02)'
|
|
|
|
+ // });
|
|
|
|
|
|
- const { Ret } = await dataBaseInterface.reportRefresh({
|
|
|
|
|
|
+ const { Ret,Msg } = await dataBaseInterface.reportRefresh({
|
|
ChartInfoCode: code_arr
|
|
ChartInfoCode: code_arr
|
|
})
|
|
})
|
|
|
|
|
|
- loading.close();
|
|
|
|
|
|
+ // loading.close();
|
|
|
|
|
|
if(Ret === 200) {
|
|
if(Ret === 200) {
|
|
$('iframe').each((k,i) => {
|
|
$('iframe').each((k,i) => {
|
|
$(i).attr('src',$(i).attr('src'))
|
|
$(i).attr('src',$(i).attr('src'))
|
|
});
|
|
});
|
|
- this.$message.success('刷新成功');
|
|
|
|
|
|
+ this.$message.success(Msg);
|
|
}
|
|
}
|
|
|
|
|
|
},1000),
|
|
},1000),
|