mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 13:56:43 +08:00
修改
This commit is contained in:
@@ -147,6 +147,9 @@ import yearMedal from '@/components/Popup/China2023.vue';
|
|||||||
import apiBoeCourse from '@/api/boe/course.js';
|
import apiBoeCourse from '@/api/boe/course.js';
|
||||||
import {userAvatarText} from "@/utils/tools.js";
|
import {userAvatarText} from "@/utils/tools.js";
|
||||||
import apiCase from "@/api/modules/cases.js";
|
import apiCase from "@/api/modules/cases.js";
|
||||||
|
import apiManage from '@/api/manage/manage.js'
|
||||||
|
import {getList} from '@/api/growth'
|
||||||
|
import apiCourseStudy from '@/api/modules/courseStudy.js';
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
current: {
|
current: {
|
||||||
@@ -202,16 +205,64 @@ export default {
|
|||||||
keyword: '',
|
keyword: '',
|
||||||
isTiao: false,
|
isTiao: false,
|
||||||
sex:'',
|
sex:'',
|
||||||
|
fistTotals: 0,
|
||||||
|
pathTotals: 0,
|
||||||
|
growTotal: 0,
|
||||||
|
nums: 0,
|
||||||
|
courseNum: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
this.learnTotal()
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.sex = this.userInfo.sex;
|
this.sex = this.userInfo.sex;
|
||||||
this.$store.dispatch('refrashMsg');
|
this.$store.dispatch('refrashMsg');
|
||||||
this.loadBoeData();
|
// this.loadBoeData();
|
||||||
//this.loadPopupConfig();
|
//this.loadPopupConfig();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
learnTotal(){
|
||||||
|
let params = {
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
cmtask_user_status: "",
|
||||||
|
cmtask_name: ""
|
||||||
|
}
|
||||||
|
let reqData={
|
||||||
|
courseName:'',
|
||||||
|
courseType:'',
|
||||||
|
status:'',
|
||||||
|
progress:'',
|
||||||
|
pageIndex:1,
|
||||||
|
pageSize:10
|
||||||
|
}
|
||||||
|
const promises = [
|
||||||
|
//领导力
|
||||||
|
apiManage.leadership(params).then(res=>{
|
||||||
|
this.fistTotals =parseInt(res.data.total);
|
||||||
|
}),
|
||||||
|
//学习路径
|
||||||
|
apiManage.compulsoryList(params).then(res=>{
|
||||||
|
this.pathTotals =parseInt(res.data.total);
|
||||||
|
}),
|
||||||
|
getList(this.userInfo.aid).then(res=>{
|
||||||
|
if(res.code == 200 && Object.keys(res.data).length){
|
||||||
|
this.growTotal = 1
|
||||||
|
}else{
|
||||||
|
this.growTotal = 0
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
apiCourseStudy.myStudysFromES(reqData).then(res=>{
|
||||||
|
this.courseNum = res.result.count;
|
||||||
|
sessionStorage.setItem('courseNums',this.courseNum)
|
||||||
|
})
|
||||||
|
]
|
||||||
|
Promise.all(promises).then(() => {
|
||||||
|
this.nums = this.fistTotals + this.pathTotals + this.growTotal;
|
||||||
|
this.loadBoeData();
|
||||||
|
});
|
||||||
|
},
|
||||||
setCurIdentity(iden){
|
setCurIdentity(iden){
|
||||||
this.$store.dispatch('SetCurIdentity',iden);
|
this.$store.dispatch('SetCurIdentity',iden);
|
||||||
},
|
},
|
||||||
@@ -219,10 +270,11 @@ export default {
|
|||||||
console.log('lll')
|
console.log('lll')
|
||||||
},
|
},
|
||||||
loadBoeData() {
|
loadBoeData() {
|
||||||
if(this.studyTaskCount>0){
|
if(this.nums>0){
|
||||||
this.isTiao = true;
|
this.isTiao = true;
|
||||||
|
}else if (this.nums == 0 && this.courseNum>0){
|
||||||
|
this.isTiao = false;
|
||||||
}else{
|
}else{
|
||||||
// this.isTiao = false;
|
|
||||||
this.isTiao = true;
|
this.isTiao = true;
|
||||||
}
|
}
|
||||||
// let params = {
|
// let params = {
|
||||||
|
|||||||
@@ -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>
|
<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>
|
<span slot="title">我的必修</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-submenu index="myelective" v-show="curIdentity == 1">
|
<el-submenu v-if="courseNum" index="myelective" v-show="curIdentity == 1">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<svg-icon icon-class="mystudy"></svg-icon>
|
<svg-icon icon-class="mystudy"></svg-icon>
|
||||||
<span>我的选修</span>
|
<span>我的选修</span>
|
||||||
@@ -307,6 +307,11 @@
|
|||||||
<span slot="title" class="study textl">自选学习</span>
|
<span slot="title" class="study textl">自选学习</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</el-submenu>
|
</el-submenu>
|
||||||
|
<el-menu-item v-else 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>
|
||||||
|
</el-menu-item>
|
||||||
<el-menu-item index="/exam/mytask" v-show="curIdentity == 1">
|
<el-menu-item index="/exam/mytask" v-show="curIdentity == 1">
|
||||||
<!-- <svg-icon :icon-class="activeMenu == '/exam/mytask'?'mybiji-active':'mybiji'"></svg-icon> -->
|
<!-- <svg-icon :icon-class="activeMenu == '/exam/mytask'?'mybiji-active':'mybiji'"></svg-icon> -->
|
||||||
<i style="margin-right: 8px;width: 19px;" :style="{color:activeMenu == '/exam/mytask'?'rgb(51, 121, 251)':'#303133'}" class="el-icon-reading"></i>
|
<i style="margin-right: 8px;width: 19px;" :style="{color:activeMenu == '/exam/mytask'?'rgb(51, 121, 251)':'#303133'}" class="el-icon-reading"></i>
|
||||||
@@ -421,7 +426,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex';
|
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 testUser from '@/utils/testUsers.js'
|
import testUser from '@/utils/testUsers.js'
|
||||||
@@ -441,7 +446,10 @@ export default {
|
|||||||
if(path == '/uc/study/task' || path == '/uc/study/growth'){
|
if(path == '/uc/study/task' || path == '/uc/study/growth'){
|
||||||
this.openedsList = ['mystudy']
|
this.openedsList = ['mystudy']
|
||||||
}
|
}
|
||||||
if(sessionStorage.getItem('totalNums') == 0){
|
if(path == '/uc/study/courses'){
|
||||||
|
'/uc/study/courses'
|
||||||
|
}
|
||||||
|
if(sessionStorage.getItem('totalNums') == 0&&path == '/uc/study/task'){
|
||||||
return '/uc/study/task?type=9'
|
return '/uc/study/task?type=9'
|
||||||
}
|
}
|
||||||
if(path == '/uc/study/task'){
|
if(path == '/uc/study/task'){
|
||||||
@@ -472,7 +480,8 @@ export default {
|
|||||||
pathTotal:0,
|
pathTotal:0,
|
||||||
pathTotals:1,
|
pathTotals:1,
|
||||||
growTotal: 1,
|
growTotal: 1,
|
||||||
openedsList:[]
|
openedsList:[],
|
||||||
|
courseNum: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -482,8 +491,10 @@ export default {
|
|||||||
this.getLastStudy();
|
this.getLastStudy();
|
||||||
//获取讲师认证中条数
|
//获取讲师认证中条数
|
||||||
this.instructorCertification()
|
this.instructorCertification()
|
||||||
|
this.courseNumsData()
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
// this.courseNum = sessionStorage.getItem('courseNums')
|
||||||
//console.log(this.userInfo.loginName,'this.userInfo.loginName');
|
//console.log(this.userInfo.loginName,'this.userInfo.loginName');
|
||||||
let flag=testUser.isTest(this.userInfo.loginName);
|
let flag=testUser.isTest(this.userInfo.loginName);
|
||||||
//console.log(flag,'this.isTest22');
|
//console.log(flag,'this.isTest22');
|
||||||
@@ -494,6 +505,23 @@ export default {
|
|||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
courseNumsData(){
|
||||||
|
let reqData={
|
||||||
|
courseName:'',
|
||||||
|
courseType:'',
|
||||||
|
status:'',
|
||||||
|
progress:'',
|
||||||
|
pageIndex:1,
|
||||||
|
pageSize:10
|
||||||
|
}
|
||||||
|
if(sessionStorage.getItem('courseNums') === null || sessionStorage.getItem('courseNums') === ''){
|
||||||
|
apiCourseStudy.myStudysFromES(reqData).then(res=>{
|
||||||
|
this.courseNum = res.result.count;
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
this.courseNum = sessionStorage.getItem('courseNums')
|
||||||
|
}
|
||||||
|
},
|
||||||
learnTotal(){
|
learnTotal(){
|
||||||
let params = {
|
let params = {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
@@ -552,7 +580,7 @@ export default {
|
|||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
getLastStudy() {
|
getLastStudy() {
|
||||||
apicourseStudy.lastStudy().then(res => {
|
apiCourseStudy.lastStudy().then(res => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
this.lastStudy = res.result;
|
this.lastStudy = res.result;
|
||||||
if (res.result != '' && res.result.courseId) {
|
if (res.result != '' && res.result.courseId) {
|
||||||
|
|||||||
@@ -73,10 +73,11 @@
|
|||||||
|
|
||||||
<!-- // 成绩控制需要结束状态 -->
|
<!-- // 成绩控制需要结束状态 -->
|
||||||
<el-button type="text" v-if="scope.row.published" @click="viewResults(scope.row)">成绩</el-button>
|
<el-button type="text" v-if="scope.row.published" @click="viewResults(scope.row)">成绩</el-button>
|
||||||
<el-button type="text" v-if="scope.row.published" @click="pushResults(scope.row)">推送</el-button>
|
<el-button type="text" v-if="scope.row.refType == 14" @click="deleteData(scope.row)">删除</el-button>
|
||||||
|
<el-button type="text" v-if="scope.row.published&&scope.row.refType !== 14" @click="pushResults(scope.row)">推送</el-button>
|
||||||
<!-- <el-button type="text" v-if="scope.row.published" @click="creatQrCode(scope.row)">二维码</el-button> -->
|
<!-- <el-button type="text" v-if="scope.row.published" @click="creatQrCode(scope.row)">二维码</el-button> -->
|
||||||
<el-button type="text" v-if="scope.row.published" @click="releaseData(scope.row,false)">取消发布</el-button>
|
<el-button type="text" v-if="scope.row.published&&scope.row.refType !== 14" @click="releaseData(scope.row,false)">取消发布</el-button>
|
||||||
<el-dropdown type="text" style="margin-left:10px">
|
<el-dropdown v-if="scope.row.refType !== 14" type="text" style="margin-left:10px">
|
||||||
<el-button type="text" > 更多 <i class="el-icon-arrow-down el-icon--right"></i> </el-button>
|
<el-button type="text" > 更多 <i class="el-icon-arrow-down el-icon--right"></i> </el-button>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<!-- <el-dropdown-item command="a">查看</el-dropdown-item> -->
|
<!-- <el-dropdown-item command="a">查看</el-dropdown-item> -->
|
||||||
|
|||||||
@@ -1,135 +1,140 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div style="display: flex;justify-content:space-between; padding: 12px 32px 10px 18px;">
|
<div style="margin-top: 50px;" v-if="page.count==0">
|
||||||
<div style="display: flex;justify-content: flex-start;">
|
<el-empty description="您还没有学习数据"></el-empty>
|
||||||
<span class="title-myqalist">我报名的</span>
|
|
||||||
<div style="margin-left:5px">
|
|
||||||
<el-select v-model="courseType" class="uc-select" clearable placeholder="类型">
|
|
||||||
<el-option label="全部类型" value=""></el-option>
|
|
||||||
<!-- <el-option label="微课" :value="10"></el-option> -->
|
|
||||||
<el-option label="录播课" :value="20"></el-option>
|
|
||||||
<!-- <el-option label="在线课" value="online-course"></el-option> -->
|
|
||||||
<!-- <el-option label="面授课" value="face-course"></el-option>
|
|
||||||
<el-option label="学习项目" value="project"></el-option> -->
|
|
||||||
<el-option label="线下课" :value="30"></el-option>
|
|
||||||
<el-option label="学习项目" :value="40"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</div>
|
|
||||||
<el-select style="margin-left:12px" class="uc-select" v-model="status" clearable placeholder="学习进度">
|
|
||||||
<el-option label="所有进度" value="0"></el-option>
|
|
||||||
<el-option label="未开始" :value="1"></el-option>
|
|
||||||
<el-option label="进行中" :value="2"></el-option>
|
|
||||||
<el-option label="已完成" :value="9"></el-option>
|
|
||||||
<!-- <el-option label="已停用" :value="3"></el-option> -->
|
|
||||||
</el-select>
|
|
||||||
<div style="padding-left: 12px;"><el-input class="uc-input" v-model="params.courseName" clearable placeholder="搜索名称"></el-input></div>
|
|
||||||
<div style="padding-left: 12px;"><el-button type="primary" class="search-btn" icon="el-icon-search" @click="findStudys(true)">搜索</el-button></div>
|
|
||||||
<div style="padding-left: 12px"><el-button type="primary" class="search-btn" icon="el-icon-refresh-right" @click="reset()">重置</el-button></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="uc-list" v-loading="loading">
|
<div v-else>
|
||||||
<div class="uc-course" v-for="(item,idx) in couresList" :key="idx">
|
<div style="display: flex;justify-content:space-between; padding: 12px 32px 10px 18px;">
|
||||||
<div class="uc-course-img" style="width: 260px;height:144px" @click="jumpRouter(item)">
|
<div style="display: flex;justify-content: flex-start;">
|
||||||
<course-image :course="item"></course-image>
|
<span class="title-myqalist">我报名的</span>
|
||||||
<div class="uc-type">
|
<div style="margin-left:5px">
|
||||||
<span v-if="item.courseType==10">录播</span>
|
<el-select v-model="courseType" class="uc-select" clearable placeholder="类型">
|
||||||
<span v-if="item.courseType==20">录播</span>
|
<el-option label="全部类型" value=""></el-option>
|
||||||
<span v-if="item.courseType==30">线下课</span>
|
<!-- <el-option label="微课" :value="10"></el-option> -->
|
||||||
<span v-if="item.courseType==40">学习项目</span>
|
<el-option label="录播课" :value="20"></el-option>
|
||||||
|
<!-- <el-option label="在线课" value="online-course"></el-option> -->
|
||||||
|
<!-- <el-option label="面授课" value="face-course"></el-option>
|
||||||
|
<el-option label="学习项目" value="project"></el-option> -->
|
||||||
|
<el-option label="线下课" :value="30"></el-option>
|
||||||
|
<el-option label="学习项目" :value="40"></el-option>
|
||||||
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
|
<el-select style="margin-left:12px" class="uc-select" v-model="status" clearable placeholder="学习进度">
|
||||||
|
<el-option label="所有进度" value="0"></el-option>
|
||||||
|
<el-option label="未开始" :value="1"></el-option>
|
||||||
|
<el-option label="进行中" :value="2"></el-option>
|
||||||
|
<el-option label="已完成" :value="9"></el-option>
|
||||||
|
<!-- <el-option label="已停用" :value="3"></el-option> -->
|
||||||
|
</el-select>
|
||||||
|
<div style="padding-left: 12px;"><el-input class="uc-input" v-model="params.courseName" clearable placeholder="搜索名称"></el-input></div>
|
||||||
|
<div style="padding-left: 12px;"><el-button type="primary" class="search-btn" icon="el-icon-search" @click="findStudys(true)">搜索</el-button></div>
|
||||||
|
<div style="padding-left: 12px"><el-button type="primary" class="search-btn" icon="el-icon-refresh-right" @click="reset()">重置</el-button></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="uc-course-info" @click="jumpRouter(item)">
|
<div class="uc-list" v-loading="loading">
|
||||||
<div class="uc-course-name" style="cursor: pointer;">
|
<div class="uc-course" v-for="(item,idx) in couresList" :key="idx">
|
||||||
|
<div class="uc-course-img" style="width: 260px;height:144px" @click="jumpRouter(item)">
|
||||||
|
<course-image :course="item"></course-image>
|
||||||
|
<div class="uc-type">
|
||||||
|
<span v-if="item.courseType==10">录播</span>
|
||||||
|
<span v-if="item.courseType==20">录播</span>
|
||||||
|
<span v-if="item.courseType==30">线下课</span>
|
||||||
|
<span v-if="item.courseType==40">学习项目</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="uc-course-info" @click="jumpRouter(item)">
|
||||||
|
<div class="uc-course-name" style="cursor: pointer;">
|
||||||
|
|
||||||
<div style="flex:1;">
|
<div style="flex:1;">
|
||||||
<a v-html="$keywordActiveShow(item.courseName,params.courseName)" class="uc-title two-line-ellipsis"></a>
|
<a v-html="$keywordActiveShow(item.courseName,params.courseName)" class="uc-title two-line-ellipsis"></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div style="padding-top:6px" class="uc-course-text"><i class="el-icon-time" style="margin-right:4px"></i>报名时间:{{ formatsec(Number(item.startTime) * 1000 )}}</div>
|
|
||||||
<div v-if="item.courseType==30">
|
|
||||||
<div class="uc-course-text" style="margin-top: 8px;"><i class="el-icon-location-outline" style="margin-right:4px"></i>面授地点:{{ item.courseAddress }}</div>
|
|
||||||
<div class="uc-course-text" style="margin-top: 8px;"><i class="el-icon-timer" style="margin-right:4px"></i>上课时间:{{ formatsec(Number(item.attendCourseTime) * 1000 ) }}</div>
|
|
||||||
</div>
|
|
||||||
<div v-else style="width: 80%;margin-top: 20px;display: flex;">
|
|
||||||
<div style="color: #333333;font-size: 14px;"><i class="el-icon-s-operation" style="margin-right:4px"></i>当前进度:</div>
|
|
||||||
<div style="width:170px;padding-top: 5px;">
|
|
||||||
<el-progress :percentage="item.progress" color="#FFA050"></el-progress>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div style="padding-top:6px" class="uc-course-text"><i class="el-icon-time" style="margin-right:4px"></i>报名时间:{{ formatsec(Number(item.startTime) * 1000 )}}</div>
|
||||||
</div>
|
|
||||||
<div class="uc-course-btns">
|
|
||||||
<!-- <div style="text-align: right;">
|
|
||||||
<el-button class="del" @click.stop="delItem(item,idx)" type="text" icon="el-icon-delete" size="mini" title="删除"></el-button>
|
|
||||||
<el-dropdown trigger="click" style="display: none;">
|
|
||||||
<span class="el-dropdown-link">
|
|
||||||
<svg-icon style="margin-right: 0;font-size:26px;" icon-class="spot"></svg-icon>
|
|
||||||
</span>
|
|
||||||
<el-dropdown-menu slot="dropdown" class="dropdown-box">
|
|
||||||
<el-dropdown-item command="a">
|
|
||||||
<el-button class="del" @click.stop="delItem(item,idx)" type="text" icon="el-icon-delete" size="mini" title="删除"></el-button>
|
|
||||||
</el-dropdown-item>
|
|
||||||
</el-dropdown-menu>
|
|
||||||
</el-dropdown>
|
|
||||||
</div> -->
|
|
||||||
<div v-if="item.courseType==30">
|
<div v-if="item.courseType==30">
|
||||||
<div v-if="item.applyStatus==10"><!--「报名待审核」展示为「等待审核」-->
|
<div class="uc-course-text" style="margin-top: 8px;"><i class="el-icon-location-outline" style="margin-right:4px"></i>面授地点:{{ item.courseAddress }}</div>
|
||||||
<div><el-button style="margin-top:30px" type="primary" disabled size="small">等待审核</el-button></div>
|
<div class="uc-course-text" style="margin-top: 8px;"><i class="el-icon-timer" style="margin-right:4px"></i>上课时间:{{ formatsec(Number(item.attendCourseTime) * 1000 ) }}</div>
|
||||||
<!-- <div><el-button style="margin-top:30px;text-align: right;" type="text" size="small">取消报名</el-button></div> -->
|
</div>
|
||||||
</div>
|
<div v-else style="width: 80%;margin-top: 20px;display: flex;">
|
||||||
<div v-if="item.applyStatus==20"><!--「报名取消」」-->
|
<div style="color: #333333;font-size: 14px;"><i class="el-icon-s-operation" style="margin-right:4px"></i>当前进度:</div>
|
||||||
<div><el-button style="margin-top:30px" type="primary" disabled size="small">已取消</el-button></div>
|
<div style="width:170px;padding-top: 5px;">
|
||||||
<div><el-button @click.stop="reSignupCourse(item)" style="margin-top:30px;text-align: right;" type="text" size="small">重新报名</el-button></div>
|
<el-progress :percentage="item.progress" color="#FFA050"></el-progress>
|
||||||
</div>
|
|
||||||
<div v-if="item.applyStatus==30"><!--「报名审核通过」展示为「报名成功」-->
|
|
||||||
<div><el-button style="margin-top:30px" type="primary" disabled size="small">报名成功</el-button></div>
|
|
||||||
</div>
|
|
||||||
<div v-if="item.applyStatus==40"><!--「审核拒绝」展示为「报名失败」-->
|
|
||||||
<div><el-button style="margin-top:30px" type="primary" disabled size="small">报名失败</el-button></div>
|
|
||||||
<div style="margin-top:30px;text-align: right;">
|
|
||||||
<el-button @click.stop="reSignupCourse(item)" type="text" size="small">重新报名</el-button>
|
|
||||||
<el-button @click.stop="delItem(item,idx)" type="text" size="small">删除</el-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div v-if="item.applyStatus==50"><!--「报名已删除」展示为「报名已删除」-->
|
|
||||||
<div><el-button style="margin-top:30px" type="primary" disabled size="small">报名已删除</el-button></div>
|
|
||||||
<div><el-button @click.stop="delItem(item,idx)" style="margin-top:30px;text-align: right;" type="text" size="small">删除</el-button></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else >
|
</div>
|
||||||
<span @click.stop="jumpRouter(item)">
|
<div class="uc-course-btns">
|
||||||
<!-- <el-button style="margin-top:30px" v-if="item.progress==0" type="primary" size="small">开始学习</el-button> -->
|
<!-- <div style="text-align: right;">
|
||||||
<el-button style="margin-top:30px" v-if="item.progress<100" type="primary" size="small">继续学习</el-button>
|
<el-button class="del" @click.stop="delItem(item,idx)" type="text" icon="el-icon-delete" size="mini" title="删除"></el-button>
|
||||||
<el-button style="margin-top:30px" v-if="item.progress==100" type="primary" size="small">回顾</el-button>
|
<el-dropdown trigger="click" style="display: none;">
|
||||||
</span>
|
<span class="el-dropdown-link">
|
||||||
</div>
|
<svg-icon style="margin-right: 0;font-size:26px;" icon-class="spot"></svg-icon>
|
||||||
</div>
|
</span>
|
||||||
</div>
|
<el-dropdown-menu slot="dropdown" class="dropdown-box">
|
||||||
<div v-if="couresList.length > 0 " style="text-align: center;margin-top:57px;">
|
<el-dropdown-item command="a">
|
||||||
<el-pagination background
|
<el-button class="del" @click.stop="delItem(item,idx)" type="text" icon="el-icon-delete" size="mini" title="删除"></el-button>
|
||||||
@size-change="handleSizeChange"
|
</el-dropdown-item>
|
||||||
@current-change="handleCurrentChange"
|
</el-dropdown-menu>
|
||||||
:current-page="page.pageIndex"
|
</el-dropdown>
|
||||||
:page-sizes="[10, 20, 30, 40]"
|
</div> -->
|
||||||
:page-size="page.pageSize"
|
<div v-if="item.courseType==30">
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
<div v-if="item.applyStatus==10"><!--「报名待审核」展示为「等待审核」-->
|
||||||
:total="page.count">
|
<div><el-button style="margin-top:30px" type="primary" disabled size="small">等待审核</el-button></div>
|
||||||
</el-pagination>
|
<!-- <div><el-button style="margin-top:30px;text-align: right;" type="text" size="small">取消报名</el-button></div> -->
|
||||||
</div>
|
|
||||||
<div class="list-wu">
|
|
||||||
<div v-if="loading"> <span>加载中...</span> </div>
|
|
||||||
<div v-else class="home-no-list">
|
|
||||||
<div v-if="page.count==0 && !loading">
|
|
||||||
<div v-if="isSearch">
|
|
||||||
<p class="text" style="color: #333333;margin-top:50px;font-size: 14px">未找到您要搜索的内容</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-else >
|
<div v-if="item.applyStatus==20"><!--「报名取消」」-->
|
||||||
<img class="img" style="width:360px;height:226px" :src="`${webBaseUrl}/images/homeWu/no-madel.png`" alt="" srcset="">
|
<div><el-button style="margin-top:30px" type="primary" disabled size="small">已取消</el-button></div>
|
||||||
<p class="text" style="color: #333333;margin-top:50px;font-size: 14px">您还没有报名课程哦~</p>
|
<div><el-button @click.stop="reSignupCourse(item)" style="margin-top:30px;text-align: right;" type="text" size="small">重新报名</el-button></div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="item.applyStatus==30"><!--「报名审核通过」展示为「报名成功」-->
|
||||||
|
<div><el-button style="margin-top:30px" type="primary" disabled size="small">报名成功</el-button></div>
|
||||||
|
</div>
|
||||||
|
<div v-if="item.applyStatus==40"><!--「审核拒绝」展示为「报名失败」-->
|
||||||
|
<div><el-button style="margin-top:30px" type="primary" disabled size="small">报名失败</el-button></div>
|
||||||
|
<div style="margin-top:30px;text-align: right;">
|
||||||
|
<el-button @click.stop="reSignupCourse(item)" type="text" size="small">重新报名</el-button>
|
||||||
|
<el-button @click.stop="delItem(item,idx)" type="text" size="small">删除</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="item.applyStatus==50"><!--「报名已删除」展示为「报名已删除」-->
|
||||||
|
<div><el-button style="margin-top:30px" type="primary" disabled size="small">报名已删除</el-button></div>
|
||||||
|
<div><el-button @click.stop="delItem(item,idx)" style="margin-top:30px;text-align: right;" type="text" size="small">删除</el-button></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-else >
|
||||||
|
<span @click.stop="jumpRouter(item)">
|
||||||
|
<!-- <el-button style="margin-top:30px" v-if="item.progress==0" type="primary" size="small">开始学习</el-button> -->
|
||||||
|
<el-button style="margin-top:30px" v-if="item.progress<100" type="primary" size="small">继续学习</el-button>
|
||||||
|
<el-button style="margin-top:30px" v-if="item.progress==100" type="primary" size="small">回顾</el-button>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div v-if="couresList.length > 0 " style="text-align: center;margin-top:57px;">
|
||||||
|
<el-pagination background
|
||||||
|
@size-change="handleSizeChange"
|
||||||
|
@current-change="handleCurrentChange"
|
||||||
|
:current-page="page.pageIndex"
|
||||||
|
:page-sizes="[10, 20, 30, 40]"
|
||||||
|
:page-size="page.pageSize"
|
||||||
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
|
:total="page.count">
|
||||||
|
</el-pagination>
|
||||||
|
</div>
|
||||||
|
<div class="list-wu">
|
||||||
|
<div v-if="loading"> <span>加载中...</span> </div>
|
||||||
|
<div v-else class="home-no-list">
|
||||||
|
<div v-if="page.count==0 && !loading">
|
||||||
|
<div v-if="isSearch">
|
||||||
|
<p class="text" style="color: #333333;margin-top:50px;font-size: 14px">未找到您要搜索的内容</p>
|
||||||
|
</div>
|
||||||
|
<div v-else >
|
||||||
|
<img class="img" style="width:360px;height:226px" :src="`${webBaseUrl}/images/homeWu/no-madel.png`" alt="" srcset="">
|
||||||
|
<p class="text" style="color: #333333;margin-top:50px;font-size: 14px">您还没有报名课程哦~</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -70,15 +70,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- v-if="experience.data.rankingNo>5" -->
|
||||||
<div v-if="experience.data.rankingNo>5" style="margin-top:20px;border-bottom: 1px solid #ddd;padding-bottom:40px">
|
<div style="margin-top:20px;border-bottom: 1px solid #ddd;padding-bottom:40px">
|
||||||
<div v-if="experience.data.rankingNo>5" class="omit">
|
<div class="omit">
|
||||||
<div>.</div> <div>.</div> <div>.</div>
|
<div>.</div> <div>.</div> <div>.</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- v-if="experience.data.rankingNo>5" -->
|
||||||
<div v-if="experience.data.rankingNo>5" class="table-hear" style="margin-top:40px;border-bottom: 1px solid #ddd;padding-bottom:20px">
|
<div class="table-hear" style="margin-top:40px;border-bottom: 1px solid #ddd;padding-bottom:20px">
|
||||||
<div style="color: #0059FF;line-height: 40px;padding-left:14px;font-size: 16px;" class="tab-rank" >{{experience.data.rankingNo}}</div>
|
<div style="color: #0059FF;line-height: 40px;padding-left:14px;font-size: 16px;" class="tab-rank" >{{experience.data.rankingNo}}</div>
|
||||||
<div class="tab-name" v-if="userInfo.aid">
|
<div class="tab-name" v-if="userInfo.aid">
|
||||||
<author-img :avatar="userInfo.avatar" :aid="userInfo.aid" :sex="userInfo.sex"></author-img>
|
<author-img :avatar="userInfo.avatar" :aid="userInfo.aid" :sex="userInfo.sex"></author-img>
|
||||||
@@ -161,13 +161,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="learningDuration.data.rankingNo>5" style="margin-top:20px;border-bottom: 1px solid #ddd;padding-bottom:40px">
|
<div style="margin-top:20px;border-bottom: 1px solid #ddd;padding-bottom:40px">
|
||||||
<div v-if="learningDuration.data.rankingNo>5" class="omit">
|
<div class="omit">
|
||||||
<div>.</div> <div>.</div> <div>.</div>
|
<div>.</div> <div>.</div> <div>.</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="learningDuration.data.rankingNo>5" class="table-hear" style="margin-top:40px;border-bottom: 1px solid #ddd;padding-bottom:20px">
|
<div class="table-hear" style="margin-top:40px;border-bottom: 1px solid #ddd;padding-bottom:20px">
|
||||||
<div style="color: #0059FF;line-height: 40px;padding-left:14px;font-size: 16px;" class="tab-rank" >{{learningDuration.data.rankingNo}}</div>
|
<div style="color: #0059FF;line-height: 40px;padding-left:14px;font-size: 16px;" class="tab-rank" >{{learningDuration.data.rankingNo}}</div>
|
||||||
<div class="tab-name" v-if="userInfo.aid">
|
<div class="tab-name" v-if="userInfo.aid">
|
||||||
<author-img :avatar="userInfo.avatar" :aid="userInfo.aid" :sex="userInfo.sex"></author-img>
|
<author-img :avatar="userInfo.avatar" :aid="userInfo.aid" :sex="userInfo.sex"></author-img>
|
||||||
@@ -250,14 +250,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="learningDays.data.rankingNo>5" style="margin-top:20px;border-bottom: 1px solid #ddd;padding-bottom:40px">
|
<div style="margin-top:20px;border-bottom: 1px solid #ddd;padding-bottom:40px">
|
||||||
<div v-if="learningDays.data.rankingNo>5" class="omit">
|
<div class="omit">
|
||||||
<div>.</div> <div>.</div> <div>.</div>
|
<div>.</div> <div>.</div> <div>.</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div v-if="learningDays.data.rankingNo>5" class="table-hear" style="margin-top:40px;border-bottom: 1px solid #ddd;padding-bottom:20px">
|
<div class="table-hear" style="margin-top:40px;border-bottom: 1px solid #ddd;padding-bottom:20px">
|
||||||
<div style="color: #0059FF;line-height: 40px;padding-left:14px;font-size: 16px;" class="tab-rank" >{{learningDays.data.rankingNo}}</div>
|
<div style="color: #0059FF;line-height: 40px;padding-left:14px;font-size: 16px;" class="tab-rank" >{{learningDays.data.rankingNo}}</div>
|
||||||
<div class="tab-name" v-if="userInfo.aid">
|
<div class="tab-name" v-if="userInfo.aid">
|
||||||
<author-img :avatar="userInfo.avatar" :aid="userInfo.aid" :sex="userInfo.sex"></author-img>
|
<author-img :avatar="userInfo.avatar" :aid="userInfo.aid" :sex="userInfo.sex"></author-img>
|
||||||
|
|||||||
Reference in New Issue
Block a user