bobo04052021@163.com 1 месяц назад
Родитель
Сommit
cf8c1709e9

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

@@ -1199,3 +1199,100 @@ export const Yjlcolumns: BasicColumn[] = [
     align: 'center',
   },
 ];
+export const Cctrkcolumns: BasicColumn[] = [
+  {
+    title: '设备号',
+    width: 60,
+    align: 'center',
+    dataIndex: 'xh',
+  },
+  {
+    title: '采空区',
+    width: 100,
+    align: 'center',
+    dataIndex: 'ckq',
+    key: 'ckq',
+  },
+  {
+    title: '采样点',
+    width: 60,
+    align: 'center',
+    dataIndex: 'jcdd',
+    key: 'jcdd',
+  },
+  {
+    title: '检测时间',
+    dataIndex: 'qyfxsj',
+    key: 'qyfxsj',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: 'O₂(%)',
+    dataIndex: 'o2_ave',
+    key: 'o2_ave',
+    width: 80,
+    align: 'center',
+  },
+  {
+    title: 'CO₂(%)',
+    dataIndex: 'co2_ave',
+    key: 'co2_ave',
+    width: 80,
+    align: 'center',
+  },
+  {
+    title: 'CO(PPM)',
+    dataIndex: 'co_ave',
+    key: 'co_ave',
+    width: 80,
+    align: 'center',
+  },
+  {
+    title: 'CH₄(%)',
+    dataIndex: 'ch4_ave',
+    key: 'ch4_ave',
+    width: 80,
+    align: 'center',
+  },
+  {
+    title: 'N₂(%)',
+    dataIndex: 'n2_ave',
+    key: 'n2_ave',
+    width: 80,
+    align: 'center',
+  },
+  {
+    title: 'C₂H₂(PPM)',
+    dataIndex: 'c2h2_ave',
+    key: 'c2h2_ave',
+    width: 80,
+    align: 'center',
+  },
+  {
+    title: 'C₂H₄(PPM)',
+    dataIndex: 'c2h4_ave',
+    key: 'c2h4_ave',
+    width: 80,
+    align: 'center',
+  },
+  {
+    title: 'C₂H₆(PPM)',
+    dataIndex: 'c2h6_ave',
+    key: 'c2h6_ave',
+    width: 80,
+    align: 'center',
+  },
+  {
+    title: '煤自燃阶段',
+    dataIndex: 'internalFireWarnLevel',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '操作',
+    dataIndex: 'action',
+    width: 100,
+    align: 'center',
+  },
+];

+ 48 - 2
src/views/vent/bundle/bundleMonitorTable/index.vue

@@ -50,7 +50,7 @@
 
 <script setup lang="ts">
 import { ref, onMounted, computed, shallowRef, reactive, nextTick } from 'vue';
-import { columns, Hjtcolumns, Bdcolumns, Bltcolumns, Sgtcolumns, Yjlcolumns } from './bundle-table.data';
+import { columns, Hjtcolumns, Bdcolumns, Bltcolumns, Sgtcolumns, Yjlcolumns, Cctrkcolumns } from './bundle-table.data';
 import { getBundleInfoList, getAllFileList, getAllFileListById } from './bundle-table.api';
 import customHeader from '/@/components/vent/customHeader.vue';
 // import { blastDelta } from './modal/blastDelta.vue';
@@ -94,8 +94,10 @@ const computedColumns = computed(() => {
       return Sgtcolumns; // 石圪台对应的列配置
     case 'sdmtjtyjlmk':
       return Yjlcolumns; // 榆家梁对应的列配置
+    case 'sdmtjtcctrk':
+      return Cctrkcolumns; // 寸草塔二矿对应的列配置
     default:
-      return Sgtcolumns; // 默认情况下返回的列配置
+      return columns; // 默认情况下返回的列配置
   }
 });
 function updateChart(data: any) {
@@ -108,6 +110,7 @@ function updateChart(data: any) {
   const c2h4MaxValues = data.map((item: any) => parseFloat(item.c2h4_max));
   const c2h4MinValues = data.map((item: any) => parseFloat(item.c2h4_min));
   const c2h4AveValues = data.map((item: any) => parseFloat(item.c2h4_ave));
+  const c2h6AveValues = data.map((item: any) => parseFloat(item.c2h6_ave));
   const ch4MaxValues = data.map((item: any) => parseFloat(item.ch4_max));
   const ch4MinValues = data.map((item: any) => parseFloat(item.ch4_min));
   const ch4AveValues = data.map((item: any) => parseFloat(item.ch4_ave));
@@ -610,6 +613,49 @@ function updateChart(data: any) {
             type: 'bar',
           },
         ];
+      case 'sdmtjtcctrk':
+        return [
+          {
+            name: 'O₂平均值',
+            data: o2AveValues,
+            type: 'bar',
+          },
+          {
+            name: 'N₂平均值',
+            data: n2AveValues,
+            type: 'bar',
+          },
+          {
+            name: 'CO平均值',
+            data: coAveValues,
+            type: 'bar',
+          },
+          {
+            name: 'CO₂平均值',
+            data: co2AveValues,
+            type: 'bar',
+          },
+          {
+            name: 'CH₄平均值',
+            data: ch4AveValues,
+            type: 'bar',
+          },
+          {
+            name: 'C₂H₄平均值',
+            data: c2h4AveValues,
+            type: 'bar',
+          },
+          {
+            name: 'C₂H₂平均值',
+            data: c2h2AveValues,
+            type: 'bar',
+          },
+          {
+            name: 'C₂H₆平均值',
+            data: c2h6AveValues,
+            type: 'bar',
+          },
+        ];
       default:
         return [
           {

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

@@ -771,3 +771,139 @@ export const Yjlcolumns: BasicColumn[] = [
     align: 'center',
   },
 ];
+export const Cctrkcolumns: BasicColumn[] = [
+  {
+    title: '序号',
+    width: 60,
+    align: 'center',
+    dataIndex: 'xh',
+    key: 'xh',
+  },
+  {
+    title: '采空区名称',
+    dataIndex: 'ckq',
+    key: 'ckq',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '检查地点',
+    dataIndex: 'jcdd',
+    key: 'jcdd',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '密闭编号',
+    dataIndex: 'mbbh',
+    key: 'mbbh',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '闭内',
+    children: [
+      {
+        title: 'CH₄(%)',
+        dataIndex: 'ch4_ave',
+        key: 'ch4_ave',
+        width: 100,
+        align: 'center',
+      },
+      {
+        title: 'O₂(%)',
+        dataIndex: 'o2_ave',
+        key: 'o2_ave',
+        width: 100,
+        align: 'center',
+      },
+      {
+        title: 'CO(ppm)',
+        dataIndex: 'co_ave',
+        key: 'co_ave',
+        width: 100,
+        align: 'center',
+      },
+      {
+        title: 'CO₂(%)',
+        dataIndex: 'co2_ave',
+        key: 'co2_ave',
+        width: 100,
+        align: 'center',
+      },
+      {
+        title: '气温(℃)',
+        dataIndex: 'qw',
+        key: 'qw',
+        width: 100,
+        align: 'center',
+      },
+      {
+        title: '水温(℃)',
+        dataIndex: 'sw',
+        key: 'sw',
+        width: 100,
+        align: 'center',
+      },
+      {
+        title: '压差(Pa)',
+        dataIndex: 'yc',
+        key: 'yc',
+        width: 100,
+        align: 'center',
+      },
+    ],
+  },
+  {
+    title: '闭前',
+    children: [
+      {
+        title: 'CH₄(%)',
+        dataIndex: 'ch4_ave_bq',
+        key: 'ch4_ave_bq',
+        width: 100,
+        align: 'center',
+      },
+      {
+        title: 'O₂(%)',
+        dataIndex: 'o2_ave_bq',
+        key: 'o2_ave_bq',
+        width: 100,
+        align: 'center',
+      },
+    ],
+  },
+  {
+    title: '观测孔风流方向',
+    dataIndex: 'gckflfx',
+    key: 'gckflfx',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '密闭完好情况',
+    dataIndex: 'mbwhqk',
+    key: 'mbwhqk',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '备注',
+    dataIndex: 'smark',
+    key: 'smark',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '煤自燃阶段',
+    dataIndex: 'internalFireWarnLevel',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '操作',
+    dataIndex: 'action',
+    width: 100,
+    align: 'center',
+  },
+];

+ 43 - 2
src/views/vent/bundleSpy/bundleSpyTable/index.vue

@@ -44,7 +44,7 @@
 
 <script setup lang="ts">
 import { ref, onMounted, computed, reactive, shallowRef } from 'vue';
-import { columns, Hjtcolumns, Bdcolumns, Bltcolumns, Sgtcolumns, Yjlcolumns } from './bundleSpy-table.data';
+import { columns, Hjtcolumns, Bdcolumns, Bltcolumns, Sgtcolumns, Yjlcolumns, Cctrkcolumns } from './bundleSpy-table.data';
 import { getbundleSpyInfoList, getAllFileList, getAllFileListById } from './bundleSpy-table.api';
 import customHeader from '/@/components/vent/customHeader.vue';
 import * as echarts from 'echarts';
@@ -86,8 +86,10 @@ const computedColumns = computed(() => {
       return Sgtcolumns; // 石圪台对应的列配置
     case 'sdmtjtyjlmk':
       return Yjlcolumns; // 榆家梁对应的列配置
+    case 'sdmtjtcctrk':
+      return Cctrkcolumns; // 寸草塔二矿对应的列配置
     default:
-      return Bdcolumns; // 默认情况下返回的列配置
+      return columns; // 默认情况下返回的列配置
   }
 });
 
@@ -322,6 +324,45 @@ function updateChart(data: any) {
             yAxisIndex: 1,
           },
         ];
+      case 'sdmtjtcctrk':
+        return [
+          {
+            name: 'CH₄闭内',
+            data: ch4AveValues,
+            yAxisIndex: 1,
+            type: 'bar',
+          },
+          {
+            name: 'O₂闭内',
+            data: ch4AveValues,
+            yAxisIndex: 1,
+            type: 'bar',
+          },
+          {
+            name: 'CO₂闭内',
+            data: co2AveValues,
+            yAxisIndex: 1,
+            type: 'bar',
+          },
+          {
+            name: 'CO闭内',
+            data: coAveValues,
+            yAxisIndex: 1,
+            type: 'bar',
+          },
+          {
+            name: 'CH₄闭前',
+            data: ch4AveBqValues,
+            yAxisIndex: 1,
+            type: 'bar',
+          },
+          {
+            name: 'O₂闭前',
+            data: o2AveBqValues,
+            yAxisIndex: 1,
+            type: 'bar',
+          },
+        ];
       default:
         return [
           {

+ 125 - 0
src/views/vent/dust/dustMonitorTable/dust-table.data.ts

@@ -646,6 +646,63 @@ export const Yjlcolumns = [
     align: 'center',
   },
 ];
+export const Cctrkcolumns = [
+  {
+    title: '序号',
+    width: 60,
+    align: 'center',
+    dataIndex: 'xh',
+  },
+  {
+    title: '测定地点',
+    dataIndex: 'jcdd',
+    key: 'jcdd',
+    width: 150,
+    align: 'center',
+  },
+  {
+    title: '粉尘种类',
+    dataIndex: 'fczl',
+    key: 'fczl',
+    width: 80,
+    align: 'center',
+  },
+  {
+    title: '作业环境(工序)',
+    dataIndex: 'zyhj',
+    key: 'zyhj',
+    width: 80,
+    align: 'center',
+  },
+  {
+    title: '总粉尘(短时间检查浓度,mg/m³)',
+    dataIndex: 'zcjqpj',
+    key: 'zcjqpj',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '呼吸性粉尘(短时间检查浓度,mg/m³)',
+    dataIndex: 'hcjqpj',
+    key: 'hcjqpj',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '总尘容许浓度(短时间监测浓度,mg/m³)',
+    dataIndex: 'zcrxnd',
+    key: 'zcrxnd',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '呼尘容许浓度(短时间监测浓度,mg/m³)',
+    dataIndex: 'hcrxnd',
+    key: 'hcrxnd',
+    width: 100,
+    align: 'center',
+  },
+];
 //监测字段
 export const fieldMapping = {
   sc_zcds: '总尘-作业工序-生产(短时间监测浓度,mg/m³)',
@@ -695,6 +752,12 @@ export const fieldYjlMapping = {
   zcfcnd: '总粉尘(粉尘浓度,mg/m³)',
   hcfcnd: '呼尘(粉尘浓度,mg/m³)',
 };
+export const fieldCctrkMapping = {
+  zcjqpj: '总粉尘(短时间检查浓度,mg/m³)',
+  hcjqpj: '呼吸性粉尘(短时间检查浓度,mg/m³)',
+  zcrxnd: '总尘容许浓度(短时间监测浓度,mg/m³)',
+  hcrxnd: '呼尘容许浓度(短时间监测浓度,mg/m³)',
+};
 // 检测地点
 export const dataColumns = [
   {
@@ -951,6 +1014,37 @@ export const dataYjlColumns = [
     key: 'zyhj',
   },
 ];
+export const dataCctrkColumns = [
+  {
+    title: '监测字段',
+    align: 'center',
+    dataIndex: 'key',
+    key: 'key',
+    width: 100,
+    customRender: ({ text }) => fieldCctrkMapping[text] || text,
+  },
+  {
+    title: '最大值',
+    dataIndex: 'value',
+    align: 'center',
+    width: 100,
+    key: 'value',
+  },
+  {
+    width: 100,
+    align: 'center',
+    title: '监测地点',
+    dataIndex: 'jcdd',
+    key: 'jcdd',
+  },
+  {
+    width: 100,
+    align: 'center',
+    title: '作业环境(工序)',
+    dataIndex: 'zyhj',
+    key: 'zyhj',
+  },
+];
 // 当日情况粉尘情况分析
 export const AllDataColumns = [
   {
@@ -1221,3 +1315,34 @@ export const AllDataYjlColumns = [
     key: 'zyhj',
   },
 ];
+export const AllDataCctrkColumns = [
+  {
+    title: '监测字段',
+    align: 'center',
+    dataIndex: 'key',
+    key: 'key',
+    width: 100,
+    customRender: ({ text }) => fieldCctrkMapping[text] || text,
+  },
+  {
+    title: '最大值',
+    dataIndex: 'value',
+    align: 'center',
+    width: 100,
+    key: 'value',
+  },
+  {
+    width: 100,
+    align: 'center',
+    title: '监测地点',
+    dataIndex: 'jcdd',
+    key: 'jcdd',
+  },
+  {
+    width: 100,
+    align: 'center',
+    title: '作业环境(工序)',
+    dataIndex: 'zyhj',
+    key: 'zyhj',
+  },
+];

+ 45 - 2
src/views/vent/dust/dustMonitorTable/index.vue

@@ -71,6 +71,7 @@ import {
   Bltcolumns,
   Sgtcolumns,
   Yjlcolumns,
+  Cctrkcolumns,
   dataColumns,
   dataDltColumns,
   dataSwColumns,
@@ -79,6 +80,7 @@ import {
   dataBltColumns,
   dataSgtColumns,
   dataYjlColumns,
+  dataCctrkColumns,
   AllDataColumns,
   AllDataDltColumns,
   AllDataSwColumns,
@@ -87,6 +89,7 @@ import {
   AllDataBltColumns,
   AllDataSgtColumns,
   AllDataYjlColumns,
+  AllDataCctrkColumns,
 } from './dust-table.data';
 import { getDustInfoList, getAllFileList, getAllFileListById } from './dsut-table.api';
 import customHeader from '/@/components/vent/customHeader.vue';
@@ -135,6 +138,8 @@ const computedColumns = computed(() => {
       return Sgtcolumns; // 石圪台对应的列配置
     case 'sdmtjtyjlmk':
       return Yjlcolumns; // 榆家梁对应的列配置
+    case 'sdmtjtcctrk':
+      return Cctrkcolumns; // 寸草塔二矿对应的列配置
     default:
       return columns; // 默认情况下返回的列配置
   }
@@ -157,6 +162,8 @@ const AllDataComputedColumns = computed(() => {
       return AllDataSgtColumns; // 石圪台对应的列配置
     case 'sdmtjtyjlmk':
       return AllDataYjlColumns; // 榆家梁对应的列配置
+    case 'sdmtjtcctrk':
+      return AllDataCctrkColumns; // 寸草塔二矿对应的列配置
     default:
       return AllDataColumns; // 默认情况下返回的列配置
   }
@@ -179,6 +186,8 @@ const DataComputedColumns = computed(() => {
       return dataSgtColumns; // 石圪台对应的列配置
     case 'sdmtjtyjlmk':
       return dataYjlColumns; // 榆家梁对应的列配置
+    case 'sdmtjtcctrk':
+      return dataCctrkColumns; // 寸草塔二矿对应的列配置
     default:
       return dataColumns; // 默认情况下返回的列配置
   }
@@ -270,6 +279,12 @@ function processTableData(data: any) {
       { key: 'zcfcnd', value: -Infinity, gz: '', jcdd: '', scgy: '', gzcs: workplace },
       { key: 'hcfcnd', value: -Infinity, gz: '', jcdd: '', scgy: '', gzcs: workplace },
     ];
+    const CctrkMaxValues = [
+      { key: 'zcjqpj', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
+      { key: 'hcjqpj', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
+      { key: 'zcrxnd', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
+      { key: 'hcrxnd', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
+    ];
     items.forEach((item: any) => {
       maxValues.forEach((maxValue) => {
         if (item[maxValue.key] > maxValue.value) {
@@ -333,6 +348,15 @@ function processTableData(data: any) {
           maxValue.gzcs = item.gzcs;
         }
       });
+      CctrkMaxValues.forEach((maxValue) => {
+        if (item[maxValue.key] > maxValue.value) {
+          maxValue.value = item[maxValue.key];
+          maxValue.gz = item.gz;
+          maxValue.jcdd = item.jcdd;
+          maxValue.fczl = item.fczl;
+          maxValue.gzcs = item.gzcs;
+        }
+      });
     });
     switch (sysOrgCode) {
       case 'sdmtjtbetmk':
@@ -351,6 +375,8 @@ function processTableData(data: any) {
         return BltMaxValues; // 石圪台对应的列配置
       case 'sdmtjtyjlmk':
         return YjlMaxValues; // 榆家梁对应的列配置
+      case 'sdmtjtcctrk':
+        return CctrkMaxValues; // 寸草塔二矿对应的列配置
       default:
         return maxValues; // 默认情况下返回的列配置
     }
@@ -403,8 +429,14 @@ function processTableData(data: any) {
     { key: 'sc_hcds', value: -Infinity, gz: '', jcdd: '', scgy: '', gzcs: '' },
   ];
   const overallYjlMaxValues = [
-    { key: 'zcfcnd', value: -Infinity, gz: '', jcdd: '', scgy: '', gzcs: workplace },
-    { key: 'hcfcnd', value: -Infinity, gz: '', jcdd: '', scgy: '', gzcs: workplace },
+    { key: 'zcfcnd', value: -Infinity, gz: '', jcdd: '', scgy: '', gzcs: '' },
+    { key: 'hcfcnd', value: -Infinity, gz: '', jcdd: '', scgy: '', gzcs: '' },
+  ];
+  const overallCctrkMaxValues = [
+    { key: 'zcjqpj', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: '' },
+    { key: 'hcjqpj', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: '' },
+    { key: 'zcrxnd', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: '' },
+    { key: 'hcrxnd', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: '' },
   ];
   data.forEach((item: any) => {
     overallMaxValues.forEach((maxValue) => {
@@ -470,6 +502,15 @@ function processTableData(data: any) {
         maxValue.gzcs = item.gzcs;
       }
     });
+    overallCctrkMaxValues.forEach((maxValue) => {
+      if (item[maxValue.key] > maxValue.value) {
+        maxValue.value = item[maxValue.key];
+        maxValue.gz = item.gz;
+        maxValue.jcdd = item.jcdd;
+        maxValue.fczl = item.fczl;
+        maxValue.gzcs = item.gzcs;
+      }
+    });
   });
   AllMaxValues = computed(() => {
     switch (sysOrgCode) {
@@ -489,6 +530,8 @@ function processTableData(data: any) {
         return overallBltMaxValues; // 石圪台对应的列配置
       case 'sdmtjtyjlmk':
         return overallYjlMaxValues; // 榆家梁对应的列配置
+      case 'sdmtjtcctrk':
+        return overallCctrkMaxValues; // 寸草塔二矿对应的列配置
       default:
         return overallMaxValues; // 默认情况下返回的列配置
     }