Browse Source

制氮系统更新

lxh 1 year ago
parent
commit
409514d055

+ 2 - 3
src/views/vent/monitorManager/compressor/components/nitrogenHome1.vue

@@ -155,7 +155,7 @@
   <!-- <DetailModal @register="registerModal" /> -->
 </template>
 <script lang="ts" setup name="nitrogenHome">
-import { onMounted, onUnmounted, ref, watch, reactive, defineProps } from 'vue'
+import { onMounted, onUnmounted, ref, watch, reactive, defineProps, nextTick} from 'vue'
 import ventBox1 from '/@/components/vent/ventBox1.vue'
 import fourBorderBg from '../../../comment/components/fourBorderBg.vue'
 import { mountedThree, destroy, setModelType } from '../nitrogen.threejs'
@@ -164,7 +164,6 @@ import { SvgIcon } from '/@/components/Icon'
 import LivePlayer from '@liveqing/liveplayer-v3';
 import BarAndLineCustom from '/@/components/chart/BarAndLineCustom.vue';
 import { zhudanOption } from '../nitrogen.data.ts'
-import { nextTick } from 'vue'
 
 
 // import DetailModal from './DetailModal.vue';
@@ -275,7 +274,7 @@ async function getDataSource(systemID) {
     const result = res.result;
     if (!result || result.msgTxt.length < 1) return
     result.msgTxt.forEach(item => {
-      if (item.type == 'zd_12s302zd') {
+      if (item.typeName.indexOf('制氮机')!=-1) {
         monitorData.value = item['datalist'].filter((data) => {
           const item = data.readData;
           return Object.assign(data, item);