|
@@ -140,6 +140,7 @@ export const play = (controlType, deviceType, frequencyVal?, state?, smokeDirect
|
|
|
export const playAnimate = async (selectData, duration?) => {
|
|
|
if (modalType === 'mainWindRect') {
|
|
|
if (selectData) {
|
|
|
+ debugger;
|
|
|
if (selectData.Fan1WindowOpen !== undefined) {
|
|
|
// 主风机水平窗开启
|
|
|
if (selectData.Fan1WindowOpen == 1) mainWindObj.openOrCloseWindow('front', 'openWindow');
|
|
@@ -159,50 +160,55 @@ export const playAnimate = async (selectData, duration?) => {
|
|
|
mainWindObj.openOrCloseValve('front', 'close', duration);
|
|
|
}
|
|
|
}
|
|
|
+ if (selectData.Fan2ButterflyOpen !== undefined) {
|
|
|
+ if (selectData.Fan2ButterflyOpen == 1) {
|
|
|
+ // 主风机蝶阀打开
|
|
|
+ mainWindObj.openOrCloseValve('back', 'open', duration);
|
|
|
+ } else {
|
|
|
+ // 主风机蝶阀关闭
|
|
|
+ mainWindObj.openOrCloseValve('back', 'close', duration);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (selectData.Fan1FreqHz !== undefined) {
|
|
|
// 主风机频率设置
|
|
|
mainWindObj.resetSmokeParam('front', selectData.Fan1FreqHz, duration);
|
|
|
}
|
|
|
+ if (selectData.Fan2FreqHz !== undefined) {
|
|
|
+ // 主风机频率设置
|
|
|
+ mainWindObj.resetSmokeParam('back', selectData.Fan2FreqHz, duration);
|
|
|
+ }
|
|
|
if (selectData.Fan1StartStatus) {
|
|
|
if (selectData.Fan1StartStatus == 1) {
|
|
|
// 主风机开启
|
|
|
mainWindObj.lookMotor('front', 'open', duration);
|
|
|
|
|
|
- if (selectData.Fan1FreqForwardRun && selectData.Fan1FreqForwardRun == 1) {
|
|
|
- // 主风机正转
|
|
|
- await mainWindObj.setSmokeDirection('front', 'tubPositivePath');
|
|
|
- } else if (selectData.Fan1FreqReverseRun && selectData.Fan1FreqReverseRun == 1) {
|
|
|
- // 主风机反转
|
|
|
- await mainWindObj.setSmokeDirection('front', 'tubInversePath');
|
|
|
- }
|
|
|
- if (mainWindObj.frontSmoke.frameId) mainWindObj.frontSmoke.startSmoke(duration);
|
|
|
+ // if (selectData.Fan1FreqForwardRun && selectData.Fan1FreqForwardRun == 1) {
|
|
|
+ // // 主风机正转
|
|
|
+ // await mainWindObj.setSmokeDirection('front', 'tubPositivePath');
|
|
|
+ // } else if (selectData.Fan1FreqReverseRun && selectData.Fan1FreqReverseRun == 1) {
|
|
|
+ // // 主风机反转
|
|
|
+ // await mainWindObj.setSmokeDirection('front', 'tubInversePath');
|
|
|
+ // }
|
|
|
+ // 齿轮转动
|
|
|
+ mainWindObj.startGearAnimation('front', 'open', 'tubPositivePath', selectData.Fan1FreqHz, duration);
|
|
|
+ await mainWindObj.setSmokeDirection('front', 'tubPositivePath');
|
|
|
+ if (!mainWindObj.frontSmoke.frameId) mainWindObj.frontSmoke.startSmoke(duration);
|
|
|
} else {
|
|
|
mainWindObj.lookMotor('front', 'close', duration);
|
|
|
}
|
|
|
}
|
|
|
- if (selectData.Fan2ButterflyOpen !== undefined) {
|
|
|
- if (selectData.Fan2ButterflyOpen == 1) {
|
|
|
- // 主风机蝶阀打开
|
|
|
- mainWindObj.openOrCloseVal('back', 'open', duration);
|
|
|
- } else {
|
|
|
- // 主风机蝶阀关闭
|
|
|
- mainWindObj.openOrCloseVal('back', 'close', duration);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (selectData.Fan2FreqHz) {
|
|
|
- // 备风机频率设置
|
|
|
- mainWindObj.resetSmokeParam('back', selectData.Fan1FreqHz, duration);
|
|
|
- }
|
|
|
if (selectData.Fan2StartStatus) {
|
|
|
if (selectData.Fan2StartStatus == 1) {
|
|
|
// 备风机开启
|
|
|
mainWindObj.lookMotor('back', 'open', duration);
|
|
|
- if (selectData.Fan2FreqForwardRun && selectData.Fan2FreqForwardRun == 1) {
|
|
|
- // 主风机正转
|
|
|
- } else if (selectData.Fan2FreqReverseRun && selectData.Fan2FreqReverseRun == 1) {
|
|
|
- // 主风机反转
|
|
|
- }
|
|
|
+ // if (selectData.Fan2FreqForwardRun && selectData.Fan2FreqForwardRun == 1) {
|
|
|
+ // // 主风机正转
|
|
|
+ // } else if (selectData.Fan2FreqReverseRun && selectData.Fan2FreqReverseRun == 1) {
|
|
|
+ // // 主风机反转
|
|
|
+ // }
|
|
|
+ await mainWindObj.setSmokeDirection('back', 'tubPositivePath');
|
|
|
+ if (!mainWindObj.backSmoke.frameId) mainWindObj.backSmoke.startSmoke(duration);
|
|
|
} else {
|
|
|
mainWindObj.lookMotor('back', 'close', duration);
|
|
|
}
|
|
@@ -240,7 +246,6 @@ export const setModelType = (type) => {
|
|
|
export const mountedThree = (playerVal1) => {
|
|
|
return new Promise(async (resolve) => {
|
|
|
model = new UseThree('#main3D', '#main3DCSS');
|
|
|
-
|
|
|
model.setEnvMap('test1');
|
|
|
model.renderer.toneMappingExposure = 1;
|
|
|
addLight();
|