Browse Source

束管日报分析 色谱仪分析煤自燃阶段问题修改

bobo04052021@163.com 3 months ago
parent
commit
499443a4bf

+ 28 - 28
src/views/vent/bundle/bundleMonitorTable/index.vue

@@ -29,11 +29,11 @@
             <div class="explain">测点共计{{ total }}个</div>
             <div class="progress-label">潜伏期阶段:{{ qfqCount }}</div>
             <Progress :percent="qfqPercent" size="default" strokeColor="green" :show-info="true" :format="() => qfqCount" />
-            <div class="progress-label">缓慢氧化阶段:{{ latentCount }}</div>
+            <div class="progress-label">缓慢氧化升温阶段:{{ latentCount }}</div>
             <Progress :percent="latentPercent" size="default" strokeColor="yellow" :show-info="true" :format="() => latentCount" />
-            <div class="progress-label">加速氧化阶段:{{ selfHeatingCount }}</div>
+            <div class="progress-label">加速氧化升温阶段:{{ selfHeatingCount }}</div>
             <Progress :percent="selfHeatingPercent" size="default" strokeColor="orange‌" :show-info="true" :format="() => selfHeatingCount" />
-            <div class="progress-label">剧烈氧化阶段:{{ combustionCount }}</div>
+            <div class="progress-label">剧烈氧化升温阶段:{{ combustionCount }}</div>
             <Progress :percent="combustionPercent" size="default" strokeColor="red" :show-info="true" :format="() => combustionCount" />
           </div>
         </div>
@@ -259,39 +259,39 @@ async function getTableList(params: any) {
   let res = await getBundleInfoList({ type: 'bundle', ...params });
   const content = res.content;
   let contentArr = JSON.parse(content);
-  const contentNewArr = computed(() => {
-    return contentArr.map((item) => {
-      let internalFireWarnLevel = '';
+  // const contentNewArr = computed(() => {
+  //   return contentArr.map((item) => {
+  //     let internalFireWarnLevel = '';
 
-      const co = item.co_ave;
-      const co2 = item.co2_ave;
-      const c2h4 = item.c2h4_ave;
-      const c2h2 = item.c2h2_ave;
-      const coRatio = co / co2;
+  //     const co = item.co_ave;
+  //     const co2 = item.co2_ave;
+  //     const c2h4 = item.c2h4_ave;
+  //     const c2h2 = item.c2h2_ave;
+  //     const coRatio = co / co2;
 
-      if (co >= 0 && co <= 13.75) {
-        internalFireWarnLevel = '潜伏期阶段';
-      } else if (co > 13.75 && co < 67.2 && coRatio < 0.095) {
-        internalFireWarnLevel = '缓慢氧化升温阶段';
-      } else if ((co >= 67.2 && co < 1606.3) || (coRatio >= 0.095 && coRatio < 0.322) || c2h4 < 2) {
-        internalFireWarnLevel = '加速氧化阶段';
-      } else if (co >= 1606.3 || coRatio >= 0.322 || c2h4 >= 2 || c2h2 > 0) {
-        internalFireWarnLevel = '剧烈氧化阶段';
-      }
+  //     if (co >= 0 && co <= 13.75) {
+  //       internalFireWarnLevel = '潜伏期阶段';
+  //     } else if (co > 13.75 && co < 67.2 && coRatio < 0.095) {
+  //       internalFireWarnLevel = '缓慢氧化升温阶段';
+  //     } else if ((co >= 67.2 && co < 1606.3) || (coRatio >= 0.095 && coRatio < 0.322) || c2h4 < 2) {
+  //       internalFireWarnLevel = '加速氧化阶段';
+  //     } else if (co >= 1606.3 || coRatio >= 0.322 || c2h4 >= 2 || c2h2 > 0) {
+  //       internalFireWarnLevel = '剧烈氧化阶段';
+  //     }
 
-      return { ...item, internalFireWarnLevel };
-    });
-  });
+  //     return { ...item, internalFireWarnLevel };
+  //   });
+  // });
   total.value = contentArr.length;
-  qfqCount.value = contentNewArr.value.filter((item: any) => item.internalFireWarnLevel === '潜伏期阶段').length;
-  latentCount.value = contentNewArr.value.filter((item: any) => item.internalFireWarnLevel === '缓慢氧化升温阶段').length;
-  selfHeatingCount.value = contentNewArr.value.filter((item: any) => item.internalFireWarnLevel === '加速氧化阶段').length;
-  combustionCount.value = contentNewArr.value.filter((item: any) => item.internalFireWarnLevel === '剧烈氧化阶段').length;
+  qfqCount.value = contentArr.value.filter((item: any) => item.internalFireWarnLevel === '潜伏期阶段').length;
+  latentCount.value = contentArr.value.filter((item: any) => item.internalFireWarnLevel === '缓慢氧化升温阶段').length;
+  selfHeatingCount.value = contentArr.value.filter((item: any) => item.internalFireWarnLevel === '加速氧化升温阶段').length;
+  combustionCount.value = contentArr.value.filter((item: any) => item.internalFireWarnLevel === '剧烈氧化升温阶段').length;
   qfqPercent.value = (qfqCount.value / total.value) * 100;
   latentPercent.value = (latentCount.value / total.value) * 100;
   selfHeatingPercent.value = (selfHeatingCount.value / total.value) * 100;
   combustionPercent.value = (combustionCount.value / total.value) * 100;
-  tableData.value = contentNewArr.value;
+  tableData.value = contentArr;
   nextTick(() => {
     updateChart(contentArr);
   });

+ 28 - 28
src/views/vent/bundleSpy/bundleSpyTable/index.vue

@@ -24,11 +24,11 @@
             <div class="explain">测点共计{{ total }}个</div>
             <div class="progress-label">潜伏期阶段:{{ qfqCount }}</div>
             <Progress :percent="qfqPercent" size="default" strokeColor="green" :show-info="true" :format="() => qfqCount" />
-            <div class="progress-label">缓慢氧化阶段:{{ latentCount }}</div>
+            <div class="progress-label">缓慢氧化升温阶段:{{ latentCount }}</div>
             <Progress :percent="latentPercent" size="default" strokeColor="yellow" :show-info="true" :format="() => latentCount" />
-            <div class="progress-label">加速氧化阶段:{{ selfHeatingCount }}</div>
+            <div class="progress-label">加速氧化升温阶段:{{ selfHeatingCount }}</div>
             <Progress :percent="selfHeatingPercent" size="default" strokeColor="orange‌" :show-info="true" :format="() => selfHeatingCount" />
-            <div class="progress-label">剧烈氧化阶段:{{ combustionCount }}</div>
+            <div class="progress-label">剧烈氧化升温阶段:{{ combustionCount }}</div>
             <Progress :percent="combustionPercent" size="default" strokeColor="red" :show-info="true" :format="() => combustionCount" />
           </div>
         </div>
@@ -79,39 +79,39 @@ async function getTableList(params: any) {
   let res = await getbundleSpyInfoList({ type: 'bundleSpy', ...params });
   const content = res.content;
   let contentArr = JSON.parse(content);
-  const contentNewArr = computed(() => {
-    return contentArr.map((item) => {
-      let internalFireWarnLevel = '';
+  // const contentNewArr = computed(() => {
+  //   return contentArr.map((item) => {
+  //     let internalFireWarnLevel = '';
 
-      const co = item.co_ave;
-      const co2 = item.co2_ave;
-      const c2h4 = item.c2h4_ave;
-      const c2h2 = item.c2h2_ave;
-      const coRatio = co / co2;
+  //     const co = item.co_ave;
+  //     const co2 = item.co2_ave;
+  //     const c2h4 = item.c2h4_ave;
+  //     const c2h2 = item.c2h2_ave;
+  //     const coRatio = co / co2;
 
-      if (co >= 0 && co <= 13.75) {
-        internalFireWarnLevel = '潜伏期阶段';
-      } else if (co > 13.75 && co < 67.2 && coRatio < 0.095) {
-        internalFireWarnLevel = '缓慢氧化升温阶段';
-      } else if ((co >= 67.2 && co < 1606.3) || (coRatio >= 0.095 && coRatio < 0.322) || c2h4 < 2) {
-        internalFireWarnLevel = '加速氧化阶段';
-      } else if (co >= 1606.3 || coRatio >= 0.322 || c2h4 >= 2 || c2h2 > 0) {
-        internalFireWarnLevel = '剧烈氧化阶段';
-      }
+  //     if (co >= 0 && co <= 13.75) {
+  //       internalFireWarnLevel = '潜伏期阶段';
+  //     } else if (co > 13.75 && co < 67.2 && coRatio < 0.095) {
+  //       internalFireWarnLevel = '缓慢氧化升温阶段';
+  //     } else if ((co >= 67.2 && co < 1606.3) || (coRatio >= 0.095 && coRatio < 0.322) || c2h4 < 2) {
+  //       internalFireWarnLevel = '加速氧化阶段';
+  //     } else if (co >= 1606.3 || coRatio >= 0.322 || c2h4 >= 2 || c2h2 > 0) {
+  //       internalFireWarnLevel = '剧烈氧化阶段';
+  //     }
 
-      return { ...item, internalFireWarnLevel };
-    });
-  });
+  //     return { ...item, internalFireWarnLevel };
+  //   });
+  // });
   total.value = contentArr.length;
-  qfqCount.value = contentNewArr.value.filter((item: any) => item.internalFireWarnLevel === '潜伏期阶段').length;
-  latentCount.value = contentNewArr.value.filter((item: any) => item.internalFireWarnLevel === '缓慢氧化升温阶段').length;
-  selfHeatingCount.value = contentNewArr.value.filter((item: any) => item.internalFireWarnLevel === '加速氧化阶段').length;
-  combustionCount.value = contentNewArr.value.filter((item: any) => item.internalFireWarnLevel === '剧烈氧化阶段').length;
+  qfqCount.value = contentArr.value.filter((item: any) => item.internalFireWarnLevel === '潜伏期阶段').length;
+  latentCount.value = contentArr.value.filter((item: any) => item.internalFireWarnLevel === '缓慢氧化升温阶段').length;
+  selfHeatingCount.value = contentArr.value.filter((item: any) => item.internalFireWarnLevel === '加速氧化升温阶段').length;
+  combustionCount.value = contentArr.value.filter((item: any) => item.internalFireWarnLevel === '剧烈氧化升温阶段').length;
   qfqPercent.value = (qfqCount.value / total.value) * 100;
   latentPercent.value = (latentCount.value / total.value) * 100;
   selfHeatingPercent.value = (selfHeatingCount.value / total.value) * 100;
   combustionPercent.value = (combustionCount.value / total.value) * 100;
-  tableData.value = contentNewArr.value;
+  tableData.value = contentArr;
   updateChart(contentArr);
 }