Bladeren bron

[Feat 0000] 除尘风机根据数据调整展示条目并对接

houzekong 3 maanden geleden
bovenliggende
commit
f4dacb2e33

+ 2 - 2
src/views/vent/monitorManager/dedustMonitor/components/DedustHome.vue

@@ -12,7 +12,7 @@
           <template #container>
             <List icon="warning-title" type="status-light" :labelWidth="130" layout="double-columns" title="故障状态" v-bind="dedustStatusPropA" />
             <List icon="warning-title" type="status-light" :labelWidth="300" title="报警状态" v-bind="dedustStatusPropB" />
-            <List icon="warning-title" type="status-light" :labelWidth="300" title="激活状态" v-bind="dedustStatusPropC" />
+            <List icon="warning-title" type="status-light" :labelWidth="280" title="激活状态" v-bind="dedustStatusPropC" />
           </template>
         </ventBox1>
       </div>
@@ -58,7 +58,7 @@
 
   // 默认初始是第一行
   // const openDust = ref(false);
-  const deviceInfo = ref({});
+  const deviceInfo = ref<any>({});
   const workFaceSource = ref({});
   const workFaceHistorySource = ref([]);
   // const gateDataSource = ref([]);

+ 69 - 28
src/views/vent/monitorManager/dedustMonitor/dedust.data.ts

@@ -1,9 +1,18 @@
 /** 故障相关状态配置 0 正常 1 故障 */
-export const statusConfigA = [{ value: 0, label: '' }, { label: '' }];
+export const statusConfigA = [
+  { value: '0', label: '' },
+  { value: '1', label: '' },
+];
 /** 报警相关状态配置 0 正常 1 报警 */
-export const statusConfigB = [{ value: 0, label: '' }, { label: '' }];
-/** 激活与否相关状态配置 0 接触 1 激活 */
-export const statusConfigC = [{ value: 0, label: '' }, { label: '' }];
+export const statusConfigB = [
+  { value: '0', label: '' },
+  { value: '1', label: '' },
+];
+/** 激活与否相关状态配置 0 闭合 1 断开 */
+export const statusConfigC = [
+  { value: '0', label: '闭合' },
+  { value: '1', label: '断开' },
+];
 
 export const dedustMonitorConfig = [
   // {
@@ -19,32 +28,36 @@ export const dedustMonitorConfig = [
   //   label: '给定频率',
   // },
   {
-    prop: 'Frequency',
-    label: '运行频率(Hz)',
+    prop: 'Outputcurrent',
+    label: '输出电流(A)',
   },
   {
-    prop: 'BusVoltage',
-    label: '母线电压(V)',
+    prop: 'Current1',
+    label: '前机电流(A)',
   },
   {
-    prop: 'OutputVoltage',
-    label: '输出电压(V)',
+    prop: 'Current2',
+    label: '后机电流(A)',
   },
   {
-    prop: 'Outputcurrent',
-    label: '输出电流(A)',
+    prop: 'OutputVoltage',
+    label: '输出电压(V)',
   },
   {
     prop: 'OutputPower',
     label: '输出功率(kW)',
   },
   {
-    prop: 'Current1',
-    label: '前机电流(A)',
+    prop: 'Frequency',
+    label: '运行频率(Hz)',
   },
   {
-    prop: 'Current2',
-    label: '后机电流(A)',
+    prop: 'BusVoltage',
+    label: '母线电压(V)',
+  },
+  {
+    prop: 'FrequencySetPoint',
+    label: '给定频率(Hz)',
   },
 ];
 
@@ -55,17 +68,21 @@ export const dedustStatusConfigA = [
     label: '正常运行',
   },
   {
-    prop: 'EquipmentFault',
-    label: '设备故障',
+    prop: 'CBStatus',
+    label: '运行状态',
   },
+  // {
+  //   prop: 'EquipmentFault',
+  //   label: '设备故障',
+  // },
   {
     prop: 'FaultStatus',
     label: '故障状态',
   },
-  {
-    prop: 'PowerFault',
-    label: '电源故障',
-  },
+  // {
+  //   prop: 'PowerFault',
+  //   label: '电源故障',
+  // },
   {
     prop: 'ContorlPSError',
     label: '控制电源故障',
@@ -107,16 +124,40 @@ export const dedustStatusConfigB = [
 /** 激活与否相关配置 */
 export const dedustStatusConfigC = [
   {
-    prop: 'HMIReset',
-    label: '故障复位',
+    prop: 'WindPowerLock',
+    label: '风电闭锁',
+  },
+  {
+    prop: 'GasLock',
+    label: '瓦斯闭锁',
+  },
+  {
+    prop: 'Contactorstatus',
+    label: '进线接触器KM1',
+  },
+  {
+    prop: 'GasLock3_0',
+    status: [
+      { value: '1', label: '闭锁' },
+      { value: '0', label: '正常' },
+    ],
+    label: '瓦斯3.0',
   },
   {
-    prop: 'SwitchOn',
-    label: '启动控制',
+    prop: 'ManualAutoSelect',
+    status: [
+      { value: '1', label: '自动' },
+      { value: '0', label: '手动' },
+    ],
+    label: '手动自动',
   },
   {
-    prop: 'SwitchOff',
-    label: '停止控制',
+    prop: 'RemLocselectstate',
+    status: [
+      { value: '1', label: '远控' },
+      { value: '0', label: '近控' },
+    ],
+    label: '控制状态',
   },
 ];