|  | @@ -45,7 +45,7 @@
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      import _this from '@/main.js'
 | 
	
		
			
				|  |  | -    import { ref, getCurrentInstance, onMounted, nextTick } from 'vue'
 | 
	
		
			
				|  |  | +    import { ref, getCurrentInstance, onMounted, nextTick, inject } from 'vue'
 | 
	
		
			
				|  |  |      const { proxy } = getCurrentInstance();
 | 
	
		
			
				|  |  |      const reportData = ref(props.reportData);
 | 
	
		
			
				|  |  |      const reportId = ref(props.reportId);
 | 
	
	
		
			
				|  | @@ -53,8 +53,10 @@
 | 
	
		
			
				|  |  |      const reportShow = ref(false);
 | 
	
		
			
				|  |  |      const pdfRef = ref(null);
 | 
	
		
			
				|  |  |      const echartsOptions = ref(new Map())
 | 
	
		
			
				|  |  | +    import useCommonStore from "@/store_v3/modules/common";
 | 
	
		
			
				|  |  |      const emit = defineEmits(['cancel','refreshReportList']);
 | 
	
		
			
				|  |  |      import { updateReportPdfUrl } from '@/api/agent/index.js';
 | 
	
		
			
				|  |  | +    const refreshReportTeamList = inject('refreshTeamList')
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      const cancel = () => {
 | 
	
		
			
				|  |  |          emit('cancel');
 | 
	
	
		
			
				|  | @@ -63,7 +65,6 @@
 | 
	
		
			
				|  |  |      const exportToPDF = async () => {
 | 
	
		
			
				|  |  |          const clonedEl = cloneEl();
 | 
	
		
			
				|  |  |          await reinitClonedCharts(clonedEl);
 | 
	
		
			
				|  |  | -        // return
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  |              reportShow.value = true;
 | 
	
		
			
				|  |  |              // 滚动到顶部确保完整渲染
 | 
	
	
		
			
				|  | @@ -73,12 +74,15 @@
 | 
	
		
			
				|  |  |              // const res = await exportPDF('pdf-content', reportName.value+'.pdf');
 | 
	
		
			
				|  |  |              const res = await exportPDF(clonedEl, reportName.value+'.pdf');
 | 
	
		
			
				|  |  |              if(res.data && res.data.code === 0) {
 | 
	
		
			
				|  |  | -                updateReportPdfUrl({id:reportId.value, fileUrl:res.data.data}).then(resu => {
 | 
	
		
			
				|  |  | +                updateReportPdfUrl({id:reportId.value, fileUrl:res.data.data}).then(async resu => {
 | 
	
		
			
				|  |  |                      if(resu.code!==0) return proxy.$message.error(res.msg)
 | 
	
		
			
				|  |  |                      proxy.$message.success('生成成功!');
 | 
	
		
			
				|  |  |                      reportShow.value = false;
 | 
	
		
			
				|  |  | -                    emit('refreshReportList',reportData.value.relationId);
 | 
	
		
			
				|  |  | -                    cancel();
 | 
	
		
			
				|  |  | +                    // await emit('refreshReportList',reportData.value.relationId);
 | 
	
		
			
				|  |  | +                    refreshReportTeamList(reportData.value.relationId,useCommonStore().$state.teamIndex) 
 | 
	
		
			
				|  |  | +                    nextTick(()=>{
 | 
	
		
			
				|  |  | +                        cancel();
 | 
	
		
			
				|  |  | +                    })
 | 
	
		
			
				|  |  |                  })
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          } catch (error) {
 |