|  | @@ -13,25 +13,11 @@ import customHeader from '/@/components/vent/customHeader.vue';
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  let tableData = ref<any[]>([]);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -//获取粉尘监测结果数据
 | 
	
		
			
				|  |  |  async function getTableList() {
 | 
	
		
			
				|  |  |    let res = await getBundleInfoList({ type: 'bundle' });
 | 
	
		
			
				|  |  | -  console.log('API 返回的数据:', res); // 打印 API 返回的完整数据
 | 
	
		
			
				|  |  | -  if (res && res.result && typeof res.result.content === 'string') {
 | 
	
		
			
				|  |  | -    try {
 | 
	
		
			
				|  |  | -      let content = JSON.parse(res.result.content);
 | 
	
		
			
				|  |  | -      if (Array.isArray(content)) {
 | 
	
		
			
				|  |  | -        content.forEach((element) => {
 | 
	
		
			
				|  |  | -          element.zygx = '生产\n检修'; // 新增 zygx 字段
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | -        tableData.value = content;
 | 
	
		
			
				|  |  | -      } else {
 | 
	
		
			
				|  |  | -        console.error('解析后的 content 不是一个数组:', content);
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -    } catch (error) {
 | 
	
		
			
				|  |  | -      console.error('解析 content 字符串时出错:', error);
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -  }
 | 
	
		
			
				|  |  | +  const content = res.content;
 | 
	
		
			
				|  |  | +  let contentArr = JSON.parse(content);
 | 
	
		
			
				|  |  | +  tableData.value = contentArr;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  onMounted(() => {
 |