Browse Source

色谱仪分析 束管分析修改

bobo04052021@163.com 3 months ago
parent
commit
e4455c323b

+ 59 - 0
src/views/vent/bundle/bundleMonitorTable/bundle-table.data.ts

@@ -15,6 +15,27 @@ export const columns: BasicColumn[] = [
     align: 'center',
   },
   {
+    title: '设备名称',
+    dataIndex: 'sbmc',
+    key: 'sbmc',
+    width: 130,
+    align: 'center',
+  },
+  {
+    title: '设备编号',
+    dataIndex: 'sbbh',
+    key: 'sbbh',
+    width: 130,
+    align: 'center',
+  },
+  {
+    title: '管路编号',
+    dataIndex: 'glbh',
+    key: 'glbh',
+    width: 130,
+    align: 'center',
+  },
+  {
     title: '分析次数',
     dataIndex: 'fxcs',
     key: 'fxcs',
@@ -136,6 +157,44 @@ export const columns: BasicColumn[] = [
     ],
   },
   {
+    title: 'N₂(PPM)',
+    children: [
+      {
+        title: '最大值',
+        dataIndex: 'n2_max',
+        key: 'n2_max',
+        width: 80,
+        align: 'center',
+      },
+      {
+        title: '平均值',
+        dataIndex: 'n2_ave',
+        key: 'n2_ave',
+        width: 80,
+        align: 'center',
+      },
+    ],
+  },
+  {
+    title: 'NO₂(PPM)',
+    children: [
+      {
+        title: '最大值',
+        dataIndex: 'no2_max',
+        key: 'no2_max',
+        width: 80,
+        align: 'center',
+      },
+      {
+        title: '平均值',
+        dataIndex: 'no2_ave',
+        key: 'no2_ave',
+        width: 80,
+        align: 'center',
+      },
+    ],
+  },
+  {
     title: '煤自燃阶段',
     dataIndex: 'internalFireWarnLevel',
     width: 100,

+ 24 - 0
src/views/vent/bundle/bundleMonitorTable/index.vue

@@ -98,6 +98,10 @@ function updateChart(data: any) {
   const coAveValues = data.map((item: any) => parseFloat(item.co_ave));
   const o2MinValues = data.map((item: any) => parseFloat(item.o2_min));
   const o2AveValues = data.map((item: any) => parseFloat(item.o2_ave));
+  const n2MaxValues = data.map((item: any) => parseFloat(item.n2_max));
+  const n2AveValues = data.map((item: any) => parseFloat(item.n2_ave));
+  const no2MaxValues = data.map((item: any) => parseFloat(item.no2_max));
+  const no2AveValues = data.map((item: any) => parseFloat(item.no2_ave));
 
   const option = {
     title: {
@@ -221,6 +225,26 @@ function updateChart(data: any) {
         data: o2AveValues,
         type: 'bar',
       },
+      {
+        name: 'N₂最大值',
+        data: n2MaxValues,
+        type: 'bar',
+      },
+      {
+        name: 'N₂平均值',
+        data: n2AveValues,
+        type: 'bar',
+      },
+      {
+        name: 'NO₂最大值',
+        data: no2MaxValues,
+        type: 'bar',
+      },
+      {
+        name: 'NO₂平均值',
+        data: no2AveValues,
+        type: 'bar',
+      },
     ],
   };
   myChart.setOption(option);

+ 0 - 7
src/views/vent/bundleSpy/bundleSpyTable/bundleSpy-table.data.ts

@@ -8,13 +8,6 @@ export const columns: BasicColumn[] = [
     key: 'xh',
   },
   {
-    title: '化验编号',
-    dataIndex: 'hybh',
-    key: 'hybh',
-    width: 100,
-    align: 'center',
-  },
-  {
     title: '采样地点',
     dataIndex: 'jcdd',
     key: 'jcdd',