瀏覽代碼

乌兰木伦矿报表页面配置

bobo04052021@163.com 2 周之前
父節點
當前提交
c9d4d4a960

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

@@ -1296,3 +1296,100 @@ export const Cctrkcolumns: BasicColumn[] = [
     align: 'center',
   },
 ];
+export const wlmlcolumns: BasicColumn[] = [
+  {
+    title: '设备号',
+    width: 60,
+    align: 'center',
+    dataIndex: 'xh',
+  },
+  {
+    title: '设备名称',
+    width: 100,
+    align: 'center',
+    dataIndex: 'sbmc',
+    key: 'sbmc',
+  },
+  {
+    title: '管路编号',
+    width: 60,
+    align: 'center',
+    dataIndex: 'glbh',
+    key: 'glbh',
+  },
+  {
+    title: '管路名称',
+    width: 60,
+    align: 'center',
+    dataIndex: 'glmc',
+    key: 'glmc',
+  },
+  {
+    title: '分析次数',
+    dataIndex: 'fxcs',
+    key: 'fxcs',
+    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: '煤自燃阶段',
+    dataIndex: 'internalFireWarnLevel',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '操作',
+    dataIndex: 'action',
+    width: 100,
+    align: 'center',
+  },
+];

+ 41 - 1
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, Cctrkcolumns } from './bundle-table.data';
+import { columns, Hjtcolumns, Bdcolumns, Bltcolumns, Sgtcolumns, Yjlcolumns, Cctrkcolumns, wlmlcolumns } 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';
@@ -96,6 +96,8 @@ const computedColumns = computed(() => {
       return Yjlcolumns; // 榆家梁对应的列配置
     case 'sdmtjtcctrk':
       return Cctrkcolumns; // 寸草塔二矿对应的列配置
+    case 'sdmtjtwlmlmk':
+      return wlmlcolumns; // 乌兰木伦对应的列配置
     default:
       return columns; // 默认情况下返回的列配置
   }
@@ -656,6 +658,44 @@ function updateChart(data: any) {
             type: 'bar',
           },
         ];
+      case 'sdmtjtwlmlmk':
+        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',
+          },
+        ];
       default:
         return [
           {

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

@@ -907,3 +907,101 @@ export const Cctrkcolumns: BasicColumn[] = [
     align: 'center',
   },
 ];
+export const Wlmlcolumns: BasicColumn[] = [
+  {
+    title: '序号',
+    width: 60,
+    align: 'center',
+    dataIndex: 'xh',
+    key: 'xh',
+  },
+  {
+    title: '地点名称',
+    dataIndex: 'jcdd',
+    key: 'jcdd',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '氧气(%)',
+    dataIndex: 'o2_ave',
+    key: 'o2_ave',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: 'N氮气(%)',
+    dataIndex: 'n2_ave',
+    key: 'n2_ave',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '一氧化碳(ppm)',
+    dataIndex: 'co_ave',
+    key: 'co_ave',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '二氧化碳(%)',
+    dataIndex: 'co2_ave',
+    key: 'co2_ave',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '甲烷(%)',
+    dataIndex: 'ch4_ave',
+    key: 'ch4_ave',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '乙烷(ppm)',
+    dataIndex: 'c2h6_ave',
+    key: 'c2h6_ave',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '乙烯(ppm)',
+    dataIndex: 'c2h4_ave',
+    key: 'c2h4_ave',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '乙炔(ppm)',
+    dataIndex: 'c2h2_ave',
+    key: 'c2h2_ave',
+    width: 100,
+    align: 'center',
+  },
+  {
+    title: '化验日期',
+    dataIndex: 'qyfxsj',
+    key: 'qyfxsj',
+    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',
+  },
+];

+ 55 - 1
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, Cctrkcolumns } from './bundleSpy-table.data';
+import { columns, Hjtcolumns, Bdcolumns, Bltcolumns, Sgtcolumns, Yjlcolumns, Cctrkcolumns, Wlmlcolumns } from './bundleSpy-table.data';
 import { getbundleSpyInfoList, getAllFileList, getAllFileListById } from './bundleSpy-table.api';
 import customHeader from '/@/components/vent/customHeader.vue';
 import * as echarts from 'echarts';
@@ -88,6 +88,8 @@ const computedColumns = computed(() => {
       return Yjlcolumns; // 榆家梁对应的列配置
     case 'sdmtjtcctrk':
       return Cctrkcolumns; // 寸草塔二矿对应的列配置
+    case 'sdmtjtwlmlmk':
+      return Wlmlcolumns; // 乌兰木伦对应的列配置
     default:
       return columns; // 默认情况下返回的列配置
   }
@@ -363,6 +365,58 @@ function updateChart(data: any) {
             type: 'bar',
           },
         ];
+      case 'sdmtjtwlmlmk':
+        return [
+          {
+            name: 'O₂',
+            data: o2AveValues,
+            yAxisIndex: 0,
+            type: 'bar',
+          },
+          {
+            name: 'N₂',
+            data: n2AveValues,
+            yAxisIndex: 0,
+            type: 'bar',
+          },
+
+          {
+            name: 'CO',
+            data: coAveValues,
+            yAxisIndex: 1,
+            type: 'bar',
+          },
+          {
+            name: 'CO₂',
+            data: co2AveValues,
+            yAxisIndex: 1,
+            type: 'bar',
+          },
+          {
+            name: 'CH₄',
+            data: ch4AveValues,
+            yAxisIndex: 1,
+            type: 'bar',
+          },
+          {
+            name: 'C2H6',
+            data: c2h6AveValues,
+            yAxisIndex: 1,
+            type: 'bar',
+          },
+          {
+            name: 'C₂H₄',
+            data: c2h4AveValues,
+            type: 'bar',
+            yAxisIndex: 1,
+          },
+          {
+            name: 'C₂H₂',
+            data: c2h2AveValues,
+            type: 'bar',
+            yAxisIndex: 1,
+          },
+        ];
       default:
         return [
           {

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

@@ -703,6 +703,64 @@ export const Cctrkcolumns = [
     align: 'center',
   },
 ];
+export const Wlmlcolumns = [
+  {
+    title: '序号',
+    width: 60,
+    align: 'center',
+    dataIndex: 'xh',
+  },
+  {
+    title: '测定地点',
+    dataIndex: 'jcdd',
+    key: 'jcdd',
+    width: 150,
+    align: 'center',
+  },
+
+  {
+    title: '作业环境(工序)',
+    dataIndex: 'zyhj',
+    key: 'zyhj',
+    width: 80,
+    align: 'center',
+  },
+  {
+    title: '粉尘浓度(mg/m³)',
+    width: 100,
+    align: 'center',
+    children: [
+      {
+        title: '总尘',
+        dataIndex: 'sc_zcds',
+        key: 'sc_zcds',
+        width: 80,
+        align: 'center',
+      },
+      {
+        title: '呼尘',
+        dataIndex: 'sc_hcds',
+        key: 'sc_hcds',
+        width: 80,
+        align: 'center',
+      },
+    ],
+  },
+  {
+    title: '测尘员',
+    dataIndex: 'ccy',
+    key: 'ccy',
+    width: 80,
+    align: 'center',
+  },
+  {
+    title: '备注',
+    dataIndex: 'smark',
+    key: 'smark',
+    width: 80,
+    align: 'center',
+  },
+];
 //监测字段
 export const fieldMapping = {
   sc_zcds: '总尘-作业工序-生产(短时间监测浓度,mg/m³)',
@@ -758,6 +816,10 @@ export const fieldCctrkMapping = {
   zcrxnd: '总尘容许浓度(短时间监测浓度,mg/m³)',
   hcrxnd: '呼尘容许浓度(短时间监测浓度,mg/m³)',
 };
+export const fieldWlmlMapping = {
+  sc_zcds: '总尘(粉尘浓度,mg/m³)',
+  sc_hcds: '呼尘(粉尘浓度,mg/m³)',
+};
 // 检测地点
 export const dataColumns = [
   {
@@ -1045,6 +1107,37 @@ export const dataCctrkColumns = [
     key: 'zyhj',
   },
 ];
+export const dataWlmlColumns = [
+  {
+    title: '监测字段',
+    align: 'center',
+    dataIndex: 'key',
+    key: 'key',
+    width: 100,
+    customRender: ({ text }) => fieldWlmlMapping[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 = [
   {
@@ -1346,3 +1439,34 @@ export const AllDataCctrkColumns = [
     key: 'zyhj',
   },
 ];
+export const AllDataWlmlColumns = [
+  {
+    title: '监测字段',
+    align: 'center',
+    dataIndex: 'key',
+    key: 'key',
+    width: 100,
+    customRender: ({ text }) => fieldWlmlMapping[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',
+  },
+];

+ 38 - 1
src/views/vent/dust/dustMonitorTable/index.vue

@@ -71,6 +71,7 @@ import {
   Bltcolumns,
   Sgtcolumns,
   Yjlcolumns,
+  Wlmlcolumns,
   Cctrkcolumns,
   dataColumns,
   dataDltColumns,
@@ -81,6 +82,7 @@ import {
   dataSgtColumns,
   dataYjlColumns,
   dataCctrkColumns,
+  dataWlmlColumns,
   AllDataColumns,
   AllDataDltColumns,
   AllDataSwColumns,
@@ -90,6 +92,7 @@ import {
   AllDataSgtColumns,
   AllDataYjlColumns,
   AllDataCctrkColumns,
+  AllDataWlmlColumns,
 } from './dust-table.data';
 import { getDustInfoList, getAllFileList, getAllFileListById } from './dsut-table.api';
 import customHeader from '/@/components/vent/customHeader.vue';
@@ -140,6 +143,8 @@ const computedColumns = computed(() => {
       return Yjlcolumns; // 榆家梁对应的列配置
     case 'sdmtjtcctrk':
       return Cctrkcolumns; // 寸草塔二矿对应的列配置
+    case 'sdmtjtwlmlmk':
+      return Wlmlcolumns; // 乌兰木伦对应的列配置
     default:
       return columns; // 默认情况下返回的列配置
   }
@@ -164,6 +169,8 @@ const AllDataComputedColumns = computed(() => {
       return AllDataYjlColumns; // 榆家梁对应的列配置
     case 'sdmtjtcctrk':
       return AllDataCctrkColumns; // 寸草塔二矿对应的列配置
+    case 'sdmtjtwlmlmk':
+      return AllDataWlmlColumns; // 乌兰木伦对应的列配置
     default:
       return AllDataColumns; // 默认情况下返回的列配置
   }
@@ -188,6 +195,8 @@ const DataComputedColumns = computed(() => {
       return dataYjlColumns; // 榆家梁对应的列配置
     case 'sdmtjtcctrk':
       return dataCctrkColumns; // 寸草塔二矿对应的列配置
+    case 'sdmtjtwlmlmk':
+      return dataWlmlColumns; // 乌兰木伦对应的列配置
     default:
       return dataColumns; // 默认情况下返回的列配置
   }
@@ -258,7 +267,7 @@ function processTableData(data: any) {
     const SwMaxValues = [
       { key: 'zcjqpj', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
       { key: 'hcjqpj', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
-    ];  
+    ];
     const HjtMaxValues = [
       { key: 'sc_zcds', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
       { key: 'sc_hcds', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
@@ -285,6 +294,10 @@ function processTableData(data: any) {
       { key: 'zcrxnd', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
       { key: 'hcrxnd', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: workplace },
     ];
+    const WlmlMaxValues = [
+      { key: 'sc_zcds', value: -Infinity, gz: '', jcdd: '', scgy: '' },
+      { key: 'sc_hcds', value: -Infinity, gz: '', jcdd: '', scgy: '' },
+    ];
     items.forEach((item: any) => {
       maxValues.forEach((maxValue) => {
         if (item[maxValue.key] > maxValue.value) {
@@ -357,6 +370,14 @@ function processTableData(data: any) {
           maxValue.gzcs = item.gzcs;
         }
       });
+      WlmlMaxValues.forEach((maxValue) => {
+        if (item[maxValue.key] > maxValue.value) {
+          maxValue.value = item[maxValue.key];
+          maxValue.gz = item.gz;
+          maxValue.jcdd = item.jcdd;
+          maxValue.scgy = item.zyjh;
+        }
+      });
     });
     switch (sysOrgCode) {
       case 'sdmtjtbetmk':
@@ -377,6 +398,8 @@ function processTableData(data: any) {
         return YjlMaxValues; // 榆家梁对应的列配置
       case 'sdmtjtcctrk':
         return CctrkMaxValues; // 寸草塔二矿对应的列配置
+      case 'sdmtjtwlmlmk':
+        return WlmlMaxValues; // 乌兰木伦对应的列配置
       default:
         return maxValues; // 默认情况下返回的列配置
     }
@@ -438,6 +461,10 @@ function processTableData(data: any) {
     { key: 'zcrxnd', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: '' },
     { key: 'hcrxnd', value: -Infinity, gz: '', jcdd: '', fczl: '', gzcs: '' },
   ];
+  const overallWlmlMaxValues = [
+    { key: 'sc_zcds', value: -Infinity, gz: '', jcdd: '', scgy: '' },
+    { key: 'sc_hcds', value: -Infinity, gz: '', jcdd: '', scgy: '' },
+  ];
   data.forEach((item: any) => {
     overallMaxValues.forEach((maxValue) => {
       if (item[maxValue.key] > maxValue.value) {
@@ -511,6 +538,14 @@ function processTableData(data: any) {
         maxValue.gzcs = item.gzcs;
       }
     });
+    overallWlmlMaxValues.forEach((maxValue) => {
+      if (item[maxValue.key] > maxValue.value) {
+        maxValue.value = item[maxValue.key];
+        maxValue.gz = item.gz;
+        maxValue.jcdd = item.jcdd;
+        maxValue.scgy = item.zyjh;
+      }
+    });
   });
   AllMaxValues = computed(() => {
     switch (sysOrgCode) {
@@ -532,6 +567,8 @@ function processTableData(data: any) {
         return overallYjlMaxValues; // 榆家梁对应的列配置
       case 'sdmtjtcctrk':
         return overallCctrkMaxValues; // 寸草塔二矿对应的列配置
+      case 'sdmtjtwlmlmk':
+        return overallWlmlMaxValues; // 乌兰木伦对应的列配置
       default:
         return overallMaxValues; // 默认情况下返回的列配置
     }