53 lines
986 B
Vue
53 lines
986 B
Vue
<template>
|
|
<div class="iframe-container">
|
|
<iframe
|
|
:src=srcurl
|
|
width="100%"
|
|
height="100%"
|
|
allowfullscreen
|
|
style="overflow-y:hidden;overflow-x:hidden;"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
|
import { requestFN } from '@/utils/request'
|
|
export default {
|
|
components: {
|
|
},
|
|
data() {
|
|
return {
|
|
srcurl:''
|
|
}
|
|
},
|
|
created() {
|
|
this.getList()
|
|
},
|
|
methods: {
|
|
// 获取列表
|
|
getList() {
|
|
var _this = this
|
|
requestFN(
|
|
'/meteorologicalServices/getUser',
|
|
).then((data) => {
|
|
var jami = data.jiami
|
|
var url = 'http://192.168.192.201:8995/ocean/userInfo/loginByUser?k=' +data.jiami
|
|
_this.srcurl = url
|
|
}).catch((e) => {
|
|
this.listLoading = false
|
|
})
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.iframe-container {
|
|
position: fixed;
|
|
top: 10;
|
|
left: 10;
|
|
width: 90%;
|
|
height: 90%;
|
|
}
|
|
</style>
|