mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
Compare commits
21 Commits
master_120
...
master-202
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
702881c100 | ||
|
|
b0229f6cde | ||
|
|
9c6c1708fc | ||
|
|
b67d7f4311 | ||
|
|
c5e54f0170 | ||
|
|
5c5a71ec55 | ||
|
|
b6a3a32412 | ||
|
|
d6fd44830b | ||
|
|
d01fd6f07b | ||
|
|
f9e332ab7c | ||
|
|
0989360183 | ||
|
|
5e31f7d1a8 | ||
|
|
eaa7f04cd6 | ||
|
|
0d7a2ad353 | ||
|
|
9d9d663591 | ||
|
|
90b53a54b2 | ||
|
|
b89a8266e5 | ||
|
|
49137387f6 | ||
|
|
812c09d65c | ||
|
|
57a87db016 | ||
|
|
2536fca503 |
@@ -28,7 +28,7 @@ VUE_APP_FILE_BASE_URL='https://u.boe.com/upload'
|
|||||||
VUE_APP_FILE_RELATIVE_PATH = '/upload'
|
VUE_APP_FILE_RELATIVE_PATH = '/upload'
|
||||||
|
|
||||||
# 受众批量导入人员信息URL
|
# 受众批量导入人员信息URL
|
||||||
VUE_APP_AUDIENCE_IMPORT_URL = 'http://10.251.132.177/userbasic/audience/import'
|
VUE_APP_AUDIENCE_IMPORT_URL = 'https://u.boe.com/userbasic/audience/import'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -40,10 +40,10 @@ VUE_APP_MANAGER_API_PATH='/manageApi'
|
|||||||
VUE_APP_GROWTH_API_PATH='/growth'
|
VUE_APP_GROWTH_API_PATH='/growth'
|
||||||
|
|
||||||
# 登录地址
|
# 登录地址
|
||||||
VUE_APP_LOGIN_URL='http://10.251.132.177/web/'
|
VUE_APP_LOGIN_URL='https://u.boe.com/web/'
|
||||||
|
|
||||||
# scorm课件的播放url地址
|
# scorm课件的播放url地址
|
||||||
VUE_APP_SCORM_URL = 'http://10.251.132.177/newscorm/scorm-player'
|
VUE_APP_SCORM_URL = 'https://u.boe.com/newscorm/scorm-player'
|
||||||
|
|
||||||
#案例组织领域类型
|
#案例组织领域类型
|
||||||
VUE_APP_CASE_TYPE = '155'
|
VUE_APP_CASE_TYPE = '155'
|
||||||
|
|||||||
@@ -329,6 +329,8 @@ export default {
|
|||||||
apiExamPaper.newPaperContent(this.info.id).then(res=>{
|
apiExamPaper.newPaperContent(this.info.id).then(res=>{
|
||||||
if(!res.error&&res.result != ''){
|
if(!res.error&&res.result != ''){
|
||||||
if(this.info.paperType==2){
|
if(this.info.paperType==2){
|
||||||
|
//TODO1
|
||||||
|
console.log("调用开始考试 if paperType == 2")
|
||||||
this.examPaper.json=res.result;
|
this.examPaper.json=res.result;
|
||||||
let qitems=this.convertToItems(this.examPaper.json);
|
let qitems=this.convertToItems(this.examPaper.json);
|
||||||
this.paper ={items:qitems};
|
this.paper ={items:qitems};
|
||||||
@@ -336,9 +338,11 @@ export default {
|
|||||||
this.curItem=qitems[this.curIndex];
|
this.curItem=qitems[this.curIndex];
|
||||||
this.startTime=new Date();//记录开始时间
|
this.startTime=new Date();//记录开始时间
|
||||||
this.timerValue=this.info.testDuration;
|
this.timerValue=this.info.testDuration;
|
||||||
|
this.content.status=1;
|
||||||
this.timer=setInterval(this.changeTimer,60000);
|
this.timer=setInterval(this.changeTimer,60000);
|
||||||
this.testStart=true;
|
this.testStart=true;
|
||||||
}else{
|
}else{
|
||||||
|
console.log("调用开始考试 else paperType != 2")
|
||||||
let paper= {items:res.result};
|
let paper= {items:res.result};
|
||||||
paper.items.forEach(item=>{
|
paper.items.forEach(item=>{
|
||||||
if(item.type==101){
|
if(item.type==101){
|
||||||
@@ -585,8 +589,10 @@ export default {
|
|||||||
console.log("获取数据结果 考试 res ==>",res)
|
console.log("获取数据结果 考试 res ==>",res)
|
||||||
this.records.push(res.result);
|
this.records.push(res.result);
|
||||||
//TODO 评分更改 最终完成
|
//TODO 评分更改 最终完成
|
||||||
if(res.result.scope > res.result.passLine){
|
if(res.result.score > res.result.passLine){
|
||||||
this.content.status=9;//表已学习完,判断上级的章是否已完成
|
this.content.status=9;//表已学习完,判断上级的章是否已完成
|
||||||
|
}else{
|
||||||
|
this.content.status=1;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.studyItemId=res.result.studyItemId;//第一次保存时是没有的,所以这里要赋值
|
this.studyItemId=res.result.studyItemId;//第一次保存时是没有的,所以这里要赋值
|
||||||
|
|||||||
@@ -242,6 +242,7 @@
|
|||||||
<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>
|
||||||
|
<template v-if="showGrowthNav">
|
||||||
<el-submenu index="myGrowth" v-show="curIdentity == 1">
|
<el-submenu index="myGrowth" v-show="curIdentity == 1">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<!-- <i class="el-icon-s-grid"></i> -->
|
<!-- <i class="el-icon-s-grid"></i> -->
|
||||||
@@ -253,6 +254,8 @@
|
|||||||
<span slot="title" class="study textl">专业力必修</span>
|
<span slot="title" class="study textl">专业力必修</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</el-submenu>
|
</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');
|
||||||
|
|||||||
@@ -506,6 +506,13 @@ export default {
|
|||||||
updateProgressBySetTime(newCurrentTime) {
|
updateProgressBySetTime(newCurrentTime) {
|
||||||
this.currentProgress = newCurrentTime / this.videoDom.duration;
|
this.currentProgress = newCurrentTime / this.videoDom.duration;
|
||||||
},
|
},
|
||||||
|
/* 点击进度条更新视频播放进度2
|
||||||
|
*/
|
||||||
|
updateProgressByClickBar2(newCurrentTime,progressVideo) {
|
||||||
|
this.currentProgress = progressVideo;
|
||||||
|
this.barrageTimelineStart = newCurrentTime;
|
||||||
|
this.videoDom.currentTime = newCurrentTime;
|
||||||
|
},
|
||||||
/* 提高视频音量
|
/* 提高视频音量
|
||||||
*/
|
*/
|
||||||
increaseVolume() {
|
increaseVolume() {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<!--
|
||||||
<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">
|
||||||
@@ -24,7 +25,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>
|
||||||
@@ -194,3 +195,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
-->
|
||||||
|
|||||||
@@ -676,8 +676,10 @@ 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;
|
this.pageData = rs.result.list ? 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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -291,7 +291,8 @@
|
|||||||
<!-- <span style="font-size: 12px; color:#666666 ;">( {{cutOrgNamePath(item.authorInfo.orgInfo)}} )</span> -->
|
<!-- <span style="font-size: 12px; color:#666666 ;">( {{cutOrgNamePath(item.authorInfo.orgInfo)}} )</span> -->
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="teacher-remark" v-html="item.authorInfo.sign"></div> -->
|
<!-- <div class="teacher-remark" v-html="item.authorInfo.sign"></div> -->
|
||||||
<div class="teacher-remark">{{cutOrgNamePath(item.authorInfo.orgInfo)}}</div>
|
<div v-if="item.teacherType === 1 " class="teacher-remark">{{cutOrgNamePath(item.authorInfo.orgInfo)}}</div>
|
||||||
|
<div v-else>{{item.supplier}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding-top:15px;width:70px;">
|
<div style="padding-top:15px;width:70px;">
|
||||||
<followButton v-if="item.teacherName!=='BOE教师'" :auto="true" size="small" :aid="item.teacherId"></followButton>
|
<followButton v-if="item.teacherName!=='BOE教师'" :auto="true" size="small" :aid="item.teacherId"></followButton>
|
||||||
@@ -801,6 +802,11 @@
|
|||||||
|
|
||||||
|
|
||||||
this.$nextTick(function(){
|
this.$nextTick(function(){
|
||||||
|
if(this.contentData.progressVideo){
|
||||||
|
this.$refs.myVideoPlayer.updateProgressByClickBar2(this.contentData.lastStudyTime,this.contentData.progressVideo);
|
||||||
|
// $this.notePlay = this.contentData.lastStudyTime;
|
||||||
|
}
|
||||||
|
|
||||||
//let h0=document.getElementById('id_course_player').offsetHeight;
|
//let h0=document.getElementById('id_course_player').offsetHeight;
|
||||||
let h=$this.$refs.coursePlayer.offsetHeight;
|
let h=$this.$refs.coursePlayer.offsetHeight;
|
||||||
//let h1=$this.$refs.coursePlayer.clientHeight;
|
//let h1=$this.$refs.coursePlayer.clientHeight;
|
||||||
@@ -1447,6 +1453,7 @@
|
|||||||
}
|
}
|
||||||
//console.log(scon.contentId,con.id);
|
//console.log(scon.contentId,con.id);
|
||||||
con.lastStudyTime = scon.lastStudyTime;
|
con.lastStudyTime = scon.lastStudyTime;
|
||||||
|
con.progressVideo = scon.progressVideo;
|
||||||
//以下判断是为了兼容之前的问题,学习状态
|
//以下判断是为了兼容之前的问题,学习状态
|
||||||
if (scon.status) {
|
if (scon.status) {
|
||||||
con.status = scon.status;
|
con.status = scon.status;
|
||||||
|
|||||||
@@ -380,15 +380,19 @@ export default {
|
|||||||
getExperience() {//经验值
|
getExperience() {//经验值
|
||||||
let data = {
|
let data = {
|
||||||
aid:this.userInfo.aid,// #用户id
|
aid:this.userInfo.aid,// #用户id
|
||||||
statType:21, // #统计类型 10学习时长 11 学习天数 20表经验值 30表u币 40表获取天数
|
statType:20, // #统计类型 10学习时长 11 学习天数 20表经验值 30表u币 40表获取天数
|
||||||
field:this.experience.field,// #统计周期 todays-当天,weeks-周,months-月,years-年 total-总计
|
field:this.experience.field,// #统计周期 todays-当天,weeks-周,months-月,years-年 total-总计
|
||||||
num:10,// #显示的条数
|
num:10,// #显示的条数
|
||||||
}
|
}
|
||||||
if(data.field == 'now'){
|
if(data.field == 'now'){
|
||||||
|
data.statType = 20
|
||||||
|
data.field = 'years'
|
||||||
|
this.experience.field = 'years'
|
||||||
|
this.isNow = true
|
||||||
|
}else{
|
||||||
data.statType = 20
|
data.statType = 20
|
||||||
data.field = 'total'
|
data.field = 'total'
|
||||||
this.experience.field = 'total'
|
this.experience.field = 'total'
|
||||||
this.isNow = true
|
|
||||||
}
|
}
|
||||||
apiStat.getRanking(data).then(res=>{
|
apiStat.getRanking(data).then(res=>{
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
@@ -402,12 +406,15 @@ export default {
|
|||||||
}
|
}
|
||||||
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
|
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
|
||||||
this.experience.data = res.result.currentUserRankingData;
|
this.experience.data = res.result.currentUserRankingData;
|
||||||
if(this.experience.field == 'total') {
|
|
||||||
this.current = this.experienceValue(res.result.currentUserRankingData.total);
|
|
||||||
this.currentUserRankingTotalData.rankNo = res.result.currentUserRankingData.rankingNo;
|
this.currentUserRankingTotalData.rankNo = res.result.currentUserRankingData.rankingNo;
|
||||||
this.currentUserRankingTotalData.rankValue = res.result.currentUserRankingData.total;
|
|
||||||
this.currentUserRankingTotalData.endValue = this.current.endValue;
|
this.currentUserRankingTotalData.endValue = this.current.endValue;
|
||||||
|
if(data.field == 'total') {
|
||||||
|
this.current = this.experienceValue(res.result.currentUserRankingData.total);
|
||||||
|
this.currentUserRankingTotalData.rankValue = res.result.currentUserRankingData.total;
|
||||||
|
}else if(data.field == 'years'){
|
||||||
|
this.currentUserRankingTotalData.rankValue = res.result.currentUserRankingData.years;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
this.current.total=res.result.currentUserRankingData.total;//当前用户的经验值是固定的
|
this.current.total=res.result.currentUserRankingData.total;//当前用户的经验值是固定的
|
||||||
const ids= [];
|
const ids= [];
|
||||||
@@ -434,9 +441,15 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
if(data.field == 'total') {
|
||||||
this.experience.list = listData.sort((a,b)=>{
|
this.experience.list = listData.sort((a,b)=>{
|
||||||
return b.total-a.total
|
return b.total-a.total
|
||||||
}).slice(0,5);
|
}).slice(0,5);
|
||||||
|
}else if(data.field == 'years'){
|
||||||
|
this.experience.list = listData.sort((a,b)=>{
|
||||||
|
return b.years-a.years
|
||||||
|
}).slice(0,5);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.message);
|
this.$message.error(res.message);
|
||||||
}
|
}
|
||||||
@@ -447,15 +460,19 @@ export default {
|
|||||||
getDuration() {//学习时长
|
getDuration() {//学习时长
|
||||||
let data = {
|
let data = {
|
||||||
aid:this.userInfo.aid,// #用户id
|
aid:this.userInfo.aid,// #用户id
|
||||||
statType:12, // #统计类型 10学习时长 11 学习天数 20表经验值 30表u币 40表获取天数
|
statType:10, // #统计类型 10学习时长 11 学习天数 20表经验值 30表u币 40表获取天数
|
||||||
field:this.learningDuration.field,// #统计周期 todays-当天,weeks-周,months-月,years-年 total-总计
|
field:this.learningDuration.field,// #统计周期 todays-当天,weeks-周,months-月,years-年 total-总计
|
||||||
num:10,// #显示的条数
|
num:10,// #显示的条数
|
||||||
}
|
}
|
||||||
if(data.field == 'now'){
|
if(data.field == 'now'){
|
||||||
data.statType = 10
|
data.statType = 10;
|
||||||
data.field = 'total'
|
data.field = 'years';
|
||||||
this.learningDuration.field = 'total'
|
this.learningDuration.field = 'years';
|
||||||
this.isStudyTime = true
|
this.isStudyTime = true;
|
||||||
|
}else{
|
||||||
|
data.statType = 10;
|
||||||
|
data.field = 'total';
|
||||||
|
this.learningDuration.field = 'total';
|
||||||
}
|
}
|
||||||
apiStat.getRanking(data).then(res=>{
|
apiStat.getRanking(data).then(res=>{
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
@@ -469,9 +486,11 @@ export default {
|
|||||||
}
|
}
|
||||||
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
|
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
|
||||||
this.learningDuration.data = res.result.currentUserRankingData;
|
this.learningDuration.data = res.result.currentUserRankingData;
|
||||||
if(data.field == 'total'){
|
|
||||||
this.learningDurationTotalData.rankNo = res.result.currentUserRankingData.rankingNo;
|
this.learningDurationTotalData.rankNo = res.result.currentUserRankingData.rankingNo;
|
||||||
|
if(data.field == 'total'){
|
||||||
this.learningDurationTotalData.rankValue = res.result.currentUserRankingData.total;
|
this.learningDurationTotalData.rankValue = res.result.currentUserRankingData.total;
|
||||||
|
} else if(data.field == 'years'){
|
||||||
|
this.learningDurationTotalData.rankValue = res.result.currentUserRankingData.years;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -500,9 +519,16 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
if(data.field == 'total'){
|
||||||
this.learningDuration.list = listData.sort((a,b)=>{
|
this.learningDuration.list = listData.sort((a,b)=>{
|
||||||
return b.total-a.total
|
return b.total-a.total
|
||||||
}).slice(0,5);
|
}).slice(0,5)
|
||||||
|
} else if(data.field == 'years'){
|
||||||
|
this.learningDuration.list = listData.sort((a,b)=>{
|
||||||
|
return b.years-a.years
|
||||||
|
}).slice(0,5)
|
||||||
|
}
|
||||||
|
;
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.message);
|
this.$message.error(res.message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user