mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
增加对iframe的测试
This commit is contained in:
BIN
public/images/gonggao/close1.png
Normal file
BIN
public/images/gonggao/close1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
@@ -17,9 +17,9 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
if(window.top != window.self){
|
// if(window.top != window.self){
|
||||||
window.top.location=window.self.location;
|
// window.top.location=window.self.location;
|
||||||
}
|
// }
|
||||||
//u-pre.boe.com b82bf0f37925106413d857aa98e47533
|
//u-pre.boe.com b82bf0f37925106413d857aa98e47533
|
||||||
//u.boe.com ea89f02dca369037a73c5e3907e2c14a
|
//u.boe.com ea89f02dca369037a73c5e3907e2c14a
|
||||||
var _hmt = _hmt || [];
|
var _hmt = _hmt || [];
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ export const pages=[
|
|||||||
|
|
||||||
];
|
];
|
||||||
export const iframes=[
|
export const iframes=[
|
||||||
|
{title:'嵌入测试', path:'/iframe/index',hidden:false,component:'portal/iframe'},
|
||||||
{title:'课件管理', path:'/iframe/course/coursewares',hidden:false,component:'course/Courseware'},
|
{title:'课件管理', path:'/iframe/course/coursewares',hidden:false,component:'course/Courseware'},
|
||||||
{title:'课程管理', path:'/iframe/course/manages',hidden:false,component:'course/ManageList'},
|
{title:'课程管理', path:'/iframe/course/manages',hidden:false,component:'course/ManageList'},
|
||||||
{title:'考试试题管理', path:'/iframe/exam/questions',hidden:false,component:'exam/Question'},
|
{title:'考试试题管理', path:'/iframe/exam/questions',hidden:false,component:'exam/Question'},
|
||||||
|
|||||||
38
src/views/portal/iframe.vue
Normal file
38
src/views/portal/iframe.vue
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
<template>
|
||||||
|
<div class="box">
|
||||||
|
<iframe :src="url" style="width: 100%;height: 100%;margin-top: 30px;" frameborder="0"></iframe>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import portalHeader from "@/components/PortalHeader.vue";
|
||||||
|
import portalFooter from "@/components/PortalFooter.vue";
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
portalHeader,
|
||||||
|
portalFooter
|
||||||
|
},
|
||||||
|
data(){
|
||||||
|
return {
|
||||||
|
id: "",
|
||||||
|
url: "",
|
||||||
|
boeUrl:process.env.VUE_APP_BOE_WEB_URL
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.id = this.$route.query.id;
|
||||||
|
this.type = this.$route.query.type;
|
||||||
|
let urlPre=window.location.protocol+'//'+window.location.host;
|
||||||
|
|
||||||
|
this.url= `${urlPre}/pc/iframe/course/coursewares`
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" >
|
||||||
|
.box{
|
||||||
|
// width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user