1.省气象局免登录跳转

dev
guoyuepeng 2025-03-18 17:12:07 +08:00
parent 825fff6822
commit c4d5428df4
1 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,52 @@
<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>