mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
Merge branch 'zcwy_0716_learning' into dev0515
This commit is contained in:
@@ -260,6 +260,9 @@ export default {
|
|||||||
]
|
]
|
||||||
Promise.all(promises).then(() => {
|
Promise.all(promises).then(() => {
|
||||||
this.nums = this.fistTotals + this.pathTotals + this.growTotal;
|
this.nums = this.fistTotals + this.pathTotals + this.growTotal;
|
||||||
|
sessionStorage.setItem('fistTotals',this.fistTotals)
|
||||||
|
sessionStorage.setItem('pathTotals',this.pathTotals)
|
||||||
|
sessionStorage.setItem('growTotal',this.growTotal)
|
||||||
this.loadBoeData();
|
this.loadBoeData();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -480,12 +480,12 @@ export default {
|
|||||||
overlayShow: false,
|
overlayShow: false,
|
||||||
instructor:0,
|
instructor:0,
|
||||||
fistTotal:0,
|
fistTotal:0,
|
||||||
fistTotals:0,
|
fistTotals:1,
|
||||||
proTotal: 0,
|
proTotal: 0,
|
||||||
proTotals: 1,
|
proTotals: 1,
|
||||||
pathTotal:0,
|
pathTotal:0,
|
||||||
pathTotals:0,
|
pathTotals:1,
|
||||||
growTotal: 0,
|
growTotal: 1,
|
||||||
openedsList:[],
|
openedsList:[],
|
||||||
courseNum: 0,
|
courseNum: 0,
|
||||||
};
|
};
|
||||||
@@ -566,16 +566,12 @@ export default {
|
|||||||
if(path == '/uc/study/task' && (route.query.type === undefined|| route.query.type === null)){
|
if(path == '/uc/study/task' && (route.query.type === undefined|| route.query.type === null)){
|
||||||
if(this.fistTotals != 0){
|
if(this.fistTotals != 0){
|
||||||
this.$router.push('/uc/study/task?type=1')
|
this.$router.push('/uc/study/task?type=1')
|
||||||
this.activeMenu = '/uc/study/task?type=1'
|
|
||||||
}else if (this.growTotal != 0){
|
}else if (this.growTotal != 0){
|
||||||
this.$router.push('/uc/study/growth')
|
this.$router.push('/uc/study/growth')
|
||||||
this.activeMenu = '/uc/study/growth'
|
|
||||||
}else if (this.pathTotals != 0){
|
}else if (this.pathTotals != 0){
|
||||||
this.$router.push('/uc/study/task?type=2')
|
this.$router.push('/uc/study/task?type=2')
|
||||||
this.activeMenu = '/uc/study/task?type=2'
|
|
||||||
}else{
|
}else{
|
||||||
this.$router.push('/uc/study/task?type=9')
|
this.$router.push('/uc/study/task?type=9')
|
||||||
this.activeMenu = '/uc/study/task?type=9'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
<p class="personal-info">
|
<p class="personal-info">
|
||||||
{{ cutOrgNamePath(userInfo.departFullName) }}
|
{{ cutOrgNamePath(userInfo.departFullName) }}
|
||||||
</p>
|
</p>
|
||||||
<a href="uc/study/task">
|
<span @click="goStudy">
|
||||||
<div class="personal-box" style="margin-bottom: 10px">
|
<div class="personal-box" style="margin-bottom: 10px">
|
||||||
<span>学习任务</span>
|
<span>学习任务</span>
|
||||||
<span v-if="studyTaskCount == 0" style="display: flex">
|
<span v-if="studyTaskCount == 0" style="display: flex">
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
</span>
|
</span>
|
||||||
<!-- <img class="personal-box-img" :src="`${webBaseUrl}/images/homeWu/agency.png`" alt="" srcset=""> -->
|
<!-- <img class="personal-box-img" :src="`${webBaseUrl}/images/homeWu/agency.png`" alt="" srcset=""> -->
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</span>
|
||||||
<div class="last-study-info">
|
<div class="last-study-info">
|
||||||
<div
|
<div
|
||||||
class="one-line-ellipsis"
|
class="one-line-ellipsis"
|
||||||
@@ -1078,6 +1078,10 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
fistTotals: 0,
|
||||||
|
pathTotals: 0,
|
||||||
|
growTotal: 0,
|
||||||
|
courseNums: 0,
|
||||||
Positive:[],
|
Positive:[],
|
||||||
showUClass: false,
|
showUClass: false,
|
||||||
showLoginMedal: false, //是否显示登录勋章
|
showLoginMedal: false, //是否显示登录勋章
|
||||||
@@ -1176,7 +1180,7 @@ export default {
|
|||||||
this.getLevel();
|
this.getLevel();
|
||||||
this.getQaAnswers();
|
this.getQaAnswers();
|
||||||
this.getLastStudy();
|
this.getLastStudy();
|
||||||
|
this.setNumData()
|
||||||
//检查兴趣爱好是否已填报,
|
//检查兴趣爱好是否已填报,
|
||||||
//先检查本地session和 local 15天, 这两个值是在组件中设置的
|
//先检查本地session和 local 15天, 这两个值是在组件中设置的
|
||||||
let sessionHobby = sessionStorage.getItem(
|
let sessionHobby = sessionStorage.getItem(
|
||||||
@@ -1229,6 +1233,29 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
setNumData(){
|
||||||
|
this.fistTotals = sessionStorage.getItem('fistTotals')
|
||||||
|
this.pathTotals = sessionStorage.getItem('pathTotals')
|
||||||
|
this.growTotal = sessionStorage.getItem('growTotal')
|
||||||
|
this.courseNums = sessionStorage.getItem('courseNums')
|
||||||
|
},
|
||||||
|
goStudy(){
|
||||||
|
const nums = this.fistTotals + this.pathTotals + this.growTotal;
|
||||||
|
if(nums == 0 && this.courseNums>0){
|
||||||
|
window.location.href = `${this.webBaseUrl}/uc/study/courses`;
|
||||||
|
}else{
|
||||||
|
if(this.nums == 0){
|
||||||
|
window.location.href = `${this.webBaseUrl}/uc/study/task?type=9`;
|
||||||
|
}
|
||||||
|
if(this.fistTotals != 0){
|
||||||
|
window.location.href = `${this.webBaseUrl}/uc/study/task?type=1`;
|
||||||
|
}else if (this.growTotal != 0){
|
||||||
|
window.location.href = `${this.webBaseUrl}/uc/study/growth`;
|
||||||
|
}else{
|
||||||
|
window.location.href = `${this.webBaseUrl}/uc/study/task?type=2`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
getPositive() {
|
getPositive() {
|
||||||
// 这个是案例的好评
|
// 这个是案例的好评
|
||||||
// apiCase.queryComments(10).then(res => {
|
// apiCase.queryComments(10).then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user