ソースを参照

基金项目bug修改-提交

lxh 1 年間 前
コミット
1c2b51196a

+ 7 - 2
src/views/vent/common/danelBd.vue

@@ -78,6 +78,12 @@ let props = defineProps({
       return [];
     },
   },
+  selectValue:{
+    type:String,
+    default:()=>{
+      return ''
+    }
+  }
 });
 const emit = defineEmits(['changeSelect']);
 
@@ -123,9 +129,8 @@ watch(
     if (newV.length != 0) {
       selectLists.value = newV;
       console.log(selectLists.value, '====----')
-      selectVal.value = selectLists.value[0].label
+      selectVal.value = props.selectValue
     }
-
   },
   { immediate: true, deep: true },
 );

+ 3 - 3
src/views/vent/dust/dustHome/index.vue

@@ -37,7 +37,7 @@
         </div>
         <div class="center-b">
           <DanelBd :moduleName="'综放工作面粉尘浓度'" :contentStyle="{ contentH: '277px' }" :commonTitle="'selected'"
-            :selectList="selectListBd" @changeSelect="changeSelect">
+            :selectList="selectListBd" :selectValue="sensorCode" @changeSelect="changeSelect">
             <multipleDust :echartData="echartData" />
           </DanelBd>
         </div>
@@ -53,7 +53,7 @@
         <!-- 右中区域 -->
         <div class="right-c">
           <DanelBd :moduleName="'粉尘关联指标'" :contentStyle="{ contentH: '230px' }" commonTitle="selected"
-            :selectList="selectListBd" @changeSelect="changeSelect1">
+            :selectList="selectListBd" :selectValue="sensorCode" @changeSelect="changeSelect1">
             <dustGlzb :dustGlzbData="dustGlzbData" />
           </DanelBd>
         </div>
@@ -177,7 +177,7 @@ async function getRealSensorDataByTypeList() {
         label: el.name, value: el.code, temperature: el.temperature, humidity: el.humidity, windSpeed: el.windSpeed, waterPressure: el.waterPressure,
       })
     })
-    sensorCode.value = selectListBd[0]['value']
+    sensorCode.value = sensorCode.value ? sensorCode.value : selectListBd[0]['value']
     dustGlzbData[0].val = selectListBd[0]['temperature'] || '--'
     dustGlzbData[1].val = selectListBd[0]['humidity'] || '--'
     dustGlzbData[2].val = selectListBd[0]['windSpeed'] || '--'

+ 2 - 2
src/views/vent/dust/dustWarnAnalysis/index.vue

@@ -88,7 +88,7 @@ async function getAreaTypeListd() {
       treeData.push({ name: el.typeName, value: ind, id: ind, pid: null, areaType: el.areaType, warningLevel: el.warningLevel, })
     })
     console.log(treeData, '粉尘左侧菜单树')
-    areaType.value = treeData[0]['areaType']
+    areaType.value = areaType.value ? areaType.value : treeData[0]['areaType']
     warningLevel.value = treeData[0]['warningLevel'] == 1 ? '低风险' : treeData[0]['warningLevel'] == 2 ? '中风险' : treeData[0]['warningLevel'] == 3 ? '较高风险' : treeData[0]['warningLevel'] == 4 ? '重大风险' : '--'
     //获取粉尘选项数据
     getRealSensorDataByTypeList()
@@ -118,7 +118,7 @@ async function getRealSensorDataByTypeList() {
         ]
       })
     })
-    sensorCode.value = cardData4[0]['sensorCode']
+    sensorCode.value =sensorCode.value ? sensorCode.value : cardData4[0]['sensorCode']
     //获取单项数据
     getDustInfosList()
   }

+ 4 - 4
src/views/vent/fire/compositeWarn/index.vue

@@ -137,7 +137,7 @@ async function getFireAreaInfos() {
         treeData.push({ name: el.areaName, value: el.ind, id: el.ind, pid: null, areaCode: el.areaCode, gxcwCnt: el.gxcwCnt, sgjcCnt: el.sgjcCnt, infoTypeTwo: el.infoTypeTwo, warningLevel: el.warningLevel })
       }
     })
-    areaCode.value = treeData[0]['areaCode']
+    areaCode.value = areaCode.value ? areaCode.value : treeData[0]['areaCode']
     warningLevel.value = treeData[0].warningLevel == 1 ? '低风险' : treeData[0].warningLevel == 2 ? '中风险' : treeData[0].warningLevel == 3 ? '较高风险' : treeData[0].warningLevel == 4 ? '重大风险' : '--'
     console.log(treeData, 'treeData-------')
     cardContentList[0]['val'] = treeData[0].infoTypeTwo.maxTemperature
@@ -205,7 +205,7 @@ async function getInfosByAreaCodeList() {
         value: el.pointCode,
       })
     })
-    gxSelect.value = res[0]['pointCode']
+    gxSelect.value = gxSelect.value ? gxSelect.value : res[0]['pointCode']
     //获取光钎测温图表数据
     getGxcwHistoryDataByPointCodeList()
   }
@@ -246,14 +246,14 @@ async function getSgjcPointInfoList() {
 }
 //获取工作面束管测点实时数据
 async function getSgjcRealDataByPointCodeList() {
-  card3List.length = 0
   let res = await getSgjcRealDataByPointCode({ pointCode: pointCode.value })
   console.log(res, '工作面束管测点实时数据======')
   if (res.length != 0) {
+    card3List.length = 0
     res.forEach(el => {
       card3List.push({ title: el.type, ndLabel: '浓度', ndVal: el.currentValue, tLabel: '时间', tVal: el.time, aLabel: '位置', aVal: el.position })
     })
-    gasType.value = card3List[0]['title']
+    gasType.value = gasType.value ? gasType.value : card3List[0]['title']
     //获取束管曲线数据
     getSgjcHistoryDataList()
   }

+ 2 - 2
src/views/vent/fire/fireGoaf/index.vue

@@ -98,7 +98,7 @@ async function getFireAreaInfos() {
         treeData.push({ name: el.areaName, value: el.ind, id: el.ind, pid: null, areaCode: el.areaCode, warningLevel: el.warningLevel })
       }
     })
-    areaCode.value = treeData[0]['areaCode']
+    areaCode.value = areaCode.value ? areaCode.value : treeData[0]['areaCode']
     warningLevel.value = treeData[0].warningLevel == 1 ? '低风险' : treeData[0].warningLevel == 2 ? '中风险' : treeData[0].warningLevel == 3 ? '较高风险' : treeData[0].warningLevel == 4 ? '重大风险' : '--'
     console.log(treeData, 'treeData-------')
     getMbRealDataList()
@@ -115,7 +115,7 @@ async function getMbRealDataList() {
     res.forEach(el => {
       card3List.push({ title: el.type, ndLabel: '浓度 : ', ndVal: el.currentValue, tLabel: '时间 : ', tVal: el.time, aLabel: '位置 : ', aVal: el.position })
     })
-    type.value = card3List[0]['title']
+    type.value = type.value ? type.value : card3List[0]['title']
     //获取密闭图表数据
     getMbHistoryDataList()
   }

+ 282 - 268
src/views/vent/fire/fireHome/components/emptyJc.vue

@@ -8,280 +8,294 @@
 </template>
 
 <script setup lang="ts">
-  import { ref, reactive,defineProps,watch } from 'vue';
-
-  let props=defineProps({
-    emptyData:{
-      type:Array,
-      default:()=>{
-        return []
-      }
+import { ref, reactive, defineProps, watch } from 'vue';
+
+let props = defineProps({
+  emptyData: {
+    type: Array,
+    default: () => {
+      return []
     }
-  })
+  }
+})
 
-  let emptyList = ref<any[]>([]);
+let emptyList = ref<any[]>([]);
 
-  watch(()=>props.emptyData,(newE,oldE)=>{
-    console.log(newE,'newE')
-    emptyList.value=newE
-  },{immediate:true,deep:true})
+watch(() => props.emptyData, (newE, oldE) => {
+  console.log(newE, 'newE')
+  emptyList.value = newE
+}, { immediate: true, deep: true })
 </script>
 
 <style lang="less" scoped>
-  .emptyJc {
-    position: relative;
-    width: 100%;
-    height: 100%;
-    overflow: hidden;
-
-    .empty-box {
-      display: flex;
-      position: absolute;
-      flex-direction: column;
-      align-items: center;
-      justify-content: center;
-      background: url('../../../../../assets/images/fire/firehome/empty-qp.png') no-repeat center;
-      background-size: 100% 100%;
-
-      &:nth-child(1) {
-        @keyframes fdOne {
-          0% {
-            top: 0%;
-            left: 10%;
-          }
-
-          20% {
-            top: 10%;
-            left: 30%;
-          }
-
-          60% {
-            top: 20%;
-            left: 50%;
-          }
-
-          80% {
-            top: 30%;
-            left: 70%;
-          }
-
-          100% {
-            top: 15%;
-            left: 80%;
-          }
-        }
-
-        width: 100px;
-        height: 100px;
-        animation: fdOne 16s linear infinite;
-      }
-
-      &:nth-child(2) {
-        @keyframes fdTwo {
-          0% {
-            top: 0%;
-            left: 30%;
-          }
-
-          20% {
-            top: 20%;
-            left: 50%;
-          }
-
-          60% {
-            top: 60%;
-            left: 80%;
-          }
-
-          80% {
-            top: 40%;
-            left: 40%;
-          }
-
-          100% {
-            top: 10%;
-            left: 20%;
-          }
-        }
-
-        width: 80px;
-        height: 80px;
-        animation: fdTwo 10s linear infinite;
-      }
-
-      &:nth-child(3) {
-        @keyframes fdThree {
-          0% {
-            top: 50%;
-            left: 45%;
-          }
-
-          20% {
-            top: 35%;
-            left: 20%;
-          }
-
-          60% {
-            top: 15%;
-            left: 50%;
-          }
-
-          80% {
-            top: 40%;
-            left: 70%;
-          }
-
-          100% {
-            top: 55%;
-            left: 90%;
-          }
-        }
-
-        width: 90px;
-        height: 90px;
-        animation: fdThree 13s linear infinite;
-      }
-
-      &:nth-child(4) {
-        @keyframes fdFour {
-          0% {
-            top: 60%;
-            left: 50%;
-          }
-
-          20% {
-            top: 50%;
-            left: 35%;
-          }
-
-          60% {
-            top: 40%;
-            left: 20%;
-          }
-
-          80% {
-            top: 10%;
-            left: 0%;
-          }
-
-          100% {
-            top: 35%;
-            left: 50%;
-          }
-        }
-
-        width: 100px;
-        height: 100px;
-        animation: fdFour 16s linear infinite;
-      }
-
-      &:nth-child(5) {
-        @keyframes fdFive {
-          0% {
-            top: 50%;
-            left: 70%;
-          }
-
-          20% {
-            top: 35%;
-            left: 85%;
-          }
-
-          60% {
-            top: 25%;
-            left: 65%;
-          }
-
-          80% {
-            top: 40%;
-            left: 20%;
-          }
-
-          100% {
-            top: 65%;
-            left: 50%;
-          }
-        }
-
-        width: 80px;
-        height: 80px;
-        animation: fdFive 10s linear infinite;
-      }
-
-      &:nth-child(6) {
-        @keyframes fdSix {
-          0% {
-            top: 60%;
-            left: 15%;
-          }
-
-          20% {
-            top: 45%;
-            left: 30%;
-          }
-
-          60% {
-            top: 30%;
-            left: 45%;
-          }
-
-          80% {
-            top: 15%;
-            left: 60%;
-          }
-
-          100% {
-            top: 30%;
-            left: 40%;
-          }
-        }
-
-        width: 100px;
-        height: 100px;
-        animation: fdSix 16s linear infinite;
-      }
-
-      &:nth-child(7) {
-        @keyframes fdSev {
-          0% {
-            top: 10%;
-            left: 80%;
-          }
-
-          20% {
-            top: 30%;
-            left: 65%;
-          }
-
-          60% {
-            top: 50%;
-            left: 50%;
-          }
-
-          80% {
-            top: 70%;
-            left: 35%;
-          }
-
-          100% {
-            top: 50%;
-            left: 20%;
-          }
-        }
-
-        width: 90px;
-        height: 90px;
-        animation: fdSev 13s linear infinite;
-      }
-
-      .empty-label {
-        color: #9da5aa;
-      }
-
-      .empty-val {
-        color: #fff;
-        font-size: 18px;
-      }
+.emptyJc {
+  position: relative;
+  width: 100%;
+  height: 100%;
+  overflow: hidden;
+
+  .empty-box {
+    display: flex;
+    position: absolute;
+    flex-direction: column;
+    align-items: center;
+    justify-content: center;
+    background: url('../../../../../assets/images/fire/firehome/empty-qp.png') no-repeat center;
+    background-size: 100% 100%;
+
+    &:nth-child(1) {
+      // animation: fdOne 16s linear infinite;
+      top: 10px;
+      left: 0;
+      // @keyframes fdOne {
+      //   0% {
+      //     top: 0%;
+      //     left: 10%;
+      //   }
+
+      //   20% {
+      //     top: 10%;
+      //     left: 30%;
+      //   }
+
+      //   60% {
+      //     top: 20%;
+      //     left: 50%;
+      //   }
+
+      //   80% {
+      //     top: 30%;
+      //     left: 70%;
+      //   }
+
+      //   100% {
+      //     top: 15%;
+      //     left: 80%;
+      //   }
+      // }
+
+      width: 100px;
+      height: 100px;
+    }
+
+    &:nth-child(2) {
+      top: 70px;
+      left: 50px;
+      // @keyframes fdTwo {
+      //   0% {
+      //     top: 0%;
+      //     left: 30%;
+      //   }
+
+      //   20% {
+      //     top: 20%;
+      //     left: 50%;
+      //   }
+
+      //   60% {
+      //     top: 60%;
+      //     left: 80%;
+      //   }
+
+      //   80% {
+      //     top: 40%;
+      //     left: 40%;
+      //   }
+
+      //   100% {
+      //     top: 10%;
+      //     left: 20%;
+      //   }
+      // }
+
+      width: 80px;
+      height: 80px;
+      // animation: fdTwo 10s linear infinite;
+    }
+
+    &:nth-child(3) {
+      top: 30px;
+      left: 130px;
+      // @keyframes fdThree {
+      //   0% {
+      //     top: 50%;
+      //     left: 45%;
+      //   }
+
+      //   20% {
+      //     top: 35%;
+      //     left: 20%;
+      //   }
+
+      //   60% {
+      //     top: 15%;
+      //     left: 50%;
+      //   }
+
+      //   80% {
+      //     top: 40%;
+      //     left: 70%;
+      //   }
+
+      //   100% {
+      //     top: 55%;
+      //     left: 90%;
+      //   }
+      // }
+
+      width: 90px;
+      height: 90px;
+      // animation: fdThree 13s linear infinite;
+    }
+
+    &:nth-child(4) {
+      top: 0;
+      left: 190px;
+      // @keyframes fdFour {
+      //   0% {
+      //     top: 60%;
+      //     left: 50%;
+      //   }
+
+      //   20% {
+      //     top: 50%;
+      //     left: 35%;
+      //   }
+
+      //   60% {
+      //     top: 40%;
+      //     left: 20%;
+      //   }
+
+      //   80% {
+      //     top: 10%;
+      //     left: 0%;
+      //   }
+
+      //   100% {
+      //     top: 35%;
+      //     left: 50%;
+      //   }
+      // }
+
+      width: 100px;
+      height: 100px;
+      // animation: fdFour 16s linear infinite;
+    }
+
+    &:nth-child(5) {
+      top: 60px;
+      left: 290px;
+      // @keyframes fdFive {
+      //   0% {
+      //     top: 50%;
+      //     left: 70%;
+      //   }
+
+      //   20% {
+      //     top: 35%;
+      //     left: 85%;
+      //   }
+
+      //   60% {
+      //     top: 25%;
+      //     left: 65%;
+      //   }
+
+      //   80% {
+      //     top: 40%;
+      //     left: 20%;
+      //   }
+
+      //   100% {
+      //     top: 65%;
+      //     left: 50%;
+      //   }
+      // }
+
+      width: 80px;
+      height: 80px;
+      // animation: fdFive 10s linear infinite;
+    }
+
+    &:nth-child(6) {
+      top: 20px;
+      left: 370px;
+      // @keyframes fdSix {
+      //   0% {
+      //     top: 60%;
+      //     left: 15%;
+      //   }
+
+      //   20% {
+      //     top: 45%;
+      //     left: 30%;
+      //   }
+
+      //   60% {
+      //     top: 30%;
+      //     left: 45%;
+      //   }
+
+      //   80% {
+      //     top: 15%;
+      //     left: 60%;
+      //   }
+
+      //   100% {
+      //     top: 30%;
+      //     left: 40%;
+      //   }
+      // }
+
+      width: 100px;
+      height: 100px;
+      // animation: fdSix 16s linear infinite;
+    }
+
+    &:nth-child(7) {
+      top: 30px;
+      left: 420px;
+      // @keyframes fdSev {
+      //   0% {
+      //     top: 10%;
+      //     left: 80%;
+      //   }
+
+      //   20% {
+      //     top: 30%;
+      //     left: 65%;
+      //   }
+
+      //   60% {
+      //     top: 50%;
+      //     left: 50%;
+      //   }
+
+      //   80% {
+      //     top: 70%;
+      //     left: 35%;
+      //   }
+
+      //   100% {
+      //     top: 50%;
+      //     left: 20%;
+      //   }
+      // }
+
+      width: 90px;
+      height: 90px;
+      // animation: fdSev 13s linear infinite;
+    }
+
+    .empty-label {
+      color: #9da5aa;
+    }
+
+    .empty-val {
+      color: #fff;
+      font-size: 18px;
     }
   }
+}
 </style>

+ 9 - 12
src/views/vent/fire/fireHome/index.vue

@@ -29,7 +29,7 @@
         <!-- 左下区域 -->
         <div class="left-b">
           <DanelBd :moduleName="'密闭采空区监测系统'" :contentStyle="{ contentH: '170px' }" commonTitle="selected"
-            :selectList="selectListMb" @changeSelect="changeSelect">
+           :selectValue="areaCodeMb" :selectList="selectListMb" @changeSelect="changeSelect">
             <emptyJc :emptyData="emptyData" />
           </DanelBd>
         </div>
@@ -43,7 +43,7 @@
           <iframe src="http://82.157.13.146:18224/valkyrja" width="100%" height="100%" frameborder="0"></iframe>
         </div>
         <div class="center-b">
-          <DanelBd :moduleName="'工作面束管监测'" :moduleSelect="moduleSelect" :contentStyle="{ contentH: '277px' }"
+          <DanelBd :moduleName="'工作面束管监测'" :selectValue="pointCode" :moduleSelect="moduleSelect" :contentStyle="{ contentH: '277px' }"
             commonTitle="selected" :selectList="selectList" @changeSelect="changeSelect">
             <fiberBunbleJc :bunbleData="bunbleData" />
           </DanelBd>
@@ -66,14 +66,14 @@
         <!-- 右下区域 -->
         <div class="right-b">
           <DanelBd :moduleName="'变电硐室防灭火监控系统'" :contentStyle="{ contentH: '180px' }" commonTitle="selected"
-            :selectList="selectListBd" @changeSelect="changeSelect">
+            :selectList="selectListBd" :selectValue="pointCodeBd" @changeSelect="changeSelect">
             <substationJc :echartDatas="echartDatas" />
           </DanelBd>
         </div>
         <!-- 右底部区域 -->
         <div class="right-f">
           <DanelBd :moduleName="'安全监控系统'" :contentStyle="{ contentH: '180px' }" commonTitle="selected"
-            :selectList="selectListAq" @changeSelect="changeSelect">
+            :selectList="selectListAq" :selectValue="pointCodeAq" @changeSelect="changeSelect">
             <safetyJc :safetyHead="safetyHead" :safetyList="safetyList" />
           </DanelBd>
         </div>
@@ -106,7 +106,7 @@ let areaCodeMb = ref('')
 let dsCode = ref('')
 let areaCodeBd = ref('')
 let pointCodeBd = ref('')
-let pointCodeAq = ref('')
+let pointCodeAq = ref('one')
 
 //工作面风险监测数据
 let echartDataWork = reactive<any[]>([])
@@ -227,7 +227,8 @@ async function getFireAreaInfoListMb() {
     dataMb.forEach(m => {
       selectListMb.push({ label: m.areaName, value: m.areaCode })
     })
-    areaCodeMb.value = selectListMb[0]['value']
+   
+    areaCodeMb.value =areaCodeMb.value ?  areaCodeMb.value : selectListMb[0]['value']
     //获取密闭监测实时信息
     getMbRealDataList()
   }
@@ -253,7 +254,7 @@ async function getSgjcPointInfoList() {
     res.forEach(el => {
       selectList.push({ label: el.pointName, value: el.pointCode })
     })
-    pointCode.value = selectList[0]['value']
+    pointCode.value = pointCode.value ? pointCode.value : selectList[0]['value']
     //获取工作面束管测点实时数据  
     getSgjcRealDataByPointCodeList()
   }
@@ -306,11 +307,7 @@ async function getFireAreaInfoListDs() {
         { title: '烟雾预警', val: dataDs[0].infoTypeTwo.hazard, dw: '', label: '状态' },
       )
     }
-
-
-
   }
-
 }
 
 //变电硐室防灭火监控系统
@@ -337,7 +334,7 @@ async function getInfosByAreaCodeList() {
         value: el.pointCode
       })
     })
-    pointCodeBd.value = selectListBd[0].value
+    pointCodeBd.value =pointCodeBd.value ? pointCodeBd.value : selectListBd[0].value
     //获取光钎测温图表数据
     getGxcwHistoryDataByPointCodeList()
   }

+ 3 - 3
src/views/vent/fire/fireMonitor/index.vue

@@ -128,7 +128,7 @@ async function getFireAreaInfos() {
         treeData.push({ name: el.areaName, value: el.ind, id: el.ind, pid: null, areaCode: el.areaCode, gxcwCnt: el.gxcwCnt, sgjcCnt: el.sgjcCnt, infoTypeTwo: el.infoTypeTwo, warningLevel: el.warningLevel })
       }
     })
-    areaCode.value = treeData[0]['areaCode']
+    areaCode.value = areaCode.value ? areaCode.value : treeData[0]['areaCode']
     warningLevel.value = treeData[0].warningLevel == 1 ? '低风险' : treeData[0].warningLevel == 2 ? '中风险' : treeData[0].warningLevel == 3 ? '较高风险' : treeData[0].warningLevel == 4 ? '重大风险' : '--'
     console.log(treeData, 'treeData-------')
     cardContentList2[0]['valL'] = treeData[0].infoTypeTwo.aveTemperature
@@ -202,7 +202,7 @@ async function getInfosByAreaCodeList() {
         value: el.pointCode,
       })
     })
-    gxSelect.value = res[0]['pointCode']
+    gxSelect.value = gxSelect.value ? gxSelect.value : res[0]['pointCode']
     //获取光钎测温图表数据
     getGxcwHistoryDataByPointCodeList()
   }
@@ -257,7 +257,7 @@ async function getSgjcRealDataByPointCodeList() {
     res.forEach(el => {
       card3List.push({ title: el.type, ndLabel: '浓度', ndVal: el.currentValue, tLabel: '时间', tVal: el.time, aLabel: '位置', aVal: el.position })
     })
-    gasType.value = card3List[0]['title']
+    gasType.value = gasType.value ? gasType.value : card3List[0]['title']
     //获取束管曲线数据
     getSgjcHistoryDataList()
   }

+ 3 - 3
src/views/vent/fire/wokeFace/index.vue

@@ -153,7 +153,7 @@ async function getFireAreaInfos() {
         treeData.push({ name: el.areaName, value: el.ind, id: el.ind, pid: null, areaCode: el.areaCode, gxcwCnt: el.gxcwCnt, sgjcCnt: el.sgjcCnt, infoTypeTwo: el.infoTypeTwo })
       }
     })
-    areaCode.value = treeData[0]['areaCode']
+    areaCode.value = areaCode.value ? areaCode.value : treeData[0]['areaCode']
     warningLevel.value = treeData[0].warningLevel == 1 ? '低风险' : treeData[0].warningLevel == 2 ? '中风险' : treeData[0].warningLevel == 3 ? '较高风险' : treeData[0].warningLevel == 4 ? '重大风险' : '--'
     console.log(treeData, 'treeData-------')
     cardContentList[0]['val'] = treeData[0].infoTypeTwo.maxTemperature
@@ -234,7 +234,7 @@ async function getInfosByAreaCodeList() {
         value: el.pointCode,
       })
     })
-    gxSelect.value = res[0]['pointCode']
+    gxSelect.value = gxSelect.value ? gxSelect.value : res[0]['pointCode']
     //获取光钎测温图表数据
     getGxcwHistoryDataByPointCodeList()
   }
@@ -339,7 +339,7 @@ async function getSgjcRealDataByPointCodeList() {
     res.forEach(el => {
       card3List.push({ title: el.type, ndLabel: '浓度', ndVal: el.currentValue, tLabel: '时间', tVal: el.time, aLabel: '位置', aVal: el.position })
     })
-    gasType.value = card3List[0]['title']
+    gasType.value = gasType.value ? gasType.value : card3List[0]['title']
     //获取束管曲线数据
     getSgjcHistoryDataList()
   }