|  | @@ -12,7 +12,7 @@ import { getAlarmData } from '@/api/rolldata'
 | 
	
		
			
				|  |  |  import { jumpPage } from '@/utils'
 | 
	
		
			
				|  |  |  import CrossSection from '@/components/CrossSection.vue'
 | 
	
		
			
				|  |  |  import { Vue3Marquee } from 'vue3-marquee'
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +import X2js from 'x2js';
 | 
	
		
			
				|  |  |  const appStore = useAppStore()
 | 
	
		
			
				|  |  |  const stationStore = useStationStore()
 | 
	
		
			
				|  |  |  const route = useRoute()
 | 
	
	
		
			
				|  | @@ -72,10 +72,13 @@ bus.on('handle_ue_response', (data) => {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  async function getAlarmInfo() {
 | 
	
		
			
				|  |  |    alarmInfo.value = await getAlarmData().then(res => {
 | 
	
		
			
				|  |  | -    debugger
 | 
	
		
			
				|  |  | -    res.data
 | 
	
		
			
				|  |  | +    // 实例化
 | 
	
		
			
				|  |  | +    let x2js = new X2js();
 | 
	
		
			
				|  |  | +    let xml = res;
 | 
	
		
			
				|  |  | +// 将xml解析为我们需要的json对象
 | 
	
		
			
				|  |  | +    let json = x2js.xml2js(xml);
 | 
	
		
			
				|  |  | +    return json.DataTable.diffgram.DocumentElement.Table.things
 | 
	
		
			
				|  |  |    })
 | 
	
		
			
				|  |  | -  debugger
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  onMounted(() => {
 |