Forráskód Böngészése

机组运行监控加上

dongjh 1 éve%!(EXTRA string=óta)
szülő
commit
0a50ef2cff

+ 15 - 3
src/views/modules_guAn/visualization/modules/SurveillanceVideo.vue

@@ -1,15 +1,17 @@
 <template>
   <div class="surveillance-video-module">
     <common-title title="机组运行监控"></common-title>
-    <div class="visualization-common-border">
-      <div class="video-container">
+    <div class="visualization-common-border">      
+      <iframe :src="iframeUrl" scrolling="no" frameborder="0" width="140%" height="110%" style="margin-left: -18%;margin-top: -1%;" />
+      <!-- <div class="video-container">
         <div class="video-img"></div>
-      </div>
+      </div> -->
     </div>
   </div>
 </template>
 
 <script>
+import {getAction} from '@/api/manage'
 import commonTitle from '../components/commonTitle.vue'
 
 export default {
@@ -17,13 +19,23 @@ export default {
   name: '',
   data () {
     return {
+      iframeUrl: ''
     }
   },
   created () {
+    this.getUrl()
   },
   mounted () {
   },
   methods: {
+    // 获取iframe地址
+    getUrl(){
+      getAction('/datacoll/webaccess/getShiyiUrl').then(res=>{
+        if(res.success){
+          this.iframeUrl = res.result
+        }
+      })
+    },
   }
 }
 </script>