update video
This commit is contained in:
		
							
								
								
									
										18
									
								
								websocket/modules/kiln.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								websocket/modules/kiln.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
import utils from '../utils';
 | 
			
		||||
 | 
			
		||||
function genKilnInfo() {
 | 
			
		||||
	return {
 | 
			
		||||
		kilnPressure: utils.rand(0, 100) + 'Kpa',
 | 
			
		||||
		waterTemp: utils.rand(0, 100) + '℃',
 | 
			
		||||
		waterFlow: utils.rand(30, 90) + 'm³/h',
 | 
			
		||||
		waterPressure: utils.rand(10, 50) + 'Kpa',
 | 
			
		||||
		windPressure: utils.rand(10, 30) + 'Kpa',
 | 
			
		||||
		gasPressure: utils.rand(10, 30) + 'Kpa',
 | 
			
		||||
		// 碹顶加权温度
 | 
			
		||||
		topTemp: utils.rand(30, 60) + '℃',
 | 
			
		||||
		// 融化加权温度
 | 
			
		||||
		meltTemp: utils.rand(100, 200) + '℃',
 | 
			
		||||
	};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export default genKilnInfo;
 | 
			
		||||
							
								
								
									
										13
									
								
								websocket/modules/navGas.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								websocket/modules/navGas.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
// 天然气
 | 
			
		||||
import utils from '../utils';
 | 
			
		||||
 | 
			
		||||
function getNavGasInfo(type: 'history' | 'realtime') {
 | 
			
		||||
	switch (type) {
 | 
			
		||||
		case 'history':
 | 
			
		||||
			break;
 | 
			
		||||
		case 'realtime':
 | 
			
		||||
			break;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export default getNavGasInfo;
 | 
			
		||||
							
								
								
									
										7
									
								
								websocket/utils/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								websocket/utils/index.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
function rand(min: number, max: number) {
 | 
			
		||||
	return Math.floor(Math.random() * (max - min + 1)) + min;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
	rand,
 | 
			
		||||
};
 | 
			
		||||
		Reference in New Issue
	
	Block a user