|
|
@@ -407,7 +407,12 @@ export const playAnimate = async (selectData, duration?) => {
|
|
|
mainObj['airChu2'].visible = false;
|
|
|
}
|
|
|
mainObj.startGearAnimation('back', 'open', 'tubPositivePath', selectData.Fan2FreqHz, duration);
|
|
|
- await mainObj.setSmokeDirection('back', 'tubPositivePath');
|
|
|
+ // await mainObj.setSmokeDirection('back', 'tubPositivePath');
|
|
|
+ if (selectData['Fan2OpenWindow'] == 1 && selectData['Fan2CloseWindow'] == 0) {
|
|
|
+ await mainObj.setSmokeDirection('back', 'windowPositivePath');
|
|
|
+ } else {
|
|
|
+ await mainObj.setSmokeDirection('back', 'tubPositivePath');
|
|
|
+ }
|
|
|
} else if (selectData.Fan2FreqReverseRun == 1 && selectData.Fan2FreqForwardRun == 0) {
|
|
|
// 主风机反转
|
|
|
if (mainObj['airJin1'] && !mainObj['airJin1'].visible) {
|
|
|
@@ -417,7 +422,12 @@ export const playAnimate = async (selectData, duration?) => {
|
|
|
mainObj['airChu2'].visible = false;
|
|
|
}
|
|
|
mainObj.startGearAnimation('back', 'open', 'tubInversePath', selectData.Fan2FreqHz, duration);
|
|
|
- await mainObj.setSmokeDirection('back', 'tubInversePath');
|
|
|
+ // await mainObj.setSmokeDirection('back', 'tubInversePath');
|
|
|
+ if (selectData['Fan1OpenWindow'] == 1 && selectData['Fan1CloseWindow'] == 0) {
|
|
|
+ await mainObj.setSmokeDirection('back', 'windowPositivePath');
|
|
|
+ } else {
|
|
|
+ await mainObj.setSmokeDirection('back', 'tubInversePath');
|
|
|
+ }
|
|
|
} else {
|
|
|
if (mainObj['airChu1'] && !mainObj['airChu1'].visible) {
|
|
|
mainObj['airJin1'].visible = false;
|
|
|
@@ -426,7 +436,12 @@ export const playAnimate = async (selectData, duration?) => {
|
|
|
mainObj['airChu2'].visible = false;
|
|
|
}
|
|
|
mainObj.startGearAnimation('back', 'open', 'tubPositivePath', selectData.Fan2FreqHz, duration);
|
|
|
- await mainObj.setSmokeDirection('back', 'tubPositivePath');
|
|
|
+ // await mainObj.setSmokeDirection('back', 'tubPositivePath');
|
|
|
+ if (selectData['Fan2OpenWindow'] == 1 && selectData['Fan2CloseWindow'] == 0) {
|
|
|
+ await mainObj.setSmokeDirection('back', 'windowPositivePath');
|
|
|
+ } else {
|
|
|
+ await mainObj.setSmokeDirection('back', 'tubPositivePath');
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (!mainObj?.backSmoke?.frameId) mainObj?.backSmoke?.startSmoke(duration);
|
|
|
@@ -452,7 +467,11 @@ export const playAnimate = async (selectData, duration?) => {
|
|
|
mainObj['airChu2'].visible = true;
|
|
|
}
|
|
|
mainObj.startGearAnimation('front', 'open', 'tubPositivePath', selectData.Fan2FreqHz, duration);
|
|
|
- await mainObj.setSmokeDirection('front', 'tubPositivePath');
|
|
|
+ if (selectData['Fan2OpenWindow'] == 1 && selectData['Fan2CloseWindow'] == 0) {
|
|
|
+ await mainObj.setSmokeDirection('front', 'windowPositivePath');
|
|
|
+ } else {
|
|
|
+ await mainObj.setSmokeDirection('front', 'tubPositivePath');
|
|
|
+ }
|
|
|
} else if (selectData.Fan2FreqReverseRun == 1 && selectData.Fan2FreqForwardRun == 0) {
|
|
|
// 主风机反转
|
|
|
if (mainObj['airJin2'] && !mainObj['airJin2'].visible) {
|
|
|
@@ -462,7 +481,11 @@ export const playAnimate = async (selectData, duration?) => {
|
|
|
mainObj['airChu2'].visible = false;
|
|
|
}
|
|
|
mainObj.startGearAnimation('front', 'open', 'tubInversePath', selectData.Fan2FreqHz, duration);
|
|
|
- await mainObj.setSmokeDirection('front', 'tubInversePath');
|
|
|
+ if (selectData['Fan1OpenWindow'] == 1 && selectData['Fan1CloseWindow'] == 0) {
|
|
|
+ await mainObj.setSmokeDirection('front', 'windowPositivePath');
|
|
|
+ } else {
|
|
|
+ await mainObj.setSmokeDirection('front', 'tubInversePath');
|
|
|
+ }
|
|
|
} else {
|
|
|
// 默认主风机正转
|
|
|
if (mainObj['airChu2'] && !mainObj['airChu2'].visible) {
|
|
|
@@ -472,7 +495,11 @@ export const playAnimate = async (selectData, duration?) => {
|
|
|
mainObj['airChu2'].visible = true;
|
|
|
}
|
|
|
mainObj.startGearAnimation('front', 'open', 'tubPositivePath', selectData.Fan2FreqHz, duration);
|
|
|
- await mainObj.setSmokeDirection('front', 'tubPositivePath');
|
|
|
+ if (selectData['Fan2OpenWindow'] == 1 && selectData['Fan2CloseWindow'] == 0) {
|
|
|
+ await mainObj.setSmokeDirection('front', 'windowPositivePath');
|
|
|
+ } else {
|
|
|
+ await mainObj.setSmokeDirection('front', 'tubPositivePath');
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (!mainObj?.frontSmoke?.frameId) mainObj?.frontSmoke?.startSmoke(duration);
|
|
|
@@ -496,7 +523,12 @@ export const playAnimate = async (selectData, duration?) => {
|
|
|
mainObj['airChu2'].visible = false;
|
|
|
}
|
|
|
mainObj.startGearAnimation('back', 'open', 'tubPositivePath', selectData.Fan1FreqHz, duration);
|
|
|
- await mainObj.setSmokeDirection('back', 'tubPositivePath');
|
|
|
+ // await mainObj.setSmokeDirection('back', 'tubPositivePath');
|
|
|
+ if (selectData['Fan1OpenWindow'] == 1 && selectData['Fan1CloseWindow'] == 0) {
|
|
|
+ await mainObj.setSmokeDirection('back', 'windowPositivePath');
|
|
|
+ } else {
|
|
|
+ await mainObj.setSmokeDirection('back', 'tubPositivePath');
|
|
|
+ }
|
|
|
} else if (selectData.Fan1FreqReverseRun == 1 && selectData.Fan1FreqForwardRun == 0) {
|
|
|
// 主风机反转
|
|
|
if (mainObj['airJin1'] && !mainObj['airJin1'].visible) {
|
|
|
@@ -506,7 +538,12 @@ export const playAnimate = async (selectData, duration?) => {
|
|
|
mainObj['airChu2'].visible = false;
|
|
|
}
|
|
|
mainObj.startGearAnimation('back', 'open', 'tubInversePath', selectData.Fan1FreqHz, duration);
|
|
|
- await mainObj.setSmokeDirection('back', 'tubInversePath');
|
|
|
+ // await mainObj.setSmokeDirection('back', 'tubInversePath');
|
|
|
+ if (selectData['Fan1OpenWindow'] == 1 && selectData['Fan1CloseWindow'] == 0) {
|
|
|
+ await mainObj.setSmokeDirection('back', 'windowInversePath');
|
|
|
+ } else {
|
|
|
+ await mainObj.setSmokeDirection('back', 'tubInversePath');
|
|
|
+ }
|
|
|
} else {
|
|
|
if (mainObj['airChu1'] && !mainObj['airChu1'].visible) {
|
|
|
mainObj['airJin1'].visible = false;
|
|
|
@@ -515,7 +552,12 @@ export const playAnimate = async (selectData, duration?) => {
|
|
|
mainObj['airChu2'].visible = false;
|
|
|
}
|
|
|
mainObj.startGearAnimation('back', 'open', 'tubPositivePath', selectData.Fan1FreqHz, duration);
|
|
|
- await mainObj.setSmokeDirection('back', 'tubPositivePath');
|
|
|
+
|
|
|
+ if (selectData['Fan1OpenWindow'] == 1 && selectData['Fan1CloseWindow'] == 0) {
|
|
|
+ await mainObj.setSmokeDirection('back', 'windowPositivePath');
|
|
|
+ } else {
|
|
|
+ await mainObj.setSmokeDirection('back', 'tubPositivePath');
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (!mainObj?.backSmoke?.frameId) mainObj?.backSmoke?.startSmoke(duration);
|
|
|
@@ -523,6 +565,22 @@ export const playAnimate = async (selectData, duration?) => {
|
|
|
// 主风机停止
|
|
|
mainObj.closeDevice('back');
|
|
|
}
|
|
|
+ if (mainObj && modalType.includes('mainWindRect')) {
|
|
|
+ if (selectData['Fan1OpenWindow'] == 1 && selectData['Fan1CloseWindow'] == 0) {
|
|
|
+ // 打开天窗1
|
|
|
+ mainObj.openOrCloseWindow('back', 'openWindow');
|
|
|
+ } else {
|
|
|
+ // 关闭天窗1
|
|
|
+ mainObj.openOrCloseWindow('back', 'closeWindow');
|
|
|
+ }
|
|
|
+ if (selectData['Fan2OpenWindow'] == 1 && selectData['Fan2CloseWindow'] == 0) {
|
|
|
+ // 打开天窗1
|
|
|
+ mainObj.openOrCloseWindow('front', 'openWindow');
|
|
|
+ } else {
|
|
|
+ // 关闭天窗1
|
|
|
+ mainObj.openOrCloseWindow('front', 'closeWindow');
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 防爆门动画
|