mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-08 18:36:43 +08:00
Compare commits
1 Commits
master-202
...
master_202
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9e332ab7c |
@@ -242,17 +242,20 @@
|
|||||||
<svg-icon :icon-class="activeMenu == '/user/medal'?'myxunzhang-active':'myxunzhang'"></svg-icon>
|
<svg-icon :icon-class="activeMenu == '/user/medal'?'myxunzhang-active':'myxunzhang'"></svg-icon>
|
||||||
<span slot="title">我的勋章</span>
|
<span slot="title">我的勋章</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-submenu index="myGrowth" v-show="curIdentity == 1">
|
<template v-if="showGrowthNav">
|
||||||
<template slot="title">
|
<el-submenu index="myGrowth" v-show="curIdentity == 1">
|
||||||
<!-- <i class="el-icon-s-grid"></i> -->
|
<template slot="title">
|
||||||
<img src="../../assets/images/myGrowth.jpg" style="width: 1em;height: 1em;margin-right: 8px;"></img>
|
<!-- <i class="el-icon-s-grid"></i> -->
|
||||||
<span>我的必修</span>
|
<img src="../../assets/images/myGrowth.jpg" style="width: 1em;height: 1em;margin-right: 8px;"></img>
|
||||||
</template>
|
<span>我的必修</span>
|
||||||
<el-menu-item index="/growth/growthPage">
|
</template>
|
||||||
<!-- <i class="el-icon-menu"></i> -->
|
<el-menu-item index="/growth/growthPage">
|
||||||
<span slot="title" class="study textl">专业力必修</span>
|
<!-- <i class="el-icon-menu"></i> -->
|
||||||
</el-menu-item>
|
<span slot="title" class="study textl">专业力必修</span>
|
||||||
</el-submenu>
|
</el-menu-item>
|
||||||
|
</el-submenu>
|
||||||
|
</template>
|
||||||
|
|
||||||
<el-submenu index="mystudy" v-show="curIdentity == 1">
|
<el-submenu index="mystudy" v-show="curIdentity == 1">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<!-- <i class="el-icon-s-grid"></i> -->
|
<!-- <i class="el-icon-s-grid"></i> -->
|
||||||
@@ -396,6 +399,7 @@ import { mapGetters } from 'vuex';
|
|||||||
import apicourseStudy from "../../api/modules/courseStudy.js"
|
import apicourseStudy from "../../api/modules/courseStudy.js"
|
||||||
import {pageList} from "@/api/modules/lecturer"
|
import {pageList} from "@/api/modules/lecturer"
|
||||||
import courseImage from "@/components/Course/courseImage.vue"
|
import courseImage from "@/components/Course/courseImage.vue"
|
||||||
|
import { listData } from "@/api/growth/growthpath"
|
||||||
import testUser from '@/utils/testUsers.js'
|
import testUser from '@/utils/testUsers.js'
|
||||||
export default {
|
export default {
|
||||||
name: 'UcMenu',
|
name: 'UcMenu',
|
||||||
@@ -424,7 +428,8 @@ export default {
|
|||||||
isCollapse: false,
|
isCollapse: false,
|
||||||
lastStudy:{},
|
lastStudy:{},
|
||||||
overlayShow: false,
|
overlayShow: false,
|
||||||
instructor:0
|
instructor:0,
|
||||||
|
showGrowthNav: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -434,6 +439,10 @@ export default {
|
|||||||
//获取讲师认证中条数
|
//获取讲师认证中条数
|
||||||
this.instructorCertification()
|
this.instructorCertification()
|
||||||
console.log(this.userInfo,'userInfouserInfo')
|
console.log(this.userInfo,'userInfouserInfo')
|
||||||
|
//如果专业力必修没有学习任务则隐藏“我的必修按钮”
|
||||||
|
listData().then(res => {
|
||||||
|
this.showGrowthNav = !!res.data.length
|
||||||
|
})
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
//console.log(this.userInfo.loginName,'this.userInfo.loginName');
|
//console.log(this.userInfo.loginName,'this.userInfo.loginName');
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
<!--
|
|
||||||
<template>
|
<template>
|
||||||
<div class="login" :style="`background: url(${webBaseUrl}/temp/background.jpg) no-repeat`">
|
<div class="login" :style="`background: url(${webBaseUrl}/temp/background.jpg) no-repeat`">
|
||||||
<el-form :model="form" ref="form" :rules="rules">
|
<el-form :model="form" ref="form" :rules="rules">
|
||||||
@@ -25,7 +24,7 @@
|
|||||||
<el-form-item>
|
<el-form-item>
|
||||||
<section>
|
<section>
|
||||||
<el-checkbox v-model="rememberMe">记住密码</el-checkbox>
|
<el-checkbox v-model="rememberMe">记住密码</el-checkbox>
|
||||||
<!– <span>忘记密码</span> –>
|
<!-- <span>忘记密码</span> -->
|
||||||
</section>
|
</section>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item><el-button type="primary" @click="loginSubmit">点击登录</el-button></el-form-item>
|
<el-form-item><el-button type="primary" @click="loginSubmit">点击登录</el-button></el-form-item>
|
||||||
@@ -195,4 +194,3 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
-->
|
|
||||||
|
|||||||
@@ -195,14 +195,14 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!--课程管理-->
|
<!--课程管理-->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
custom-class="g-dialog"
|
custom-class="g-dialog"
|
||||||
title="课程学习管理"
|
title="课程学习管理"
|
||||||
width="900px"
|
width="900px"
|
||||||
height="900px"
|
height="900px"
|
||||||
:visible.sync="manageStudy.dlgShow"
|
:visible.sync="manageStudy.dlgShow"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
|
|
||||||
>
|
>
|
||||||
<manager :manageStudyData="manageStudyData" :isShowDialog="manageStudy.dlgShow"></manager>
|
<manager :manageStudyData="manageStudyData" :isShowDialog="manageStudy.dlgShow"></manager>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
@@ -676,10 +676,8 @@ export default {
|
|||||||
}
|
}
|
||||||
apiCourse.pageList(this.params).then(rs=>{
|
apiCourse.pageList(this.params).then(rs=>{
|
||||||
if(rs.status==200){
|
if(rs.status==200){
|
||||||
this.pageData = rs.result.list ? rs.result.list : [];
|
this.pageData = rs.result.list;
|
||||||
// this.pageData = rs.result.list;
|
|
||||||
this.page.count = rs.result.count;
|
this.page.count = rs.result.count;
|
||||||
this.page.pageSize = rs.result.pageSize;
|
|
||||||
}else{
|
}else{
|
||||||
return this.$message.error(rs.message);
|
return this.$message.error(rs.message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user