update video

This commit is contained in:
lb
2023-11-06 17:00:35 +08:00
parent 3d80530ad6
commit 6894aba781
15 changed files with 50 additions and 13 deletions

18
websocket/modules/kiln.ts Normal file
View 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;

View 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
View File

@@ -0,0 +1,7 @@
function rand(min: number, max: number) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
export default {
rand,
};