Browse Source

注氮更新

lxh 1 year ago
parent
commit
01c5aee968

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

@@ -144,10 +144,10 @@
                 :propTypeArr="['flowRate']" :option="zhudanOption" />
             </template>
           </ventBox1>
-          <div class="vent-margin-t-10">
+          <!-- <div class="vent-margin-t-10">
             <LivePlayer id="fm-player1" style="height: 250px;" ref="player1" :videoUrl="flvURL1()" muted live loading
               controls />
-          </div>
+          </div> -->
         </div>
       </div>
     </div>
@@ -161,7 +161,7 @@ import fourBorderBg from '../../../comment/components/fourBorderBg.vue'
 import { mountedThree, destroy, setModelType } from '../nitrogen.threejs'
 import { getDevice } from '../nitrogen.api'
 import { SvgIcon } from '/@/components/Icon'
-import LivePlayer from '@liveqing/liveplayer-v3';
+// import LivePlayer from '@liveqing/liveplayer-v3';
 import BarAndLineCustom from '/@/components/chart/BarAndLineCustom.vue';
 import { zhudanOption } from '../nitrogen.data.ts'
 
@@ -268,10 +268,10 @@ async function getMonitor(flag?) {
 };
 
 async function getDataSource(systemID) {
-  console.log(monitorData, 'monitorData')
   const res = await getDevice({ devicetype: 'sys', systemID, type: 'all' });
-  if (res.success) {
-    const result = res.result;
+  console.log(res,'res---------------')
+  if (res) {
+    const result = res;
     if (!result || result.msgTxt.length < 1) return
     result.msgTxt.forEach(item => {
       if (item.typeName.indexOf('制氮机')!=-1) {