mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 12:56:43 +08:00
添加学习项目
This commit is contained in:
@@ -256,7 +256,11 @@
|
|||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-menu-item index="/uc/study/path" v-show="isTest">
|
<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 index="/uc/study/project" v-show="isTest">
|
||||||
|
<!-- <i class="el-icon-menu"></i> -->
|
||||||
|
<span slot="title" class="textl">学习项目</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<!-- <el-menu-item index="/uc/study/history"> -->
|
<!-- <el-menu-item index="/uc/study/history"> -->
|
||||||
<!-- <i class="el-icon-menu"></i> -->
|
<!-- <i class="el-icon-menu"></i> -->
|
||||||
|
|||||||
@@ -67,7 +67,8 @@ export const pages=[
|
|||||||
{title:'学习任务',path:'task',component:'study/TaskList',hidden:false},
|
{title:'学习任务',path:'task',component:'study/TaskList',hidden:false},
|
||||||
{title:'正在学习',path:'courses',component:'study/Courses',hidden:false},
|
{title:'正在学习',path:'courses',component:'study/Courses',hidden:false},
|
||||||
{title:'历史记录',path:'history',component:'study/FinishCourses',hidden:false},
|
{title:'历史记录',path:'history',component:'study/FinishCourses',hidden:false},
|
||||||
{title:'学习路径图',path:'path',component:'study/StudyPath',hidden:false}
|
{title:'学习路径图',path:'path',component:'study/StudyPath',hidden:false},
|
||||||
|
{title:'学习项目',path:'project',component:'study/StudyProject',hidden:false}
|
||||||
]},
|
]},
|
||||||
{title:'个人中心',path:'/uc',hidden:false,children:[
|
{title:'个人中心',path:'/uc',hidden:false,children:[
|
||||||
{title:'首页',path:'index',component:'StudyIndex',hidden:false}
|
{title:'首页',path:'index',component:'StudyIndex',hidden:false}
|
||||||
|
|||||||
25
src/views/study/StudyProject.vue
Normal file
25
src/views/study/StudyProject.vue
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<template>
|
||||||
|
<!--学习项目-->
|
||||||
|
<div class="box">
|
||||||
|
<iframe id="studyPathFrame" src="/fe-student/projectManage" style="width: 100%;height: 800px;" frameborder="0"></iframe>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.box{
|
||||||
|
// width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user