Quellcode durchsuchen

1. 风窗自主调控接口对接

hongrunxia vor 6 Monaten
Ursprung
Commit
44b73a7580

+ 2 - 2
src/views/vent/home/clique/components/icon-light.vue

@@ -176,7 +176,7 @@
             if (!newPointList) newPointList = [...pointList.value];
             const index = (newPointList as []).findIndex((item) => item['code'] === newVal[i]['orgcode']);
             newPointList[index]['imgSrc'] = newVal[i].isWarning ? warningLevel4 : warningLevel1;
-            newPointList[index]['textColor'] = newVal[i].isWarning ? '#f00' : '#fff';
+            newPointList[index]['textColor'] = newVal[i].isWarning ? '#ff5e00' : '#fff';
           }
         }
       } else {
@@ -184,7 +184,7 @@
         for (let i = 0; i < newVal.length; i++) {
           const index = (newPointList as []).findIndex((item) => item['code'] === newVal[i]['orgcode']);
           newPointList[index]['imgSrc'] = newVal[i].isWarning ? warningLevel4 : warningLevel1;
-          newPointList[index]['textColor'] = newVal[i].isWarning ? '#f00' : '#fff';
+          newPointList[index]['textColor'] = newVal[i].isWarning ? '#ff5e00' : '#fff';
         }
       }
       if (newPointList) {

+ 1 - 1
src/views/vent/home/clique/components/mine-wind.vue

@@ -7,7 +7,7 @@
       </div>
       <div class="content-text">
         <template v-for="(item, index) in mineData" :key="index">
-          <div class="text" :style="{ color: item['isWarning'] ? '#f00' : '#fff' }">
+          <div class="text" :style="{ color: item['isWarning'] ? '#ff5e00' : '#fff' }">
             <span>{{ item.deviceName }}</span>
             <span>{{ filterBadValue(item.jf) }}</span>
             <span>{{ filterBadValue(item.hf) }}</span>

+ 1 - 1
src/views/vent/monitorManager/windowMonitor/index.vue

@@ -193,7 +193,7 @@
   import HandleModal from './modal.vue';
   import DeviceBaseInfo from '../comment/components/DeviceBaseInfo.vue';
   import { mountedThree, destroy, addMonitorText, computePlay, setModelType, initCameraCanvas } from './window.threejs';
-  import { list, getTableList, windControl, cameraAddrList } from './window.api';
+  import { list, getTableList, windControl } from './window.api';
   import { list as baseList } from '../../deviceManager/windWindowTabel/ventanalyWindow.api';
   import { chartsColumns } from './window.data';
   import { deviceControlApi } from '/@/api/vent/index';

+ 2 - 1
src/views/vent/monitorManager/windowMonitor/window.api.ts

@@ -6,6 +6,7 @@ enum Api {
   cameraList = '/safety/ventanalyCamera/list',
   cameraAddrList = '/monitor/camera/info',
   windControl = '/device/updateWindowAutoAdjust',
+  updateWindowAutoAdjustStatus = '/safety/ventanalyWindow/updateWindowAutoAdjustStatus',
 }
 /**
  * 列表接口
@@ -22,4 +23,4 @@ export const getTableList = (params) => defHttp.get({ url: Api.baseList, params
 export const cameraList = (params) => defHttp.get({ url: Api.cameraList, params });
 export const cameraAddrList = (params) => defHttp.post({ url: Api.cameraAddrList, params });
 
-export const windControl = (params) => defHttp.post({ url: Api.cameraAddrList, params });
+export const windControl = (params) => defHttp.post({ url: Api.updateWindowAutoAdjustStatus, params });