mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
排查问题4
This commit is contained in:
@@ -298,7 +298,7 @@
|
||||
<i style="margin-right: 8px;width: 19px;" :style="{color:activeMenu == '/uc/study/task?type=9'?'rgb(51, 121, 251)':'#303133'}" class="el-icon-collection"></i>
|
||||
<span slot="title">我的必修</span>
|
||||
</el-menu-item>
|
||||
<el-menu-item v-if="courseNum === 0" index="/uc/study/courses" v-show="curIdentity == 1">
|
||||
<el-menu-item v-if="courseNum == 0" index="/uc/study/courses" v-show="curIdentity == 1">
|
||||
<!-- <svg-icon :icon-class="activeMenu == '/exam/mytask'?'mybiji-active':'mybiji'"></svg-icon> -->
|
||||
<svg-icon icon-class="mystudy"></svg-icon>
|
||||
<span slot="title">我的选修</span>
|
||||
@@ -563,15 +563,19 @@ export default {
|
||||
]
|
||||
Promise.all(promises).then(() => {
|
||||
sessionStorage.setItem('totalNums', this.fistTotals + this.pathTotals + this.growTotal);
|
||||
if(path == '/uc/study/task'){
|
||||
if(path == '/uc/study/task' && (route.query.type === undefined|| route.query.type === null)){
|
||||
if(this.fistTotals != 0){
|
||||
this.$router.push('/uc/study/task?type=1')
|
||||
this.activeMenu = '/uc/study/task?type=1'
|
||||
}else if (this.growTotal != 0){
|
||||
this.$router.push('/uc/study/growth')
|
||||
this.activeMenu = '/uc/study/growth'
|
||||
}else if (this.pathTotals != 0){
|
||||
this.$router.push('/uc/study/task?type=2')
|
||||
this.activeMenu = '/uc/study/task?type=2'
|
||||
}else{
|
||||
this.$router.push('/uc/study/task?type=9')
|
||||
this.activeMenu = '/uc/study/task?type=9'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1078,6 +1078,10 @@ export default {
|
||||
})
|
||||
},
|
||||
deleteData(row) {
|
||||
if(row.refType == 14 && row.refStatus == 1){
|
||||
this.$message.error('该考试已被专业力必修引用,不能删除!')
|
||||
return
|
||||
}
|
||||
this.$confirm('此操作将永久删除该考试, 是否继续?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
|
||||
Reference in New Issue
Block a user