修改上海张江智能安全帽问题
This commit is contained in:
parent
9e4ccfc3f0
commit
8dfb9847c7
@ -2,7 +2,8 @@
|
||||
<!-- 安全帽管理 -->
|
||||
<div class="material">
|
||||
<vue-scroll>
|
||||
<img src="@/assets/images/dataBoard/shzjSafetyImg.png" style="height:auto;width:100%"/>
|
||||
<!-- <img src="@/assets/images/dataBoard/shzjSafetyImg.png" style="height:auto;width:100%"/> -->
|
||||
<iframe style="width:100%;height:100%" :src="url" allow="microphone;camera;midi;encrypted-media;"></iframe>
|
||||
</vue-scroll>
|
||||
</div>
|
||||
</template>
|
||||
@ -12,4 +13,51 @@
|
||||
width:100%;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getSafeyHatSessionApi
|
||||
} from '@/assets/js/api/demo'
|
||||
// import iframe from '../vrCenter/iframe.vue'
|
||||
export default {
|
||||
// components: { iframe },
|
||||
data() {
|
||||
return {
|
||||
projectSn:"",
|
||||
url: 'https://caps.runde.pro/login'
|
||||
}
|
||||
},
|
||||
created(){
|
||||
this.projectSn = this.$store.state.projectSn;
|
||||
this.getSafeyHatSession()
|
||||
},
|
||||
methods: {
|
||||
getSafeyHatSession(){
|
||||
let data = {};
|
||||
data.projectSn = this.projectSn;
|
||||
getSafeyHatSessionApi(data).then(res=>{
|
||||
console.log(res)
|
||||
// {
|
||||
// "success":true,
|
||||
// "message":"操作成功!",
|
||||
// "code":200,
|
||||
// "result":{
|
||||
// "msg_code":"GetSucc",
|
||||
// "session_id":"d3a3c4d17c46e29dab9c9178d5b380c5",
|
||||
// "userName":"rdys_test",
|
||||
// "status":true,
|
||||
// "token":"d3a3c4d17c46e29dab9c9178d5b380c5"
|
||||
// },
|
||||
// "timestamp":1634904162951
|
||||
// }
|
||||
if(res.code == 200){
|
||||
// this.url = this.url + '#'+ res.result.token + '=' + res.result.session_id + '&user_name=' + res.result.userName + '&target=home'
|
||||
this.url = this.url + '#token='+ res.result.token + '&user_name=' + res.result.userName + '&target=home'
|
||||
window.open(this.url)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Loading…
x
Reference in New Issue
Block a user