|
@@ -6,7 +6,7 @@ import { EllipsisOutlined, ExclamationCircleOutlined } from '@ant-design/icons';
|
|
|
import styles from './index.less';
|
|
|
//import { equipImageMap } from '@/config/image.js';
|
|
|
import type { navigatorItem } from '@/pages/Environment/index';
|
|
|
-import { projectId } from '@/config/api.js';
|
|
|
+import { projectObj } from '@/config/api.js';
|
|
|
|
|
|
import { changeCurtain, changeAllAir, changeLight } from '@/pages/Equipment/equipmentControl';
|
|
|
|
|
@@ -67,7 +67,7 @@ const TopNavRight: React.FC<topNavRightProps> = ({
|
|
|
//如果是空调
|
|
|
if (filterSpaceArr.length == 0) return;
|
|
|
if (selNavObj.id == 'airConditioner') {
|
|
|
- changeAllAir(filterSpaceArr, getDeviceStatus, '打开', projectId);
|
|
|
+ changeAllAir(filterSpaceArr, getDeviceStatus, '打开', projectObj.projectId);
|
|
|
}
|
|
|
if (selNavObj.id == 'light') {
|
|
|
changeLight('all', filterSpaceArr, getDeviceStatus, '打开');
|
|
@@ -116,7 +116,7 @@ const TopNavRight: React.FC<topNavRightProps> = ({
|
|
|
|
|
|
//如果是空调
|
|
|
if (selNavObj.id == 'airConditioner') {
|
|
|
- changeAllAir(filterSpaceArr, getDeviceStatus, '关闭', projectId);
|
|
|
+ changeAllAir(filterSpaceArr, getDeviceStatus, '关闭', projectObj.projectId);
|
|
|
}
|
|
|
if (selNavObj.id == 'light') {
|
|
|
changeLight('all', filterSpaceArr, getDeviceStatus, '关闭');
|