|  |  | @ -205,23 +205,36 @@ const DeviceTypeMap = { | 
			
		
	
		
			
				
					|  |  |  |   14: "光线在线监测", | 
			
		
	
		
			
				
					|  |  |  |  */ | 
			
		
	
		
			
				
					|  |  |  | export function getDeviceList(deviceType, options) { | 
			
		
	
		
			
				
					|  |  |  |   console.log("++++++++++++", options); | 
			
		
	
		
			
				
					|  |  |  |   return new Promise((resolve, reject) => { | 
			
		
	
		
			
				
					|  |  |  |     if (!deviceType) { | 
			
		
	
		
			
				
					|  |  |  |       Message.error(`${DeviceTypeMap[deviceType]}设备加载失败!`); | 
			
		
	
		
			
				
					|  |  |  |       return reject(); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     const data = { | 
			
		
	
		
			
				
					|  |  |  |       deviceType, | 
			
		
	
		
			
				
					|  |  |  |       ...options, | 
			
		
	
		
			
				
					|  |  |  |     }; | 
			
		
	
		
			
				
					|  |  |  |     // const data = {
 | 
			
		
	
		
			
				
					|  |  |  |     //   deviceType,
 | 
			
		
	
		
			
				
					|  |  |  |     //   ...options,
 | 
			
		
	
		
			
				
					|  |  |  |     // };
 | 
			
		
	
		
			
				
					|  |  |  |     let newEndStakeMark = []; | 
			
		
	
		
			
				
					|  |  |  |     let newStartStakeMark = []; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     options.endStakeMark.forEach((item) => { | 
			
		
	
		
			
				
					|  |  |  |       newEndStakeMark.push(String(item)); | 
			
		
	
		
			
				
					|  |  |  |     }); | 
			
		
	
		
			
				
					|  |  |  |     options.startStakeMark.forEach((item) => { | 
			
		
	
		
			
				
					|  |  |  |       newStartStakeMark.push(String(item)); | 
			
		
	
		
			
				
					|  |  |  |     }); | 
			
		
	
		
			
				
					|  |  |  |     request( | 
			
		
	
		
			
				
					|  |  |  |       Object.keys(options || {}).length | 
			
		
	
		
			
				
					|  |  |  |         ? { | 
			
		
	
		
			
				
					|  |  |  |             url: "/business/device/pileNumberQuery", | 
			
		
	
		
			
				
					|  |  |  |             method: "POST", | 
			
		
	
		
			
				
					|  |  |  |             data, | 
			
		
	
		
			
				
					|  |  |  |             data: { | 
			
		
	
		
			
				
					|  |  |  |               deviceType, | 
			
		
	
		
			
				
					|  |  |  |               endStakeMark: newEndStakeMark, | 
			
		
	
		
			
				
					|  |  |  |               startStakeMark: newStartStakeMark, | 
			
		
	
		
			
				
					|  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |         : { | 
			
		
	
		
			
				
					|  |  |  |             url: "/business/device/query", | 
			
		
	
	
		
			
				
					|  |  | 
 |