|
@@ -2,14 +2,14 @@
|
|
|
<div class="info-3D-module">
|
|
|
<!-- 顶部信息 -->
|
|
|
<div class="u-flex-jaa info-content">
|
|
|
- <div v-for="(item, index) in raelDate" :key="index" class="item-info">
|
|
|
+ <div v-for="(item, index) in realDate" :key="index" class="item-info">
|
|
|
{{ item.name }}:{{ item.value }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 3D区域 -->
|
|
|
<div class="area-3D">
|
|
|
<!-- <div class="img-3D"></div> -->
|
|
|
- <iframe src="https://192.168.2.246:4000/scene.html?tag=scenes/YTRL/20240126V1.json&org_id=4&allCache=true&fullscreen=101" scrolling="no" frameborder="0" width="100%" height="100%" />
|
|
|
+ <iframe :src="iframeUrl" scrolling="no" frameborder="0" width="100%" height="100%" />
|
|
|
<!-- <iframe src="https://192.168.2.246:4000/display.html?tag=displays/YT%208%202.json&org_id=4&fullscreen=101" scrolling="no" frameborder="0" width="100%" height="100%" /> -->
|
|
|
</div>
|
|
|
|
|
@@ -17,6 +17,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import {getAction} from '@/api/manage'
|
|
|
import commonTitle from '../components/commonTitle.vue'
|
|
|
|
|
|
var eqStatus = [
|
|
@@ -47,7 +48,8 @@ export default {
|
|
|
{ name: '预计结束时间', webName: '预计结束时间-试验信息', value: '' },
|
|
|
{ name: '试验运行时间', webName: '试验运行时间', value: '' },
|
|
|
],
|
|
|
- raelDate: []
|
|
|
+ realDate: [],
|
|
|
+ iframeUrl: ''
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -61,10 +63,19 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
+ // this.getUrl()
|
|
|
},
|
|
|
mounted () {
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 获取iframe地址
|
|
|
+ getUrl(){
|
|
|
+ getAction('/datacoll/webaccess/getFlowUrl').then(res=>{
|
|
|
+ if(res.success){
|
|
|
+ this.iframeUrl = res.result
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取并处理改变数据
|
|
|
changeData(newValue){
|
|
|
var newArr = this.staticData.map(item=>{
|
|
@@ -101,9 +112,9 @@ export default {
|
|
|
value: value
|
|
|
}
|
|
|
})
|
|
|
- this.raelDate = newArr
|
|
|
- // this.raelDate = this.staticData
|
|
|
- // console.log(this.raelDate)
|
|
|
+ this.realDate = newArr
|
|
|
+ // this.realDate = this.staticData
|
|
|
+ // console.log(this.realDate)
|
|
|
},
|
|
|
}
|
|
|
}
|