mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
提交iframe嵌入
This commit is contained in:
@@ -246,7 +246,7 @@
|
|||||||
<!-- <i class="el-icon-menu"></i> -->
|
<!-- <i class="el-icon-menu"></i> -->
|
||||||
<span slot="title" class="textl">我的考试</span>
|
<span slot="title" class="textl">我的考试</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-menu-item index="/uc/study/path">
|
<el-menu-item index="/uc/study/path" v-show="isTest">
|
||||||
<!-- <i class="el-icon-menu"></i> -->
|
<!-- <i class="el-icon-menu"></i> -->
|
||||||
<span slot="title" class="textl">学习路径图</span>
|
<span slot="title" class="textl">学习路径图</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
/**测试人员名单*/
|
/**测试人员名单*/
|
||||||
|
|
||||||
const userCodes=[
|
const userCodes=[
|
||||||
|
'12345601',
|
||||||
|
'12345603',
|
||||||
'00004409',
|
'00004409',
|
||||||
'boeutest',
|
'boeutest',
|
||||||
'10181457'
|
'10181457'
|
||||||
|
|||||||
@@ -1,12 +1,25 @@
|
|||||||
<template>
|
<template>
|
||||||
<!--学习路径图-->
|
<!--学习路径图-->
|
||||||
<div style="height: 100%;">
|
<div class="box">
|
||||||
<iframe src="/fe-student/learnpath" style="width: 100%;height: 100%;" frameborder="0"></iframe>
|
<iframe id="studyPathFrame" src="/fe-student/learnpath" style="width: 100%;height: 100%;" frameborder="0"></iframe>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
export default{
|
||||||
|
mounted() {
|
||||||
|
const oIframe = document.getElementById('studyPathFrame');
|
||||||
|
//const deviceWidth = document.documentElement.clientWidth;
|
||||||
|
const deviceHeight = document.documentElement.clientHeight;
|
||||||
|
//oIframe.style.width = (Number(deviceWidth)-220) + 'px'; //数字是页面布局宽度差值
|
||||||
|
//oIframe.style.height = (Number(deviceHeight)-300) + 'px'; //数字是页面布局高度差
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="scss">
|
||||||
|
.box{
|
||||||
|
// width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user